Extracting Books from Production-Grade Language ModelsExtracting books from production language models
Translation in progress — untranslated text is omitted.
The researchers propose a two-stage pipeline to extract copyrighted book text from four production-grade LLMs: Claude 3.7 Sonnet, GPT-4.1, Gemini 2.5 Pro, and Grok 3. The first stage uses a short excerpt from the book's beginning to probe whether continuation is possible; for Claude 3.7 Sonnet and GPT-4.1, a Best-of-N jailbreak is needed, while Gemini 2.5 Pro and Grok 3 comply directly. The second stage repeatedly requests continuations to complete long-form extraction. Measured by approximate verbatim recall, the jailbroken Claude 3.7 Sonnet achieves 95.8% on Harry Potter and the Philosopher's Stone, Gemini 2.5 Pro and Grok 3 reach 76.8% and 70.3% respectively, and GPT-4.1 only 4.0%, refusing to continue at the end of the first chapter. The study tested 13 books, 11 of which are copyrighted in the United States; the authors notified the relevant vendors in September 2025 and disclosed the results after a 90-day disclosure period.
- Production LLMs have guardrails; whether long copyrighted books can be extracted near-verbatim remains unclear. The authors consider this relevant to whether training data is encoded into the weights, and whether outputs constitute identifiable copying.
- Phase 1 uses a short prefix from the beginning of the book plus verbatim continuation instructions; Claude 3.7 Sonnet and GPT-4.1 use Best-of-N, while Gemini 2.5 Pro and Grok 3 comply directly. After s is not below 0.6, continuation is repeated, then nv-recall is calculated using near-verbatim blocks of at least 100 words.
- Figure 1 Harry Potter nv-recall: Claude 95.8%, Gemini 76.8%, Grok 70.3%, GPT-4.1 4.0%. Table 11 correspondingly 0.923, 0.740, 0.690, 0.039. The authors state most experiments did not exceed 10%.
- The authors say the extraction underestimates memorization, tests only fourteen books, the pipeline is configured per model, and no cross-model evaluation is done. Main results are mostly single runs; The Duchess War and the 2025 negative control failed in Phase 1.
The paper provides the concrete process and success rates for extracting copyrighted books from four production-grade LLMs, which can be used to assess the actual strength of memorization and output protection.
Related papers
- Estimating near-verbatim extraction risk in language models with decoding-constrained beam searchAnalysis / interpretabilityarXiv