arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.03019cs.CLcs.AI
收藏

记忆还是插值?通过输入扰动分析检测大语言模型的记忆现象

Memorization or Interpolation ? Detecting LLM Memorization through Input Perturbation Analysis

ucl.ac.uk(伦敦大学学院)

Albérick Euraste Djiré, Abdoul Kader Kaboré, Earl T. Barr, Jacques Klein, Tegawendé F. Bissyandé

AI总结:

本文提出PEARL框架,通过分析大语言模型对输入扰动的敏感度来检测记忆现象,无需访问模型内部,并在Pythia和GPT 4o上验证了其识别训练数据记忆的有效性。

摘要:

尽管大语言模型(LLMs)通过在海量数据集上训练取得了显著性能,但它们可能表现出令人担忧的行为,例如逐字复现训练数据,而非真正泛化。这种记忆现象引发了对数据隐私、知识产权以及模型评估可靠性的重大关切。本文提出了PEARL,一种用于检测大语言模型记忆现象的新方法。PEARL评估大语言模型性能对输入扰动的敏感程度,从而无需访问模型内部即可实现记忆检测。我们研究了输入扰动如何影响输出的一致性,使我们能够区分真正泛化与记忆。基于在Pythia开放模型上进行的大量实验,我们的发现为识别模型何时只是机械地复述已学信息提供了一个稳健的框架。将PEARL框架应用于GPT 4o模型时,它不仅识别出了对《圣经》经典文本或HumanEval中常见代码的记忆案例,还证明了它能够提供支持性证据,表明某些数据(例如来自《纽约时报》新闻文章的数据)很可能属于给定模型的训练数据。

英文摘要:

While Large Language Models (LLMs) achieve remarkable performance through training on massive datasets, they can exhibit concerning behaviors such as verbatim reproduction of training data rather than true generalization. This memorization phenomenon raises significant concerns about data privacy, intellectual property rights, and the reliability of model evaluations. This paper introduces PEARL, a novel approach for detecting memorization in LLMs. PEARL assesses how sensitive an LLM's performance is to input perturbations, enabling memorization detection without requiring access to the model's internals. We investigate how input perturbations affect the consistency of outputs, enabling us to distinguish between true generalization and memorization. Our findings, following extensive experiments on the Pythia open model, provide a robust framework for identifying when the model simply regurgitates learned information. Applied on the GPT 4o models, the PEARL framework not only identified cases of memorization of classic texts from the Bible or common code from HumanEval but also demonstrated that it can provide supporting evidence that some data, such as from the New York Times news articles, were likely part of the training data of a given model.

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

↑