paper-with-me

홈 › Papers

Continual Memorization of Factoids in Large Language Models

2024-11-11 · Howard Chen, Jiayi Geng, Adithya Bhaskar, Dan Friedman, Danqi Chen

Large language models can absorb a massive amount of knowledge through pretraining, but pretraining is inefficient for acquiring long-tailed or specialized facts. Therefore, fine-tuning on specialized or new knowledge that reflects changes in the world has become popular, though it risks disrupting the model's original capabilities. We study this fragility in the context of continual memorization, where the model is trained on a small set of long-tail factoids (factual associations) and must retain these factoids after multiple stages of subsequent training on other datasets. Through extensive experiments, we show that LLMs suffer from forgetting across a wide range of subsequent tasks, and simple replay techniques do not fully prevent forgetting, especially when the factoid datasets are trained in the later stages. We posit that there are two ways to alleviate forgetting: 1) protect the memorization process as the model learns the factoids, or 2) reduce interference from training in later stages. With this insight, we develop an effective mitigation strategy: REMIX (Random and Generic Data Mixing). REMIX prevents forgetting by mixing generic data sampled from pretraining corpora or even randomly generated word sequences during each stage, despite being unrelated to the memorized factoids in the first stage. REMIX can recover performance from severe forgetting, often outperforming replay-based methods that have access to the factoids from the first stage. We then analyze how REMIX alters the learning process and find that successful forgetting prevention is associated with a pattern: the model stores factoids in earlier layers than usual and diversifies the set of layers that store these factoids. The efficacy of REMIX invites further investigation into the underlying dynamics of memorization and forgetting, opening exciting possibilities for future research.

📄 PDF Abstract BibTeX arXiv:2411.07175

Code (1)

princeton-nlp/continual-factoid-memorization 공식 구현 pytorch

Tasks

Memorization

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Augmenting Memory Networks for Rich and Efficient Retrieval in Grounded Dialogue

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Grounded dialogue consists of conditioning a conversation on additional latent inputs ("factoids") beyond the dialogue context, such as Wikipedia articles, IMDB reviews, persona, and images. Due to a scarcity of <contex…

ArticlesResponse GenerationRetrieval

Continual Learning Mechanisms Compose for Long-Horizon Memorization

2026-09-07 · Zheyuan Zhang, Alvin Zhang, Daniel Khashabi, Tianmin Shu hf

Language models may need to internalize information that arrives over time and retain it through many subsequent updates. To study this challenge, we introduce long-horizon memorization, a setting in which a model learns…

Continual Learning

Mix-CPT: A Domain Adaptation Framework via Decoupling Knowledge Learning and Format Alignment

2024-07-15 · Jinhao Jiang, Junyi Li, Wayne Xin Zhao, Yang song 외

Adapting general large language models (LLMs) to specialized domains presents great challenges due to varied data distributions. This adaptation typically requires continual pre-training on massive domain-specific corpor…

Domain AdaptationMemorization

LLMs Can Leak Training Data But Do They Want To? A Propensity-Aware Evaluation of Memorization in LLMs

2026-06-04 · Gianluca Barmina, Peter Schneider-Kamp, Lukas Galke Poech arxiv

Large language models can reproduce training data, but existing memorization evaluations mostly measure whether models can be forced to do so, rather than whether they do so under ordinary use. We introduce PropMe, a pro…

Continual Memory: Can We Reason After Long-Term Memorization?

2021-01-01 · Zhu Zhang, Chang Zhou, Zhou Zhao, Zhijie Lin 외

Existing reasoning tasks often follow the setting of "reasoning while experiencing", which has an important assumption that the raw contents can be always accessed while reasoning. However, human beings frequently adopt …

Memorization