Skip to content

Menu

WorksComputer Science

When Forgetting is not Catastrophic: On the Mechanics of Spurious Forgetting

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_8pqu9wae. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Knowledge that a language model appears to forget during finetuning often remains stored and can be recovered, a phenomenon called spurious forgetting. Finetuning on new facts can even produce forgetting that undoes itself: recall of the old facts collapses, recovers as training continues on new facts alone, and only then erodes for good. We seek to understand when such forgetting is not catastrophic. A minimal associative memory reproduces these dynamics with three ingredients: keys with shared structure, concentrated new values, and normalization in the network. Finetuning moves all old representations along a common direction, hiding the old facts while preserving their relative geometry; normalization withdraws this shift once the new facts are learned, whereas fact-specific changes accumulate and cause the erosion. Moreover, subtracting the common shift eliminates the collapse in a Transformer trained on synthetic data, and removing a single direction from each weight update restores old facts in a pretrained language model. Forgetting thus combines a shared, reversible loss of access with a slow erosion of individual facts, and only the second is catastrophic. Which one dominates depends on whether the new data move old memories together or apart.

vedantpalit/spurious-forgetting-mechanics

Introduction

Continually training a neural network on new data can severely damage the knowledge and skills it previously acquired, a phenomenon known as catastrophic forgetting [24, 32, 8]. It has been reported across many settings, from image classification [11, 42, 31] to deep reinforcement learning [18, 34], and large language models are no exception [22, 45, 23]. Yet, a loss of performance need not be a loss of knowledge: a different prompt can restore lost capabilities [19], and brief training on a few old examples can undo forgetting that reflects a loss of task alignment rather than of knowledge, named spurious forgetting [44]. Accuracy measured at a single point in training therefore cannot tell whether knowledge was erased or only hidden. What hides it, and whether training on the new data alone can reveal it again, remains unclear; we ask

When is forgetting not catastrophic?

We study this question for factual knowledge, as forgetting and loss of access can be cleanly disentangled. How language models store and retrieve facts is well understood [9, 25, 10, 27], and synthetic biographies [1, 45] let us specify exactly which facts the model knows, guarantee that the new facts were never seen before, and control how the two relate. We can then ask not only whether the model still outputs an old fact, but also whether the fact is still stored. In this setting, finetuning on new facts alone produces spurious forgetting in a particularly clear form (Figure 1): recall of the old facts collapses, then recovers as training continues on the same new facts, before a slower decline sets in. Since there is no replay of the old facts, the recovery can only come from knowledge that survived the collapse.

Figure 1. Changing only the finetuning data turns catastrophic forgetting into spurious forgetting. A transformer is pretrained on two non-overlapping sets of facts, AA and BB, and then finetuned on new facts only, without any replay. When the new facts overlap with both pretraining sets (left, finetuning on CC), performance on both declines slowly and steadily. When they overlap only with BB (right, fine-tuning on B′B^\prime), performance on BB is mostly intact, but performance on AA collapses, recovers although AA is never seen again, and later erodes. How the different sets are built and what it means for the new facts to overlap with the old ones is detailed in § 4.

Our contributions are as follows:

  • A clean case of spurious forgetting. In a controlled factual-recall setting, finetuning on new facts alone makes recall of the old facts collapse and then return, without any replay, and changing only where the new answers lie turns the same finetuning into steady forgetting.

  • A minimal mechanism. A minimal associative memory reproduces the phenomenon once three ingredients are present: keys with shared structure, new answers concentrated in one region, and normalization. Finetuning then moves all old representations together, which hides the old facts without erasing them, and normalization undoes this shift once the new facts are learned. Changes specific to each fact accumulate and cause a slower, lasting forgetting.

  • Causal evidence in trained models. In Transformers trained from scratch on synthetic data, removing the common shift eliminates the collapse, whose end is set by the learning of the new facts, not by the number of training steps. In a pretrained language model, recall of the old facts recovers only when the subjects of the new facts reveal nothing about their answers, and removing one direction of each weight update restores it beyond the trained model’s recall at equal new-fact accuracy.

Together, our results show that forgetting is not catastrophic when the update moves old memories together rather than apart: the knowledge is then hidden rather than erased, and can be recovered, sometimes by just continuing finetuning for longer.

Forgetting that undoes itself

To understand when forgetting is not catastrophic, we first need a setting in which it clearly is not: one in which performance collapses, yet the knowledge demonstrably survives (Appendix C.1). We use synthetic biographies (Allen-Zhu & Li, [1]), on which spurious forgetting was identified (Zheng et al., [44]), as they let us control what the model knows before finetuning and what it learns during it. A transformer is pretrained on two non-overlapping sets of biographies, AA and BB, in a single stage rather than one per set (Zheng et al., [44]), until it recalls all of their facts, and is then finetuned on biographies of new individuals, without any replay. We compare two sets of new biographies, CC and B′B^\prime, which differ only in how they overlap with the old ones. We describe how they are built, and what overlapping means precisely, in § 4; for now, the only relevant property is that CC overlaps with both AA and BB, while B′B^\prime overlaps only with BB (Figure 1, middle).

Finetuning on CC yields classical catastrophic forgetting behavior (Figure 1, left): as the new facts are learned, recall of both AA and BB declines slowly and steadily. Finetuning on B′B^\prime barely affects recall of BB, but recall of AA follows a strikingly different trajectory (Figure 1, right), in three phases that we refer to throughout the paper:

Corresponding author: [email protected]

  • Collapse: recall of AA quickly drops, well before the new facts are learned.

  • Recovery: recall of AA then partially returns as the new facts are acquired, although AA never reappears in training.

  • Erosion: finally, recall of AA declines slowly and persistently, as in catastrophic forgetting.

This trajectory raises two questions: why finetuning on B′B' hides the facts of AA while sparing those of BB, and why the collapse reverses on its own. Section 3 answers both in a minimal model. Section 4 then returns to Transformers, and to the biography structure needed for the phenomenon to appear.

A minimal model reveals the mechanism of spurious forgetting

Factual recall, including that of synthetic biographies, can be abstracted as an associative memory: each fact maps a key, the subject it is about, to a value, its answer, which the model must retrieve when queried. We show that a minimal associative memory reproduces spurious forgetting once three ingredients are present: keys that share a common structure, new values concentrated in one part of the vocabulary, and a normalization layer. Its learning dynamics then explain the phenomenon: the structure of the data causes the collapse, and normalization drives the recovery. We check each step of this explanation in the model in Appendix § 10.8.

Reproducing spurious forgetting in an associative memory model

Many phenomena of factual recall, such as how many facts a model can store as a function of its size ([2, 28]), how its loss scales ([4]) or the dynamics with which facts are learned ([45, 46]), can be reproduced in a simple feedforward associative memory, which strips away the sequence-modeling layers of the transformer.

Associative memory task. Each fact ii is represented by a key

ki=α μ+1−α ei,(1)k_i = \sqrt{\alpha}\,\mu+ \sqrt{1-\alpha}\,e_i, \tag*{(1)}

where μ\mu is a unit vector shared by all facts, eie_i a random unit vector specific to the fact, and α\alpha sets how much structure the keys share. Each key is associated with a value yiy_i, a token from a vocabulary of size VV that we split into two halves. The old facts form two sets, AA, whose values are drawn uniformly from one half, and BB, whose values are drawn from the other. The new facts B′B' have new keys, sampled in the same way, and draw their values from the same half as BB, just as the new biographies overlap with only one pretraining set in Figure 1 (right); drawing them from the entire vocabulary instead mirrors finetuning on CC (left). The data thus combine keys that share structure with new values concentrated in one half of the vocabulary.

Model. The model is a two-layer network with an RMS normalization layer ([43]) as the non-linearity between the two layers, followed by a softmax readout. It can be understood as the final linear layers of a Transformer. When queried with a key kik_i, the model outputs a probability distribution over values,

pi=softmax⁡(W2RMS⁡(hi)),with hi=W1ki.(2)p_i = \operatorname{softmax}(W_2\operatorname{RMS}(h_i)), \qquad\text{with } h_i = W_1 k_i. \tag*{(2)}

