Key Pruning Metrics: Magnitude, Gradient, and Hessian

Unstructured pruning for LLMs often relies on magnitude-based criteria, removing weights with the smallest absolute values. Structured pruning frequently uses gradient-based importance (e.g., LLM-Pruner) or Taylor expansion approximations to identify less critical components. More advanced techniques like activation-aware pruning (Wanda) and Hessian-aware pruning (SparseGPT, HAP-E) offer superior accuracy-sparsity trade-offs by considering the impact of parameter removal on the model's loss. [2, 6, 7, 17, 21, 23, 26, 27]

The top 3

  1. Pruning Metrics: Who Wins in LLM Performance vs. Sparsity?: Hessian-based pruning, exemplified by methods like Reordered SparseGPT, often achieves state-of-the-art performance for LLM compression due to its high precision, though at a greater computational expense. Gradient-based methods such as GBLM-Pruner offer a strong balance, leveraging informative gradients to outperform simpler magnitude pruning. Magnitude pruning, while straightforward, frequently fails to maintain performance in LLMs at higher sparsity levels.
  2. Computational Costs: Ranking Pruning Metrics by Efficiency: Magnitude pruning is the most computationally efficient approach, with techniques like Wanda being significantly faster (e.g., 300 times faster than SparseGPT) due to avoiding complex gradient or Hessian calculations. Gradient-based pruning, while more demanding than magnitude, is less computationally intensive than Hessian-based methods. Second-order Hessian methods are the most resource-intensive, often requiring approximations like Kronecker-factored matrices or using lower precision (e.g., FP16) to become feasible for large language models.
  3. Beyond Single Metrics: Hybrid Pruning Strategies for LLMs: To overcome the limitations of individual pruning metrics, advanced LLM compression increasingly relies on hybrid strategies that combine magnitude, gradient, and Hessian insights with other techniques. Notable examples include GRASP, which integrates layer removal with gradient-based singular value selection, HyWIA, merging fine-grained and coarse-grained weight importance assessments, and 2SSP, a two-stage framework combining width and depth pruning for superior results.

Sources

Open the full topic