NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Two Timescales of Forgetting in Fine-tuning of Language Models: Fast Behavioral Suppression and Slow Representational Drift

Yilin Luo, Jin Hwa Lee, Andrew M. Saxe, Antonio SclocchiarXiv 2026

TL;DR

When you fine-tune a language model to stop generating certain outputs, does it actually forget the underlying concepts, or does it just learn to hold its tongue? This paper discovers that "forgetting" during supervised fine-tuning splits into two distinct clocks: a rapid suppression of surface behavior, followed orders of magnitude later by a slow, noise-driven erasure of internal representations. For anyone working on AI alignment or continual learning, this explains why "unlearned" capabilities are so notoriously easy to jailbreak back out of a model.

What Problem Does This Paper Address?

Modern AI relies on a two-step dance: pretrain a massive model on everything, then fine-tune it on a narrower dataset to make it helpful, specialized, or safe. Fine-tuning inevitably causes forgetting—a drop in previously learned capabilities.

However, behavioral evaluations only measure what a model says, not what it knows. Prior empirical work has shown that suppressed capabilities can often be recovered via clever prompting or probing. What we have lacked is a rigorous, quantitative account of how behavioral suppression relates to internal representational erasure: how fast does behavior change, how long do the underlying features survive, and what physical mechanism in the optimization process eventually destroys them?

Methods

To peer inside the black box without guessing what the hidden variables are, the authors use a synthetic sandbox called the Random Hierarchy Model (RHM)—a probabilistic context-free grammar where sequences of tokens are generated from a known, tree-like hierarchy of production rules.

Overview of the Random Hierarchy Model setup, rule restriction during fine-tuning, and the evaluation probes.
  1. Pretraining & Restricted Fine-tuning: They pretrain decoder-only transformers via standard next-token prediction on a full grammar ($G_{\text{pre}}$). Next, they simulate narrowing the data distribution ($G_{\text{ft}}$) by deleting a subset of synonymous production rules at every hierarchical level—without adding new rules or explicitly penalizing deleted ones—and continue training.
  2. Disentangling Output from Understanding: Because the exact latent tree is known, the authors design clever probes to separate generation from comprehension:
  3. Generation probe: Letting the model generate text freely and parsing it to count how often it uses deleted rules.
  4. Representation probe: Feeding the model a valid sequence versus one where a kept rule is swapped for a deleted synonym, measuring the cosine similarity ($q^R$) of the hidden activations.
  5. In-context prediction: Testing next-token loss when the context uses deleted rules, requiring the model to understand deleted rules to predict a valid kept continuation.

They then validate these synthetic findings on natural language transformers trained on bilingual text and fine-tuned on a single language.

Datasets

  • Random Hierarchy Model (RHM): Synthetic hierarchical sequences generated on-the-fly (online learning regime) with varying tree depths ($L=3, 4$), branching factor $s=2$, and vocabulary sizes ($v=16, 24$).
  • Bilingual Natural Language Corpora: Topically coherent passages written randomly in either English or French (and an English-Turkish pair to test languages with less shared syntax), followed by monolingual fine-tuning.
  • Code Generation (github-code-clean): Used for targeted syntax fine-tuning (indentation and string formatting) on open-source Qwen2.5-Coder (0.5B and 1.5B) models.

Key Insights and Ideas

  • Two Clocks of Forgetting: During pretraining, learning to generate a rule and building its internal representation happen simultaneously. During fine-tuning, they decouple completely. The model quickly stops using deleted rules while keeping the internal machinery to read and understand them completely intact for a vastly longer period.
  • Signal vs. Noise: Fast behavioral suppression is driven by a persistent gradient signal proportional to token–latent correlations. Once the behavior is suppressed, the average gradient stops caring about the deleted rules. Their eventual erasure is not purposeful optimization—it is representational drift caused by the random accumulation of batch-to-batch gradient noise.
  • The Learning Rate Smoking Gun: Because the Adam optimizer normalizes step sizes, a persistent gradient moves weights linearly in time ($\propto \eta t$), whereas random-walk noise accumulates as a square root ($\propto \eta t^{1/2}$). Consequently, behavioral forgetting time scales with the inverse learning rate ($\eta^{-1}$), while representational forgetting scales with the inverse square of the learning rate ($\eta^{-2}$).
  • Jailbreaks Live in the Gap: Models that appear safety-aligned or "unlearned" usually sit in the wide temporal valley between these two timescales—mute on the surface, fluent underneath.

Key Results

  • Orders-of-Magnitude Separation: In RHM experiments ($m=6$ rules, keeping $m_{\text{keep}}=3$), the deleted-rule generation rate plunges from $0.5$ to near zero within $10^2$ to $10^4$ steps (scaling across levels as $m_{\text{keep}}^{\ell/2}$). Meanwhile, hidden representation similarity ($q^R$) stays near $1.0$ and in-context comprehension remains near Bayes-optimal until $10^5$–$10^6$ steps.
  • Controlling the Drift: Applying weight decay ($\lambda$) accelerates representational erasure to a predictable timescale of $\sim 1/(\eta\lambda)$. Conversely, applying explicit $L_2$ regularization pulling weights gently toward pretrained parameters ($\theta_0$) halts parameter drift and preserves latent representations indefinitely without preventing behavioral adaptation.
  • Natural Language Confirmation: In the English-French transformer fine-tuned only on English, French generation vanishes well before $10^2$ steps. Yet representational collapse (measured by inability to distinguish coherent French from token-shuffled French) and loss of cross-lingual context comprehension only kick in after $10^2$ steps—at which point the model also loses its ability to rapidly relearn French.

Limitations and Future Work

  • Theoretical Gap in Non-linear Dynamics: The authors derive the fast behavioral timescale ($m_{\text{keep}}^{\ell/2}$) using a linearized feature model. While this rigorously holds for the lowest hierarchical level ($\ell=1$), explaining why this exact scaling persists at deeper, non-linear levels remains an open theoretical problem.
  • Narrowed Distributions Only: The study focuses strictly on fine-tuning on a subset of the pretraining distribution. Preliminary appendix experiments with out-of-distribution rules show complex forgetting-relearning dynamics left for future work.
  • Beyond SFT: The paper examines only Supervised Fine-Tuning. Investigating how pretraining representations survive or drift during Reinforcement Learning (RL) post-training is highlighted as a crucial next step.

Summary updated

BibTeX
@misc{luo2026two,
  author = {Yilin Luo and Jin Hwa Lee and Andrew M. Saxe and Antonio Sclocchi},
  title = {{Two Timescales of Forgetting in Fine-tuning of Language Models: Fast Behavioral Suppression and Slow Representational Drift}},
  year = {2026},
  eprint = {2611.33302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33302},
}
Figure