The RMS normalization divides the hidden state by its norm and multiplies it by d\sqrt{d}. The weight matrices W1W_1 and W2W_2 are trained with minibatch gradient descent on the cross-entropy loss, first on the pretraining data (AA and BB) and then on the finetuning data (B′B').

Each of these ingredients is necessary. We follow the old facts of AA over finetuning. The minimal model reproduces their collapse, recovery and erosion (Figure 2), and removing any one of its ingredients breaks this trajectory. With less shared structure in the keys, the collapse slows down until only gradual forgetting remains (panel 1). Drawing the values of the new facts from the entire vocabulary, as in finetuning on CC, likewise leaves only gradual forgetting (panel 2). Without normalization, or with a ReLU in its place, the old facts collapse and never recover (panel 3).

Figure 2. Shared keys, concentrated new values and normalization are all needed for the collapse, recovery and erosion. The model maps keys, which share a component of strength α\alpha, to values split into two regions, through one hidden layer with RMS normalization. As in Figure 1, it is pretrained on AA and BB, whose values lie in different regions, then finetuned only on new facts B′B', whose values lie in the region of BB; curves show recall of AA. Reducing α\alpha weakens the collapse and removes the recovery (1), drawing the new values from both regions leaves only gradual forgetting (2), and replacing the normalization removes the recovery (3). The model is described in Section 3.

Key sharing leads to collapse

Intuitively, a gradient step on a new fact moves not only its own hidden state but that of every key resembling its own. All keys share a common component, so whatever the updates of the new facts have in common is written into all hidden states at once, the more so as α\alpha grows. The result is a common shift that leaves the relative geometry of the hidden states mostly intact but, through the readout, favors the half of the vocabulary that contains the new answers, so that the facts of AA can no longer be decoded.

All hidden states move in the same direction. When the model learns a new fact, gradient descent updates the first layer so that the hidden state of every key similar to the new fact’s key moves against that fact’s error. Since all keys, old and new, share a common component, they are all pushed in the same direction whenever the errors of the new facts agree. Formally, under gradient flow on the finetuning loss,

h˙a=W˙1ka=−1nB∑b(kbTka) δb,where δb=∇hbℓb.(3)\dot{h}_a = \dot{W}_1 k_a = -\frac{1}{n_B}\sum_b (k_b^{\mathsf{T}} k_a)\,\delta_b,\quad\text{where }\delta_b = \nabla_{h_b}\ell_b. \tag*{(3)}

In high dimension, the fact-specific parts of different keys are nearly orthogonal, so the overlap kbTkak_b^{\mathsf{T}} k_a is close to its shared part α\alpha and, to leading order,

h˙a=−α δˉB,where δˉB=1nB∑bδb.(4)\dot{h}_a = -\alpha\,\bar{\delta}_B,\quad\text{where }\bar{\delta}_B = \frac{1}{n_B}\sum_b \delta_b. \tag*{(4)}

The terms this approximation ignores vary in sign from one new fact to the next and largely cancel, so they are negligible compared with the one it keeps as long as the errors δb\delta_b share a common component (Appendix B.4). All the old hidden states then move together in the same direction (Figure 3, left), at a speed proportional to α\alpha: this is why the collapse slows down as α\alpha decreases and disappears at α=0\alpha= 0 (Figure 2, panel 1).

Figure 3. Normalization reverses the shift responsible for forgetting. The old representations first move together along a shared direction. Once the new facts are learned and the individual margin becomes positive, the common shift retracts and the old facts are recalled again. Without a normalization layer, this reversal does not occur, which is why the collapse is permanent (Figure 2, panel 3). (left) Old hidden states before normalization, projected on the shared direction and an orthogonal one, after pretraining, at the end of the collapse and during erosion. (middle) Common shift magnitude ss of the old hidden states, with and without normalization. (right) Shared and individual margins of the new facts, which determine the dynamics of ss through Equation (5). Same setup as in Figure 2; the dotted line marks the end of the collapse.

Whether the errors share a common component depends on the finetuning data: pretraining covers both halves of the vocabulary, so the model’s predictions for the new keys are initially spread over both, whereas all the new answers lie in the same half, and on average the errors therefore all push probability toward this half. When the new answers are instead drawn from the entire vocabulary, this common push largely cancels, and so does the collapse (Figure 2, panel 2).

The common shift hides the facts of AA. The collapse of AA is a direct consequence of this common shift. Ignoring normalization for a moment, shifting all hidden states by the same vector adds the same bias to the logits of every old fact, favoring the half of the vocabulary that contains the new answers. The facts of AA, whose answers lie in the other half, therefore lose to the new answers. Normalization amplifies this effect. Once the shift accounts for most of the norm of the hidden states, normalizing rotates all of them toward the shift direction: the old states become more similar to one another, the part of each state that encodes the fact’s own answer is scaled down, and the predictions follow the shift toward the answers most common among the new facts. The facts of BB, whose answers lie in the favored half, are largely spared by the shift itself, which raises the answers of their half roughly together, in proportion to how often each is a new answer: removing the shift from their hidden states barely changes their recall, whereas it restores that of AA. As their answers are also those of the new facts, they are instead exposed to the fact-specific learning of the new facts, which erodes them steadily, mostly after the collapse (§ 3.3).

Normalization drives recovery

Early in finetuning, all hidden states are pushed in the same direction, and this common shift causes the collapse of AA. Because the normalization fixes the norm of each hidden state, the growing shift comes at the expense of the individual parts, which encode each fact’s own information and eventually become negligible. At first, this also helps the new facts, whose individual parts point to wrong answers. However, once the model has learned their individual associations, the shift drowns these as well and prevents the model from predicting the new facts correctly. Finetuning then undoes the shift, both on the new facts and on the old facts, restoring the individual parts of every hidden state. For the facts of AA, these still carry most of the information that distinguishes them from one another, and the readout weights of their answers are barely changed by finetuning, as they only receive gradient while the model still puts probability on these answers for the new facts. The facts of AA can therefore be read out again, and their recall partially recovers.

Normalization reverses the shift. We track the common shift through the norm ss of the displacement of the old facts’ mean hidden state hˉA\bar{h}_A since the start of finetuning, and call its direction u^sh\hat{u}_{\mathrm{sh}} the shared direction. Through Equation (4), the dynamics of ss are governed by whether pushing the hidden states of the new facts along the shared direction improves their predictions or not. Because of the normalization, such a push has two competing effects. On the one hand, it adds shared component, which improves the predictions on the new facts in proportion to the shared margin γˉsh\bar{\gamma}_{\mathrm{sh}}: the extra logit that the shared direction gives the correct answer compared with the model’s current prediction, averaged over the new facts. On the other hand, it scales their individual parts down, which changes their predictions in proportion to the individual margin γˉind\bar{\gamma}_{\mathrm{ind}}, the same quantity measured along their individual parts. Assuming for simplicity that all new hidden states have the same coordinate ss along u^sh\hat{u}_{\mathrm{sh}} and the same individual norm σ\sigma, we obtain, to leading order,

s˙=αd σ(σˉγˉsh−σˉγˉind)(s2+σ2)3/2,with s(0)=0.(5)\dot{s} = \alpha\sqrt{d}\,\frac{\sigma\left(\bar{\sigma}\bar{\gamma}_{\mathrm{sh}}-\bar{\sigma}\bar{\gamma}_{\mathrm{ind}}\right)}{\left(s^2+\sigma^2\right)^{3/2}}, \qquad\text{with } s(0)=0. \tag*{(5)}

The first term corresponds to the added shared component and the second to the smaller individual parts; their relative size determines whether the common shift grows or shrinks. The derivation of this equation and the precise definitions of the two margins are given in Appendix § 10.§ 5.

This equation explains the dynamics of the common shift in Figure 3. The shared margin only matters in the first steps of finetuning. The shared direction can move probability between the two halves of the vocabulary, but not between the answers within a half: γˉsh\bar{\gamma}_{\mathrm{sh}} is positive at first, and once the predictions for the new facts have moved to the half of their answers, it can no longer improve them and remains close to zero (Figure 3, right). The shared margin thus sets the direction of the shift, and the individual margin then sets its magnitude. The new facts are initially confidently wrong, γˉind<0\bar{\gamma}_{\mathrm{ind}} < 0, so scaling their individual parts down helps them: ss grows, and the growth reinforces itself. Once the individual parts of the new facts point to their correct answers, γˉind\bar{\gamma}_{\mathrm{ind}} becomes positive (Figure 3, right) and the same term pulls ss back (Figure 3, middle). The shift therefore peaks when γˉind\bar{\gamma}_{\mathrm{ind}} crosses zero. This reversal waits for fact-specific learning, which is slow: the error of each new fact enters its own state with weight 1/nB1/n_B, whereas their common component enters every state with weight α\alpha (Appendix § 10.§ 4), in line with the general observation that shared structure is learned before item-specific structure ([35]). Without normalization, adding a shared component no longer scales the individual parts down, the γˉind\bar{\gamma}_{\mathrm{ind}} term disappears in Equation (5), and s˙=αγˉsh\dot{s} = \alpha\bar{\gamma}_{\mathrm{sh}}. Nothing pulls the shift back (Figure 3, middle) and the collapse is permanent (Figure 2).

The facts of AA are hidden, not erased. Undoing the common shift only restores the facts of AA if what distinguishes them from one another has survived, and it does, for two reasons. First, beyond the common shift, each old hidden state only receives the part of the update carried by the fact-specific parts of the new keys, which overlap weakly with its own key (Appendix § 10.§ 3). This individual displacement stays small during the collapse: while the mean of the old hidden states moves a lot, their relative geometry barely changes (Figure 3, left). The facts of AA therefore keep their ordering within their own half, and even at the bottom of the collapse most of them still rank their correct answer first among the answers of that half (Appendix § 10.8). Second, the readout weights of the answers of AA receive little gradient: they are only updated while the model puts probability on these answers for the new facts, which stops early in finetuning. Removing the part of the update that acts on the shared direction, ΔW1(t) μμ⊤\Delta W_1(t)\,\mu\mu^\top, while keeping everything else, including the finetuned readout, restores their recall almost entirely (Figure 13). The collapse is thus a loss of access to the facts of AA, not a loss of the facts themselves.

Figure 13. Removing the shared part of the update restores the old facts. Accuracy on the old (left) and new (right) facts as trained and with ΔW1μμ⊤\Delta W_1\mu\mu^\top removed from the store, the readout kept as trained. The dotted line marks the trough; ten seeds.

The individual displacements nonetheless keep accumulating after the collapse, and they are not neutral: each old hidden state drifts toward the answers of the new facts whose keys overlap most with its own. For AA, restoring the mean hidden state therefore helps less and less as finetuning proceeds, and recovery remains incomplete. For BB, whose answers are those of the new facts, this drift, together with the readout weights of their half, which are refit to the new facts, erodes recall throughout finetuning, and removing the common shift barely helps.

The mechanism in a controlled Transformer

Having identified the mechanism behind spurious forgetting in a minimal model, we now return to the Transformer of Figure 1 and test whether its collapse and recovery follow the mechanism of the minimal model, first by showing that its data meet the same conditions, then through measurements and interventions on its representations. Table 1 lists where each analysis is repeated across models.

AnalysisMinimal modelTransformer attention-onlyTransformer with MLP blocksOLMo 2 1B
Collapse, recovery and erosionFigure 2Figure 1App. C.5Figure 5
New answers in both regionsFigure 2Figure 1App. C.5–
Common shift and fact-specific driftApp. B.10Figure 4App. C.5–
Removing the common shiftApp. B.9Figure 4App. C.5–
Ordering within the regionApp. B.8App. C.1App. C.5–
Weights that carry the shift–App. C.4App. C.5–
Learning rate and batch sizeApp. C.3App. C.2App. C.5–
Number of new factsApp. C.3App. C.3App. C.3Figure 5
Removing the top direction of the updateApp. B.10App. D.3App. D.3Figure 5

Table 1. Reference location for each analysis, for each model.

Training Transformers on synthetic biographies meets the conditions

The minimal model identifies three conditions for spurious forgetting: a normalization layer, keys that share structure, and new answers concentrated in one region of the output space. The first condition is met by any Transformer, as every residual block contains a normalization layer ([40]). In the pre-normalization architecture we use ([30, 41]), the last one sits just before the readout. The other two are properties of the data, which we now describe. The synthetic biographies of Section 2 ([1, 45]) describe a large population of fictitious individuals, each with a unique name and a few attributes, such as a hometown or an employer. Each fact is stated by filling templates shared across all individuals, such as The hometown of [name] is [city] (Figure 4, left), and each set of biographies, AA, BB, B′B' or CC, contains its own individuals, so that the new facts are about individuals the model has never seen. If we view the feedforward layers of a Transformer as an associative memory in which part of the context serves as the key and the next token as the value ([9]), the key of a fact is the name of the individual together with the attribute being queried, and its value is the answer. As all facts about a given attribute are queried in a similar way, their keys share structure. by design, just as the keys of the minimal model share the component μ\mu. The last condition is not present by default, so we build it into the data: we split the possible answers of each attribute at random into two subsets. The individuals of AA draw their answers from the first subset and those of BB from the second. The finetuning sets therefore overlap with the old sets through their answers alone: those of B′B' draw their answers from the second subset, like BB, and those of CC from both subsets. Details of the data and the model are given in Appendix A.1.

Figure 4. The Transformer initially forgets through the same common shift as the minimal model. (left) The Transformer is trained on synthetic biographies of fictitious individuals, each stating several facts about them, such as where they come from. The possible answers of each attribute are split into two subsets: the individuals of AA draw their answers from the first, and those of BB from the second. The model is pretrained on AA and BB, then finetuned on new individuals B′B' whose answers come from the same subset as BB; this is the setup of Figure 1 (right). (middle) The common shift Δhˉ\Delta\bar{h} of the hidden states of AA grows fast and retracts at the end of the collapse, as in the minimal model (Figure 3). The fact-specific displacements εa\varepsilon_a grow more slowly and eventually become larger. (right) Accuracy on AA, and when only the common part of the change of its logits is kept or removed. The dotted line indicates the end of the collapse.

The Transformer shows the same geometric split

In the minimal model, the hidden states of the old facts first move together: their mean moves away from its pretrained value until the end of the collapse and then comes back, while the fact-specific displacements keep growing. To test whether the same happens in the Transformer, we track the representations of the old facts of AA at the input of the readout, at the position where the model predicts the first token of the answer, for example Boston in Figure 4 (left). As in the minimal model, we decompose the displacement of each representation since the start of finetuning into a common shift Δh(t)\Delta h(t), its average over the facts of AA about the same attribute, and a fact-specific remainder εa(t)\varepsilon_a(t), whose size we measure by its average norm over the facts of AA.

The two components evolve as the minimal model predicts (Figure 4, middle). The common shift grows quickly, peaks around the bottom of the collapse, and then partly retracts during the recovery, as in Figure 3 (middle). The fact-specific drift grows more slowly and, apart from a brief pause around the bottom of the collapse, keeps growing until it exceeds the common shift.

Subtracting the common shift removes the collapse

The minimal model predicts that the common shift alone causes the collapse: undoing it should restore the old facts, as long as what distinguishes them from one another has survived. Since the readout is linear and shared by all facts, a common shift of the readout states adds the same change to the logits of all old facts. We therefore test this prediction on the logits, at the same position as above: we write the change of the logits of each old fact aa since the start of finetuning as za(t)−za(0)=c(t)+va(t)z_a(t)-z_a(0)=c(t)+v_a(t), where c(t)c(t) is its average over the facts of AA about the same attribute, and measure recall from za(0)+c(t)z_a(0)+c(t), with only the common part, and from za(t)−c(t)z_a(t)-c(t), with the common part removed.

As predicted, subtracting the common part removes the collapse entirely (Figure 4, right): the old facts remain almost perfectly recalled, and only the slow decline caused by the fact-specific drift is left. Keeping only the common part does the opposite and produces a collapse and a recovery by itself. This collapse is shallower than in the trained model, because the common shift brings the old facts close to losing to the new answer region and the fact-specific drift pushes many of them across. The collapse is therefore caused by the common shift, and erosion by the fact-specific drift.

The shift is carried mostly by the attention value and output weights, with little contribution from the query and key weights (Appendix § 11.§ 4). In our attention-only architecture, these are the weights that write content into the residual stream, whereas the query and key weights only decide where attention goes, so this is consistent with the common shift being written into the associative memories of the network, as in the minimal model. With MLP blocks, the same three phases appear, and subtracting the common shift again removes the collapse (Appendix § 11.§ 5).

The learning rate changes the depth of the collapse

In the minimal model, the common shift reverses once the individual margin of the new facts turns positive (§ 3.3), so the end of the collapse should be tied to the learning of the new facts rather than to a number of steps. Varying the learning rate and the batch size of finetuning confirms this (Appendix § 11.§ 2): the bottom of the collapse moves by a factor of three in steps, but falls at nearly the same accuracy on the new facts. This accuracy depends on how many new facts there are, however: with fewer, the bottom comes later in their learning, in the Transformer as in the minimal model, where the shift still peaks when the individual margin turns positive (Appendix § 11.§ 3).

The depth of the collapse, in contrast, increases with the learning rate. This effect lies outside our gradient-flow analysis, in which the learning rate only rescales time. It is consistent with the observation that larger learning rates cause more forgetting, in continual pretraining ([12, 17]) as in finetuning at matched loss ([37, 21, 33]), and shows that part of this effect acts on forgetting that is spurious, and reverses once the new facts are learned.

The collapse in a pretrained language model

The controlled transformer meets the conditions of the minimal model by construction while a pretrained language model does not. We can still choose new facts whose answers the old facts never use, but the structure its keys share was set by pretraining on real text, so nothing guarantees that finetuning writes a common shift, or that it later withdraws it. The minimal model makes a prediction for each. The shift should be withdrawn only once the new facts have nothing left in common that helps predict their answers, so that each must be learned on its own; we test this with two kinds of new facts, one that meets this condition and one that does not. And since the shift of the hidden states is written by a single direction of the weight update, the one along which all new facts write together (§ 3.3), removing the top direction of each weight update should bring the old facts back.

The collapse persists, and reverses when the new facts are arbitrary

OLMo 2 1B (Team OLMo et al., [38]) knows far more facts than we can track, so we take as old facts the CounterFact facts (Meng et al., [25]) it answers correctly before finetuning; they play the role of AA (Appendix § 9.§ 2). We then finetune it without replay on documents stating new facts about people or products, in two separate runs with two kinds of new facts. In both, no new answer shares its first token with the answer of a tracked old fact, so the new answers occupy a region of the output space those old facts do not use, as the answers of B′B' do for AA. The two kinds differ in what their subjects say about their answers (§ 3.3). Synthetic individuals, invented names that receive real companies, cities, countries and languages at random, say nothing: as in the minimal model, the shared direction helps them reach the region of their answers, but not choose within it. Real entities, products from EntityQuestions (Sciavolino et al., [36]) whose manufacturer the model does not know, say something: the kind of product hints at the kind of manufacturer, as a car model hints at a carmaker, so the shared direction keeps helping within the region.

With both kinds of new facts, recall of the old facts first rises slightly, although none of them is replayed: finetuning on documents that state facts makes the model favor answers over other continuations, which fixes old facts it already ranked correctly among the possible answers (Appendix § 12.§ 1).

With synthetic individuals, the trajectory of the controlled settings then reappears (Figure 5, left): recall of the old facts collapses before almost any new fact is recalled, recovers as the new facts are learned, and then erodes. More new facts delay the recovery, as each drives its own association with weight 1/nB1/n_B (§ 3.3): with a four times larger set of individuals, the collapse lasts longer and goes deeper (Figure 5, right). With real entities, the old facts never recover and keep declining even after every new fact is recalled: the shared direction keeps helping the new facts choose their answers within the region, so the shift is never withdrawn.

Figure 5. The collapse persists in a pretrained language model, but training reverses it only for arbitrary new facts. OLMo 2 1B is finetuned without replay, in separate runs, on synthetic individuals or on real entities. Old facts (CounterFact facts the model knows) are solid, new facts dotted; three seeds. (left) Recall of the old facts drops for both kinds of new facts, but recovers only for synthetic individuals. (middle) Removing the top singular direction of each weight update (light) restores recall of the old facts for both kinds, whereas removing a random direction of the same norm leaves it where training did (dark). (right) With a larger set of synthetic individuals, the collapse goes deeper and lasts longer.

Removing one direction of the update restores the old facts

In the controlled Transformer, we removed the common shift from the hidden states and logits of the old facts, which were all queried in the same way. In a pretrained model, the old facts are queried through varied prompts, at varied positions, so there is no single set of states over which to average, whereas the weights write the shift whatever the prompt. We therefore act on the weights. In the minimal model, the part of the update that all new facts share is rank-one, written along the shared key direction (Equation (3)), and it initially dominates the update, while the errors of the new facts are aligned. In a deep network it need not be rank-one at any single layer, but it should still initially dominate each weight update, and thus concentrate in its top singular direction. In the minimal model and in both controlled Transformers, removing this direction indeed restores the old facts at the bottom of the collapse, and what it removes is aligned with the common shift (Appendices § 10.10 and § 12.§ 3). We therefore subtract the top singular component of the update of every weight matrix in the Transformer blocks of the language model, or, as a control, a random rank-one matrix of the same norm, and evaluate the edited model (Appendix § 12.§ 2).

The edit largely removes the collapse (Figure 5, middle), whereas the random control leaves recall exactly where training left it (Appendix § 12.§ 2). With synthetic individuals, only the slow erosion remains. With real entities, the edit restores most of the old facts that training never brought back: their steady decline was mostly a shift that was never withdrawn, not erasure. The removed direction also lowers recall of the new facts, but the edit does not rewind finetuning: once the new facts are partly learned, the edited model recalls more old facts than the trained model did at the same accuracy on the new facts (Appendix § 12.§ 2).

Discussion

That a loss of performance need not be a loss of knowledge is an old idea: psychology separates stored from accessible information ([39, 7]), and suppressed associations return once interference stops ([29]). Connectionist networks show the same savings, and training them on unrelated associations can even restore forgotten ones [15, 47, 13, 3]. In deep networks, linear probes often recover old tasks that the outputs no longer solve, a phenomenon called shallow forgetting [26, 5, 14, 20]; performance drops sharply at the start of a new task before returning with some replay [6, 45]; and language models recover lost capabilities with a different prompt [19] or a few old examples, a case named spurious forgetting [44]. In the settings we identify, the finetuning that hides the old facts also restores them, without probe, prompt or replay, through a shared shift that normalization withdraws once the new facts are learned. This shift towards the new answers may be one concrete form of the loss of task alignment that Zheng et al. [44] identify behind spurious forgetting.

Forgetting is usually measured as a single quantity that grows with training, whereas our results suggest two processes on different timescales: a loss of access shared by all old facts, set by what the new data have in common, and a slower erosion specific to each fact. The pretrained model also points to a trade-off between learning new facts quickly and recovering old ones. When the subjects of the new facts share something that predicts their answers, as the kind of a product predicts the kind of its manufacturer, the shared direction helps the model learn them, and they are learned faster. But for the same reason the shift along this direction keeps helping the new facts, so it is never withdrawn, and the old facts stay hidden. What helps a model generalize to new facts may thus be what keeps it from recovering the old ones.

Limitations. Our minimal model is deliberately extreme, and normalization-driven recovery is likely weaker on real data, although the collapse may be more general. In the pretrained model, we attribute the difference in recovery to what the subjects reveal about their answers, but the two kinds of new facts also differ in other ways, and we study a single model.

Acknowledgment

This work was supported in part by the German Federal Ministry of Education and Research (BMBF): Tübingen AI Center, FKZ: 01IS18039B; by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy – EXC number 2064/1 – Project number 390727645; by Schmidt Sciences SAFE-AI Grant; by Coefficient Giving; and by the Hector Foundation. Resources used in preparing this research project were provided by the Max Planck Institute for Intelligent Systems and, in part, by the Province of Ontario, the Government of Canada through CIFAR, and companies sponsoring the Vector Institute.

References

Table 1 lists where each analysis of the minimal model is repeated in the other models.

Figure 6. Examples from the three datasets. Each fact is learned from training phrasings and evaluated on held-out phrasings; answers in bold. The old facts of the language model are facts it already knows, and the new facts concern synthetic individuals, whose answers are unrelated to their names, or little-known real entities.

Experimental setup

Controlled transformer

Data. The transformer is trained on synthetic biographies [1, 45]. Each individual has a unique name, made of a first, a middle and a last name, and six attributes: birth year, birthplace, university, field of study, employer and work city. Each attribute takes one value from a fixed pool of between 127 and 221 values. Every fact is stated in a sentence drawn from 25 phrasings of its attribute; for each individual and attribute, 20 phrasings are used for training and the remaining 5 are held out for evaluation. A biography consists of one sentence per attribute, in random order.

Old and new facts. The possible values of each attribute are split at random into two halves. Two pretraining populations of 2,000 individuals each draw their values from one half and from the other, respectively. Finetuning uses 500 new individuals, none of whom appear in pretraining, whose values are drawn either from the second half only (Figure 1, right) or from both halves (Figure 1, left).

Model and training. The model is an 8-layer transformer with model dimension 512, 8 attention heads, rotary position embeddings and pre-layer normalization, without MLP blocks and without dropout. It is pretrained for 16,000 steps with batches of 256 biographies, using AdamW (β1=0.9\beta_1 = 0.9, β2=0.95\beta_2 = 0.95, weight decay 0.1, gradient clipping at 1) with a cosine learning-rate schedule from 5×10−45 \times10^{-4}, until it recalls the pretraining facts perfectly. Finetuning uses the same optimizer and batch size with a peak learning rate of 3.75×10−53.75 \times10^{-5} over 1,200 steps, and sees only the new individuals. Results are averaged over three to five finetuning seeds.

Evaluation. Recall is the accuracy on the first token of the attribute value, predicted from the held-out phrasings of each fact. The within-region rank used in Appendix § 11.§ 1 ranks the correct value among the values of its own half.

Pretrained language model

Old facts. The old facts are CounterFact facts [25] that OLMo 2 1B [38] answers correctly before finetuning, 1,106 in total across relations such as manufacturers, headquarters and citizenship. Evaluation uses the 422 facts whose answer does not appear in the prompt, so that accuracy measures recall rather than copying.

New facts. The synthetic individuals have invented names and four attributes (employer, birth city, citizenship and language), with values drawn from pools of 66 real entities whose first tokens differ from those of the old answers. The large finetuning set contains 1,000 individuals and the small set 250. The real entities are products from EntityQuestions [36] with their manufacturers: 1,415 facts over 407 manufacturers, restricted to facts the model does not know before finetuning, whose answers share no first token with the old answers and do not appear in the subject’s name, with at most 60 facts per manufacturer. Each new fact is stated through 15 phrasings, 12 for training and 3 held out for evaluation.

Finetuning. Training documents are rendered afresh at every step from the training phrasings, with 32,768 tokens per step in sequences of 512 tokens. We use AdamW (β1=0.9\beta_{1} = 0.9, β2=0.95\beta_{2} = 0.95, no weight decay, gradient clipping at 1) with a learning rate of 10−510^{-5} after a 100-step linear warmup, and no replay of any pretraining data. Results are averaged over three seeds.

Evaluation. Recall is the top-1 accuracy of the first answer token over the full vocabulary, on the held-out phrasings for the new facts and on the CounterFact prompts for the old facts.

Analysis of the minimal model

This section derives the results of § 3.2 and § 3.3: the decomposition of the displacement of the old facts, how the new facts write into them, the dynamics of the common shift, and the size of the fact-specific displacements. We also describe how we verify these results in simulations, and the interventions we run on the minimal model.

Notation, assumptions and simulations

Recall that each fact ii is represented by a key

ki=α μ+1−α ei∈Rd,(6)k_i = \sqrt{\alpha}\,\mu+ \sqrt{1-\alpha}\,e_i \in\mathbb{R}^d, \tag*{(6)}

with μ\mu a unit vector shared across all facts and eie_i drawn uniformly on the unit sphere, independently for each fact. The model computes

hi=W1ki,xi=RMS⁡(hi)=d hi∥hi∥,zi=W2xi,pi=softmax⁡(zi),(7)h_i = W_1 k_i,\qquad x_i = \operatorname{RMS}(h_i) = \sqrt{d}\,\frac{h_i}{\lVert h_i\rVert},\qquad z_i = W_2 x_i,\qquad p_i = \operatorname{softmax}(z_i), \tag*{(7)}

so that every normalized hidden state has norm d\sqrt{d}. During finetuning, the loss is the cross-entropy on the new facts only,

LB=1nB∑b∈Bℓb,ℓb=−log⁡pb,yb.(8)L_B = \frac{1}{n_B}\sum_{b\in B}\ell_b,\qquad\ell_b = -\log p_{b,y_b}. \tag*{(8)}

We use the index aa for old facts (set AA) and bb for new facts (set B′B', written BB in subscripts), bars for averages over a set (e.g. hˉA=1nA∑aha\bar{h}_A = \frac{1}{n_A}\sum_a h_a), hats for unit vectors (e.g. h^=h/∥h∥\hat{h}=h/\lVert h\rVert), and 1y\mathbf{1}_y for the one-hot vector of token yy. Time t=0t=0 corresponds to the beginning of finetuning, and ΔW1=W1(t)−W1(0)\Delta W_1 = W_1(t)-W_1(0).

Assumptions. The analysis relies on four assumptions, each used only where stated:

Asm. 1 Gradient flow dynamics. We study the gradient flow W˙1=−∇W1LB\dot{W}_1=-\nabla_{W_1}L_B, W˙2=−∇W2LB\dot{W}_2=-\nabla_{W_2}L_B on the finetuning loss. Minibatch gradient descent with a small learning rate η\eta, which we use in our simulations, approximates it, one step corresponding to a time increment η\eta.

Asm. 2 High-dimensional keys. The overlap u⊤vu^\top v between two independent random unit vectors of Rd\mathbb{R}^d has zero mean and variance 1/d1/d. We therefore treat all the overlaps ei⊤eje_i^\top e_j (i≠ji\ne j) and μ⊤ei\mu^\top e_i as small, of order d−1/2d^{-1/2}, and only keep the leading-order terms in these overlaps.

Asm. 3 The update does not depend on the old keys. The old facts are not trained during finetuning, so ΔW1\Delta W_1 only depends on their keys through the parameters at the end of pretraining. We neglect this dependence and treat the eae_a as independent of ΔW1\Delta W_1. This assumption is only used in Section B.11.

Asm. 4 Common coordinate. All new hidden states have the same coordinate along the shared direction u^sh\hat{u}_{\mathrm{sh}} and the same norm orthogonal to it. This assumption is only used to obtain the closed-form Equation (5) (Section B.6); the full dynamics do not rely on it.

The readout W2W_2 does not appear in the old hidden states ha=W1kah_a=W_1k_a. All the results on the hidden states below therefore hold whether the readout is trained or not: W2W_2 only enters through the errors of the new facts, evaluated at its current value. We return to the effect of the readout on the outputs of the old facts in Section B.12.

Simulations. All simulations use d=128d=128, a vocabulary of V=32V=32 tokens split into two halves of 16, and n=128n=128 facts in each of AA, BB and B′B', with α=0.5\alpha=0.5 unless stated otherwise. The model is pretrained on AA and BB with minibatches of 32 facts until both sets are recalled with accuracy at least 0.99, then finetuned on B′B' alone with minibatches of 32 new facts, at a learning rate chosen so that the new facts reach the same accuracy around step 200. Results are averaged over ten seeds unless stated otherwise.

Gradients of the finetuning loss

We first compute the gradients of the finetuning loss with respect to the hidden states and to the two weight matrices, which the rest of the analysis uses throughout.

Error at the logits and at the normalized state. For the cross-entropy loss, the error of the new fact bb with respect to its logits is

∇zbℓb=pb−1yb,(9)\nabla_{z_b}\ell_b = p_b - \mathbf{1}_{y_b}, \tag*{(9)}

and, as zb=W2xbz_b = W_2x_b, its error with respect to the normalized state is

∇xbℓb=W2T(pb−1yb).(10)\nabla_{x_b}\ell_b = W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b}). \tag*{(10)}

