Sparsity-Aware Unlearning for Large Language Models
Yuze Wang, Yujia Tong, Ke Xu, Jingling Yuan, Jiawei Jiang, Chuang Hu
TL;DR
This work tackles the privacy risk of memorized data in large language models by exploring machine unlearning under sparsity. It identifies that standard unlearning deteriorates when models are sparsified because pruning restricts updates to a smaller set of surviving weights. To overcome this, it proposes Sparsity-Aware Unlearning (SAU), which couples gradient masking with an importance-aware redistribution grounded in Fisher information to concentrate forgetting updates on critical surviving weights while compensating for pruned capacity. The approach is theoretically justified and empirically validated on TOFU, WDMP, and MUSE benchmarks with Llama models, where SAU consistently improves forgetting performance and preserves utility compared to existing methods, enabling practical privacy-preserving deployment of sparse LLMs.
Abstract
Large Language Models (LLMs) inevitably memorize sensitive information during training, posing significant privacy risks. Machine unlearning has emerged as a promising solution to selectively remove such information without full retraining. However, existing methods are designed for dense models and overlook model sparsification-an essential technique for efficient LLM deployment. We find that unlearning effectiveness degrades substantially on sparse models. Through empirical analysis, we reveal that this degradation occurs because existing unlearning methods require updating all parameters, yet sparsification prunes substantial weights to zero, fundamentally limiting the model's forgetting capacity. To address this challenge, we propose Sparsity-Aware Unlearning (SAU), which decouples unlearning from sparsification objectives through gradient masking that redirects updates to surviving weights, combined with importance-aware redistribution to compensate for pruned parameters. Extensive experiments demonstrate that SAU significantly outperforms existing methods on sparse LLMs, achieving effective forgetting while preserving model utility.
