FermiGrad-SVD: An LLM Compression Pipeline with Global Rank Selection and Gauge Fixing
Organizations: Multiverse Computing, Paseo de Miramón 170, Planta 2, 20014 Donostia, Spain · Multiverse Computing, 192 Spadina Avenue, Toronto, ON M5T 2C2, Canada · Donostia International Physics Center, San Sebastián, Spain · Ikerbasque Foundation for Science, Bilbao, Spain
Abstract
Low-rank factorization of weight matrices is a promising approach to compress large language models (LLMs), but its practical effectiveness depends on allocating ranks across layers and efficiently representing the resulting factors. We introduce three complementary methods for improving SVD-based LLM compression. First, FermiGrad formulates global layer-wise rank allocation as a differentiable optimization problem by replacing discrete singular-value truncation with continuous Fermi gates. Because FermiGrad optimizes only rank parameters over precomputed low-rank factors, it avoids repeated activation decompositions and backpropagation through SVD operations. Second, the Targeted Compressor extends FermiGrad with a task-specific objective that directs limited model capacity toward a selected domain. At 60% parameter density for Llama-3.1-8B-Instruct, SciQ-targeted compression achieves 60% MMLU accuracy, exceeding the reported quantized Dobi-SVD result by 10 percentage points, while deliberately trading performance on unrelated tasks for domain specialization. Third, PivGa provides a lossless secondary compression of low-rank factors by exploiting the gauge freedom in their parametrization. The proposed framework is modular, computationally efficient, and applicable at scale, as demonstrated by compressing Llama-3.3-70B-Instruct to 50% parameter density.
Figures & tables
| density | Dataset | MMLU | HellaSwag | WinoGrande | GSM8K | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Unif | STRS | FG | Unif | STRS | FG | Unif | STRS | FG | Unif | STRS | FG | ||
| Original | 67.8 | 59.1 | 73.6 | 75.9 | |||||||||
| 0.9 | Tulu | 53.0 | 55.6 | 59.1 | 47.3 | 44.0 | 50.2 | 68.3 | 66.9 | 70.2 | 30.9 | 23.8 | 46.3 |
| MMLU-train | 54.3 | 55.5 | 60.9 | 48.7 | 46.6 | 52.3 | 71.1 | 70.8 | 73.2 | 3.6 | 0.0 | 18.3 | |
| 0.8 | Tulu | 42.3 | 45.6 | 51.9 | 37.8 | 36.1 | 43.7 | 62.2 | 64.2 | 65.9 | 11.3 | 2.9 | 18.3 |
| MMLU-train | 45.4 | 48.7 | 54.2 | 41.1 | 38.3 | 46.2 | 66.3 | 67.4 | 70.2 | 0.0 | 0.0 | 0.3 | |
| density | Method | MMLU | MedMCQA | MedQA | HellaSwag | WinoGrande |
|---|---|---|---|---|---|---|
| Original | ||||||
| FG-mmlu | ||||||
| TC-sciq | ||||||
| TC-medmcqa | ||||||
| TC-mmlu | ||||||
| Dobi-SVD (quant.) | – | – | – | – |
| Model | Params | MMLU | HellaSwag | WinoGrande | BoolQ | GSM8K | IFEval | MedMCQA | PPL |
|---|---|---|---|---|---|---|---|---|---|
| Original | 70.55B | 81.99 | 65.75 | 78.37 | 88.69 | 77.94 | 71.10 | 72.22 | 3.96 |
| Block-pruned | 50.02B | 79.56 | 48.79 | 73.09 | 37.74 | 2.96 | 44.84 | 69.64 | 195.25 |
| Pruned+QLoRA | 50.02B | 79.27 | 59.91 | 72.06 | 88.62 | 65.50 | 69.90 | 67.68 | 9.80 |
| Pruned+QLoRA+FG | 35.28B | 63.10 | 46.29 | 66.38 | 86.36 | 2.81 | 48.44 | 40.86 | 24.36 |
| Pruned+QLoRA+FG+SFT | 35.28B | 73.51 | 55.41 | 73.64 | 89.88 | 80.59 | 81.53 | 59.02 | 12.99 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| density | Dataset | MMLU | HellaSwag | WinoGrande | GSM8K | WikiText-2 PPL | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Unif | STRS | FG | Unif | STRS | FG | Unif | STRS | FG | Unif | STRS | FG | Unif | STRS | FG | ||
| Original | 67.8 | 59.1 | 73.6 | 75.9 | 8.7 | |||||||||||
| 0.9 | OH | 54.8 | 56.2 | 59.3 | 47.3 | 44.7 | 50.6 | 68.7 | 68.3 | 70.2 | 25.1 | 0.0 | 41.3 | 21.7 | 36.9 | 15.5 |
| Tulu | 53.0 | 55.6 | 59.1 | 47.3 | 44.0 | 50.2 | 68.3 | 66.9 | 70.2 | 30.9 | 23.8 | 46.3 | 23.4 | 41.7 | 16.5 | |
| MMLU-train | 54.3 | 55.5 | 60.9 | 48.7 | 46.6 | 52.3 | 71.1 | 70.8 | 73.2 | 3.6 | 0.0 | 18.3 | 23.0 | 40.2 | 15.5 | |
| GT | 55.9 | 57.5 | 61.7 | 48.1 | 45.4 | 51.8 | 69.7 | 69.9 | 71.6 | 19.7 | 0.0 | 33.7 | 22.6 | 42.8 | 16.5 | |
Model Compression
Model compression reduces the storage, computation, or latency of machine-learning models while preserving task performance.
See all 124 papers