TL;DR
GeoPair is a training-free framework for Transformer compression that eliminates the need for expensive fine-tuning by exploiting redundancies across different layers. By replacing traditional heuristic layer-merging with exact mathematical optimization—specifically global graph matching and a generalized Sylvester equation solver—it allows layers to share parameters without distorting their unique activation geometries. The result is state-of-the-art compression performance that spans text, video, and audio models.
What Problem Does This Paper Address?
As Transformer models scale up, their massive memory footprints and computational overhead make deployment in resource-constrained environments incredibly difficult. Post-training compression via matrix factorization is a popular remedy, but conventional approaches compress each layer in isolation, completely missing the substantial structural redundancies that naturally occur across deep Transformer stacks.
To exploit these redundancies, recent methods have tried "basis sharing"—grouping layers together to share a common dictionary. However, accurate factorization requires a "whitening transform" calibrated to each layer's specific activation distribution. Because these distributions vary wildly across different depths of a network, existing methods resort to heuristically averaging activation covariances and forcing adjacent layers together. This lazy averaging distorts the unique geometric properties of each layer's activations, leading to severe accuracy drops at high compression ratios.
Methods
GeoPair introduces a principled, three-stage optimization pipeline that allows layers to share a dictionary while strictly preserving their individual activation geometries:
- Global Layer Pairing via Graph Matching: Instead of blindly pairing adjacent layers, GeoPair calculates a scale-invariant distance metric between all candidate weight matrices in the network. It treats this as a maximum-weight matching problem on a complete graph and solves it optimally using Edmonds’ Blossom algorithm. This uncovers highly compatible, non-local layer alignments.
- Geometry-Preserving Shared Dictionary Learning: To avoid the destructive practice of averaging covariances, the authors formulate the joint dictionary update as a two-term generalized Sylvester equation. Using a simultaneous diagonalization strategy, they derive an exact, closed-form solution that allows a single shared dictionary to perfectly respect two entirely distinct whitening spaces.
- Sparse Coefficient Optimization: To push compression boundaries even further, they integrate Hard Thresholding Pursuit (HTP) powered by a conjugate gradient linear solver. This enforces structured sparsity on the coefficient matrices dynamically, without needing heuristic budget allocations.
Datasets
The authors rigorously evaluated GeoPair across multiple architectures, scales, and modalities:
- Language Models: Evaluated on Llama-2 (7B), Llama-3 (1B, 8B), Qwen-3 (8B, 32B), Gemma-3 (12B), and Phi-4 (14B).
- Downstream Text Benchmarks: Standard zero-shot tasks (PIQA, HellaSwag, OpenAI LAMBADA, ARC, SciQ, RACE, MMLU) alongside advanced reasoning suites (IFEval, BBH, GPQA, MuSR, MMLU-Pro).
- Video Generation: Compressed the Wan2.2 5B model, evaluated using X-CLIP on the Rapidata prompt dataset.
- Audio Generation: Compressed the VibeVoice 1.5B model, evaluated on the MLS dataset.
Key Insights and Ideas
- Adjacency is a Lazy Heuristic: Layers do not need to be next to each other to share underlying structural features. Data-driven graph matching reveals that non-local layer pairings often yield significantly better compression compatibility.
- Preservation Over Aggregation: You do not have to compromise a layer's activation geometry to achieve parameter sharing. By leveraging the elegant mathematics of the Sylvester equation, a shared representation can simultaneously satisfy two separate, un-averaged activation distributions.
- Sparsity Stabilizes Factorization: Introducing structured sparsity via HTP acts as a regularizer, recovering substantial accuracy in aggressive compression regimes where dense low-rank approximations fall apart.
Key Results
- Superior Accuracy & Perplexity: Across varying compression intensities, GeoPair consistently outperformed independent structured decompositions and alternative pairwise factorizations like Basis Sharing and CoSpaDi.
- High Fidelity Recovery: In language modeling, the full pipeline (Sylv + OG + SP) successfully recovered over 90% of the uncompressed baseline accuracy without a single step of backpropagation or fine-tuning.
- Cross-Modal Robustness:
- For video generation (Wan2.2 5B), GeoPair maintained near-baseline performance, with the average CLIP score dropping by a mere 2.5% even under heavy compression.
- For audio generation (VibeVoice 1.5B), where traditional Basis Sharing resulted in complete model failure (WER > 100%), GeoPair successfully preserved core synthesis functionality with a reasonable Word Error Rate (14.5% vs 6.6% baseline).
Limitations and Future Work
The primary limitation of the current GeoPair framework is its restriction to pairwise layer grouping ($m=2$). The exact, closed-form generalized Sylvester solver relies on the simultaneous diagonalization of two matrix pencils—a mathematical property that does not analytically generalize to three or more terms.
To scale this method to multi-layer ($m$-way) dictionary sharing, future research will need to explore iterative numerical approximations or higher-order tensor factorizations, though care must be taken to manage the resulting computational overhead and potential numerical instabilities.
Summary updated