Error at the hidden state. We denote by δb:=∇hbℓb\delta_b := \nabla_{h_b}\ell_b the error of the new fact at its hidden state. Without normalization, xb=hbx_b=h_b and δb=W2T(pb−1yb)\delta_b = W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b}). With normalization, the Jacobian of h↦d h/∥h∥h\mapsto\sqrt{d}\,h/\lVert h\rVert is

∂x∂h=d(I∥h∥−hhT∥h∥3)=d∥h∥(I−h^h^T).(11)\frac{\partial x}{\partial h}=\sqrt{d}\left(\frac{I}{\lVert h\rVert}-\frac{hh^{\mathsf{T}}}{\lVert h\rVert^3}\right)=\frac{\sqrt{d}}{\lVert h\rVert}\left(I-\hat{h}\hat{h}^{\mathsf{T}}\right). \tag*{(11)}

It is symmetric, so

δb=d∥hb∥(I−h^bh^bT)W2T(pb−1yb),(12)\delta_b=\frac{\sqrt{d}}{\lVert h_b\rVert}\left(I-\hat{h}_b\hat{h}_b^{\mathsf{T}}\right)W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b}), \tag*{(12)}

which is the expression of the main text. The normalization has two effects on the error: it divides it by the norm of the state, and it removes its component along the state, h^bTδb=0\hat{h}_b^{\mathsf{T}}\delta_b=0, since the loss does not depend on the norm of hbh_b.

