Two Timescales of Forgetting in Fine-tuning of Language Models: Fast Behavioral Suppression and Slow Representational Drift
Abstract
Today, a core pipeline of artificial intelligence systems is pretraining on a broad range of text corpora and then fine-tuning on specific tasks or desired behaviors. Yet we still have limited understanding of how fine-tuning on a restricted data distribution modifies representations acquired during pretraining. In particular, it remains unclear whether surface behavioral suppression happens together with the erasure of latent representations that support it. In this work, we study supervised fine-tuning (SFT) by pretraining transformers on a controlled context-free grammar with hierarchical latent structure, the Random Hierarchy Model (RHM), and fine-tuning with a restricted subset of its generative rules. While during pretraining the model's ability to generate with the correct grammar rules coincides with building the internal representations of the corresponding latent, we find that SFT exhibits a very different dynamics: (i) the generation of deleted rules changes on a fast timescale inversely proportional to the magnitude of the token-latent correlation; meanwhile, their corresponding representations stay intact; (ii) the hidden representations of the deleted rules become forgotten on a much longer timescale, associated with a slow drift of the network parameters. Finally, we observe analogous results in a realistic setup with natural language, suggesting that this timescale separation in forgetting is a more general phenomenon of fine-tuning language models.
Create a lesson
Metadata
- Categories
- cs.LG, cond-mat.dis-nn, cs.CL, stat.ML
- Comments
- 36 pages, 27 figures. Code: https://github.com/yilin-luo/two-timescales-of-forgetting
Related papers
Amortizing Exact Orthogonality: Drift-Triggered Restoration for Orthogonal Fine-Tuning
Shared title terminologycs.LGLanxin Zhao, Xiaoyu Li, Dai Shi et al.
KiRA: Kronecker Input-Gated Rank Adaptation for Parameter-Efficient Fine-Tuning of Pretrained Models
Shared title terminologycs.LGAkil Ahmad Taki, Shaikh Anowarul Fattah
Fix How It Acts, Not How It Thinks: Surgical Fine-Tuning of Frontier LLMs
Shared title terminologycs.LGSandeep Singh Sandha, Prann Bansal, Arvind Sundararajan
RAP: Radial-Angular Random Projection for Hyperbolic Representations
Shared title terminologycs.LGJiahong Liu, Wenhao Yu, Yifan Li et al.
Scaling Looped MoE Language Models under Matched Budgets: Information Flow and Parameter Allocation
Shared title terminologycs.LGShipeng Bai, Jiayu Qin, Hong Liu et al.
DLaR: Dynamic Stochasticity Control for Latent Reasoning in Large Language Models
Shared title terminologycs.LGXiaocheng Luo, Peng Xu, Zaifu Zhan et al.