Continual Memorization of Factoids in Language Models
Not on the map. Why?
Abstract (arXiv)
As new knowledge rapidly accumulates, language models (LMs) with pretrained knowledge quickly become obsolete. A common approach to updating LMs is fine-tuning them directly on new knowledge. However, recent studies have shown that fine-tuning for memorization may be ineffective in storing knowledge or may exacerbate hallucinations. In this work, we introduce a setting we call continual memorization, where a model must memorize and retain a set of factoids through multiple stages of fine-tuning on subsequent datasets. We characterized the forgetting patterns through extensive experiments and show that LMs widely suffer from forgetting, especially when needing to memorize factoids in the second stage. We posit that forgetting can be alleviated by modifying training dynamics: (1) protecting the memorization process when learning factoids or (2) reducing interference from subsequent training stages. Intriguingly, we find that mixing randomly generated word sequences or generic data sampled from pretraining corpora at different training stages effectively mitigates forgetting REMIX: Random and Generic Data Mixing). REMIX can recover performance from severe forgetting, outperforming replay methods and other continual learning baselines. We analyze how REMIX influences the learning process and find that robust memorization follows a distinct pattern: the model stores factoids in earlier layers than usual and diversifies the layers that retain them, which results in easier recall and manipulate of the learned factoids.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 60 of its 68 references that are in the map. First posted on arXiv 11 Nov 2024.
Builds on
60 of 68 references.
References · 60
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,274
- 2023Mistral 7Bcited by 3,164
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2016Learning without Forgettingcited by 2,496
38 more
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2017Gradient Episodic Memory for Continual Learningcited by 1,898
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2017Continual Learning with Deep Generative Replaycited by 1,158
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 639
- 2021Fast Model Editing at Scalecited by 498
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
- 2019Orthogonal Gradient Descent for Continual Learningcited by 369
- 2020Amnesiac Machine Learningcited by 319
- 2019On Tiny Episodic Memories in Continual Learningcited by 307
- 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 300
- 2019Continual learning with hypernetworkscited by 273
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 270
- 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 242
- 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 234
- 2024Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?cited by 232
- 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 229
- 2020Modifying Memories in Transformer Modelscited by 224
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
- 2023Continual Pre-training of Language Modelscited by 198
- 2021Towards Continual Knowledge Learning of Language Modelscited by 174
- 2020Anatomy of Catastrophic Forgetting: Hidden Representations and Task Semanticscited by 161
- 2022A Review on Language Models as Knowledge Basescited by 157
- 2021Counterfactual Memorization in Neural Language Modelscited by 156
- 2024Continual Learning for Large Language Models: A Surveycited by 147
- 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 144
- 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 143
- 2021Simple Entity-Centric Questions Challenge Dense Retrieverscited by 140
- 2022Measuring Forgetting of Memorized Training Examplescited by 118
- 2020A Theoretical Analysis of Catastrophic Forgetting through the NTK Overlap Matrixcited by 103
- 2021Continual Learning in the Teacher-Student Setup: Impact of Task Similaritycited by 88
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligencecited by 170
- 2025Continual Learning via Sparse Memory Finetuningcited by 20
- 2025Memorization vs. Reasoning: Updating LLMs with New Knowledgecited by 13
- 2026Replaying pre-training data improves fine-tuningcited by 13
- 2026Why Fine-Tuning Encourages Hallucinations and How to Fix Itcited by 7
- 2025PropMEND: Hypernetworks for Knowledge Propagation in LLMscited by 3
- 2026Fine-Tuning Without Forgetting via Loss-Adaptive Learning Ratescited by 1
- 2026Popular Knowledge Propagates More Errors in LLM Knowledge Updatingcited by 0
- 2026Popular Knowledge Propagates More Errors in LLM Knowledge Updating8 Sep 2026
- 2026Fine-Tuning Without Forgetting via Loss-Adaptive Learning Rates19 May 2026
- 2026Why Fine-Tuning Encourages Hallucinations and How to Fix It16 Apr 2026
- 2026Replaying pre-training data improves fine-tuning5 Mar 2026
- 2025Continual Learning via Sparse Memory Finetuning16 Oct 2025
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligence28 Jul 2025
- 2025PropMEND: Hypernetworks for Knowledge Propagation in LLMs10 Jun 2025
- 2025Memorization vs. Reasoning: Updating LLMs with New Knowledge16 Apr 2025