NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning

Ruiqi Zhang, Licong Lin, Yu Bai, Song Mei

TL;DR

Negative Preference Optimization (NPO) is a new, stable objective for Large Language Model (LLM) unlearning that prevents "catastrophic collapse"—the tendency for models to break and output gibberish when forced to forget data. By treating unlearning as a preference optimization problem with only negative samples, NPO achieves state-of-the-art results on the TOFU benchmark, successfully forgetting up to 90% of a target dataset while maintaining general model utility.

What Problem Does This Paper Address?

As LLMs are trained on massive internet scrapes, they inevitably memorize sensitive information, copyrighted text, and private data. "Machine unlearning" aims to remove this specific knowledge without the prohibitive cost of retraining the entire model from scratch.

The current standard approach is Gradient Ascent (GA), which essentially runs training in reverse: it maximizes the loss on the "forget set." However, GA is notoriously unstable. It often leads to catastrophic collapse, where the model's weights diverge so quickly that it loses all general capabilities and begins generating repetitive gibberish (e.g., "narr narr narr..."). Researchers have struggled to find a balance between effectively "forgetting" and keeping the model useful for other tasks.

Methods

The authors introduce Negative Preference Optimization (NPO), a "drop-in" replacement for the standard GA loss. NPO is inspired by Direct Preference Optimization (DPO), a popular alignment technique.

While DPO typically requires pairs of "preferred" and "rejected" responses, unlearning usually only provides the data we want to reject. NPO treats the forget set as negative samples and compares the current model's likelihood of generating that data against a frozen reference model (the original pre-trained model).

Figure 1: Gradient Ascent (GA), Negative Preference Optimization (NPO), and Direct Preference Optimization (DPO). NPO can be interpreted as DPO without positive samples. The gradient of NPO is an adaptive weighting of that of GA, and the weight vanishes for unlearned samples.

The mathematical magic lies in NPO's adaptive weighting. Unlike GA, which continues to push the model away from a sample with constant force, NPO’s gradient weight vanishes as the probability of the "forget" sample decreases. This prevents the model from over-optimizing and spiraling into instability.

Datasets

The researchers evaluated NPO using two primary setups:

  1. Synthetic Binary Classification: A controlled environment using Gaussian-logistic models to theoretically and empirically analyze divergence speeds.
  2. TOFU (Task of Fictitious Unlearning): A recent benchmark consisting of 200 fictitious author biographies generated by GPT-4. The goal is to forget varying percentages (1%, 5%, 10%, and up to 90%) of these biographies while maintaining performance on real-world knowledge.

Key Insights and Ideas

  • Logarithmic vs. Linear Divergence: The authors prove theoretically that while GA causes the model to diverge linearly (fast), NPO diverges logarithmically (slow). This "speed limit" provides a much wider window for successful unlearning before the model breaks.
  • Forgetting vs. Breaking: GA-based models often "forget" by becoming broken—they output nonsense. NPO-based models "forget" by mimicking a model that never saw the data; they remain fluent but provide incorrect or "I don't know" answers, which is the desired behavior for true unlearning.
  • The Power of Retain Loss: Combining NPO with a standard cross-entropy loss on a "retain set" (data the model should keep) significantly boosts performance. The retain loss helps preserve the model's linguistic structure, while NPO surgically removes specific facts.

Key Results

NPO significantly outperformed all existing baselines on the TOFU benchmark:

  • Stability: As shown in the evolution plots, GA's utility crashes to zero almost immediately. In contrast, NPO reaches a stable plateau where forget quality is high and utility remains preserved.
  • Scaling to Massive Forgetting: Previous methods struggled to forget even 10% of the TOFU dataset. NPO is the first method to achieve meaningful unlearning results when tasked with forgetting 50% to 90% of the training data.
  • Readability: Qualitative analysis shows that NPO+RT (Retain) produces fluent, sensible sentences, whereas GA variants quickly devolve into repeating the same token indefinitely.
Figure 2: Comparison between GA and NPO on forget quality, model utility, KL divergence on the real-world Set, and the answers to the forget set. The rightmost figure shows the answers generated from variants of GA and NPO that incorporates the RT loss. All figures are generated on the Forget05 task in the TOFU data, trained for 10 epochs (detailed setup in Appendix E.1).

Limitations and Future Work

While NPO is a major step forward, the authors note a few areas for further exploration:

  • Reference Model Dependency: NPO requires keeping a frozen copy of the original model in memory, which increases computational overhead.
  • Hyperparameter Sensitivity: The temperature parameter $\beta$ requires tuning to balance the speed of unlearning against stability.
  • Real-World Complexity: TOFU uses fictitious data. Testing NPO on real-world sensitive datasets or against adversarial prompts (where users try to "extract" forgotten info) remains an important next step.

Summary updated

BibTeX
@inproceedings{zhang2024negative,
  author = {Ruiqi Zhang and Licong Lin and Yu Bai and Song Mei},
  title = {{Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=MXLBXjQkmb},
}
Figure