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

Let LLM Tell What to Prune and How Much to Prune

Mingzhe Yang, Sihao Lin, Changlin Li, Xiaojun ChangICML 2025

TL;DR

This paper introduces a hierarchical structured pruning framework that dynamically determines what to prune and how much to prune across different Large Language Model (LLM) modules. By using information-theoretic metrics like transfer entropy to quantify the importance of specific blocks and layers, the method achieves superior performance-efficiency trade-offs compared to existing "one-size-fits-all" pruning strategies.

The Challenge of Structured Pruning

Pruning billions of parameters is essential for deploying LLMs on consumer hardware. However, current structured pruning—which removes entire rows, columns, or blocks to ensure hardware compatibility—faces a "no free lunch" dilemma.

Existing methods typically suffer from two main limitations:

  1. Rigid Targets: They often target only one type of structure (e.g., just layers or just weight matrices). Pruning entire blocks is fast for inference but destroys accuracy, whereas pruning rows/columns preserves accuracy but offers limited speedups.
  2. Static Ratios: They usually apply a uniform pruning ratio (e.g., "remove 50% of everything"). However, LLM modules are not equally important; some layers are critical for logic, while others are highly redundant.

The authors seek a way to balance inference throughput and model performance by treating the LLM as a non-uniform entity and distributing the "pruning load" where it hurts the model's capabilities the least.

Methods: A Hierarchical, Information-Theoretic Approach

The authors propose a hierarchical strategy grounded in information theory to dynamically allocate pruning targets:

  • Quantifying Importance via Transfer Entropy (TE): To decide what is important, they measure the "Transfer Entropy" of each block. They mask a block and observe how much the entropy of the final output changes. If the output changes drastically, that block is deemed essential.
  • Hierarchical Pruning Strategy:
    • Block-level: Blocks are categorized into High, Medium, and Low TE groups. High-importance blocks are preserved, while low-importance blocks are candidates for total removal.
  • Dynamic Ratio Allocation: Instead of a fixed ratio, they use a Depth-First Search (DFS) compensation process. If a critical block cannot be pruned heavily, the "leftover" pruning requirement is shifted to less important blocks to meet the overall target sparsity.
Dynamic pruning ratios assigned to different blocks based on their Transfer Entropy.
  • Fine-Grained Row/Column Pruning: Within the remaining blocks, they use an importance score based on the entropy of the product of weights and activations. They then use K-means clustering to identify and remove the least informative channels.
  • Bias Compensation: To recover performance without expensive retraining, they calculate a compensation bias term based on the statistics of the calibration data, effectively "plugging the holes" left by pruned neurons.

Datasets and Evaluation

The researchers evaluated their method using a robust pipeline:

  • Calibration: 128 samples from the WikiText2 training set.
  • Evaluation (Language Modeling): Perplexity scores on the WikiText2 test set.
  • Evaluation (Zero-shot Reasoning): Five standard benchmarks: PIQA, WinoGrande, HellaSwag, ARC-e, and ARC-c.
  • Models: The LLaMA2 (7B, 13B, 70B), LLaMA3 (8B, 70B), and Vicuna (7B, 13B) families.

Key Insights

  • The "Intrinsic Property" Guidance: The paper argues that the LLM itself "knows" what is important. By measuring internal information flow (entropy), we don't need to rely on external labels or computationally expensive gradients to find pruning targets.
  • Breaking the Uniformity Myth: The most surprising finding is how much transfer entropy varies across a model. Some blocks contribute almost nothing to the final output's information density, making them "free" targets for aggressive pruning.
  • Synergy of Structures: By combining block-wise pruning (for speed) with row/column pruning (for accuracy) in a single hierarchical flow, they bypass the traditional trade-off that limits single-structure methods.

Key Results

  • Superior Accuracy: At 50% sparsity, their method consistently outperformed baselines like SliceGPT and FLAP. For LLaMA2-7B, their method achieved a perplexity of 20.07, while SliceGPT trailed at 21.08 and others exceeded 100.
Perplexity results at various pruning ratios, demonstrating the proposed method's superior retention of accuracy.
  • Zero-Shot Performance: On the LLaMA2-7B average score across five tasks, the proposed method maintained 45.52% accuracy at 50% sparsity, significantly higher than the 39.68% achieved by SliceGPT.
  • Inference Speedup: The method achieved higher throughput (Tokens/s) than competitors. For LLaMA2-7B at 50% sparsity, it reached 38.78 tokens/s, compared to 34.38 for SliceGPT and 29.86 for the dense model.
  • Robustness: The method is highly robust to the size of the calibration set, showing stable performance even with very few samples.

Limitations and Future Work

  • Calibration Dependency: While robust, the method still requires a small calibration dataset to calculate entropy and bias compensation.
  • Search Complexity: While the authors mention DFS is efficient, the search space for dynamic ratios could become complex as models grow even larger (e.g., 400B+ parameters).
  • Integration with Quantization: The paper focuses purely on pruning. A natural next step would be exploring how these dynamic ratios interact with 4-bit or 2-bit quantization (e.g., QLoRA or AWQ) for compounded compression benefits.

Summary updated

BibTeX
@inproceedings{yang2025let,
  author = {Mingzhe Yang and Sihao Lin and Changlin Li and Xiaojun Chang},
  title = {{Let LLM Tell What to Prune and How Much to Prune}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=zFR5aWGaUs},
}
Figure