Shifter Quantization 量化方法:原生整数运算的紧凑表示
Shifter Quantization: Compact Representations for Native Integer Computation
做本地推理或部署的可以看看这篇。它不改硬件,只改量化格式,就在 2-bit、4-bit、8-bit 三档上同时赢了 llama.cpp、NInfer 和 vLLM 的 FP8 基线,8-bit 时 KL 还低了 72.7%。自己跑模型推理的团队值得在自己工作负载上复测一下。
arXiv 论文 2611.33080 提出 Shifter Quantization(SQ),一种新的 LLM 量化格式,通过追加并移位共享比特来重建原生宽度整数操作数,解决分组量化无法让标准整数 MMA 覆盖完整点积的问题。
作者还开发了专用于 INT4 内核的变体 Shifter Integer(SHI)。实验显示,2-bit 场景下 SQ2 和 SHI2 相比 llama.cpp 的 Q2_K checkpoint,4,096-token prefill 吞吐量达到 2.71-3.77 倍,WikiText-2 KL 散度降低 6.6-7.8%;4-bit 场景下 SQ4 prefill 吞吐量为 NInfer 分组整数基线的 1.43-2.47 倍,KL 降低 24-40%;8-bit 场景下 SQ8 相比 vLLM 的在线 FP8,batch-one prefill 吞吐量高 27.4%,KL 降低 72.7%。
论文以投影误差和 KL 散度衡量质量,以解码和 prefill 阶段的速度衡量效率,覆盖低、中、高三档精度。对需要在 GPU 上低成本部署大模型的推理框架开发者和企业来说,这套格式给出了 INT4/FP8 之外的新选择。
Shifter Quantization: Compact Representations for Native Integer Computation
Groupwise quantization is used in LLM quantization to improve accuracy at low bit widths, but grouping weights keeps standard integer MMA from spanning the full dot product for efficient GPU inference. We develop a new quantization method, Shifter Quantization (SQ), that reconstructs native-width integer operands by appending and shifting shared bits. To further extend the efficiency, we develop a special variant of SQ, Shifter Integer (SHI), to use INT4 kernels. We show that SQ and SHI formats perform better than standard groupwise quantization in quality, as measured by projection error and KL divergence, and in inference speed, as measured during decoding and prefill. For low precision like 2-bit quantization, SQ2 and SHI2 achieve 2.71-3.77x the 4,096-token prefill throughput of llama.cpp on a Q2_K checkpoint and reduce WikiText-2 KL by 6.6-7.8%. For mid precision like 4-bit quantization, SQ4 achieves 1.43-2.47x the prefill throughput of NInfer's groupwise-integer baselines across the tested models and prompt lengths, with 24-40% lower KL than the NInfer baselines. For high precision like 8-bit quantization, SQ8 achieves 27.4% higher batch-one prefill throughput and 72.7% lower KL than vLLM's online FP8.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Shifter Quantization、llama.cpp、vLLM、量化,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Yufeng Huang),经 AITOP 多维评分管线结构化提炼。