Caloogy Article
中文

Test-Time Training: Models That Update During Inference

Date
May 20, 2026
Series
LLM Frontier
Reading
3 min
Topics
LlmTest time trainingContinual learningMemory

The one-sentence version

Today's large models are "frozen" once training is complete: anything they learn during use can only be temporarily stored in the context window and is forgotten once the conversation ends. Humans do not work this way: we learn while doing things, and new learning does not overwrite old knowledge. Test-time training allows a model to update a portion of its parameters or memory during the inference process, continuously adapting to new tasks, new users, and new knowledge. The challenges are catastrophic forgetting (learning new things while forgetting old ones) and security (being "mis-taught" by malicious inputs). Neuroscience's "Complementary Learning Systems" theory provides an inspiring blueprint for this: the hippocampus remembers new events quickly, while the cerebral cortex slowly integrates them.

Positioning

Some implementations already exist; the overall field is still in its early stages. Distinguish between existing evidence and speculation.


Layer 1: The Intuition

1.1 The Genius with Daily Amnesia

There is a type of character in movies: extremely intelligent, but wakes up every day having forgotten everything from the previous day, relying solely on a notebook to function.

Large models are just like this:

1.2 Why we cannot simply let it learn while being used

Problem Description
Catastrophic Forgetting Updating parameters with new data can wash away old capabilities
Security Users (or attackers) can "mis-teach" the model through inputs (similar to RAG and memory poisoning, but more profound)
Personalization vs. Sharing One model serves millions of users; whose experiences should change it?
Cost Performing gradient updates during inference requires significant computation

Layer 2: Existing Evidence

Work Content
Test-Time Training (Sun et al., since 2020) Performing minor updates on the model using self-supervised tasks during testing to adapt to new data distributions; the 2024 TTT layer turns the "hidden state" itself into a small model that is continuously trained over a sequence
Titans (Google, 2025) Incorporates a neural long-term memory module that decides what to remember and what to forget during inference based on "surprise," capable of handling ultra-long contexts
Test-time training in ARC challenges Methods that temporarily fine-tune models on the Abstract Reasoning Corpus (ARC) benchmark have achieved significant improvements
Continual Learning Research Methods such as Elastic Weight Consolidation (EWC, 2017): identifying parameters important to old tasks and protecting them during updates
Complementary Learning Systems Theory (McClelland et al., 1995) The hippocampus quickly remembers specific experiences and "replays" them to the new cortex during periods such as sleep; the new cortex slowly integrates them into general knowledge, thereby preventing new knowledge from overwriting old knowledge

Layer 3: Specific Forms of the Concept

3.1 Three-Layer Memory (Reasonable speculation, inspired by Complementary Learning Systems)

Layer Analogy Update Speed Content
Context Window Working Memory Instantaneous Current task
Fast Memory Module Hippocampus Updated during inference Recent experiences, user habits, newly learned facts
Backbone Parameters Neocortex Offline, slow General knowledge and capabilities

The key step is "consolidation": periodically (e.g., during offline periods) distilling content that recurs and is verified within the fast memory into the backbone parameters, while using old data replay to prevent forgetting. This corresponds to human "sleep consolidation."

3.2 The Gating of Writing

Not everything should be remembered. Signals to decide whether to write include:

3.3 Security Design

Risk Countermeasure
Poisoning Fast memory is isolated by user; only filtered content is consolidated into the backbone
Capability Degradation Run full regression tests and safety evaluations after consolidation; roll back if they fail
Value Drift Behaviors related to safety and values are placed in parts that cannot be updated online
Privacy Personal memories do not enter the shared backbone parameters

3.4 Hypotheses to be Verified

  1. Can fast memory + offline consolidation truly avoid catastrophic forgetting at the scale of large models?
  2. Will "surprise" as a writing gate be exploited by attackers (intentionally creating surprising content to write to memory)?
  3. Is the storage and computation cost of having a separate fast memory for every user acceptable?
  4. How will continual learning models handle version management and safety certification?

Summary

Layer Key points
Problem Models are frozen after training, preventing the accumulation of experience
Evidence TTT, Titans, test-time training on ARC, continual learning research
Concept Three-layer memory: Context, Fast Memory (Hippocampus), Backbone Parameters (Neocortex), with offline consolidation
Challenges Catastrophic forgetting, poisoning, value drift, privacy, and cost