English

Demystifying Language Model Forgetting with Low-rank Example Associations

Machine Learning 2025-12-09 v8 Computation and Language Machine Learning

Abstract

Large language models (LLMs) suffer from forgetting of upstream knowledge when fine-tuned. Despite efforts on mitigating forgetting, few have investigated how forgotten upstream examples are dependent on newly learned tasks. Insights on such dependencies enable efficient and targeted mitigation of forgetting. In this paper, we empirically analyze forgetting that occurs in NN upstream examples of language modeling or instruction-tuning after fine-tuning LLMs on one of MM new tasks, visualized in M×NM\times N matrices. We show that the matrices are often well-approximated with low-rank matrices, indicating the dominance of simple associations between the learned tasks and forgotten upstream examples. Leveraging the analysis, we predict forgetting of upstream examples when fine-tuning LLMs on unseen tasks with matrix completion over the empirical associations. This enables fast identification of most forgotten examples without expensive inference on the entire upstream data. Despite simplicity, the approach outperforms prior approaches that learn semantic relationships of learned tasks and upstream examples with LMs. We demonstrate the practical utility of our analysis by showing statistically significantly reduced forgetting as we upweight predicted examples for replay during fine-tuning. Code, data, and statistics collected: https://github.com/AuCson/low-rank-forgetting

Keywords

Cite

@article{arxiv.2406.14026,
  title  = {Demystifying Language Model Forgetting with Low-rank Example Associations},
  author = {Xisen Jin and Xiang Ren},
  journal= {arXiv preprint arXiv:2406.14026},
  year   = {2025}
}

Comments

NeurIPS 2025. Updated code and data URL

R2 v1 2026-06-28T17:12:59.263Z