{"course":{"slug":"making-things-with-ai","title":"Making Things with AI","url":"https://addaly.com/learn/making-things-with-ai","level":"beginner","track":"create"},"lesson":{"slug":"what-the-model-retains","title":"What the model does and does not retain","url":"https://addaly.com/learn/making-things-with-ai/what-the-model-retains","position":9,"of":84,"minutes":9,"answer":"A diffusion model stores a compressed statistical summary rather than a library of images, but images duplicated many times in the training data can be reproduced almost exactly.","keyIdea":"A diffusion model stores a compressed statistical summary rather than a library of images, but images duplicated many times in the training data can be reproduced almost exactly, and the measured rate is small but not zero."},"body":{"format":"markdown","text":"## The size argument, and why it is not the whole answer\n\nThe most-repeated defence of these systems is arithmetic. Stable Diffusion 1.5 has roughly 860 million parameters, about 2 gigabytes on disk in half precision. It was trained on billions of images. If it stored them, it would be storing each in a fraction of a byte, which is impossible. Therefore it cannot contain the training images.\n\nThe arithmetic is right and the conclusion is too strong. Average compression across the whole set is not the same as compression of any particular item. A model can be an extreme lossy summary of nearly everything and still hold a handful of specific images almost exactly: precisely the ones it saw thousands of times.\n\n## What the measurements say\n\nThis has been tested rather than argued. The best-known study, by Carlini and colleagues in 2023, took Stable Diffusion, selected the training captions with the most duplicated images, and generated a very large number of samples (on the order of 175 million) checking each against the training set.\n\nThey recovered roughly a hundred near-exact copies. That is a small number against 175 million generations, and it is not zero. Every recovered image shared one property: it appeared many times in the training data, typically hundreds of times, usually because it was a stock photo, a film poster, a book cover or a widely reposted meme.\n\nThe mechanism is straightforward once you have the earlier lessons. Training reduces prediction error. An image seen once contributes a nudge that is averaged away among millions of others. An image seen a thousand times, with the same caption, becomes a reliable low-error target: the model can lower its loss by learning that specific mapping. Memorisation is not a bug in the architecture; it is what optimisation does with duplicates.\n\n## The consequences you should carry\n\n**Deduplication is the fix, and it is now standard.** Later training runs remove near-duplicate images before training, which drops the memorisation rate substantially. When a lab says its dataset was deduplicated, this is the risk it is talking about.\n\n**Named artists and named works behave differently from styles.** A prompt naming a very famous single painting has a real chance of producing something close to it, because that painting appears in the training data thousands of times. A prompt naming a living illustrator with a modest online presence usually produces a loose imitation of their style rather than a copy of any one work, which raises a different question, since style is not protected by copyright in most jurisdictions while a specific reproduction is.\n\n**\"The model cannot copy\" is not a safe thing to tell a client.** The honest statement is that copying is rare, is concentrated in heavily duplicated images, and is your responsibility to check when the output will be published. The check is cheap: reverse image search the result. Google Lens, TinEye and Yandex are free, take fifteen seconds, and will catch the poster or stock photo that came back nearly intact.\n\n## Faces, and the sharper version of the problem\n\nThe same duplication effect applies to people. Individuals who appear in the training scrape thousands of times (actors, politicians, anyone with a heavy image presence) can be produced recognisably by name. Individuals who appear a few times generally cannot. This is why the practical risk of a model generating an identifiable private person by accident is low, and why the risk of generating a public figure in a fabricated situation is high enough that most services block it by name.\n\nThe limitation nobody has solved: you cannot inspect a model to find out what it memorised. There is no index to query. The only method available is the one the researchers used (generate a great deal and compare against the training set) and that requires access to the training set, which most commercial models do not publish. So for a closed model, nobody outside the lab can tell you what it holds. That is worth saying out loud when someone offers you an indemnity based on a claim about training data you cannot verify.\n\nOne more distinction is worth keeping straight, because the two get argued as though they were one thing. Reproducing a specific image is a copyright question with a fairly clear shape in most countries. Reproducing a *style* is not: style as such is generally outside copyright, which is why a great deal of the anger about these systems does not map onto a cause of action, and why several artists' claims have been reframed around trademark, passing off or contract instead. That is covered properly in the final module. What the memorisation evidence settles is only the narrow question: near-exact copies are possible, they are rare, and they cluster on duplicates."},"check":{"question":"A generated image of a famous album cover comes back near-identical to the original. Which explanation fits the published evidence?","options":[{"text":"The model contains a compressed copy of its entire training set, retrieved when the prompt matches closely enough.","correct":false,"tempting":"Contradicts the parameter arithmetic; near-exact recovery is confined to a small set of heavily duplicated images, not available for the corpus at large."},{"text":"The generation pipeline silently performs a web search and blends retrieved results into the output.","correct":false,"tempting":"No such retrieval step exists in a standard diffusion pipeline; the image is produced from noise and weights alone."},{"text":"The album cover appeared many times in the training data, so learning that specific mapping reduced the training loss.","correct":true},{"text":"The prompt was long enough to exceed the encoder's token limit, and when conditioning is truncated the pipeline falls back on the nearest cached exemplar it holds for that subject.","correct":false,"tempting":"Invents a cache; truncation drops tokens and changes what is generated, but there is nothing to fall back on."}]},"prev":{"slug":"not-only-diffusion","title":"Diffusion is not the only way","url":"https://addaly.com/learn/making-things-with-ai/not-only-diffusion"},"next":{"slug":"writing-the-prompt","title":"Writing a prompt that gets what you meant","url":"https://addaly.com/learn/making-things-with-ai/writing-the-prompt"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'What the model does and does not retain', in Making Things with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/making-things-with-ai/what-the-model-retains (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"What the model does and does not retain","courseTitle":"Making Things with AI","module":{"index":1,"slug":"how-the-picture-gets-made","title":"How the picture gets made"},"answer":null,"keyIdea":"A diffusion model stores a compressed statistical summary rather than a library of images, but images duplicated many times in the training data can be reproduced almost exactly, and the measured rate is small but not zero.","hero":{"kind":"plate","image":null,"alt":null,"caption":null},"blocks":[{"t":"h2","id":"the-size-argument-and-why-it-is-not-the-whole-answer","runs":[{"text":"The size argument, and why it is not the whole answer"}]},{"t":"p","runs":[{"text":"The most-repeated defence of these systems is arithmetic. Stable Diffusion 1.5 has roughly 860 million parameters, about 2 gigabytes on disk in half precision. It was trained on billions of images. If it stored them, it would be storing each in a fraction of a byte, which is impossible. Therefore it cannot contain the training images."}]},{"t":"p","runs":[{"text":"The arithmetic is right and the conclusion is too strong. Average compression across the whole set is not the same as compression of any particular item. A model can be an extreme lossy summary of nearly everything and still hold a handful of specific images almost exactly: precisely the ones it saw thousands of times."}]},{"t":"h2","id":"what-the-measurements-say","runs":[{"text":"What the measurements say"}]},{"t":"p","runs":[{"text":"This has been tested rather than argued. The best-known study, by Carlini and colleagues in 2023, took Stable Diffusion, selected the training captions with the most duplicated images, and generated a very large number of samples (on the order of 175 million) checking each against the training set."}]},{"t":"p","runs":[{"text":"They recovered roughly a hundred near-exact copies. That is a small number against 175 million generations, and it is not zero. Every recovered image shared one property: it appeared many times in the training data, typically hundreds of times, usually because it was a stock photo, a film poster, a book cover or a widely reposted meme."}]},{"t":"p","runs":[{"text":"The mechanism is straightforward once you have the earlier lessons. Training reduces prediction error. An image seen once contributes a nudge that is averaged away among millions of others. An image seen a thousand times, with the same caption, becomes a reliable low-error target: the model can lower its loss by learning that specific mapping. Memorisation is not a bug in the architecture; it is what optimisation does with duplicates."}]},{"t":"h2","id":"the-consequences-you-should-carry","runs":[{"text":"The consequences you should carry"}]},{"t":"p","runs":[{"text":"Deduplication is the fix, and it is now standard.","b":true},{"text":" Later training runs remove near-duplicate images before training, which drops the memorisation rate substantially. When a lab says its dataset was deduplicated, this is the risk it is talking about."}]},{"t":"p","runs":[{"text":"Named artists and named works behave differently from styles.","b":true},{"text":" A prompt naming a very famous single painting has a real chance of producing something close to it, because that painting appears in the training data thousands of times. A prompt naming a living illustrator with a modest online presence usually produces a loose imitation of their style rather than a copy of any one work, which raises a different question, since style is not protected by copyright in most jurisdictions while a specific reproduction is."}]},{"t":"p","runs":[{"text":"”The model cannot copy” is not a safe thing to tell a client.","b":true},{"text":" The honest statement is that copying is rare, is concentrated in heavily duplicated images, and is your responsibility to check when the output will be published. The check is cheap: reverse image search the result. Google Lens, TinEye and Yandex are free, take fifteen seconds, and will catch the poster or stock photo that came back nearly intact."}]},{"t":"h2","id":"faces-and-the-sharper-version-of-the-problem","runs":[{"text":"Faces, and the sharper version of the problem"}]},{"t":"p","runs":[{"text":"The same duplication effect applies to people. Individuals who appear in the training scrape thousands of times (actors, politicians, anyone with a heavy image presence) can be produced recognisably by name. Individuals who appear a few times generally cannot. This is why the practical risk of a model generating an identifiable private person by accident is low, and why the risk of generating a public figure in a fabricated situation is high enough that most services block it by name."}]},{"t":"p","runs":[{"text":"The limitation nobody has solved: you cannot inspect a model to find out what it memorised. There is no index to query. The only method available is the one the researchers used (generate a great deal and compare against the training set) and that requires access to the training set, which most commercial models do not publish. So for a closed model, nobody outside the lab can tell you what it holds. That is worth saying out loud when someone offers you an indemnity based on a claim about training data you cannot verify."}]},{"t":"p","runs":[{"text":"One more distinction is worth keeping straight, because the two get argued as though they were one thing. Reproducing a specific image is a copyright question with a fairly clear shape in most countries. Reproducing a "},{"text":"style","i":true},{"text":" is not: style as such is generally outside copyright, which is why a great deal of the anger about these systems does not map onto a cause of action, and why several artists’ claims have been reframed around trademark, passing off or contract instead. That is covered properly in the final module. What the memorisation evidence settles is only the narrow question: near-exact copies are possible, they are rare, and they cluster on duplicates."}]}],"check":{"question":[{"text":"A generated image of a famous album cover comes back near-identical to the original. Which explanation fits the published evidence?"}],"options":[{"text":[{"text":"The model contains a compressed copy of its entire training set, retrieved when the prompt matches closely enough."}],"correct":false,"tempting":[{"text":"Contradicts the parameter arithmetic; near-exact recovery is confined to a small set of heavily duplicated images, not available for the corpus at large."}]},{"text":[{"text":"The generation pipeline silently performs a web search and blends retrieved results into the output."}],"correct":false,"tempting":[{"text":"No such retrieval step exists in a standard diffusion pipeline; the image is produced from noise and weights alone."}]},{"text":[{"text":"The album cover appeared many times in the training data, so learning that specific mapping reduced the training loss."}],"correct":true,"tempting":null},{"text":[{"text":"The prompt was long enough to exceed the encoder’s token limit, and when conditioning is truncated the pipeline falls back on the nearest cached exemplar it holds for that subject."}],"correct":false,"tempting":[{"text":"Invents a cache; truncation drops tokens and changes what is generated, but there is nothing to fall back on."}]}],"order":[0,1,3,2],"why":null},"prev":{"slug":"not-only-diffusion","title":"Diffusion is not the only way","minutes":8},"next":{"slug":"writing-the-prompt","title":"Writing a prompt that gets what you meant","minutes":7}}}