From Test-Time Training to Continual Intelligence
A research-direction note on memory, reasoning, meta-learning, and the substrate of continual adaptation
This is the original, shorter version of the argument.
Read the expanded version, which extends the framework to representation compilation, latent reasoning, auxiliary supervision, and compute routing.
Thesis
Test-time training (TTT) is usually introduced as a technique: update some model parameters during inference using a self-supervised loss. But the recent evolution of TTT suggests a more interesting interpretation.
The real question is not:
Can a model update its weights at test time?
Of course it can.
The harder question is:
Can we construct a learning system whose local updates are useful, whose update trajectory remains stable, and whose experiences are routed into the right kind of internal state?
Once phrased this way, TTT stops looking like a niche long-context mechanism. It becomes one instance of a much broader problem: continual intelligence.
A continually learning system does not have one homogeneous memory. It has multiple kinds of state, changing at different timescales:
\[ \boxed{ \text{working state} \rightarrow \text{episodic memory} \rightarrow \text{semantic knowledge} \rightarrow \text{procedural skills} \rightarrow \text{meta-learning policy} } \]
The central architectural question is therefore not merely what loss should we optimize? It is also:
What should be the substrate of each level of learning?
Should an experience become an activation, a prompt, an external memory, a skill, a harness rule, an adapter, or a permanent weight update?
My working hypothesis is that future continually learning agents will use heterogeneous substrates and progressively compile useful structure downward:
\[ \boxed{ \text{explicit + plastic} \quad\longrightarrow\quad \text{implicit + efficient} } \]
That gives a possible unifying framework for test-time training, long-context memory, skill libraries, agent harnesses, meta-learning, and eventually online RL.
This note connects three other parts of the site:
- Linear Attention for the algebraic view of fast-weight memory
- Optimization for SGD, Muon, and optimizer dynamics
- Agent Harness for explicit state, skills, verification, and meta-level control
1. TTT started as adaptation, not memory
The original formulation of Test-Time Training was motivated by distribution shift.
A model is trained on one distribution but deployed on another:
\[ p_{\text{train}}(x) \neq p_{\text{test}}(x). \]
At test time, labels are unavailable, so the model constructs a self-supervised task on the incoming example and updates some of its parameters before making the downstream prediction.
Schematically,
\[ \theta' = \theta-\eta\nabla_\theta L_{\text{self-supervised}}(x), \]
followed by
\[ \hat y = f_{\theta'}(x). \]
The key intuition was that an auxiliary objective such as rotation prediction could provide a gradient that moved the feature extractor toward a representation more suitable for the current test distribution.
This already contained the seed of the central TTT problem:
\[ \boxed{ \nabla L_{\text{aux}} \text{ must somehow correlate with } \nabla L_{\text{task}} } \]
even though the true task loss is unavailable.
This is an indirect form of control. We do not optimize the thing we actually care about. We invent a locally observable objective and hope that its optimization changes the model in a useful direction.
That is a very strong assumption.
2. TTT then changed meaning: weights became recurrent state
The newer sequence-modeling line of TTT repurposed the same mechanism for a different goal.
Instead of asking:
How do I adapt a model to a shifted distribution?
it asks:
Can parameter updates themselves act as a memory state?
Consider a recurrent model:
\[ h_t = F(h_{t-1}, x_t). \]
A TTT layer replaces the ordinary hidden state with mutable parameters:
\[ W_t = U(W_{t-1},x_t). \]
The update operator (U) is typically implemented as an optimization step:
\[ W_t = W_{t-1} - \eta\nabla_W L_{\text{TTT}}(W_{t-1};x_t). \]
Now the weights are not simply “the trained model.” They are also the evolving state of the sequence processor.
This creates a striking reinterpretation:
\[ \boxed{ \text{optimizer dynamics} \equiv \text{recurrent dynamics} } \]
and
\[ \boxed{ \text{fast weights} \equiv \text{memory state}. } \]
This is the conceptual bridge from classical TTT to long-context TTT.
3. Why did TTT use KV-binding auxiliary losses?
A common long-context TTT construction uses a key-value binding objective:
\[ L_{\text{KVB}} = \|f_W(k)-v\|^2. \]
At first glance this is confusing.
Standard attention computes
\[ o(q) = \sum_i \operatorname{softmax}(q^\top k_i)v_i. \]
There is no requirement that
\[ k_i \approx v_i, \]
and no function (f) in ordinary attention that is supposed to map a key directly onto its value.
The intended abstraction is different.
An attention KV cache can be viewed as an explicit associative table:
\[ \mathcal M = \{k_i \mapsto v_i\}. \]
TTT asks whether this explicit table can instead be compressed into a parameterized function:
\[ f_W(k_i)\approx v_i. \]
Then retrieval is performed by evaluating
\[ f_W(q). \]
Under this interpretation, the auxiliary loss is a memory-writing rule. It is not derived from the original attention equation. It is chosen because SGD on this objective is hoped to encode useful associations into (W).
That difference matters.
The KVB objective does not follow inevitably from the task. It is an architectural hypothesis about how gradients should implement memory.
4. The KVB story may be more accidental than it first appeared
Recent analysis complicates the literal “SGD memorizes key-value pairs” explanation.
For a simplified linear fast-weight model
\[ f_W(x)=Wx, \]
consider a loss whose gradient gives an outer-product update:
\[ L = -f_W(k)^\top v. \]
Then
\[ \nabla_W L = -vk^\top, \]
and SGD produces
\[ W_t = W_{t-1} + \eta v_t k_t^\top. \]
Starting from zero,
\[ W_t = \eta \sum_{i\le t} v_i k_i^\top. \]
Querying the state gives
\[ W_tq = \eta \sum_i v_i(k_i^\top q). \]
This is immediately recognizable as an attention-like computation:
\[ \boxed{ W_tq = \sum_i \underbrace{(q^\top k_i)}_{\text{routing weight}} v_i } \]
without explicit KV storage.
The important object is therefore not necessarily the semantic statement
\[ f(k)\approx v. \]
It may instead be the algebra induced by the gradient:
\[ \nabla_W L \rightarrow vk^\top. \]
That makes the auxiliary objective look less like literal memory regression and more like a way to engineer a desired state-transition operator.
The 2026 paper Test-Time Training with KV Binding Is Secretly Linear Attention pushes this view further, arguing that a broad class of KV-binding TTT architectures can be rewritten as learned linear-attention operators. See Linear Attention for the underlying recurrent-state derivation.
This is an important warning.
TTT is not necessarily “finding a loss that is intrinsically meaningful.”
It may instead be:
\[ \boxed{ \text{choose a loss whose gradient implements a useful low-level computation} } \]
That means success depends on our understanding of the geometry and dynamics induced by the optimizer.
And our understanding of those dynamics is still limited.
5. Why not use the actual next-token-prediction loss?
For an autoregressive language model, we have an unusually convenient test-time learning signal.
After reading a sequence,
\[ x_1,x_2,\ldots,x_T, \]
every observed token is also a label for the previous prefix:
\[ L_t(\theta) = -\log p_\theta(x_t\mid x_{<t}). \]
So why invent
\[ L_{\text{KVB}} \]
at all?
Why not simply use
\[ L_{\text{NTP}}? \]
There are two answers.
5.1 Systems cost
A local auxiliary objective can update a small fast-weight module without backpropagating through the whole language model.
Next-token prediction originates at the logits.
If we update a parameter (W_l) in a lower layer,
\[ \nabla_{W_l}L_{\text{NTP}} \]
requires gradients to flow through the layers above it.
Inference now inherits some of the costs of training:
- backward kernels,
- activation storage or recomputation,
- mutable request-specific parameters,
- optimizer computation,
- synchronization and batching challenges.
This is a real cost.
But it is probably not the deepest obstacle.
5.2 The trajectory problem
Suppose we perform online SGD:
\[ \theta_{t+1} = \theta_t-\eta g_t, \qquad g_t=\nabla_\theta L_t(\theta_t). \]
A local update may improve the loss on the current sample:
\[ L_t(\theta_{t+1}) < L_t(\theta_t), \]
but this does not imply that the resulting model is better on future data.
The update may:
- overfit a transient pattern,
- damage pretrained capabilities,
- distort future gradients,
- reinforce an incorrect local interpretation,
- accumulate interference over a long stream.
Worse, the process is recursive:
\[ \theta_0 \rightarrow \theta_1 \rightarrow \theta_2 \rightarrow \cdots \]
with
\[ g_{t+1} = \nabla L_{t+1}(\theta_t). \]
A bad update does not merely create an additive error. It changes the model that computes the next gradient.
So continual test-time learning is a dynamical-system problem:
\[ \boxed{ \theta_{t+1} = F(\theta_t,x_t) } \]
and local correctness does not guarantee global trajectory stability.
6. “TTT Done Right” fixes a different problem
Earlier TTT sequence models often updated fast weights every few tokens:
\[ B\approx16\text{--}64. \]
This gives fine-grained causal updates but poor GPU utilization.
For a 128K-token sequence, a 16-token update means
\[ \frac{128K}{16} = 8192 \]
small optimizer steps.
Those operations are poorly shaped for modern accelerators.
Test-Time Training Done Right introduces Large Chunk TTT (LaCT), increasing update chunks from tens of tokens to thousands or even much larger blocks depending on the modality.
Instead of
\[ x_{1:16} \rightarrow W_1, \quad x_{17:32} \rightarrow W_2, \]
we may have
\[ x_{1:2048} \rightarrow W_1, \quad x_{2049:4096} \rightarrow W_2. \]
The trick is to combine the slowly updated TTT state with local/window attention:
\[ \boxed{ \text{local attention} + \text{long-timescale fast weights} } \]
so attention handles interactions within a chunk, while the fast-weight state carries information across chunks.
LaCT therefore primarily attacks:
\[ \boxed{ \text{temporal resolution} \leftrightarrow \text{hardware efficiency} } \]
rather than replacing the fundamental auxiliary-loss paradigm.
This distinction is useful because it separates two research questions:
- What update dynamics should the model use?
- How can those dynamics execute efficiently?
LaCT makes major progress on the second.
7. In-Place TTT: move the adaptive state into the existing model
Another step is to question why TTT needs a specialized fast-weight memory module at all.
In-Place Test-Time Training repurposes existing MLP parameters—in particular the final projection matrix of MLP blocks—as fast weights.
That changes the architecture from something like
\[ \text{Transformer} + \text{special TTT memory layer} \]
toward
\[ \text{ordinary Transformer whose own parameters become adaptive}. \]
It also replaces the generic reconstruction target with a language-model-aligned local objective designed around next-token prediction.
The significance is not that it simply performs naive full-model NTP SGD. It does not.
The important conceptual steps are:
- reuse the existing model as the memory substrate,
- update only selected parameters,
- align the test-time objective more directly with language modeling,
- preserve chunk-wise efficiency.
In-Place TTT therefore weakens two assumptions of classical TTT:
- that a special memory architecture is necessary;
- that generic reconstruction is the right update objective.
But it still carefully engineers the adaptation rule.
8. TTT-E2E: train the model for its own future learning trajectory
End-to-End TTT goes one level deeper.
Instead of pretraining a static model and later applying some test-time updates, it asks:
What initialization should we learn if we already know the model will continue learning during inference?
Ordinary pretraining solves something like
\[ \theta^* = \arg\min_\theta \mathbb E[L(\theta)]. \]
That objective says:
Find a parameter vector that is directly good at prediction.
But if inference will execute an update operator (U),
\[ \theta_1=U(\theta_0,x_1), \]
\[ \theta_2=U(\theta_1,x_2), \]
and so on, then the actual deployed object is not (_0).
It is the entire trajectory
\[ \theta_0,\theta_1,\ldots,\theta_T. \]
So the outer objective should optimize through those updates:
\[ \theta_0^* = \arg\min_{\theta_0} \mathbb E \left[ L\left( U_T( \cdots U_2( U_1(\theta_0) ) ) \right) \right]. \]
In practice, online language modeling needs good predictions throughout the sequence, so the more revealing objective is conceptually
\[ L_{\text{meta}} = \sum_t L_t(\theta_{t-1}). \]
Now every intermediate model matters.
This gives a much stronger interpretation of meta-learning:
\[ \boxed{ \text{do not merely learn a good initialization;} \quad \text{learn a region of parameter space in which the update trajectory stays useful} } \]
or, more suggestively,
\[ \boxed{ \text{learn a stable manifold of online adaptation}. } \]
9. TTT-E2E is really learning gradient geometry
This reframes the role of training.
Suppose the model has some conceptual decomposition
\[ \theta = \theta_{\text{stable}} + \theta_{\text{plastic}}. \]
We want gradients from the current context to mostly change the plastic state:
\[ g_t = g_t^{\text{context}} + \epsilon_t^{\text{knowledge}}, \]
with
\[ \|\epsilon_t^{\text{knowledge}}\| \ll \|g_t^{\text{context}}\|. \]
Meta-training can shape the representation such that ordinary NTP gradients naturally act like memory-writing operations while avoiding destructive directions.
So TTT-E2E is not only learning parameters.
It is learning:
\[ \boxed{ \text{what SGD means inside this representation}. } \]
That is a much more interesting objective.
Ordinary pretraining learns a function.
Meta-trained TTT additionally learns a local learning geometry around that function.
This is closely related to the idea of optimizer programming:
\[ \boxed{ \text{representation learning} + \text{optimizer dynamics} = \text{learned recurrent transition}. } \]
10. But long-context memory is only one layer of continual learning
At this point it becomes natural to compare TTT with human continual learning.
A two-way split between
\[ \text{pretrained knowledge} \]
and
\[ \text{test-time context} \]
is useful, but incomplete.
A more interesting hierarchy is:
\[ \boxed{ \begin{aligned} M &: \text{episodic / contextual state} \\ K &: \text{semantic knowledge} \\ P &: \text{procedural / reasoning skills} \\ A &: \text{meta-policy for reasoning and learning} \end{aligned} } \]
These are not merely different amounts of memory.
They encode fundamentally different things.
11. Level I: episodic state — what just happened?
Examples:
- a definition introduced 30K tokens ago,
- a repository-specific convention,
- an earlier failed attempt,
- a user’s temporary constraint,
- a fact relevant only to the current task.
This state needs:
\[ \text{high plasticity} \qquad \text{low commitment}. \]
The best substrates are likely:
- activations,
- attention/KV state,
- recurrent state,
- external scratch memory,
- request-specific fast weights.
TTT is especially interesting here because it provides a compressed alternative to explicitly retaining all previous activations.
The ideal behavior is:
\[ \text{experience} \rightarrow M_{\text{episode}}, \]
not immediately
\[ \text{experience} \rightarrow \Delta\theta_{\text{global}}. \]
Most experiences should be cheap to forget.
12. Level II: semantic knowledge — what has become stably true?
Suppose the system repeatedly encounters evidence supporting a fact or abstraction.
At some point it becomes inefficient to retrieve the original episodes every time.
The information should be consolidated into a slower representation:
\[ M_{\text{episode}} \rightarrow K_{\text{semantic}}. \]
Dense model weights are good at this because they provide:
- compression,
- abstraction,
- broad generalization,
- constant-cost implicit retrieval.
But weights are poor at:
- provenance,
- very recent information,
- precise rare facts,
- reversible correction.
So semantic knowledge probably wants a hybrid substrate:
\[ \boxed{ K = \text{slow weights} + \text{retrieval store}. } \]
The retrieval store handles the fresh, rare, precise, and attributable long tail.
Weights absorb stable patterns that repeatedly prove useful.
This resembles consolidation:
\[ \text{episodes} \rightarrow \text{selection} \rightarrow \text{compression} \rightarrow \text{slow weights}. \]
13. Level III: procedural knowledge — how should I solve this kind of problem?
This is where a simple “memory” framing breaks down.
Suppose an agent repeatedly solves a new family of problems.
Initially it may reason laboriously:
\[ \text{try A} \rightarrow \text{fail} \rightarrow \text{try B} \rightarrow \text{notice invariant} \rightarrow \text{solve}. \]
Eventually it should learn something like:
When this structure appears, search for invariant (X), transform with (Y), then recurse.
This is not a fact.
It is a reusable procedure.
Let the reasoning policy be
\[ \pi_\phi(a_t\mid s_t). \]
Procedural learning changes
\[ \phi, \]
not simply the world model.
This gives an important distinction:
\[ \boxed{\text{knowing that}} \neq \boxed{\text{knowing how}}. \]
Current LLMs contain many reasoning priors in their weights, learned through pretraining and post-training:
\[ \text{decompose} \rightarrow \text{solve} \rightarrow \text{verify} \rightarrow \text{backtrack}. \]
At inference time those priors generate reasoning traces.
But the traces usually do not permanently improve the procedure that generated them.
A model can rediscover the same strategy many times without proceduralizing it.
14. Why NTP is much weaker for procedural learning
For contextual memory, NTP is beautifully aligned.
If the context says
Alice’s secret number is 73,
then predicting future tokens can reward storing that information.
But imagine a model solves a proof using a terrible 50-step reasoning process and still reaches the correct answer.
Training on its trace using NTP may teach:
\[ \text{produce the same bad reasoning more confidently}. \]
If the reasoning is wrong, naive self-training can reinforce the error.
So procedural learning needs a signal closer to
\[ \text{reason} \rightarrow \text{act} \rightarrow \text{observe} \rightarrow R \rightarrow \Delta\pi. \]
The relevant feedback may include:
- verifier results,
- execution outcomes,
- environment reward,
- counterexamples,
- efficiency,
- downstream task success.
This is closer to RL and decision learning than to pure prediction.
Cursor Tab and Composer provide a concrete product-scale example: frequent on-policy RL improves action utility, but KL anchoring, task breadth, and regression gates—not RL by itself—provide partial protection against policy regression. See Cursor’s Continual Training Loop.
It also makes the trajectory-stability problem harder.
A corrupted episodic memory can damage one task.
A corrupted reasoning policy can systematically damage every later task.
15. Level IV: meta-learning — how should I decide how to think?
There is an even higher layer.
A reasoning strategy might say:
Solve this family of problems by backward induction.
A meta-strategy says:
When direct search branches exponentially and the target state is constrained, consider switching to backward reasoning.
And above that:
If several attempts fail in structurally similar ways, stop sampling variants and infer the shared assumption behind the failures.
These are policies over computation itself.
Let
\[ A(s) \]
select among actions such as
\[ \{ \text{answer}, \text{retrieve}, \text{search}, \text{simulate}, \text{invoke skill}, \text{verify}, \text{backtrack}, \text{store}, \text{learn} \}. \]
This is metacognition in an engineering sense.
It decides:
- how much computation to spend,
- what reasoning method to use,
- when to use tools,
- when to seek evidence,
- when to stop,
- what to remember,
- what deserves learning.
This is not naturally represented as one static prompt.
It is a control loop.
16. The substrate should be heterogeneous
This leads to the central architectural claim of this note.
Different levels of continual learning require different properties.
| Level | Contents | Timescale | Preferred substrate |
|---|---|---|---|
| Working state | intermediate computation | tokens/seconds | activations |
| Episodic memory | current experience/context | session/hours | context, external memory, fast weights |
| Semantic knowledge | stable facts and abstractions | long | slow weights + retrieval |
| Procedural skills | reusable reasoning/tool procedures | many tasks | skill objects, programs, adapters |
| Meta-policy | how to reason/learn | very long / continual | learned controller inside explicit harness |
A single homogeneous parameter tensor is poorly matched to this structure.
17. Prompts are useful—but probably as an intermediate representation
Natural language prompts are currently an excellent way to represent a newly discovered procedure.
For example:
When debugging a latency regression:
- separate queueing, compute, and network latency;
- identify which percentile changed;
- correlate with deploys;
- run the cheapest discriminative test first.
This is already a reusable skill.
But prompt text has weaknesses:
- token overhead,
- brittleness,
- weak typing,
- no execution guarantees,
- repeated parsing on every invocation.
So I would treat prompts as something like skill bytecode.
A skill could begin as natural language:
\[ s_{\text{text}}. \]
Then become a structured object:
\[ s = ( \text{trigger}, \text{procedure}, \text{tools}, \text{verifier}, \text{statistics} ). \]
Eventually it could be compiled into:
- a policy adapter,
- a tool DAG,
- a controller,
- a small program,
- or even dense weights.
Thus:
\[ \boxed{ \text{prompt is a convenient early substrate, not necessarily the final one}. } \]
18. Reasoning skills should often be explicit before they become weights
Consider a reusable debugging strategy.
Instead of immediately modifying billions of model parameters, represent it explicitly:
skill: debug_latency_regression
trigger:
- latency regression
- distributed service
procedure:
- establish which percentile changed
- decompose queue / compute / network
- compare traces before and after
- identify correlated deploys
- choose the cheapest discriminative test
verifier:
- proposed cause explains observed metric changes
- intervention changes the predicted bottleneckThis representation has several advantages over an implicit weight change:
- inspectable,
- editable,
- compositional,
- attributable,
- easy to test,
- easy to revert.
If repeated evidence shows that the skill is robust, it can later be distilled.
That suggests a general compilation hierarchy:
\[ \boxed{ \text{experience} \rightarrow \text{verbalized skill} \rightarrow \text{structured skill} \rightarrow \text{learned controller} \rightarrow \text{weight consolidation} } \]
Each downward transition trades flexibility for efficiency.
19. Meta-reasoning belongs primarily in the harness
Questions such as
Should I search?
Should I think longer?
Should I retrieve a previous skill?
Is the current approach failing?
Should I run code?
Should I ask another model?
Should this experience become permanent knowledge?
are decisions about the allocation and organization of computation.
These are naturally expressed as a loop:
\[ s_t \rightarrow a_t \rightarrow o_t \rightarrow r_t \rightarrow s_{t+1}. \]
An explicit agent harness can maintain state and enforce control boundaries:
observe
↓
estimate state
↓
select strategy / skill
↓
execute model or tool
↓
evaluate outcome
↓
detect surprise / failure
↓
decide whether to
├─ continue
├─ backtrack
├─ retrieve
├─ switch strategy
├─ store episode
├─ update skill
└─ consolidate learning
This does not mean the harness should remain handcrafted forever.
A better endpoint is:
\[ \boxed{ \text{learned policy inside an explicit execution harness}. } \]
The boundary remains explicit, while the controller becomes learned.
20. A handcrafted harness has the same weakness as handcrafted TTT losses
There is an important symmetry here.
Old auxiliary-loss TTT says:
Human researchers will design a low-level loss whose gradient happens to produce good memory dynamics.
A fully handwritten agent harness says:
Human researchers will design a set of rules whose branching logic happens to produce good reasoning dynamics.
Both assume too much human understanding.
For example, hard-coded logic such as
if uncertainty > 0.7:
search()
if failed_attempts >= 2:
critique()is useful for bootstrapping, but unlikely to be the final form.
The harness should generate trajectories, outcomes, and feedback that can train a controller:
\[ \pi_\phi(a\mid s). \]
The controller can gradually learn:
- when search is valuable,
- when extra reasoning is worth the latency,
- which verifier is informative,
- which skill applies,
- when an experience is novel enough to store.
So the architectural endpoint is neither “everything in weights” nor “everything in code.”
It is:
\[ \boxed{ \text{learned policies operating over explicit computational primitives}. } \]
21. The missing component: credit routing across substrates
Once multiple substrates exist, the most important decision may not be the optimizer step.
It is:
What kind of thing did we just learn?
Suppose the agent encounters a surprising outcome.
The same surprise could imply very different updates.
Case A: task-specific episode
This repository’s test suite must be run from
/src.
Store in episodic/project memory.
Case B: stable external fact
A library API has permanently changed.
Store in retrieval, perhaps later consolidate into weights.
Case C: reusable procedure
This failure class is best diagnosed by checking ownership before timing.
Update or create a skill.
Case D: reasoning-policy failure
The agent repeatedly keeps searching even when enough evidence already exists.
Update the meta-controller.
Case E: foundational regularity
A pattern is broadly useful across domains and repeatedly confirmed.
Eventually distill into slow weights.
Thus a continual learner requires a routing operator:
\[ C(e) \rightarrow \{ M, K, S, \pi_{\text{meta}}, \theta \}. \]
where (e) is an experience.
This is continual credit assignment over internal state types.
I suspect this is more fundamental than choosing Adam versus SGD.
22. A candidate architecture for continual intelligence
A useful abstraction is:
\[ \boxed{ \begin{aligned} \theta_{\text{base}} &: \text{general semantic and procedural priors} \\ h_t &: \text{current working state} \\ M &: \text{episodic memory} \\ K &: \text{retrievable semantic knowledge} \\ S &: \text{reusable skill library} \\ \pi_{\text{meta}} &: \text{learned strategy-selection policy} \\ H &: \text{explicit execution harness} \end{aligned} } \]
The system operates as
\[ (x,h,M,K,S) \xrightarrow{\pi_{\text{meta}}} a \]
where (a) chooses a computation.
The harness executes it:
\[ a \xrightarrow{H} o. \]
The outcome produces prediction error, task reward, verifier feedback, or surprise:
\[ o \rightarrow \delta. \]
Then a credit router decides what to update:
\[ \delta \xrightarrow{C} \begin{cases} \Delta h \\ \Delta M \\ \Delta K \\ \Delta S \\ \Delta\pi_{\text{meta}} \\ \Delta\theta_{\text{base}}. \end{cases} \]
This is a much richer picture than
\[ \theta \leftarrow \theta-\eta\nabla L. \]
23. The key design principle: progressive compilation
Human skill acquisition gives an intuitive analogy.
When learning to drive a manual transmission, actions may initially be explicit:
clutch in, change gear, slowly release clutch.
With practice they become automatic.
Computationally:
\[ \text{explicit working-memory program} \rightarrow \text{procedural representation} \rightarrow \text{compiled neural policy}. \]
The same principle could organize artificial continual learning.
Stage 1: raw episode
A single success is stored as an experience.
Stage 2: verbal abstraction
After repeated successes, the system forms a hypothesis:
Backward reasoning tends to work when the goal state is strongly constrained.
Stage 3: structured skill
The system encodes a reusable procedure:
\[ \text{detect constrained target} \rightarrow \text{attempt backward reasoning}. \]
Stage 4: learned controller
Repeated data trains
\[ \pi_\phi( \text{backward-reasoning}\mid s ). \]
Stage 5: weight consolidation
If the strategy becomes universally useful, it may be absorbed into the base model.
This suggests a continuum:
\[ \boxed{ \text{harness} > \text{skills} > \text{memory} > \text{weights} } \]
where moving downward means:
\[ \text{less flexible} \quad \text{but} \quad \text{cheaper, faster, more automatic}. \]
Moving upward means:
\[ \text{more explicit} \quad \text{but} \quad \text{more expensive and deliberative}. \]
24. This changes how we should think about “reasoning”
The current discussion around reasoning models often treats reasoning as extra tokens:
\[ x \rightarrow \tau_{\text{CoT}} \rightarrow y. \]
But this conflates three distinct things:
- reasoning execution — the current trajectory ();
- reasoning skill — the reusable policy that generates good trajectories;
- meta-reasoning — the policy that chooses which reasoning method to invoke.
A continually learning reasoning system should improve all three at different timescales.
An individual chain of thought is working state.
A discovered reusable algorithm is procedural memory.
The rule for deciding when to invoke that algorithm is meta-policy.
This distinction suggests that simply increasing inference compute is not sufficient for continual intelligence.
A system that repeatedly discovers a good strategy but never compiles it has no procedural learning.
It is merely re-solving.
25. Long-context TTT may be the easiest instance of a much larger idea
TTT-E2E currently frames long-context language modeling as continual learning.
That is a powerful conceptual shift:
Attention
\[ \text{remember by retaining activations}. \]
RNN
\[ \text{remember by updating hidden state}. \]
TTT
\[ \text{remember by continuing to learn}. \]
But long-context memory may only be the lowest nontrivial level.
The larger progression is:
\[ \boxed{ \begin{aligned} \text{prediction error} &\rightarrow \text{learn this context} \\ \text{task outcome} &\rightarrow \text{learn a procedure} \\ \text{history of outcomes} &\rightarrow \text{learn a better learning strategy}. \end{aligned} } \]
The first can plausibly use NTP.
The second requires richer feedback.
The third requires meta-level credit assignment.
This is where TTT reconnects with meta-learning—but in a broader form than the original literature.
26. A research agenda
The framework above suggests several concrete research questions.
26.1 Learn the credit router
Given an experience (e), predict:
\[ C(e) \in \{ \text{discard}, \text{episode}, \text{knowledge}, \text{skill}, \text{meta-policy}, \text{weights} \}. \]
This might be one of the most important learned decisions in a continual agent.
The objective should include not only immediate utility but the future cost of storing incorrect abstractions.
26.2 Train update trajectories, not only endpoints
For any mutable substrate,
\[ z_{t+1}=U(z_t,e_t), \]
optimize the quality of the whole trajectory:
\[ J = \sum_t R(z_t,e_{t+1:T}) \]
rather than merely the final state.
This is the deeper lesson of TTT-E2E.
Stable continual learning requires intermediate states to remain useful.
26.3 Separate plastic and stable capacities
Rather than updating a homogeneous model, expose different timescales:
\[ \theta = \theta_{\text{slow}} + \theta_{\text{medium}} + \theta_{\text{fast}}. \]
The system should learn which directions belong to each timescale.
This could involve:
- adapters,
- low-rank fast weights,
- modular experts,
- learned parameter masks,
- optimizer-specific subspaces.
26.4 Treat skill formation as program synthesis
When multiple successful trajectories share structure, synthesize a compact reusable procedure.
Input:
\[ \tau_1,\tau_2,\ldots,\tau_n. \]
Output:
\[ s = \operatorname{CompressProcedure} ( \tau_{1:n} ). \]
Evaluate the skill on held-out tasks before promoting it.
This creates an analogue of consolidation with explicit validation.
26.5 Learn when to compile
Compilation should depend on evidence.
A possible hierarchy:
\[ \text{episode count} \rightarrow \text{skill hypothesis} \rightarrow \text{held-out validation} \rightarrow \text{controller integration} \rightarrow \text{weight distillation}. \]
Promotion should be reversible.
Bad abstractions should remain cheap to delete.
26.6 Optimize the harness as a policy
Represent harness decisions explicitly but train their selection.
\[ \pi_\phi(a\mid s) \]
could choose:
- direct answer,
- extended reasoning,
- search,
- tool invocation,
- simulation,
- retrieval,
- skill execution,
- critique,
- verification,
- learning.
The execution graph remains interpretable while the choice policy becomes learned.
26.7 Distinguish prediction surprise from decision regret
NTP gives a useful signal:
\[ \delta_{\text{pred}} = -\log p(x_t\mid x_{<t}). \]
But a reasoning agent also observes decision-level feedback:
\[ \delta_{\text{decision}} = R_{\text{expected}}-R_{\text{actual}}. \]
These signals should update different substrates.
Prediction surprise is often evidence about the world.
Decision regret is often evidence about the policy.
Conflating them into one generic gradient may be fundamentally inefficient.
27. A broader decision-loop interpretation
A static language model is approximately
\[ x_t \rightarrow p(x_{t+1}). \]
A recurrent model is
\[ (h_t,x_t) \rightarrow (h_{t+1},p_t). \]
A TTT-style model adds explicit learning:
\[ (\theta_t,x_t) \rightarrow \text{prediction} \rightarrow \text{surprise} \rightarrow \nabla L_t \rightarrow \theta_{t+1}. \]
A continually intelligent agent needs the more general loop:
\[ \boxed{ \text{observe} \rightarrow \text{predict} \rightarrow \text{decide} \rightarrow \text{act} \rightarrow \text{observe surprise/outcome} \rightarrow \text{assign credit} \rightarrow \text{update the appropriate substrate}. } \]
The final step is the critical extension.
Not every surprise should modify the same thing.
A token prediction error may update context memory.
A factual contradiction may update semantic memory.
A failed proof may update a reasoning skill.
Repeated strategy failure may update the meta-controller.
A deeply repeated regularity may eventually update slow weights.
This is a much more structured conception of learning than universal SGD.
28. Conclusion
The most interesting lesson from recent TTT is not that models can update their weights during inference.
It is that the traditional separation
\[ \text{training} \quad|\quad \text{inference} \]
may itself be an artifact of our current systems.
Once inference includes persistent state updates, the model becomes a dynamical learner.
But making this work requires more than a clever auxiliary loss.
The central challenge is to design or learn update dynamics such that:
- local updates are useful;
- trajectories remain stable;
- pretrained capabilities are protected;
- repeated experience becomes abstraction;
- abstractions are stored at the right level;
- successful reasoning becomes reusable skill;
- strategy selection itself continues improving.
This leads to a broader architectural hypothesis:
\[ \boxed{ \text{continual intelligence} \neq \text{one model continually changing its weights} } \]
but rather
\[ \boxed{ \text{continual intelligence} = \text{multiple learning substrates} + \text{multiple timescales} + \text{learned credit routing} + \text{progressive compilation}. } \]
Weights are excellent for stable compressed priors.
External memory is excellent for precise episodic state.
Skills are excellent for reusable procedures.
Harnesses are excellent for explicit control.
Meta-learning should determine how these components evolve together.
The long-term research direction is therefore not merely better test-time training.
It is learning what to learn, where to store it, how quickly to update it, and when to compile it into something more automatic.
That may be the more useful bridge from today’s long-context TTT to genuinely continual reasoning systems.
References
Sun, Y. et al. Test-Time Training with Self-Supervision for Generalization under Distribution Shifts. ICML 2020.
https://arxiv.org/abs/1909.13231Zhang, T. et al. Test-Time Training Done Right. 2025.
https://arxiv.org/abs/2505.23884Tandon, A. et al. End-to-End Test-Time Training for Long Context. 2025.
https://arxiv.org/abs/2512.23675Liu, J. et al. Test-Time Training with KV Binding Is Secretly Linear Attention. 2026.
https://arxiv.org/abs/2602.21204Feng, G. et al. In-Place Test-Time Training. 2026.
https://arxiv.org/abs/2604.06169