Rethinking LLM Unlearning Objectives: A Gradient Perspective and Go Beyond
Qizhou Wang, Jin Peng Zhou, Zhanke Zhou, Saebyeol Shin, Bo Han, Kilian Q. Weinberger
TL;DR
This work introduces the gradient effect (G-effect) as a unified, gradient-based toolkit to analyze LLM unlearning objectives. It formalizes removal and retention goals and assesses several unlearning strategies—primarily GA and NPO, along with PO and RMU—through their gradient interactions with a model's risk, highlighting where existing methods succeed or cause unintended degradation. The study demonstrates that GA, while effective at erasing targeted knowledge, can markedly harm non_targeted performance, whereas proposed approaches like WGA and TNPO offer better retention while maintaining removal. Evaluations on TOFU benchmarks with two LLMs show that weighting strategies and token-wise weighting can significantly improve the removal-retention balance, with KL regularization emerging as a robust retention aid. Collectively, the G-effect provides actionable insight into unlearning tradeoffs and guides the design of more reliable, scalable unlearning techniques for large language models.
Abstract
Large language models (LLMs) should undergo rigorous audits to identify potential risks, such as copyright and privacy infringements. Once these risks emerge, timely updates are crucial to remove undesirable responses, ensuring legal and safe model usage. It has spurred recent research into LLM unlearning, focusing on erasing targeted undesirable knowledge without compromising the integrity of other, non-targeted responses. Existing studies have introduced various unlearning objectives to pursue LLM unlearning without necessitating complete retraining. However, each of these objectives has unique properties, and no unified framework is currently available to comprehend them thoroughly. To fill the gap, we propose a toolkit of the gradient effect (G-effect), quantifying the impacts of unlearning objectives on model performance from a gradient perspective. A notable advantage is its broad ability to detail the unlearning impacts from various aspects across instances, updating steps, and LLM layers. Accordingly, the G-effect offers new insights into identifying drawbacks of existing unlearning objectives, further motivating us to explore a series of new solutions for their mitigation and improvements. Finally, we outline promising directions that merit further studies, aiming at contributing to the community to advance this important field.
