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

大型语言模型中涌现且可预测的记忆现象

Emergent and Predictable Memorization in Large Language Models

Booz Allen Hamilton(博思艾伦汉密尔顿);EleutherAI;Yale University(耶鲁大学);Ohio State University(俄亥俄州立大学);Stability AI;University of Maryland, Baltimore County(马里兰大学巴尔的摩县分校)

Stella Biderman, USVSN Sai Prashanth, Lintang Sutawika, Hailey Schoelkopf, Quentin Anthony, Shivanshu Purohit, Edward Raff

AI总结:

本文研究 LLM 训练前的记忆预测问题,通过测量 Pythia 套件并拟合记忆缩放定律,利用低算力试运行外推完整训练时的记忆序列,并给出等算力下提升召回率的建议。

摘要:

记忆,即大型语言模型(LLM)逐字输出其训练数据中完整序列的倾向,是安全部署语言模型的一个关键隐患。尤其重要的是,必须尽量降低模型对敏感数据点(例如包含个人身份信息(PII)的数据点)的记忆。此类不良记忆的普遍存在会给模型训练者带来问题,甚至可能导致不得不弃用一个原本功能正常的模型。因此,我们试图通过外推较低算力试运行的记忆行为,在大型模型完整训练之前预测哪些序列会被记忆。我们测量了 Pythia 模型套件的记忆情况,并绘制了用于预测记忆的缩放定律,从而能够给出等算力建议,以最大化此类预测的可靠性(召回率)。此外,我们还进一步提出了关于记忆分数在不同模型和数据之间分布的新发现。我们在 https://github.com/EleutherAI/pythia 发布了复现本文结果所需的全部代码和数据。

英文摘要:

Memorization, or the tendency of large language models (LLMs) to output entire sequences from their training data verbatim, is a key concern for safely deploying language models. In particular, it is vital to minimize a model's memorization of sensitive datapoints such as those containing personal identifiable information (PII). The prevalence of such undesirable memorization can pose issues for model trainers, and may even require discarding an otherwise functional model. We therefore seek to predict which sequences will be memorized before a large model's full train-time by extrapolating the memorization behavior of lower-compute trial runs. We measure memorization of the Pythia model suite and plot scaling laws for forecasting memorization, allowing us to provide equi-compute recommendations to maximize the reliability (recall) of such predictions. We additionally provide further novel discoveries on the distribution of memorization scores across models and data. We release all code and data necessary to reproduce the results in this paper at https://github.com/EleutherAI/pythia

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

↑