arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.17514cs.CLcs.AIcs.CRcs.LG
收藏

语言模型可能会逐字完成它们未被明确训练过的文本

Language Models May Verbatim Complete Text They Were Not Explicitly Trained On

Google(谷歌);Google DeepMind(谷歌DeepMind);Stanford University(斯坦福大学)

Ken Ziyu Liu, Christopher A. Choquette-Choo, Matthew Jagielski, Peter Kairouz, Sanmi Koyejo, Percy Liang, Nicolas Papernot

AI总结:

本研究揭示基于n-gram的LLM训练数据成员资格定义可被操纵,通过重训练和对抗数据集证明补全测试在非成员序列上仍成功,凸显该定义忽视辅助信息的缺陷。

摘要:

当前一个重要问题是,给定的文本是否被用于训练大型语言模型(LLM)。通常采用一种“补全”测试:检查LLM是否能补全一段足够复杂的文本。然而,这需要一个基于事实的成员资格定义;最常见的是,根据目标文本与数据集中任何文本之间的n-gram重叠来定义成员资格。在本研究中,我们证明这种基于n-gram的成员资格定义可以被有效操纵。我们研究了序列对于给定n值为“非成员”的场景,并发现补全测试仍然成功。我们通过从头重新训练LLM,并移除所有被补全的训练样本,发现了这一现象的许多自然案例;这些案例包括完全重复、近似重复,甚至短重叠。它们表明,很难为成员资格定义找到一个单一可行的n值选择。利用这些见解,我们设计了对抗性数据集,这些数据集可以在不包含目标序列的情况下,对于任何合理的n值,导致给定的目标序列被补全。我们的发现凸显了n-gram成员资格的不足,表明成员资格定义未能考虑到训练算法可用的辅助信息。

英文摘要:

An important question today is whether a given text was used to train a large language model (LLM). A \emph{completion} test is often employed: check if the LLM completes a sufficiently complex text. This, however, requires a ground-truth definition of membership; most commonly, it is defined as a member based on the $n$-gram overlap between the target text and any text in the dataset. In this work, we demonstrate that this $n$-gram based membership definition can be effectively gamed. We study scenarios where sequences are \emph{non-members} for a given $n$ and we find that completion tests still succeed. We find many natural cases of this phenomenon by retraining LLMs from scratch after removing all training samples that were completed; these cases include exact duplicates, near-duplicates, and even short overlaps. They showcase that it is difficult to find a single viable choice of $n$ for membership definitions. Using these insights, we design adversarial datasets that can cause a given target sequence to be completed without containing it, for any reasonable choice of $n$. Our findings highlight the inadequacy of $n$-gram membership, suggesting membership definitions fail to account for auxiliary information available to the training algorithm.

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

↑