Skip to content

Chapter 5 · Continual Learning and Self-Modifying Weights

5.1 Why is continual learning called the "missing piece" on the road to RSI? ★★

One-sentence answer

Chapter 4's self-evolving agents put the improvement outside the model and keep the weights frozen, so experience can only call on existing abilities, has to be re-read every time, and is never really digested; continual learning asks for an updater that keeps running after deployment and writes experience back into the weights, which is rung 6 of the ladder. In 2025–2026, Dwarkesh Patel, Karpathy, Sutskever and others named it the most obvious gap in current models, because in-context learning is temporary, RL post-training is a batch process run by the lab, and much economic value comes from "on-the-job learning"; but Dario Amodei argues it may not be a barrier at all, and the real debate is about what must go into the weights.

I will address four aspects: what the previous rung could not do, why it is called the "missing piece", where the dissent and disagreements lie, and how this chapter breaks the problem down.

(1) Chapter 4 put the improvement outside the model, and frozen weights have three consequences.

Chapter 4's self-evolving agents put the improvement outside the model: methods like ACE keep rewriting a playbook, GEPA evolves prompts, Agent Skills and ReasoningBank store experience as reusable skills and memories, DGM and HGM rewrite the agent's own code, and AlphaEvolve produces new programs through evolutionary search. These methods are cheap, reversible and readable by humans, which is why they grew fastest in 2025–2026; but they share one ceiling: the base model's weights are frozen. Being frozen has three consequences.

  • It can call on abilities but not create them: experience in the context can only call on abilities the model already has, not create new ones; no matter how good a manual is, it will not teach someone who cannot reason how to reason.
  • Keeping experience in the context has an ongoing cost: it has to be re-read on every call, taking tokens and attention; longer playbooks get harder to use, and the more memories there are, the more retrieval collides, so the plasticity–stability problem from Chapter 4 shows up here too.
  • The knowledge is not "digested": knowledge in the context is not fused with what the model already knows, so it is hard to combine and apply to unseen situations.

Human employees do not improve like this: a new hire who has been on the job for six months is not better because they carry an ever-thicker notebook, but because the experience has become their own ability.

(2) Continual learning is called the "missing piece" for four main reasons.

Between mid-2025 and 2026, continual learning went from a fairly niche academic topic to one of the most publicly discussed bottlenecks in AI. Dwarkesh Patel put it most bluntly in a June 2025 essay: a model's starting point may already beat an average person on many tasks, but it does not get better over time the way a human does; you cannot give it high-level feedback that sticks, and tweaking the system prompt does not buy the kind of learning people do on the job. Karpathy, in October 2025, listed this as one reason agents cannot yet be used as employees. Sutskever, in November 2025, came at it from another angle: humans are not "AGI" out of the box either; we rely on continual learning, so rather than building a finished product that knows everything, you might build "a superintelligent 15-year-old that's very eager to go" and let it learn while deployed (the public statements are collected in "Going deeper" below). It comes down to four reasons.

  • In-context learning is temporary: it is limited by context length and inference cost, disappears when the session ends, and cannot compress experience into an ability that generalizes.
  • RL post-training is a batch process run by the lab: after release, the model does not learn from its own mistakes; every improvement waits for the next training run.
  • Much economic value comes from on-the-job learning: knowing your codebase, your organization's conventions, a particular user's preferences; this is exactly where human employees with less raw ability still win.
  • For RSI, it closes the loop at the weight level: experience → weights → better experience; without it, every improvement has to detour through the lab's next training run, the outermost loop of Chapter 6.

(3) The dissent does not deny that it is useful; it questions whether it is a necessary step, and at which layer it should happen.

The weightiest dissent comes from Anthropic's Dario Amodei. In February 2026 he said that continual learning "might not be a barrier at all", for several reasons: many things once seen as "barriers" (reasoning, semantic understanding) were later absorbed by scaling; a pretrained model already knows more across domains than any individual; in-context learning is itself a weaker, short-term form of on-the-job learning, and a million-token context equals several days of human reading, so extending context further is more an engineering problem than a research one; so most of the value can be realized even without continual learning. Interestingly, he also said it would very likely be solved within the next year or two. So his disagreement is not about whether continual learning is useful, but whether it is a necessary step. There is also a quieter disagreement about which layer continual learning should happen in: the survey by Hou et al. (2026) sums up the field's shift as "a transition from parameter-centric learning toward system-level adaptation", in which on-policy learning, test-time training, external memory and skill libraries all count as continual learning; some results back this view, for example on math-discovery tasks, evolving an external memory beat test-time training while using far less compute (see 5.7). Therefore, a safe way to put it in an interview is: continual learning is widely seen as one of the most obvious capability gaps of current systems, but whether it is a bottleneck that must be solved, and whether it should be solved in the weights or at the system level, is still debated.

(4) In terms of the four-part loop, rung 6 asks for an updater that keeps running after deployment, and this chapter breaks that into four sub-questions.

Chapters 2 and 3 already update weights, but that is training the lab runs in batches before release. This chapter asks for an updater that keeps running after deployment: the problem source becomes the endless, unfiltered stream of data from real use, and the verifier has to judge not only "did it learn" but also "did it forget anything else, and did it become unsafe". The question splits into four sub-questions, answered in turn: how to write without forgetting (5.3–5.4), where to write (5.5), what to write and who decides (5.6), and when to write and on what timescale (5.7–5.9). Before that, 5.2 explains what makes it hard.

In summary: continual learning is called the "missing piece" because it is the rung that continually writes deployment experience back into the weights, closing the self-improvement loop at the weight level; but whether it is necessary, and at which layer it should be implemented, is still debated.

Its place on the ladder:

Rung What is improved Signal source Representative work Main failure (why the next rung exists) Chapter
4–5. Non-parametric and self-referential self-evolution Context, prompts, skills, memory, agent code and harness Execution feedback plus reflection; benchmark scores with archives and gates ACE, GEPA, Agent Skills, ReasoningBank, DGM, HGM, AlphaEvolve Bounded by the frozen model; global edits overwrite gains; objective hacking Ch 4
6. Continual learning and self-modifying weights Weights after deployment Performance of the updated model; self-distillation; next-token loss on context SEAL, on-policy distillation and SDFT, sparse memory finetuning, TTT-E2E, Titans → Nested Learning Forgetting; cost; weight drift invalidates safety evaluations; no deployed weight-level continual learner announced Ch 5

Going deeper: the public statements

(1) Representative public statements.

Who and where When Stance Words (verbatim unless marked)
Dwarkesh Patel, essay Jun 2025 Missing; his main reason for doubting near-term AGI "The lack of continual learning is a huge huge problem."
Andrej Karpathy, podcast Oct 2025 Missing; one reason agents can't yet work like employees "They don't have continual learning. You can't just tell them something and they'll remember it."
Ilya Sutskever, podcast Nov 2025 Central; think of AGI as a learner deployed on the job "Instead, we rely on continual learning."
Demis Hassabis, summit talk Feb 2026 Lists it among the capabilities models still lack Paraphrase: learning after being trained and put out into the world
Dario Amodei, podcast Feb 2026 Doubts it is a real barrier; expects it to be solved anyway "I think continual learning, as I've said before, might not be a barrier at all."
Dwarkesh Patel, essay Aug 2026 Once it works, it reshapes competition and safety "Continual learning will create a clear moat for leading AI labs that they currently lack."

(2) A few details worth remembering.

Sutskever's phrase is that the model should learn while deployed like "a superintelligent 15-year-old that's very eager to go"; he also sees a deeper problem in that these models generalize far worse than people. In the same conversation, Dario Amodei also said: "There's a good chance that in the next year or two, we also solve that."

Follow-up questions

Follow-up 1: What limits non-parametric self-improvement through context, memory and skills, and why do the gains eventually need to go back into the weights?

The limit is the frozen model: such methods can only call on existing abilities, carry an ongoing context cost, and leave the knowledge undigested. When a task needs new knowledge or reasoning ability, or the same kind of experience is used again and again and needs to generalize reliably, keeping it in the context is both expensive and fragile; only once it is written into the weights does experience become the model's own ability and take effect automatically on future problems.

Follow-up 2: Does anyone argue continual learning is not a bottleneck? On what grounds?

Yes, most notably Dario Amodei. His grounds are that many things once seen as barriers were later absorbed by scaling; pretrained models already know a great deal; in-context learning is itself a short-term form of on-the-job learning; and extending context is more an engineering problem. So he believes most of the value can be realized without continual learning, while also expecting it to be solved within a year or two.

Follow-up 3: Can long context plus in-context learning replace continual learning?

Partly, but not fully. The context is good for information needed "this time"; its problems are that it must be re-read every call, its cost grows with length, retrieval and use degrade in very long contexts, and it disappears when the session ends, so accumulation across sessions relies on external memory. More importantly, experience held in the context is not compressed into an ability that generalizes. The realistic answer is a division of labor: fast-changing information that must be precisely editable lives in context and memory, while stable, frequently reused experience is consolidated into the weights (see 5.9).

Follow-up 4: If continual learning really works, what would follow?

It would reshape competition and make a safety regime centered on pre-release checks outdated. Dwarkesh Patel argued in August 2026 that a model that has absorbed your organization's experience is hard to replace, which would give leading labs the moat they currently lack; at the same time, safety rules built only around pre-deployment checks would become outdated, because the model in use after launch is no longer the one that was evaluated (see 5.9).

Common mistakes

  • Do not say that Dario Amodei thinks continual learning is useless: He questions whether it is a necessary barrier, and expects it to be solved anyway.
  • Do not say that the RL training of Chapters 2 and 3 is already continual learning: That is batch training run by the lab before release; the model does not update after deployment.
  • Do not equate continual learning with "a longer context": The context is temporary, must be re-read, and does not compress experience into ability.
  • Do not say that a frontier lab has publicly deployed weight-level continual learning: As of late November 2026, public information shows no such announcement (see 5.9).

5.2 What are catastrophic forgetting and the stability–plasticity dilemma? ★★

One-sentence answer

In continual learning, data arrive over time and each stage sees only the current data, yet the goal is to do well on every task seen so far; catastrophic forgetting means that soon after training on a new task begins, performance on old tasks drops sharply, because the gradient only looks at the current task, representations are distributed and shared, and sequential training breaks the i.i.d. assumption. The stability–plasticity dilemma says that learning new things and keeping old ones rely on the same parameters, and it has a second face, the loss of plasticity. LLMs make the problem harder: what must be protected is the entire pretraining and post-training distribution, and safe behavior is also an old ability, so the classic families of regularization, replay and parameter isolation cannot answer the question of continual learning after deployment.

