Model inversion is an attack in which someone uses a trained model to reconstruct information about the data it learned from – for example, an approximate image of a person’s face from a face-recognition system, or a patient’s genetic marker from a medical model. It shows that a model can leak private information even if its training data is never published.
Early demonstrations
Matt Fredrikson and colleagues introduced the term in 2014 with a model that recommends doses of the blood thinner warfarin: given a patient’s demographic data and dose, they could infer the patient’s genetic markers better than chance. In 2015 Fredrikson, Somesh Jha and Thomas Ristenpart used the confidence scores of a facial recognition model to reconstruct recognizable images of people’s faces given only their names and query access to the model. The defenses they proposed were simple – reporting coarser confidence scores – but the principle stuck: what a model outputs can be traced back to what went in.
Inversion is related to, but distinct from, membership inference, which asks whether a record was in the training set, and training-data extraction, which recovers records exactly.
Generative models
With generative AI, extraction became the main concern. In 2021 Nicholas Carlini and colleagues extracted hundreds of verbatim sequences from GPT-2, including publicly posted names, phone numbers and email addresses from its web training data. In 2023 a team including Carlini recovered more than a hundred near-identical copies of training images from Stable Diffusion, and later that year researchers showed that asking ChatGPT to repeat a word such as “poem” forever made it emit memorized training text, including personal information; afterwards ChatGPT began warning that such prompts may violate its content policy or terms of use (see Memorization).
Are models personal data?
The attacks fuel a legal debate. In 2018 Michael Veale, Reuben Binns and Lilian Edwards argued that models vulnerable to inversion could themselves count as personal data under European law. The Hamburg data protection authority took the opposite view for large language models in a July 2024 discussion paper, saying they do not store personal data in a legally relevant sense. In December 2024 the European Data Protection Board set a middle course: whether a model is anonymous must be assessed case by case, depending on how likely it is that personal data can be extracted (see GDPR). Defenses include removing duplicates from training data, differential privacy – though the 2014 warfarin study found that settings strong enough to stop the attack made the dosing unsafe – and filters on model outputs.
Why it matters
Model inversion shows that publishing or deploying a model can be a way of publishing parts of its data – a basic fact for privacy law and for anyone deciding what goes into training.
Written with Claude, made by Anthropic, which trains its models on large datasets that can contain personal information; several studies cited here came from researchers at Google, an Anthropic investor and competitor, and concern models of competitor OpenAI; Nicholas Carlini, who led two of them, has worked at Anthropic since 2025.
Related
Membership Inference · Model Extraction · Memorization · Differential Privacy · GDPR · Facial Recognition
Sources: Matthew Fredrikson et al.: Privacy in Pharmacogenetics (USENIX Security) (2014) · Matt Fredrikson, Somesh Jha and Thomas Ristenpart: Model Inversion Attacks that Exploit Confidence Information and Basic Countermeasures (ACM CCS) (2015) · Nicholas Carlini et al.: Extracting Training Data from Large Language Models (arXiv) (2021) · Nicholas Carlini et al.: Extracting Training Data from Diffusion Models (arXiv) (2023) · Milad Nasr et al.: Scalable Extraction of Training Data from (Production) Language Models (arXiv) (November 2023) · 404 Media: Asking ChatGPT to repeat words “forever” is now a terms of service violation (December 4, 2023) · Michael Veale, Reuben Binns and Lilian Edwards: Algorithms that remember (Philosophical Transactions of the Royal Society A) (2018) · Hamburg Commissioner for Data Protection: Discussion Paper – Large Language Models and Personal Data (July 2024) · European Data Protection Board: Opinion 28/2024 (December 17, 2024)
Leave a Reply