测试发现生产级大模型仍可提取受版权保护的书籍内容。
Extracting books from production language models
- 用两阶段方法探测模型能否输出训练数据,包括漏洞利用和持续提示。
- 部分模型如Claude 3.7 Sonnet可近乎原样输出整本书(nv-recall达95.8%)。
- 即使有安全防护,仍有版权文本被提取风险,适合关注AI版权问题者阅读。
关于大语言模型与版权的诸多未决法律问题聚焦于记忆化:模型权重中是否编码了特定训练数据,以及这些数据能否在输出中被提取。尽管普遍认为大模型很少记忆训练数据,但近期研究显示,开放权重模型中可提取大量受版权保护的文本。然而,对于实施了安全措施的生产级大模型,类似提取是否可行仍未知。本文采用两阶段流程进行研究:(1) 初步探测以测试提取可行性,有时使用Best-of-N(BoN)漏洞攻击;(2) 迭代式续写提示尝试提取整本书。我们在四款生产级大模型——Claude 3.7 Sonnet、GPT-4.1、Gemini 2.5 Pro 和 Grok 3 上评估该方法,并通过基于块的最长公共子串近似(nv-recall)计算提取成功率。不同配置下,提取结果各异。在第一阶段探测中,Gemini 2.5 Pro 和 Grok 3 无需漏洞攻击即可提取文本(例如《哈利·波特与魔法石》的 nv-recall 分别为 76.8% 和 70.3%),而 Claude 3.7 Sonnet 与 GPT-4.1 需要漏洞攻击。某些情况下,经过漏洞攻击的 Claude 3.7 Sonnet 可近乎原文输出整本书(nv-recall=95.8%)。GPT-4.1 需要约 20 倍更多 BoN 尝试,最终拒绝继续生成(nv-recall=4.0%)。总体表明,即便有模型和系统级防护,生产级大模型仍存在(受版权保护)训练数据被提取的风险。
原文摘要 · Abstract (English)
Many unresolved legal questions over LLMs and copyright center on memorization: whether specific training data have been encoded in the model's weights during training, and whether those memorized data can be extracted in the model's outputs. While many believe that LLMs do not memorize much of their training data, recent work shows that substantial amounts of copyrighted text can be extracted from open-weight models. However, it remains an open question if similar extraction is feasible for production LLMs, given the safety measures these systems implement. We investigate this question using a two-phase procedure: (1) an initial probe to test for extraction feasibility, which sometimes uses a Best-of-N (BoN) jailbreak, followed by (2) iterative continuation prompts to attempt to extract the book. We evaluate our procedure on four production LLMs -- Claude 3.7 Sonnet, GPT-4.1, Gemini 2.5 Pro, and Grok 3 -- and we measure extraction success with a score computed from a block-based approximation of longest common substring (nv-recall). With different per-LLM experimental configurations, we were able to extract varying amounts of text. For the Phase 1 probe, it was unnecessary to jailbreak Gemini 2.5 Pro and Grok 3 to extract text (e.g, nv-recall of 76.8% and 70.3%, respectively, for Harry Potter and the Sorcerer's Stone), while it was necessary for Claude 3.7 Sonnet and GPT-4.1. In some cases, jailbroken Claude 3.7 Sonnet outputs entire books near-verbatim (e.g., nv-recall=95.8%). GPT-4.1 requires significantly more BoN attempts (e.g., 20X), and eventually refuses to continue (e.g., nv-recall=4.0%). Taken together, our work highlights that, even with model- and system-level safeguards, extraction of (in-copyright) training data remains a risk for production LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。