The removed component has a simple interpretation. As h^bTW2T(pb−1yb)=d−1/2xbTW2T(pb−1yb)=d−1/2zbT(pb−1yb)\hat{h}_b^{\mathsf{T}}W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b})=d^{-1/2}x_b^{\mathsf{T}}W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b})=d^{-1/2}z_b^{\mathsf{T}}(p_b-\mathbf{1}_{y_b}), we have

δb=d∥hb∥W2T(pb−1yb)+γb∥hb∥h^b,with γb:=zb,yb−pbTzb.(13)\delta_b=\frac{\sqrt{d}}{\lVert h_b\rVert}W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b})+\frac{\gamma_b}{\lVert h_b\rVert}\hat{h}_b,\qquad\text{with }\gamma_b:=z_{b,y_b}-p_b^{\mathsf{T}}z_b. \tag*{(13)}

Here γb\gamma_b is the confidence margin of the new fact: the logit of the correct answer minus the average logit under the model’s prediction. It is negative when the model confidently predicts a wrong answer and positive when it predicts the correct one. The first term is, up to a rescaling, the error a model without normalization would receive. The second term points along the new fact’s own state, with a sign given by its margin; for the new fact itself, it cancels the component of the first term along h^b\hat{h}_b.

Gradients with respect to the weights. As hb=W1kbh_b=W_1k_b, the gradient of the loss of the new fact bb with respect to W1W_1 is the outer product of its error and its key, ∇W1ℓb=δbkbT\nabla_{W_1}\ell_b=\delta_bk_b^{\mathsf{T}}, and averaging over the new facts gives

∇W1LB=1nB∑bδbkbT.(14)\nabla_{W_1}L_B=\frac{1}{n_B}\sum_b\delta_bk_b^{\mathsf{T}}. \tag*{(14)}

Similarly, as zb=W2xbz_b=W_2x_b,

∇W2LB=1nB∑b(pb−1yb)xbT.(15)\nabla_{W_2}L_B=\frac{1}{n_B}\sum_b(p_b-\mathbf{1}_{y_b})x_b^{\mathsf{T}}. \tag*{(15)}

As W2W_2 sits after the normalization, its gradient does not involve the Jacobian above: unlike W1W_1, it receives no term along the new facts’ states.

Decomposition of the displacement of the old facts

The keys are fixed and the old facts are not trained, so the displacement of an old hidden state is entirely due to the change of W1W_1:

ha(t)−ha(0)=ΔW1ka=α ΔW1μ+1−α ΔW1ea.(16)h_a(t)-h_a(0)=\Delta W_1k_a=\sqrt{\alpha}\,\Delta W_1\mu+\sqrt{1-\alpha}\,\Delta W_1e_a. \tag*{(16)}

This decomposition is exact. Averaging it over the old facts gives

hˉA(t)−hˉA(0)=α ΔW1μ+1−α ΔW1eˉA,(17)\bar{h}_A(t)-\bar{h}_A(0)=\sqrt{\alpha}\,\Delta W_1\mu+\sqrt{1-\alpha}\,\Delta W_1\bar{e}_A, \tag*{(17)}

and the deviation of each old fact from this mean motion is

εa:=(ha(t)−ha(0))−(hˉA(t)−hˉA(0))=1−α ΔW1(ea−eˉA).(18)\varepsilon_a:=\left(h_a(t)-h_a(0)\right)-\left(\bar{h}_A(t)-\bar{h}_A(0)\right)=\sqrt{1-\alpha}\,\Delta W_1(e_a-\bar{e}_A). \tag*{(18)}

The mean displacement thus equals the common shift α ΔW1μ\sqrt{\alpha}\,\Delta W_1\mu up to the term 1−α ΔW1eˉA\sqrt{1-\alpha}\,\Delta W_1\bar{e}_A. As eˉA\bar{e}_A is the average of nAn_A independent random unit vectors, E∥eˉA∥2=1/nA\mathbb{E}\lVert\bar{e}_A\rVert^2=1/n_A, and the calculation of Section B.11 shows that this term is a factor nA\sqrt{n_A} smaller than a typical individual displacement εa\varepsilon_a. We therefore measure the common motion through the norm of the mean displacement, s=∥hˉA(t)−hˉA(0)∥s=\lVert\bar{h}_A(t)-\bar{h}_A(0)\rVert (Figure 3, middle), and the fact-specific motion through the spread

εrms(t):=(1nA∑a∥εa(t)∥2)1/2(19)\varepsilon_{\mathrm{rms}}(t):=\left(\frac{1}{n_A}\sum_a\lVert\varepsilon_a(t)\rVert^2\right)^{1/2} \tag*{(19)}

(Figure 14). When α=0\alpha=0, the common shift vanishes identically, and the whole displacement is fact-specific.

Figure 14. The spread of the old facts is set by the Frobenius norm of the update. (left) Measured spread εrms\varepsilon_{\mathrm{rms}} of the old hidden states during finetuning, compared with (1−α)/d∥ΔW1∥F\sqrt{(1-\alpha)/d}\lVert\Delta W_1\rVert_F and with (1−α)/d∥ΔW⊥∥F\sqrt{(1-\alpha)/d}\lVert\Delta W_\perp\rVert_F (Equation 47). (right) Measured against predicted; the prediction runs slightly low only while the shared column of the update is large. Ten seeds.

How the new facts write into the old hidden states

The write of a single new fact. Under the gradient flow dynamics, (14) gives

W˙1=−∇W1LB=−1nB∑bδbkbT,(20)\dot{W}_1=-\nabla_{W_1}L_B=-\frac{1}{n_B}\sum_b\delta_b k_b^{\mathsf{T}}, \tag*{(20)}

so each new fact writes its error δb\delta_b into W1W_1 along its own key. The old facts are not part of the finetuning loss, but their hidden states move with W1W_1, and as their keys are fixed,

h˙a=ddt(W1ka)=W˙1ka=−1nB∑b(kbTka) δb,(21)\dot{h}_a=\frac{\mathrm{d}}{\mathrm{d}t}(W_1k_a)=\dot{W}_1k_a=-\frac{1}{n_B}\sum_b(k_b^{\mathsf{T}}k_a)\,\delta_b, \tag*{(21)}

where we used that kbTkak_b^{\mathsf{T}}k_a is a scalar. Each new fact thus adds its error δb\delta_b to every old state, weighted by the overlap of their keys. This equation is exact.

Key overlaps. Expanding the keys and using μTμ=1\mu^{\mathsf{T}}\mu=1, the overlap between a new and an old key is

kbTka=α+α(1−α)(μTea+μTeb)+(1−α)ebTea.(22)k_b^{\mathsf{T}}k_a=\alpha+\sqrt{\alpha(1-\alpha)}\left(\mu^{\mathsf{T}}e_a+\mu^{\mathsf{T}}e_b\right)+(1-\alpha)e_b^{\mathsf{T}}e_a. \tag*{(22)}

Under Assumption 2, the last three terms have zero mean and are of order d−1/2d^{-1/2}, so every pair of keys overlaps by approximately α\alpha. For the same reason, ∥kb∥2=1+2α(1−α) μTeb≃1\lVert k_b\rVert^2=1+2\sqrt{\alpha(1-\alpha)}\,\mu^{\mathsf{T}}e_b\simeq1.

The mean write. (21) is linear in kak_a, so averaging it over the old facts amounts to replacing kak_a by their mean key:

hˉ˙A=1nA∑ah˙a=−1nB∑b(kbTkˉA) δb,with kˉA=α μ+1−α eˉA.(23)\dot{\bar{h}}_A=\frac{1}{n_A}\sum_a\dot{h}_a=-\frac{1}{n_B}\sum_b(k_b^{\mathsf{T}}\bar{k}_A)\,\delta_b,\qquad\text{with }\bar{k}_A=\sqrt{\alpha}\,\mu+\sqrt{1-\alpha}\,\bar{e}_A. \tag*{(23)}

The average leaves the shared vector μ\mu untouched and reduces the fact-specific parts to eˉA\bar{e}_A. The overlap of a new key with the mean old key is

kbTkˉA=(α μ+1−α eb)T(α μ+1−α eˉA)=α+α(1−α) μTeˉA+α(1−α) μTeb+(1−α)ebTeˉA=α(1+ξ)+ζb,(24)\begin{aligned} k_b^{\mathsf{T}}\bar{k}_A &=\left(\sqrt{\alpha}\,\mu+\sqrt{1-\alpha}\,e_b\right)^{\mathsf{T}}\left(\sqrt{\alpha}\,\mu+\sqrt{1-\alpha}\,\bar{e}_A\right)\\ &=\alpha+\sqrt{\alpha(1-\alpha)}\,\mu^{\mathsf{T}}\bar{e}_A+\sqrt{\alpha(1-\alpha)}\,\mu^{\mathsf{T}}e_b+(1-\alpha)e_b^{\mathsf{T}}\bar{e}_A\\ &=\alpha(1+\xi)+\zeta_b, \tag*{(24)} \end{aligned}

where we grouped the terms that are the same for all new facts into

ξ:=1−αα μTeˉA,(25)\xi:=\sqrt{\frac{1-\alpha}{\alpha}}\,\mu^{\mathsf{T}}\bar{e}_A, \tag*{(25)}

and the terms that depend on the new fact into

ζb=α(1−α) μ⊤eb+(1−α)eb⊤eˉA.(26)\zeta_b = \sqrt{\alpha(1-\alpha)}\,\mu^\top e_b + (1-\alpha)e_b^\top\bar{e}_A. \tag*{(26)}

Plugging this decomposition into Equation (23) and using 1nB∑bδb=δˉB\frac{1}{n_B}\sum_b\delta_b=\bar{\delta}_B gives

hˉ˙A=−α(1+ξ)δˉB⏟shared−1nB∑bζbδb⏟specific.(27)\dot{\bar{h}}_A = \underbrace{-\alpha(1+\xi)\bar{\delta}_B}_{\text{shared}}-\underbrace{\frac{1}{n_B}\sum_b\zeta_b\delta_b}_{\text{specific}}. \tag*{(27)}

The sizes of the two terms are as follows.

  • Shared term. All new facts contribute to it with the same coefficient α(1+ξ)\alpha(1+\xi). As eˉA\bar{e}_A is the average of nAn_A independent random unit vectors, μ⊤eˉA\mu^\top\bar{e}_A has zero mean and variance 1/(nAd)1/(n_A d), so ξ\xi is of order (nAd)−1/2(n_A d)^{-1/2} and the coefficient is α\alpha to leading order.

  • Specific term. μ⊤eb\mu^\top e_b has variance 1/d1/d and eb⊤eˉAe_b^\top\bar{e}_A has variance 1/(nAd)1/(n_A d), so the coefficients ζb\zeta_b have zero mean and are of order d−1/2d^{-1/2}. They are moreover uncorrelated across new facts, as ebe_b and eb′e_{b'} are independent for b≠b′b\ne b'. Treating them, to leading order, as independent of the errors δb\delta_b gives

E∥1nB∑bζbδb∥2=1nB2∑bE[ζb2]∥δb∥2=O(∥δ∥rms2nBd).(28)\mathbb{E}\left\lVert\frac{1}{n_B}\sum_b\zeta_b\delta_b\right\rVert^2 =\frac{1}{n_B^2}\sum_b\mathbb{E}[\zeta_b^2]\lVert\delta_b\rVert^2 =O\left(\frac{\lVert\delta\rVert_{\mathrm{rms}}^2}{n_Bd}\right). \tag*{(28)}

with ∥δ∥rms2=1nB∑b∥δb∥2\lVert\delta\rVert_{\mathrm{rms}}^2=\frac{1}{n_B}\sum_b\lVert\delta_b\rVert^2. The cross terms vanish because the coefficients are uncorrelated: the nBn_B contributions add up like a random walk, and their sum grows like nB\sqrt{n_B} instead of nBn_B.

The specific term is therefore negligible compared with the shared one as soon as α∥δˉB∥≫∥δ∥rms/nBd\alpha\lVert\bar{\delta}_B\rVert\gg\lVert\delta\rVert_{\mathrm{rms}}/\sqrt{n_Bd}, that is, as soon as the errors of the new facts share a common component. Keeping only the leading order of the shared term gives Equation (4),

hˉ˙A≃−αδˉB,(29)\dot{\bar{h}}_A\simeq-\alpha\bar{\delta}_B, \tag*{(29)}

and when α=0\alpha=0, only the specific term is left.

Why the errors of the new facts share a common component. The shared term is only large if the errors δb\delta_b do not cancel when averaged over the new facts. Averaging the decomposition of Equation (13) over the new facts gives

δˉB=1nB∑bd∥hb∥W2⊤(pb−1yb)+1nB∑bγb∥hb∥h^b.(30)\bar{\delta}_B=\frac{1}{n_B}\sum_b\frac{\sqrt{d}}{\lVert h_b\rVert}W_2^\top(p_b-\mathbf{1}_{y_b})+\frac{1}{n_B}\sum_b\frac{\gamma_b}{\lVert h_b\rVert}\hat{h}_b. \tag*{(30)}

Early in finetuning, both terms survive the average, for two reasons that both come from the structure of the data:

  • The new answers all lie in the same region. Up to the variations of the prefactor d/∥hb∥\sqrt{d}/\lVert h_b\rVert across new facts, the first term is proportional to W2⊤(pˉB−qB)W_2^\top(\bar{p}_B-q_B), where pˉB\bar{p}_B is the average prediction on the new facts and qB=1nB∑b1ybq_B=\frac{1}{n_B}\sum_b\mathbf{1}_{y_b} the distribution of their answers. All new answers belong to the same half of the vocabulary, so qBq_B puts all its mass on that half. At the beginning of finetuning, the model has no reason to favor this half for the new keys: it was pretrained on answers from both halves, and its predictions for unseen keys spread over both. pˉB−qB\bar{p}_B-q_B therefore has a large component that moves probability mass from one half to the other, and this component is the same for all new facts. By contrast, which answer is correct within the half, and which wrong answer the model predicts, change from one new fact to the other and cancel in the average. When the new answers are drawn from the whole vocabulary, qBq_B and pˉB\bar{p}_B spread their mass over the two halves in a similar way and this component largely disappears, which is why the collapse does too (Figure 2, panel 2).

  • The new facts are confidently wrong. At the beginning of finetuning, the model confidently predicts wrong answers for the new facts, so their margins γb\gamma_b are all negative. At the same time, all new hidden states contain the shared component α W1μ\sqrt{\alpha}\,W_1\mu. The second term is thus a sum of vectors that share a direction, weighted by coefficients of the same sign, and it does not cancel either. This term gives rise to the γind,b\gamma_{\mathrm{ind},b} contribution of Section B.5.

Both contributions vanish as the new facts are learned: when pb→1ybp_b \to\mathbf{1}_{y_b}, W2T(pb−1yb)→0W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b}) \to0 and γb→0\gamma_b \to0. The common component of the errors, and with it the shared write, therefore only exists early in finetuning.

