liveBook · Manning

Differential privacy

As explained in Introduction to Generative AI, Second Edition

Differential privacy is a formal privacy framework that limits the effect of any one individual's data on an algorithm's output, typically by adding calibrated statistical noise.

A large language model (LLM) may learn sensitive information from its training data and later reproduce it. Differential privacy is a privacy-enhancing technique that limits how much any one data point can affect an algorithm’s output. During model training, it can introduce statistical noise to provide a mathematically provable limit on an individual data point’s influence. section 3.4

This approach offers a more principled protection than a blocklist, which filters known sensitive patterns but cannot catch every unseen or rare item. The aim is to make information about an individual harder to infer from the trained model. section 3.4

Differential privacy is difficult to implement effectively for LLMs. Stronger privacy protections can come with performance trade-offs, and the technique does not prevent every instance of memorization, including infrequent unique strings. Privacy-enhancing technologies are not foolproof: personal information may still be inferred from seemingly innocuous data. section 3.4 section 3.17

Technical safeguards work alongside clear privacy policies. People using LLMs, especially at work, should understand how their data may be used and think carefully before entering private information. section 10.18

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Explains the intuitive role of statistical noise and privacy trade-offs without detailing implementation steps or formal guarantees.
Examples
Contrasts noise added during model training with blocklists that filter known sensitive sequences from training data.
What you can do after
Evaluate differential privacy’s potential and limitations for protecting sensitive training data in large language models.
How it connects
Connects differential privacy to memorization, blocklists, data masking, anonymization, and reidentification risk.

Also explained in

Compare how 3 books explain differential privacy →

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.