I will address four aspects: why forgetting happens, the stability–plasticity dilemma, what is different for LLMs, and why classic methods are not enough. The basic symptoms of forgetting in SFT and their remedies are covered in the LLM Training Pipeline direction, Chapter 5; here we cover only the continual-learning side.

(1) Forgetting has three layers of cause: the gradient only looks at the current task, representations are shared, and sequential training breaks the i.i.d. assumption.

Standard deep learning assumes independent and identically distributed (i.i.d.) data: everything is ready at the start, shuffled and sampled at random again and again. Continual learning drops this assumption: data arrive over time, stage \(t\) sees only the current data \(D_t\), yet the goal is to do well on every task seen so far. The biggest obstacle is catastrophic forgetting (McCloskey & Cohen 1989): soon after training on a new task begins, performance on old tasks drops sharply.

\[ \min_\theta \sum_{k=1}^{t} \mathcal{L}_k(\theta) \;\;\text{with only } D_t \text{ available at stage } t, \qquad \Delta \mathcal{L}_A \approx \nabla_\theta \mathcal{L}_A^\top \Delta\theta = -\eta\, \nabla_\theta \mathcal{L}_A^\top \nabla_\theta \mathcal{L}_B \]

The left formula is the continual-learning objective: minimize the sum of all seen tasks' losses \(\mathcal{L}_k\), while stage \(t\) can only use the current data \(D_t\). The right formula uses a first-order expansion to show how one step on task B, \(\Delta\theta = -\eta \nabla_\theta \mathcal{L}_B\) (with learning rate \(\eta\)), affects task A's loss. Forgetting has three layers of cause.

  • The gradient only looks at the current task: each update exists only to lower \(\mathcal{L}_B\); if the two tasks' gradients have a negative inner product (a gradient conflict), \(\mathcal{L}_A\) rises. One step has a tiny effect, but over thousands of steps the parameters leave task A's low-loss region.
  • Representations are distributed and shared: knowledge is not stored item by item; the same parameter takes part in many functions, so you cannot change only "the part related to the new task".
  • The i.i.d. assumption is broken: in joint training, gradients from A and B alternate and conflicts average out; in sequential training, every gradient for a stretch of time comes from one task, so the model over-adapts to the most recent distribution. That is also why joint training is usually treated as the upper bound for continual learning.

(2) The stability–plasticity dilemma says that learning new things and keeping old ones rely on the same parameters, and it has a second face, the loss of plasticity.

Behind forgetting is the stability–plasticity dilemma: plasticity needs parameters to move a lot to learn new things, stability needs them to stay put to keep old things, and both rely on the same parameters. Therefore, every method looks for a better compromise between the two rather than removing the tension. The dilemma also has a less obvious second face: loss of plasticity (Dohare et al. 2023). After continual training on a long sequence of tasks, a network learns less and less: more neurons stop activating, weights grow, and the effective rank of representations falls. So a model meant to update itself over the long run has to worry about becoming rigid as well as about forgetting.

(3) LLMs make the problem harder, and evaluation must measure retention, plasticity and transfer separately.

LLMs make the problem harder in three ways.

  • The "old task" to protect is the entire pretraining and post-training distribution: not one or two enumerable tasks; its boundaries are vague, and the original data are often unavailable.
  • Safe behavior is also an "old ability": it was learned in post-training, so new-task gradients overwrite it like anything else; Qi et al. (2023) found that even fine-tuning on completely benign data lowers safety, which is especially serious for continual updates after deployment (see 5.9).
  • Much of what looks like forgetting is really failure to retrieve: Zheng et al. (2025) call it spurious forgetting: the knowledge is still there, the task alignment is disrupted, and a little training brings it back; O'Neill et al. (2026) likewise found that "forgotten" facts still leave traces in the log-probabilities.

So when evaluating a continual learning method, measure three things separately: retention, how much of the old abilities remains; plasticity, how fast and how well new things are learned; and transfer, whether what was learned helps later tasks. In LLM practice this is usually simplified to "how much the target task gained" versus "how much a suite of general and safety benchmarks dropped"; a continual learning result that reports only the new task's score tells you almost nothing.

(4) Classic methods either protect parameters or rely on old data, so they cannot answer the question of continual learning after deployment.

Continual learning research in 2016–2019 settled into three families: regularization constrains important parameters or outputs, typified by EWC (Kirkpatrick et al. 2016); replay mixes a small amount of old data into new-task training, turning sequential training partly back into joint training; and parameter isolation gives each task its own parameters. In the LLM era, the most reliable engineering answer has been "replay plus a sensible data mixture". However, in the setting of "continual learning after deployment", the classic methods have three basic mismatches: they either protect parameters or rely on old data, but for an LLM what needs protecting is the entire pretraining distribution, whose importance weights are nearly impossible to estimate and whose data are often unavailable; parameter isolation needs to know "which task this is", which open-ended settings do not provide, and different adapters share no knowledge; and, most importantly, they all treat the new data as fixed and only ask "how do we protect the old", never asking whether the form of the new data is itself the cause of forgetting. The 2025 turning point started exactly from that question (see 5.3).

In summary: forgetting comes from old and new tasks sharing the same parameters while the gradient serves only the current task; because the old distribution an LLM must protect is both huge and invisible, methods after 2025 turned to the form of the new data instead.

Going deeper: EWC, a comparison of classic methods, LLM-era engineering practice and metrics

(1) The form of EWC.

\[ \mathcal{L}(\theta) = \mathcal{L}_B(\theta) + \sum_i \frac{\lambda}{2}\, F_i \big(\theta_i - \theta^*_{A,i}\big)^2 \]

Here \(\mathcal{L}_B\) is the new task's loss, \(\theta^*_{A}\) the parameters after learning task A, \(F_i\) the Fisher information of parameter \(i\), which measures how important it is for task A (intuitively, how steep the loss landscape is in that direction), and \(\lambda\) sets the trade-off between old and new. This amounts to attaching a "spring" to each parameter, stiffer for more important parameters.

(2) Comparing the three classic families.

Family Idea Needs old data? Main limit for LLMs
Regularization (EWC; LwF / KL to the old model) Penalize changes to important parameters, or to outputs No The "old task" is all of pretraining, whose importance weights are hard to estimate; rigidity accumulates
Replay (experience replay, GEM, generative replay) Mix old samples into training, or use them to constrain gradients Yes, or a generator Old data often unavailable; mixing ratio must be tuned; still the most reliable in practice
Parameter isolation (progressive nets; one adapter or LoRA per task) Give each task its own parameters No Needs a task ID or router; little transfer between tasks; grows with the number of tasks

(3) LLM-era engineering practice.

For continual pretraining, re-warming and re-decaying the learning rate and mixing in a little old data matches retraining from scratch at a far lower cost (Ibrahim et al. 2024). LoRA, by limiting how far parameters can move, "learns less and forgets less" (Biderman et al. 2024; see 5.8 in the LLM Training Pipeline direction, Chapter 5). Knowledge editing such as ROME (Meng et al. 2022) can precisely change a single fact, but many sequential edits gradually lead to collapse (Gupta et al. 2024), so it is not a solution to continual learning.

(4) Classic metrics.

BWT (backward transfer) measures how learning later tasks affects earlier ones, with negative values meaning forgetting; FWT (forward transfer) measures how much earlier learning helps a new task.

Follow-up questions

Follow-up 1: Why do neural networks forget catastrophically, and why doesn't joint training?

Because in sequential training the gradient comes only from the current task, whereas in joint training gradients from different tasks alternate and conflicts average out. Parameters are shared, so every step taken for task B may raise task A's loss; in sequential training this effect accumulates continuously, while in joint training it is constantly pulled back by other tasks' gradients, which is why joint training is usually treated as the upper bound for continual learning.

Follow-up 2: What is loss of plasticity?

It means that after long continual training, a network becomes less and less able to learn new things. After training on a long sequence of tasks, more neurons stop activating, weights grow and the effective rank of representations falls, and the network's ability to adapt to new tasks degrades accordingly. It shows that continual learning has to prevent rigidity as well as forgetting.

Follow-up 3: After fine-tuning, does a performance drop always mean knowledge was lost?

Not necessarily; often the knowledge just cannot be retrieved. Work on spurious forgetting finds that the knowledge is still in the parameters but the task alignment is disrupted, and a little training restores it; "forgotten" facts also still leave traces in the log-probabilities. So when performance drops, distinguish genuine knowledge loss from degradation at the level of format and alignment.

Follow-up 4: What should you measure separately when evaluating a continual learning method?

Retention, plasticity and transfer, each separately. Retention is how much of the old abilities remains, plasticity is how fast and how well new things are learned, and transfer is whether what was learned helps later tasks; for LLMs, at minimum report both the gain on the target task and the drop on a suite of general and safety benchmarks.

Follow-up 5: Explain EWC. What role does the Fisher information play?

EWC adds a quadratic penalty to the new-task loss, and the Fisher information sets how tightly each parameter is "tethered". Parameters with large Fisher are important for the old task, so moving them away from their old values is costly; parameters with small Fisher can move freely to learn the new task. The difficulty for LLMs is that the old task is the entire pretraining distribution, whose Fisher can hardly be estimated accurately.

Follow-up 6: In real LLM continual training, which tools would you use to prevent forgetting?

Mainly replay and data mixture, combined with on-policy training targets, constrained updates and continuous monitoring. Concretely: mix in some general and old-task data; re-warm and re-decay the learning rate for continual pretraining; use on-policy or self-distillation targets where possible (see 5.3 and 5.4); limit the scope of change with LoRA or localized updates; monitor the KL from the original model on new-task inputs; and always evaluate general and safety benchmarks alongside the target task.

Common mistakes

  • Do not say that continual learning has succeeded as long as the new task's score went up: Retention of old abilities and changes in safe behavior must be reported as well.
  • Do not say that a performance drop always means knowledge was lost: It may be spurious forgetting that a little training reverses.
  • Do not say that fine-tuning on benign data cannot affect safety: Even with completely benign data, fine-tuning weakens safety guardrails.
  • Do not say that the stability–plasticity dilemma can be eliminated: Every method only finds a better compromise between the two.
  • Do not say that LoRA avoids forgetting for free: "Forgets less" and "learns less" are two sides of the same thing.