Why the common write is faster than fact-specific learning. The same calculation applied to a new fact bb separates its own contribution from that of the other new facts:

h˙b=−1nB∥kb∥2δb−1nB∑b′≠b(kb′Tkb)δb′≃−1nBδb−αδˉB,(31)\dot{h}_b=-\frac{1}{n_B}\lVert k_b\rVert^2\delta_b-\frac{1}{n_B}\sum_{b'\ne b}(k_{b'}^{\mathsf{T}}k_b)\delta_{b'}\simeq-\frac{1}{n_B}\delta_b-\alpha\bar{\delta}_B, \tag*{(31)}

where we used ∥kb∥2≃1\lVert k_b\rVert^2\simeq1. The error of a single fact enters its own state with weight 1/nB1/n_B, whereas the common component of all errors enters every state with weight α\alpha. Whatever the errors of the new facts have in common is therefore learned much faster than what is specific to each, which is why the reversal of the common shift waits for fact-specific learning.

Dynamics of the common shift

The normalization term of (13) cancels along h^b\hat{h}_b for the new fact itself, but not for the old facts: through (21), it moves every old state along the parts that its state shares with hbh_b. We make this precise by following the displacement of the old facts’ mean state. Let s=∥hˉA(t)−hˉA(0)∥s=\lVert\bar{h}_A(t)-\bar{h}_A(0)\rVert be its length, which we call the shared coordinate, and u^sh=(hˉA(t)−hˉA(0))/s\hat{u}_{\mathrm{sh}}=(\bar{h}_A(t)-\bar{h}_A(0))/s its direction, which we call the shared direction. As ddt∥v∥=v^Tv˙\frac{\mathrm{d}}{\mathrm{d}t}\lVert v\rVert=\hat{v}^{\mathsf{T}}\dot{v} for any vector vv, and hˉA(0)\bar{h}_A(0) is constant, (4) gives

s˙=u^shThˉ˙A≃−αnB∑bu^shTδb.(32)\dot{s}=\hat{u}_{\mathrm{sh}}^{\mathsf{T}}\dot{\bar{h}}_A\simeq-\frac{\alpha}{n_B}\sum_b\hat{u}_{\mathrm{sh}}^{\mathsf{T}}\delta_b. \tag*{(32)}

Validity of the approximation. (4) neglects the specific term of (27), and only its projection onto u^sh\hat{u}_{\mathrm{sh}} matters for the dynamics of ss. The shared term contributes α\alpha times the mean of the projected errors u^shTδb\hat{u}_{\mathrm{sh}}^{\mathsf{T}}\delta_b, while the specific term, whose coefficients are random and of order d−1/2d^{-1/2}, contributes a quantity of the order of their root mean square divided by nBd\sqrt{n_Bd}. The approximation therefore requires the projected errors to share a sign across new facts, not the errors to be large. This holds while the new facts are all wrong and once they are all learned, even when their errors become small and mostly fact-specific. It only fails around the peak of ss, where the projected errors change sign at different times for different new facts and ss is small anyway.

Projecting the error. We decompose the direction of each new state into its component along u^sh\hat{u}_{\mathrm{sh}} and an orthogonal component,

h^b=cos⁡θb u^sh+sin⁡θb u^ind,b,(33)\hat{h}_b=\cos\theta_b\,\hat{u}_{\mathrm{sh}}+\sin\theta_b\,\hat{u}_{\mathrm{ind},b}, \tag*{(33)}

where θb\theta_b is the angle between hbh_b and u^sh\hat{u}_{\mathrm{sh}}, and u^ind,b\hat{u}_{\mathrm{ind},b} is the unit vector along the individual part hb−(u^shThb)u^shh_b-(\hat{u}_{\mathrm{sh}}^{\mathsf{T}}h_b)\hat{u}_{\mathrm{sh}}. Then

u^shT(I−h^bh^bT)=u^shT−cos⁡θb h^bT=u^shT−cos⁡2θb u^shT−cos⁡θbsin⁡θb u^ind,bT=sin⁡2θb u^shT−sin⁡θbcos⁡θb u^ind,bT,(34)\begin{aligned} \hat{u}_{\mathrm{sh}}^{\mathsf{T}}(I-\hat{h}_b\hat{h}_b^{\mathsf{T}})&=\hat{u}_{\mathrm{sh}}^{\mathsf{T}}-\cos\theta_b\,\hat{h}_b^{\mathsf{T}}\\ &=\hat{u}_{\mathrm{sh}}^{\mathsf{T}}-\cos^2\theta_b\,\hat{u}_{\mathrm{sh}}^{\mathsf{T}}-\cos\theta_b\sin\theta_b\,\hat{u}_{\mathrm{ind},b}^{\mathsf{T}}\\ &=\sin^2\theta_b\,\hat{u}_{\mathrm{sh}}^{\mathsf{T}}-\sin\theta_b\cos\theta_b\,\hat{u}_{\mathrm{ind},b}^{\mathsf{T}}, \tag*{(34)} \end{aligned}

so that

u^shTδb=d∥hb∥(sin⁡2θb u^shTW2T(pb−1yb)−sin⁡θbcos⁡θb u^ind,bTW2T(pb−1yb)).(35)\hat{u}_{\mathrm{sh}}^{\mathsf{T}}\delta_b=\frac{\sqrt{d}}{\lVert h_b\rVert}\left(\sin^2\theta_b\,\hat{u}_{\mathrm{sh}}^{\mathsf{T}}W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b})-\sin\theta_b\cos\theta_b\,\hat{u}_{\mathrm{ind},b}^{\mathsf{T}}W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b})\right). \tag*{(35)}

Two margins. The two projections of the error are margins:

u^shTW2T(pb−1yb)=(W2u^sh)T(pb−1yb)=−γsh,b,with γsh,b:=(W2u^sh)yb−pbTW2u^sh,(36)\hat{u}_{\mathrm{sh}}^{\mathsf{T}}W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b})=(W_2\hat{u}_{\mathrm{sh}})^{\mathsf{T}}(p_b-\mathbf{1}_{y_b})=-\gamma_{\mathrm{sh},b},\qquad\text{with }\gamma_{\mathrm{sh},b}:=(W_2\hat{u}_{\mathrm{sh}})_{y_b}-p_b^{\mathsf{T}}W_2\hat{u}_{\mathrm{sh}}, \tag*{(36)}

and similarly u^ind,bTW2T(pb−1yb)=−γind,b\hat{u}_{\mathrm{ind},b}^{\mathsf{T}}W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b})=-\gamma_{\mathrm{ind},b} with γind,b:=(W2u^ind,b)yb−pbTW2u^ind,b\gamma_{\mathrm{ind},b}:=(W_2\hat{u}_{\mathrm{ind},b})_{y_b}-p_b^{\mathsf{T}}W_2\hat{u}_{\mathrm{ind},b}. The shared margin γsh,b\gamma_{\mathrm{sh},b} is the margin by which the readout of the shared direction favors the correct answer of bb over the model’s current prediction, and the individual margin γind,b\gamma_{\mathrm{ind},b} is the same quantity for the individual direction of bb. As zb=d (cos⁡θb W2u^sh+sin⁡θb W2u^ind,b)z_b=\sqrt{d}\,(\cos\theta_b\,W_2\hat{u}_{\mathrm{sh}}+\sin\theta_b\,W_2\hat{u}_{\mathrm{ind},b}), the two margins decompose the confidence margin γb\gamma_b of Equation (13) into a shared and an individual contribution,

γb=d (cos⁡θb γsh,b+sin⁡θb γind,b).(37)\gamma_b=\sqrt{d}\,(\cos\theta_b\,\gamma_{\mathrm{sh},b}+\sin\theta_b\,\gamma_{\mathrm{ind},b}). \tag*{(37)}

In particular, γind,b\gamma_{\mathrm{ind},b} is negative while the individual part of bb points to a wrong answer the model is confident about, and becomes positive once it points to the correct one.

The full dynamics. Putting everything together, we obtain

s˙≃αnB∑bd∥hb∥[sin⁡2θb γsh,b−sin⁡θbcos⁡θb γind,b],(38)\dot{s}\simeq\frac{\alpha}{n_B}\sum_b\frac{\sqrt{d}}{\lVert h_b\rVert}\left[\sin^2\theta_b\,\gamma_{\mathrm{sh},b}-\sin\theta_b\cos\theta_b\,\gamma_{\mathrm{ind},b}\right], \tag*{(38)}

where the only approximation is Equation (4). Without normalization, δb=W2T(pb−1yb)\delta_b=W_2^{\mathsf{T}}(p_b-\mathbf{1}_{y_b}) and u^shTδb=−γsh,b\hat{u}_{\mathrm{sh}}^{\mathsf{T}}\delta_b=-\gamma_{\mathrm{sh},b}, so

s˙≃α γˉsh,with γˉsh=1nB∑bγsh,b.(39)\dot{s}\simeq\alpha\,\bar{\gamma}_{\mathrm{sh}},\qquad\text{with }\bar{\gamma}_{\mathrm{sh}}=\frac{1}{n_B}\sum_b\gamma_{\mathrm{sh},b}. \tag*{(39)}

The term in γind,b\gamma_{\mathrm{ind},b} only exists because the normalization removes the radial component of the error, and it is the only term whose sign is controlled by how well the individual parts of the new facts are learned. Finally, both margins vanish when the new facts are learned: as pb→1ybp_b\to\mathbf{1}_{y_b}, γsh,b→0\gamma_{\mathrm{sh},b}\to0 and γind,b→0\gamma_{\mathrm{ind},b}\to0. The force that writes the common shift and the force that withdraws it therefore both fade as the errors of the new facts vanish, with and without normalization.

Reduction under the common-coordinate approximation

Equation (38) depends on every new fact through θb\theta_b, ∥hb∥\lVert h_b\rVert, γsh,b\gamma_{\mathrm{sh},b} and γind,b\gamma_{\mathrm{ind},b}. To obtain a closed form, we use Assumption 4: all new states have the same coordinate ss along u^sh\hat{u}_{\mathrm{sh}} and the same individual norm σ\sigma. This is motivated by the fact that the shared part of every hidden state, α W1μ\sqrt{\alpha}\,W_1\mu, is the same for old and new facts. Under this assumption,

∥hb∥=s2+σ2,cos⁡θb=ss2+σ2,sin⁡θb=σs2+σ2,(40)\lVert h_b\rVert=\sqrt{s^2+\sigma^2},\qquad\cos\theta_b=\frac{s}{\sqrt{s^2+\sigma^2}},\qquad\sin\theta_b=\frac{\sigma}{\sqrt{s^2+\sigma^2}}, \tag*{(40)}

so that

d∥hb∥sin⁡2θb=d σ2(s2+σ2)3/2andd∥hb∥sin⁡θbcos⁡θb=d σs(s2+σ2)3/2.(41)\frac{\sqrt{d}}{\lVert h_b\rVert}\sin^2\theta_b=\frac{\sqrt{d}\,\sigma^2}{(s^2+\sigma^2)^{3/2}}\qquad\text{and}\qquad\frac{\sqrt{d}}{\lVert h_b\rVert}\sin\theta_b\cos\theta_b=\frac{\sqrt{d}\,\sigma s}{(s^2+\sigma^2)^{3/2}}. \tag*{(41)}

Plugging these into Equation (38) and averaging the margins over the new facts yields Equation (5),

s˙=αd σ(σγˉsh−sγˉind)(s2+σ2)3/2.(42)\dot{s}=\alpha\sqrt{d}\,\frac{\sigma(\sigma\bar{\gamma}_{\mathrm{sh}}-s\bar{\gamma}_{\mathrm{ind}})}{(s^2+\sigma^2)^{3/2}}. \tag*{(42)}

This one-dimensional equation has the following properties, which underlie the discussion of the main text:

  • The sign of s˙\dot{s} is the sign of σγˉsh−sγˉind\sigma\bar{\gamma}_{\mathrm{sh}}-s\bar{\gamma}_{\mathrm{ind}}. If γˉind<0\bar{\gamma}_{\mathrm{ind}}<0 and γˉsh≥0\bar{\gamma}_{\mathrm{sh}}\ge0, then s˙>0\dot{s}>0: the shift can only grow and there is no fixed point.

  • The shift reinforces itself while it is small. The weight of the γˉind\bar{\gamma}_{\mathrm{ind}} term, sσ/(s2+σ2)3/2s\sigma/(s^2+\sigma^2)^{3/2}, increases with ss for s<σ/2s<\sigma/\sqrt{2} and decreases beyond. While the new facts are confidently wrong (γˉind<0\bar{\gamma}_{\mathrm{ind}}<0) and the shift is small, a larger shift therefore makes the shift grow faster.

  • Once the new facts are right, the shift is pulled back. If γˉind>0\bar{\gamma}_{\mathrm{ind}}>0, the equation has a unique fixed point s∗=σγˉsh/γˉinds^*=\sigma\bar{\gamma}_{\mathrm{sh}}/\bar{\gamma}_{\mathrm{ind}}, which is stable since

