liveBook · Manning

Memorization

As explained in Introduction to Generative AI, Second Edition

Model memorization is the retention of specific training examples or sensitive information in a trained model's parameters or behavior.

Model memorization is the retention of specific training examples or sensitive information in a model’s behavior. Large language models (LLMs) can unintentionally reproduce personally identifiable information (PII), including names, addresses, phone numbers, and other private details, even when trained on public data. The risk increases when proprietary or sensitive datasets are exposed through public deployment. section 3.4

Memorization creates several practical and governance concerns:

  • Training-data extraction attacks use systematic queries to recover identifiable information from a model. section 3.4
  • A 2021 GPT-2 demonstration recovered hundreds of memorized sequences, including contact details, conversations, code, and universally unique identifiers; some appeared only once in training data. section 3.4
  • Larger models showed greater susceptibility in that demonstration, while later research found that existing safety techniques do not fully prevent leakage. section 3.4

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Explains retention, extraction, rare-example memorization, and model-size effects, but does not detail prevention methods.
Examples
Uses GPT-2 extraction of contact details, conversations, code, and identifiers as a concrete example.
What you can do after
Evaluate privacy and legal risks arising when language models reproduce sensitive training data.
How it connects
Connects memorization with personally identifiable information, training-data extraction attacks, data privacy, and model safety.

Also explained in

Compare how 4 books explain memorization →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.