CORP: Closed-Form One-shot Representation-Preserving Structured Pruning for Transformers

Boxiang Zhang, Baijian YangNeurIPS 2026

TL;DR

Shrinking massive Transformers so they actually run faster on standard GPUs usually requires expensive retraining—which is tough if you don’t have the compute, labels, or original training pipeline. CORP introduces a fast, math-driven "one-shot" pruning method that slices away up to half of a model's bulk in a single forward pass—no gradients, no labels, and no fine-tuning required. By using simple linear algebra to fold the "ghosts" of deleted neurons back into the surviving weights, it preserves accuracy while delivering real-world speedups right out of the box.

What Problem Does This Paper Address?

If you want to make a Transformer smaller and faster, you generally look to pruning. Unstructured pruning plucks out individual weights like a game of Jenga; models stay accurate, but standard GPUs hate irregular sparse matrices, so you rarely get actual speedups. Structured pruning—chopping out entire channels or attention dimensions—gives you smaller, dense matrices and immediate speedups, but there's a catch: if you just delete whole chunks of a network, accuracy falls off a cliff.

Traditionally, you fix that accuracy drop by fine-tuning the pruned model. But in post-training deployment scenarios, you might not have access to labeled data, gradients, or GPU days for iterative optimization. In this strict one-shot pruning setting (a single pass over a tiny unlabeled calibration set), naive structured pruning fails because deleting components introduces systematic mathematical errors that snowball from layer to layer.

Methods

Instead of inventing a labyrinthine new metric to decide which parts of the network to cut, the authors argue that how you clean up the mess afterward matters much more. CORP reframes pruning as a layer-local representation recovery problem.

Figure 1: Illustration of CORP. Pruning removes structured components, while CORP reconstructs the missing contribution using closed-form compensation folded into the remaining weights. (a) Attention head dimension pruning removes channel dimensions in the query and key projections. (b) MLP structured pruning removes entire hidden dimensions between the two linear layers.

Here is the recipe, executed in a single forward pass of the unpruned model over unlabeled data:

  1. Simple Ranking (Standard): CORP uses straightforward data-driven scores—combining activation energy and weight magnitude for MLP channels, and expected logit energy for attention Query/Key ($Q/K$) dimensions—to flag the least important components. (Value projections are left untouched due to complex cross-head coupling).
  2. Closed-Form Compensation (Novel): Because internal representations are heavily redundant, the activations you just threw away can actually be predicted from the ones you kept!
  3. For MLPs: CORP models pruned hidden activations as an affine function ($Bx_S + c$) of the surviving activations using closed-form ridge regression.
  4. For Attention: CORP introduces a novel logit-space compensator, solving a ridge system to approximate the missing $Q_P K_P^\top$ attention scores using a bilinear interaction of the surviving queries and keys ($Q_S M K_S^\top$).
  5. Weight Folding: Because these compensations are purely linear/bilinear, the math folds directly into the surviving weight matrices (via matrix addition for MLPs and Singular Value Decomposition for $Q/K$). At inference time, there are zero extra branches or parameters—just smaller, denser matrices.

Because every layer and head is solved independently from cached activations, all ridge regressions run in parallel, taking less than 1% of the total calibration runtime.

Datasets

No new benchmarks are introduced. Because CORP is training-free, datasets are used strictly for unlabeled calibration (e.g., 4,000 images by default for vision) and evaluation:

  • Vision Classification: ImageNet-1k (evaluating ViT and DeiT families).
  • Dense Vision Tasks: NYU Depth V2 (depth estimation) and ADE20K (semantic segmentation), using a mixed 6,000-image unlabeled calibration set on DINOv2 backbones.
  • Language Modeling: C4 (128 unlabeled sequences for calibration) and WikiText-2 (evaluating perplexity on OPT-1.3B).