∂s˙∂s∣s=s∗=−αd σγˉind(s∗2+σ2)3/2<0.(43)\left.\frac{\partial\dot{s}}{\partial s}\right|_{s=s^*}=-\frac{\alpha\sqrt{d}\,\sigma\bar{\gamma}_{\mathrm{ind}}}{(s^{*2}+\sigma^2)^{3/2}}<0. \tag*{(43)}

As γˉsh\bar{\gamma}_{\mathrm{sh}} quickly becomes small, s∗s^* is small and ss relaxes towards it.

  • The pull stops with the errors. The restoring term is proportional to γˉind\bar{\gamma}_{\mathrm{ind}}, which vanishes as the new facts are learned. Nothing in the equation brings ss back to its initial value: it stops wherever it is when the errors of the new facts vanish.

  • Without normalization, nothing pulls the shift back. The equation becomes s˙=αγˉsh\dot{s}=\alpha\bar{\gamma}_{\mathrm{sh}}, which contains neither γˉind\bar{\gamma}_{\mathrm{ind}} nor ss.

Empirical validation

We verify that Equation (38) describes the actual model, without the common-coordinate approximation. We follow the finetuning run, trained with minibatches of 32 new facts, and at every step measure θb\theta_b, ∥hb∥\lVert h_b\rVert, γˉsh,b\bar{\gamma}_{\mathrm{sh},b} and γˉind,b\bar{\gamma}_{\mathrm{ind},b} on that step’s minibatch. We evaluate the right-hand side of Equation (38) from these measurements and integrate it with an explicit Euler scheme whose time step is the learning rate η\eta (Assumption 1), starting from the measured value of ss once the mean state has aligned with the shared direction. The integration includes the second-order term of a finite step, which lengthens the mean state by ∥Δ⊥∥2/2s\lVert\Delta_{\perp}\rVert^2/2s, where Δ⊥\Delta_{\perp} is the part of the step orthogonal to u^sh\hat{u}_{\mathrm{sh}}, and vanishes as η→0\eta\to0. We proceed in the same way for the model without normalization, with s˙=αγˉsh\dot{s}=\alpha\bar{\gamma}_{\mathrm{sh}}. The prediction matches the measured ss to within 1% of its range with normalization and 2% without (Figure 7).

Figure 7. Equation 38 reproduces the dynamics of the common shift. (left) Length ∥hˉA∥\lVert\bar{h}_A\rVert of the old facts’ mean hidden state, measured and obtained by integrating Equation (38) (with normalization) or s˙=αγˉsh\dot{s}=\alpha\bar{\gamma}_{\mathrm{sh}} (without normalization) from the point at which the mean state has aligned with the shared direction, after which its length follows the same dynamics as its displacement ss. (right) Average shared margin γˉsh\bar{\gamma}_{\mathrm{sh}} and individual margin γˉind\bar{\gamma}_{\mathrm{ind}} of the new facts, with normalization. The dotted line marks the peak; ten seeds.

The mechanism, step by step

Section 3 explains spurious forgetting through a chain of claims about the minimal model. Here we check each of them in the base configuration, over ten seeds; dotted lines mark the bottom of the collapse.

How the shift is written. Equation (4) replaces the update of each old hidden state by a single vector, −αδˉB-\alpha\bar{\delta}_B, shared by all of them. The exact update of every old state indeed points along the mean update, and −αδˉB-\alpha\bar{\delta}_B reproduces it to within 16% until the end of the collapse (Figure 8, left); the fact-specific update neglects only grow later, as the erosion sets in. The speed of this write grows almost in proportion to α\alpha (middle), and the new facts move along the shared direction exactly as far as the old ones (right), so the shift is built and undone on both together.

Figure 8. How the shift is written. (left) Cosine between the update of each old hidden state and their mean update, and relative error of Equation (4). (middle) Speed of the update at the start of finetuning against α\alpha. (right) Displacement of the old and new hidden states along the shared direction.

Where the shift points. When the new answers are drawn from the entire vocabulary, the old states still move together, nearly as far (Figure 9, left), but the shift no longer favors either half of the vocabulary: its push on the logits of AA toward the half of the new answers is ten times smaller (middle). With the new answers in one half, the facts of AA lose to that half but keep their order within their own: at the bottom of the collapse, 93% of them still rank their correct answer first within the half of AA, against 17% accuracy (right).

Figure 9. The shift favors the half of the new answers. (left) Common shift with the new answers in one half of the vocabulary or anywhere. (middle) How far it pushes the logits of AA toward the half of the new answers. (right) Old facts whose correct answer is still ranked first within their own half, against their accuracy.

What normalization does. As the shift grows, normalization rotates the old states toward it: their mean pairwise cosine rises from 0.06 to 0.54 at the bottom of the collapse (Figure 10, left), and their individual parts lose about a third of their size (middle). Both recover as the shift is withdrawn. Meanwhile the predictions for AA move to the half of the new answers, 82% of them at the bottom of the collapse, favoring the answers that are most common among the new facts (right).

Figure 10. Normalization rotates the old states toward the shift. (left) Mean cosine between the old hidden states. (middle) Norm of their individual parts after normalization, relative to the start of finetuning. (right) Share of the predictions for AA that fall in the half of the new answers, and their correlation with how often each answer occurs among the new facts.

The readout of AA is barely touched. The readout weights of the answers of AA change by about 5% during the collapse and 10% by the end of finetuning, against more than 60% for the half of the new answers (Figure 11, left). They receive gradient only while the model puts probability on these answers for the new facts, which stops within a few dozen steps (right).

Figure 11. The readout of the answers of AA is barely touched. (left) Relative change of the readout weights of the answers of AA and of the half of the new answers. (right) Gradient on the readout weights of the answers of AA, and the probability the model puts on these answers for the new facts, both relative to the start of finetuning.

What survives and what erodes. Removing the common part of the change of the logits restores AA almost entirely at the bottom of the collapse, and slightly less as finetuning proceeds; for BB, whose answers are those of the new facts, it changes almost nothing, and BB erodes steadily after the collapse (Figure 12, left). The fact-specific drift behind this erosion is not neutral: when a fact of AA is recalled wrongly, it names the answer of the new fact whose key is closest to its own twice as often as that of a random new fact (right).

Figure 12. The shift hides AA; the drift erodes AA and BB. (left) Accuracy of AA and BB as trained and with the common part of the change of their logits removed. (right) Among the facts of AA recalled wrongly, the share that names the answer of the closest new key, against that of a random new key.

The old facts survive the common shift

The common shift of the old states is written by the part of the update that acts on the shared key direction, ΔW1μLT\Delta W_1\mu_L^{\mathsf{T}} (Equation (16)). At every checkpoint, we remove this part from the store, W1(t)←W1(0)+ΔWL(t)W_1(t) \leftarrow W_1(0) + \Delta W_L(t) with ΔWL=ΔW1(I−μLμLT)\Delta W_L = \Delta W_1(I - \mu_L\mu_L^{\mathsf{T}}), keep the readout as trained, and evaluate the edited model; training itself is not modified. At the trough, the edited model recalls the old facts with accuracy 1.00, against 0.17 for the trained model, and after about 1,000 steps with accuracy 0.91, against 0.55 (Figure 13). The remaining decline is the erosion carried by $\Delta W_L (Section B.11). The edit also slows the new facts, which reach 0.59 at step 200 instead of 0.99, since the shared part of the update also carries what the new facts have in common.

The analyses of the Transformer and the language model, in the minimal model

Sections 4 and 5 test the mechanism with two analyses that need no access to a model’s internals: splitting the displacement of the old facts and the change of their logits into a common and a fact-specific part, and removing the top direction of each weight update. We run both on the minimal model, where the mechanism is known, to check that they detect it.

The split in the minimal model. We measure the old hidden states after the normalization, at the input of the readout, as in the Transformer. Their common shift grows fast, peaks at the bottom of the collapse and then partly retracts (Figure 15, left). The fact-specific drift stays smaller for much longer than in the Transformer, and overtakes the shift only after about 10410^4 steps: once the new facts are learned, both the withdrawal of the shift and the growth of the drift are driven by their vanishing errors, so the remaining gap closes only logarithmically (Appendix § 10.11). Subtracting the common part of the change of the logits restores the old facts at the bottom of the collapse, from 0.17 to 1.00, while keeping only that part produces most of the collapse (Figure 15, right), as in the Transformer.

Figure 15. In the minimal model, removing the common shift removes the collapse. (left) Common shift and fact-specific drift of the old hidden states after normalization. (right) Old-fact accuracy as trained, with only the common part of the change of their logits, and with it removed; the dotted line marks the bottom of the collapse.

Removing the top direction of the update. As for the language model, we subtract from the store W1W_1 the top singular component of its update W1(t)−W1(0)W_1(t)-W_1(0), as a control, a random rank-one matrix of the same norm, and keep the readout as trained. At the bottom of the collapse, the edit restores the old facts entirely, whereas the control leaves them where training did (Figure 16, left). The top direction is then the shared one: its input direction is aligned with μ\mu (cosine 0.99), so the edit removes the part of the update that writes the common shift (Appendix § 10.9). It also slows the learning of the new facts (right), which use the same direction. Once the shift recedes, the top direction no longer carries it (cosine 0.11 by step 200), and the edit no longer helps. Compared at the same accuracy on the new facts, however, the edited model always recalls more old facts than the trained one, so the edit does not simply rewind finetuning, as in the language model.

Figure 16. Removing the top direction of the update in the minimal model. Accuracy on the old (left) and new (right) facts as trained, with the top singular component of the update of W1W_1 removed, and, for the old facts, with a random rank-one matrix of the same norm removed.

Fact-specific displacements

Size of the fact-specific displacements. Recall from Equation (18) that εa=1−α ΔW1(ea−eˉA)\varepsilon_a = \sqrt{1-\alpha}\,\Delta W_1(e_a-\bar e_A). Under Assumption 3, ΔW1\Delta W_1 is fixed with respect to the old keys, and we can take the expectation over them. For a fixed matrix MM and a vector uu with E[uu⊤]=Σ\mathbb{E}[uu^\top]=\Sigma, E∥Mu∥2=tr⁡(MΣM⊤)\mathbb{E}\lVert Mu\rVert^2=\operatorname{tr}(M\Sigma M^\top). The eae_a are independent and uniform on the unit sphere, so E[eaea⊤]=I/d\mathbb{E}[e_ae_a^\top]=I/d and

E[(ea−eˉA)(ea−eˉA)⊤]=[(1−1nA)2+nA−1nA2]Id=(1−1nA)Id.(44)\mathbb{E}\left[(e_a-\bar e_A)(e_a-\bar e_A)^\top\right] =\left[\left(1-\frac{1}{n_A}\right)^2+\frac{n_A-1}{n_A^2}\right]\frac{I}{d} =\left(1-\frac{1}{n_A}\right)\frac{I}{d}. \tag*{(44)}

from which

E[εrms2]=1−αd(1−1nA)∥ΔW1∥F2.(45)\mathbb{E}\left[\varepsilon_{\mathrm{rms}}^2\right] =\frac{1-\alpha}{d}\left(1-\frac{1}{n_A}\right)\lVert\Delta W_1\rVert_F^2. \tag*{(45)}

Each old fact reads the update through its own random key, and a random direction captures, on average, a fraction 1/d1/d of its squared Frobenius norm.

The shared and non-shared parts of the update. We split the update into its column along μ\mu and the rest, ΔW1=ΔW⊥+(ΔW1μ)μ⊤\Delta W_1=\Delta W_\perp+(\Delta W_1\mu)\mu^\top with ΔW⊥:=ΔW1(I−μμ⊤)\Delta W_\perp:=\Delta W_1(I-\mu\mu^\top). The two parts are orthogonal for the Frobenius inner product, so ∥ΔW1∥F2=∥ΔW⊥∥F2+∥ΔW1μ∥2\lVert\Delta W_1\rVert_F^2=\lVert\Delta W_\perp\rVert_F^2+\lVert\Delta W_1\mu\rVert^2, and, neglecting the 1/nA1/n_A correction,

εrms2≃1−αd(∥ΔW⊥∥F2+∥ΔW1μ∥2).(46)\varepsilon_{\mathrm{rms}}^2\simeq\frac{1-\alpha}{d}\left(\lVert\Delta W_\perp\rVert_F^2+\lVert\Delta W_1\mu\rVert^2\right). \tag*{(46)}

The second term is the shared column of the update, read through the small random component μTea\mu^{\mathsf{T}}e_a of each old key. It only matters while the shared write makes up a large part of the update, that is, around the peak of the common shift. Dropping it gives

εrms≃1−αd∥ΔW⊥∥F.(47)\varepsilon_{\mathrm{rms}} \simeq\sqrt{\frac{1-\alpha}{d}}\lVert\Delta W_\perp\rVert_F. \tag*{(47)}

Figure 14 compares the measured spread with both predictions.

Why the fact-specific displacements are not undone. Subtracting the mean write from Equation (21), the fact-specific displacements evolve as

ε˙a=−1nB∑bkbT(ka−kˉA) δb=−1−αnB∑bkbT(ea−eˉA) δb.(48)\dot{\varepsilon}_a=-\frac{1}{n_B}\sum_b k_b^{\mathsf{T}}(k_a-\bar{k}_A)\,\delta_b=-\frac{\sqrt{1-\alpha}}{n_B}\sum_b k_b^{\mathsf{T}}(e_a-\bar{e}_A)\,\delta_b. \tag*{(48)}

The coefficients are random, of order d−1/2d^{-1/2}, and independent of the old fact’s own state and answer. Unlike Equation (38), this expression contains no term that depends on εa\varepsilon_a itself and could pull it back. The contribution of the normalization to δb\delta_b is present as well, but it enters with the same random coefficients. The fact-specific displacements therefore keep accumulating as long as the new facts produce errors.

Why recovery is incomplete

Two effects keep the old facts from recovering fully. The first follows from Section B.5: the force that withdraws the common shift is proportional to the margins of the new facts and vanishes with their errors. The second comes from the readout, which we have ignored so far.