5.3 Why do on-policy updates forget less? (RL's Razor) ★★

One-sentence answer

Several 2025 papers found that on the same new task, on-policy RL and SFT give similar target gains, but RL damages existing abilities far less. RL's Razor explains this: forgetting can be predicted by the KL between the fine-tuned model and the original model measured on the new task's inputs, and RL, which samples from the model's own distribution, tends to settle near "the distribution, among all that solve the task, closest to the original model"; ablations further show that what matters is on-policy data, not the KL penalty or negative samples. This gives the first principle of the continual-learning toolkit: keep training targets as close as possible to the model's own distribution.

I will address four aspects: what the evidence is, how RL's Razor explains it, which factor actually does the work, and what problem it leaves.

(1) Several 2025 papers found that, at equal new-task performance, on-policy RL forgets far less than SFT.

Several papers reached the same conclusion from different angles. Lai et al. (2025) had a multimodal model learn a sequence of tasks: SFT forgot earlier tasks, while reinforcement fine-tuning barely forgot and ended close to multi-task joint training; Shenfeld et al. (2025) compared the two on math reasoning, science QA, tool use and a robot policy model, and at equal new-task performance RL retained clearly more on older benchmarks; Chen et al. (2025) found consistent results on Llama and Qwen models of several sizes. In terms of the four-part loop, when RL learns a new task the generator is the model itself, the verifier is the task reward, and the updater is the policy gradient. What matters is that the generator is the model itself: the updater only redistributes probability among things the model would already say, which is the heart of the explanation below.

(2) RL's Razor explains that forgetting depends on the KL shift from the original model on the new task, and RL naturally favors the KL-minimal solution.

The core finding of RL's Razor (Shenfeld et al. 2025) is that forgetting can be predicted by a very simple quantity:

\[ \text{Forgetting} \;\approx\; f\Big(\mathbb{E}_{x \sim \tau}\big[\mathrm{KL}\big(\pi_0(\cdot \mid x)\,\|\,\pi(\cdot \mid x)\big)\big]\Big), \qquad f \text{ increasing} \]

Here \(\pi_0\) is the original model, \(\pi\) the fine-tuned policy, \(x \sim \tau\) indicates that the KL is measured only on the new task's inputs, with no old-task data at all, and \(f\) is an increasing function. By contrast, the size of the weight change, the change in activations, and whether updates are sparse or low-rank all predict it poorly. Why is RL's KL shift small? Because a new task usually has many correct solutions. SFT uses a fixed set of labels (often from people or a stronger model) and pulls the model toward that data's distribution: the model has to learn not only "to get it right" but "to get it right the way someone else does", and the latter brings a lot of distribution shift unrelated to the task. RL samples from the model's own distribution and only moves probability onto rewarded samples, so it naturally ends up near "the distribution, among all that solve the task, closest to the original model". Under simplifying assumptions, the authors prove that policy gradient with binary rewards converges to the optimal policy with the smallest KL from the initial model, but they also caution that real neural networks do not satisfy these assumptions, so this is a directional explanation. Hence the name: like Occam's razor, it prefers the most "economical" of all feasible solutions. The most convincing evidence comes from two controls, which show that what matters is not the RL algorithm but how close the resulting distribution is to the original model (see "Going deeper" below).

(3) Ablations show that what does the work is on-policy sampling, not the KL penalty or negative samples.

So which part of RL does the work? Ablations point to the same answer.

  • It is not the KL penalty: GRPO with a KL coefficient of 0 or 0.05 forgets about the same (Chen et al. 2025).
  • It is not negative samples: positive-only REINFORCE forgets about as little as GRPO, while an offline method that does use negatives still forgets more (Shenfeld et al. 2025).
  • Approximately on-policy is enough: SFT on correct answers generated once by the initial model still forgets badly, because the data drift further from the current model as training goes on; but regenerating the data with the current model at the start of each epoch makes forgetting mild (Chen et al. 2025).

Chen et al. also give an intuitive explanation in terms of distribution shape. The common intuition is that SFT minimizes forward KL and is mode-covering while RL minimizes reverse KL and is mode-seeking, so RL should forget more. But view the model as a multimodal distribution, with one mode for old abilities and one for the new task, and the conclusion flips: to cover the new target, SFT drags probability mass away from the old mode; RL only redistributes over samples it already produces, pushing the new mode toward the target and leaving the old mode largely intact. Of course, when the new target is far from the model's existing distribution, RL starts to forget too.

(4) This gives the first principle of continual learning, but RL needs a reward, which leaves the next problem.

This question gives the first principle of the 2026 continual-learning toolkit: keep training targets as close as possible to the model's own distribution. In practice, \(\mathrm{KL}(\pi_0 \,\|\, \pi)\) on the new task's inputs can be monitored at any time without old data and serves as an early warning for forgetting. However, it also leaves an obvious problem: RL needs a reward, and most of the new knowledge met after deployment (documents, demonstrations, user corrections) comes without a ready-made verifier. Without a reward, how can we still get an on-policy training signal? That is the question of 6.4.

In summary: on-policy updates forget less because the model starts from its own distribution and only redistributes probability among outputs it already produces, ending near the feasible solution closest to the original model; what matters is the data distribution, not the RL algorithm itself.

Going deeper: the quality of the fit, the two controls and related discussion

(1) How well the KL fits forgetting.

The authors fit \(f\) with a quadratic. In a toy setting this KL predicts forgetting with \(R^2 = 0.96\), and about 0.71 for LLMs. Shenfeld et al. worked mainly with Qwen2.5-3B-Instruct, measuring old abilities with benchmarks such as MMLU, IFEval and HumanEval.

(2) The two controls.

In one, they construct the "oracle" distribution that fully solves the task with the smallest KL from the original model, and SFT on it forgets even less than RL; in the other, SFT on data generated by the RL-trained model reaches the same accuracy–forgetting trade-off as RL. Together they show that forgetting is determined by the target distribution, not by the form of the loss.

(3) Relation to the SFT chapter.

5.5 and 5.9 in the LLM Training Pipeline direction, Chapter 5, discuss the same phenomenon from the SFT side: having the model first rewrite target responses in its own words, or training only on correct responses the model generated and filtered itself, both pull the SFT target toward the model's own distribution.

Follow-up questions

Follow-up 1: How do you compare forgetting between RL and SFT fairly?

Compare forgetting at equal new-task performance, not at an equal number of training steps. The two methods learn the new task at different speeds, so looking at old-task scores at one moment conflates "learned more" with "forgot more"; plot the trade-off curve of "new-task accuracy versus old-task retention", from the same base model on the same new-task inputs, and measure retention with a broad suite of old benchmarks.

Follow-up 2: What do the two control experiments in RL's Razor show?

One shows that SFT is not doomed to forget more; the other shows that RL's advantage comes from the distribution it produces. SFT on the KL-minimal oracle distribution forgets even less than RL, so SFT can forget little as long as the target is close to the original model; SFT on data generated by the RL model reaches the same trade-off as RL, so what matters is the data distribution, not the RL algorithm.

Follow-up 3: Why is "approximately on-policy" enough?

Because the key is that the training data stay close to the current model, not that they come strictly from the current policy. Data generated once become more and more off-policy as the model changes, and forgetting grows with them; regenerating once per epoch with the current model is enough to keep the target close to the model's own distribution.

Follow-up 4: Forward KL is mode-covering, so why does SFT forget more?

Because mode-covering means pulling probability mass over to cover the new target, which hollows out the mode where old abilities live. View the model as a multimodal distribution: to cover the new target, SFT moves mass away from the old mode; RL only redistributes over samples it already produces, pushing the new task's mode toward the target while leaving the old mode largely untouched.

Follow-up 5: How can this finding be used in practice as an early warning for forgetting?

Continuously monitor the KL between the fine-tuned model and the original model on the new task's inputs. This quantity needs no old data to compute and correlates strongly with forgetting; if the KL rises quickly, it signals that the model is drifting from its original distribution, and you should lower the learning rate, add replay, or switch to a more on-policy target.

Common mistakes

  • Do not say that RL forgets less because of the KL penalty: Forgetting is about the same with a KL coefficient of 0; the key is on-policy data.
  • Do not say that a smaller weight change means less forgetting: The size of the weight change and whether it is sparse or low-rank predict forgetting poorly; what predicts it is the KL on the new task.
  • Do not say that RL never forgets: When the new target is far from the model's existing distribution, RL forgets too.
  • Do not say that the theorem in RL's Razor holds exactly for real networks: It holds only under simplifying assumptions and is a directional explanation.
  • Do not say that SFT inherently forgets more than RL: SFT on a KL-minimal target or on RL-generated data also forgets very little.

5.4 How did SDFT grow out of on-policy distillation? ★

One-sentence answer

On-policy distillation (OPD) has the student sample and a teacher score every token; in continual learning it can use the model's own earlier version as the teacher to recover old behavior, but for a new skill there is no ready-made teacher. SDFT's answer is to make "the model itself, having seen an expert demonstration in its context" the teacher: the training signal is on-policy and needs no reward, and the teacher distribution both contains the demonstration's knowledge and speaks in the model's own voice, so the KL is small, forgetting is low, and several skills can be accumulated in sequence. The costs are a dependence on the model's in-context learning ability, more expensive training and difficulty teaching large behavior shifts; and privileged-context self-distillation is actually harmful for long-chain reasoning.

I will address four aspects: how OPD is used for continual learning, how SDFT works and why, its results and costs, and where self-distillation stops working.

(1) OPD provides an on-policy signal without a reward and can use the model's earlier version to recover old behavior, but it needs a teacher that already knows how.

The problem left by the previous question: without a reward, how can we still get an on-policy training signal? One way is to have a teacher score the student's own outputs token by token: this is on-policy distillation (OPD). The student samples, the teacher gives its probability for each token, and the student minimizes the reverse KL between the two (the mechanics, why it is cheap and how it relates to RL are in 9.4 of the LLM Training Pipeline direction, Chapter 9). OPD's most representative continual-learning use is using the model's own earlier version as the teacher to recover old behavior. In an experiment by Thinking Machines (Lu & Thinking Machines Lab 2025), after Qwen3-8B continued training on internal company documents, its instruction following dropped sharply; OPD on general chat prompts with the original Qwen3-8B as teacher then largely restored instruction following, while the newly learned internal knowledge was largely kept. The reason is that OPD only corrects where the student drifts from the old behavior, and general chat prompts do not touch the internal knowledge, so it corrects "behavior" without overwriting "knowledge". This suggests a practical rhythm: learn new knowledge with SFT, then restore old behavior with OPD, alternating. However, its limit is just as clear: OPD needs a teacher that already has the target behavior; to restore old behavior, the old model is a ready-made teacher, but when the goal is a new skill, who plays the teacher?

(2) SDFT makes the model that has seen the demonstration its own teacher, achieving on-policy training without a reward.

SDFT (Self-Distillation Fine-Tuning, Shenfeld et al. 2026) answers: the teacher is the model itself, except that it sees the expert demonstration in its context.

\[ \mathcal{L}(\theta) = \mathbb{E}_{(x,c)}\Big[\mathrm{KL}\big(\pi_\theta(\cdot \mid x)\,\big\|\,\pi_{\bar\theta}(\cdot \mid x, c)\big)\Big] = \mathbb{E}_{(x,c)}\;\mathbb{E}_{y \sim \pi_\theta(\cdot \mid x)}\Big[\log \frac{\pi_\theta(y \mid x)}{\pi_{\bar\theta}(y \mid x, c)}\Big] \]

Here \(x\) is the question and \(c\) an expert demonstration (say, a correct answer); the student \(\pi_\theta\) sees only \(x\), while the teacher \(\pi_{\bar\theta}\) is the same model seeing both \(x\) and \(c\); the teacher's weights \(\bar\theta\) are an exponential moving average (EMA) of the student's. The expectation is taken over responses the student samples itself, \(y\), so the training signal is on-policy; in practice the two distributions are compared at every token. Why does this forget less? Because in-context learning turns the demonstration into a special teacher distribution: on one hand it contains the demonstration's knowledge and approach; on the other, it speaks in the model's own voice, staying close to the model's existing distribution. By RL's Razor's logic (see 5.3), that is exactly a low-KL, low-forgetting target; SFT, by contrast, imitates the demonstration's exact text and has to learn someone else's wording and style along with it. An analogy: SFT is memorizing someone else's answer word for word; SDFT is reading the worked example once, solving the problem yourself, and then correcting yourself against "how I would have written it with the example in front of me". In four-part-loop terms, the generator is the student without the demonstration, the verifier is the self that has seen it (giving a dense token-level signal), the updater is the KL gradient, and the problem source is the stream of demonstrations arriving during deployment.

(3) SDFT can accumulate several skills in sequence, but it depends on in-context learning ability and is more expensive.

On results, on three new tasks SDFT beat SFT on new-task accuracy while keeping prior capabilities almost at the base level; more important is the sequential experiment: one model learns the three skills in turn, and SDFT accumulates them without regressing, while SFT forgets each one as it learns the next. Its costs and limits are worth remembering too.

  • It depends on the model's in-context learning ability: if the model is too small, the self that has seen the demonstration is not a good teacher, and SDFT loses to SFT; the advantage grows with scale.
  • Training is more expensive: the teacher needs an extra forward pass with the demonstration, and the student has to sample its own responses, so training FLOPs and wall-clock time are both clearly higher than SFT's.
  • It struggles to teach large behavior shifts: such as getting a non-reasoning model to write explicit chain-of-thought; the student can also pick up the teacher's verbal tics (like "Based on the text…").

(4) Self-distillation suits acquiring knowledge and skills, but not polishing long-chain reasoning.

The idea of "yourself with privileged information as teacher" was used in many places in 2026; SDPO and OPSD in Chapter 3 use it to improve reasoning (see Chapter 3). But Kaur et al. (2026) found that for reasoning models that think in long chains, privileged-context self-distillation is actually harmful: competition-math accuracy fell, with more harm on longer reasoning. The reason is that reasoning has "forking points" where the model should keep several lines of thought open; the teacher, having seen the answer, is overconfident there, so it pushes down tokens for self-checking and backtracking, and the trained model verifies and backtracks less. So the safe conclusion is: self-distillation is best for acquiring knowledge and skills (SDFT's setting), not for polishing long reasoning. At this point, 5.3–5.4 have addressed "how to write": keep the update on-policy. But the update itself is still dense, and every parameter may change; and where the written data come from, and what they look like, has not been discussed. The next two questions answer "where to write" and "what to write".

In summary: the core of SDFT is replacing the external teacher with "yourself having seen the demonstration", so that new knowledge is written into the weights on-policy and in the model's own voice, keeping forgetting low even without a reward.

Going deeper: the numbers, the KL direction and a name clash

(1) The numbers from the Thinking Machines experiment.

After Qwen3-8B continued training on internal documents, IFEval fell from 85% to 45%; after OPD on general chat prompts with the original Qwen3-8B as teacher, IFEval came back to 83% while the internal knowledge was largely kept (full numbers in 9.5 of the LLM Training Pipeline direction, Chapter 9).

(2) SDFT's numbers.

Item Number
Setup Qwen2.5-7B-Instruct; three new tasks: science QA, tool use, medical
Average on prior capabilities Base 65.5; SDFT about 64.5–65.4; SFT down to about 53–60
Effect of scale At 3B SDFT loses to SFT; about 4 points ahead at 7B, about 7 at 14B
Compute cost About 2.5× the training FLOPs of SFT and about 4× the wall-clock time

(3) Details of the teacher and the KL direction.

The authors found that a frozen original model worked worse as teacher and the current student itself was unstable, hence the EMA. The formula is the reverse-KL form used in the paper's derivation; the authors also report that a token-level forward KL worked better in practice, and both are computed on the student's own samples.

(4) A name clash.

The method mentioned in 5.5 of the LLM Training Pipeline direction, Chapter 5, "first have the model rewrite target responses in its own words, then train on the rewritten data" (Yang et al. 2024), is also called SDFT, but it is a different method. The spirit is the same, pulling the target toward the model's own distribution, but that one is a one-off offline rewrite, whereas the SDFT in this question is on-policy self-distillation.

(5) The harm of self-distillation to reasoning models.

Kaur et al. (2026) observed, on five Qwen3 and OLMo reasoning models, that competition-math accuracy fell by up to 17% relative.

Follow-up questions

Follow-up 1: Who is the teacher in SDFT, and why can it be on-policy without a reward?

The teacher is the distribution of the same model (with EMA weights) after seeing an expert demonstration in its context. During training the student sees only the question and samples its own response, and on these responses the teacher gives, token by token, the distribution of "how I would write it having seen the demonstration", which the student moves toward; the data come from the student itself, so it is on-policy, and the token-level teacher distribution is itself a dense training signal, so no reward is needed.

Follow-up 2: Why does SDFT lose to SFT on a 3B model?

Because SDFT depends on the model's in-context learning ability, and a small model is a poor teacher even after seeing the demonstration. If the model cannot effectively learn the approach from the demonstration, the teacher distribution with the demonstration is not much better than the student's, and the training signal is weak; directly imitating the demonstration with SFT is then more effective. The larger the model, the stronger its ICL and the clearer SDFT's advantage.

Follow-up 3: What is the essential difference between SDFT's training target and SFT on the demonstration?

SFT's target is the demonstration's exact text; SDFT's target is the distribution of "yourself having seen the demonstration" on your own responses. The former asks the model to imitate someone else's wording and style as well, a target far from the model's original distribution, so the KL is large and forgetting is high; the latter keeps the demonstration's knowledge but uses the model's own voice, a target close to the original distribution, so the KL is small and forgetting is low.

Follow-up 4: After domain fine-tuning hurts general ability, how can the model's earlier version bring it back, and why doesn't that overwrite the new knowledge?

Use the model from before fine-tuning as the teacher and run OPD on general prompts. OPD only corrects where the student drifts from the old behavior; general prompts do not involve the new domain's knowledge, so it corrects "behavior" such as instruction following without pulling the newly learned domain "knowledge" back. In practice you can alternate: SFT to learn new knowledge, OPD to restore old behavior.

Follow-up 5: What is the risk of self-distillation for long-chain reasoning models?

It makes the model do less self-checking and backtracking, which hurts reasoning. A teacher that has seen the answer is overconfident at the forking points of reasoning and pushes down the probability of tokens like "wait, let me check that again"; once the student learns this overconfidence, it verifies and backtracks less, and the longer the reasoning, the greater the harm.

Common mistakes

  • Do not say that SDFT needs a stronger external teacher: The teacher is the model itself, just with an expert demonstration added to its context.
  • Do not say that SDFT's teacher is the frozen original model: The teacher's weights are an EMA of the student's; the frozen original model works worse.
  • Do not confuse the SDFT in this question with the method of the same name by Yang et al. 2024: The latter is a one-off offline rewrite, not on-policy self-distillation.
  • Do not say that self-distillation helps on every task: Applied to long-chain reasoning, it weakens self-checking and backtracking.
  • Do not say that SDFT costs about the same as SFT: Its training FLOPs and wall-clock time are both clearly higher.

5.5 How does sparse memory finetuning keep updates local? ★

One-sentence answer

On-policy training fixes the direction of the update, but all parameters are shared, so any update spills over onto other functions. Sparse memory finetuning builds on memory layers: a memory layer is a very large table of key–value slots in which each token reads only the few slots that match it best; during fine-tuning, only the slots that are used heavily by the new data but rarely on pretraining data are updated (ranked in a TF-IDF-like way), which keeps the update local. After learning a batch of new facts, it forgets far less than full fine-tuning and LoRA. It limits "where" changes happen, while LoRA limits "how much"; its limits are that it needs an architecture with memory layers and has been validated mainly on factual knowledge.

I will address three aspects: why limit where updates happen, how sparse memory finetuning works and how well, and how it differs from LoRA and where its limits lie.

(1) On-policy training fixes the direction of the update, but parameter sharing, a root cause of forgetting, remains.

5.3–5.4 keep training targets close to the model's own distribution, which fixes the direction of the update. However, another cause of forgetting from 5.2 remains: representations are distributed and shared, the same parameter takes part in many functions, so any update spills over onto other functions. Another approach is therefore to make the architecture store knowledge "separately", so that learning something new changes only the small relevant piece.

(2) Sparse memory finetuning updates only memory slots that are relevant to the new data and rarely used otherwise.

Memory layers (Berges et al. 2024) provide exactly this structure: a very large table of key–value slots, where each token reads only the few slots that match it best, so access is sparse by design. Sparse memory finetuning (Lin et al. 2025) builds on this and updates only the slots that are "used heavily by the new data but rarely on pretraining data", ranked in a TF-IDF-like way: one term measures how often a slot is accessed on this batch of new data, and another measures how much it is accessed on background data such as pretraining, with less use ranked higher. The intuition: if a slot is rarely used normally but is now accessed a lot by a new fact, it is probably a good place to store that knowledge, and changing it barely affects other functions. The effect is striking: after learning a batch of new facts, F1 on NaturalQuestions dropped 89% with full fine-tuning, 71% with LoRA, and only 11% with sparse memory finetuning, while the new knowledge was learned about as well. In four-part-loop terms, this step changes where the updater writes: from all parameters down to a few slots.

(3) It limits "where" rather than "how much", so together with on-policy training it forms two orthogonal knobs, but it needs a special architecture.

This is not the same as LoRA's "learns less, forgets less". LoRA limits how much changes (low rank), but a low-rank update still acts on every input; sparse memory limits where changes happen, touching only slots tied to the new data. Forgetting fundamentally depends on how much of what gets changed is shared between old and new functions, so limiting location targets the cause more directly than limiting magnitude. The 2026 toolkit thus has two orthogonal knobs: distribution (keep targets on-policy, see 5.3–5.4) and location (keep updates local). However, it also has clear limits: it needs an architecture with memory layers, which most deployed models lack, and retrofitting them into existing models is at an early stage; experiments are mostly factual QA, so the effect on skills and behaviors is unclear; and more fundamentally, like SDFT, it assumes the data to be written are already prepared, which is exactly the question 5.6 answers.

In summary: the core of sparse memory finetuning is writing new knowledge only into a few dedicated memory slots, reducing interference between old and new functions by location, and together with on-policy targets it forms two orthogonal tools against forgetting.

Going deeper: the intuition behind slot selection, Cartridges and knowledge editing

(1) Why rank in a TF-IDF-like way.

If you picked only the slots the new data access most, you would likely pick general-purpose slots that "every input uses", and changing them would interfere with many old functions; adding the term "rarely accessed on background data" concentrates the update on slots that are genuinely tied to the new knowledge and seldom used otherwise. This matches how TF-IDF in text retrieval down-weights common words.

(2) Cartridges: writing knowledge into a pluggable "parameter block".

Cartridges (Eyuboglu et al. 2025) has the model generate conversations about a corpus and distills them into a trained KV cache. This effectively writes knowledge into a separate, pluggable block of "parameters", and, like sparse memory finetuning, stores new knowledge separately from the base parameters.

(3) The difference from knowledge editing.

Knowledge editing (such as ROME, Meng et al. 2022) first locates the FFN weights that store a fact and then makes a closed-form change, which suits precisely changing a single fact, but many sequential edits gradually lead to collapse (Gupta et al. 2024). Sparse memory finetuning is ordinary gradient training that merely restricts the updatable parameters to a few slots, aimed at continually writing large amounts of new knowledge.

Follow-up questions

Follow-up 1: Why does limiting where updates happen reduce forgetting, and how does it differ from LoRA's "learns less, forgets less"?

Because forgetting depends on how many changed parameters old and new functions share, and limiting location directly reduces that sharing. LoRA restricts the update to a low-rank subspace, reducing the magnitude of change, but this low-rank update still acts on every input, so "forgets less" is paid for with "learns less"; sparse memory finetuning changes only slots tied to the new data and seldom used otherwise, leaving other inputs almost untouched, so it can learn about as well while forgetting far less.

Follow-up 2: What are the limits of sparse memory finetuning?

Mainly that it needs a special architecture, has been validated narrowly, and does not address where the data come from. It depends on memory layers, which most deployed models lack, and retrofitting is at an early stage; experiments are mostly factual QA, so the effect on skills and behaviors is unclear; and it assumes the data to be written are already prepared.

Follow-up 3: How does it differ from knowledge editing such as ROME?

Knowledge editing is a located, closed-form change to a single fact; sparse memory finetuning is ordinary training on a restricted set of parameters. The former is precise but hard to sustain, collapsing after many sequential edits; the latter targets large, continual writes of new knowledge and controls interference through the sparsity of slots.

Common mistakes

  • Do not say that sparse memory finetuning is a kind of LoRA: LoRA limits the rank of the update, sparse memory finetuning limits its location; the mechanisms differ.
  • Do not say that it can be applied directly to any off-the-shelf Transformer: It needs an architecture with memory layers.
  • Do not say that it has been shown to work for learning skills and behaviors: Current evidence comes mainly from factual QA.
  • Do not say that limiting the magnitude of updates works as well as limiting their location: On learning new facts, the two differ greatly in how much they forget.

5.6 How does SEAL let a model decide how to update itself? ★★

One-sentence answer

A diagnostic experiment shows that the data written into the weights matter more than the training method: a fact is only retained when it comes with varied phrasings. SEAL therefore has the model generate a self-edit for a new context (rewritten training data, optionally with a training configuration), fine-tunes itself on it with LoRA, and uses the updated model's performance on a downstream task as the reward, training the ability to "write self-edits" with ReST^EM. A 7B model's self-written training data even work better than data generated by GPT-4.1; the limits are that sequential updates forget, every reward costs a fine-tuning run, and scoring needs a paired downstream task.

I will address four aspects: why "what to write" matters most, SEAL's two nested loops, its results, and its limits and follow-ups.

(1) A diagnostic experiment shows that the data written into the weights matter more than the training method, so the most natural move is to let the model prepare the data itself.

The previous questions discussed "how to write" and "where to write", but a 2026 diagnostic reminds us that what to write may matter more. O'Neill et al. (2026) wrote invented facts into Qwen3 one at a time, each time continuing from the model modified by the previous write. After many sequential writes, if every write just restated the facts in two fixed formats, the model could barely answer questions about earlier facts; if every fact came with many varied restatements, accuracy was much higher. And retention depended mainly on the data used for later writes, not on the training method: SFT, off- or on-policy distillation, LoRA or full fine-tuning all mattered less than the data. This matches an earlier finding: a model can reliably retrieve a fact when asked only if the fact appeared in many different phrasings (Allen-Zhu & Li 2023). So the question becomes: after deployment, new knowledge arrives every day; who prepares varied, learnable training data for each piece? A human pipeline clearly cannot keep up, and the most natural answer is let the model do it itself.

(2) SEAL trains the model to "write self-edits" with two nested loops: the inner loop updates the weights with a self-edit, and the outer loop uses the updated performance as the reward.

SEAL (Self-Adapting LLMs, Zweiger et al. 2025) is built around the self-edit: given a new context \(C\) (a passage, or a few demonstrations of a puzzle), the model generates a piece of text describing "how I should update myself". It can be rewritten training data (implications, paraphrases, QA pairs), optionally with training directives (which augmentations, what learning rate, how many epochs).

\[ \mathrm{SE} \sim \pi_\theta(\cdot \mid C), \qquad \theta' = \mathrm{Update}(\theta, \mathrm{SE}), \qquad r(\mathrm{SE}) = \mathbb{1}\big[\mathrm{Perf}(\theta', \tau) > \mathrm{Perf}(\theta, \tau)\big] \]

