Papers
Topics
Authors
Recent
Search
2000 character limit reached

Catastrophic Forgetting in LLMs

Updated 30 January 2026
  • Catastrophic forgetting is a phenomenon where LLMs lose past-task performance due to destructive gradient interference and representational drift during sequential fine-tuning.
  • Quantitative analyses reveal that lower-layer attention heads face up to 67% disruption and a 2.4-fold increase in forgetting when gradient alignment is negative.
  • Mitigation techniques such as targeted regularization and representational realignment can restore up to 47% of lost performance while maintaining new-task competence.

Catastrophic forgetting in LLMs denotes a persistent reduction in previously acquired performance when models undergo continual fine-tuning on sequential tasks. This phenomenon arises from destructive interference among gradient directions, drift in internal representations, and changes in the loss landscape, resulting in irreversible loss of prior capabilities despite the acquisition of new competencies. Mechanistic analysis based on transformer-based architectures has revealed that gradient interference in attention weights, representational drift in intermediate layers, and loss landscape flattening are primary drivers. Severity correlates strongly with task similarity, and certain attention heads—especially in lower layers—are disproportionately disrupted. This foundational understanding has led to targeted strategies for mitigation, opening the door for more robust continual learning systems in LLMs (Imanov, 26 Jan 2026).

1. Formal Characterization and Mechanistic Drivers

Catastrophic forgetting in transformer-based LLMs is mechanistically traceable to three primary phenomena:

  1. Gradient Interference in Attention Weights: Let gt1g_{t_1}, gt2g_{t_2} be gradient vectors for tasks t1t_1, t2t_2. Their alignment is quantified as:

A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}

Negative A(t1,t2)A(t_1,t_2) signals destructive interference, with empirically observed 2.4-fold forgetting rate increase when A(t1,t2)<−0.3A(t_1,t_2) < -0.3. Query/key attention matrices exhibit the highest conflict rates (≈67%\approx67\%), acutely contributing to early forgetting.

  1. Representational Drift: Hidden-state activations in intermediate layers undergo notable geometric change during sequential fine-tuning. For layers $8$–$16$ in a gt2g_{t_2}0-layer decoder, CKA-normalized Euclidean drift gt2g_{t_2}1 ranges gt2g_{t_2}2–gt2g_{t_2}3, with leading principal components rotating up to gt2g_{t_2}4. Lower layers (gt2g_{t_2}5–gt2g_{t_2}6) and upper layers (gt2g_{t_2}7–gt2g_{t_2}8) are less affected.
  2. Loss Landscape Flattening: Hessian analysis indicates a sharp initial basin (gt2g_{t_2}9) at pre-tuning, which flattens to t1t_10 after subsequent tasks; this diminishes the capacity for recovery of prior minima.

Task similarity, quantified by semantic and gradient measures, shows a strong Pearson t1t_11 correlation with forgetting severity. Counterintuitively, higher similarity exacerbates forgetting due to parameter overlap in shared subsystems (Imanov, 26 Jan 2026).

2. Quantitative Manifestations and Attention Head Disruption

During continual fine-tuning:

  • Approximately t1t_12–t1t_13 of attention heads exhibit Euclidean change exceeding t1t_14 standard deviations—classified as "severely disrupted."
  • Disruption clusters predominantly in lower layers (layers t1t_15–t1t_16 in 24-layer models, t1t_17–t1t_18 in 32-layer models), highlighting their heightened vulnerability due to less specialization in attention patterns.
  • Ablation of the top t1t_19 disrupted heads restores t2t_20 of lost prior-task performance with only an t2t_21 cost on new-task performance, confirming causal involvement.

Behaviorally, forgetting rates range from t2t_22 degradation for medium-similarity sequences to t2t_23 for low-similarity sequences (in the t2t_24B parameter regime). Larger models demonstrate slower forgetting but are subject to the same mechanistic triad (Imanov, 26 Jan 2026).

3. Theoretical Advances and Gradient Alignment Perspective

Recent work has established a direct theoretical link between negative gradient similarity and catastrophic forgetting. For mastered set t2t_25 and injection set t2t_26: t2t_27 Forgetting occurs iff t2t_28. Neuron-wise decomposition reveals that t2t_29–A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}0 of neurons are "conflicting" (negative gradient similarity) while A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}1–A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}2 are "collaborative" (Yang et al., 29 Jan 2026). Collaborative Neural Learning (CNL) implements selective freezing of conflicting neurons, eliminating catastrophic forgetting under infinitesimal learning rates and exactly known mastered sets, with empirical reductions of forgetting between A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}3 and A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}4 under practical conditions.

4. Mitigation Strategies: Algorithmic and Mechanism-Driven Approaches

Mechanism-informed interventions have emerged:

  • Targeted Regularization: Freezing or regularizing the weights of highly disrupted attention heads—especially in lower layers—constrains parameter drift.
  • Representational Realignment: Affine loss functions on intermediate layers restore previously encoded features, yielding A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}5 recovery of lost performance post hoc.
  • Curvature Preservation: Hessian-based regularization maintains the sharpness of loss basins, reducing forgetting by A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}6 with minor convergence slowdown.
  • Dynamic Gradient Alignment Monitoring: Reduction of learning rate or increased regularization when negative alignment is detected prevents destructive updates.
  • Composite Algorithms: Algorithms adjudicate per-parameter plasticity using combined scores of gradient conflict, representational importance, and curvature impact.

Ablation experiments validate the efficacy and specificity of such approaches: for example, selective regularization of attention heads and loss-surface flattening interventions can dramatically enhance retention during continual fine-tuning (Imanov, 26 Jan 2026).

5. Experimental Landscape and Benchmarks

Studies employ a diverse array of state-of-the-art decoder models—Llama 4 Scout (A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}7B), Llama 4 Maverick (A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}8B), DeepSeek-V3.1 (A(t1,t2)=⟨gt1,gt2⟩∥gt1∥∥gt2∥A(t_1,t_2) = \frac{\langle g_{t_1},g_{t_2}\rangle}{\|g_{t_1}\|\|g_{t_2}\|}9B), GPT-5.1 (A(t1,t2)A(t_1,t_2)0T), Claude 4.5, and Gemini 2.5 Pro. Sequential fine-tuning covers A(t1,t2)A(t_1,t_2)1–A(t1,t2)A(t_1,t_2)2 tasks per trajectory, with inter-task similarity stratified. Identical hyperparameters (AdamW, learning rates A(t1,t2)A(t_1,t_2)3–A(t1,t2)A(t_1,t_2)4, gradient clipping at norm A(t1,t2)A(t_1,t_2)5) ensure comparability. The severity and temporal profile of forgetting aligns with mechanistic predictions: interference and head disruption dominate early epochs, representational drift in mid epochs, and basin flattening in late epochs (Imanov, 26 Jan 2026).

6. Practical Implications and Outlook

Integrating mechanistic knowledge into continual learning protocols, future LLMs can sustain prior-task competence while acquiring new skills. Practical deployment should:

  • Monitor early gradient alignment as a warning signal.
  • Apply targeted interventions to conflict-prone components (notably attention heads).
  • Constrain intermediate layer drift without hampering task adaptation.
  • Combine curvature, drift, and attention metrics for optimal plasticity–stability trade-off.
  • Design composite mitigation strategies with adaptive component selection.

These advances transform catastrophic forgetting from an empirical obstacle to a tractable, mechanism-localized challenge. The findings offer robust pathways not only for continual fine-tuning but also for safe and efficient knowledge updating in LLM platforms (Imanov, 26 Jan 2026, Yang et al., 29 Jan 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Catastrophic Forgetting in LLMs.