Abstract
Pruning is a critical strategy for compressing trained large language models (LLMs), aiming at substantial memory conservation and computational acceleration without compromising performance. However, existing pruning methods often necessitate inefficient retraining for billion-scale LLMs or rely on heuristic methods such as the optimal brain surgeon framework, which degrade performance. In this paper, we introduce FISTAPruner, the first post-training pruner based on convex optimization models and algorithms. Specifically, we propose a convex optimization model incorporating $\ell_1$ norm to induce sparsity and utilize the FISTA solver for optimization. FISTAPruner incorporates an intra-layer cumulative error correction mechanism and supports parallel pruning. We comprehensively evaluate FISTAPruner on models such as OPT, LLaMA, LLaMA-2, and LLaMA-3 with 125M to 70B parameters under unstructured and 2:4 semi-structured sparsity, demonstrating superior performance over existing state-of-the-art methods across various language benchmarks.
Introduction
As Large Language Models (LLMs) scale to hundreds of billions of parameters, their memory and computational requirements outpace hardware improvements. Pruning—removing redundant weights—is essential for deployment, but existing methods face a significant "efficiency-performance" trade-off. Retraining-based methods yield high performance but are computationally prohibitive for billion-scale models. Conversely, one-shot heuristic methods like SparseGPT and Wanda are fast but rely on "rules of thumb" or the Optimal Brain Surgeon (OBS) framework, which often leads to significant accuracy degradation.
A specific technical challenge identified in current research is error accumulation. In layer-wise pruning, a small discrepancy between the original and pruned output of one operator becomes the input for the next, causing errors to "snowball" through the transformer block.
Methodology: The FISTAPruner Framework
FISTAPruner stands out by applying rigorous optimization theory to the pruning task. Instead of a simple metric, pruning is formulated as a formal minimization problem.
The framework consists of several key components:
- Convex Optimization Model: The objective minimizes the Frobenius norm of the difference between dense and pruned outputs, using an $\ell_1$-norm regularization term to induce sparsity.
- FISTA Solver: The Fast Iterative Shrinkage-Thresholding Algorithm (FISTA) is used to solve the optimization, providing a theoretical convergence rate of $O(1/k^2)$. This ensures the pruned weights are mathematically optimized for the specific calibration data.
- Intra-layer Error Correction: To stop error drift, FISTAPruner prunes operators within a decoder layer sequentially. When pruning a specific weight matrix, it uses the actual output from the previously pruned operator as the input activation, effectively correcting the error before it propagates.
- Adaptive Hyperparameter Tuning: A bisection method automatically tunes the regularization strength ($\lambda$) to balance target sparsity with model accuracy.
Experimental Evaluation
The researchers evaluated FISTAPruner across a wide range of models including OPT (125M–30B), LLaMA (7B–65B), LLaMA-2 (7B–70B), and LLaMA-3 (8B–70B). Performance was measured using WikiText-2, Penn Treebank (PTB), and C4 perplexity benchmarks, alongside a suite of seven zero-shot reasoning tasks.
Key Results
FISTAPruner consistently outperformed SparseGPT and Wanda across nearly all configurations, particularly in the challenging 2:4 semi-structured sparsity format.
On LLaMA-3-70B at 50% unstructured sparsity, FISTAPruner achieved a WikiText perplexity of 5.09, compared to 5.30 for SparseGPT and 5.33 for Wanda. In the hardware-friendly 2:4 semi-structured format, the gains were even more pronounced. For LLaMA-3-8B, FISTAPruner reached a perplexity of 14.54, while SparseGPT trailed at 14.65 and Wanda struggled at 22.56. Furthermore, on LLaMA-3-70B (50% sparse), FISTAPruner maintained a mean zero-shot accuracy of 71.20%, remarkably close to the dense model's 72.19%.
Discussion and Insights
The primary insight of this work is that treating pruning as a formal optimization problem yields more stable and higher-performing models than heuristic saliency metrics. By recognizing that sequential dependency matters—specifically that the input to a subsequent weight matrix is the pruned output of the previous one—the authors significantly reduced noise during compression.
Interestingly, at low sparsity levels (e.g., 20% on OPT-125M), the pruned model occasionally outperformed the original dense model, suggesting that pruning can act as a form of beneficial regularization. While the pruning is sequential within a layer, each decoder layer is treated as an independent unit, allowing for parallelization across multiple GPUs.
Limitations
Despite its performance, FISTAPruner has a higher time complexity than one-shot heuristics due to its iterative nature. Pruning a LLaMA-3-70B model takes approximately 12 hours on a single NVIDIA A100 GPU. Additionally, like all post-training methods, performance is sensitive to the quality of the calibration data. Future work may explore more advanced convex optimization tools to further bridge the gap between efficiency and performance.
Summary updated