Mechanistic Analysis of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning

Olaf Yunus Laitinen Imanov
1/26/2026
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Large language models exhibit remarkable performance across diverse tasks through pre-training and fine-tuning paradigms. However, continual fine-tuning on sequential tasks induces catastrophic forgetting, where newly acquired knowledge interferes with previously learned capabilities. Despite widespread observations of this phenomenon, the mechanistic understanding remains limited. Here, we present a comprehensive mechanistic analysis of catastrophic forgetting in transformer-based LLMs during sequential fine-tuning. Through systematic experiments across multiple model scales (109B to 400B total parameters) and task sequences, we identify three primary mechanisms driving forgetting: gradient interference in attention weights, representational drift in intermediate layers, and loss landscape flattening. We demonstrate that forgetting severity correlates strongly with task similarity (Pearson r = 0.87) and gradient alignment metrics. Our analysis reveals that approximately 15 to 23 percent of attention heads undergo severe disruption during fine-tuning, with lower layers showing greater susceptibility. These findings establish mechanistic foundations for developing targeted mitigation strategies in continual learning systems.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{imanov2026mechanistic,
  title  = {Mechanistic Analysis of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning},
  author = {Olaf Yunus Laitinen Imanov},
  year   = {2026},
  eprint = {2601.18699},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.18699v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.18699.svg)](https://codeofpaper.com/paper/2601.18699)

Discussion