arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.02671cs.CLcs.AIcs.LG
收藏

从生产语言模型中提取书籍

Extracting books from production language models

Stanford University(斯坦福大学);Yale University(耶鲁大学)

Ahmed Ahmed, A. Feder Cooper, Sanmi Koyejo, Percy Liang

AI总结:

研究通过两阶段方法测试从生产LLM中提取书籍的可行性,发现部分模型可提取受版权保护文本,但需不同劫持策略,揭示生产LLM存在训练数据泄露风险。

摘要:

许多关于大型语言模型(LLM)和版权的未解决法律问题集中在记忆方面:特定训练数据是否在模型的权重中被编码,以及这些记忆的数据是否能从模型的输出中提取出来。虽然许多人认为LLM并不记忆大量训练数据,但最近的研究表明,可以从开放式权重模型中提取大量受版权保护的文本。然而,仍存在一个开放性问题,即类似提取是否对生产LLM可行,鉴于这些系统实施了安全措施。我们通过两阶段程序来研究这个问题:(1)初步探测以测试提取可行性,这有时会使用最佳N(BoN)劫持,随后是(2)迭代延续提示以尝试提取书籍。我们在四个生产LLM上评估了我们的程序——Claude 3.7 Sonnet、GPT-4.1、Gemini 2.5 Pro和Grok 3,并通过基于块的最长公共子串近似值(nv-recall)计算的分数来衡量提取成功率。通过不同的每LLM实验配置,我们能够提取不同量的文本。在第一阶段探测中,对于Gemini 2.5 Pro和Grok 3来说,无需劫持即可提取文本(例如,Harry Potter and the Sorcerer's Stone的nv-recall分别为76.8%和70.3%),而对于Claude 3.7 Sonnet和GPT-4.1则需要劫持。在某些情况下,被劫持的Claude 3.7 Sonnet的输出几乎逐字完整地提取了整本书(例如,nv-recall=95.8%)。GPT-4.1需要显著更多的BoN尝试(例如,20倍),并最终拒绝继续(例如,nv-recall=4.0%)。综上所述,我们的工作表明,即使在模型和系统层面有安全措施,提取(受版权保护)训练数据仍对生产LLM构成风险。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