Differentiable Bit-Widths: Co-optimizing Pruning and Quantization via SVD for Ultra-Efficient LLM Compression

Hankyul Kang, Jongbin RyuNeurIPS 2026

TL;DR

Shrinking a massive language model so it fits onto a modest laptop GPU usually means combining pruning (cutting weights) and quantization (lowering precision)—two steps traditionally done one after the other, leading to compounding errors. This paper introduces Differentiable Bit-Widths (DBW), a clever trick that unifies pruning and quantization into a single, gradient-driven optimization step by treating "0 bits" as just another precision choice. The result is an ultra-compressed LLM (averaging 1.61 bits per weight) that retains remarkably strong reasoning skills while running up to 2.8× faster.

What Problem Does This Paper Address?

Imagine trying to run LLaMA-7B—normally requiring over 12 GB of memory—on a consumer laptop GPU with just 2 GB of VRAM. Standard compression struggles when you push past a 3× or 4× reduction; the model's brain essentially turns to mush.

Recently, researchers turned to Singular Value Decomposition (SVD), which factors weight matrices into ranked components, making it easy to chop off the least important parts (pruning) and reduce the precision of what remains (quantization). However, existing methods treat this as a sequential, two-stage assembly line: prune first, quantize second. Once information is sliced away during pruning, the quantization stage can never recover it, and finding the sweet spot between how much to cut and how many bits to keep becomes a guessing game. Meanwhile, searching for the ideal mixed-precision assignment across thousands of components discretely is computationally impossible—an $O(B^C)$ nightmare.

Figure 1: Our compression concept illustration. We co-optimize pruning and quantization in a single step by updating bit-widths in our differentiable method.

Methods

Instead of treating pruning and quantization as separate worlds, the authors realize that pruning is simply 0-bit quantization. They propose Differentiable Bit-Widths (DBW), which learns integer bit-widths (e.g., from 0 to 5 bits) for each SVD component simultaneously via standard gradient descent.

Here is how the machinery works:

  • Budget-Aware Differentiable Bit-Widths: Left unchecked, gradients would greedily push every component toward maximum precision. DBW treats continuous bit-width parameters like probabilities, normalizing them so their sum strictly obeys a fixed bit budget. It discretizes these values using a floor operation paired with a Straight-Through Estimator (STE) so gradients can flow, and uses Hamilton’s apportionment method to neatly distribute any leftover fractional bits.
  • Bi-Level Allocation & Entropy Loss: Not all matrices in a transformer block are equally sensitive. DBW optimizes bit budgets at both the component level and the matrix level. It also adds an entropy minimization loss on the singular values during block-wise calibration, nudging the matrix's energy into fewer dominant components so the tail is easier to prune.
  • Hardware-Friendly Execution: Mixed precision usually causes chaotic memory layouts that GPUs hate. Because SVD components can be added in any order, DBW simply sorts components by their learned bit-width after training (throwing away the 0-bit ones), packs identical bit-groups neatly together, and runs parallel custom CUDA GEMM kernels for each group.

Datasets

No new benchmarks are introduced; the authors stick to battle-tested standards:

  • Calibration: 4,096 random samples (sequence length 2048) from RedPajama-1T for layer-by-layer block tuning.
  • Perplexity Evaluation: WikiText-2 and C4.
  • Zero-Shot Commonsense Reasoning: Eight benchmarks—PIQA, ARC-Easy, ARC-Challenge, HellaSwag, WinoGrande, RACE, LAMBADA-OpenAI, and LAMBADA-Standard (with additional MMLU and GSM8K experiments noted in the appendix).

Key Insights and Ideas

  • Zero-bit truncation preserves dense math: Unstructured pruning leaves Swiss-cheese weight matrices that require awkward bit-masks and slow sparse math. Assigning 0 bits to an SVD component cleanly shrinks the inner rank of dense matrices—saving both memory and actual FLOPs with virtually zero mask overhead (just a few scalars per matrix).
  • Matching precision to "information entropy": SVD naturally concentrates a matrix's representational energy into top singular values, creating an uneven entropy landscape. Uniform quantization wastes bits on low-entropy tails or starves high-entropy heads. Co-optimization naturally adapts: in low-entropy matrices, DBW aggressively prunes the tail; in high-entropy matrices where singular values decay slowly, it spreads lower positive bits across a wider range of components.

Key Results

Tested across LLaMA-1/2/3 (7B to 70B), Mistral-7B, Qwen-2.5-7B, and Gemma-7B, DBW consistently outperforms 2-bit and sub-2-bit baselines even at an aggressive 1.61 bits per weight:

  • Memory & Accuracy: DBW shrinks LLaMA-7B and LLaMA-2-7B from 12.31 GB down to 1.56 GB (~7.9× compression). On LLaMA-2-7B, 1.61-bit DBW hits 49.06% average reasoning accuracy, beating 1.61-bit PTQ1.61 (39.20%) and even 2-bit OmniQuant (40.86%).
  • Co-optimization vs. Sequential: On LLaMA-2-7B under identical memory budgets (1.56 GB), sequential SVD-LLM + OmniQuant suffers a painful 77.10 perplexity and 29.35% accuracy, whereas DBW achieves 10.54 perplexity and 49.06% accuracy.
  • Real Speedups: Using their custom CUDA kernel on LLaMA-65B (512 context length), DBW achieves a 2.8× end-to-end speedup over FP16 cuBLAS and 1.8× over 2-bit OmniQuant. (At tiny context lengths like 64 tokens, kernel launch overhead makes it slightly slower than OmniQuant before pulling ahead as context grows.)

Limitations and Future Work

The authors note that their empirical evaluation is currently restricted to pre-trained language models. While DBW generalizes nicely across different LLM families (like Mistral and Qwen), future work is needed to test whether this unified SVD pruning-and-quantization framework holds up equally well across vision, speech, and multimodal architectures.

Summary updated

BibTeX
@inproceedings{kang2026differentiable,
  author = {Hankyul Kang and Jongbin Ryu},
  title = {{Differentiable Bit-Widths: Co-optimizing Pruning and Quantization via SVD for Ultra-Efficient LLM Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=y5tDLoawiV},
}

Loading related content...

Figure