mlsanityData to 14 Oct 2026

Continual Memorization of Factoids in Language Models

arXiv 2411.07175 ↗First posted 11 Nov 2024cs.CLcited by 8

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

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  6. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  7. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  8. 2013Playing Atari with Deep Reinforcement Learningcited by 3,274
  9. 2023Mistral 7Bcited by 3,164
  10. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  11. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  12. 2016Learning without Forgettingcited by 2,496
38 more
  1. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  2. 2019Language Models as Knowledge Bases?cited by 1,936
  3. 2017Gradient Episodic Memory for Continual Learningcited by 1,898
  4. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  5. 2017Continual Learning with Deep Generative Replaycited by 1,158
  6. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
  7. 2022Mass-Editing Memory in a Transformercited by 1,001
  8. 2021Measuring Coding Challenge Competence With APPScited by 902
  9. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
  10. 2022Quantifying Memorization Across Neural Language Modelscited by 763
  11. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  12. 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 639
  13. 2021Fast Model Editing at Scalecited by 498
  14. 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
  15. 2019Orthogonal Gradient Descent for Continual Learningcited by 369
  16. 2020Amnesiac Machine Learningcited by 319
  17. 2019On Tiny Episodic Memories in Continual Learningcited by 307
  18. 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 300
  19. 2019Continual learning with hypernetworkscited by 273
  20. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 270
  21. 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 242
  22. 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 234
  23. 2024Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?cited by 232
  24. 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 229
  25. 2020Modifying Memories in Transformer Modelscited by 224
  26. 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
  27. 2023Continual Pre-training of Language Modelscited by 198
  28. 2021Towards Continual Knowledge Learning of Language Modelscited by 174
  29. 2020Anatomy of Catastrophic Forgetting: Hidden Representations and Task Semanticscited by 161
  30. 2022A Review on Language Models as Knowledge Basescited by 157
  31. 2021Counterfactual Memorization in Neural Language Modelscited by 156
  32. 2024Continual Learning for Large Language Models: A Surveycited by 147
  33. 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 144
  34. 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 143
  35. 2021Simple Entity-Centric Questions Challenge Dense Retrieverscited by 140
  36. 2022Measuring Forgetting of Memorized Training Examplescited by 118
  37. 2020A Theoretical Analysis of Catastrophic Forgetting through the NTK Overlap Matrixcited by 103
  38. 2021Continual Learning in the Teacher-Student Setup: Impact of Task Similaritycited by 88

50 most cited of 60 All 60 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 4.

8 papers.