MoBiQuant: Mixture-of-Bits Quantization for Token-Adaptive Any-Precision LLM

Dongwei Wang, Jinhee Kim, Seokho Han, Denis A Gudovskiy, Yohei Nakata, Tomoyuki Okuno, KhayTze Peong, Kang Eun Jeon, Jong Hwan Ko, Yiran Chen, Huanrui YangNeurIPS 2026

TL;DR

Deploying Large Language Models (LLMs) on dynamic devices usually means choosing between bloated memory (storing multiple quantized models) or sluggish runtime switching. MoBiQuant solves this by chopping model weights into stackable 2-bit "Lego bricks" and using a lightweight router to give sensitive tokens higher precision on the fly. The result is a single, elastic model that shifts average bit-widths seamlessly at runtime—matching specialized fixed-precision models while running up to $1.34\times$ faster than existing flexible alternatives.

What Problem Does This Paper Address?

Imagine running an LLM on a laptop or edge device. When plugged in and idle, you want crisp 4-bit or 6-bit reasoning; when you fire up a heavy video call, the model needs to drop to 2-bit or 3-bit immediately to survive the memory and latency squeeze.

Standard Post-Training Quantization (PTQ)—compressing weights from 16-bit floats down to tiny integers after training—optimizes calibration parameters (like scaling factors and clipping ranges) for one fixed bit-width. If you calibrate a model for 3-bit and try to run it at 4-bit, accuracy surprisingly tanks. Meanwhile, recent "any-precision" methods that allow switching bit-widths suffer from practical bottlenecks: they rely on hardware-unfriendly lookup tables (vector quantization), store redundant scaling factors for every possible bit-width, or require pausing to repack weights and relaunch GPU kernels whenever precision changes.

Why does standard PTQ fail when switching bit-widths? The authors uncover a culprit they call outlier migration.

Figure 1: (Left) Existing PTQ methods poorly generalize under calibration–inference precision mismatch, e.g., inference at 4-bit with 3-bit calibrated parameters (green vs. red). Incorporating token-aware bit adjustment partially mitigates this degradation (pink). Our MoBiQuant improves generalization across precisions (orange). (Right) Per-token quantization error distribution at layer 5 in LLaMA3-8B: quantization outliers are highly non-uniform at each bit-width. Tokens well-fitted at 4-bit can become outliers at 3-bit, while 4-bit outliers may not be the primary error source at 3-bit.

In LLMs, quantization errors are dominated by a small subset of outlier tokens. However, which tokens act as outliers changes depending on the bit-width. A token well-behaved at 4-bit can suddenly spike in error at 3-bit, and vice versa. Calibrating for one bit-width overfits to that specific outlier crowd, leaving the model poorly calibrated when precision shifts.

Methods

MoBiQuant tackles both outlier migration and hardware inefficiency by pairing a standard PTQ backbone (OmniQuant) with three novel components:

Figure 2: MoBiQuant enables token-adaptive any-precision inference for linear blocks in LLMs (a). It consists of two main components: MoBiSlice that supports multiple precisions by decomposing FP16 weights into bit slices via recursive quantization (b); and MoBiRoute with token-adaptive precision adjustment that is trained to route each token to the optimal bit slice under a budget (c).
  • MoBiSlice (Recursive Residual Slicing): Instead of storing separate models, MoBiSlice decomposes 16-bit weights into a 2-bit base slice plus three 2-bit residual slices (quantizing the leftover error step-by-step). Summing 1, 2, 3, or 4 slices reconstructs 2-, 4-, 6-, or 8-bit weights on the fly. Crucially, all slices share a single set of calibration scales (dividing by powers of 2 per slice), enabling fast shift-and-add math using a single 2-bit GPU kernel.
  • MoBiRoute (Token-Adaptive Routing): Similar to a Mixture-of-Experts gate, a tiny 2-layer MLP inspects each incoming token and outputs binary decisions on how many bit slices it needs (every token gets at least the first 2-bit slice). Trained with an annealing temperature schedule and a decaying bit-budget penalty, it learns which tokens are sensitive to precision drops. At runtime, shifting a single global threshold ($\delta$) smoothly dials the model's average precision up or down—even to fractional averages like 3.5 bits—with zero repacking.
  • Custom GPU Kernel: To turn skipped bits into real speedups, weights are packed into contiguous bit-planes so the GPU only fetches active bits from memory. Because different tokens grab different numbers of slices, the kernel permutes tokens to group matching bit-widths together for coalesced memory reads, and fuses router operations into shared memory.

Datasets

