betaFeedback

WorksComputer Science

Representation Drift in Continual Learning: LoRA versus N-gram Memory

Abstract

A language model that keeps learning online must not slowly erode its own base capabilities. We ask which part of a modern LLM should absorb continual updates, by measuring how each choice changes the model's internal representations. On a 48-layer mixture-of-experts model with a native pretrained N-gram memory, we train a seven-task chain under three update mechanisms with identical data and budgets: updating only the N-gram memory table, continually training one shared LoRA adapter, and training a fresh LoRA per task that is merged into the backbone. We capture fixed-context representations at every layer and task boundary. Updating only the N-gram memory changes the base model's representations of general math and code inputs by 26%/15% (relative RMS), against 64%/35% for merged and 97%/39% for shared LoRA. This drift does not grow with the number of tasks: it reaches 25% after the first task and stays there for all seven, while both LoRA variants keep accumulating. Its generic behaviour is essentially unchanged (no code problem lost, math NLL -0.01), and every change is confined to inspectable, reversible table rows. The cost appears elsewhere: N-gram memory acquires new tasks more weakly and its stored tasks interfere with one another, losing as much old-task NLL as shared LoRA. We show that this forgetting is governed by drift on the learned tasks' own inputs, measured from the checkpoint at which each was learned, not by generic drift (Spearman rho=0.85; rho=0.71 on Llama-3-8B), and we derive the exact relations behind it: with a frozen head, every pairwise logit margin changes by the projection of drift onto a head-difference direction. These results support a design principle for long-running online learning: write new knowledge only into the memory table and keep the backbone fixed; the remaining problem, interference between stored tasks, then lies inside the memory.

Introduction

A deployed language model that learns continually faces a constraint that one-off fine-tuning does not: updates never stop. Any perturbation of the shared backbone that accumulates with the number of updates will, over a long enough horizon, erode the general capabilities the model was deployed for. The practical question is therefore not only how well a model learns each new task, but where in the model new knowledge should be written so that the base stays intact as updates pile up.

Modern LLMs offer more than one place to write. Besides low-rank adapters on the backbone weights (LoRA [11]), recent production models carry large native memories, such as hashed N-gram embedding tables pretrained jointly with the backbone [23]. These are read through deterministic token addresses and touched sparsely. We compare three write channels on the same model, data and budget:

  • N-gram memory: only the rows of the native N-gram table that the current task addresses are trained; every Transformer weight, the router, the memory read-out and the LM head are frozen.

  • Shared LoRA: one LoRA adapter covering attention, linear attention and every routed and shared expert is trained continually across tasks.

  • Merged LoRA: a fresh adapter of the same shape is trained per task and merged into the backbone before the next task.

We judge them by what they do to the model’s representations. At every task boundary of a seven-task chain we capture representations for identical fixed contexts at all 48 layers, the LM-head input and every MLP/MoE block. We measure them against two references. Notation follows the key–value view of AlphaEdit [6]: a layer’s input representation is a key, the keys of several inputs are stacked into a matrix KK, and the layer’s response is Y=KWY = KW. With a frozen output head, every change in logits comes from drift of the keys at the head. Big-KK drift compares general math and code inputs with the pretrained base and measures erosion of the base. Small-kik_i drift compares each learned task’s inputs with the checkpoint at which that task had just been learned and measures what happens to acquired knowledge afterwards.

Findings.

  1. N-gram memory leaves the base nearly untouched, and the effect does not accumulate. Its big-KK drift is 26%/15% on math/code versus 64–97%/35–39% for LoRA. It reaches this level after the first task and stays flat for all seven, while both LoRA variants keep growing. The ordering holds at every sampled layer and answer position. Generic NLL and generation are essentially unchanged (§ 5.1, § 5.2 and § 5.4).

  1. Its per-round changes cancel. The realised squared drift is 15% of the sum of per-round squared changes, against 40–56% for LoRA. Successive table updates move the generic representation back and forth rather than away (§ 5.3).

  1. Its cost is interference among stored tasks, not damage to the base. On learned-task inputs N-gram memory drifts as much as shared LoRA, and it acquires difficult tasks more weakly. Merged LoRA retains learned tasks best (§ 5.6 and § 6.3).

  1. Forgetting follows small-kik_i drift, not big-KK drift, on Qwen3.8 (ρ=0.85\rho= 0.85) and on Llama-3-8B (ρ=0.71\rho= 0.71) (§ 6.1).

Theory. § 3 gives the relations that connect these measurements. They are a radial/directional decomposition of drift, a telescoping identity that exposes cross-round interference, a bound of retention loss by small-kik_i drift, and an exact margin identity: with a frozen head, a learned token is lost only when drift along a head-difference direction exceeds its acquisition margin. For N-gram memory, an input whose addressed rows were never rewritten is exactly unchanged. This is why generic drift stays small, and why interference concentrates on inputs that share rows.

Position. For a model that must learn online indefinitely, the binding constraint is the base, and among the three channels only N-gram memory keeps the base fixed with a perturbation that does not grow with the number of tasks. We therefore argue that new knowledge should be written only into the memory table. The weaknesses we observe, weaker acquisition and inter-task interference in shared rows, are then problems of memory management, such as addressing, capacity and per-row update rules, rather than reasons to resume editing the backbone.

Related Work

Catastrophic forgetting in LLM fine-tuning. Forgetting under sequential training is a longstanding problem [13, 20]. For LLMs, continual instruction tuning and domain adaptation have been shown to degrade general capabilities [19], and LoRA has been reported to “learn less and forget less” than full fine-tuning [3]. Our comparison is between two LoRA continuation strategies and a non-LoRA memory, under matched data exposure.

Knowledge editing and null spaces. ROME and MEMIT [21, 22] treat FFN projections as key–value stores and write facts by solving constraints on KWKW. AlphaEdit [6] projects updates onto the null space of the keys to be preserved, K0K_0, so that K0ΔW=0K_0 \Delta W = 0. Our big-KK/small-kk notation comes directly from this view. The difference is that a null-space constraint protects against weight change at fixed keys, whereas under continual training the keys themselves drift (Equation (3)); that second term is what we measure.

Orthogonality and subspace methods. A family of methods constrains successive updates to be orthogonal to previously used subspaces, including orthogonal gradient descent [7], O-LoRA [27] and InfLoRA [16]. These methods implicitly use parameter- or gradient-space geometry as a proxy for forgetting. Our margin identity (Proposition 1) makes explicit the output-space quantity that such constraints are ultimately trying to protect.

Representation-level analyses of forgetting. Ramasesh et al. [24] localise forgetting to higher layers through representation similarity; Davari et al. [5] show that representation forgetting measured by linear probes can be much smaller than accuracy loss suggests. CKA [14] is the standard similarity measure; we report it only as an auxiliary diagnostic because it is invariant to isotropic scaling and orthogonal transforms, both of which change logits under a frozen head.

Memory-augmented and sparse-update continual learning. Product-key and memory layers [2, 15] provide large, sparsely addressed parameter stores; Lin et al. [18] argue that sparse memory fine-tuning forgets less than LoRA or full fine-tuning. Hashed N-gram memories pretrained jointly with the backbone now appear in production LLMs, including the model we study [23], whose report motivates deterministic addressing partly by cheap offloading. We study such a memory as a continual-update channel. Its frozen backbone does not keep learned-task representations fixed, and low generic drift does not imply better retention.

Margins and robustness. Logit margins are classical in generalisation and robustness analysis [1]. We use the exact relation between margin change and drift projected onto head-difference vectors as a bookkeeping device for forgetting, closely related to how certified-robustness arguments bound prediction changes by input perturbation norms.

Merging and update placement. Merging task-specific weight increments into a shared model is studied as task arithmetic [12]; our merged-LoRA arm applies it sequentially, one task at a time. Forgetting has also been shown to depend on how an update is obtained, not only on its size [25]. We vary where the update is placed (a sparse memory table, one continually trained adapter, or a sequence of merged adapters) under identical data, and measure where in the network the resulting drift appears.

Representation Drift and How It Enters Forgetting

Notation follows our experiment reports. FtF_t is the checkpoint after task tt (F0F_0 is the pretrained base). For a fixed input context xx and fixed token position, ht(x)h_t(x) is the hidden state entering the frozen LM head UU, so that

zt(x)=Uht(x)+b.(1)z_t(x) = U h_t(x) + b. \tag*{(1)}

All three update mechanisms studied here leave UU and bb untouched, so every change in logits is a change in hh.

Keys, responses, and two sources of change

Our KK and kk follow the key–value view of knowledge editing [6, 21]. A linear layer is read as a map from keys to values, and the layer’s input representation is the key. Stacking the keys of several inputs as rows gives a matrix KK, and the layer’s response to them is

Y=KW.(2)Y = KW. \tag*{(2)}

Big KK denotes the keys of existing knowledge that should be preserved, the K0K_0 of AlphaEdit. Complete world knowledge cannot be observed, so we use fixed generic math and code probes as its proxy. Small kk denotes the keys of newly written knowledge. Once task ii has been learned, its keys kik_i also become old keys to be preserved.

For the same inputs, the change of response between rounds ii and tt splits exactly as

Yt−Yi=Ki(Wt−Wi)⏟weight change at fixed keys+(Kt−Ki)Wt⏟key drift through new weights.(3)Y_t - Y_i = \underbrace{K_i(W_t - W_i)}_{\text{weight change at fixed keys}} + \underbrace{(K_t - K_i)W_t}_{\text{key drift through new weights}}. \tag*{(3)}

