Unified Parameter-Efficient Unlearning for LLMs.

Chenlu Ding, Jiancan Wu, Yancheng Yuan, Jinda Lu, Kai Zhang, Alex Su, Xiang Wang, Xiangnan He · DOI · OpenReview

TL;DR

This paper introduces LLMEraser, a novel framework for efficiently "unlearning" specific data from Large Language Models (LLMs) without full retraining. It achieves this by precisely adjusting only the parameter-efficient fine-tuning (PEFT) adapters, making it significantly faster and more memory-efficient than existing methods, while maintaining model performance across various unlearning tasks.

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly powerful, but fine-tuning them for specific tasks, especially using Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA, raises privacy and security concerns. These models can inadvertently memorize and retain sensitive, biased, or copyrighted information. While "unlearning" techniques aim to remove this data, existing methods are often limited to specific types of unlearning (like removing entire data points), require extensive retraining, or are not optimized for the PEFT paradigm. This leaves a gap for a unified, efficient, and adaptable unlearning solution for LLMs.

Methods

LLMEraser tackles this by leveraging influence functions, a technique that estimates how much a specific data point affects model parameters. The core innovation lies in:

  • Unified Framework: LLMEraser categorizes unlearning into three types: Instance Removal (IR), Query Modification (QM), and Response Correction (RC). This allows for nuanced control beyond just deleting entire data points.
  • PEFT Adapter Focus: Instead of unlearning from the entire LLM, LLMEraser specifically targets and updates the PEFT adapters (e.g., LoRA weights). This is crucial because PEFT methods are widely used for efficient fine-tuning.
  • Efficient Influence Function Calculation: The paper reformulates the computation of the inverse Hessian-vector-product (a key component of influence functions) into a convex quadratic programming problem. This is then solved efficiently using mini-batch optimization techniques like Adam, significantly reducing computational complexity and memory usage compared to traditional methods that require full-batch computations or suffer from approximation errors.

Datasets

The authors evaluate LLMEraser on several benchmark datasets:

  • LLM4Rec (Recommendation): BookCrossing, MovieLens, and LastFM datasets are used for recommendation tasks.
  • MLLM (Multimodal Large Language Models): MMSpuBench and R-Bench datasets are used for relation understanding and spurious biases tasks.

Key Insights and Ideas

  • Nuanced Unlearning is Possible and Necessary: Moving beyond simple instance removal to modify queries or correct responses is crucial for robust unlearning and maintaining model utility.
  • PEFT Adapters are the Key: Focusing unlearning efforts on the smaller PEFT adapters, rather than the entire LLM, is the path to efficiency without sacrificing performance.
  • Influence Functions, When Optimized, are Powerful: The paper demonstrates that influence functions, when computationally optimized, can accurately estimate parameter changes for unlearning, rivaling the performance of full retraining.
  • Efficiency Matters: LLMEraser achieves significant speedups (e.g., 31.25x faster than retraining) and reduced memory footprint, making practical unlearning of LLMs feasible.

Key Results

  • Performance Parity with Retraining: LLMEraser closely mirrors the performance of full retraining across various unlearning tasks, with minimal performance gaps (e.g., only 0.6% difference in instance removal on LLM4Rec).
  • Superiority over Baselines: Compared to methods like Gradient Ascent and E2URec, LLMEraser shows significantly smaller performance drops, indicating its effectiveness in preserving model utility.
  • Efficiency Gains: LLMEraser achieves a speedup of approximately 31.25 times compared to retraining for unlearning tasks, requiring only about 1.4 x 10³ seconds for updates.
  • Robustness to Unlearning Ratios: The method performs consistently well across different percentages of data to be unlearned.

Limitations and Future Work

  • Data Availability: LLMEraser requires access to the training set for calculating parameter changes.
  • Influence Function Approximation Errors: While minimized, the influence function's reliance on first-order Taylor expansions can still introduce estimation errors.
  • Future Work: The authors suggest exploring enhanced unlearning techniques, investigating broader applicability, and optimizing for computational efficiency and accuracy.

Summary updated

BibTeX
@inproceedings{ding2025unified,
  author = {Chenlu Ding and Jiancan Wu and Yancheng Yuan and Jinda Lu and Kai Zhang and Alex Su and Xiang Wang and Xiangnan He},
  title = {{Unified Parameter-Efficient Unlearning for LLMs.}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=zONMuIVCAT},
}
Figure