TL;DR
This paper introduces a novel method to quantify how much copyrighted books are memorized by open-weight language models (LLMs). They found that while most LLMs don't memorize much of any given book, some models, like Llama 3.1 70B, can memorize entire books, even allowing for near-verbatim reconstruction from a small prompt. These findings have significant implications for copyright law, complicating claims from both plaintiffs and defendants.
What Problem Does This Paper Address?
Copyright lawsuits involving large language models (LLMs) often hinge on whether these models "memorize" copyrighted text from their training data. Plaintiffs argue LLMs are essentially copy machines, while defendants claim they only learn abstract statistical correlations. This paper addresses the gap between these polarized views by providing a nuanced, quantitative measure of how LLMs memorize specific books. Existing methods often focus on average extraction rates across random data, failing to capture book-specific memorization, which is crucial for copyright infringement claims.
Methods
The authors extend a probabilistic extraction technique to measure memorization of books. Their approach uses a sliding window across a book to identify "hot-spots" of memorization. For each 100-token sequence (split into a 50-token prefix and a 50-token suffix), they compute the probability ($p_z$) of the LLM generating the exact suffix given the prefix. This "probabilistic extraction" is more robust than greedy decoding, as it accounts for the probabilistic nature of LLM outputs. They validate this method through negative controls (using non-training data and models not trained on copyrighted books) and by varying prefix lengths to ensure their measurements capture true memorization rather than chance generation.
Datasets
- Training Data: The paper primarily uses the Books3 dataset, a large corpus of books known to be included in the training data of several LLMs.
- Evaluation Data: They evaluate on 200 books from the Books3 dataset, including works associated with plaintiffs in copyright lawsuits and a random sample of other books. They also use 4 books published in 2025 (after the training cutoff for some models) as negative controls.
Key Insights and Ideas
- Memorization is book- and model-specific: There's no one-size-fits-all answer to how much LLMs memorize. Memorization varies significantly depending on both the specific LLM and the specific book.
- "Entirely memorized" is a real phenomenon: While rare, some LLMs can memorize entire books to a degree that allows for near-verbatim reconstruction. This challenges the notion that LLMs only learn abstract patterns.
- Probabilistic extraction is key: Moving beyond simple "yes/no" extraction, probabilistic methods reveal the likelihood of memorization, offering a more nuanced view crucial for legal contexts.
- Copyright implications are complex: The findings don't neatly favor plaintiffs or defendants. They complicate fair use arguments for defendants and challenge the feasibility of broad class-action lawsuits for plaintiffs.
Key Results
- Most LLMs don't memorize most books: Across their experiments, the majority of LLMs showed minimal extraction coverage for most books.
- Llama 3.1 70B is a standout: This model demonstrated significantly higher memorization and extraction coverage across many books compared to others.
- "Harry Potter and the Sorcerer's Stone" is highly memorized: Llama 3.1 70B was found to memorize this book almost entirely.
- Near-verbatim reconstruction is possible: Using a short seed prompt (e.g., the first few tokens of the first chapter), they could deterministically generate the entire "Harry Potter and the Sorcerer's Stone" book near-verbatim with Llama 3.1 70B.
- Negative controls validate the method: Experiments with non-training data and models not trained on copyrighted books showed extraction probabilities orders of magnitude lower than the threshold for memorization, confirming the validity of their approach.
Limitations and Future Work
- Limited scope: The study evaluated 200 books out of ~200,000 in Books3, and 14 LLMs. Generalizing these findings to the entire Books3 corpus or all LLMs requires further research.
- Focus on sequences, not whole books: While they identified books that are effectively entirely memorized, their primary claims are about the memorization of specific sequences, not necessarily the entire book as a single, extractable unit.
- "Toothpick" vs. "Monkey" metaphor: The paper acknowledges that LLMs are neither purely deterministic ("toothpick") nor purely random ("monkey"). Their work aims to quantify the probabilistic nature of extraction.
- Future work: The authors suggest further research into lowering the extraction threshold ($T_{min}$), calibrating it per LLM, and exploring the implications for copyright law more deeply. They also note that their recovery method is a preliminary "existence proof" and could be further optimized.
Summary updated