Abstract
Structured pruning is a promising hardware-friendly compression technique for large language models (LLMs), which is expected to be retraining-free to avoid the enormous retraining cost. This retraining-free paradigm involves (1) pruning criteria to define the architecture and (2) distortion reconstruction to restore performance. However, existing methods often emphasize pruning criteria while using reconstruction techniques that are specific to certain modules or criteria, resulting in limited generalizability. To address this, we introduce the Linear Interpolation-based Adaptive Reconstruction (LIAR) framework, which is both efficient and effective. LIAR does not require back-propagation or retraining and is compatible with various pruning criteria and modules. By applying linear interpolation to the preserved weights, LIAR minimizes reconstruction error and effectively reconstructs the pruned output. Our evaluations on benchmarks such as GLUE, SQuAD, WikiText, and common sense reasoning show that LIAR enables a BERT model to maintain 98% accuracy even after removing 50% of its parameters and achieves top performance for LLaMA in just a few minutes.
Introduction
Model pruning—the process of removing redundant weights to make models smaller and faster—is essential for deploying Large Language Models (LLMs) on edge devices. However, "structured pruning" (removing entire neurons or attention heads) usually causes a massive drop in accuracy. The traditional fix is retraining, but for models like LLaMA or BERT, this is prohibitively expensive in terms of compute and time. While "retraining-free" methods exist, they are often brittle, tailored to specific model architectures, or only work with specific pruning criteria. We propose the Linear Interpolation-based Adaptive Reconstruction (LIAR) framework, a universal, efficient way to "heal" a pruned model using only a tiny amount of calibration data and zero gradient updates.
Methodology: The LIAR Framework
Instead of trying to learn new weights through optimization, LIAR treats reconstruction as a mathematical estimation problem. The framework operates in three primary stages:
- Reconstruction Problem Reformulation: The original model's output is decomposed into "unmasked" (preserved) and "masked" (pruned) components.
- Least-Square-based Linear Estimation: We assume that the information lost from the pruned components can be approximated by a linear combination of the preserved components. Using a small calibration dataset, a least-squares algorithm finds transformation matrices ($Q$ and $P$) that map the preserved weights and inputs to the missing outputs.
- Linear Interpolation: The preserved weights and biases are updated by integrating these transformation matrices. This effectively "stretches" the remaining neurons to cover the functional space previously occupied by the pruned ones.
This process requires no backpropagation. It is purely a forward-pass analytical solution, making it incredibly fast and architecture-agnostic.
Experimental Evaluation
We evaluated LIAR across a wide range of tasks to prove its generalizability:
- NLU Benchmarks: The GLUE suite for sequence classification.
- Question Answering: SQuAD v1.1 and v2.0.
- Language Modeling: WikiText-2 (measured via perplexity).
- Common Sense Reasoning: Seven zero-shot benchmarks, including BoolQ, PIQA, HellaSwag, WinoGrande, ARC, and OpenbookQA.
A small subset of training data (as few as 128 samples) was used to estimate the interpolation matrices.
Key Results and Discussion
LIAR demonstrates superior performance across various models and pruning criteria.
- Accuracy Retention: For BERT-Base at 50% pruning, LIAR achieved an 85.71% average accuracy across GLUE/SQuAD, retaining 98% of the uncompressed model's performance. In contrast, previous state-of-the-art methods like KCM only reached 57.17%.
- Efficiency: Reconstruction for a LLaMA-7B model takes roughly one minute on a single NVIDIA A100 GPU.
- Robustness: The method is highly robust to the size of the calibration set and works regardless of the initial pruning criteria (e.g., weight magnitude or SNIP).
The success of LIAR suggests that redundancy in LLMs is structured such that "missing" features can be reconstructed linearly from "existing" ones. By replacing iterative retraining with a closed-form linear solver, we achieve state-of-the-art results in a fraction of the time.
Conclusion
LIAR provides a powerful, retraining-free paradigm for model pruning. Its ability to maintain high accuracy with minimal computational overhead makes it a practical solution for deploying large-scale models. Future work may involve integrating LIAR directly into the architecture search process to further optimize compression ratios.
Summary updated