← Lab /Security & privacy

Up to 15% of Chatbot Output Contains 50-character Verbatim Snippets from the Web

Popular chat models reproduce up to 15% of their generated text as verbatim 50-character snippets from internet sources under benign prompts.

Security & privacy SPY Lab (ETH Zurich) 18 Nov 2024 Measurement Real-world evidence

Published as “Your LLM Chats Might Leak Training Data”

Why it matters

Even non-adversarial use of chat models can leak copyrighted or personal text, exposing gaps in current safeguards.

Summary

The researchers measured how often large language models output verbatim text from their training data when given natural, non-adversarial prompts. They found that up to 15% of generated tokens are moderate-length (≥50 characters) snippets that appear exactly on the internet, with factual tasks reaching almost 30%. Certain models, such as Claude 3 Opus, reproduced very long passages (over 1,000 characters). Human-written responses under the same prompts contain far fewer such snippets, though some human texts also show plagiarism. The evidence is based on systematic substring matching against an internet snapshot, but the authors note that short matches may be common idioms and that the 50-character cutoff is arbitrary.

What they found 2

  1. Up to 15% of generated text consists of verbatim 50-character snippets from the internet.

    “Our results show that a significant fraction (up to 15%) of the text generated by popular chat models is made up of moderate snippets (~50 characters) that can be found verbatim on the Internet.”

  2. Factual (expository) tasks yield about 30% verbatim snippet coverage.

    “When we prompt LLMs to generate encyclopedic articles, we find that almost 30% of the generated text consists of at least 50-character snippets found on the Internet.”

Caveats 5

  • If we look at text fragments that are too short, we would expect to find most of them somewhere on the Internet. ... we focus on text fragments of at least 50 characters.
  • Humans show instances of blatant plagiarism that are not matched by LLMs.
  • This choice of 50 characters is somewhat arbitrary, but we find it to be a sweet spot where we start to find interesting verbatim matches that can go beyond simple idioms and common phrases.
  • We use a snapshot of the Internet up to 2023 as the reference corpus for matching.
  • In our paper, we also discount overlaps between the snippet and the prompt, but we consider full snippets for simplicity here.

What’s new here 4

  • First large-scale measurement of non-adversarial training-data leakage across multiple chat models.
  • Quantifies leakage rates for different task categories (factual vs. creative).
  • Identifies extreme long-tail cases where entire articles are stitched from memorized sources.
  • Compares model leakage to human-written text under the same prompts.