mlsanityData to 14 Oct 2026

Revisiting Replay and Gradient Alignment for Continual Pre-Training of Large Language Models

arXiv 2508.01908 ↗First posted 3 Aug 2025cs.LG cs.AI cs.CLcited by 14

Not on the map. Why?

Abstract (arXiv)

Training large language models (LLMs) typically involves pre-training on massive corpora, only to restart the process entirely when new data becomes available. A more efficient and resource-conserving approach would be continual pre-training, where models are updated with new data rather than retraining from scratch. However, the introduction of new data often causes distribution shifts, leading to performance degradation on previously learned tasks. In this paper, we take a deeper look at two popular proposals for addressing this distribution shift within the continual learning literature: experience replay and gradient alignment. We consider continual pre-training of models within the Llama family of architectures at a large scale across languages with 100 billion tokens of training data in each language, finding that both replay and gradient alignment lead to more stable learning without forgetting. This conclusion holds both as we vary the model scale and as we vary the number and diversity of tasks. Moreover, we are the first to demonstrate the effectiveness of gradient alignment techniques in the context of LLM pre-training and propose an efficient implementation of meta-experience replay (MER) that imbues experience replay with the benefits of gradient alignment despite negligible compute and memory overhead. Our scaling analysis across model sizes and replay rates indicates that small rates of replaying old examples are definitely a more valuable use of compute than investing in model size, but that it is more compute efficient to scale the size of the model than invest in high rates of replaying old examples.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 38 of its 62 references that are in the map. First posted on arXiv 3 Aug 2025.

Builds on

38 of 62 references.

References · 38

  1. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
  2. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  3. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  4. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  5. 2016iCaRL: Incremental Classifier and Representation Learningcited by 2,333
  6. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,288
  7. 2020Gradient Surgery for Multi-Task Learningcited by 1,256
  8. 2018Efficient Lifelong Learning with A-GEMcited by 1,058
  9. 2018On First-Order Meta-Learning Algorithmscited by 1,018
  10. 2018Learning to Learn without Forgetting by Maximizing Transfer and Minimizing Interferencecited by 521
  11. 2017PathNet: Evolution Channels Gradient Descent in Super Neural Networkscited by 364
  12. 2019Lookahead Optimizer: k steps forward, 1 step backcited by 336
26 more
  1. 2020Towards Continual Reinforcement Learning: A Review and Perspectivescited by 274
  2. 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 234
  3. 2023Continual Pre-training of Language Modelscited by 198
  4. 2024Continual Learning with Pre-Trained Models: A Surveycited by 154
  5. 2022Towards a Cleaner Document-Oriented Multilingual Crawled Corpuscited by 143
  6. 2023Continual Pre-Training of Large Language Models: How to (re)warm your model?cited by 137
  7. 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 132
  8. 2020A Monolingual Approach to Contextualized Word Embeddings for Mid-Resource Languagescited by 131
  9. 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 127
  10. 2017Routing Networks: Adaptive Selection of Non-linear Functions for Multi-Task Learningcited by 126
  11. 2021Lifelong Pretraining: Continually Adapting Language Models to Emerging Corporacited by 115
  12. 2024Continual Pre-Training for Cross-Lingual LLM Adaptation: Enhancing Japanese Language Capabilitiescited by 111
  13. 2023Lifelong Language Pretraining with Distribution-Specialized Expertscited by 66
  14. 2019Routing Networks and the Challenges of Modular and Compositional Computationcited by 50
  15. 2013Low-Rank Approximations for Conditional Feedforward Computation in Deep Neural Networkscited by 44
  16. 2018Automatically Composing Representation Transformations as a Means for Generalizationcited by 35
  17. 2017Scalable Recollections for Continual Lifelong Learningcited by 33
  18. 2024A Practitioner's Guide to Continual Multimodal Pretrainingcited by 23
  19. 2024Examining Forgetting in Continual Pre-training of Aligned Large Language Modelscited by 18
  20. 2024Towards Effective and Efficient Continual Pre-training of Large Language Modelscited by 15
  21. 2021Continual Learning In Environments With Polynomial Mixing Timescited by 14
  22. 2019Continual Learning with Self-Organizing Mapscited by 10
  23. 2020Coagent Networks Revisitedcited by 6
  24. 2024Domain-adaptative Continual Learning for Low-resource Tasks: Evaluation on Nepalicited by 5
  25. 2025Continual Pre-training of MoEs: How robust is your router?cited by 5
  26. 2024Gradient Localization Improves Lifelong Pretraining of Language Modelscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 12.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2023TRACE: A Comprehensive Benchmark for Continual Learning in Large Language Models
  2. 2024Continual Learning for Large Language Models: A Survey
  3. 2026Time-Incremental Continued Pretraining of LLMs: Knowledge Updates Without Catastrophic Forgetting
  4. 2026Specializing Without Forgetting: Analyzing Knowledge Preservation in Multilingual Model Adaptation
  5. 2026Rethinking Transfer in Continual Learning: A Replay-Based Realisation
  6. 2026Forgetting in Language Models: Capacity, Optimization, and Self-Generated Replay
  7. 2024Improving the Robustness of Large Language Models via Consistency Alignment
  8. 2026Representation Collapse in Sequential Post-Training of Large Language Models