arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.08134cs.CL
收藏

多样本复现(MSR)提示

Many-Shot Regurgitation (MSR) Prompting

Rice University(莱斯大学)

Shashank Sonkar, Richard G. Baraniuk

AI总结:

本研究提出MSR提示这一黑盒成员推理攻击框架,通过构建模拟对话提示诱导大语言模型逐字复现内容,结合统计检验验证了模型对训练集中文本的逐字复现频率显著更高。

摘要:

我们提出了Many-Shot Regurgitation(MSR,多样本复现)提示框架,这是一种新型黑盒成员推理攻击框架,用于检测大语言模型(LLM)的逐字内容复现行为。MSR提示的实现方式是将输入文本拆分为多个片段,构建单条包含多轮用户与语言模型模拟对话的提示,以诱导模型输出逐字复现内容。\n我们将MSR提示应用于多种文本来源,包括Wikipedia条目与开放教育资源(OER)教科书,这类文本包含高质量事实性内容且会持续更新。针对每个来源,我们构建了两类数据集:一类是LLM训练过程中大概率接触过的文本(记为$D_{\ m pre}$),另一类由模型训练截止日期之后发布的文档构成(记为$D_{\ m post}$)。\n为量化逐字匹配的发生情况,我们采用最长公共子串算法,统计不同长度阈值下的匹配频次。随后我们使用Cliff's delta、Kolmogorov-Smirnov(KS)距离、Kruskal-Wallis H检验等统计方法,判断$D_{\ m pre}$与$D_{\ m post}$的逐字匹配分布是否存在显著差异。\n研究结果显示,$D_{\ m pre}$与$D_{\ m post}$的逐字匹配分布存在显著差异:当使用LLM(例如GPT系列模型与LLaMA系列模型)处理大概率来自其训练集的文本提示时,逐字复现的频率明显更高。例如,使用GPT-3.5处理Wikipedia条目时,我们观测到$D_{\ m pre}$与$D_{\ m post}$的分布之间存在极大的效应量(Cliff's delta $= -0.984$)与较大的KS距离($0.875$)。我们的结果提供了有力证据,证明当输入文本大概率来自LLM的训练数据时,模型更倾向于复现逐字内容。

英文摘要:

We introduce Many-Shot Regurgitation (MSR) prompting, a new black-box membership inference attack framework for examining verbatim content reproduction in large language models (LLMs). MSR prompting involves dividing the input text into multiple segments and creating a single prompt that includes a series of faux conversation rounds between a user and a language model to elicit verbatim regurgitation. We apply MSR prompting to diverse text sources, including Wikipedia articles and open educational resources (OER) textbooks, which provide high-quality, factual content and are continuously updated over time. For each source, we curate two dataset types: one that LLMs were likely exposed to during training ($D_{\rm pre}$) and another consisting of documents published after the models' training cutoff dates ($D_{\rm post}$). To quantify the occurrence of verbatim matches, we employ the Longest Common Substring algorithm and count the frequency of matches at different length thresholds. We then use statistical measures such as Cliff's delta, Kolmogorov-Smirnov (KS) distance, and Kruskal-Wallis H test to determine whether the distribution of verbatim matches differs significantly between $D_{\rm pre}$ and $D_{\rm post}$. Our findings reveal a striking difference in the distribution of verbatim matches between $D_{\rm pre}$ and $D_{\rm post}$, with the frequency of verbatim reproduction being significantly higher when LLMs (e.g. GPT models and LLaMAs) are prompted with text from datasets they were likely trained on. For instance, when using GPT-3.5 on Wikipedia articles, we observe a substantial effect size (Cliff's delta $= -0.984$) and a large KS distance ($0.875$) between the distributions of $D_{\rm pre}$ and $D_{\rm post}$. Our results provide compelling evidence that LLMs are more prone to reproducing verbatim content when the input text is likely sourced from their training data.

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

↑