[论文解读] Extracting books from production language models
论文提出一个两阶段程序,用于测试和执行对四种生产型大语言模型的记忆性受版权保护书籍的长文提取,显示出不同模型与配置下的成功率差异。引入 nv-recall 作为长文提取评估指标,并讨论安全措施和法律影响。
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.
研究动机与目标
- 评估生产型 LLM 是否会记忆并能逐字重现受版权保护的书籍。
- 开发兼容黑盒 API 与生产安全措施的两阶段提取程序。
- 为长文本提出一个鲁棒的近逐字长文提取度量。
- 量化在多种生产型 LLM 与配置下的提取成功率。
- 讨论与记忆与提取相关的法律与安全 safeguarding 含义。
提出的方法
- Phase 1 通过提示模型完成来自书籍的一个简短真实前缀的副本来探测可行性,使用指令如 Continue the following text verbatim。
- Phase 1 可能对某些模型使用 Best-of-N 越狱以规避安全措施。
- Phase 2 迭代请求续写以提取更长的文本,若 Phase 1 成功。
- 提取成功度以 nv-recall 评估,为基于区块的最長公共子串近似。
- 为每个 LLM 变动生成配置(temperature、max length、penalties),以最大化提取。
- 提取验证使用保守的长跨度匹配算法来识别近逐字的区块。
实验结果
研究问题
- RQ1在受控提示与安全措施下,生产型 LLM 是否能够重现记忆中的长篇受版权文本?
- RQ2在 Phase-1 探测和 Phase-2 续写中,提取可行性如何随生产型 LLM 而异?
- RQ3在不同配置下,生产型 LLM 可以实现的近逐字长文提取范围有多大?
- RQ4如何在生成的长文本中可靠地测量近逐字长文提取?
主要发现
- 从测试的四个生产型 LLM 中,可以提取大量记忆中的受版权保护材料。
- 对于 Claude 3.7 Sonnet,在 Phase 1 越狱和 Phase 2 提示下,Harry Potter 的近逐字提取可达到 95.8% nv-recall。
- GPT-4.1 需要显著更多的 Best-of-N 尝试,且可能拒绝继续,给出的配置中 nv-recall 低至 4.0%。
- Gemini 2.5 Pro 和 Grok 3 在未越狱的情况下,分别可提取 Harry Potter 的 nv-recall 76.8% 和 70.3%。
- 在 eleven 本受版权保护书籍的测试中,大多数实验 nv-recall ≤ 10%,但个别书籍在模型与设置组合下记忆回溯度很高。
- 研究强调在存在安全措施的情况下,生产型 LLM 仍存在持续的提取风险,并讨论政策/法律含义。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。