A Free Lunch in LLM Compression: Revisiting Retraining after Pruning
Moritz Wagner, Christophe Roux, Max Zimmer, Sebastian Pokutta
TL;DR
This paper reevaluates post-pruning recovery for large language models by emphasizing local reconstruction over full retraining. It systematically analyzes propagation strategies, loss functions, and reconstruction granularity, finding that reconstructing attention and MLP components within each transformer block (block size 1/2) offers a Pareto-optimal balance of accuracy and memory usage. Surprisingly, per-matrix reconstruction underperforms, while full retraining often yields worse perplexity than locality-aware reconstruction; simple pruning methods like Wanda can even surpass complex approaches like SparseGPT when reconstruction is applied properly. Together, these results propose a practical, memory-efficient recipe for post-pruning recovery that challenges the prevailing wisdom of avoiding retraining in LLM compression.
Abstract
While Neural Network pruning typically requires retraining the model to recover pruning-induced performance degradation, state-of-the-art Large Language Models (LLMs) pruning methods instead solve a layer-wise mask selection and reconstruction problem on a small set of calibration data to avoid full retraining, as it is considered computationally infeasible for LLMs. Reconstructing single matrices in isolation has favorable properties, such as convexity of the objective and significantly reduced memory requirements compared to full retraining. In practice, however, reconstruction is often implemented at coarser granularities, e.g., reconstructing a whole transformer block against its dense activations instead of a single matrix. In this work, we study the key design choices when reconstructing or retraining the remaining weights after pruning. We conduct an extensive computational study on state-of-the-art GPT architectures, and report several surprising findings that challenge common intuitions about retraining after pruning. In particular, we observe a free lunch scenario: reconstructing attention and MLP components separately within each transformer block is nearly the most resource-efficient yet achieves the best perplexity. Most importantly, this Pareto-optimal setup achieves better performance than full retraining, despite requiring only a fraction of the memory. Furthermore, we demonstrate that simple and efficient pruning criteria such as Wanda can outperform much more complex approaches when the reconstruction step is properly executed, highlighting its importance. Our findings challenge the narrative that retraining should be avoided at all costs and provide important insights into post-pruning performance recovery for LLMs.
