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

负偏好优化:从灾难性崩溃到有效遗忘

Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning

UC Berkeley(加州大学伯克利分校);Salesforce AI Research(Salesforce AI研究院)

Ruiqi Zhang, Licong Lin, Yu Bai, Song Mei

AI总结:

本文提出Negative Preference Optimization(NPO),一种受对齐启发的LLM遗忘方法,通过减缓灾难性崩溃进程,在遗忘不良数据与保持模型实用性间取得更好平衡,并在TOFU基准上首次实现遗忘50%以上训练数据的合理结果。

摘要:

大型语言模型(LLMs)在预训练期间通常会记忆敏感、私有或受版权保护的数据。LLM unlearning(LLM遗忘)旨在消除不良数据对预训练模型的影响,同时保持模型在其他任务上的实用性。最近提出了几种实用的LLM遗忘方法,主要基于不良数据损失上的梯度上升(GA)。然而,在某些遗忘任务上,这些方法要么无法有效遗忘目标数据,要么遭遇灾难性崩溃——模型实用性急剧退化。在本文中,我们提出了Negative Preference Optimization(NPO),这是一种受对齐启发的简单方法,能够高效且有效地遗忘目标数据集。我们从理论上证明,通过最小化NPO损失走向灾难性崩溃的进程比GA慢指数级。通过对合成数据和基准TOFU数据集的实验,我们证明基于NPO的方法在遗忘不良数据和保持模型实用性之间取得了更好的平衡。我们还观察到,基于NPO的方法比基于GA的方法生成更合理的输出,后者的输出通常是乱码。值得注意的是,在TOFU上,基于NPO的方法是首批在遗忘50%(或更多)训练数据时取得合理遗忘结果的,而现有方法在遗忘10%训练数据时就已经很困难了。

英文摘要:

Large Language Models (LLMs) often memorize sensitive, private, or copyrighted data during pre-training. LLM unlearning aims to eliminate the influence of undesirable data from the pre-trained model while preserving the model's utilities on other tasks. Several practical methods have recently been proposed for LLM unlearning, mostly based on gradient ascent (GA) on the loss of undesirable data. However, on certain unlearning tasks, these methods either fail to effectively unlearn the target data or suffer from catastrophic collapse -- a drastic degradation of the model's utilities. In this paper, we propose Negative Preference Optimization (NPO), a simple alignment-inspired method that could efficiently and effectively unlearn a target dataset. We theoretically show that the progression toward catastrophic collapse by minimizing the NPO loss is exponentially slower than GA. Through experiments on synthetic data and the benchmark TOFU dataset, we demonstrate that NPO-based methods achieve a better balance between unlearning the undesirable data and maintaining the model's utilities. We also observe that NPO-based methods generate more sensible outputs than GA-based methods, whose outputs are often gibberish. Remarkably, on TOFU, NPO-based methods are the first to achieve reasonable unlearning results in forgetting 50% (or more) of the training data, whereas existing methods already struggle with forgetting 10% of training data.

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

↑