Here \(\pi_\theta\) is the policy that generates self-edits, \(\mathrm{SE}\) the generated self-edit, \(\mathrm{Update}\) one round of fine-tuning on it, \(\theta'\) the updated weights, \(\tau\) the downstream task paired with \(C\), \(\mathrm{Perf}(\cdot, \tau)\) the model's performance on it, and \(r\) the reward: 1 if the updated model does better, otherwise 0. The method has three parts.

  • Inner loop: apply the self-edit: fine-tune the model on \(\mathrm{SE}\) with LoRA to get \(\theta'\). This is a real weight update, not putting information into the context.
  • Evaluation: test \(\theta'\) on the downstream task \(\tau\), for example answering questions about the passage without the passage in context.
  • Outer loop: train the ability to write self-edits with RL: the outer loop uses ReST^EM, i.e. SFT only on self-edits that earned reward (see Chapter 2); the authors tried PPO and GRPO and found them unstable. The outer loop also must be on-policy: the reward depends on the current weights, the same self-edit works differently for different versions of the model, and old samples go stale quickly.

In four-part-loop terms, SEAL is the first method in this chapter where the model decides the content of its own update: the generator is the model writing self-edits, the verifier is how the updated model performs downstream, the updater has two levels (an inner SFT that writes knowledge, an outer ReST^EM that improves the self-edit policy), and the problem source is the stream of new contexts. The outer loop improves precisely "the ability to improve oneself", which makes it more "recursive" in the RSI sense than the methods of 5.3–6.5.

(3) The results show that a model can write training data for itself that work better than a larger model's, and can also decide for itself how to learn.

In knowledge incorporation, training directly on the passage barely helps, training on the model's own implications helps clearly, and after RL SEAL is slightly above synthetic data generated by GPT-4.1: a 7B model learned to write training material for itself that works better than material from a much larger model, because its data are optimized for "how I learn best". In the few-shot experiment, the self-edit becomes a test-time training configuration (see 5.7), and RL raises the success rate substantially, showing that "how to learn" can also be handed to the model (the numbers are in "Going deeper" below).

(4) SEAL's three limits each match a thread of this chapter, and its inner loop is essentially one round of test-time training.

The SEAL paper itself names three limitations.

  • Applying self-edits one after another causes forgetting: later updates gradually overwrite earlier passages' knowledge; SEAL's inner loop is plain SFT with no anti-forgetting mechanism, which is exactly where the tools of 5.3–5.5 could help.
  • It is expensive: every self-edit evaluation needs a fine-tuning run plus an evaluation, and RL needs thousands of them.
  • It relies on paired downstream tasks for scoring: without labels, the model must write its own questions and judge itself, running into the verification bottleneck again (see Chapter 7).

Follow-up work pushes in two directions: letting the model design even the self-edit templates itself (Cheong et al. 2026), and letting the model change its own weights without gradients (Zhang & Li 2026); both have so far brought only limited gains. SEAL's biggest open question is that its inner loop is essentially one round of test-time training, except that the model picks the data and hyperparameters; every update is a separate fine-tuning job, slow and expensive. Could "updating the weights on the context" become part of the forward computation itself? That is the direction of 6.7.

In summary: the core of SEAL is letting the model generate its own training data and learn how to write it, with "did the update actually make me better" as the reward, which for the first time hands "what to update" to the model itself.

Going deeper: the numbers from both experiments, the diagnostic and follow-up work

(1) SEAL's two experiments.

Knowledge incorporation Few-shot learning (ARC subset)
Context \(C\) A SQuAD passage A few input–output demonstrations
Self-edit Synthetic training text, mainly "implications" of the passage A config: augmentations, learning rate, epochs
Reward QA accuracy with no passage in context Whether the adapted model solves the held-out case
Model Qwen2.5-7B Llama-3.2-1B-Instruct
Result Base 32.7% → train on passage 33.5% → own implications 39.7% → GPT-4.1 data 46.3% → SEAL 47.0% ICL 0% → self-edits without RL 20% → SEAL 72.5% (oracle config 100%)

In a continued-pretraining setting with 200 passages at once, GPT-4.1's data win slightly. In the paper, evaluating each self-edit takes about 30–45 seconds.

(2) The diagnostic's numbers.

In O'Neill et al. (2026), after 20 sequential writes: when every write restated the facts in just two fixed formats, accuracy on earlier facts was only 1%; when every fact came with 24 varied restatements, accuracy was 46%.

(3) Two follow-up works.

Cheong et al. (2026) found that model-generated self-edit strategies come close to, but do not beat, the best human-written template; and that seeding generation with an archive of past strategies actually speeds up their homogenization, so explicit novelty pressure is needed, the same diversity lesson as in Chapter 4. Zhang & Li (2026) have the model inspect its own weights and activations in a Python session and write programs that build low-rank edits, merged only after passing a held-out gate; five generations improved the held-out test set by only one to two points, and it is a just-released result from a single team.

Follow-up questions

Follow-up 1: Why does fine-tuning directly on a raw passage barely teach the model its knowledge?

Because when a fact appears in only one phrasing, the model can memorize the text but struggles to retrieve the fact when asked in a different way. Knowledge has to appear in many phrasings and from many angles to be reliably extracted and used; in SEAL's experiment, training directly on the passage gave almost no gain, whereas training on implications and paraphrases clearly helped.

Follow-up 2: Why must SEAL's outer loop be on-policy, and why ReST^EM rather than PPO or GRPO?

Because the reward depends on the current weights, and ReST^EM is more stable under such an expensive and noisy reward. The same self-edit works differently for different versions of the model, so old samples and rewards go stale quickly and must be regenerated with the current policy; ReST^EM does SFT only on self-edits that earned reward, a form of filtered behavior cloning, and the authors found PPO and GRPO unstable in this setting.

Follow-up 3: Why can SEAL's self-edits beat data generated by GPT-4.1?

Because they are optimized for "how this particular model learns best". Data from GPT-4.1 are high quality, but GPT-4.1 does not know what kind of data the target model learns from best; SEAL's reward comes directly from "did updating on this data make the model better", so it learns the data form that is easiest for itself to absorb.

Follow-up 4: What are SEAL's limitations, and how would you improve it?

Mainly forgetting, cost and dependence on paired tasks, each of which can be addressed with other tools from this chapter. For forgetting, replace the inner loop with on-policy or self-distillation updates, update only local parameters, or mix in replay; for cost, use cheaper proxy evaluations to screen out clearly useless self-edits; for paired tasks, let the model write its own questions, but only with reliable verification, or errors will be written into the weights.

Common mistakes

  • Do not say that SEAL puts new information into the context: Self-edits are used for real LoRA fine-tuning, so the information is written into the weights.
  • Do not say that SEAL's outer loop uses GRPO: It uses ReST^EM; the authors found PPO and GRPO unstable.
  • Do not say that SEAL solves forgetting: Applying self-edits in sequence causes forgetting, a limitation the paper itself names.
  • Do not say that SEAL needs no supervision signal at all: Its reward depends on a downstream task paired with the context.

5.7 What is test-time training? ★

One-sentence answer

Test-time training (TTT) takes a test input, first runs a few gradient steps on the input itself with an auxiliary loss that needs no labels (for language models, usually next-token prediction), and then predicts with the adapted parameters. TTT-E2E goes further and treats long-context modeling as a continual learning problem: information inside the window is handled by attention, information outside it is trained into the weights while reading, and a meta-learned initialization makes learning at test time easy, so that its gains with longer context match those of full attention while inference latency does not grow with length. However, writing into the weights is not always the better deal, and TTT usually resets the parameters after each problem, so nothing accumulates.

I will address three aspects: the definition and lineage of TTT, the idea of TTT-E2E, and the value of writing into the weights and TTT's fundamental limit.

(1) TTT spends inference-time compute on gradient updates, changing the parameters directly for the current input.

An ordinary model's parameters are fixed after training. Test-time training (TTT) takes a test input \(x\), first runs a few gradient steps on \(x\) itself to get parameters adapted to this input, and then predicts with them:

\[ \theta_x = \theta - \eta\, \nabla_\theta \mathcal{L}_{\text{aux}}(x; \theta), \qquad \hat y = f_{\theta_x}(x) \]

Here \(\theta\) is the trained parameters, \(\mathcal{L}_{\text{aux}}\) an auxiliary loss that needs no labels, \(\eta\) the learning rate, \(\theta_x\) the parameters adapted to input \(x\), \(f_{\theta_x}\) the model with those parameters, and \(\hat y\) the prediction. The first TTT (Sun et al. 2019) was for images; for language models, the most natural auxiliary task is next-token prediction itself, and dynamic evaluation (Krause et al. 2017) updates the parameters on the part of a document already read, while reading. Akyürek et al. (2024) trained a separate LoRA for each ARC puzzle from the puzzle's few demonstrations, the direct ancestor of SEAL; another line built TTT into the architecture, with TTT layers (Sun et al. 2024) making the hidden state itself the weights of a small model, updated by one gradient step per chunk read, so they are essentially an RNN whose update rule is gradient descent.

(2) TTT-E2E treats long-context modeling as a continual learning problem and meta-learns an initialization suited to learning at test time.

TTT-E2E (Tandon et al. 2025) pushes this line to an illuminating conclusion: long-context modeling is itself a continual learning problem, not an architecture design problem. It uses an ordinary Transformer with sliding-window attention: information inside the window is handled precisely by attention, and information outside it is compressed into the weights by "training on the context with next-token prediction while reading". The key step is a meta-learned initialization: during training, the outer objective is "starting from these initial weights, perform best after a few test-time updates", i.e. the model learns how to learn at test time; both the training and test levels are end-to-end, hence the name. In results, its gains with longer context track those of a full-attention Transformer, which several linear-time architectures fail to do; at the same time, like an RNN, its inference latency does not grow with context length. This shows the line between "memory" and "learning" is blurring: reading a long text can itself be understood as continual learning on a very short timescale. In four-part-loop terms, the problem source is the context itself, the verifier is self-supervised next-token prediction (no external labels at all), the updater is the test-time gradient step, and the initialization learned during training acts as a "meta-updater".

(3) Writing into the weights is not always the better deal, and TTT's reset means nothing accumulates.

An important counterexample comes from Liu et al. (2026): on five math-discovery tasks, replacing test-time training with "test-time evolution of an external memory" (distilling lessons from past attempts into a memory that guides later ones) did better on all of them while using far less compute. So if the goal is just to solve one hard problem, context and memory are often the better deal; the value of writing into weights is that the gains persist and generalize to future problems. This also exposes TTT's basic limit: it usually resets the parameters after each sequence or problem. Resetting means no forgetting, but it also means nothing accumulates. To turn it into real continual learning, you have to answer: which of the things learned at test time should be kept, and on what timescale? That is the question of 6.8.

In summary: the essence of TTT is spending inference-time compute on updating the parameters for the current input; TTT-E2E shows that long context can be seen as continual learning on a short timescale, but resetting each time means it cannot accumulate experience by itself.

Going deeper: the numbers and architectural details

(1) Per-puzzle LoRA on ARC.

Akyürek et al. (2024)'s 8B model reached 53.0% on the ARC public validation set and 61.9% when ensembled with program synthesis.

(2) An engineering problem with TTT layers.

Early TTT-layer implementations had very low GPU utilization, fixed later by large-chunk TTT that processes a big chunk per update.

(3) TTT-E2E's numbers.

In experiments at 3B parameters and 164B tokens, TTT-E2E's gains with longer context track those of a full-attention Transformer, which Mamba 2 and Gated DeltaNet fail to do; at 128K context it is 2.7× faster than full attention. Background on linear attention and SSMs is in 2.5 of the Model Architecture direction, Chapter 2.

(4) External memory versus TTT.

In Liu et al. (2026), the method that evolves an external memory at test time beat test-time training on all five math-discovery tasks while using about 83% fewer FLOPs.

(5) Test-time training with rewards.

Test-time training can also use rewards: TTRL runs RL on test questions with majority vote as a pseudo-label (see Chapter 3), and TTT-Discover runs RL on a single hard problem with a continuous objective (see Chapter 4).

Follow-up questions

Follow-up 1: What is test-time training, and how does it differ from in-context learning and test-time scaling?

All three adapt to the current input at inference time, but they spend compute differently. In-context learning does not change parameters; it reads the context through attention. Test-time scaling spends compute on generating more tokens, such as longer thinking or sampling many times and voting, again with fixed parameters (see the Inference, Evaluation & Deployment direction, Chapter 4). TTT spends compute on gradient updates and changes the parameters directly. They can be stacked, for example adapting to a problem with TTT and then sampling many times from the adapted model.

Follow-up 2: Why does TTT-E2E call long context a continual learning problem, and what does the meta-learned initialization do?

Because context outside the window is compressed into the weights by online training, which is itself continual learning on a very short timescale. The meta-learned initialization teaches the model during training "how to learn at test time": the outer objective is to perform best after a few test-time updates starting from these initial weights, so a few gradient steps at test time can absorb the context effectively.

Follow-up 3: Is writing into weights always better than writing into context or memory?

No. If the goal is just to solve the problem at hand, evolving an external memory often works better and costs less compute; the value of writing into weights is that the gains persist and generalize to future problems. Choose based on whether the experience is one-off or will be reused again and again.

Common mistakes

  • Do not say that TTT needs labels for the test data: It uses an auxiliary loss that needs no labels, usually next-token prediction for language models.
  • Do not confuse TTT with test-time scaling: The former updates parameters at inference time; the latter only generates more tokens with fixed parameters.
  • Do not say that TTT is itself continual learning: It usually resets the parameters after each sequence or problem, so experience does not accumulate.
  • Do not say that TTT-E2E is a brand-new architecture: It uses an ordinary sliding-window-attention Transformer; the key is training at test time and the meta-learned initialization.

5.8 How are multi-timescale memories such as Titans and Nested Learning designed? ★

One-sentence answer

This line of research answers "how much of what is learned at test time should be kept, and for how long". Titans adds a neural long-term memory that is written at test time according to "surprise" (the gradient of the memory loss), with momentum and a forgetting gate, sharing the work with attention as short-term memory; Nested Learning views a model as a set of nested optimization problems updated at different frequencies and replaces the short-term/long-term split with a Continuum Memory System, with HOPE as its self-modifying implementation; Sleep then adds offline "consolidation" and "dreaming", distilling the fast level's memory into newly added parameters at the slow level and rehearsing with a self-generated curriculum. It is the most complete attempt so far to unify this chapter's threads, but it is still a single team's research and depends on a new architecture.

I will address three aspects: how Titans writes memory according to surprise, how Nested Learning generalizes this to many timescales, and how Sleep consolidates short-term memory into long-term parameters.

(1) Titans stores long-term information in a neural memory updated at test time, with the strength of each write set by "surprise".

The previous question asked "how much of what is learned at test time should be kept, and for how long". A Google line of research starting with Titans (Behrouz et al. 2024) answers it systematically. Titans adds a neural long-term memory module \(\mathcal{M}\): a small MLP whose weights hold the memory and are updated at test time while reading.

\[ \ell(\mathcal{M}_{t-1}; x_t) = \big\|\mathcal{M}_{t-1}(k_t) - v_t\big\|_2^2, \qquad S_t = \eta_t\, S_{t-1} - \theta_t\, \nabla \ell(\mathcal{M}_{t-1}; x_t), \qquad \mathcal{M}_t = (1 - \alpha_t)\,\mathcal{M}_{t-1} + S_t \]

Here \(k_t\) and \(v_t\) are the key and value projected from the current token \(x_t\); the loss \(\ell\) measures whether the memory "can retrieve this value from this key"; its gradient is the surprise: the more unexpected the input, the larger the gradient and the more deeply it is written. \(S_t\) carries past surprise forward with coefficient \(\eta_t\), like momentum, so what immediately follows a surprising event is remembered too; \(\theta_t\) controls how much of the current surprise gets written; and \(\alpha_t\) is a forgetting gate, like weight decay, that lets the memory actively free up space; all three coefficients depend on the input. As for the division of labor, attention is short-term memory (precise, but only over a window), and the neural memory is long-term memory (a compressed history). In a broader view, linear attention and SSMs also compress history into a fixed-size state (see 2.5 of the Model Architecture direction, Chapter 2); what is different in Titans is that the write rule for this state is gradient descent with momentum and forgetting. This is really a modern version of the old idea of "fast weights" (Hinton & Plaut 1987; Schmidhuber 1992): some of a network's parameters change on a very short timescale to hold what just happened.

(2) Nested Learning views a model as a set of nested optimization problems updated at different frequencies.

Titans has only two timescales: short-term (attention) and long-term (neural memory). Nested Learning (Behrouz et al. 2025) generalizes this into a unified view: a model is a set of nested optimization problems, each level with its own "context flow" and its own update frequency. Attention updates with every token (fastest), memory modules update more slowly, and the base weights update only during pretraining (slowest). From this view, even the optimizer is a kind of memory: momentum and Adam are associative memories that compress past gradients. Two designs follow. The Continuum Memory System (CMS) replaces the "short-term / long-term" split with a chain of MLP blocks updated at different frequencies: higher-frequency blocks store shorter-term things, lower-frequency blocks longer-term things, and continual learning is information flowing level by level from fast to slow. HOPE is a self-modifying Titans variant that learns its own update rule, combined with CMS; the authors report gains on language modeling, knowledge incorporation, continual learning and long-context reasoning. The framework's value is that it poses a clean question: how, exactly, does information move from a fast level to a slow one without overwriting what the slow level already holds?

(3) Sleep uses offline consolidation and dreaming to write the fast level's short-term memory into the slow level without overwriting what the slow level already knows.

"Language Models Need Sleep" (Behrouz et al. 2026) tackles this question head-on. On top of Nested Learning's multi-frequency architecture, it adds an offline "sleep" phase with two steps.

  • Consolidation (the authors call it Knowledge Seeding): short-term memory in a high-frequency block is distilled into the next, lower-frequency block. The receiver gets some new low-rank expert parameters, and only these new parameters are trained while the rest stay frozen, so the slow level's existing knowledge is not overwritten; the distillation objective combines on-policy distillation with RL-based imitation. Afterwards, the experts previously added to the sender are reset (the authors compare this to "synaptic pruning"), freeing the fast level's capacity.
  • Dreaming: the model generates its own synthetic curriculum from the task context, picks the most useful items by gradient-based importance, and rehearses on them; "dreams" that improve performance are rewarded. This step builds directly on SEAL's self-edits and ReST^EM (see 5.6).

The reported results beat the earlier methods in this chapter on knowledge incorporation, few-shot ARC, competition math and very long contexts (numbers in "Going deeper" below). It is the most complete attempt so far to unify this chapter's threads: SEAL-style self-generated data (dreaming), on-policy distillation (consolidation), and nested multi-timescale memory (where to write). The analogy to neuroscience is also direct: complementary learning systems theory (McClelland et al. 1995) holds that the hippocampus quickly records new experiences and "replays" them to the neocortex during sleep, and the neocortex learns slowly, interleaved with old knowledge, so new memories do not wipe out old ones; Sleep's consolidation and dreaming are an engineered version of this mechanism for LLMs. However, it deserves a sober reading: this is still research, with no mention of any product deployment; the results come from a single team's line of work and have not been independently replicated; the full version depends on a new architecture like HOPE rather than an off-the-shelf Transformer; and the whole pipeline is quite complex.

In summary: the core of this line is storing memory in levels by timescale and periodically consolidating the fast level's contents into newly added parameters at the slow level, answering "where to write and when to write" structurally.

Going deeper: Sleep's results and the related design space

(1) The results reported for Sleep.

Task Result
SQuAD knowledge incorporation (no passage) 48.9%, above the authors' reproduction of SEAL (46.7%)
Few-shot ARC 80%, above SEAL's 72.5%
Competition math on Qwen3-8B Above SFT, GRPO and OPSD
BABILong long context Near-perfect at the 10-million-token scale

(2) Titans' scale and follow-ups.

The authors report that Titans scales to contexts beyond 2M tokens. The follow-ups MIRAS and ATLAS organize memory structure, loss and forgetting rule into a design space.

(3) How the three relate.

Titans provides "a long-term memory that can be written at test time"; Nested Learning generalizes it into a hierarchy with any number of update frequencies and points out that how information moves between levels is the central problem; Sleep gives a concrete way to do the moving, offline consolidation into newly added parameters followed by rehearsal with a self-generated curriculum.

Follow-up questions

Follow-up 1: What is "surprise" in Titans, and what do the momentum and the forgetting gate do?

Surprise is the gradient of the memory module's associative loss with respect to the memory parameters; the more unexpected the input, the more deeply it is written. Momentum carries past surprise forward, so what immediately follows a surprising event is remembered too; the forgetting gate acts like weight decay, letting the memory actively drop old content and free capacity. Both coefficients depend on the input.

Follow-up 2: How does Titans relate to linear attention and SSMs?

All three compress history into a fixed-size state; they differ in the write rule. Linear attention and SSMs update the state with a fixed-form linear recurrence; Titans' state is the weights of a small MLP, written by gradient descent with momentum and forgetting, so it can be seen as a modern version of the "fast weights" idea.

Follow-up 3: What is the core idea of Nested Learning, and what is the Continuum Memory System?

The core idea is that a model is a set of nested optimization problems updated at different frequencies. Attention is fastest, memory modules are slower, base weights are slowest, and even the optimizer can be seen as a memory that compresses past gradients. The Continuum Memory System replaces the short-term/long-term split with a chain of MLP blocks updated at different frequencies, and continual learning is information flowing level by level from fast to slow.

Follow-up 4: What do Sleep's two phases do, and why does consolidation train only newly added parameters?

Consolidation distills the fast level's memory into the slow level, and dreaming rehearses with a self-generated curriculum; training only new parameters keeps the slow level's existing knowledge from being overwritten. If the slow level's original parameters were updated directly, new memories would interfere with old knowledge just as in ordinary fine-tuning; writing new knowledge into newly added low-rank experts while freezing the rest amounts to a structural form of "localized update".

Follow-up 5: How does complementary learning systems theory relate to continual learning in LLMs?

It provides a neuroscientific prototype for the "fast memory + slow consolidation" design. The theory holds that the hippocampus quickly records new experiences and replays them to the neocortex during sleep, and the neocortex learns slowly, interleaved with old knowledge, so it is not overwritten by new memories; in LLMs, the design of "first record in the context or a fast level, then periodically consolidate into slow parameters" is an engineered version of this idea.

Common mistakes

  • Do not say that Titans' long-term memory is fixed at test time: Its weights are updated at test time while reading.
  • Do not describe surprise as the confidence of the model's output: It is the gradient of the memory module's associative loss with respect to the memory parameters.
  • Do not say that Sleep has been deployed or independently replicated: It is still a single team's research, with no mention of product deployment.
  • Do not say that these methods can be applied directly to an off-the-shelf Transformer: The full version depends on a new architecture like HOPE.

5.9 How should fast context and slow weights divide the work, and what problems remain open? ★

One-sentence answer

FST offers a division of labor that works directly on existing models: an optimized context serves as fast weights that absorb task-specific details, and the parameters serve as slow weights trained with RLVR to consolidate general abilities, so the parameters stay closer to the base, forget less and stay more plastic. A layered design is taking shape from this: things that change fast and must be precisely deletable live in context and memory, while stable things that need to generalize are periodically consolidated into local, reversible parameters. Open problems include safety evaluations going stale as weights drift, high cost, and the fact that as of late November 2026 no weight-level continual learner had been publicly deployed; this rung's bottleneck is the verifier, and even a solved continual learning improves only this one model, so the last rung is having AI improve how the next model is built (Chapter 6).

I will address four aspects: how FST divides the work, a layered design that is taking shape, the most pressing safety problem, and cost, deployment and this rung's bottleneck.

(1) FST treats an optimized context as fast weights and the parameters as slow weights, so the parameters need not move far from the base to accommodate details.

Sleep needs a new architecture. Is there a "fast/slow" split that works directly on existing models? FST (Fast-Slow Training, Tiwari et al. 2026) offers a very clean version: treat an optimized context as fast weights and the model parameters as slow weights. The fast weights are rewritten continually from textual feedback (like the GEPA-style prompt optimization of Chapter 4) and absorb task-specific details; the slow weights are trained with RLVR and consolidate general abilities; the two kinds of update alternate. Why does this forget less? Because the context has already absorbed the task-specific details, so the parameters do not need to move far from the base to accommodate them, which is exactly RL's Razor's logic: the closer the parameters stay to the base, the less forgetting (see 5.3). On results, FST is more sample-efficient than parameter-only RL, reaches a higher ceiling, has smaller KL from the base and forgets less; and because the parameters drift less, the model keeps its plasticity and adapts more easily to the next task after learning one. In four-part-loop terms, FST has two updaters working on different timescales (a context optimizer and RL), sharing one verifier (the task reward). It is also the most explicit bridge between Chapter 4 and this chapter: non-parametric self-evolution and weight updates are not either/or, but a fast layer and a slow layer.

(2) Putting this chapter's tools together, a system design layered by timescale is taking shape.

The rough principle: things that change fast, are very specific, and must be precisely deletable (one user's preferences, one project's details) live in context and external memory; things that are stable, frequently reused and need to generalize are periodically consolidated into local, reversible parameters; consolidation writes them on-policy or by self-distillation, keeping targets close to the model's own distribution; every consolidation must pass a gate that checks retention, safety and the new ability; and the base weights and safety behavior are still updated only in the lab's training runs. This layering is what Hou et al. (2026) mean by "a transition from parameter-centric learning toward system-level adaptation".

Layer Timescale What lives there How it is written Forgetting risk
Context / working memory One episode Current task state Reading; TTT-style fast updates None, it vanishes
External memory, playbooks, skills (Chapter 4) Across episodes Specific facts, procedures, user preferences Append, edit, retrieve Retrieval collisions
Fast parameters (adapters, memory slots, fast blocks) Days to weeks Stable, frequently reused knowledge and skills Self-distillation, sparse finetuning, self-edits, consolidation Local, reversible
Base weights Model generations General abilities, safety behavior The lab's training runs (Chapter 6) Global

(3) The most pressing open problem is that continual weight updates invalidate pre-release safety evaluations.

Today's safety process has a built-in assumption: the model that was evaluated is the model in use. Before release, the lab runs capability and safety evaluations on a fixed checkpoint and decides, based on the results, whether to release it and what safeguards to add (see Chapter 7). Continual weight updates break this assumption directly: a week after launch, the model people are using is no longer the one that was evaluated. And there is reason to fear the drift could go the wrong way: even fine-tuning on benign data weakens safety guardrails (see 5.2), so a stream of harmless-looking updates could quietly erode refusal behavior. There are also three new problems.

  • Divergence: if every user or organization has its own weights, there are thousands of different models, and evaluating each one is impossible.
  • Poisoning: whoever controls the input stream can influence what the model writes into its weights, so prompt injection goes from "one-off" to "persistent" (see the Agent direction, Chapter 6).
  • Deletion: when a user asks "forget my data", deleting a record from context or external memory is easy, but deleting it precisely from the weights is nearly impossible (see the Agent direction, Chapter 3).

Dwarkesh Patel's August 2026 predictions also make the point that safety rules built only around pre-deployment checks will become outdated, and that labs will need alignment methods that keep models well-behaved while their weights keep changing. Possible directions include: putting every consolidation through a gate with statistical guarantees that checks retention, safety and the new ability (see the statistical gating in Chapter 7); keeping updates local and reversible (adapters, memory slots) so they can be undone if something goes wrong; continuously monitoring the KL from the base on a fixed reference distribution as a drift alarm (see 5.3); and keeping safety-critical behavior in slow weights that only the lab updates.

(4) Cost, long-horizon evaluation and deployment remain obstacles; more fundamentally, continual learning improves only this one model, which brings us to the outermost loop.

Weight-level continual learning costs far more than context-level adaptation: SEAL needs a fine-tuning run for every self-edit it evaluates, SDFT costs clearly more to train than SFT, and TTT needs backpropagation for every request; by contrast, writing a record into context or external memory is nearly free.

As of late November 2026, public information shows no frontier lab announcing a deployed LLM that keeps updating its own weights during use; the "memory" features in products are publicly described as storing and retrieving context, and SDFT, Sleep and FST are all still research (no public announcement does not prove none exists). Besides safety and cost, evaluation itself is an obstacle: most existing results learn only a few tasks or a few dozen writes in sequence, on models far smaller than the frontier, over short time spans; whether loss of plasticity appears after thousands of updates has barely been tested at LLM scale; and when the model generates its own training data (SEAL, dreaming), every update shifts the next update's data distribution, so it may drift over many rounds or even suffer something like model collapse (see Chapter 2).

In terms of the four-part loop, the updater now has workable forms, though they have only been validated over short time spans; what really blocks progress is the verifier: after each write, it must judge "learned it", "didn't forget anything else" and "still safe" all at once, and today's checks are mostly a few narrow downstream tasks; the problem source has also become harder, since the data stream in deployment is unfiltered and may even be adversarial.

There is also a more fundamental limit: even if continual learning were solved perfectly, it would improve only this one model, and only within the architecture, data and training algorithms that humans designed; every tool in this chapter, Titans, SDFT, Sleep, was itself invented by human researchers. What really determines how strong the next generation can be is these decisions about "how to build models". So the last rung of the ladder is the outermost loop: having AI improve how the next model is built, including research on new architectures, new training algorithms, new data pipelines and infrastructure; if that loop closes, improvements accumulate across model generations: AI capability → AI R&D throughput → a better next model → stronger AI capability. That is the subject of Chapter 6, and it also pushes the verification problem to its hardest form: judging whether a piece of research is really better.

In summary: the unifying principle of rung 6 is that forgetting comes mainly from how far the training targets shift away from the model's own distribution, so writes should be on-policy, localized, made with varied self-generated data and layered by timescale; its bottleneck is the verifier, and its boundary is that it improves only this one model, so the next step is automating AI research itself (see Chapter 6).

Going deeper: a comparison of this chapter's methods, details of cost, and a summary table

(1) Comparing this chapter's methods.

Method What is written Signal How forgetting is controlled Main cost or limit
RL on the new task (RL's Razor) Weights Task reward On-policy, KL-minimal solution Needs a reward
On-policy distillation Weights Teacher log-probabilities On-policy; old model as teacher for old behavior Needs a teacher with the target behavior
SDFT Weights The model itself with the demonstration in context On-policy self-teacher Depends on ICL; ~2.5× SFT FLOPs
Sparse memory finetuning Memory-layer slots Next-token loss on new data Updates localized to relevant slots Needs memory layers; mostly facts
SEAL LoRA weights via self-edits Downstream score of the updated model None built in A fine-tune per reward; needs paired tasks
TTT-E2E Weights, per sequence Next-token loss on the context Reset after each sequence Nothing accumulates
Titans → HOPE → Sleep Multi-frequency memory Surprise; distillation; dreams Timescale separation plus consolidation into new parameters New architecture; research only
FST Context plus weights Textual feedback plus reward Fast context absorbs task specifics Two loops to run

(2) FST's numbers.

FST is up to 3× more sample-efficient than parameter-only RL and has up to 70% less KL from the base; in a continual setting where task domains shift over time, RL stalls while FST keeps learning new tasks.

(3) The economics of cost.

If each user has their own weights, there is also the cost of serving many adapters at once; Dwarkesh Patel also points out that personalized weight updates are efficient only at large batch sizes, which tilts the economics of continual learning toward large organizations. This is why many people expect the near-term value to come mainly from non-parametric methods.

(4) This chapter's questions and the 2026 answers.

Question The 2026 answer Question number
Why write into weights at all? Context-level gains are bounded by the frozen model and don't compound 5.1
How to write without forgetting? Keep targets on-policy and KL-close to the model 5.3–5.4
Where to write? Local, separable parameters: memory slots, adapters, slower blocks 5.5, 5.8
What to write, and who decides? Varied, self-generated data: self-edits, dreams 5.6, 5.8
When and on what timescale? Fast context now, consolidate into slow weights later 5.7–5.9
What is still missing? Safety under drift, cost, long-horizon evaluation, deployment 5.9

(5) The data-diversity diagnostic.

O'Neill et al. (2026) show that even with the best training methods, forgetting is severe when the written data are not varied enough (see 5.6); and there is still no good principle for "what belongs in the weights".

Follow-up questions

Follow-up 1: If you had to design an LLM system that keeps learning after deployment, how would you do it?

Layer it by timescale, and make every write into the weights pass a gate. Keep the current task state in the context; write specific facts, procedures and user preferences into external memory or skills, where they can be precisely edited and deleted; periodically consolidate stable, frequently reused experience into local, reversible parameters (such as adapters or memory slots) on-policy or by self-distillation, with varied write data; before each consolidation, check retention, safety and the new ability, and monitor the KL from the base on a fixed reference distribution; and let only the lab update the base weights and safety-critical behavior.

Follow-up 2: Which information should go into the weights, and which should stay in context or external memory?

It depends on how fast the information changes, whether it must be precisely deletable, and whether it needs to generalize. Information that changes fast, is very specific and must be precisely deletable (one user's preferences, one project's details, private data) stays in context and external memory; only experience that is stable, frequently reused and needs to be combined and generalized to new situations is worth consolidating into the weights.

Follow-up 3: Why do continual weight updates invalidate safety evaluations, and how would you design safeguards?

Because safety evaluations target a fixed checkpoint, and after continual updates the model in use is no longer the one that was evaluated. Fine-tuning on benign data also weakens safety guardrails, and with the three new problems of divergence, poisoning and deletion, a single pre-release evaluation is no longer enough. Safeguards can include: putting every consolidation through a gate with statistical guarantees; keeping updates local and reversible; continuously monitoring the KL from the base; and keeping safety-critical behavior in slow weights that only the lab updates.

Follow-up 4: Where does the cost of weight-level continual learning go, and why do its economics favor large organizations?

The cost goes mainly into repeated training compute and into serving many personalized weights. SEAL needs a fine-tuning run per reward, SDFT is much more expensive than SFT, and TTT needs backpropagation for every request; if each user has their own weights, many adapters must be served at once. Personalized updates are efficient only at large batch sizes, so the larger the scale the better the economics, which tilts them toward large organizations.

Follow-up 5: In one minute, explain the progress and bottlenecks of continual learning as of 2026.

Tell it as "one principle, four questions, one bottleneck". In 2024, "updating weights after deployment" basically meant "fine-tune, then forget"; by 2026, the field has a toolkit and one unifying principle: forgetting comes mainly from how far training targets shift away from the model's own distribution. So writes should be on-policy (RL's Razor → OPD → SDFT), localized (sparse memory finetuning), made with varied data ideally generated by the model itself (SEAL, dreaming), and layered by timescale (TTT-E2E, Titans → Nested Learning → Sleep, FST). The bottleneck is the verifier: after each write it must confirm at once that the model learned, did not forget and is still safe, and today's checks are still narrow; and as of late 2026 no weight-level continual learner had been publicly deployed.

Follow-up 6: Why wouldn't solving continual learning by itself amount to full RSI?

Because it improves only this one model, and only within the architecture, data and training algorithms that humans designed. What determines how strong the next generation can be is research decisions about "how to build models"; improvements accumulate across model generations only once AI starts improving how the next model is built, which is the outermost loop of Chapter 6.

Common mistakes

  • Do not say that the "memory" features in products are weight-level continual learning: They are publicly described as storing and retrieving context, not changing weights.
  • Do not say that fast weights and slow weights are either/or: FST shows that the two can be updated alternately as a fast layer and a slow layer.
  • Do not say that "no public announcement" proves none exists: You can only say that public information shows no such deployment.
  • Do not say that a continually updated model needs to be evaluated only once before release: Weight drift invalidates pre-release evaluations, so every consolidation needs to pass a gate.
  • Do not say that solving continual learning amounts to achieving RSI: It improves only this one model; the outermost loop is AI improving how the next model is built.