Introduction
Large Language Models (LLMs) are notoriously difficult to deploy due to their massive parameter counts. While pruning—the process of removing less important weights—is a standard solution for model compression, traditional methods typically require fine-tuning the model on massive datasets for several epochs to recover lost accuracy. For a 70B parameter model, this retraining phase is computationally prohibitive for most organizations.
Existing "one-shot" methods like SparseGPT attempted to solve this by pruning models without retraining. However, SparseGPT relies on a "Single Removal Problem" (SRP) framework, which calculates the optimal way to remove a single weight and then uses heuristics to chain those removals together. This sequential approach requires "freezing" weights as they are pruned, preventing the model from finding the truly optimal configuration for the remaining weights. This paper introduces a new post-training pruning method that directly addresses the "Multiple Removal Problem" (MRP), achieving state-of-the-art accuracy across Transformer and Mamba architectures without requiring expensive retraining.
Methodology: Solving the Multiple Removal Problem
The authors propose a direct formulation of the Multiple Removal Problem (MRP). Instead of asking how to best remove one weight at a time, they ask: "What is the best way to remove this set of weights simultaneously while minimizing the change in the layer's output?"
Key Technical Components
- Lagrange Multipliers: The pruning task is formulated as a constrained optimization problem. By using Lagrange multipliers, the researchers derived a closed-form optimal solution for weight updates.
- Simultaneous Updates: Unlike previous methods that prune and freeze weights column-by-column, this method allows all unpruned weights in a row to be updated at once to compensate for all pruned weights in that row.
- Flexible Sparsity Support: The algorithm supports both unstructured sparsity (removing any $X\%$ of weights) and semi-structured N:M sparsity (e.g., 2:4 sparsity), which is optimized for modern GPU hardware acceleration.
- Two-Tiered Solutions: The researchers offer a high-performance version (Solution $\mathbb{M}$) that accounts for complex interactions between pruned weights and a simplified, faster version (Solution $\mathbb{S}$) for less demanding tasks.
Experimental Setup
The models were calibrated using a small subset (typically 128 segments) of the C4 or WikiText2 datasets. Evaluation spanned several dimensions:
- Language Modeling (Perplexity): Tested on WikiText2, PTB (Penn Treebank), and C4.
- Zero-Shot Tasks: A battery of common sense reasoning tasks including LAMBADA, HellaSwag, PIQA, ARC (Easy and Challenge), and WinoGrade.
Key Results and Insights
The proposed method consistently outperformed SparseGPT and other baselines across various model families, including LLaMA2, OPT, BLOOM, and the newer Mamba architecture.
Performance on Transformer Models
As shown in the results for LLaMA2, OPT, and BLOOM, the MRP-based approach (Solution $\mathbb{M}$) significantly reduces perplexity compared to SparseGPT, particularly under the hardware-friendly 2:4 sparsity constraint.
For example, on LLaMA2-70B under 2:4 semi-structured sparsity, the model achieved a perplexity of 4.278 on WikiText2, a significant improvement over SparseGPT’s 5.698.
Architecture Agnostic: The Mamba Case
A key insight of this research is that the MRP formulation is architecture-agnostic. While most pruning research focuses on Transformers, this paper demonstrates that the method works equally well for State Space Models (SSMs) like Mamba. On the Mamba-2.8B model at 70% sparsity, the method achieved a perplexity of 7.511, whereas SparseGPT lagged at 9.964.
Furthermore, the method maintained high accuracy on downstream reasoning tasks. For the Mamba-790M model, it achieved a 51.09% average accuracy across zero-shot tasks, nearly matching the original unpruned model's performance.
Discussion and Future Work
The primary advantage of this approach is its ability to account for weight interactions. The error introduced by pruning multiple weights is not merely the sum of their individual errors; there are interaction terms that the MRP formulation explicitly addresses.
The main limitation is computational complexity, as solving the MRP requires inverting matrices. While the authors optimized this to run on a single A100 GPU within a few hours by processing the model layer-by-layer, it remains more intensive than simpler heuristic-based pruning. Future work may explore combining this optimal weight update strategy with quantization to further push the boundaries of model compression without sacrificing the "no-retraining" requirement.
Summary updated