MoBiQuant: Mixture-of-Bits Quantization for Token-Adaptive Elastic LLMs
About
Changing runtime complexity on cloud and edge devices necessitates elastic large language model (LLM) deployment, where an LLM can be inferred with various quantization precisions based on available computational resources. However, it has been observed that the calibration parameters for quantization are typically linked to specific precisions, which presents challenges during elastic-precision calibration and precision switching at runtime. In this work, we attribute the source of varying calibration parameters to the varying token-level sensitivity caused by a precision-dependent outlier migration phenomenon.Motivated by this observation, we propose \texttt{MoBiQuant}, a novel Mixture-of-Bits quantization framework that adjusts weight precision for elastic LLM inference based on token sensitivity. Specifically, we propose the many-in-one recursive residual quantization that can iteratively reconstruct higher-precision weights and the token-aware router to dynamically select the number of residual bit slices. MoBiQuant enables smooth precision switching while improving generalization for the distribution of token outliers. Experimental results demonstrate that MoBiQuant exhibits strong elasticity, enabling it to match the performance of bit-specific calibrated PTQ on LLaMA3-8B without repeated calibration.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Language Modeling | WikiText2 | Perplexity5.08 | 1875 | |
| Commonsense Reasoning | HellaSwag | Accuracy40.2 | 1460 | |
| Language Modeling | WikiText-2 | Perplexity (PPL)16.909 | 841 | |
| Commonsense Reasoning | WinoGrande | Accuracy55.6 | 776 | |
| Question Answering | ARC Challenge | Accuracy28.4 | 749 | |
| Language Modeling | PTB | Perplexity29.268 | 650 | |
| Language Modeling | C4 | Perplexity24.849 | 321 | |
| Question Answering | BoolQ | Accuracy61.9 | 240 | |
| Common Sense Reasoning | Common Sense Reasoning Tasks (ARC-C, ARC-E, BoolQ, HellaSwag, PIQA, WinoGrande) zero-shot | Average Accuracy (Zero-Shot)71.84 | 72 | |
| Question Answering | ARC Easy | Accuracy58.8 | 8 |