Per-parameter Task Arithmetic for Unlearning in Large Language Models
Chengyi Cai, Zesheng Ye, Jiangchao Yao, Jianzhong Qi, Bo Han, Xiaolu Zhang, Feng Liu, Jun Zhou
TL;DR
This work tackles the privacy-preserving unlearning of private data in large language models by extending task arithmetic with per-parameter scaling. It introduces PerTA, which uses per-parameter weights to modulate the forget vector based on parameter importance estimated from absolute gradients or diagonal Fisher information, yielding the final model θfinal = θfull + W ⊙ [−(θfgt − θ0)]. Empirically, PerTA outperforms vanilla TV and many training-based unlearning methods on TOFU and MUSE benchmarks, while maintaining efficiency and data-parity advantages. The approach provides a flexible, general form for weighting TV and demonstrates robust improvements across model scales, making unlearning more effective and practical in real-world LLM deployments.
Abstract
In large language model (LLM) unlearning, private information is required to be removed. Task arithmetic unlearns by subtracting a specific task vector (TV)--defined as the parameter difference between a privacy-information-tuned model and the original model. While efficient, it can cause over-forgetting by disrupting parameters essential for retaining other information. Motivated by the observation that each parameter exhibits different importance for forgetting versus retention, we propose a per-parameter task arithmetic (PerTA) mechanism to rescale the TV, allowing per-parameter adjustment. These weights quantify the relative importance of each parameter for forgetting versus retention, estimated via gradients (i.e., PerTA-grad) or the diagonal Fisher information approximation (i.e., PerTA-fisher). Moreover, we discuss the effectiveness of PerTA, extend it to a more general form, and provide further analysis. Extensive experiments demonstrate that PerTA consistently improves upon standard TV, and in many cases surpasses widely used training-based unlearning methods in both forgetting effectiveness and overall model utility. By retaining the efficiency of task arithmetic while mitigating over-forgetting, PerTA offers a principled and practical framework for LLM unlearning.
