Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Models

By Kushal Tirumala, Aram H. Markosyan, Luke S. Zettlemoyer, Armen Aghajanyan. 2022

288 citations recorded by the source corpus.

Despite their wide adoption, the underlying training and memorization dynamics of very large language models is not well understood. We empirically study exact memorization in causal and masked language modeling, across model sizes and throughout the training process. We measure the effects of dataset size, learning rate, and model size on memorization, finding that larger language models memorize training data faster across all settings. Surprisingly, we show that larger models can memorize a larger portion of the data before over-fitting and tend to forget less throughout the training process. We also analyze the memorization dynamics of different parts of speech and find that models memorize nouns and numbers first; we hypothesize and provide empirical evidence that nouns and numbers act as a unique identifier for memorizing individual training examples. Together, these findings present another piece of the broader puzzle of trying to understand what actually improves as models get bigger.

Subfields: Artificial Intelligence, Large Language Models, Scaling & Learning Theory

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Jianfeng Gao
  4. Percy Liang
  5. Florian Tramèr
  6. Nicholas Carlini
  7. Eric Wallace
  8. Yejin Choi

In Large Language Models

  1. Eric Wallace
  2. Daphne Ippolito
  3. Nicholas Carlini
  4. Timo Schick
  5. Florian Tramèr
  6. Katherine Lee
  7. Matthew Jagielski
  8. Weizhu Chen

In Scaling & Learning Theory

  1. Nicholas Carlini
  2. Florian Tramèr
  3. Micah Goldblum
  4. Shuang Song
  5. Sham M. Kakade
  6. Eric Wallace
  7. Chiyuan Zhang
  8. Yann LeCun

Citations in the corpus