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

缓解语言模型中的记忆现象

Mitigating Memorization In Language Models

University of Chicago(芝加哥大学);Argonne National Laboratory(阿贡国家实验室);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);Dartmouth College(达特茅斯学院);International Computer Science Institute(国际计算机科学研究所);University of California, Berkeley(加州大学伯克利分校)

Mansi Sakarvadia, Aswathy Ajith, Arham Khan, Nathaniel Hudson, Caleb Geniesse, Kyle Chard, Yaoqing Yang, Ian Foster, Michael W. Mahoney

AI总结:

本文研究了缓解语言模型记忆现象的方法,提出了基于正则化、微调和机器遗忘的多种策略,并引入了TinyMem模型套件。实验表明,基于遗忘的方法在速度和效果上均优于其他方法,特别是新提出的BalancedSubnet方法在移除记忆信息的同时保持了任务性能。

摘要:

语言模型(LMs)能够“记忆”信息,即以某种方式将训练数据编码在其权重中,使得推理时的查询可能导致逐字复现这些数据。这种提取训练数据的能力可能会带来问题,例如当数据是私有或敏感的时候。在这项工作中,我们研究了缓解记忆现象的方法:三种基于正则化的方法、三种基于微调的方法和十一种基于机器遗忘的方法,其中后五种是我们引入的新方法。我们还引入了TinyMem,这是一套小型且计算高效的语言模型,用于快速开发和评估记忆缓解方法。我们证明,使用TinyMem开发的缓解方法可以成功应用于生产级语言模型,并通过实验得出以下结论:基于正则化的缓解方法速度慢且在抑制记忆方面效果不佳;基于微调的方法在抑制记忆方面有效,但成本过高,尤其是在需要保持较高准确率时;而基于遗忘的方法速度更快且更有效,允许在推理之前精确定位并移除语言模型权重中记忆的信息。我们特别指出,我们提出的遗忘方法BalancedSubnet在移除记忆信息的同时保留目标任务性能方面优于其他缓解方法。

英文摘要:

Language models (LMs) can "memorize" information, i.e., encode training data in their weights in such a way that inference-time queries can lead to verbatim regurgitation of that data. This ability to extract training data can be problematic, for example, when data are private or sensitive. In this work, we investigate methods to mitigate memorization: three regularizer-based, three finetuning-based, and eleven machine unlearning-based methods, with five of the latter being new methods that we introduce. We also introduce TinyMem, a suite of small, computationally-efficient LMs for the rapid development and evaluation of memorization-mitigation methods. We demonstrate that the mitigation methods that we develop using TinyMem can successfully be applied to production-grade LMs, and we determine via experiment that: regularizer-based mitigation methods are slow and ineffective at curbing memorization; fine-tuning-based methods are effective at curbing memorization, but overly expensive, especially for retaining higher accuracies; and unlearning-based methods are faster and more effective, allowing for the precise localization and removal of memorized information from LM weights prior to inference. We show, in particular, that our proposed unlearning method BalancedSubnet outperforms other mitigation methods at removing memorized information while preserving performance on target tasks.

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

↑