AlphaEdit’s null-space constraint K0ΔW=0K_0 \Delta W = 0 controls the first term. The second term comes from the keys themselves. Every layer’s input is that layer’s key, so any upstream parameter update reaches downstream layers as key drift, even if their weights never change.

The three update mechanisms occupy different places in Equation (3). Both LoRA variants have both terms at every adapted layer. N-gram memory changes no weight outside the table, so the first term vanishes at every layer and only key drift remains, originating at the table injection in the second layer. The LM head is frozen in all three. At the head the key is hh and the response is the logits, so the first term is identically zero and

Zt−Zi=(Kt−Ki)UT.(4)Z_t - Z_i = (K_t - K_i)U^{\mathsf{T}}. \tag*{(4)}

every output change comes from key drift. What this paper calls representation drift is the key drift Kt−KiK_t - K_i at each layer, and in particular at the head. We first define how to measure it and then show how it enters loss and predictions exactly.

Two references: big KK and small kik_i

Task ii has a fixed probe set SiS_i. For t>it > i define the drift of an old-task input and its pooled magnitude,

eit(x)=ht(x)−hi(x),Dit=(1∣Si∣∑x∈Si∥eit(x)∥2)1/2.(5)e_i^t(x) = h_t(x) - h_i(x), \qquad D_i^t = \left(\frac{1}{|S_i|}\sum_{x \in S_i}\lVert e_i^t(x)\rVert^2\right)^{1/2}. \tag*{(5)}

This is small-kik_i drift: task-ii inputs, measured from the checkpoint at which task ii was just learned. Big-KK drift replaces the reference by F0F_0 and the inputs by a fixed generic probe set (math, code) that no task trains on. Neither the change F0→FiF_0 \to F_i on SiS_i (that is learning) nor big-KK drift is a measurement of forgetting of task ii. In tables we report the scale-free pooled ratio

rF=∥Kafter−Kbefore∥F∥Kbefore∥F=(∑x∥hafter(x)−hbefore(x)∥2∑x∥hbefore(x)∥2)1/2,(6)r_{\mathrm{F}} = \frac{\lVert K_{\mathrm{after}} - K_{\mathrm{before}}\rVert_{\mathrm{F}}}{\lVert K_{\mathrm{before}}\rVert_{\mathrm{F}}} = \left(\frac{\sum_x \lVert h_{\mathrm{after}}(x) - h_{\mathrm{before}}(x)\rVert^2}{\sum_x \lVert h_{\mathrm{before}}(x)\rVert^2}\right)^{1/2}, \tag*{(6)}

where the rows of KK are the keys of these inputs at that site. rFr_{\mathrm{F}} is an energy-weighted average of per-query relative drifts, not their arithmetic mean, and a percentage of representation change, not of lost knowledge.

