COMPOT: Calibration-Optimized Matrix Procrustes Orthogonalization for Transformers Compression

Denis Makhov, Dmitriy Shopkhoev, Magauiya Zhussip, Ammar Ali, Baher Mohammad, Stamatios Lefkimmiatis

TL;DR

COMPOT introduces a training-free post-training compression framework for Transformers that leverages orthogonal sparse dictionary learning. By enforcing an orthogonality constraint on the dictionary, it replaces slow, iterative optimization with fast, closed-form matrix updates, achieving a superior quality-compression trade-off compared to standard SVD methods. Additionally, its one-shot dynamic allocation strategy adaptively distributes compression rates across heterogeneous layers without expensive iterative searches.

What Problem Does This Paper Address?

As Transformer-based foundation models scale to billions of parameters, deploying them becomes increasingly difficult due to memory, bandwidth, and compute constraints. Post-training compression techniques like low-rank matrix factorization—specifically Singular Value Decomposition (SVD)—are widely used to alleviate this. However, SVD methods enforce a single shared subspace per weight matrix, which severely degrades model accuracy at moderate-to-high compression rates because different columns often lie in different local subspaces.

Sparse dictionary learning offers a more flexible "union-of-subspaces" representation, allowing different columns to select distinct subsets of basis vectors (atoms). Unfortunately, traditional dictionary learning pipelines (like K-SVD combined with Orthogonal Matching Pursuit) rely on expensive, iterative updates. This makes them computationally prohibitive at a billion-parameter scale.

Methods

The authors propose COMPOT (Calibration-Optimized Matrix Procrustes Orthogonalization for Transformers) to bring the flexibility of dictionary learning to large models without the computational hangover.

The framework operates in three main phases:

  1. Data-Aware Whitening: COMPOT uses a small calibration dataset to compute a Gram matrix of the layer activations. By applying a Cholesky decomposition, it transforms the weight matrix into a whitened space where optimizing the reconstruction error directly minimizes the functional output mismatch.
  2. Orthogonal Dictionary Factorization: The core mathematical trick is restricting the dictionary ($D_O$) to be complete or undercomplete and strictly orthogonal ($D_O^\top D_O = I$). This structural constraint simplifies the optimization problem into two alternating, closed-form steps:
  3. Sparse Coding: Reduces to a single-step analytical hard-thresholding operation, completely bypassing iterative pursuit algorithms.
  4. Dictionary Update: Becomes a classical Orthogonal Procrustes problem, which is solved instantly using a thin SVD.
  5. One-Shot Dynamic Allocation: To handle the varying sensitivity of different Transformer layers, COMPOT normalizes each weight matrix by its Frobenius norm, pools all singular values into a global spectrum, and truncates the smallest values globally. This deterministic strategy satisfies a model-wide budget while enforcing guards to prevent under- or over-compression.
Comparison of low-rank decomposition, dictionary learning, and COMPOT
Overview of the COMPOT framework pipeline

Datasets

COMPOT was evaluated across multiple model families (Llama, OPT, Qwen) and modalities using the following datasets:

  • Calibration: RefinedWeb (256 sequences) for language models, MathVerse for vision-language models, and LibriSpeech clean validation data for audio models.
  • Language Benchmarks: WikiText-2, C4, PIQA, HellaSwag, OpenAI LAMBADA, ARC-easy, ARC-challenge, SciQ, RACE, and MMLU.
  • Advanced LLM Benchmarks: Open LLM Leaderboard v2 (including IFEval, MATH Hard, GPQA, BBH, and MUSR).
  • Vision-Language Benchmarks: MMMU, OCRBench, RealWorldQA, and MMStar.
  • Audio Benchmarks: LibriSpeech test-clean and test-other (evaluated via Word Error Rate on Whisper models).

Key Insights and Ideas

  • The Power of Orthogonality Constraints: While imposing orthogonality on a learned dictionary might seem restrictive, it unlocks exact, analytical updates. This eliminates the massive computational overhead typical of sparse coding.
  • Union-of-Subspaces Superiority: Allowing columns of a weight matrix to live in different local subspaces preserves significantly more functional knowledge than forcing them into a single SVD-derived subspace.
  • Fair Global Pooling via Normalization: Normalizing weight matrices by their Frobenius norm equalizes the scale of singular values across different layers. This turns a complex layer-wise rank allocation problem into a simple, global sorting task.

Key Results

  • Massive Speedups: COMPOT achieves an average 24.23x wall-clock speedup over K-SVD-based dictionary learning (CoSpaDi), making dictionary learning practical for large-scale models.
  • State-of-the-Art Factorization: COMPOT consistently outperforms strong SVD baselines (SVD-LLM, SVD-LLM V2, Dobi-SVD) and structured pruning methods (ReplaceMe, LLM-Pruner) across language, audio, and vision-language tasks.
  • Quantization Synergy: COMPOT composes exceptionally well with post-training quantization. Applying 4-bit GPTQ on top of COMPOT factorization on Llama-7B yielded a WikiText-2 perplexity of 9.62, significantly outperforming GPTQ-only (16.28) and SVD-LLM V2 + GPTQ (9.97) under identical memory budgets.
  • Cross-Modal Robustness: On Whisper Large V3 at a 0.2 compression ratio, COMPOT maintained a Word Error Rate (WER) of 2.46 on test-clean, while SVD-LLM degraded to 4.12.

Limitations and Future Work

  • Calibration Data Dependence: Like all activation-aware methods, COMPOT's performance depends on how well the calibration dataset represents the downstream data distribution.
  • Gram Matrix Conditioning: The whitening step assumes the activation Gram matrix is well-conditioned and positive-definite. Ill-conditioned matrices require alternative SVD-based regularizations that can impact robustness.
  • Fixed Sparsity Structure: The current implementation uses a rigid, predetermined sparsity pattern during factorization. The authors note that adding a lightweight "healing" step to dynamically refine or learn the sparsity structure itself is a promising direction for future parameter savings.

Summary updated

BibTeX
@inproceedings{makhov2026compot,
  author = {Denis Makhov and Dmitriy Shopkhoev and Magauiya Zhussip and Ammar Ali and Baher Mohammad and Stamatios Lefkimmiatis},
  title = {{COMPOT: Calibration-Optimized Matrix Procrustes Orthogonalization for Transformers Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=eOWznbUyhS},
}
Figure