Rethinking Pruning Large Language Models: Benefits and Pitfalls of Reconstruction Error Minimization

Sungbin Shin, Wonpyo Park, Jaeho Lee, Namhoon Lee

Abstract

This work suggests fundamentally rethinking the current practice of pruning large language models (LLMs). The way it is done is by divide and conquer: split the model into submodels, sequentially prune them, and reconstruct predictions of the dense counterparts on small calibration data one at a time; the final model is obtained simply by putting the resulting sparse submodels together. While this approach enables pruning under memory constraints, it generates high reconstruction errors. In this work, we first present an array of reconstruction techniques that can significantly reduce this error by more than 90%. Unwittingly, however, we discover that minimizing reconstruction error is not always ideal and can overfit the given calibration data, resulting in rather increased language perplexity and poor performance at downstream tasks. We find out that a strategy of self-generating calibration data can mitigate this trade-off between reconstruction and generalization, suggesting new directions in the presence of both benefits and pitfalls of reconstruction for pruning LLMs.

Introduction

As Large Language Models (LLMs) continue to scale, the computational cost of inference becomes a significant barrier to deployment. Pruning—removing redundant weights—offers a solution, but pruning models with tens of billions of parameters is often computationally infeasible in a single step. To address this, researchers typically employ "post-training pruning," a divide-and-conquer strategy where the model is split into smaller sub-units (like layers), pruned, and then "reconstructed" to match the original model's output using a small calibration dataset.

However, this standard approach faces two critical hurdles: compounding errors, where small discrepancies in early layers snowball through the network, and the overfitting trap, where the model perfectly reconstructs the output for the tiny calibration set (often just 256 samples) while losing its ability to generalize to new data.

Methodology

To refine the pruning process, the authors introduce three optimization "pillars" designed to stabilize the model and reduce error accumulation:

  • Block-wise Reconstruction (BR): Instead of optimizing individual layers, the process optimizes entire Transformer blocks, allowing weights to compensate for each other more effectively.
  • Global Propagation (GP): To prevent error snowballing, the intermediate outputs of the original dense model are used as targets for each block, rather than the output of the previously pruned block.
  • Cross-block Reconstruction (CR): This technique "stitches" blocks together by optimizing overlapping segments, ensuring smoother transitions across the model.
The proposed framework incorporates Global Propagation (GP), Block-wise Reconstruction (BR), and Cross-block Reconstruction (CR) to optimize the pruning process.

To combat overfitting, the authors propose using Self-Generated Calibration Data. By using the LLM itself to generate thousands of synthetic calibration samples, the diversity of the training data is increased without requiring massive external datasets.

Key Insights and Results

The most striking finding of this research is the "Error vs. Generalization" paradox: the lowest reconstruction error on calibration data does not necessarily yield the best model. While the proposed techniques reduced final reconstruction error by 87% to 94% compared to standard layer-wise baselines, aggressive optimization (like CR) sometimes caused test-set perplexity to skyrocket.

Reconstruction error accumulates across blocks (top), but can be mitigated. Self-generated data (green) significantly improves generalization metrics like perplexity and task error compared to standard calibration (red).

Global Propagation (GP) acted as a vital "reset button," significantly stabilizing the final model by preventing sequential errors from garbling the output. Furthermore, by using 2,048 self-generated samples, the authors were able to reverse performance degradation, leading to superior zero-shot accuracy across seven downstream benchmarks (including BoolQ and ARC) and lower test-set perplexity on datasets like WikiText2 and C4.

Conclusion and Future Work

This work highlights that while reconstruction error minimization is a powerful tool for LLM pruning, it must be balanced against generalization. The use of self-generated data provides a promising path forward for maintaining performance in data-scarce environments. Future research will explore scaling these techniques to even larger models (e.g., 70B parameters) and refining the quality of synthetic data to filter out repetitive or low-utility content.

Summary updated

BibTeX
@inproceedings{shin2024rethinking,
  author = {Sungbin Shin and Wonpyo Park and Jaeho Lee and Namhoon Lee},
  title = {{Rethinking Pruning Large Language Models: Benefits and Pitfalls of Reconstruction Error Minimization}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=auJQGTHJGw},
}
Figure