ThinkBit:搜索码字,重新校准尺度,通过推理进行选择
研究论文 · 2026/10/28
推理语言模型每次回答生成数千个token,生成速度受内存带宽限制,因此将权重存储为2比特而非bfloat16可能使推理成本降低8倍。通常用困惑度和多项选择问答准确率来评判2比特方法,但这些指标难以反映模型是否仍能推理更困难的问题。我们提出ThinkBit,一个严格标量的2比特框架,旨在保持推理能力,其中每个权重是一个整数码字乘以一组权重共享的bfloat16缩放因子。我们首先使用敏感度指标为每一层分配三值、2比特或3比特层级,以在层间最优分配比特宽度。随后采用基于Gumbel-softmax的逐层标量量化算法,逐块搜索最优码字。由于逐层方案无法捕捉量化层之间的相互作用,我们在冻结码字的情况下,使用基于知识蒸馏的损失对教师模型重新校准缩放因子。然后进行短暂的量化感知训练(QAT)阶段,通过重新分配码字让模型模仿基础模型的分布。最后,在训练问题上进行配对推理测试,在重新校准阶段和QAT阶段之间选择最终检查点。在同等大小的Qwen3-1.7B上,我们重新校准的检查点在MATH-500上得分为46.7,而使用相同数据训练的EfficientQAT为30.0;在推理轨迹上进行QAT后得分为73.0;在0.52 GB下,它比该模型所有已发布的2比特GGUF都小,但在MATH-500上更准确。我们表明该框架可扩展至14B,一个3.74 GB的模型在MATH-500上得分为94.8,而29.5 GB的bfloat16模型为97.5。
该论文提出了一种新的2比特量化框架,专门针对推理语言模型,在显著降低模型大小的同时保持了推理性能,并在多个基准上优于现有方法,具有重要的实用价值。
Reasoning language models generate thousands of tokens per answer, and generation speed is limited by memory bandwidth, so storing weights in two bits instead of bfloat16 can potentially make inference 8times cheaper. Two-bit methods are usually judged by perplexity and multiple-choice question-answering accuracy, both of which say little about whether a model can still reason through more difficult problems. We present ThinkBit, a strictly scalar two-bit framework built to preserve reasoning, in which every weight is an integer codeword times a bfloat16 scale shared by a group of weights. We first use a sensitivity metric to assign each layer a ternary, 2-bit, or 3-bit tier to allocate bitwidths optimally among layers. This is followed by a layerwise Gumbel-softmax-based scalar quantization algorithm that searches for optimal codewords block by block. Since a layerwise scheme does not capture how quantized layers interact with each other, we recalibrate scales, with the codewords frozen, using a knowledge-distillation-based loss against the teacher model. We then perform a short quantization-aware training (QAT) stage that lets the model mimic the base model's distribution by reassigning codewords. Finally, a paired reasoning test on training problems selects the final checkpoint between the recalibration stage and the QAT stage. On Qwen3-1.7B at matched size, our recalibrated checkpoint scores 46.7 on MATH-500 against 30.0 for EfficientQAT trained on the same data, and 73.0 after QAT on reasoning traces; at 0.52 GB it is smaller than every published 2-bit GGUF of the model yet more accurate on MATH-500. We show that this framework scales and up to 14B, a 3.74 GB model scores 94.8 on MATH-500, against 97.5 for the 29.5 GB bfloat16 model.