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

Structured Optimal Brain Pruning for Large Language Models

Jiateng Wei, Quan Lu, Ning Jiang, Siqi Li, Jingyang Xiang, Jun Chen, Yong Liu

Introduction

Large Language Models (LLMs) have revolutionized natural language processing but come with immense computational and memory requirements. Model pruning is a primary strategy to mitigate these costs. However, a significant divide exists between unstructured and structured pruning. Unstructured pruning zeroes out individual weights, maintaining high accuracy but resulting in sparse matrices that standard hardware cannot accelerate. Conversely, structured pruning removes entire rows, columns, or attention heads, which is inherently hardware-friendly but typically leads to severe performance degradation, necessitating expensive retraining.

Comparison between (a) unstructured pruning and (b) hardware-friendly structured pruning.

The researchers introduce Structured Optimal Brain Pruning (SoBP), a method designed to achieve the "holy grail" of compression: structured pruning that requires zero retraining. By combining global importance scoring with local greedy refinement, SoBP offers significant speedups and memory savings while maintaining high model accuracy.

Methodology: The SoBP Pipeline

SoBP employs a sophisticated three-stage pipeline to prune LLMs while preserving their internal knowledge without additional fine-tuning.

The three-stage SoBP pipeline: (1) Importance-Aware Selection, (2) Local Greedy Refinement, and (3) Module-Wise Reconstruction.

1. Global Importance-Aware Selection

Rather than applying a uniform pruning rate across all layers, SoBP calculates the global importance of each unit (attention head or FFN neuron) using a first-order Taylor expansion of the loss function. By solving a knapsack problem, the algorithm identifies which specific structures across the entire network can be removed to meet a target pruning rate with minimal impact on total loss.

2. Local Greedy Refinement

Global importance scores can overlook the correlations between neurons within a specific module. SoBP addresses this through a local greedy approach inspired by Optimal Brain Surgeon (OBS) theory. Within each module, it iteratively removes the least impactful units and updates the remaining weights to compensate for the lost information, ensuring the module's output remains as close to the original as possible.

3. Module-Wise Reconstruction

To prevent error accumulation across the network, SoBP performs reconstruction at the module level. A critical innovation is Input Weights Error Compensation, which adjusts the weights of subsequent layers to account for changes in their input caused by pruning in preceding layers. This stage utilizes Cholesky decomposition and weight rearrangement to maintain numerical stability.

Experimental Setup

The effectiveness of SoBP was evaluated across 14 models from the LLaMA1, LLaMA2, and OPT families. Performance was measured using common benchmarks:

  • WikiText2 for perplexity analysis (language fluency).
  • LM-Eval-Harness for zero-shot reasoning tasks, including ARC, HellaSwag, and PIQA.
  • C4 for testing sensitivity to calibration data.

Key Results and Insights

SoBP consistently outperforms state-of-the-art methods like FLAP, SliceGPT, and ASVD across almost all benchmarks.

  • Accuracy Preservation: On LLaMA1-65B, SoBP retained 99.2% of its original zero-shot performance even after a 30% parameter reduction.
  • Hardware Efficiency: By introducing a "SoBP (/8)" variant that aligns pruned dimensions to multiples of 8, the method leverages GPU tensor cores more effectively, significantly boosting real-world performance.
  • Throughput Gains: Pruning OPT-66B by 30% resulted in a 2.05x increase in throughput. For LLaMA2-70B at a 40% pruning rate, decoding throughput increased by 1.42x.
  • Redundancy Patterns: Analysis revealed that SoBP naturally targets deeper layers for pruning, confirming that the latter half of LLMs often contains redundant transformations.

Conclusion and Future Work

SoBP demonstrates that structured pruning without retraining is viable for massive LLMs. By balancing global importance with local weight refinement and error compensation, it provides a path toward more efficient inference on standard hardware. Future research may focus on automating hyperparameter selection via AutoML and accounting for inter-module correlations to further enhance compression efficiency.

Summary updated

BibTeX
@inproceedings{wei2024structured,
  author = {Jiateng Wei and Quan Lu and Ning Jiang and Siqi Li and Jingyang Xiang and Jun Chen and Yong Liu},
  title = {{Structured Optimal Brain Pruning for Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.775},
}
Figure