TL;DR
Compressing a massive language model by making different layers share the same mathematical building blocks usually forces an awkward compromise: either ignore how uniquely each layer responds to its inputs, or restrict sharing to tiny pairs of layers. GeoGroup breaks this stalemate, allowing sixteen or more weight matrices to share a single "dictionary" of parameters while respecting every layer's individual input sensitivities—all without retraining the model. By spreading the storage overhead of that dictionary across a crowd, the model frees up precious memory for richer representations, retaining nearly 98% of original accuracy even after cutting 40% of targeted weights.
What Problem Does This Paper Address?
To shrink a pretrained LLM without expensive retraining, we can factorize its dense weight matrices into compact components—specifically, a shared dictionary of basis vectors ("atoms") and lightweight, layer-specific sparse coefficients that pick and combine a few atoms per column. Because Transformer layers often learn redundant structures, sharing one dictionary across multiple projections saves massive amounts of memory.
Here is the catch: projections at different depths receive wildly different inputs. A tiny approximation error along a specific direction might barely register in Layer 2, yet completely derail Layer 15 because Layer 15’s inputs strongly excite that direction. The authors call this input-dependent sensitivity a projection’s activation geometry.
Prior methods handled this in two flawed ways:
- Pooling statistics: Averaging input sensitivities across all shared layers into one generic metric, effectively washing out individual layer needs.
- Pairwise sharing (GeoPair): Keeping exact, separate metrics per layer, which admits a neat closed-form mathematical solution—but only for groups of two ($G=2$). Try to add a third layer, and the math turns into a coupled multi-term matrix equation whose explicit solver matrix would require roughly $2.8 \times 10^{14}$ entries.
Methods
GeoGroup is a training-free compression framework that scales geometry-preserving dictionary sharing to groups of arbitrary size ($G$). It alternates between two steps: updating each projection’s sparse coefficients independently (using standard Hard Thresholding Pursuit), and jointly updating the shared dictionary.
What is novel is how GeoGroup tackles that intractable dictionary update:
- Matrix-Free PCG Solver: Instead of building the impossible $10^{14}$-entry matrix, GeoGroup uses Preconditioned Conjugate Gradients (PCG) applied directly to dictionary-shaped matrices. It evaluates matrix products on the fly using each member's individual calibration factor, keeping every layer's activation geometry intact.
- Unified Preconditioner Family: To make PCG converge fast, the authors design a family of preconditioners. Their default Jacobi preconditioner simply rescales coordinates elementwise—making it cheap and low-memory. Remarkably, they prove that another variant in their family (Pair-GEVD) algebraically recovers GeoPair’s exact closed-form update in a single PCG step when $G=2$.
- Consecutive Grouping: Rather than running expensive graph-matching searches to find "similar" layers, GeoGroup simply groups compatible projections consecutively in model order (mixing attention and MLP matrices of matching input dimensions).
Datasets
Because GeoGroup is training-free, it only requires a small calibration set—256 sequences of 1,024 tokens from FineWeb—to measure activation geometries (plus mixed text-image calibration for multimodal tests). No new benchmarks are introduced. Models are evaluated zero-shot on seven standard tasks (ARC-Challenge, ARC-Easy, HellaSwag, MMLU, PIQA, RACE, SciQ), alongside perplexity on LAMBADA, WikiText-2, and C4, and generation benchmarks (GSM8K and HumanEval).
Key Insights and Ideas
- Amortizing the dictionary buys richer capacity: Why does sharing among 16 projections beat sharing among 2? At a fixed compression budget, storing one dictionary for 16 matrices drastically lowers the "dictionary tax" per weight. GeoGroup reinvests those saved bytes into wider dictionaries and more non-zero sparse coefficients per column (jumping from ~27% non-zeros for pairs to ~54% for groups of 16 at 40% compression).
- "Similar" layers aren't always the best roommates: You would expect grouping layers with mathematically similar weights (via Hierarchical Blossom matching) to win. Surprisingly, simple consecutive grouping matches or beats it. Why? Similarity matching tends to lump narrow attention projections together, creating skinny groups that get starved of storage capacity. Consecutive grouping naturally mixes narrow attention and wide MLP matrices, balancing storage budgets without any search cost.
- Individual geometry really matters: Replacing individual layer metrics with a group-pooled metric drops average accuracy by nearly 6 percentage points on Llama-3-8B, proving that preserving local input sensitivities is critical when sharing broadly.
Key Results
- Accuracy at 40% Nominal Compression (CR = 0.4): Using consecutive groups of $G=16$ across attention and MLP layers, GeoGroup achieves 66.61% 7-task accuracy on Llama-3-8B (retaining 95.5% of dense performance) and 70.58% on Qwen3.5-9B (97.7% of dense). This beats state-of-the-art pairwise GeoPair by +6.11 and +10.01 percentage points, respectively. At 50% compression, the lead over GeoPair widens to +12.4 and +22.3 points.
- Cross-Model Generalization: At CR 0.4, GeoGroup ($G=16$) outperforms GeoPair by +5.23 points on Llama-3.2-1B, +6.84 on Phi-4 (landing within 0.32 points of the uncompressed model), and +10.18 on Gemma-3-4B.
- Real Storage & Speedups: Accounting for bit-packed 14-bit coefficients and sparse index bitmasks, whole-model size drops by 35.0% on Llama-3-8B (16.06 GB to 10.45 GB). On Qwen3.8-27B, selectively compressing gate/up MLP projections by 60% preserves 74.04% accuracy (vs. 74.37% dense) while cutting model storage by 21% and accelerating full-model token decoding by 1.13$\times$.
- Quantization Friendly: Compressing Qwen3.8-27B (CR 0.4) and quantizing both dictionaries and coefficients to 4 bits still retains 73.03% average accuracy.
Limitations and Future Work
- Generation Sensitivity & Latency Trade-offs: While zero-shot classification holds up remarkably well, multi-step generation tasks suffer noticeably at 40% compression (e.g., Llama-3-8B GSM8K drops from 48.4% to 21.0%, and HumanEval from 37.8% to 7.3%). Furthermore, while $G=16$ beats $G=2$ in accuracy, $G=2$ actually decodes slightly faster (40.8 ms/token vs. 43.6 ms/token on Qwen-27B) because richer sparse supports require more work during inference.
- Fixed Allocation Rules: GeoGroup currently relies on prescribed grouping and uniform compression ratios. Future work could jointly adapt group composition and per-layer sparsity budgets based on layer sensitivity, and expand hardware kernel evaluations beyond batch-size-one decoding to prefill and larger batch regimes.
Summary updated