按需精度:在小型本地模型的不确定解码步骤中提升权重比特

·

研究论文 · 2026/11/12

本地解码通常为整个生成过程固定一个权重精度。我们研究了一种不同的分配方式:存储8位权重,用其高4位进行解码,仅当低精度输出分布看起来不确定(熵高于阈值或前两名边际较小)时,才以8位重做该步骤。量化是模拟的,模型为Qwen3-0.6B,基准为GSM8K。成本按每token读取的权重字节数计算。在36724个重放步骤上,低精度通道的熵对argmax翻转的排序AUC为0.93。在15%的升级预算下,熵门控捕获78%的翻转,边际门控捕获94%,而同等速率的随机门控预期为15%(计算期望,非实际运行)。在150个实时问题中,全高精度得分64.0%,全低精度55.3%(McNemar p=0.053)。熵门控升级率16%时得分62.7%,权重字节为全高精度的0.87倍。其配对差异为:相对全高精度-1.3(-8.0至+5.3)分,相对全低精度+7.3(+0.0至+14.7)分(p=0.080),因此实时数据无法将门控与任一端区分开。在同一成本模型下,验证推测以相似字节达到零KL。未运行实时随机对照、思考模式阶段规则、第二模型和实时KL。

该研究探索了一种动态权重精度分配策略,有望在保持模型性能的同时显著降低推理成本。虽然实时实验结果尚未显著区分门控与基线,但重放实验显示了熵门控的有效性,为未来高效推理提供了有希望的方向。

Local decoding usually fixes one weight precision for the whole generation. We study a different allocation: store 8-bit weights, decode with their top 4 bits, and redo a step at 8 bits only when the low-precision output distribution looks uncertain (entropy above a threshold or a small top-two margin). Quantization is simulated, the model is Qwen3-0.6B, and the benchmark is GSM8K. Cost is counted in weight bytes read per token. On 36724 replayed steps the entropy of the low pass ranks argmax flips with AUC 0.93. At a 15% escalation budget it catches 78% of flips and the margin gate 94%, against the 15% expected for a random gate of equal rate (a computed expectation, not a run). In 150 live problems all-high scores 64.0% and all-low 55.3% (McNemar p=0.053). An entropy gate with a 16% escalation rate scores 62.7% at 0.87 of the all-high weight bytes. Its paired difference is -1.3 (-8.0 to +5.3) points to all-high and +7.3 (+0.0 to +14.7) points to all-low (p=0.080), so the live data do not separate the gate from either end. Verified speculation reaches zero KL at similar bytes in the same cost model. A live random control, a thinking-mode phase rule, a second model and live KL were not run.

阅读原文

参与讨论