Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Continual Memorization of Factoids in Language Models

About

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.

Howard Chen, Jiayi Geng, Adithya Bhaskar, Dan Friedman, Danqi Chen• 2024

Related benchmarks

TaskDatasetResultRank
Factoid Knowledge RecallKey-Value Recall Factoid
ID Score10.6
6
Factoid Knowledge RecallPopQA Factoid
ID Score86.6
6
Factoid Knowledge RecallTriviaQA Factoid
ID Score90.8
6
Factoid Question AnsweringFactoid benchmarks (LAMA, EntityQA, WebQA) (test)
LAMA Accuracy90.5
6
General Reasoning and CodingKey-Value Recall Non-Factoid
GSM8K Accuracy64.1
6
General Reasoning and CodingPopQA Non-Factoid
GSM8K Accuracy51.4
6
General Reasoning and CodingTriviaQA Non-Factoid
GSM8K Score31.9
6
Factoid Knowledge EvaluationKVR
LAMA Score62.4
5
Factoid Knowledge EvaluationPopQA
LAMA Score85.8
5
Factoid Knowledge EvaluationTriviaQA
LAMA Score89.2
5
Showing 10 of 14 rows

Other info

Follow for update