Abstract
Large language models (LLMs) memorize parts of their training data. While memorizing short snippets is essential for fluency and factual recall, models can also reproduce long verbatim sequences when prompted by motivated adversaries. This work investigates "non-adversarial reproduction"—an intermediate regime where models overlap with pretraining data during benign, natural interactions. By analyzing popular conversational models, we find that up to 15% of output text overlaps with internet snippets, with some cases reaching 100% verbatim reproduction. Human-written text shows significantly lower overlap. While prompting for originality can reduce average reproduction, it fails to mitigate worst-case scenarios, highlighting the need for stronger defenses in production environments.
Introduction: The Intermediate Regime of Memorization
The tendency of Large Language Models (LLMs) to memorize training data is well-documented, typically categorized into two extremes: the "natural" memorization of short facts and the "adversarial" extraction of private data through targeted attacks. However, a critical middle ground exists. This paper explores non-adversarial reproduction: the extent to which models regurgitate verbatim snippets during everyday, benign use.
When a user asks for a tutorial or a summary, they often assume the content is original. If the model instead provides a verbatim copy of copyrighted text or code without attribution, it creates significant legal and ethical risks for both the user and the developer.
Methodology
To quantify this phenomenon, the authors define non-adversarial reproduction as any generated substring of at least 50 characters that appears verbatim in a massive index of web content.
The Search Index
Since the training sets for proprietary models like GPT-4 or Claude are not public, the researchers used AUXDATASET—a 10-terabyte crawl of the public internet up to March 2022—as a proxy for training data.
Data Sources
The study utilized several datasets to capture a broad range of interactions:
- Controlled Prompts: 3,696 prompts across 15 tasks (Creative, Expository, and Argumentative).
- Real-World Conversations: Samples from WildChat (58k) and LMSYS-Chat-1M (14k) to observe unscripted behavior.
- Human Baselines: Text from Reddit (
r/WritingPrompts,r/explainlikeimfive) and IMDb reviews for direct comparison.
Key Insights
The "Regurgitation" Gap
A primary finding is that LLMs reproduce significantly more existing text than humans. While humans may occasionally plagiarize (notably in movie reviews), the median overlap for human writing is 0%. In contrast, LLMs consistently show higher median overlap, particularly in technical or factual domains.
Task Susceptibility
Expository tasks—those designed to explain or inform, such as writing a technical tutorial—elicit 3x to 10x more reproduction than creative tasks. Code is especially susceptible; tutorial prompts often trigger the reproduction of long, verbatim blocks of boilerplate code or specific library implementations.
The Long Tail
While the average overlap is approximately 10%, the distribution is long-tailed. In extreme cases, models have been found to reproduce over 1,000 consecutive characters verbatim.
Results and Model Performance
The study evaluated several popular conversational models, finding mean overlap rates between 8% and 15%.
As shown in the results, Claude 3 Opus exhibited the highest rate of reproduction (over 15%), while Gemini 1.5 Flash showed the lowest (approximately 7%). Interestingly, while "originality" prompts (instructing the model to be creative) can reduce the average overlap rate—for instance, bringing Llama 3.1 down from 16% to 6%—they do not eliminate the worst-case long-sequence reproductions.
Discussion and Limitations
The reported reproduction rates are likely a lower bound. Because the 10TB AUXDATASET is only a subset of the data these models were trained on, the true extent of copying is likely higher. Furthermore, the lack of proper attribution when models reproduce existing text complicates the legal landscape.
The authors conclude that relying solely on prompting is insufficient for mitigating data leakage. Developers may need to implement stronger, non-prompt-based defenses, such as output filters, to prevent the unintentional reproduction of training data in production environments.
Summary updated