Revisiting Replay and Gradient Alignment for Continual Pre-Training of Large Language Models
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
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2016iCaRL: Incremental Classifier and Representation Learningcited by 2,333
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,288
- 2020Gradient Surgery for Multi-Task Learningcited by 1,256
- 2018Efficient Lifelong Learning with A-GEMcited by 1,058
- 2018On First-Order Meta-Learning Algorithmscited by 1,018
- 2018Learning to Learn without Forgetting by Maximizing Transfer and Minimizing Interferencecited by 521
- 2017PathNet: Evolution Channels Gradient Descent in Super Neural Networkscited by 364
- 2019Lookahead Optimizer: k steps forward, 1 step backcited by 336
26 more
- 2020Towards Continual Reinforcement Learning: A Review and Perspectivescited by 274
- 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 234
- 2023Continual Pre-training of Language Modelscited by 198
- 2024Continual Learning with Pre-Trained Models: A Surveycited by 154
- 2022Towards a Cleaner Document-Oriented Multilingual Crawled Corpuscited by 143
- 2023Continual Pre-Training of Large Language Models: How to (re)warm your model?cited by 137
- 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 132
- 2020A Monolingual Approach to Contextualized Word Embeddings for Mid-Resource Languagescited by 131
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 127
- 2017Routing Networks: Adaptive Selection of Non-linear Functions for Multi-Task Learningcited by 126
- 2021Lifelong Pretraining: Continually Adapting Language Models to Emerging Corporacited by 115
- 2024Continual Pre-Training for Cross-Lingual LLM Adaptation: Enhancing Japanese Language Capabilitiescited by 111
- 2023Lifelong Language Pretraining with Distribution-Specialized Expertscited by 66
- 2019Routing Networks and the Challenges of Modular and Compositional Computationcited by 50
- 2013Low-Rank Approximations for Conditional Feedforward Computation in Deep Neural Networkscited by 44
- 2018Automatically Composing Representation Transformations as a Means for Generalizationcited by 35
- 2017Scalable Recollections for Continual Lifelong Learningcited by 33
- 2024A Practitioner's Guide to Continual Multimodal Pretrainingcited by 23
- 2024Examining Forgetting in Continual Pre-training of Aligned Large Language Modelscited by 18
- 2024Towards Effective and Efficient Continual Pre-training of Large Language Modelscited by 15
- 2021Continual Learning In Environments With Polynomial Mixing Timescited by 14
- 2019Continual Learning with Self-Organizing Mapscited by 10
- 2020Coagent Networks Revisitedcited by 6
- 2024Domain-adaptative Continual Learning for Low-resource Tasks: Evaluation on Nepalicited by 5
- 2025Continual Pre-training of MoEs: How robust is your router?cited by 5
- 2024Gradient Localization Improves Lifelong Pretraining of Language Modelscited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 12.
14 papers.
Sort:
By area:
- 2026CRL-VLA: Continual Vision-Language-Action Learningcited by 7
- 2026Harness Continual Learning: Continual Adaptation Beyond Model Parameterscited by 6
- 2025Beyond Sliding Windows: Learning to Manage Memory in Non-Markovian Environmentscited by 3
- 2026Training Data Selection with Gradient Orthogonality for Efficient Domain Adaptationcited by 3
- 2025The Effectiveness of Approximate Regularized Replay for Efficient Supervised Fine-Tuning of Large Language Modelscited by 2
- 2026Attribution-Guided Continual Learning for Large Language Modelscited by 1
- 2026Position: Collusion Risks Among AI Reasoning Agents Justify Certification Requirements for Making Market Decisionscited by 1
- 2026Replay-Based Continual Learning for Physics-Informed Neural Operatorscited by 0
- 2026TFGN: Task-Free, Replay-Free Continual Pre-Training Without Catastrophic Forgetting at LLM Scalecited by 0
- 2026Fast and Slow Variational Continual Learningcited by 0
- 2026Relative Parameter Importance in Task-Agnostic Replay-Free Continual Learningcited by 0
- 2026Continual Learning in Transitioncited by 0
- 2026Replay on Demand: An Emergent Curriculum for Balancing Adaptation and Forgetting in Continued Pretraining30 Sep 2026
- 2026MASCRDM: Multi-Agent System for Compliance Risk Detection and Mitigation in Training Process of Large Language Models30 Sep 2026
- 2026Harness Continual Learning: Continual Adaptation Beyond Model Parameters19 Aug 2026
- 2026Continual Learning in Transition6 Aug 2026
- 2026Relative Parameter Importance in Task-Agnostic Replay-Free Continual Learning1 Aug 2026
- 2026Fast and Slow Variational Continual Learning22 Jun 2026
- 2026Position: Collusion Risks Among AI Reasoning Agents Justify Certification Requirements for Making Market Decisions29 May 2026
- 2026TFGN: Task-Free, Replay-Free Continual Pre-Training Without Catastrophic Forgetting at LLM Scale14 May 2026
- 2026Attribution-Guided Continual Learning for Large Language Models6 May 2026
- 2026Replay-Based Continual Learning for Physics-Informed Neural Operators6 May 2026
- 2026Training Data Selection with Gradient Orthogonality for Efficient Domain Adaptation6 Feb 2026
- 2026CRL-VLA: Continual Vision-Language-Action Learning3 Feb 2026
- 2026CRL-VLA: Continual Vision-Language-Action Learningcited by 7
- 2026CRL-VLA: Continual Vision-Language-Action Learning3 Feb 2026
- 2026Harness Continual Learning: Continual Adaptation Beyond Model Parameterscited by 6
- 2025Beyond Sliding Windows: Learning to Manage Memory in Non-Markovian Environmentscited by 3
- 2025The Effectiveness of Approximate Regularized Replay for Efficient Supervised Fine-Tuning of Large Language Modelscited by 2
- 2026Attribution-Guided Continual Learning for Large Language Modelscited by 1
- 2026Replay-Based Continual Learning for Physics-Informed Neural Operatorscited by 0
- 2026TFGN: Task-Free, Replay-Free Continual Pre-Training Without Catastrophic Forgetting at LLM Scalecited by 0
- 2026Fast and Slow Variational Continual Learningcited by 0
- 2026Relative Parameter Importance in Task-Agnostic Replay-Free Continual Learningcited by 0
- 2026Continual Learning in Transitioncited by 0
- 2026Replay on Demand: An Emergent Curriculum for Balancing Adaptation and Forgetting in Continued Pretrainingcited by 0
- 2026Replay on Demand: An Emergent Curriculum for Balancing Adaptation and Forgetting in Continued Pretraining30 Sep 2026
- 2026Harness Continual Learning: Continual Adaptation Beyond Model Parameters19 Aug 2026
- 2026Continual Learning in Transition6 Aug 2026
- 2026Relative Parameter Importance in Task-Agnostic Replay-Free Continual Learning1 Aug 2026
- 2026Fast and Slow Variational Continual Learning22 Jun 2026
- 2026TFGN: Task-Free, Replay-Free Continual Pre-Training Without Catastrophic Forgetting at LLM Scale14 May 2026
- 2026Attribution-Guided Continual Learning for Large Language Models6 May 2026
- 2026Replay-Based Continual Learning for Physics-Informed Neural Operators6 May 2026
- 2025The Effectiveness of Approximate Regularized Replay for Efficient Supervised Fine-Tuning of Large Language Models26 Dec 2025
- 2025Beyond Sliding Windows: Learning to Manage Memory in Non-Markovian Environments22 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2023TRACE: A Comprehensive Benchmark for Continual Learning in Large Language Models
- 2024Continual Learning for Large Language Models: A Survey
- 2026Time-Incremental Continued Pretraining of LLMs: Knowledge Updates Without Catastrophic Forgetting
- 2026Specializing Without Forgetting: Analyzing Knowledge Preservation in Multilingual Model Adaptation
- 2026Rethinking Transfer in Continual Learning: A Replay-Based Realisation
- 2026Forgetting in Language Models: Capacity, Optimization, and Self-Generated Replay
- 2024Improving the Robustness of Large Language Models via Consistency Alignment
- 2026Representation Collapse in Sequential Post-Training of Large Language Models