Entropy-Based Block Pruning for Efficient Large Language Models

Liangwei Yang, Yuhui Xu, Juntao Tan, Doyen Sahoo, silvio savarese, Caiming Xiong, Huan Wang, Shelby Heinecke

TL;DR

EntroDrop is a novel pruning strategy for Large Language Models (LLMs) that identifies redundant layers by measuring their "information contribution" via Shannon entropy. By shifting from geometric metrics (like cosine similarity) to information-theoretic ones, EntroDrop can remove up to 37.5% of a model's attention layers while maintaining over 95% of its original performance, significantly outperforming existing state-of-the-art pruning methods.

The Challenge of LLM Over-Parameterization

As LLMs scale to hundreds of billions of parameters, the computational cost of deploying them becomes a massive bottleneck. Researchers have long known that these models are "over-parameterized"—meaning many layers are redundant and can be removed without a total collapse in performance.

The current standard for identifying these redundant layers is cosine similarity. The logic is simple: if the output of Layer A is geometrically very similar to the output of Layer B, one of them is likely unnecessary. However, the authors of this paper argue that geometric alignment doesn't tell the whole story. Two representations might look different geometrically but contain the same amount of information, or vice versa. The gap they address is the need for a pruning metric that quantifies the actual information content added by a computation block rather than just its spatial orientation.

Methods: The EntroDrop Framework

The authors introduce EntroDrop, a framework based on the dynamics of Shannon entropy across the layers of a Transformer.

1. The Entropy Observation

They first discretize the hidden activations of the model and calculate the entropy at each layer. They discovered a consistent "two-stage" behavior in modern decoder-only LLMs:

  • Stage 1 (Compression): In the first 1–3 layers, entropy decreases, suggesting the model is filtering noise and compressing input into compact representations.
  • Stage 2 (Expansion): From Layer 3 onwards, entropy progressively increases, suggesting the model is enriching features and expanding contextual information.
Entropy dynamics across layers showing the two-stage compression and expansion behavior in Llama-3.1-8B and Mistral-7B-v0.3.

2. The Pruning Criterion

EntroDrop focuses on Stage 2. It calculates the entropy increase ($\Delta H$) for each block. A low $\Delta H$ means the block isn't adding much "new" information to the stream and is therefore a prime candidate for pruning.

3. Estimation Techniques

Since calculating exact entropy for high-dimensional vectors is computationally expensive, the authors explored three estimation methods: Bucket-based (binning values), K-Nearest Neighbors (KNN), and Renyi entropy. They found that Bucket and KNN-based estimations provided the most reliable pruning signals.

4. Granularity

The method is flexible; it can be used for Layer Pruning (removing the entire Transformer block) or Attention Pruning (removing only the self-attention mechanism while keeping the MLP).

Experimental Setup

The authors used a diverse set of datasets for both calibration (to calculate entropy) and evaluation:

  • Calibration: C4, Wikitext2, and domain-specific sets like Law and Medicine.
  • Evaluation Benchmarks:
    • Commonsense Reasoning: PIQA, HellaSwag, WSC273, CSQA, WinoGrande.
  • Knowledge/Science: ARC-Easy, ARC-Challenge, OpenBookQA.
  • General/Subject Knowledge: MMLU, CMMLU, RACE.
  • Generation/Math: XSum (summarization) and GSM8K (math word problems).

Key Insights

  • Information vs. Geometry: The most significant finding is that entropy increase is a much more robust proxy for layer importance than cosine similarity. Cosine similarity often prunes layers that are actually essential for maintaining "plasticity" in the model.
  • The Compression-Expansion Cycle: The discovery of the two-stage entropy trend provides a new lens through which to view how LLMs process information. It suggests that the "middle" and "late" layers are where the heavy lifting of feature enrichment happens.
  • Attention is More Redundant than MLP: Confirming some prior work, the authors found that Attention blocks are generally safer to prune than MLP blocks. Removing 12 attention layers in Llama-3.1-8B resulted in much less damage than removing 12 full Transformer blocks.
  • Robustness to Data: Surprisingly, the entropy-based ranking of layers remains very consistent regardless of whether you use general text (C4) or specialized text (Medical/Law) for calibration. This makes the method highly practical for general-purpose deployment.

Key Results

  • Superior Performance: On Mistral-7B-v0.3, when pruning 12 blocks, EntroDrop (Attention) achieved an average score of 0.5255 across benchmarks, significantly higher than the cosine-based ShortGPT (0.3014) and LaCo (0.3110).
  • Efficiency Gains: Pruning 12 out of 32 layers in Llama-3.1-8B led to a theoretical 37.5% reduction in FLOPs and a near-linear decrease in actual inference latency.
  • Better Recoverability: In post-training experiments, models pruned with EntroDrop recovered their original accuracy much faster and more completely than those pruned with cosine similarity. For example, a 4-layer pruned Llama-3.1-8B recovered 98.8% of its original accuracy after a short fine-tuning session.

Limitations and Future Work

  • Architecture Specificity: While the two-stage entropy trend was observed in Llama, Mistral, Qwen, and DeepSeek, the authors note it is not universal across every single architecture examined.
  • Transition Point: The "Stage 1" to "Stage 2" transition point ($S_{start}$) currently needs to be determined empirically using a calibration dataset for each new model family.
  • Future Directions: The authors suggest exploring more sophisticated entropy estimators and applying EntroDrop to even larger architectures, such as Mixture-of-Experts (MoE) models, where redundancy might be even more prevalent.

Summary updated

BibTeX
@inproceedings{yang2026entropy,
  author = {Liangwei Yang and Yuhui Xu and Juntao Tan and Doyen Sahoo and silvio savarese and Caiming Xiong and Huan Wang and Shelby Heinecke},
  title = {{Entropy-Based Block Pruning for Efficient Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=bzQvL797PS},
}
Figure