ScaleBITS: Scalable Bitwidth Search for Hardware-Aligned Mixed-Precision LLMs

Xinlin Li, Timothy Chou, Joshua Wolff Fromm, Zichang Liu, Yunjie Pan, Christina Fragouli

TL;DR

Compressing large language models (LLMs) down to 2 or 3 bits per weight usually causes their intelligence to fall off a cliff—unless you give extra bits to the most delicate weights, which typically ruins GPU execution speed. ScaleBITS solves this catch-22 by discovering that sensitive weights form a neat "plaid" pattern across rows and columns that can be shuffled into hardware-friendly blocks. Paired with a fast, dynamic bit-search algorithm, it lets ultra-compressed models retain impressive accuracy without slowing down inference.

What Problem Does This Paper Address?

To fit massive LLMs onto real-world GPUs, engineers use post-training quantization—shrinking high-precision 16-bit weights into smaller formats. While 4-bit compression is largely a solved game, pushing into the ultra-low-bit regime ($\le 3$ bits) breaks models because a tiny fraction of weights are extraordinarily sensitive to rounding errors.

Mixed-precision quantization fixes this by giving more bits to VIP weights and fewer to the rest. Here lies the dilemma:

  1. Hardware vs. Expressiveness: Assigning bitwidths to individual weights maximizes accuracy, but GPUs hate irregular memory layouts—Tensor Cores want uniform, predictable tiles (like $64 \times 64$ blocks). Conversely, assigning a single bitwidth to an entire layer is fast, but way too blunt.
  2. Search Combinatorics: Even if you find a good middle-ground grouping, deciding whether each of the millions of weight blocks gets 1, 2, ... or 8 bits under a global memory budget is an NP-hard combinatorial nightmare.

Methods

ScaleBITS tackles both the layout and search problems with three clever moves:

Figure 2: Overview of the proposed mixed-precision framework. (a) Sensitivity distribution of the original weight matrix. (b) Sensitivity distribution after bi-directional reordering of input and output channels. (c) Resulting block-wise precision allocation over the reordered weight matrix.
  • Dynamic Sensitivity Estimation: Standard methods measure weight sensitivity once on the original 16-bit model (often needing expensive second-order Hessians because gradients near a local minimum are zero). ScaleBITS measures first-order gradients around the current quantized model as it progressively compresses. Because the quantized model is far from a local optimum, cheap first-order gradients give a remarkably accurate ranking of what hurts the loss right now.
  • Bi-Directional Channel Reordering: By shuffling both the rows (output channels) and columns (input channels) of weight matrices based on sensitivity—a one-time offline step with zero runtime cost—ScaleBITS herds the scattered sensitive weights into the top-left corner. It then slices the matrix into clean $64 \times 128$ blocks that map directly onto fast GPU matrix-multiplication tiles.
  • Scalable Greedy Search: Classic greedy bit allocation updates one block at a time ($O(N^2)$ forward passes—about $10^{10}$ hours for an 8B model!). ScaleBITS warms up near the target bit budget (e.g., $\lfloor B \rfloor$ bits, avoiding collapsed 0-bit/1-bit states) and performs batched swaps: simultaneously upgrading the top-$k/2$ most sensitive blocks and downgrading the $k/2$ least sensitive ones, guarded by a quick calibration loss check.

Datasets

No new benchmarks were introduced.

  • Calibration (for sensitivity & search): 128 sequences of 4,096 tokens from RedPajama.
  • Evaluation: Perplexity on WikiText-2; zero-shot reasoning on WinoGrande, PiQA, HellaSwag, ARC-easy, ARC-challenge, and BoolQ; 5-shot MMLU; plus GSM8K (math) and MBPP (coding) for instruction-tuned models.

Key Insights and Ideas

  • Sensitivity is a moving target: Measuring sensitivity on a 16-bit model is like checking traffic at 3 AM to plan a rush-hour commute. Once you quantize to 2–3 bits, the loss landscape shifts dramatically; evaluating gradients at the quantized state preserves the true sensitivity ranking.