No new benchmarks were introduced.

  • Calibration: 128 sequences from WikiText2 (with ablation tests using C4 and PTB).
  • Evaluation: Language modeling perplexity on WikiText2; knowledge and zero-shot reasoning across MMLU, BoolQ, PIQA, HellaSwag, WinoGrande, ARC-Easy/Challenge, and math reasoning on GSM8K.

Key Insights and Ideas

  • Less precision can yield better accuracy: In a striking motivational experiment, running a 3-bit-calibrated LLaMA3-8B model at 4-bit yielded poor perplexity (10.06). Simply forcing the top 10% of 3-bit outlier tokens back down to 3-bit dropped perplexity to 9.01! Matching tokens to the precision behavior they were calibrated for matters more than blindly throwing extra bits at everything.
  • Routing heals outlier migration: MoBiRoute scores strongly correlate with token error spikes during precision drops. By dynamically giving vulnerable tokens an extra 2-bit slice and starving easy tokens, error distributions stay flat and predictable across bit-widths.
  • Emergent layer sensitivity: Even when given a uniform 3-bit or 4-bit budget per layer, MoBiQuant naturally allocates more variance and higher average bits to early transformer blocks and specific MLP projections—rediscovering known layer-sensitivity patterns automatically.

Key Results

Tested across LLaMA2 (7B/13B), LLaMA3 (8B), LLaMA3.2 (1B/3B), Gemma2-9B, and Qwen3-32B on NVIDIA A100 GPUs:

  • Speed & Memory: Achieves up to $1.34\times$ higher decoding throughput (33.8% average gain over AnyPrecisionLLM and 22.8% over AnyBCQ on LLaMA models) while cutting memory footprint by $3.5\times$ compared to storing separate fixed-bit models. Routing and token permutation add just 7.90% latency overhead during prefill.
  • Extreme Low-Bit Resilience: At 2-bit on LLaMA2-7B, MoBiQuant reaches 10.91 WikiText2 perplexity and 33.20% MMLU accuracy, decisively beating AnyBCQ (15.38 PPL / 29.87%) and AnyPrecisionLLM, which collapses at 2e3 PPL.
  • Competitive with Static Specialists: Operating elastically at 3-bit or 4-bit averages, MoBiQuant matches or beats static single-precision methods (GPTQ, AWQ, SpinQuant, OmniQuant)—e.g., hitting 7.97 PPL on 3-bit LLaMA3-8B compared to SpinQuant's 8.14 and OmniQuant's 9.11.

Limitations and Future Work

While not placed in a dedicated section, the authors note two main trade-offs in the text:

  • Routing & Permutation Overhead: Dynamic routing introduces extra compute and requires permuting tokens in memory to avoid load imbalance—costing ~2.3–2.9% in MLP latency and 7.90% of total prefill latency (though outweighed by faster dequantization).
  • Calibration Target Sensitivity: While the model generalizes across precisions at runtime, the researcher still chooses a target hyperparameter bit-width $b$ (default 3-bit) during calibration scheduling, which can cause minor performance variations across the precision spectrum.

Summary updated

Abstract

Dynamic runtime latency and memory constraints necessitate flexible large language model (LLM) deployment, where an LLM can be inferred with various quantization precisions based on available computational resources. Recent work on such any-precision quantization either relies on hardware-inefficient vector quantization or induces additional scaling factors when switching between bit-widths. Meanwhile, existing post-training quantization (PTQ) methods calibrated for a fixed low precision show poor generalizability under runtime precision change. In this work, we attribute the source of poor generalization across bit-widths to a precision-dependent outlier migration phenomenon where the distribution of PTQ-sensitive tokens changes across precisions. Motivated by this observation, we propose MoBiQuant, a novel any-precision Mixture-of-Bits quantization framework that adjusts weight precision for flexible LLM inference based on token sensitivity. Specifically, we propose a many-in-one recursive residual quantization that can iteratively reconstruct higher-precision weights at runtime and mitigates outlier migration with a token-aware router to dynamically select the optimal inference precision of each token. Extensive experiments show that MoBiQuant matches or surpasses frontier single-precision PTQ while exhibiting strong elasticity, achieving significant memory savings and throughput gains of up to $1.34\times$ over state-of-the-art any-precision methods. Our code is released at this [link](https://github.com/SimWangArizona/MoBiQuant).
BibTeX
@inproceedings{wang2026mobiquant,
  author = {Dongwei Wang and Jinhee Kim and Seokho Han and Denis A Gudovskiy and Yohei Nakata and Tomoyuki Okuno and KhayTze Peong and Kang Eun Jeon and Jong Hwan Ko and Yiran Chen and Huanrui Yang},
  title = {{MoBiQuant: Mixture-of-Bits Quantization for Token-Adaptive Any-Precision LLM}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=SztgGrvHcl},
}
Figure