Under the gradient flow dynamics, Equation (15) implies that, for a fixed normalized old state xax_a, the logits change as

z˙a=W˙2xa=1nB∑b(xbTxa)(1yb−pb).(49)\dot{z}_a = \dot{W}_2 x_a = \frac{1}{n_B}\sum_b (x_b^\mathsf{T}x_a)(\mathbf{1}_{y_b}-p_b). \tag*{(49)}

This has the same structure as Equation (21), with the overlap between normalized states in place of the overlap between keys. The normalized states share the direction of the common shift, so the overlaps xbTxax_b^\mathsf{T}x_a have a common positive part. The readout therefore raises the logits of the new answers for every old fact at once, and lowers those of the answers the model currently predicts for the new facts. Unlike the write into W1W_1, this update has no normalization term: nothing in it depends on the margins of the new facts or on what the readout has already written. It stops when pb→1ybp_b \to\mathbf{1}_{y_b} but never reverses, so the bias towards the new answer region that it stores remains after the new facts are learned. Freezing the readout during finetuning removes this channel and raises the recovered accuracy of the old facts from 0.56 to 0.61 (Figure 17).

Figure 17. Part of the bias towards the new answer region is stored in the readout. Accuracy on the old and new facts during finetuning, with the readout trained and frozen; the learning rate of the frozen run is matched so that the new facts are learned at the same pace. Ten seeds.

Interventions in the minimal model

Projecting out the shared direction. Removing the component of the update along the shared key direction at every training step, ΔW1←ΔW1(I−μμT)\Delta W_1 \leftarrow\Delta W_1(I-\mu\mu^\mathsf{T}), prevents the collapse entirely, and the new facts are still learned. The old facts nevertheless end no better off than without the projection (accuracy 0.45 against 0.51 after 5,000 steps, ten seeds), because erosion lies in the fact-specific part of the update, which the projection leaves untouched.

Replaying a few old facts. Rehearsing a subset of old associations can restore the others [47]. We replay a fixed random subset of the old facts in every finetuning batch of 32 new facts and measure the old facts that are never replayed (Figure 18). Replaying 16 of the 128 old facts lifts their trough from 0.17 to 0.50, as the replayed facts push back on the shift that adds old facts share, but raises their final accuracy only from 0.54 to 0.62: erosion is specific to each fact and is barely affected by replaying others. A single replayed fact has almost no effect, as it is soon answered correctly through its own key and stops pushing back on the shared direction.

Figure 18. Replaying a few old facts protects the others from the collapse, but not from erosion. (left) Accuracy of the old facts that are never replayed, when 0, 4, 16 or 64 of the 128 old facts are replayed in every batch (16 replayed examples per step; five seeds). (right) Gain over no replay at the trough and at the end of finetuning (3,000 steps), with 16 or 4 replayed examples per step.

The controlled Transformer

The old facts keep their ranking within their region

For each old fact of AA, we rank its correct value among the values of its own half of the answers, and report the fraction of old facts for which it ranks first, alongside their accuracy over all answers (Figure 19). At the bottom of the collapse, only 12% of the old facts are recalled, yet 86% still rank their correct answer first within their half: the old facts lose to the answers of the other half, not to one another. The fraction then declines only slowly, to 83% after 500 steps, as the fact-specific drift erodes the old facts.

Figure 19. The collapse leaves the old facts’ ranking within their region intact. Accuracy of the old facts of AA over all answers, and fraction of them whose correct answer still ranks first among the answers of its own half, for the transformer of Figure 1 (right; three seeds). The dotted line marks the trough.

Timing across learning rates and batch sizes

We finetune the transformer of Figure 1 under five conditions that change how fast it learns: the reference learning rate and batch size of 256, half and twice the learning rate, and batches of 128 and 512 at the reference learning rate. Each condition is run with three seeds, and both old and new facts are evaluated every 2 steps on held-out phrasings. We define the trough as the point of lowest old-fact accuracy before the recovery.

Across the five conditions, the trough moves from step 34 to step 100, a factor of about three in training steps. At every trough, however, the new facts have reached nearly the same stage of learning, between 36% and 44% accuracy (Figure 20). The end of the collapse therefore follows the learning of the new facts rather than a fixed amount of optimization, as the minimal model predicts. This holds for a fixed set of new facts; with fewer of them, the trough falls later in their learning (Appendix § 11.§ 3).

Figure 20. The end of the collapse follows the learning of the new facts. Old-fact (left) and new-fact (right) accuracy under five finetuning conditions; circles and dotted lines mark each condition’s trough. The troughs span steps 34 to 100, yet the new facts are at 36–44% accuracy at every one of them. Three seeds, evaluated every 2 steps.

Timing across the number of new facts

Varying the learning rate or the batch size changes how fast the new facts are learned, but not how many there are. To vary the latter, we finetune on only the first 125 or 250 of the 500 individuals of B′B', keeping everything else as in the reference condition of Appendix § 11.§ 2, and evaluate every 2 steps.

The bottom of the collapse then no longer falls at the same accuracy on the new facts (Figure 21). The fewer the new facts, the further they are learned before the old facts start to return: 89% of them are recalled at the bottom with 125 individuals, against 38% with 500. The collapse also becomes shallower, and in the Transformer with MLP blocks (Appendix § 11.§ 5) it nearly disappears, with old-fact accuracy staying above 0.9 for 125 or 250 individuals.

Figure 21. With fewer new facts, the collapse ends later in their learning. Old-fact (left) and new-fact (right) accuracy of the Transformer finetuned on 125, 250 or 500 new individuals; circles and dotted lines mark the bottom of each collapse. Three seeds.

The minimal model shows why (Figure 22). Whatever we vary, the learning rate, the batch size or the number of new facts, the common shift peaks when the individual margin γˉind\bar{\gamma}_{\mathrm{ind}} of the new facts turns positive, as Equation (5) predicts. How well the new facts are recalled at that moment depends on their number but not on the learning rate or the batch size. A fixed accuracy on the new facts is therefore only a stand-in for the individual margin, and it holds only as long as the number of new facts is fixed.

Figure 22. In the minimal model, the shift peaks when the individual margin turns positive. (left) Common shift over finetuning with 32, 128 and 256 new facts, scaled to its peak; circles mark where γˉind\bar{\gamma}_{\mathrm{ind}} turns positive. (middle) The step of the peak against that step, for different numbers of new facts (filled) and for different learning rates and batch sizes (open). (right) Accuracy on the new facts at that step: it depends on their number, but not on the learning rate or the batch size. Ten seeds.

Localizing the common shift

To find which weights carry the common shift, we take the checkpoint at the end of the collapse (step 50), restore one group of weights to its value before finetuning, and recompute the final hidden states of the old facts. We measure the common shift Δhˉ\Delta\bar{h} of Section 4 with and without the restoration, and report the norm of the difference as a fraction of ∥Δhˉ∥\lVert\Delta\bar{h}\rVert, averaged over the six attributes. The groups partition all parameters, so their shares can be compared directly; each is measured with only that group restored, so they need not add up to 100%. Nothing is retrained, so the learning of the new facts is unaffected by construction.

The attention value and output weights carry 84% of the shift, and the query and key weights 11% (Table 2); after the recovery (step 200), the value and output weights still carry 85%. The unembedding is applied after the point at which the shift is measured and serves as a control: restoring it leaves the shift unchanged, as it must.

Weights restoredShare of the common shift
Attention value and output84%
Attention query and key11%
Input embedding2%
LayerNorms1%
Unembedding (control)0%

Table 2. Share of the common shift removed by restoring each group of weights to its value before finetuning, at the trough (step 50; three seeds, standard deviation below 0.3 percentage points).

Transformer with MLP blocks

We repeat every analysis of § 4 with a Transformer that has MLP blocks of width 4d4d and is otherwise identical: same data, same size, same pretraining and finetuning. The picture is the same, with one difference that matters: the fact-specific drift takes a larger part in the collapse.

Collapse, recovery and erosion. Finetuning on CC lowers recall of the old facts only slowly, to 0.94 after 1,000 steps (Figure 23, left). Finetuning on B′B' makes the old facts of AA collapse to 0.53 at step 30, recover to 0.93 and then erode to 0.75, while those of BB, whose answers the new facts share, barely move during the collapse (right).

Figure 23. The Transformer with MLP blocks reproduces Figure 1. Accuracy of the old and new facts when finetuning on CC (left) and on B′B' (right).

Common shift and fact-specific drift. As in Figure 4, the common shift grows fast, peaks at the bottom of the collapse and then partly retracts, while the fact-specific drift keeps growing and overtakes it after about 90 steps (Figure 24, left). Subtracting the common part of the change of the logits removes the collapse, raising old-fact accuracy at the bottom from 0.53 to 0.99 (middle), and the old facts keep their order within their own half: 97% of them still rank their correct answer first within it (right).

Figure 24. With MLP blocks, removing the common shift still removes the collapse. (left) Common shift and fact-specific drift of the old hidden states. (middle) Old-fact accuracy as trained, with only the common part of the change of their logits, and with it removed. (right) Old facts whose correct answer still ranks first within their own half, against their accuracy. Three seeds; the dotted line marks the bottom of the collapse.

The common shift turns the drift into a collapse. Keeping only the common part lowers recall less here than in the attention-only Transformer (Figure 24, middle), while removing it still restores the old facts. Both models therefore collapse in the way Section 4 describes: the common shift brings the old facts close to losing to the new answer region, and the fact-specific drift pushes them across. The two differ only in how the work is shared. Splitting the margin of each old fact recalled wrongly, its correct logit minus that of its strongest competitor, into its pretrained value and the contributions of the common and fact-specific parts (Figure 25), the common part alone almost cancels the pretrained margin in the minimal model and in the attention-only Transformer, but leaves a larger part of it with MLP blocks, where the fact-specific drift is larger at the bottom of the collapse. Without the shift, the drift alone collapses neither model.

Figure 25. What turns an old fact wrong. For the old facts recalled wrongly, the margin of the correct answer over its strongest competitor, split into its pretrained value and the contributions of the common and fact-specific parts of the change of the logits.

Where the shift is written. Restoring groups of weights as in Appendix § 11.§ 4, the MLP weights and the attention value and output weights each carry about half of the common shift at the bottom of the collapse (46% and 47%), the query and key weights 3%, and the embedding and LayerNorms less than 2% each. Both MLP and attention value and output weights write content into the residual stream, so the shift is again written into the associative memories of the network rather than into where attention goes. Adding MLP blocks does not move the shift to a new place, but spreads it over a second memory: the update that all new facts share is written wherever the network stores associations, in proportion to how much each store takes part in learning them. The query and key weights, which decide where attention goes, contribute little during the collapse and somewhat more after the recovery, as in the attention-only Transformer, where their share also grows once the fact-specific drift dominates. The collapse is thus a change in what the network writes about each fact, not in which tokens it reads.

Timing. Changing the learning rate and the batch size as in Appendix § 11.§ 2 moves the bottom of the collapse from step 20 to step 56, while the new facts are recalled with 23 to 33% accuracy at every bottom (Figure 26). As in the attention-only Transformer, the end of the collapse follows the learning of the new facts rather than the number of steps: a faster optimizer reaches the bottom sooner, but at almost the same point in learning the new facts. This point is not shared across architectures, however: with MLP blocks, the collapse ends when fewer new facts are recalled than without them. What the two models have in common is therefore not a threshold on new-fact accuracy, but the mechanism that sets it, the individual margin of the new facts turning positive, whose relation to accuracy depends on the model and, as Appendix § 11.§ 3 shows, on the number of new facts. The depth of the collapse, in contrast, depends on the learning rate, more strongly than without MLP blocks: halving it leaves only a shallow collapse, consistent with § 4, where the depth, unlike the timing, lies outside our gradient-flow analysis.

Figure 26. Timing in the Transformer with MLP blocks. Old-fact (left) and new-fact (right) accuracy under five learning rates and batch sizes; circles and dotted lines mark the bottom of each collapse. Three seeds evaluated at every 2 steps

The pretrained language model

Why recall of the old facts first rises.

In the first 25 to 30 steps of finetuning, recall of the old facts rises from 0.87 to about 0.93 with both kinds of new facts, although none of them is replayed. Before finetuning, the model answers 54 of the 422 old facts wrongly, but for 47 of them it already ranks the correct answer first among the possible answers of the relation, and loses only to a continuation that is not an answer. Every old fact that becomes correct during the rise is one of these 47 (26 with synthetic individuals, 32 with real entities), and the rank of the correct answer among the possible answers does not change. In every finetuning document, the answer immediately follows the relation, so finetuning raises answers as a whole above other continuations without changing which answer the model prefers. The collapse sets in once the shift toward the new answers dominates.

Removing one direction of the update

The edit. At each evaluation step of a finetuning run, we compute the update ΔW=W(t)−W(0)\Delta W = W(t) - W(0) of every weight matrix of the transformer blocks of OLMo 2 1B: the query, key, value and output matrices of attention and the three matrices of the MLP, in each of the 16 layers, 112 matrices in total. The embedding and the unembedding are left untouched. We remove the top singular direction of each update, W(t)←W(t)−σ1u1v1TW(t) \leftarrow W(t) - \sigma_1 u_1 v_1^{\mathsf{T}}, evaluate the edited model, and then restore the original weights before training continues, so that the finetuning run itself is never modified. The removed direction is small: it holds about 15% of the squared norm of a typical update. As a control, we instead remove a random rank-one matrix of the same norm from each update.

Effect on the old facts. Removing the top direction keeps the old facts close to their accuracy before finetuning through the collapse, for both kinds of new facts, while the random control leaves them exactly where training left them (Table 3). The edit also keeps the loss on a fixed sample of ordinary text (64 sequences of 512 tokens) close to its value before finetuning, whereas finetuning alone raises it.

New factsStepOld factsNew facts
trainedtop removedrandom removedtrainedtop removed
Synthetic individuals800.280.770.280.030.01
4000.380.700.380.900.40
Real entities800.730.880.730.460.25
4000.550.790.551.000.66

