Quantifying Memorization Across Neural Language Models

By Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, Florian Tramèr, Chiyuan Zhang. 2022

944 citations recorded by the source corpus.

Large language models (LMs) have been shown to memorize parts of their training data, and when prompted appropriately, they will emit the memorized training data verbatim. This is undesirable because memorization violates privacy (exposing user data), degrades utility (repeated easy-to-memorize text is often low quality), and hurts fairness (some texts are memorized over others). We describe three log-linear relationships that quantify the degree to which LMs emit memorized training data. Memorization significantly grows as we increase (1) the capacity of a model, (2) the number of times an example has been duplicated, and (3) the number of tokens of context used to prompt the model. Surprisingly, we find the situation becomes more complicated when generalizing these results across model families. On the whole, we find that memorization in LMs is more prevalent than previously believed and will likely get worse as models continues to scale, at least without active mitigations.

Subfields: Artificial Intelligence, Large Language Models

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. Percy Liang
  4. Jianfeng Gao
  5. Graham Neubig
  6. Hannaneh Hajishirzi
  7. Yejin Choi
  8. Noah A. Smith

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Hannaneh Hajishirzi
  3. Hinrich Schütze
  4. Yejin Choi
  5. Yi Tay
  6. Percy Liang
  7. Timo Schick
  8. Graham Neubig

Citations in the corpus