Memorisation

Memorisation is when an AI model stores pieces of its training data closely enough to reproduce them word for word, which is often called regurgitation.

Models are meant to learn general patterns, not store their training data. But large models also retain some specific passages closely enough to reproduce them exactly. In December 2020 Nicholas Carlini and colleagues showed this with OpenAI's GPT-2: by querying the model, they extracted hundreds of verbatim sequences from its training data, including names, phone numbers and email addresses, chat logs, code and long random identifiers. Some appeared only once in the training data, and larger models were more vulnerable than smaller ones.

Three things make memorisation more likely. A 2022 follow-up by Carlini's group found it grows with the size of the model, with the number of times a passage is repeated in the training data, and with the length of the prompt used to coax it out. Repetition matters most dramatically: another 2022 study found a sequence that appears ten times is generated about 1,000 times more often than one that appears once, which is why removing duplicates from training data cuts memorised output sharply.

Chatbots are not immune. In November 2023 researchers extracted gigabytes of training data from open models such as Pythia and GPT-Neo and semi-open ones such as LLaMA and Falcon, and recovered more than 10,000 training examples from ChatGPT for about $200 of queries. To get past ChatGPT's training as an assistant, they used a prompt that made it diverge from normal conversation, which raised the rate at which it emitted training data about 150 times. They concluded that alignment training does not remove memorisation.

Memorisation matters in law because verbatim output looks like copying. When The New York Times sued OpenAI and Microsoft in December 2023, it cited examples of the companies' models reproducing its articles. OpenAI responded in January 2024 that the regurgitated passages were mostly old articles copied across many other websites and that the Times had used prompts that deliberately manipulated the model. The same mechanism can expose personal data that happened to be in a training set.

In practice, most of what a model writes is not copied, but a small share can be, and it is far more likely for text that appeared many times in the training data. Deduplicating training data reduces the problem without eliminating it.

Common questions

Do large language models memorise their training data?

Partly. They do not store their training data as a database, but research since 2020 has repeatedly extracted verbatim passages from models including GPT-2 and ChatGPT. Memorisation is more likely for larger models and for text repeated many times in the training data.

What is regurgitation in AI?

Regurgitation is a model reproducing a piece of its training data word for word, such as a news article, a book passage or a block of code. It is the visible result of memorisation and a central issue in copyright disputes over AI.

Why does memorisation matter in AI copyright lawsuits?

Because exact reproduction is strong evidence that a work was copied into a model and can come back out. The New York Times cited examples of verbatim output in its December 2023 lawsuit against OpenAI and Microsoft, which OpenAI disputed as the product of manipulated prompts.

Can memorisation be prevented?

It can be reduced. Removing duplicate text from training data cuts memorised output sharply, but researchers have extracted passages that appeared only once in training data, so no current method rules it out entirely.

Finding more

Search for "training data extraction", "LLM memorization", "regurgitation copyright AI" or "extractable memorization" to follow both the research and the legal arguments. The most reliable sources are security and machine learning papers on arXiv that measure memorisation directly, and court filings in the copyright cases, which can be found on public docket sites. Press coverage of lawsuits often reports one side's claims, so check whether a judge has ruled on them.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.