Exploring Criteria of Loss Reweighting to Enhance LLM Unlearning
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Machine Unlearning | TOFU Forget 10% | Aggregation Score6.484 | 81 | |
| Model Unlearning | TOFU Forget 5% 1.0 | Model Utility6.547 | 60 | |
| Machine Unlearning | TOFU Forget 1% | Aggregation Score44 | 54 | |
| Machine Unlearning | TOFU forget05 1.0 | Model Utility (MU)64 | 53 | |
| Machine Unlearning | TOFU 1.0 (Forget10) | Model Utility (MU)0.63 | 53 | |
| Machine Unlearning | TOFU 1.0 (forget01) | Average Score46 | 53 | |
| Knowledge Unlearning | WMDP bio | Accuracy40.61 | 51 | |
| Knowledge Unlearning | WMDP cyber | Accuracy30.95 | 47 | |
| Machine Unlearning | MUSE NEWS | VerbMem (Df)21.02 | 34 | |
| Machine Unlearning | TOFU 10% forget | -log(FQ)8.959 | 30 |