Key Insights and Ideas

  • Compensation beats fancy ranking: Pruned networks don't just collapse because you cut the "wrong" neurons; they collapse because cutting any structured chunk leaves an uncompensated bias and variance shift. Fixing that residual error linearly is shockingly effective.
  • Bigger models shrug off the knife: Redundancy scales with size. Under 50% joint sparsity, tiny models struggle, whereas DeiT-Huge barely flinches—suggesting giant Transformers store heavily overlapping, linearly recoverable representations.
  • Decoupling unlocks speed: Refusing to model nonlinear interactions between layers sounds risky, yet turning the global optimization problem into dozens of tiny, independent quadratic equations makes the whole process closed-form, parallelizable, and nearly instantaneous.

Key Results

Top-1 ImageNet accuracy across sparsity levels, showing dramatic accuracy collapse without compensation.

Figure 2: Top-1 ImageNet accuracy vs. sparsity.
  • Aggressive Sparsity on Vision: Pruning 50% of both MLP channels and $Q/K$ dimensions on DeiT-Huge yields 83.24% Top-1 accuracy on ImageNet (down just 1.73 points from the 84.97% baseline), cutting FLOPs by 42.9%, parameters by 41.5%, and delivering a 1.64× real-world GPU throughput speedup without custom sparse kernels. At 70% joint sparsity, compensation rescues DeiT-Huge from 43.8% up to 75.4% accuracy, hitting a 2.13× speedup.
  • Beating Finetuned & Second-Order Rivals: On ViT-Large (50% sparsity), CORP beats concurrent linear-reconstruction work (GRAIL) by +7.51 points on attention and +5.67 points on MLPs, and even outperforms 2:4 semi-structured Hessian-free optimization (SNOWS). Remarkably, on ViT-B, CORP matches the accuracy retention of DC-ViT—a method that relies on few-shot feature-mimicking fine-tuning—within 0.05 points.
  • Transferability: Pruning 50% of a DINOv2-Huge backbone (leaving task heads untouched) keeps ADE20K segmentation nearly intact (mIoU 0.4428 $\rightarrow$ 0.4367) and slightly improves NYUv2 depth RMSE (0.3308 $\rightarrow$ 0.3167). On OPT-1.3B (30% sparsity), WikiText-2 perplexity rises modestly from 14.60 to 18.53 (Attention) and 19.36 (MLP).

Limitations and Future Work

  • Accumulated Layer Drift: Because every module is compensated independently using statistics from the original unpruned network, small residual errors aren't corrected downstream and can snowball at extreme joint sparsities (70%+).
  • Uniform Sparsity: CORP currently applies the exact same pruning percentage to every layer. Using per-layer effective ranks to prune redundant layers harder and sensitive layers gently is a natural next step.
  • Scope & Scale: Value ($V$) and Output projections remain unpruned, LLM verification stops at 1.3B parameters, performance could dip if calibration data severely mismatches deployment data, and the interaction between float32 ridge compensation and low-bit quantization remains unexplored.

Summary updated

Abstract

Transformers achieve strong accuracy but incur high compute and memory cost. Structured pruning reduces inference cost, but most methods rely on retraining or multi-stage optimization, which limits post-training deployment. We propose CORP, a closed-form one-shot structured pruning method that removes MLP dimensions and attention substructures using only unlabeled calibration data without gradients or fine-tuning. CORP formulates structured pruning as a representation recovery problem. It models removed components as affine functions of retained components and derives closed-form ridge regression solutions that fold compensation into model weights. This minimizes a layer-local affine/logit reconstruction objective under the calibration distribution. Experiments on ImageNet with DeiT reveal strong redundancy in both MLP and attention representations. With CORP, models retain high accuracy under aggressive sparsity. On DeiT-Huge, CORP achieves 83.24% Top-1 accuracy after pruning 50% of both MLP and attention structures.
BibTeX
@inproceedings{zhang2026corp,
  author = {Boxiang Zhang and Baijian Yang},
  title = {{CORP: Closed-Form One-shot Representation-Preserving Structured Pruning for Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=echydG0ikq},
}
Figure