Generation-Drift-Guided Block Pruning for Large Language Models

Zhiqi Huang, Heedong Kim, Lintong Zhang, Seong-Whan LeeNeurIPS 2026

TL;DR

Trimming down Large Language Models (LLMs) usually leaves them surprisingly good at multiple-choice tests, yet utterly broken when asked to write code or solve multi-step math problems. This paper diagnoses why—small errors compound disastrously over long stretches of text generation—and introduces GDPruner, a method that prunes neural network blocks based on how much their removal derails long-term text trajectories. Best of all, it achieves state-of-the-art speedups and reasoning preservation without needing any external calibration datasets.

What Problem Does This Paper Address?

To make massive LLMs cheaper and faster to run, researchers use structured pruning—surgically removing entire layers or computational blocks (like attention or MLP modules). Standard pruning methods decide what to cut by looking at local signals, such as how much a block changes a hidden state, or single-step perplexity on fixed text.

Here is the catch: those metrics mimic open-loop classification, where the model only makes one decision at the very end. Generative reasoning, however, is closed-loop and autoregressive—every token the model predicts gets fed right back in to predict the next one. A tiny perturbation from a missing block might not hurt a multiple-choice answer, but over dozens of generated tokens, those tiny errors snowball into repetitive loops, broken logic, and hallucinated math.

Figure 1: Comparison of generated outputs between existing pruning methods and GDPruner.

Methods

Instead of pruning whole layers, GDPruner operates at a finer granularity, treating individual Multi-Head Attention (MHA) and Multi-Layer Perceptron (MLP) blocks as separate candidates for removal. It works in three stages:

  1. Synthetic Probe Construction (Calibration-Free): Rather than relying on an external dataset (which can bias the pruned model), the original "dense" LLM is given a handful of generic seed prompts and generates its own 128-token continuations. These self-generated trajectories act as the ground-truth probes.
  2. Tail-Divergence Scoring: To test a candidate pruned model, both the dense and pruned models are fed the exact same self-generated prefixes. The authors measure generation drift—specifically, the forward Kullback–Leibler (KL) divergence from the dense model's next-token probability distribution to the pruned model's. Crucially, they only average this score over the tail positions (e.g., the second half of the sequence), where accumulated discrepancies are sharpest.
  3. Adaptive Block Search: Because removing Block A might suddenly make Block B critical, ranking blocks independently fails. GDPruner uses beam search to find the best combination of blocks to cut. To keep search fast, the beam width is adaptive: it stays narrow when drift increases smoothly, and automatically widens to explore more combinations whenever a step causes an anomalous spike in drift.

Datasets

Because GDPruner generates its own synthetic probes, no external calibration or training datasets are used for pruning, and no new benchmarks are introduced. For evaluation, the authors test across nine established benchmarks split into two categories:

  • Classification (Multiple-Choice): Winogrande, PIQA, HellaSwag, ARC-Easy, ARC-Challenge, and MMLU.
  • Generative Reasoning: GSM8K and Math500 (multi-step math), plus HumanEval (code generation).

Key Insights and Ideas

  • Redundancy depends on the time horizon: A module that looks completely redundant during a one-step classification task can be load-bearing for multi-step reasoning. Preserving long-range trajectory stability is a much truer test of whether a block is safe to delete.
  • Look at the tail, not the start: Pruning-induced divergence grows over decoding steps before plateauing later in the sequence. Averaging drift over the whole sequence dilutes the warning signal with noisy early tokens; focusing strictly on a compact tail window yields a much cleaner pruning criterion.
  • Sub-layers within the same layer behave very differently: Early layers and the final layer cause massive drift if touched, while middle layers are more forgiving. However, even inside a single layer, an MLP block might induce huge generation drift while its partner MHA block induces almost none—explaining why coarse layer-pruning leaves performance on the table.
Empirical analysis showing generation drift rising at later decoding positions (left) and varying sharply between MHA and MLP blocks within the same layers (middle and right).

Key Results

Evaluated on Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct at pruning ratios from 10% to 25%, GDPruner consistently outperforms structured pruning baselines (ShortGPT, SLEB, LLMDrop, and BlockPruner), especially as pruning gets more aggressive:

  • Superior Reasoning Retention: At 20% pruning on Qwen2.5-7B-Instruct, GDPruner retains 70.3% of the dense model's overall performance (49.36% average score), beating the next-best baseline (BlockPruner at 58.4% relative retention). On the generative subset (GSM8K, Math500, HumanEval), GDPruner averages 19.47% accuracy compared to BlockPruner's 9.94% and LLMDrop's 0.20%.
  • Real-World Speedups: Because it removes entire MHA and MLP blocks, GDPruner translates directly into wall-clock acceleration without custom sparse kernels. At 20% sparsity, it delivers a 1.21× inference speedup on both Llama-3.1-8B (38.72 tokens/sec) and Qwen2.5-7B (42.65 tokens/sec) on a single RTX A5000 GPU while maintaining the highest accuracy.
  • Self-Generated Probes Matter: In ablations on Llama-3.1-8B (20% pruned), swapping self-generated probes for random probes caused the single largest drop in average score (−8.14 points), proving that probing the model's own natural decoding path is essential.

Limitations and Future Work

Because GDPruner relies entirely on the dense model's self-generated trajectories rather than external ground-truth corpora, its pruning signal is only as good as the base model's outputs. The authors note that if the original dense model generates inaccurate or monotonous text, GDPruner will faithfully preserve that flawed behavior rather than steering the pruned model toward task-correct or domain-specific generation. Explicit plans for future work are not discussed in the paper, beyond positioning generation-aware pruning as a promising direction for efficient LLM deployment.

Summary updated

Abstract

Pruning reduces the model size and inference cost of large language models (LLMs), yet preserving performance across diverse downstream tasks remains challenging. Existing structured pruning methods commonly rely on local discrepancy measures or teacher-forced predictive criteria, such as Block Influence (BI) and perplexity (PPL). While these methods are effective on classification benchmarks, the resulting pruned models often degrade severely on generative reasoning tasks. We study redundancy in Transformer-based models and observe that pruning-induced generation drift is strongly correlated with the functional importance of modules, suggesting a more faithful criterion for identifying redundant modules. Based on this insight, we propose GDPruner, a calibration-data-free, generation-drift-guided block pruning method. GDPruner constructs lightweight self-generated probe trajectories, estimates module importance using tail-position generation drift, and removes redundant modules through adaptive search. Extensive experiments show that GDPruner achieves the best overall performance compared with existing structured pruning baselines in most settings, with particularly clear gains on complex generative reasoning tasks, offering a promising direction for generation-aware LLM pruning.
BibTeX
@inproceedings{huang2026generation,
  author = {Zhiqi Huang and Heedong Kim and Lintong Zhang and Seong-Whan Lee},
  title = {{Generation-Drift-Guided Block Pruning for Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UqSplWfSWJ},
}
Figure