Understanding the Interplay between Memorization and Learning in Large Language Models
Bishwamittra Ghosh, Soumi Das, Qinyuan Wu, Mohammad Aflah Khan, Krishna Gummadi, Evimaria Terzi, Deepak Garg
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › LLM Memory and Retrieval Mechanisms · Type: new method · Keywords: memorization, language learning, large language models, contextual analysis, training schemes
Areas: LLM Reasoning › Efficient Reasoning › Memory and Forgetting
Summary
The paper introduces contextual memorization, a new measure to separate rote memorization from genuine learning, and proposes memorization-aware training to reduce memorization while improving learning in large language models.
Explained to a 5-year-old
We want to know if a big computer program that writes words just copies what it saw before or really learns how language works. We create a special way to tell copying apart from learning. We also create a training method that helps the program learn evenly from all examples. This helps the program copy less and understand language better. The ideas are tested on simple made-up languages and real language data.
Explained to a 5-year-old, longer
A big language model is a computer program that can write sentences. Sometimes it just repeats something it saw a lot in its training data. Other times it makes up new sentences that follow the rules of language. We want to know which part of its output is copying and which part is real learning. So we invented a new measurement that can separate copying from learning. With this measurement we found that even when a model tries to learn a language perfectly, it still has to copy some things. Then we designed a training method that makes the model learn equally from all examples. This training method helps the model copy less and understand the language better. We tested our ideas on simple, made-up languages where we can control everything. We also tried them on real human language data to see if they work in practice. The results show that the new measurement works and the training method improves learning. Overall, the work gives us better tools to study how models memorize and learn.
For a technical reader
The paper investigates how large language models balance memorizing specific training examples versus learning general language patterns. They introduce a quantitative measure that cleanly separates memorization from learning, allowing precise analysis. Using this measure, they prove that optimal language learning inevitably entails some memorization of training data. They then propose a training scheme that equalizes learning across examples, which empirically reduces memorization and improves overall learning performance. The findings are validated on controlled formal languages and on natural language datasets, offering insights for designing more robust language models.
Problem
How can we distinguish whether an LLM's output stems from copying specific training examples or from learning general language patterns? Can an LLM avoid memorization while learning a language, and how can training be designed to reduce memorization?
Method
The approach introduces a quantitative measure to disentangle memorization from learning and a training scheme that equalizes learning across examples to mitigate memorization.
Contributions
A novel measure for separating memorization and learning, a proof that optimal language learning inevitably entails some memorization, and a training scheme that reduces memorization and enhances learning performance.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction