arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.02893cs.LGcs.CL
收藏

可变比特宽度量化:为“更大但更小”的语言模型学习每组精度

Variable Bit-width Quantization: Learning Per-Group Precision for "Bigger-but-Smaller" Language Models

Hamish Ogilvy

AI总结:

研究提出可变比特宽度量化(VBQ),通过Gumbel-Softmax松弛为每组64个权重学习分辨率,经交替优化联合训练。VBQ能实现强异构分配,有更好存储效率和推理加速,还揭示了深层自修复量化误差机制。

摘要:

低比特量化缩小语言模型但将精度视为单一全局超参数。我们引入可变比特宽度量化(VBQ),一种训练时方法,每组64个连续权重通过Gumbel-Softmax松弛从{1,2,4,8}比特中学习自身分辨率,经交替优化联合训练。VBQ发现了一致的、强异构的分配模式,在存储效率和推理加速上有优势,还揭示了深层自修复量化误差机制。

英文摘要:

Low-bit quantization shrinks language models but treats precision as a single global hyper-parameter: every weight uses the same bit-width. We introduce Variable Bit-width Quantization (VBQ), a training-time method in which each contiguous group of 64 weights learns its own resolution from {1,2,4,8} bits via a Gumbel-Softmax relaxation, trained jointly by an alternating optimization that gives the precision logits a clean, task-aligned signal. VBQ discovers a consistent, strongly heterogeneous allocation within individual projection types, not merely across layers, impossible to express with per-layer methods: 69% of groups collapse to 1 bit, the LM head averages 1.09 bits, while the first MLP block keeps ~2.5 bits. This pattern is stable enough to freeze into a fixed recipe and reuse without further search. The recipe yields a "bigger-but-smaller" regime: a 131M model at 1.82 mean bits reaches perplexity 4.2 on TinyStories, beating a 55M FP16 model (PPL 4.4) at 3.8x less storage, and lets a 1.46B model on FineWeb-Edu match a 593M FP16 control at ~3.7x less storage with 2.5x more parameters. As quality-per-byte, VBQ is 3.9-8.4x more efficient than FP16. The recipe maps directly to packed low-bit storage, so it also accelerates inference: with custom fused dequantize-and-multiply kernels, memory-bandwidth-bound autoregressive decode is faster at equal output, and the speedup grows with scale (parity at 131M, 1.9x at 1.0B, 4.7x at 9B on Apple silicon). A distributional analysis (KL divergence and argmax-flip rate) reveals a striking mechanism: deeper layers progressively self-heal the quantization error injected by early layers. The win is a from-scratch, train-time phenomenon; scaling the search economically beyond 1.5B parameters remains open. VBQ reframes precision as a learnable, non-uniform resource and shows that spending a fixed bit budget unevenly beats spending it uniformly.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