Table 3. Accuracy of OLMo 2 1B at the trough (step 80) and after 400 steps of finetuning, with the top or a random direction of each weight update removed. Before finetuning, the old facts are recalled with accuracy 0.87. Small finetuning set for the synthetic individuals; three seeds.

The edit is not a return to an earlier point of training. The edit lowers the accuracy on the new facts, which raises the question of whether it simply moves the model back along its training trajectory. To test this, we compare the edited model with the trained model at the same accuracy on the new facts: for each edited checkpoint, we find the step at which training first reached the same new-fact accuracy, interpolating between evaluations, and read the old-fact accuracy there. For real entities, at new-fact accuracies of 21%, 34% and 66%, the edited model recalls 88%, 88% and 79% of the old facts, against 81%, 73% and 72% for the trained model: no point of the training run combines the edited model’s old-fact and new-fact accuracies. The reduction in new-fact accuracy indicates that the removed direction also carries part of what the new facts share.

The same edit in the controlled Transformers

We apply the edit of § 5 to the two Transformers of § 4: at each checkpoint, we remove the top singular component of the update of every weight matrix in the Transformer blocks (attention and, where present, MLP), leave the embedding and the unembedding untouched, and evaluate the edited model; as a control, we remove a random rank-one matrix of the same norm instead. The removed direction holds 8% of the squared norm of a typical update in the attention-only Transformer and 14% with MLP blocks, close to the 15% of the language model.

Effect on the old facts. At the bottom of the collapse, the edit raises old-fact accuracy from 0.12 to 0.57 in the attention-only Transformer and from 0.54 to 1.00 with MLP blocks, whereas the control leaves it exactly where training did (Figure 27, left and middle). The edited model recalls more old facts than the trained one throughout finetuning, still 0.37 against 0.29 and 0.88 against 0.73 after 1,200 steps. As in the language model, the edit also slows the learning of the new facts in the attention-only Transformer, as the removed direction carries part of what they share; with MLP blocks it barely affects them.

Accuracy on old and new facts and cosine similarity with the common shift for attention-only and MLP-block Transformers

Figure 27. Removing the top direction of the update in the controlled Transformers. (left, middle) Accuracy on old (solid) and new (dotted) facts as trained, with the top singular component of every block-weight update removed, and with a random rank-one matrix of the same norm removed. (right) Cosine between the change the edit makes to the readout states of the old facts and their common shift. Three seeds.

Why the top direction carries the shift. The common shift is what all new facts write coherently into the old hidden states, so while it is being written it should dominate the update. We measure how the edit changes the readout states of the old facts and compare this change with the common shift (Figure 27, right). At the bottom of the collapse the two are aligned, with cosine 0.75 in the attention-only Transformer and 0.97 with MLP blocks. As the fact-specific drift grows, the top direction aligns less and less with the shift, down to 0.22 and 0.49 after 1,200 steps. In the attention-only Transformer, the edit removes only about a quarter of the shift at the bottom of the collapse and yet restores half of the old facts: as Appendix § 11.§ 5 shows, the common part alone nearly cancels their pretrained margin in this model, so removing part of it is enough to bring many of them back.

The edit is not a return to an earlier point of training. As in Appendix § 12.§ 2, we compare the edited model with the trained model at the same accuracy on the new facts. While the new facts are being learned, the edited model recalls more old facts at every new-fact accuracy: at step 100, 0.60 against 0.21 in the attention-only Transformer and 1.00 against 0.90 with MLP blocks. Once all new facts are recalled, the comparison loses its meaning, as every later checkpoint is matched to the first step at which training reached full accuracy on the new facts.

References

  1. [1]Zeyuan Allen-Zhu and Yuanzhi Li. Physics of Language Models: Part 3.1, Knowledge Storage and Extraction. In *International Conference on Machine Learning*, 2024.arxiv.org/abs/2309.14316
  2. [2]Zeyuan Allen-Zhu and Yuanzhi Li. Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Laws. In *International Conference on Learning Representations*, 2025.arxiv.org/abs/2404.05405
  3. [3]Paul W. B. Atkins and Jaap M. J. Murre. Recovery of Unrehearsed Items in Connectionist Models. *Connection Science*, 1998.DOI
  4. [4]Vivien Cabannes, Elvis Dohmatob, and Alberto Bietti. Scaling Laws for Associative Memories. In *International Conference on Learning Representations*, 2024.arxiv.org/abs/2310.02984
  5. [5]MohammadReza Davari, Nader Asadi, Sudhir Mudur, Rahaf Aljundi, and Eugene Belilovsky. Probing Representation Forgetting in Supervised and Unsupervised Continual Learning. In *IEEE/CVF Conference on Computer Vision and Pattern Recognition*, 2022.arxiv.org/abs/2203.13381
  6. [6]Matthias De Lange, Gido M. van de Ven, and Tinne Tuytelaars. Continual Evaluation for Lifelong Learning: Identifying the Stability Gap. In *International Conference on Learning Representations*, 2023.arxiv.org/abs/2205.13452
  7. [7]Ebbinghaus, H. (1885). Über das Gedächtnis.
  8. [8]Robert M. French. Catastrophic Forgetting in Connectionist Networks. *Trends in Cognitive Sciences*, 1999.pubmed.ncbi.nlm.nih.gov/10322466
  9. [9]Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. Transformer Feed-Forward Layers Are Key-Value Memories. In *Conference on Empirical Methods in Natural Language Processing*, 2021.arxiv.org/abs/2012.14913
  10. [10]Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson. Dissecting Recall of Factual Associations in Auto-Regressive Language Models. In *Conference on Empirical Methods in Natural Language Processing*, 2023.arxiv.org/abs/2304.14767
  11. [11]Ian J. Goodfellow, Mehdi Mirza, Da Xiao, Aaron Courville, and Yoshua Bengio. An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networks. In *International Conference on Learning Representations*, 2014.arxiv.org/abs/1312.6211
  12. [12]Kshitij Gupta, Benjamin Thérien, Adam Ibrahim, Mats L. Richter, Quentin Anthony, Eugene Belilovsky, Irina Rish, and Timothée Lesort. Continual Pre-Training of Large Language Models: How to (Re)warm Your Model? *arXiv preprint arXiv:2308.04014*, 2023.arXiv
  13. [13]Inman Harvey and James V. Stone. Unicycling Helps Your French: Spontaneous Recovery of Associations by Learning Unrelated Tasks. *Neural Computation*, 1996.DOI
  14. [14]Timm Hess, Eli Verwimp, Gido M. van de Ven, and Tinne Tuytelaars. Knowledge Accumulation in Continually Learned Representations and the Issue of Feature Forgetting. *Transactions on Machine Learning Research*, 2024.arxiv.org/abs/2304.00933
  15. [15]Phil A. Hetherington and Mark S. Seidenberg. Is There ‘Catastrophic Interference’ in Connectionist Networks? In *Annual Conference of the Cognitive Science Society*, 1989.
  16. [17]Adam Ibrahim, Benjamin Thérien, Kshitij Gupta, Mats L. Richter, Quentin Anthony, Timothée Lesort, Eugene Belilovsky, and Irina Rish. Simple and Scalable Strategies to Continually Pre-Train Large Language Models. *Transactions on Machine Learning Research*, 2024.arxiv.org/abs/2403.08763
  17. [18]James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming Catastrophic Forgetting in Neural Networks. *Proceedings of the National Academy of Sciences*, 2017.DOI
  18. [19]Suhas Kotha, Jacob Mitchell Springer, and Aditi Raghunathan. Understanding Catastrophic Forgetting in Language Models via Implicit Inference. In *International Conference on Learning Representations*, 2024.arxiv.org/abs/2309.10105
  19. [20]Giulia Lanzillotta, Damiano Meier, and Thomas Hofmann. Heads Collapse, Features Stay: Why Replay Needs Big Buffers. In *International Conference on Learning Representations*, 2026.arxiv.org/abs/2512.07400
  20. [21]Lin, J., Wang, Z., Qian, K., Wang, T., Srinivasan, A., Zeng, H., Jiao, R., Zhou, X., Gesi, J., Wang, D., & al., . et . (2026). SFT Doesn’t Always Hurt General Capabilities: Revisiting Domain-Specific Fine-Tuning in LLMs.. International Conference on Learning Representations.
  21. [22]Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-Tuning. *IEEE Transactions on Audio, Speech and Language Processing*, 2025.arxiv.org/abs/2308.08747
  22. [23]Martin Marek, Dongkyu Cho, Shikai Qiu, Rumi Chunara, Pavel Izmailov, and Andrew Gordon Wilson. Forgetting in Language Models: Capacity, Optimization, and Self-Generated Replay. *arXiv preprint arXiv:2605.26097*, 2026.arXiv
  23. [24]Michael McCloskey and Neal J. Cohen. Catastrophic Interference in Connectionist Networks: The Sequential Learning Problem. In *Psychology of Learning and Motivation*. Academic Press, 1989.DOI
  24. [25]Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. Locating and Editing Factual Associations in GPT. In *Advances in Neural Information Processing Systems*, 2022.arxiv.org/abs/2202.05262
  25. [26]Kengo Murata, Tetsuya Toyota, and Kouzou Ohara. What Is Happening Inside a Continual Learning Model? A Representation-Based Evaluation of Representational Forgetting. In *IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops*, 2020.DOI
  26. [27]Nanda, N., Rajamanoharan, S., Kramár, J., & Shah, R. (2023). Fact Finding: Attempting to Reverse-Engineer Factual Recall on the Neuron Level. In Alignment Forum.
  27. [28]Eshaan Nichani, Jason D. Lee, and Alberto Bietti. Understanding Factual Recall in Transformers via Associative Memories. In *International Conference on Learning Representations*, 2025.arxiv.org/abs/2412.06538
  28. [29]Leo Postman, Karen Stark, and Janet Fraser. Temporal Changes in Interference. *Journal of Verbal Learning and Verbal Behavior*, 1968.DOI
  29. [30]Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., & Sutskever, I. (2019). Language Models Are Unsupervised Multitask Learners. In OpenAI.
  30. [31]Vinay V. Ramasesh, Ethan Dyer, and Maithra Raghu. Anatomy of Catastrophic Forgetting: Hidden Representations and Task Semantics. In *International Conference on Learning Representations*, 2021.
  31. [32]Roger Ratcliff. Connectionist Models of Recognition Memory: Constraints Imposed by Learning and Forgetting Functions. *Psychological Review*, 1990.pubmed.ncbi.nlm.nih.gov/2186426
  32. [33]Mark Rofin, Aditya Varre, and Nicolas Flammarion. (How) Learning Rates Regulate Catastrophic Overtraining. In *Conference on Language Modeling*, 2026.arxiv.org/abs/2604.13627
  33. [34]Rolnick, D., Ahuja, A., Schwarz, J., Lillicrap, T., & Wayne, G. (2019). Experience Replay for Continual Learning. Advances in Neural Information Processing Systems.
  34. [35]Andrew M. Saxe, James L. McClelland, and Surya Ganguli. A mathematical theory of semantic development in deep neural networks. *Proceedings of the National Academy of Sciences*, 116 (23):11537–11546, May 2019. ISSN 1091-6490. doi: 10.1073/pnas.1820226116. URL http://dx.doi.org/10.1073/pnas.1820226116.
  35. [36]Christopher Sciavolino, Zexuan Zhong, Jinhyuk Lee, and Danqi Chen. Simple Entity-Centric Questions Challenge Dense Retrievers. In *Conference on Empirical Methods in Natural Language Processing*, 2021.arxiv.org/abs/2109.08535
  36. [37]Jacob Mitchell Springer, Sachin Goyal, Kaiyue Wen, Tanishq Kumar, Xiang Yue, Sadhika Malladi, Graham Neubig, and Aditi Raghunathan. Overtrained Language Models Are Harder to Fine-Tune. In *International Conference on Machine Learning*, 2025.arxiv.org/abs/2503.19206
  37. [38]Team, O., Walsh, P., Soldaini, L., Groeneveld, D., Lo, K., Arora, S., Bhagia, A., Gu, Y., Huang, S., Jordan, M., & al., . et . (2025). 2 OLMo 2 Furious. Conference on Language Modeling.
  38. [39]Endel Tulving and Zena Pearlstone. Availability versus Accessibility of Information in Memory for Words. *Journal of Verbal Learning and Verbal Behavior*, 1966.DOI
  39. [40]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention Is All You Need. In *Advances in Neural Information Processing Systems*, 2017.arxiv.org/abs/1706.03762
  40. [41]Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tie-Yan Liu. On Layer Normalization in the Transformer Architecture. In *International Conference on Machine Learning*, 2020.arxiv.org/abs/2002.04745
  41. [42]Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual Learning Through Synaptic Intelligence. In *International Conference on Machine Learning*, 2017.pubmed.ncbi.nlm.nih.gov/31909397
  42. [43]Biao Zhang and Rico Sennrich. Root Mean Square Layer Normalization. In *Advances in Neural Information Processing Systems*, 2019.arxiv.org/abs/1910.07467
  43. [44]Junhao Zheng, Xidi Cai, Shengjie Qiu, and Qianli Ma. Spurious Forgetting in Continual Learning of Language Models. In International Conference on Learning Representations, 2025.arxiv.org/abs/2501.13453
  44. [45]Nicolas Zucchet, Jörg Bornschein, Stephanie C. Y. Chan, Andrew Kyle Lampinen, Razvan Pascanu, and Soham De. How Do Language Models Learn Facts? Dynamics, Curricula and Hallucinations. In Conference on Language Modeling, 2025.arxiv.org/abs/2503.21676
  45. [46]Nicolas Zucchet, Hyun Dong Lee, and Scott Linderman. Language Models Suffer From a Curse of Ambiguity. arXiv preprint arXiv:2608.15448, 2026.arXiv
  46. [47]Hinton, G. E. & Plaut, D. C. (1987). Using fast weights to deblur old memories. Proceedings of the 9th Annual Conference of the Cognitive Science Society, 177–186.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

License
CC0-1.0
Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type