ALPS: Improved Optimization for Highly Sparse One-Shot Pruning for Large Language Models

Xiang Meng, Kayhan Behdin, Haoyue Wang, Rahul Mazumder

TL;DR

ALPS is a novel optimization-based framework for one-shot LLM pruning that avoids the suboptimality of common heuristic methods. By combining ADMM (operator splitting) with a fast, GPU-accelerated Preconditioned Conjugate Gradient (PCG) refining step, ALPS achieves state-of-the-art compression quality, particularly in challenging high-sparsity regimes (e.g., 70% to 80% weight removal).

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly powerful but demand massive computational and storage resources. Network pruning—the process of removing redundant weights—offers a compelling way to compress these models. Ideally, we want "one-shot" pruning, which compresses a pre-trained model using a tiny calibration dataset without expensive end-to-end retraining.

However, because LLMs contain billions of parameters, exact optimization is computationally daunting. Consequently, current state-of-the-art methods (like SparseGPT or Wanda) rely on greedy heuristics to choose which weights to cut. While these heuristics work well at low sparsity levels, they break down in high-sparsity regimes (e.g., removing 70% or more of the weights), leading to sub-optimal compression and a severe drop in model accuracy. ALPS addresses this gap by making mathematically rigorous optimization computationally feasible at LLM scale.

Methods

ALPS formulates pruning as an $\ell_0$-constrained layer-wise reconstruction optimization problem. To solve this highly non-convex, non-continuous problem efficiently, the authors split the process into two core components:

  1. ADMM (Alternating Direction Method of Multipliers): ALPS introduces a copy variable to decouple the objective function into two independent subproblems: a weight update step (solving a linear system) and a sparsity projection step. Crucially, the authors introduce a dynamic penalty parameter ($\rho$) update scheme. It starts small to allow the algorithm to explore different sparsity patterns and increases as the weight structure stabilizes. The authors provide a novel theoretical convergence guarantee for this non-convex setup.
  2. Vectorized PCG (Preconditioned Conjugate Gradient) Refining: Once the sparse structure (the "support") stabilizes, ADMM can be slow to fine-tune the exact weight values. ALPS fixes the support map and uses a modified PCG method to compute the optimal weights.

Instead of solving for each column of the weight matrix separately (which ruins GPU parallelization because every column has a different sparsity mask), ALPS solves the entire layer-wise system in a single pass and projects the weights onto the support at each iteration. This framework easily extends to structured patterns like N:M sparsity.

Figure 1: Overview of the proposed ALPS algorithm. (Left) The pruning problem with a layerwise reconstruc- tion objective and an ℓ0 constraint on the weights (Section 3.1). (Middle) ADMM with a ρ-update scheme (Algorithm 1) is employed to determine high-quality support for the weight matrix W (Section 3.2). (Right) The optimization problem is restricted to the obtained support, and a modified PCG method (Algorithm 2) is used to solve for the optimal weight values within the support (Section 3.3).

Datasets

The authors evaluated ALPS across several standard model families, including OPT (1.3B to 30B parameters), LLaMA2 (7B and 13B), and LLaMA3 (8B).

  • Calibration Data: 128 segments of 2048 tokens randomly sampled from the C4 dataset.
  • Perplexity Evaluation: WikiText2, PTB (Penn Treebank), and a validation subset of C4.
  • Zero-Shot Evaluation Benchmarks: MMLU, PIQA, LAMBADA, ARC-Easy, and ARC-Challenge.

Key Insights and Ideas

  • Simultaneous Mask and Weight Optimization: Heuristics typically select a weight mask based on isolated metrics (like weight magnitude) and then patch up the remaining weights. By optimizing the mask and the weights simultaneously via ADMM, ALPS finds a significantly higher-quality support structure.
  • The Power of the Dynamic $\rho$-Update: A fixed penalty parameter ($\rho$) in ADMM creates a nasty trade-off: small values cause slow convergence, while large values freeze the support too early, leading to poor solutions. Dynamically scaling $\rho$ based on the rate of support change bridges this gap perfectly.
  • Global Vectorization Beats Local Inversion: Inverting unique submatrices for tens of thousands of columns is a parallelization nightmare. Solving the global linear equation using PCG while masking inside the loop leverages the full power of modern GPUs.

Key Results

  • Lower Reconstruction Error: On a single layer of OPT-13B at 80% sparsity, ALPS achieves a 7.6% relative reconstruction error, whereas SparseGPT shows 12% error, and other heuristics exceed 20%.
Figure 2: Performance analysis of pruning the “self_attn.k_proj” layer in the first block of the OPT-13B model at various sparsity levels. The plot shows the relative reconstruction error of pruned weights, comparing different pruning methods.
  • Massive Speedups in Post-Processing: The vectorized PCG method achieves a 20x to 200x speedup compared to standard direct matrix inversion (backsolve) while maintaining identical weight quality.
Performance and time comparison of the refining step
  • Downstream LLM Performance: On the LLaMA3-8B model with 70% sparsity, ALPS achieves a 29% reduction in test perplexity on WikiText2 and an 8% improvement in zero-shot benchmark performance compared to existing methods. For the OPT-30B model at 70% sparsity, it achieves a 13% reduction in perplexity and a 19% improvement in zero-shot tasks.

Limitations and Future Work

  • Runtime Overhead: Because ALPS runs an iterative optimization algorithm rather than a single-pass heuristic, it takes longer to execute than methods like SparseGPT or Wanda (e.g., a few hours versus several minutes for large models). However, this runtime is still negligible compared to full model fine-tuning (like LoRA).
  • Extreme Sparsity Degradation: Although ALPS significantly outperforms competitors, all one-shot methods suffer from noticeable performance degradation at extreme sparsity levels (e.g., 80–90%). The authors note that one-shot pruning at these levels should ideally be paired with brief recovery fine-tuning or prompting techniques.
  • Future Directions: The authors plan to extend ALPS to handle structured pruning constraints directly and integrate it with quantization frameworks for joint model compression.

Summary updated

BibTeX
@inproceedings{meng2024alps,
  author = {Xiang Meng and Kayhan Behdin and Haoyue Wang and Rahul Mazumder},
  title = {{ALPS: Improved Optimization for Highly Sparse One-Shot Pruning for Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=0lBx844upd},
}
Figure