NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient-Free Adaptive Global Pruning for Pre-trained Language Models

Guangji Bai, Yijiang Li, Chen Ling, Kibaek Kim, Liang Zhao · DOI

Abstract

Large Language Models (LLMs) are computationally expensive, making pruning a popular compression tactic. However, existing methods rely on "local" layer-by-layer pruning because "global" pruning requires too much memory, leading to suboptimal performance at high sparsities. SparseLLM bridges this gap by decomposing the global pruning objective into manageable, analytically solvable subproblems, achieving global-level optimality with the memory footprint of local pruning.

Introduction

To make massive LLMs accessible, researchers often use unstructured pruning—setting a percentage of the model's weights to zero. The gold standard is global pruning, which considers the entire network to decide which weights to cut to minimize the final output error. Unfortunately, global pruning requires loading the entire model's computational graph into memory, which is impossible for modern billion-parameter LLMs.

To circumvent this, state-of-the-art methods like SparseGPT and Wanda use local pruning. They compress the model one layer at a time, forcing the pruned layer's output to match the original layer's output as closely as possible. While highly memory-efficient, local pruning is myopic. It "over-aligns" intermediate activations, ignoring how errors might cancel out or compound deeper in the network. This lack of inter-layer coordination leads to severe performance degradation, especially when pushing for high sparsity (e.g., removing >70% of the weights).

Methodology: SparseLLM

SparseLLM reformulates the global pruning problem to be solvable without excessive memory requirements. Instead of one massive optimization problem, SparseLLM treats the LLM as a chain of modular functions.

Comparison of Global Pruning, Local Pruning, and SparseLLM strategies.

The framework introduces auxiliary variables to decouple the dense parametric parts (the linear layers) from the non-parametric parts (activation functions like ReLU or SiLU). By relaxing strict layer-to-layer dependencies into "soft constraints" with penalty terms, the global problem is split into smaller, coordinated subproblems.

SparseLLM utilizes an alternating optimization algorithm. Because of the specific subproblem formulation, updates for weights, activations, and outputs all have closed-form analytical solutions. This eliminates the need for slow gradient descent, allowing the algorithm to calculate optimal updates directly. Practically, since Feed-Forward Networks (FFNs) contain roughly two-thirds of an LLM's parameters, SparseLLM focuses its global coordination on FFN blocks while utilizing standard local pruning for Multi-Head Attention (MHA) layers.

Experimental Setup

The performance of SparseLLM was evaluated using the following setup:

  • Calibration: 128 randomly chosen 2048-token segments from the C4 dataset.
  • Evaluation (Perplexity): WikiText2 (WT2), Penn Treebank (PTB), and a subset of the C4 validation data.
  • Evaluation (Zero-shot Accuracy): EleutherAI-eval harness tasks including BoolQ, RTE, HellaSwag, WinoGrande, ARC-e, ARC-c, and OBQA.
  • Models: The OPT model family, ranging from 1.3B to 66B parameters.

Key Results

SparseLLM consistently outperforms Magnitude pruning, Wanda, and SparseGPT, particularly at high sparsity levels ($\ge$ 70%).

Perplexity results for various OPT models across different sparsity levels and datasets.

As shown in the experimental results, at 90% sparsity on the OPT-1.3b model, SparseLLM achieves a WikiText2 perplexity of 1350.31, a significant improvement over SparseGPT's 2596.70. On zero-shot tasks, SparseLLM maintains higher accuracy at extreme sparsities; for instance, at 90% sparsity on OPT-13b, it reaches 40.95% average accuracy compared to SparseGPT's 37.72%.

Furthermore, SparseLLM is computationally efficient. Despite performing global optimization, its per-layer computation time is bounded by $O(h^3)$ (where $h$ is the hidden dimension), making its runtime highly comparable to the fast SparseGPT baseline.

Discussion and Conclusion

The primary insight of SparseLLM is that global pruning is achievable on a limited memory budget through the use of auxiliary variables and soft constraints. While local methods break down at high sparsities due to lack of coordination, SparseLLM degrades gracefully by allowing intermediate layers flexibility as long as the final output remains accurate.

Current limitations include the use of homogeneous sparsity across all layers and sensitivity to penalty hyperparameters ($\alpha, \beta$). Future work will explore heterogeneous sparsity allocation and extending the framework to a wider variety of model architectures.

Summary updated

BibTeX
@inproceedings{bai2024gradient,
  author = {Guangji Bai and Yijiang Li and Chen Ling and Kibaek Kim and Liang Zhao},
  title = {{Gradient-Free Adaptive Global Pruning for Pre-trained Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=oXHyYHp4Zb},
}
Figure