TL;DR
Structured pruning—removing entire columns of weights to speed up Large Language Models (LLMs)—often causes massive output errors that are hard to fix without overfitting. RCPU (Rotation-Constrained Parameter Update) solves this by using a "geometry-preserving" rotation to re-align pruned weights with their original outputs. This significantly improves model accuracy and perplexity over standard baselines without requiring expensive retraining.
The Challenge of Structured Pruning
As LLMs grow, the need to compress them for deployment on mobile and embedded devices becomes critical. Structured pruning is a popular technique because it removes entire rows or columns of weight matrices, leading to direct hardware speedups. However, removing these components creates a "mismatch" between the original and pruned model outputs.
The standard way to fix this is to use a small "calibration" dataset to adjust the remaining weights (often via least-squares fitting). The catch? LLMs are so complex and calibration sets are so small (often just 128 samples) that standard fitting methods quickly overfit. They destructively modify the pretrained weights to perfectly match the tiny calibration set, but in doing so, they warp the model's internal representation space and destroy the general knowledge the model learned during pretraining.
The RCPU Solution
The authors introduce RCPU, a method designed to compensate for pruning errors without destroying the model's learned geometry. It consists of two main innovations:
- Rotation-Constrained Compensation: Instead of allowing the weights to change in any direction to minimize error, RCPU restricts the update to an orthogonal rotation. By formulating the recovery as an Orthogonal Procrustes problem, the authors find a rotation matrix that aligns the pruned subspace with the original outputs. Because rotations preserve the "geometry" of the data—specifically the lengths (norms) and angles (inner products) of the representation vectors—the model retains its structural integrity and is much less likely to overfit.
- Variance-Aware Importance Scoring: Not all columns are created equal. RCPU uses a new scoring rule to decide which columns to keep. It looks at weight magnitude, input scale, and—crucially—input variance. Dimensions with high variance across tokens are more likely to contribute to the "principal directions" of the model's output, making them vital to keep for a successful rotation-based recovery.
Experimental Setup
The researchers evaluated RCPU using:
- Calibration: WikiText-2 (using small sets of 128 or 512 samples).
- Evaluation (Perplexity): WikiText-2.
- Evaluation (Zero-shot Accuracy): A suite of seven language understanding benchmarks, including BoolQ, PIQA, HellaSwag, WinoGrande, ARC (Easy and Challenge), and OpenBookQA.
- Models: Llama-7B, Llama-2-13B, and Vicuna-7B.
Key Insights and Results
- Constraint as Regularization: By limiting the update to a rotation, the authors drastically reduce the "degrees of freedom" in the optimization. While a standard Ridge regression update might have billions of ways to change, a rotation is much more constrained, acting as a powerful natural regularizer that prevents the model from "forgetting" its pretraining.
- Hyperparameter-Free Stability: Unlike Ridge regression, which requires a computationally expensive grid search to find the best regularization strength, RCPU has no such hyperparameters. It is analytically derived and stable across different models and pruning ratios.
- Superior Perplexity & Accuracy: On Llama-7B, RCPU consistently achieved lower perplexity (PPL) than popular baselines like WANDA-sp and FLAP. For instance, at 20% pruning, RCPU reached a PPL of ~14.40, while WANDA-sp lagged at ~16.70. Furthermore, RCPU outperformed FLAP in mean zero-shot accuracy across all tested pruning ratios (10%, 20%, and 30%). On Llama-2-13B at 20% pruning, RCPU maintained a mean accuracy of 64.55%, significantly higher than SliceGPT (58.64%).
- Efficiency: Despite the sophisticated math, RCPU is fast. Pruning a layer takes less than 10 seconds on a single NVIDIA A100 GPU, making it practical for large-scale models.
Limitations and Future Work
- Layer-wise Greediness: RCPU operates "layer-wise," meaning it optimizes each layer in isolation. While efficient, it doesn't account for how errors might cancel out or compound across the entire network globally.
- Pruning Ceiling: Like all current pruning methods, performance begins to drop more sharply once pruning exceeds 30%. Finding the "breaking point" where rotation can no longer compensate for lost dimensions remains an open question.
- Integration: The authors suggest that future work could explore combining RCPU with other compression techniques like quantization to achieve even smaller, faster models.
Summary updated