MemHunter: 在大规模数据集上实现LLM的记忆检测的自动化与可验证方法
MemHunter: Automated and Verifiable Memorization Detection at Dataset-scale in LLMs
AI总结:
MemHunter通过训练记忆诱导模型并利用假设检验,在数据集层面高效检测LLM的记忆行为,提升隐私风险评估能力。
摘要:
大型语言模型(LLM)已被证明能够记忆并复现其训练数据中的内容,这引发了重大隐私问题,尤其是在网络级数据集的情况下。现有的记忆检测方法主要是针对单个样本的,依赖于人工设计或离散优化的记忆诱导提示,这些提示是按样本单独生成的,这在数据集层面的检测中变得不切实际,因为遍历所有样本的计算成本过高。在现实场景中,数据所有者可能需要验证一个易受攻击的LLM是否记忆了他们的数据集,特别是如果LLM可能未经许可从网络上收集了这些数据。为此,我们介绍了MemHunter,它训练了一个记忆诱导的LLM,并利用假设检验来高效地在数据集层面检测记忆,而无需样本特定的记忆诱导。在Pythia和Llama等模型上的实验表明,MemHunter在受限时间资源下可以提取出比现有方法多高达40%的训练数据,并且当作为插件集成时,可以将搜索时间减少高达80%。关键的是,MemHunter是首个能够在数据集层面进行记忆检测的方法,为评估由大规模数据集驱动的LLM的隐私风险提供了关键工具。
英文摘要:
Large language models (LLMs) have been shown to memorize and reproduce content from their training data, raising significant privacy concerns, especially with web-scale datasets. Existing methods for detecting memorization are primarily sample-specific, relying on manually crafted or discretely optimized memory-inducing prompts generated on a per-sample basis, which become impractical for dataset-level detection due to the prohibitive computational cost of iterating through all samples. In real-world scenarios, data owners may need to verify whether a susceptible LLM has memorized their dataset, particularly if the LLM may have collected the data from the web without authorization. To address this, we introduce MemHunter, which trains a memory-inducing LLM and employs hypothesis testing to efficiently detect memorization at the dataset level, without requiring sample-specific memory inducing. Experiments on models like Pythia and Llama demonstrate that MemHunter can extract up to 40% more training data than existing methods under constrained time resources and reduce search time by up to 80% when integrated as a plug-in. Crucially, MemHunter is the first method capable of dataset-level memorization detection, providing a critical tool for assessing privacy risks in LLMs powered by large-scale datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。