CORP: Closed-Form One-shot Representation-Preserving Structured Pruning for Transformers
Boxiang Zhang, Baijian Yang
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Mixture-of-Experts Optimization · Type: new method · Keywords: structured pruning, transformer compression, representation preservation, ridge regression, post-training pruning
Summary
CORP is a closed-form one-shot structured pruning method that removes MLP dimensions and attention substructures using only unlabeled calibration data and compensates them via ridge regression to preserve model accuracy.
Explained to a 5-year-old
Transformers are big computer programs that are very smart but need a lot of memory. We want to make them smaller so they can run faster on small devices. The new method looks at the model and finds parts that can be removed without making it wrong. It uses a simple math trick to change the remaining parts so they still work well. This lets the model be smaller and faster while keeping its accuracy.
Explained to a 5-year-old, longer
Transformers are computer programs that can understand and generate text, but they are huge and need a lot of memory. Because they are big, they can be slow and use a lot of power. Researchers want to make them smaller so they can run quickly on phones or small robots. The new method looks at the model and decides which parts are not needed for good performance. It assumes that the parts being removed can be expressed as simple combinations of the parts that stay. Using only a small set of unlabeled data, it calculates how to adjust the remaining parts so the model still works well. This adjustment is done with a mathematical technique called ridge regression, which finds the best way to compensate for the removed parts. After this one-shot process, the model becomes much smaller while keeping its accuracy. The result is a faster, more efficient model that can be deployed without any extra training or labels. This makes it possible to use powerful AI on devices that have limited resources.
For a technical reader
The paper presents a method that prunes transformer layers in a single step by modeling removed components as linear functions of the remaining ones. Using only unlabeled calibration data, it computes closed-form ridge regression solutions to adjust the remaining weights, preserving accuracy. Experiments on ImageNet with DeiT show that aggressive pruning (50% of MLP and attention structures) retains high Top-1 accuracy (83.27%) without any fine-tuning.
Problem
Adapting Transformers for efficient inference via structured pruning typically requires retraining or multi-stage optimization, which hinders rapid deployment. This creates a need for a post-training pruning method that can achieve high accuracy without any labels, gradients, or fine-tuning.
Method
The approach formulates pruning as a representation recovery problem, modeling removed components as affine functions of retained ones and solving for compensation weights using closed-form ridge regression. This allows the removal of MLP dimensions and attention substructures in a single pass using only unlabeled calibration data, without requiring gradients or fine-tuning.
Results
The approach retains high accuracy under aggressive sparsity, achieving 83.27% Top-1 accuracy on DeiT-Huge after pruning 50% of both MLP and attention structures, whereas uncompensated pruning causes severe accuracy loss.
Contributions
A closed-form one-shot structured pruning approach that eliminates the need for labels, gradients, or fine-tuning by modeling removed components as affine functions of retained ones and solving for compensation via ridge regression, enabling rapid deployment of pruned Transformers while preserving performance.
Limitations and assumptions
Requires only unlabeled calibration data and assumes removed components can be approximated as affine functions of retained components.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction