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

探索损失重加权标准以增强 LLM 机器遗忘

Exploring Criteria of Loss Reweighting to Enhance LLM Unlearning

Puning Yang, Qizhou Wang, Zhuo Huang, Tongliang Liu, Chengqi Zhang, Bo Han

AI总结:

本文明确了损失重加权在LLM遗忘中的饱和度与重要性两个目标,通过实证分析发现饱和度优于重要性,并提出结合两者优势的SatImp方法以提升遗忘效果。

摘要:

损失重加权在大型语言模型(LLM)的机器遗忘中展现出显著优势。然而,其确切功能尚不明确,最优策略仍是一个悬而未决的问题,从而阻碍了对现有方法的理解与改进。在本文中,我们确定了损失重加权的两个不同目标,即饱和度(Saturation)和重要性(Importance)——前者表明应强调那些优化不足的数据,而后者则强调对损失最小化最具影响力的关键数据。为了研究它们的有效性,我们为每个目标设计了特定的重加权策略,并评估了它们对遗忘的各自影响。我们在公认的基准上进行了广泛的实证分析,并总结了以下重要观察结果:(i) 饱和度比基于重要性的重加权更能提升有效性,且两者的结合能带来额外的改进。(ii) 饱和度通常为似然度较低的数据分配较低的权重,而基于重要性的重加权则相反。(iii) 遗忘的有效性也在很大程度上受权重分布的平滑度和粒度影响。基于这些发现,我们提出了 SatImp,这是一种结合了饱和度和重要性优势的简单重加权方法。在广泛数据集上的实证结果验证了我们方法的有效性,有望弥合现有研究空白并指明未来研究方向。我们的代码可在 https://github.com/tmlr-group/SatImp 获取。

英文摘要:

Loss reweighting has shown significant benefits for machine unlearning with large language models (LLMs). However, their exact functionalities are left unclear and the optimal strategy remains an open question, thus impeding the understanding and improvement of existing methodologies. In this paper, we identify two distinct goals of loss reweighting, namely, Saturation and Importance -- the former indicates that those insufficiently optimized data should be emphasized, while the latter stresses some critical data that are most influential for loss minimization. To study their usefulness, we design specific reweighting strategies for each goal and evaluate their respective effects on unlearning. We conduct extensive empirical analyses on well-established benchmarks, and summarize some important observations as follows: (i) Saturation enhances efficacy more than importance-based reweighting, and their combination can yield additional improvements. (ii) Saturation typically allocates lower weights to data with lower likelihoods, whereas importance-based reweighting does the opposite. (iii) The efficacy of unlearning is also largely influenced by the smoothness and granularity of the weight distributions. Based on these findings, we propose SatImp, a simple reweighting method that combines the advantages of both saturation and importance. Empirical results on extensive datasets validate the efficacy of our method, potentially bridging existing research gaps and indicating directions for future research. Our code is available at https://github.com/tmlr-group/SatImp.

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

↑