Abstract
Pruning Large Language Models (LLMs) typically relies on minimizing reconstruction error to ensure a sparse model mimics its dense counterpart. However, this research identifies a critical "overfitting paradox": while advanced optimization techniques can reduce reconstruction error by over 90%, aggressive minimization often degrades the model's general intelligence. To address this, we introduce block-level optimization methods and a strategy utilizing self-generated calibration data to ensure pruned models maintain robust generalization across diverse tasks.
Introduction
As Large Language Models (LLMs) continue to scale, their computational and memory requirements pose significant barriers to deployment on consumer-grade hardware. Pruning—the systematic removal of redundant weights—has emerged as a primary solution to enhance efficiency. The current "gold standard" for LLM pruning follows a divide-and-conquer approach: the model is decomposed into individual layers, which are pruned and then adjusted so their outputs match the original dense layer's output. This process is known as reconstruction error minimization.
Despite its popularity, this layer-wise approach suffers from two fundamental flaws: compounding errors and the calibration gap. This paper explores these pitfalls and proposes a new framework for more effective LLM compression.
The Limitations of Layer-wise Pruning
1. Compounding Errors (The "Telephone Game" Effect)
In standard pruning, each layer is optimized based on the output of the preceding layer, which has already been pruned and is therefore noisy. This creates a cumulative effect similar to a game of "telephone," where small mismatches in early layers snowball into massive distortions by the time the signal reaches the final output. By the end of the model, the internal representations may no longer resemble the original dense model's logic.
2. The Calibration Gap
Pruning typically relies on a very small "calibration" dataset (often as few as 256 samples) to guide weight adjustments. The authors discovered that minimizing error too aggressively on this tiny set leads to severe overfitting. The pruned model becomes hyper-specialized to the calibration samples but loses its ability to perform basic language reasoning or maintain general knowledge.
Proposed Methodology: Advanced Reconstruction Pillars
To overcome these limitations, the authors propose three optimization strategies and a novel data augmentation technique:
- Block-wise Reconstruction (BR): Instead of optimizing a single layer in isolation, the framework optimizes an entire Transformer block. This provides a larger parameter space for the weights to adjust and compensate for the loss of information.
- Global Propagation (GP): To halt the accumulation of noise, GP uses the clean, original inputs from the dense model for each block during the optimization phase. This acts as a "reset button," ensuring each block is reconstructed relative to the ground-truth signal of the original model.
- Cross-block Reconstruction (CR): This technique "stitches" blocks together by optimizing overlapping segments of the model, ensuring smooth transitions between pruned sub-sections.
- Self-Generated Calibration Data: To bridge the calibration gap, the authors use the LLM itself to generate thousands of synthetic data points. By reconstructing the model based on its own internal knowledge rather than a small external sample, the pruned model retains significantly better generalization capabilities.
The Overfitting Paradox
One of the paper's most striking findings is the "Overfitting Paradox." In experiments with LLaMA-7B, the authors found that the most technically accurate reconstruction—achieved through Cross-block optimization—actually resulted in the worst downstream performance. The model achieved near-zero reconstruction error on the calibration set but failed at general language tasks. This suggests that "perfect" reconstruction on limited data is a trap; some degree of error is necessary to prevent the model from losing its general-purpose utility.
Results and Discussion
The researchers evaluated these methods on LLaMA-7B and OPT-125M across several benchmarks, including WikiText2 for perplexity and zero-shot tasks like BoolQ and HellaSwag.
- Error Reduction: The combination of BR, GP, and CR reduced final reconstruction error by 87% to 94% compared to standard layer-wise baselines.
- Performance Gains: Utilizing Block-wise Reconstruction and Global Propagation consistently improved perplexity across multiple pruning methods, including SparseGPT and Wanda.
- Synthetic Data Efficacy: Increasing the volume of self-generated calibration data (up to 2048 samples) led to a steady decrease in both test error and perplexity, effectively mitigating the overfitting caused by aggressive optimization.
Conclusion and Future Work
This research demonstrates that while minimizing reconstruction error is vital for LLM pruning, it must be balanced with strategies that prioritize generalization. The introduction of block-level optimization and self-generated calibration data provides a more robust path toward efficient LLMs.
Future work will focus on scaling these techniques to massive 70B+ parameter models and Mixture-of-Experts (MoE) architectures. Additionally, the authors aim to refine the quality of synthetic calibration data, as the current generation process occasionally produces low-utility "nonsense" or code snippets that do not contribute to general language modeling performance.
Summary updated