Length and direction. For a fixed query with old representation kk and new representation k′k', let ρ=∥k′∥/∥k∥\rho= \lVert k'\rVert/\lVert k\rVert and c=cos⁡(k,k′)c = \cos(k,k'). Then exactly

∥k′−k∥2∥k∥2=(ρ−1)2+2ρ(1−c).(7)\frac{\lVert k' - k\rVert^2}{\lVert k\rVert^2} = (\rho- 1)^2 + 2\rho(1-c). \tag*{(7)}

The first term is radial (length) change, the second directional change. Pooled decompositions weight by old energy; per-query percentages must not be averaged first and then substituted. Linear CKA [14] is reported only as an auxiliary statistic: it is invariant to isotropic scaling and orthogonal rotation, both of which change what a fixed head reads.

Accumulation across tasks

Adjacent-round drift on the same input is vi,j(x)=hj(x)−hj−1(x)v_{i,j}(x) = h_j(x) - h_{j-1}(x). On a fixed input the telescoping identity is exact:

eit(x)=∑j=i+1tvi,j(x),∥eit∥2=∑j∥vi,j∥2+2∑a<b⟨vi,a,vi,b⟩.(8)e_i^t(x) = \sum_{j=i+1}^{t} v_{i,j}(x), \qquad\lVert e_i^t\rVert^2 = \sum_j \lVert v_{i,j}\rVert^2 + 2\sum_{a<b}\langle v_{i,a},v_{i,b}\rangle. \tag*{(8)}

The inner products are the inter-task interference terms: aligned successive updates make drift grow linearly in the number of tasks, mutually orthogonal ones only as its square root, and opposing ones cancel so that the endpoint drift is smaller than the sum of per-round drifts. For a probe set stacked as K(j)K^{(j)} with vj=K(j)−K(j−1)v_j = K^{(j)} - K^{(j-1)}, normalise by the base energy,

Dt=∥K(t)−K(0)∥F2∥K(0)∥F2,Ej=∥vj∥F2∥K(0)∥F2,Rt=Dt∑j=1tEj.(9)D_t = \frac{\lVert K^{(t)} - K^{(0)}\rVert_{\mathrm{F}}^2}{\lVert K^{(0)}\rVert_{\mathrm{F}}^2}, \qquad E_j = \frac{\lVert v_j\rVert_{\mathrm{F}}^2}{\lVert K^{(0)}\rVert_{\mathrm{F}}^2}, \qquad R_t = \frac{D_t}{\sum_{j=1}^{t} E_j}. \tag*{(9)}

Rt<1R_t < 1 iff the cross-round inner products sum to a negative number (net cancellation), Rt>1R_t > 1 iff they sum to a positive number; Rt=1R_t = 1 does not imply pairwise orthogonality. Archived adjacent drifts are normalised by ∥K(j−1)∥F\lVert K^{(j-1)}\rVert_{\mathrm{F}}, so EjE_j is recovered by first multiplying by the pooled norm ratio qj−1=∥K(j−1)∥F/∥K(0)∥Fq_{j-1} = \lVert K^{(j-1)}\rVert_{\mathrm{F}}/\lVert K^{(0)}\rVert_{\mathrm{F}} and then squaring. Moreover Dj−Dj−1−EjD_j - D_{j-1} - E_j equals twice the inner product of round jj’s change with the accumulated change, so dividing by 2Dj−1Ej2\sqrt{D_{j-1}E_j} gives their overall cosine.

From drift to loss and to argmax

With a frozen head the logit change at the head input is exact,

δzt(x)=zt(x)−zi(x)=Ueit(x).(10)\delta z_t(x) = z_t(x) - z_i(x) = Ue_i^t(x). \tag*{(10)}

For a teacher-forced answer token yy, since ∇zℓ=p−ey\nabla_z\ell= p-e_y has norm at most 2\sqrt{2}, the cross-entropy obeys the strict bound

∣ℓ(zt,y)−ℓ(zi,y)∣≤2∥U∥2∥eit∥2,(11)\lvert\ell(z_t,y)-\ell(z_i,y)\rvert\le\sqrt{2}\lVert U\rVert_2\lVert e_i^t\rVert_2, \tag*{(11)}

and averaging over the task set (Jensen) gives

∣ΔNLLit∣≤2∥U∥2Dit.(12)\lvert\Delta\mathrm{NLL}_i^t\rvert\le\sqrt{2}\lVert U\rVert_2D_i^t. \tag*{(12)}

This bound connects small-kik_i drift directly to retention loss. Big-KK drift cannot replace DitD_i^t in it unless one additionally assumes that old-task queries are distributed like the generic probes.

The bound ignores direction. The second-order expansion makes this explicit:

Δℓ=gi⊤eit+12(eit)⊤U⊤ΛiUeit+O(∥eit∥3),gi=U⊤(pi−ey),Λi=diag⁡(pi)−pipi⊤.(13)\Delta\ell= g_i^{\top}e_i^t + \frac{1}{2}(e_i^t)^{\top}U^{\top}\Lambda_iUe_i^t + O(\lVert e_i^t\rVert^3), \qquad g_i = U^{\top}(p_i-e_y), \qquad\Lambda_i = \operatorname{diag}(p_i)-p_ip_i^{\top}. \tag*{(13)}

Drift that falls in the approximate null space of gig_i leaves NLL unchanged to first order; small drift along a sensitive head direction can cause large forgetting.

For greedy correctness, let the acquisition token margin be mi(x)=zi,y−max⁡c≠yzi,cm_i(x)=z_{i,y}-\max_{c\ne y}z_{i,c}. Because every pairwise logit gap changes by at most ∥uy−uc∥∥e∥≤2∥U∥2→∞∥e∥\lVert u_y-u_c\rVert\lVert e\rVert\le2\lVert U\rVert_{2\to\infty}\lVert e\rVert,

2∥U∥2→∞∥eit(x)∥2<mi(x)⟹the greedy prediction of this token is unchanged.(14)2\lVert U\rVert_{2\to\infty}\lVert e_i^t(x)\rVert_2 < m_i(x) \Longrightarrow\text{the greedy prediction of this token is unchanged}. \tag*{(14)}

If every teacher-forced answer token satisfies Equation (14), exact match of the whole answer is preserved. This is conservative and sufficient only; generation accuracy must be measured separately and cannot be inferred from NLL.

Margin budget along a fixed decision boundary

Equation (14) uses only ∥e∥\lVert e\rVert. The exact statement keeps direction. For reference token yy and competitor c≠yc\ne y with head rows uy,ucu_y,u_c, define

ayc=uy−uc,mi,c=zi,y−zi,c,di,c=mi,c∥ayc∥2,Hi,ct=−ayc⊤eit∥ayc∥2.(15)a_{yc}=u_y-u_c,\qquad m_{i,c}=z_{i,y}-z_{i,c},\qquad d_{i,c}=\frac{m_{i,c}}{\lVert a_{yc}\rVert_2},\qquad H_{i,c}^t=-\frac{a_{yc}^{\top}e_i^t}{\lVert a_{yc}\rVert_2}. \tag*{(15)}

Proposition 1 (Margin identity). With a frozen affine head, for every fixed competitor cc,

mt,c=mi,c+ayc⊤eit=mi,c−∥ayc∥2Hi,ct.(16)m_{t,c}=m_{i,c}+a_{yc}^{\top}e_i^t=m_{i,c}-\lVert a_{yc}\rVert_2H_{i,c}^t. \tag*{(16)}

Hence Hi,ct=di,cH_{i,c}^t=d_{i,c} means yy and cc tie, and Hi,ct>di,cH_{i,c}^t>d_{i,c} means cc strictly overtakes yy.

Proof. mt,c=ayc⊤ht+(by−bc)=ayc⊤(hi+eit)+(by−bc)=mi,c+ayc⊤eitm_{t,c}=a_{yc}^{\top}h_t+(b_y-b_c)=a_{yc}^{\top}(h_i+e_i^t)+(b_y-b_c)=m_{i,c}+a_{yc}^{\top}e_i^t.

This involves no linearisation; H/dH/d and the margin change are the same quantity, not a prediction and its validation. When the reference token strictly leads the full vocabulary at FiF_i (all mi,c>0m_{i,c}>0, outside numerical tolerance), di=min⁡c≠y, ayc≠0di,cd_i=\min_{c\ne y,\ a_{yc}\ne0}d_{i,c} is a safe radius: ∥eit∥<di\lVert e_i^t\rVert<d_i preserves the argmax (Cauchy–Schwarz), which sharpens Equation (14). Positions where yy already trails or ties at FiF_i receive no safe radius and are counted separately. The geometrically nearest competitor

cgeom=arg⁡min⁡c≠y, ∥ayc∥2>0mi,c∥ayc∥2(17)c_{\mathrm{geom}}=\underset{c\ne y,\ \lVert a_{yc}\rVert_2>0}{\arg\min}\frac{m_{i,c}}{\lVert a_{yc}\rVert_2} \tag*{(17)}

need not be the second-highest logit, and the full-vocabulary argmax at FtF_t must be recomputed because a different token may overtake.

Along a fixed boundary the telescoping identity becomes exact per round:

Hi,ct=∑j=i+1tHi,j,c,Hi,j,c=−nycT(hj−hj−1),nyc=ayc∥ayc∥2.(18)H^{t}_{i,c}=\sum_{j=i+1}^{t} H_{i,j,c},\qquad H_{i,j,c}=-n_{yc}^{\mathsf{T}}(h_j-h_{j-1}),\qquad n_{yc}=\frac{a_{yc}}{\lVert a_{yc}\rVert_2}. \tag*{(18)}

We summarise sign coherence by Hnet=∑jHi,j,cH_{\mathrm{net}}=\sum_j H_{i,j,c}, Hgross=∑j∣Hi,j,c∣H_{\mathrm{gross}}=\sum_j\lvert H_{i,j,c}\rvert and the cancellation coefficient κ=1−∣Hnet∣/Hgross\kappa=1-\lvert H_{\mathrm{net}}\rvert/H_{\mathrm{gross}} (for Hgross>0H_{\mathrm{gross}}>0). A positive projection consumes margin and a negative one adds to it.

Sequences. At answer positions ss where the reference token strictly leads at FiF_i, let ρi,st=∥ei,st∥2/di,s\rho^t_{i,s}=\lVert e^t_{i,s}\rVert_2/d_{i,s} and ρi,seqt=max⁡sρi,st\rho^t_{i,\mathrm{seq}}=\max_s\rho^t_{i,s}. If the greedy output at FiF_i equals the reference sequence with every step strictly leading, and decoding at FtF_t uses the same prompt, head, greedy rule and termination, then ρi,st<1\rho^t_{i,s}<1 at every position (including the end token) suffices to preserve the whole sequence. The true first flip is where the greedy trajectory first departs; after it, model change and prefix change are mixed. Initial fragility and later erosion are separated by reporting the distribution of acquisition radii di,sd_{i,s} together with the normalised budget

Fit,∗=max⁡s,cHi,s,ctdi,s,c,(19)F^{t,*}_i=\max_{s,c}\frac{H^t_{i,s,c}}{d_{i,s,c}}, \tag*{(19)}

where Fit,∗≥1F^{t,*}_i\geq1 means some boundary is reached under the reference prefix.

Where drift comes from: layers and update structure

Layer recursion. For the same full token sequence, let Fℓ,Fℓ′F_\ell,F'_\ell be block ℓ\ell before and after an update and EℓE_\ell the representation change entering it. Exactly,

Eℓ+1=Sℓ+Pℓ,Sℓ=Fℓ′(Kℓ)−Fℓ(Kℓ),Pℓ=Fℓ′(Kℓ+Eℓ)−Fℓ′(Kℓ),(20)E_{\ell+1}=S_\ell+P_\ell,\qquad S_\ell=F'_\ell(K_\ell)-F_\ell(K_\ell),\qquad P_\ell=F'_\ell(K_\ell+E_\ell)-F'_\ell(K_\ell), \tag*{(20)}

with ∥Eℓ+1∥F2=∥Sℓ∥F2+∥Pℓ∥F2+2⟨Sℓ,Pℓ⟩F\lVert E_{\ell+1}\rVert_F^2=\lVert S_\ell\rVert_F^2+\lVert P_\ell\rVert_F^2+2\langle S_\ell,P_\ell\rangle_F. Locally Eℓ+1≈JℓEℓ+SℓE_{\ell+1}\approx J_\ell E_\ell+S_\ell: upstream drift propagates through the block Jacobian and the block’s own parameter change adds to it. Layer curves can therefore amplify, attenuate or cancel, and the difference between adjacent layer curves is not that layer’s causal contribution. The recursion separates where drift is created (SℓS_\ell, the source at layer ℓ\ell) from how it is carried (PℓP_\ell), and gives an accumulation bound.

Proposition 2 (Cross-layer accumulation). Let LjL_j be a Lipschitz constant of the updated block Fj′F'_j on the segment between KjK_j and Kj+EjK_j+E_j, and let the input to the first block be unchanged (E1=0E_1=0). Then

∥EL+1∥F≤∑ℓ=1L(∏j=ℓ+1LLj)∥Sℓ∥F.(21)\lVert E_{L+1}\rVert_F\leq\sum_{\ell=1}^{L}\left(\prod_{j=\ell+1}^{L}L_j\right)\lVert S_\ell\rVert_F. \tag*{(21)}

Proof. From Equation (20), ∥Eℓ+1∥F≤∥Sℓ∥F+∥Pℓ∥F≤∥Sℓ∥F+Lℓ∥Eℓ∥F\lVert E_{\ell+1}\rVert_F\leq\lVert S_\ell\rVert_F+\lVert P_\ell\rVert_F\leq\lVert S_\ell\rVert_F+L_\ell\lVert E_\ell\rVert_F; iterate from E1=0E_1=0.

Drift at the output is thus a sum over sources, each amplified by the blocks after it. The bound is conservative: directions and cancellation between sources matter, and depth alone does not determine forgetting. Its value here is structural, because the three update mechanisms have very different sets of sources.

  • LoRA: every adapted block changes, so Sℓ≠0S_\ell\ne0 at every depth and drift is created throughout the network.

  • N-gram memory: every block except the table injection is frozen, so Sℓ=0S_\ell= 0 for all ℓ\ell but one. The whole right-hand side reduces to a single term, the injection change ΔJ(x)\Delta J(x) of Equation (28) carried through the frozen suffix. In particular, if ΔJ(x)=0\Delta J(x) = 0 for an input, its representation is unchanged at every depth. This is the memory-table analogue of the layer-wise induction used for null-space continual learning [26].

How large that single source is depends on the input: small for generic text, which rarely reads the rows a task writes, and large for old-task inputs, which share rows with later tasks. § 5.6 shows both in the layer profile.

If round jj injects a direct perturbation sℓ,j(i)s_{\ell,j}^{(i)} at layer ℓ\ell on old-task inputs, then to first order

eit≈∑j=i+1t∑ℓJL←ℓ+1(t)sℓ,j(i)+higher-order terms.(22)e_i^t \approx\sum_{j=i+1}^{t} \sum_{\ell} J_{L\leftarrow\ell+1}^{(t)}s_{\ell,j}^{(i)} + \text{higher-order terms}. \tag*{(22)}

Unlike Equations (7), (8) and (16), this is an approximation, and any attribution built on it must first report its reconstruction residual ∥v−v^∥/∥v∥\lVert v-\hat{v}\rVert/\lVert v\rVert.

For a block captured at its input and aggregate output, the endpoint change splits exactly as

Fℓ(7)(kℓ(7))−Fℓ(0)(kℓ(0))=Fℓ(0)(kℓ(7))−Fℓ(0)(kℓ(0))⏟input change, old map+Fℓ(7)(kℓ(7))−Fℓ(0)(kℓ(7))⏟map change, new input.(23)F_\ell^{(7)}(k_\ell^{(7)}) - F_\ell^{(0)}(k_\ell^{(0)}) = \underbrace{F_\ell^{(0)}(k_\ell^{(7)}) - F_\ell^{(0)}(k_\ell^{(0)})}_{\text{input change, old map}} + \underbrace{F_\ell^{(7)}(k_\ell^{(7)}) - F_\ell^{(0)}(k_\ell^{(7)})}_{\text{map change, new input}}. \tag*{(23)}

Our captures contain the left-hand side and the input change but not the cross-forward Fℓ(0)(kℓ(7))F_\ell^{(0)}(k_\ell^{(7)}), so the two terms are not separately identified.

Shared LoRA. If the same factors CC, DD keep training, the round-jj weight change is exactly

ΔWℓ,j=δCℓ,jDℓ,j−1+Cℓ,j−1δDℓ,j+δCℓ,jδDℓ,j,(24)\Delta W_{\ell,j} = \delta C_{\ell,j}D_{\ell,j-1} + C_{\ell,j-1}\delta D_{\ell,j} + \delta C_{\ell,j}\delta D_{\ell,j}, \tag*{(24)}

decoder overwrite, re-encoding of old codes, and coupling. The first two terms are first order in the current change because the old factors are given, not small, and they enter sℓ,j(i)=ΔWℓ,jKℓ(i)s_{\ell,j}^{(i)} = \Delta W_{\ell,j}K_\ell^{(i)} directly. The chain ∥δD∥→∥δDki∥→∥CδDki∥→∥JCδDki∥→−nTJCδDki\lVert\delta D\rVert\to\lVert\delta D k_i\rVert\to\lVert C\delta D k_i\rVert\to\lVert J C\delta D k_i\rVert\to-n^\mathsf{T}J C\delta D k_i separates code overlap and functional change from signed boundary harm; only the last is forgetting-relevant.

Fresh/merged LoRA. The old factors are frozen inside the merged weights and each round adds ΔWℓ,j=Cℓ,jDℓ,j\Delta W_{\ell,j} = C_{\ell,j}D_{\ell,j}. There is no direct overwrite of old factors, but the new adapter still responds to old inputs, and cross-layer Jacobians and higher-order products remain. The two arms also differ in expressible capacity: the cumulative update has rank at most rr per module for shared LoRA and at most trtr for merged LoRA. For fixed layer inputs K1K_1, K2K_2 and target increments Z1Z_1, Z2Z_2, any cumulative update CC of rank at most rr that fits the new task to ∥CK2−Z2∥F2≤ε2\lVert CK_2-Z_2\rVert_F^2 \le\varepsilon^2 must incur

∥CK1−Z1∥F2≥[∑j>rσj([Z1 Z2])2−ε2]+,(25)\lVert CK_1-Z_1\rVert_F^2 \ge\left[\sum_{j>r}\sigma_j([Z_1\ Z_2])^2-\varepsilon^2\right]_+, \tag*{(25)}

by the Eckart–Young bound on rank⁡(C[K1 K2])≤r\operatorname{rank}(C[K_1\ K_2]) \le r. Increasing cumulative rank removes this obstruction but does not guarantee that optimisation finds a low-interference solution.

Rank does not set the disturbance; direction does. Write a weight change in the row convention of Equation (2) through its SVD, D=∑jσjvjujTD = \sum_j \sigma_j v_j u_j^\mathsf{T}, with vjv_j input-side and uju_j output-side unit vectors. Its effect on old keys KK, the first term of Equation (3), is exactly

∥KD∥F2=∑jσj2∥Kvj∥22(26)\lVert KD\rVert_{\mathrm{F}}^2 = \sum_j \sigma_j^2 \lVert Kv_j\rVert_2^2 \tag*{(26)}

because KD=∑jσj(Kvj)ujTKD = \sum_j \sigma_j(Kv_j)u_j^\mathsf{T} and the uju_j are orthonormal. The disturbance is set by the size of each update direction and by how strongly the old keys project onto it, not by the number of directions. A low-rank update that points at old keys can be very harmful; a high-rank update orthogonal to them is harmless. It vanishes exactly when Kvj=0Kv_j = 0 for every direction with σj>0\sigma_j > 0, which is the null-space condition of AlphaEdit.

When task updates must overlap. Let the update written by task jj be vec⁡(ΔWj)=αjuj\operatorname{vec}(\Delta W_j) = \alpha_j u_j with ∥uj∥2=1\lVert u_j\rVert_2 = 1, for mm tasks, and let q=rank⁡[u1,…,um]q = \operatorname{rank}[u_1,\ldots,u_m] be the dimension they jointly span. Then

1m(m−1)∑a≠b(uaTub)2≥max⁡(0,m−qq(m−1)).(27)\frac{1}{m(m-1)} \sum_{a\ne b}(u_a^\mathsf{T}u_b)^2 \ge\max\left(0,\frac{m-q}{q(m-1)}\right). \tag*{(27)}

This is Welch’s bound [28]. The Gram matrix G=[uaTub]G = [u_a^\mathsf{T}u_b] has trace mm and rank at most qq, so ∥G∥F2≥m2/q\lVert G\rVert_{\mathrm{F}}^2 \ge m^2/q, and the off-diagonal part is ∥G∥F2−m\lVert G\rVert_{\mathrm{F}}^2 - m. Once the number of tasks exceeds the dimension available to their updates, squared overlap between task directions is unavoidable. For m≤qm \le q the bound is zero: orthogonal updates are geometrically possible, though optimisation need not find them. This is the structural difference between the two LoRA arms. Shared routes every task through one factor pair, so successive increments reuse the same row and column spaces (Equation (24)); Merged gives every task fresh factors, so the jointly spanned dimension can keep growing. Overlap in parameter space is not yet forgetting. It matters only through Equation (26), by landing on directions that old keys use, and then through Equation (16), by projecting onto the old task’s head-difference directions.

N-gram memory. The native table TT is read at a fixed early layer through addresses determined by hashed token bigrams and trigrams of the raw input; the backbone, gates and projections are frozen. Write the read pattern of context xx as a fixed sparse matrix R(x)R(x). Upstream of the injection nothing changes, so the injected representation changes only through the table,

ΔJ(x)=G(H(x),(T+ΔT)R(x))−G(H(x),TR(x)),(28)\Delta J(x) = G\bigl(H(x),(T+\Delta T)R(x)\bigr) - G\bigl(H(x),TR(x)\bigr), \tag*{(28)}

where GG is the frozen read-out (key/value projections, hidden-dependent gate and causal convolution) and H(x)H(x) the unchanged pre-injection state. If ΔTR(x)=0\Delta T R(x) = 0 on the full causal prefix of an old input, its entire forward pass is unchanged. Any read of a row written by a later task—a genuinely shared N-gram or a hash collision—breaks this, and the change then propagates through the frozen suffix, whose inputs have moved even though its parameters have not. N-gram memory can therefore have very small big-KK drift (generic inputs rarely read rows the tasks write) and still large small-kik_i drift (old-task inputs share rows with new tasks).

Experimental Setup

Backbone. We use Qwen3.8-Flash-Next [23] (revision de4b8e4), a 48-layer hybrid-attention (gated linear attention and full attention) MoE language model with 125B backbone parameters (about 6B active), 512 routed experts with top-10 routing plus shared experts, and four hyper-connection residual streams that are contracted before the LM head. It carries a native, jointly pretrained N-gram memory of 51.2B parameters: a table of 320,001,536 rows of width 160, read at the second layer. Each token reads one row from each of 8 bigram and 8 trigram hash heads (16 rows, 2,560 values). The addresses depend only on raw token IDs (with history reset after EOS), and the rows pass through key/value projections, a hidden-state-dependent gate and a causal convolution before being injected into the residual streams. The model runs in BF16. The final normalisation is the identity, so the captured head input determines logits exactly.

Task chain. Seven tasks, learned in the fixed order SME →\to NAV →\to HYE →\to AFB →\to SQI →\to MKD →\to AMH, are morphological inflection in Northern Sami, Navajo, Armenian, Gulf Arabic, Albanian, Macedonian and Amharic from the SIGMORPHON 2023 shared task [8] (pinned commit; lemma, features→form). Each task uses 5,000 training examples in a chat template with thinking disabled; the model must output only the inflected form. Train and test lemma strings are disjoint (exact string match). We chose inflection because it is genuinely new knowledge for the base model in most of these languages, admits unambiguous exact-match scoring, and yields short answers whose first token dominates correctness.

Update mechanisms. All arms use identical data order and budget: 125 optimizer steps ×\times global batch 40 = 5,000 presentations per task, max length 128, Adam (β=(0.9,0.95)\beta= (0.9, 0.95), ϵ=10−8\epsilon= 10^{-8}), peak learning rate 10−410^{-4} with cosine decay to zero, no warm-up, no weight decay, gradient clipping at 1. Optimizer and scheduler are reset at every task boundary.

  • N-GRAM: only the table rows addressed by the current task’s training inputs are trainable, starting from their current (pretrained or previously updated) values. Each task has between 51,018 (AMH) and 149,809 (AFB) rows, i.e. 8–24M scalars. All seven tasks together touch 666,747 rows (0.21% of the table), and each task shares between 1,277 and 4,911 rows with earlier tasks. Hashing, gate, read-out projections, router, all Transformer weights and the head are frozen. On the touched rows, Adam is exactly equivalent to full-table Adam, because untouched rows have identically zero gradient and optimizer state. Row values accumulate across tasks.

  • SHARED LoRA: rank 16, α=64\alpha= 64, no dropout, on six projection families (in_proj, out_proj, linear_qkv, linear_proj, linear_fc1, linear_fc2) covering linear attention, full attention, and every routed and shared expert. The same factors continue training on each new task.

  • MERGED LoRA: identical configuration, but a freshly initialised adapter per task that is merged into the backbone weights at the end of the task.

The arms are matched in data exposure, not in parameter count: a full rank-16 adapter bank has 2.79B parameters (80.2M on any single token’s path), while a task’s N-gram support is ∼\sim16M scalars. We return to this in § 7.

Probes and captures. At F0F_0 and after every task we run forward-only passes on fixed probes:

  • Generic: 128 MATH-500 problems [10, 17] with official solutions and 64 HumanEval problems [4] with canonical solutions, in raw (template-free) format.

  • Task: 64 fixed held-out probes for each task learned so far, in the training template.

We record teacher-forced token-weighted NLL of the reference answer and capture, at the last prompt token (and at 25/50/75/100% answer positions for math/code), the output of all 48 decoder layers (four streams concatenated), the post-merge representation and the LM-head input. For the final checkpoints we additionally capture the input and aggregate output of every MLP/MoE block. Drift uses pooled relative RMS (Equation (6)); we also report mean cosine, pooled norm ratio, and linear CKA.

Generative evaluation. Checkpoints are exported to Hugging Face format: the N-gram arm with its accumulated rows written into the table, SHARED with its current factors merged once, and MERGED with its per-task adapters merged in order. They are then decoded greedily (do_sample=false) with vLLM (TP8, BF16, N-gram table offloaded to CPU). Task accuracy is exact match on the 64 task probes. Math accuracy (the same 128 problems) uses symbolic answer verification (math-verify 0.9.0). Code accuracy (the same 64 problems) is pass@1 under WASI-sandboxed execution; the sandbox passes all 164 canonical HumanEval solutions.

Second model. An earlier, separately run chain on Llama-3-8B [9] uses the same seven tasks and order with a different memory arm: a zero-initialised hashed bigram/trigram lookup table (2×262,1442 \times262{,}144 buckets of width 4,0964{,}096) added at the input of the second decoder block. Llama-3-8B has no native memory: the table is new, and because it starts at zero the model at the start of training is exactly the base, whose existing knowledge does not depend on the table at all. This differs from Qwen3.8, whose table was pretrained together with the backbone and already carries part of the model’s function, so that updating its rows edits an existing function. It also uses rank-8 LoRA on all seven projection types, 625 steps ×\times batch 8 at learning rate 2×10−42 \times10^{-4}, seed 17, and representations after the final RMSNorm. We use it only to check whether the direction of the Qwen findings replicates (Section A).

Infrastructure. Training uses Megatron-SWIFT on 4×4 \timesH200 with TP2/PP2/EP2. Checkpoints are verified by hash before being used as the parent of the next task. All numbers are from a single training seed (data seed 42); probe sets are fixed across methods and rounds.

Representation Drift Results

All three arms completed the seven-round chain with identical boundary evaluations. Unless stated otherwise, numbers are at the LM-head input, last prompt token; drift is pooled relative RMS (Equation (6)).

Big KK after seven rounds

Table 1 is the central representation result. On both generic domains the ordering is

MethodDomainRel. RMSMean cosMedianP95Norm ratioRadialDirect.Dir. shareCKAΔ\DeltaNLL
N-grammath26.37%0.965813.48%58.37%1.00590.00200.067697.17%0.627−0.0119
code15.13%0.988912.49%23.58%1.00190.00030.022698.66%0.986−0.0022
Sharedmath97.33%0.450297.75%105.27%0.82740.03580.911696.22%0.366−0.1001
code38.90%0.926334.76%54.89%1.00030.00140.149999.09%0.896+0.0802
Mergedmath64.36%0.789452.64%113.52%0.92750.01430.399896.54%0.127−0.0865
code34.98%0.938732.58%51.61%0.96390.00260.119897.86%0.913+0.0246

Table 1. Big-KK drift F0→F7F_0 \to F_7 (head input, last prompt token). Radial and directional energies are the two terms of Equation (7), pooled and normalised by base energy; their sum is the squared relative RMS. Δ\DeltaNLL is the teacher-forced reference-answer loss change relative to F0F_0.

N-GRAM<MERGED<SHARED,\mathrm{N\text{-}GRAM} < \mathrm{MERGED} < \mathrm{SHARED},

and it holds for the pooled RMS, the median and the 95th percentile of per-query drift, and the mean cosine. Three further observations:

  1. Drift is directional. In every arm and domain more than 96% of squared drift is the directional term 2ρ(1−c)2\rho(1-c) of Equation (7). N-GRAM keeps norms almost exactly (ρ≈1.00\rho\approx1.00). SHARED on math is the only case with a substantial radial component: the pooled norm shrinks by 17%.

  1. Drift is not NLL. Shared moves math representations the most (97%) and also lowers math reference NLL the most (−0.100). Code NLL rises for both LoRA arms. Representation change at a generic probe can be neutral or even helpful for the loss, as Equation (13) allows.

  1. CKA disagrees with direct drift. Merged has the lowest math CKA (0.13) although its direct drift is below Shared’s. CKA measures sample-geometry similarity up to rotation and scale and is not a substitute for drift in the head’s coordinates.

Seven-round trajectory

Table 2 (all rounds in Section B) shows three different temporal profiles. N-gram jumps to about 25% after the first task and then stays flat (21–26% on math for all seven rounds). Shared grows almost monotonically on math (45%→\to97%) and monotonically on code. Merged is non-monotone: math drift peaks at round 5 (76%) and falls back to 64% by round 7. After the first round, SHARED and MERGED are nearly indistinguishable (45.5% vs 45.0%), as they must be: the first task trains an identically configured adapter in both. The arms diverge only once SHARED starts rewriting its factors.

MethodRoundMath DriftMath CosMath NLLCode DriftCode CosCode NLL
N-GRAM125.21%0.9680.88113.40%0.9910.200
324.81%0.9700.87814.66%0.9900.199
526.14%0.9660.87414.22%0.9900.199
726.37%0.9660.87615.13%0.9890.199
SHARED145.51%0.8930.75024.91%0.9690.210
374.71%0.7170.76930.10%0.9550.217
566.64%0.7600.61935.53%0.9370.205
797.33%0.4500.78838.90%0.9260.281
MERGED145.01%0.8970.78125.12%0.9690.209
352.41%0.8560.79629.37%0.9580.215
576.22%0.7140.91632.41%0.9480.224
764.36%0.7890.80434.98%0.9390.224

Table 2. Big-KK trajectory at the head input: drift from F0F_0 after each round, and reference NLL (base: math 0.888, code 0.201).

Accumulation and cancellation across rounds

Using Equations (8) and (9) we recover the total cross-round inner product from archived pooled norms (Table 3, Figure 2). In all arms R7<1R_7 < 1: successive task updates partly undo one another on the generic probes. The decisive point concerns N-GRAM. Its per-round changes are not small—∑jEj=0.48\sum_j E_j = 0.48 on math, about half of MERGED’s—but they cancel much more strongly (R7=0.145R_7 = 0.145). Its small endpoint drift is therefore not “nothing changed in each round”; it is “each round changed the generic representation and the next round largely moved it back.” For long-running learning this is the property that matters: the table’s effect on the base behaves like a bounded excursion rather than a random walk. The same back-and-forth acts on learned-task inputs, which is where its cost appears (§ 5.6).

MethodDomainFinal drift∑j≤7Ej\sum_{j\le7} E_jR7R_7
N-GRAMmath26.37%0.47810.145
code15.13%0.12070.190
SHAREDmath97.33%1.69580.559
code38.90%0.38650.392
MERGEDmath64.36%1.02200.405
code34.98%0.30190.405

Table 3. Cross-round accumulation of big-KK drift (Equation (9)). ∑jEj\sum_j E_j is the sum of per-round squared changes, normalised by base energy; R7<1R_7 < 1 means the cross-round inner products sum to a negative number.

Figure 2. Left: big-KK drift relative to F0F_0 over seven rounds. Right: cosine between round jj’s change and the change accumulated before it, (Dj−Dj−1−Ej)/(2Dj−1Ej)(D_j-D_{j-1}-E_j)/(2\sqrt{D_{j-1}E_j}).

Depth: residual streams and MLP/MoE blocks

Table 4 and Figure 1 show where in depth the arms separate. N-gram drift is exactly zero at layer 1, which precedes the memory read, and stays below 10% through layer 25 even though the table is read at layer 2. It grows mainly in the last third of the network. Both LoRA arms change every layer directly, so drift is already 7–13% at layer 1 and rises with depth. All arms peak between layers 34 and 48, and for both LoRA arms on math the drift falls after its peak (Shared 139%→100% from L36 to L48). This is the behaviour described by Equation (20): upstream drift is propagated, re-mixed and partly cancelled by later blocks, so drift norms need not increase monotonically with depth.

Big-K drift by layer for the seven rounds

Figure 1. Big-KK drift by layer for the seven rounds (one column per method, one row per generic domain; one curve per round). Layer curves are four residual streams concatenated (10,240 dimensions).

MethodDomainL1L12L24L36L48Max layer
N-grammath0.00%4.25%8.62%34.52%36.39%L48 (36.39%)
code0.00%2.50%5.06%14.63%14.57%L43 (15.53%)
Sharedmath12.76%39.50%56.58%139.45%99.73%L36 (139.45%)
code6.68%18.45%25.35%41.55%38.78%L34 (41.82%)
Mergedmath9.09%19.02%34.40%84.60%81.09%L36 (84.60%)
code7.13%14.76%19.78%35.31%34.80%L42 (35.84%)

Table 4. Big-KK drift F0→F7F_0 \to F_7 at sampled layer outputs (four residual streams concatenated).

At the four final endpoints (base and the three F7F_7) we additionally captured the input and the aggregated output of every MLP/MoE block, before the hyper-connection injection, for 640 fixed queries (Table 5 and Figure 3).

DomainHookMethodL1L48Median
mathinputN-gram0.0522.2110.59
Shared14.1988.7372.91
Merged8.3458.0544.41
outputN-gram0.0974.5019.72
Shared17.93123.51112.13
Merged11.48151.0569.87
codeinputN-gram0.0914.506.15
Shared11.4337.5529.76
Merged7.5934.6123.88
outputN-gram0.1212.1911.31
Shared7.8633.9143.52
Merged8.4430.4536.14

Table 5. Big-KK drift F0→F7F_0 \to F_7 at MLP/MoE blocks (%). “Median” is the median over the 48 per-layer pooled drifts. Input and output are each normalised by their own base energy, so the two columns must not be subtracted.

Figure 3. Per-layer big-KK drift F0→F7F_0 \to F_7 at MLP/MoE block input and aggregated output.

The method ordering of Table 1 holds block by block, at both hooks. On math the median output drift exceeds the median input drift in every arm (N-gram 10.6%→19.7%, Shared 72.9%→112.1%, Merged 44.4%→69.9%). For N-gram this is a pure propagation effect, since its MoE parameters are frozen and only the second term of Equation (23) vanishes. At the last layer the N-gram MoE output drifts by 74.5% on math although its input drifts by only 22.2%. For the LoRA arms both terms of Equation (23) are present.

Answer positions

For math and code we also captured the positions at 25/50/75/100% of the reference answer under teacher forcing. Head-input big-KK drift is position-dependent (Table 6): it is lower inside the answer than at the last prompt token for every arm (e.g. Shared math 97% at the prompt vs 50–63% inside the answer), and largest at the final answer position for both LoRA arms. The method ordering is unchanged at every position.

MethodDomainq25q50q75q100
N-grammath12.66%13.66%20.40%15.00%
N-gramcode7.95%10.65%10.68%17.95%
Sharedmath50.49%53.08%54.36%62.74%
Sharedcode21.98%26.21%27.95%53.03%
Mergedmath36.69%40.50%39.90%46.41%
Mergedcode20.47%23.21%23.28%43.42%

Table 6. Big-KK drift F0→F7F_0 \to F_7 at the head input by reference-answer position.

Small kik_i: from acquisition to the end of the chain

Table 7 measures what big KK cannot: how much the representations of learned tasks move after they are learned. Three facts stand out.

TaskMethodRel. RMSMean cosMedianP95Norm ratioDir. shareΔ\DeltaNLL
SMEN-gram40.43%0.920538.00%56.79%1.009998.18%+0.236
Shared50.65%0.883647.32%67.03%1.070396.83%+0.356
Merged37.19%0.931336.03%49.12%0.997299.01%+0.210
NAVN-gram61.98%0.817261.78%77.22%1.046599.07%+0.753
Shared60.60%0.822357.86%78.65%1.026299.11%+1.018
Merged47.43%0.888146.34%59.10%1.002299.37%+0.450
HYEN-gram32.61%0.946230.37%44.01%0.957797.54%+0.082
Shared28.37%0.959925.48%43.61%0.996399.57%+0.123
Merged25.84%0.966323.67%34.99%0.958596.80%+0.100
AFBN-gram37.26%0.932036.31%51.61%1.015599.29%+0.353
Shared30.30%0.954229.05%39.09%0.995799.14%+0.163
Merged22.17%0.975321.66%28.30%0.990198.99%+0.094
SQIN-gram36.77%0.932433.21%57.49%0.998299.61%+0.215
Shared36.30%0.935932.86%52.75%1.023698.98%+0.080
Merged30.31%0.955425.56%52.39%1.011599.52%+0.088
MKDN-gram26.00%0.966822.76%39.94%1.009299.51%+0.192
Shared23.25%0.973822.06%30.11%1.024298.46%+0.057
Merged16.04%0.987415.45%22.73%1.016698.41%+0.003
MeanN-gram39.18%+0.305
Shared38.25%+0.300
Merged29.83%+0.157

Table 7. Small-kik_i drift Fi→F7F_i \to F_7 on each learned task’s 64 probes (head input, last prompt token), with the change in teacher-forced reference NLL over the same interval. AMH is learned last and has no subsequent training.

  1. The big-KK ordering does not transfer. N-gram has the smallest big-KK drift but not the smallest small-kik_i drift on any task; it is the largest of the three on five of six tasks (all but SME).

Its mean small-kik_i drift (39.2%) equals Shared’s (38.3%). Even with a frozen backbone, old-task representations move by 26–62%.

  1. Merged has the smallest small-kik_i drift on every task, by 3–15 points.

  1. Drift is again almost purely directional (96.8–99.6%), with norm ratios within 7% of one.

Older tasks drift more in every arm (SME and NAV have experienced six and five later tasks), but task age is not the only factor: HYE (third) drifts less than AFB (fourth) under N-gram.

Figure 4 shows where in depth this happens. On generic inputs (a) the three arms are far apart at every layer, and N-gram stays below 10% until layer 25. On learned-task inputs (b) the three curves nearly coincide, and N-gram drift appears immediately after the memory read: 19% at layer 5 and 31% at layer 9, against 4% for generic inputs at the same layers. This is the single-source picture of Proposition 2: N-gram has one source term, the table injection, and it is small on generic inputs and large on old-task inputs, which read rows that later tasks rewrite. LoRA creates sources at every layer for both kinds of input. The two LoRA arms show the opposite asymmetry in deep layers. There they move generic inputs far more than learned-task inputs (Shared 139% vs 54% at layer 36).

Figure 4. Per-layer drift (four residual streams concatenated, last prompt token). (a) Big KK on math probes, F0→F7F_0 \to F_7. (b) Small kik_i, mean over the six learned tasks with min–max band, Fi→F7F_i \to F_7. The dotted line marks the N-gram read at layer 2.

Small-$k_i$ drift heatmaps for N-gram, Shared A/B LoRA, and Fresh/merged LoRA

Figure 5. Small-kik_i drift Fi→FtF_i \to F_t for every learned task ii and later round tt (head input, last prompt token).

Behavioural Correlates and Boundary Checks

We now relate the drift measurements to behaviour: teacher-forced NLL, first-token margins, and greedy generation accuracy.

Forgetting in NLL, and which drift tracks it

Table 8: Final (F7F_7) reference NLL: generic probes relative to F0F_0, learned tasks relative to their acquisition checkpoint FiF_i (mean over the six tasks with later training), next to the mean big-KK drift.

MethodMath NLLΔ\DeltaCode NLLΔ\DeltaOld-task mean Δ\DeltaNLLBig-KK drift
N-gram0.8759−0.01190.1985−0.0022+0.305220.75%
Shared0.7877−0.10010.2809+0.0802+0.299568.12%
Merged0.8036−0.08650.2244+0.0246+0.157349.67%

Table 8.

Table 8 contains the paper’s main dissociation. N-gram memory perturbs generic representations least and leaves generic NLL essentially unchanged. Yet on the tasks it has learned it forgets as much as Shared LoRA (+0.305 vs +0.300) and nearly twice as much as Merged LoRA (+0.157). The big-KK ordering N-gram < Merged < Shared does not predict the forgetting ordering Merged < Shared ≈ N-gram.

Small-kik_i drift does (Figure 6). Its means order the arms exactly as their mean Δ\DeltaNLL, and per task it tracks Δ\DeltaNLL across all 18 task–method pairs (Spearman ρ=0.85\rho= 0.85). This is what Equation (12) leads one to expect: forgetting of task ii is bounded by DitD_i^t, which is measured on task-ii inputs from FiF_i. Big-KK drift enters that bound only under the additional assumption that generic and task inputs move alike, and N-gram memory violates that assumption by construction (Equation (28)). The same dissociation appears on Llama-3-8B (Figure 6c,Figure 6d; Section A). There the memory arm is not native: Llama-3-8B has no N-gram memory, so we added a lookup table initialised to zero, on which the base model’s knowledge does not depend. Big-KK drift is again smallest for the memory arm (6.1% vs 30.3% merged, 50.5% shared). It is also much smaller than for Qwen’s native table (26%/15%), consistent with an empty side path perturbing the base less than editing rows that pretraining already uses. Its mean old-task Δ\DeltaNLL (+0.69) nevertheless exceeds Merged’s (+0.46), and small-kik_i drift again tracks per-task Δ\DeltaNLL (ρ=0.71\rho= 0.71). The dissociation therefore holds whether the memory is native and pretrained or newly added and empty.

Figure 6. Big-KK drift does not track forgetting; small-kik_i drift does. (a,c) Mean old-task ΔNLL\Delta\mathrm{NLL} against big-KK drift: the memory arm has the smallest generic drift but not the least forgetting. (b,d) Per-task ΔNLL\Delta\mathrm{NLL} against small-kik_i drift Fi→F7F_i \to F_7 for all 18 task–method pairs. (a,b) Qwen3.8 with native N-gram memory; (c,d) Llama-3-8B with an added zero-initialised lookup table.

First-token margins

From the head inputs at F0F_0 and F7F_7 and the frozen head we computed, for every probe, the full-vocabulary margin of the first reference token, m=zy−max⁡c≠yzcm = z_y - \max_{c \ne y} z_c, and its paired change Δm=mfinal−mbase\Delta m = m_{\mathrm{final}} - m_{\mathrm{base}}: 1,920 paired observations over 9 domains and 3 arms (Table 9, Figure 7). On the seven tasks all 21 domain–method medians are positive, because this F0→F7F_0 \to F_7 comparison mixes learning with forgetting. The LoRA arms gain about twice the first-token margin of N-gram, and reference-token argmax rises from 69.6% to 78.3% (N-gram), 85.0% (Shared) and 87.3% (Merged). On math, where the first reference token is not a training target, both LoRA arms lower the margin while N-gram leaves it unchanged. Of the 10 math positions where the reference token strictly led at F0F_0, 4 (N-gram), 9 (Shared) and 10 (Merged) are overtaken at F7F_7. None of the 60 strictly leading code positions is lost in any arm.

Domain (nn)N-gramSharedMerged
Math (128)+0.036−4.350−3.103
Code (64)+0.011−0.038+0.345
Seven tasks (448)+2.172+4.067+4.412

Table 9. Median paired change of first-reference-token margin F0→F7F_0 \to F_7 (logits).

Figure 7. Median first-reference-token margin change F0→F7F_0 \to F_7 by domain and method.

The pattern matches the big-KK picture: on code, which the table updates barely touch, N-gram memory leaves the base’s decision margins where they were.

Generative accuracy

All endpoints were exported to Hugging Face format and decoded greedily with vLLM; every sample was scored (unresolved = 0).

Task accuracy (Table 10) agrees with NLL and small-kik_i drift on the two LoRA arms: Shared loses more than Merged (−11.7 vs −7.0 pp on average), with the earliest tasks hit hardest. For N-gram it exposes what drift and NLL do not. N-gram acquires the hard languages much more weakly (SME 13/64 vs 31–32; NAV 6/64 vs 23), so its small exact-match decline (−7.3 pp) is bounded by a floor. In the language of Proposition 1, many N-gram probes never had a positive sequence margin to lose. Low drift combined with weak acquisition is not retention. Cumulative accuracy after round 7 is 56.9% (N-gram), 65.8% (Shared) and 69.0% (Merged). Its round-3 jump in every arm comes from adding HYE, which all arms learn almost perfectly, so cumulative curves should not be read as forgetting curves.

TaskN-gramSharedMerged
SME13 → 13 (0.0)32 → 22 (−15.6)31 → 27 (−6.3)
NAV6 → 4 (−3.1)23 → 8 (−23.4)23 → 11 (−18.8)
HYE61 → 55 (−9.4)63 → 55 (−12.5)64 → 57 (−10.9)
AFB42 → 35 (−10.9)52 → 49 (−4.7)51 → 49 (−3.1)
SQI50 → 45 (−7.8)53 → 46 (−10.9)51 → 48 (−4.7)
MKD54 → 46 (−12.5)59 → 57 (−3.1)56 → 57 (+1.6)
AMH575860
Mean change (6 tasks)−7.3−11.7−7.0
Cumulative accuracy at F7F_756.9%65.8%69.0%

Table 10. Greedy exact match on the 64 probes of each task, from acquisition (FiF_i) to F7F_7 (percentage-point change).

Generic generation (Table 11) shows that changes are not uniformly degradations. Most of the math swings coincide with the number of unparsable final answers (base 56, Shared 96, Merged 33). They therefore reflect changes in answer format and termination behaviour at least as much as changes in mathematical competence. Shared lowers math reference NLL (−0.100) while losing 47 problems: teacher-forced NLL scores one fixed reference solution, whereas generation follows the model’s own trajectory and an early format change propagates. This is exactly the gap between Equation (11) and Equation (14). N-gram changes generic behaviour least on math (10 lost / 7 gained), consistent with its small big-KK drift.

Math acc.Lost / gainedUnparsedCode acc.Lost / gained
Base71/128 (55.5%)–5651/64 (79.7%)–
N-gram68/128 (53.1%)10 / 75955/64 (85.9%)0 / 4
Shared32/128 (25.0%)47 / 89652/64 (81.3%)7 / 8
Merged94/128 (73.4%)1 / 243355/64 (85.9%)6 / 10

Table 11. Generic capabilities at F7F_7: greedy accuracy on 128 MATH-500 problems and 64 HumanEval problems (pass@1, sandboxed WASI execution), with paired per-problem transitions relative to the base, and the number of math outputs whose final answer could not be parsed (counted as wrong).

Discussion: Write Online Knowledge into the Memory

The base is the binding constraint. An online learner receives an unbounded sequence of updates. Any channel whose perturbation of the base grows with the number of updates will eventually erode the capabilities the model was deployed for, however well it learns each update. The three channels differ sharply in this respect. Shared LoRA’s generic drift grows almost monotonically (45%→97% on math). Merged LoRA’s also grows, non-monotonically, to 64% with a peak of 76%. N-gram memory reaches 25% after the first task and stays there (Table 2), because its per-round changes cancel (R7=0.15R_7 = 0.15, Table 3). In generic behaviour it loses no code problem and changes math NLL by −0.01. Among the three, only N-gram memory has a base perturbation that behaves like a bounded excursion rather than an accumulating walk.

Why the memory protects the base. Equation (28) makes this structural rather than empirical. The table is read through addresses fixed by raw tokens, and everything upstream of the read is frozen. An input none of whose prefix rows were written is therefore exactly unchanged, at every layer and in every logit. General math and code text rarely addresses the rows a new task writes, so generic drift stays small and does not accumulate. In addition, every change lives in an explicit set of rows: 8–24M values per task, 0.21% of the table for all seven tasks. These rows can be inspected, versioned and rolled back without touching the 125B-parameter backbone. Neither LoRA variant offers this: their updates act on every input through every adapted projection.

Where the cost appears, and why it belongs to the memory. N-gram memory pays in two places. It acquires difficult tasks more weakly (SME 13/64 vs 31–32 for LoRA), and its stored tasks interfere: old-task NLL rises as much as with shared LoRA, and small-kik_i drift is as large. Equation (28) also locates this cost. Old-task inputs share rows with later tasks: 1,277–4,911 rows per task by count, and in particular the template and chat-format rows that every example reads, including at the last prompt token. Later tasks rewrite those rows, and the layer profile shows it: on old-task inputs N-gram drift reaches 31% within seven layers of the read, while generic inputs at the same depth move by 4% (Figure 4). Both weaknesses are thus properties of how the memory is addressed and written, not of the backbone. They can be attacked inside the memory: by keeping shared template rows fixed or task-specific, by allotting more rows or a larger learning rate to new content, or by per-row update rules. None of these requires editing the backbone again.

What merged LoRA shows. Merged LoRA retains learned tasks best and acquires them as well as shared LoRA. It also improves code generation, and its large math accuracy gain coincides with fewer unparsable answers. Its old factors are never edited, and its cumulative rank grows as trtr, which avoids the overwrite terms of Equation (24) and the capacity bound of Equation (25). These are good properties for an offline consolidation step, in which knowledge that has proved stable is periodically folded into the weights with full regression testing. As an always-on online channel it moves the base by 50% on generic inputs after seven tasks, and that drift has no mechanism that bounds it.

A design for long-running online learning. Our measurements support a two-speed design. Online updates are written only to the native memory table, with the backbone and head frozen, so the base stays fixed and every change is local and reversible. Memory-side mechanisms then manage interference between stored items. Weight-level consolidation, if used at all, is an occasional offline step. Small-kik_i drift and acquisition margins, rather than generic drift alone, are the quantities to monitor, because forgetting follows them (Figure 6).

Limitations. Results come from one task order and one seed on Qwen3.8, with Llama-3-8B as a second, differently configured model. The arms are matched in data and optimisation, not in parameter count. Margins are measured at the first reference token from the base, not from each acquisition checkpoint. Layer- and block-level results are observational.

Conclusion

We measured, layer by layer and round by round, how three ways of writing new knowledge change a 48-layer MoE language model over a seven-task continual chain. Updating only the native N-gram memory changes the base model’s representations two to four times less than LoRA. That change does not grow with the number of tasks, because successive updates largely cancel, and it leaves generic behaviour essentially intact. Its cost, weaker acquisition and interference among stored tasks, shows up on the learned tasks’ own inputs. There forgetting follows small-kik_i drift, and exact margin relations explain why. For a model that must keep learning online, these results point to a clear division of labour: write new knowledge only into the memory, keep the backbone fixed, and solve interference inside the memory rather than by editing the backbone.

Acknowledgments

The author used AI assistants for drafting text, writing code for analysis and figures, and checking the literature. All experiments, results and claims were verified by the author, who takes full responsibility for the content.

Llama-3-8B Replication

The Llama-3-8B chain (§ 4) differs from the Qwen chain in one essential respect: its memory arm is a lookup table added to a model that has none, initialised to zero, so the base model’s knowledge does not depend on it and big-KK drift measures only the perturbation caused by a new side path. All captures used SDPA attention. Representations are taken after the final RMSNorm (the LM-head input), at the last prompt token, for 64 math and 32 code probes and 64 probes per task. All NLL changes are computed against the same-backend base or acquisition checkpoint. Absolute values are not comparable with Qwen; only within-model orderings are.

MethodMathCode
DriftMean cosΔNLL\Delta\mathrm{NLL}DriftMean cosΔNLL\Delta\mathrm{NLL}
Lookup4.86%0.9988+0.00247.29%0.9973−0.0002
Shared69.10%0.7661+0.071231.87%0.9496+0.0590
Merged†39.04%0.9245+0.026621.51%0.9771+0.0217

Table 12. Llama-3-8B big-KK drift F0→F7F_0 \to F_7 and reference NLL change.

TaskSmall-kik_i driftΔNLL\Delta\mathrm{NLL}
LookupSharedMerged†LookupSharedMerged†
SME54.58%75.91%73.86%+1.051+1.496+0.838
NAV86.25%96.38%75.07%+1.730+2.166+1.181
HYE61.74%66.16%62.45%+0.170+0.186+0.087
AFB59.38%77.42%52.60%+0.374+1.023+0.221
SQI57.52%65.08%57.99%+0.422+0.518+0.417
MKD32.50%33.50%21.19%+0.381−0.026+0.009
Mean58.66%69.08%57.19%+0.688+0.894+0.459

Table 13. Llama-3-8B small-kik_i drift Fi→F7F_i \to F_7 and task reference ΔNLL\Delta\mathrm{NLL}.

†Trained on the full training split; Lookup and Shared used a fixed 1,024-example subset per task.

The direction of the Qwen findings replicates. The memory arm has by far the smallest big-KK drift but not the least forgetting. Merged forgets least in NLL and has the smallest mean small-kik_i drift, with Lookup essentially tied in drift. Small-kik_i drift tracks per-task ΔNLL\Delta\mathrm{NLL} (ρ=0.71\rho= 0.71). Final seven-task accuracy is 34.2% (Lookup), 33.9% (Shared) and 49.8% (Merged). Lookup’s mean accuracy at acquisition (54.7%) is again lower than Shared’s (60.3%), the same acquisition gap as on Qwen.

Full Seven-Round Big-KK Trajectory

MethodRoundMath: DriftMath: CosMath: NLLCode: DriftCode: CosCode: NLL
N-gram125.21%0.96820.881113.40%0.99140.1995
N-gram222.16%0.97500.876714.67%0.98960.1990
N-gram324.81%0.96950.878014.66%0.98970.1987
N-gram420.95%0.97780.877414.19%0.99030.2003
N-gram526.14%0.96640.874114.22%0.99010.1994
N-gram626.15%0.96570.875715.09%0.98910.1988
N-gram726.37%0.96580.875915.13%0.98890.1985
Shared145.51%0.89300.750424.91%0.96920.2100
Shared249.28%0.87350.741025.92%0.96710.2139
Shared374.71%0.71650.768530.10%0.95530.2170
Shared468.62%0.75710.747232.36%0.94870.2026
Shared566.64%0.76020.619235.53%0.93720.2052
Shared684.61%0.60450.772538.05%0.92850.2346
Shared797.33%0.45020.787738.90%0.92630.2809
Merged145.01%0.89730.781125.12%0.96890.2088
Merged248.70%0.87750.742627.16%0.96360.2057
Merged352.41%0.85590.795629.37%0.95750.2151
Merged467.10%0.77520.874430.97%0.95210.2166
Merged576.22%0.71440.915932.41%0.94770.2237
Merged660.25%0.81370.852533.62%0.94350.2237
Merged764.36%0.78940.803634.98%0.93870.2244

Table 14. Qwen3.8 big-KK drift from F0F_0, mean cosine and reference NLL at every task boundary (head input, last prompt token). Base NLL: math 0.8878, code 0.2007.

Reproducibility

Checkpoints are verified by SHA-256 before they are used as the parent of the next task. Probe sets, prompts and tokenisation protocols are fingerprinted, and repeated capture of the same input gives zero drift.

References

  1. [1]Peter L. Bartlett, Dylan J. Foster, and Matus J. Telgarsky. Spectrally-normalized margin bounds for neural networks. In Advances in Neural Information Processing Systems, 2017.arxiv.org/abs/1706.08498
  2. [2]Vincent-Pierre Berges, Barlas Oğuz, Daniel Haziza, Wen-tau Yih, Luke Zettlemoyer, and Gargi Ghosh. Memory layers at scale. In International Conference on Machine Learning, 2025.arxiv.org/abs/2412.09764
  3. [3]Dan Biderman, Jacob Portes, Jose Javier Gonzalez Ortiz, Mansheej Paul, Philip Greengard, Connor Jennings, Daniel King, Sam Havens, Vitaliy Chilev, Jonathan Frankle, Cody Blakeney, and John P. Cunningham. LoRA learns less and forgets less. Transactions on Machine Learning Research, 2024.
  4. [4]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.arxiv.org/abs/2107.03374
  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]Junfeng Fang, Houcheng Jiang, Kun Wang, Yunshan Ma, Jie Shi, Xiang Wang, Xiangnan He, and Tat-Seng Chua. AlphaEdit: Null-space constrained knowledge editing for language models. In International Conference on Learning Representations, 2025.arxiv.org/abs/2410.02355
  7. [7]Mehrdad Farajtabar, Navid Azizan, Alex Mott, and Ang Li. Orthogonal gradient descent for continual learning. In International Conference on Artificial Intelligence and Statistics, 2020.arxiv.org/abs/1910.07104
  8. [8]Omer Goldman, Khuyagbaatar Batsuren, Salam Khalifa, Aryaman Arora, Garrett Nicolai, Reut Tsarfaty, and Ekaterina Vylomova. SIGMORPHON–UniMorph 2023 shared task 0: Typologically diverse morphological inflection. In Proceedings of the 20th SIGMORPHON Workshop on Computational Research in Phonetics, Phonology, and Morphology, pages 117–125, 2023.DOI
  9. [9]Aaron Grattafiori, Abhimanyu Dubey, et al. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
  10. [10]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In NeurIPS Datasets and Benchmarks Track, 2021.
  11. [11]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022.arxiv.org/abs/2106.09685
  12. [12]Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Suchin Gururangan, Ludwig Schmidt, Hannah Hajishirzi, and Ali Farhadi. Editing models with task arithmetic. In International Conference on Learning Representations, 2023.arxiv.org/abs/2212.04089
  13. [13]James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. A. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521–3526, 2017.DOI
  14. [14]Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton. Similarity of neural network representations revisited. In International Conference on Machine Learning, 2019.arxiv.org/abs/1905.00414
  15. [15]Guillaume Lample, Alexandre Sablayrolles, Marc’Aurelio Ranzato, Ludovic Denoyer, and Hervé Jégou. Large memory layers with product keys. In Advances in Neural Information Processing Systems, 2019.arxiv.org/abs/1907.05242
  16. [16]Yan-Shuo Liang and Wu-Jun Li. InfLoRA: Interference-free low-rank adaptation for continual learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024.arxiv.org/abs/2404.00228
  17. [17]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In International Conference on Learning Representations, 2024.arxiv.org/abs/2305.20050
  18. [18]Jessy Lin, Luke Zettlemoyer, Gargi Ghosh, Wen-tau Yih, Aram Markosyan, Vincent-Pierre Berges, and Barlas Oğuz. Continual learning via sparse memory finetuning. arXiv preprint arXiv:2510.15103, 2025.arxiv.org/abs/2510.15103
  19. [19]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. arXiv preprint arXiv:2308.08747, 2023.arxiv.org/abs/2308.08747
  20. [20]Michael McCloskey and Neal J. Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of Learning and Motivation, volume 24, pages 109–165. Academic Press, 1989. doi: 10.1016/S0079-7421(08)60536-8.DOI
  21. [21]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
  22. [22]Kevin Meng, Arnab Sen Sharma, Alex Andonian, Yonatan Belinkov, and David Bau. Mass-editing memory in a transformer. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.07229
  23. [23]Zihan Qiu, Zekun Wang, Xiao Li, Yanpeng Li, Yang Xu, Yixuan Wang, Huaqing Zhang, Rui Men, Bochao Mao, Chengruidong Zhang, Fan Zhou, Hao Luo, Haofeng Huang, Haoran Lian, Haoyan Huang, Hongqing Chen, Jianwei Zhang, Jing Xu, Junjie Wang, Langshi Chen, Liangyu Wang, Linlang Jiang, Man Yuan, Minmin Sun, Peng Jin, Siqi Zhang, Siyu Wang, Xingzhang Ren, Yakai Wang, Yi Zhang, Yiming Dong, Yizhong Cao, Yubo Ma, Yunfei Mao, Bo Zheng, and Dayiheng Liu. On the design of Qwen3.8-Next architecture: Evaluation, efficiency, and training stability. arXiv preprint arXiv:2608.30320, 2026.arxiv.org/abs/2608.30320
  24. [24]Vinay V. Ramasesh, Ethan Dyer, and Maithra Raghu. Anatomy of catastrophic forgetting: Hidden representations and task semantics. In International Conference on Learning Representations, 2021.
  25. [25]Idan Shenfeld, Jyotish Pari, and Pulkit Agrawal. RL’s razor: Why online reinforcement learning forgets less. In International Conference on Learning Representations, 2026.arxiv.org/abs/2509.04259
  26. [26]Shipeng Wang, Xiaorong Li, Jian Sun, and Zongben Xu. Training networks in null space of feature covariance for continual learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021.arxiv.org/abs/2103.07113
  27. [27]Xiao Wang, Tianze Chen, Qiming Ge, Han Xia, Rong Bao, Rui Zheng, Qi Zhang, Tao Gui, and Xuanjing Huang. Orthogonal subspace learning for language model continual learning. In Findings of the Association for Computational Linguistics: EMNLP 2023, 2023.arxiv.org/abs/2310.14152
  28. [28]Lloyd R. Welch. Lower bounds on the maximum cross correlation of signals. IEEE Transactions on Information Theory, 20(3):397–399, 1974.DOI

Paper details

vlnc:W_5q6nskvr
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

AI assistants

View statement
Looking for related papers…
Contents