Restoring Pruned Large Language Models via Lost Component Compensation
Zijian Feng, Hanzhang Zhou, Zixiao Zhu, Tianjiao Li, Jia Jim Deryl Chua, Lee Onn Mak, Gee Wah Ng, Kezhi Mao
TL;DR
This work addresses performance degradation in pruned large language models by proposing RestoreLCC, a targeted restoration method that reintroduces information lost during pruning. It identifies critical attention heads through contrastive probing and reconstructs missing directional information via learned magnitudes of lost components, then injects these back into pruned heads without altering sparsity or inference speed. The approach is compatible with structured, semi-structured, and unstructured pruning, and it yields consistent improvements over state-of-the-art baselines in both general and task-specific recovery across multiple LLMs and configurations. By enabling higher pruning ratios without sacrificing performance, RestoreLCC has practical implications for deploying efficient, scalable LLMs in resource-constrained settings.
Abstract
Pruning is a widely used technique to reduce the size and inference cost of large language models (LLMs), but it often causes performance degradation. To mitigate this, existing restoration methods typically employ parameter-efficient fine-tuning (PEFT), such as LoRA, to recover the pruned model's performance. However, most PEFT methods are designed for dense models and overlook the distinct properties of pruned models, often resulting in suboptimal recovery. In this work, we propose a targeted restoration strategy for pruned models that restores performance while preserving their low cost and high efficiency. We observe that pruning-induced information loss is reflected in attention activations, and selectively reintroducing components of this information can significantly recover model performance. Based on this insight, we introduce RestoreLCC (Restoring Pruned LLMs via Lost Component Compensation), a plug-and-play method that contrastively probes critical attention heads via activation editing, extracts lost components from activation differences, and finally injects them back into the corresponding pruned heads for compensation and recovery. RestoreLCC is compatible with structured, semi-structured, and unstructured pruning schemes. Extensive experiments demonstrate that RestoreLCC consistently outperforms state-of-the-art baselines in both general and task-specific performance recovery, without compromising the sparsity or inference efficiency of pruned models.