Figure 1: (a) Estimated layer sensitivity using first-order Taylor expansion around a quantized model (top) and the full-precision model (bottom). (b) Weight sensitivity distribution in Gemma2-9B model.
  • Sensitivity looks like Scottish tartan: Prior work noticed sensitive weights cluster in columns (driven by outlier input activations). By factoring in global loss gradients, the authors show sensitivity equals $|\text{output gradient}| \times |\text{input activation}| \times |\text{weight error}|$, creating both row and column stripes. Reordering in both directions is what makes coarse hardware blocks expressive.
  • Smart bit budgets beat fancy quantizers: Pairing ScaleBITS with naive Round-To-Nearest (RTN) quantization beats sophisticated error-compensating (GPTQ) and non-uniform (GuidedQuant) methods. Where you spend your bits matters more than how you round them.
  • Dial-a-Model-Size: Instead of being stuck at rigid 2-bit or 3-bit checkpoints, global block allocation lets you target any arbitrary fractional bit budget (e.g., 2.35 bits) smoothly.

Key Results

Tested on Llama-2/3 (up to 70B) and Gemma-2, ScaleBITS shines brightest when bits are scarce:

  • Massive 2-Bit Gains: On Llama-3-70B at ~2.1 bits, ScaleBITS boosts MMLU accuracy from 23.02% (uniform RTN) and 26.63% (GPTQ) up to 58.82%—also beating state-of-the-art GuidedQuant (45.55%) by over 13 points.
  • Fast Search: Quantizing Llama-3-8B takes 0.5–1 hour on a single H100 GPU (16–36 iterations), which is 3–6× faster than the mixed-precision baseline SlimLLM.
  • Hardware Speed: Custom ExLlamaV2 CUDA kernels running ScaleBITS achieve a 2.50× (8B) and 3.22× (70B) speedup over BF16 for single-token decoding—within 1.8%–2.7% of uniform INT4 latency, and 9.7%–14.8% faster than ExLlamaV2's native mixed-precision format.

Limitations and Future Work

  • Kernel Scope: Latency benchmarks currently measure linear projection layers in isolation rather than end-to-end full-model decoding (excluding attention), and the authors note further kernel optimization is possible.
  • Weights Only & Static: ScaleBITS only quantizes static weights post-training without weight updates. Future avenues include dynamic mixed-precision for activations and the KV-cache, adding lightweight fine-tuning for sub-2-bit resilience, and adaptive precision scheduling during training.

Summary updated

Abstract

Post-training weight quantization is crucial for reducing the deployment cost of large language models (LLMs), yet maintaining model quality in the ultra-low-bit regime ($\le$ 3 bits) remains challenging due to highly non-uniform weight sensitivity and the lack of principled precision allocation strategies. In this work, we show that the weight sensitivity is inherently dynamic and depends on the current quantized model, rather than the full-precision reference used in existing methods. Leveraging this observation, we introduce a sensitivity estimate that better captures the changes in marginal loss during progressive quantization. We further uncover a structured pattern in sensitivity distribution, revealing a bi-directional concentration across input and output channels, which enables hardware-aligned yet expressive partitioning via channel reordering. Building on these insights, we propose ScaleBITS, a scalable framework that combines structured partitioning and an efficient approximation to greedy allocation. Our approach enables fine-grained, global bitwidth search while preserving hardware efficiency. Experiments show that ScaleBITS significantly improves over uniform-precision quantization (up to +36%) and outperforms state-of-the-art sensitivity-aware baselines (up to +13%) in the ultra-low-bit regime, while preserving efficient execution.
BibTeX
@inproceedings{li2026scalebits,
  author = {Xinlin Li and Timothy Chou and Joshua Wolff Fromm and Zichang Liu and Yunjie Pan and Christina Fragouli},
  title = {{ScaleBITS: Scalable Bitwidth Search for Hardware-Aligned Mixed-Precision LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TpYhEftiHb},
}
Figure