arXiv:2510.16045cs.LGcs.AI2025-10

提出非整数位宽浮点量化,显著加速大模型推理

AMS-QUANT: Adaptive Mantissa Sharing for Floating-point Quantization

  • 通过共享尾数位降低精度损失,实现非整数位宽量化
  • 可达到FP-5.33-e2m3和FP4.25-e2m2,提速2.8至3.2倍
  • 适合追求高效推理的大模型部署场景

大语言模型在多种任务中展现出强大能力,但其数十亿甚至万亿参数带来了存储与推理效率瓶颈。量化技术,尤其是浮点量化,可通过减少内存占用和数据移动来加速推理。本文首次将浮点量化从整数位宽拓展至非整数位宽,提出AMS-Quant方法:(1) 提出尾数位共享机制,对k个量化权重共享最低有效尾数位,进一步逼近最小量化位宽而不损失精度;(2) 引入自适应搜索策略,通过离线优化最小化共享带来的精度下降。此外,AMS-Quant还实现了高效的CUDA线性核原型,将内存节省转化为实际推理延迟降低。大规模实验表明,该方法可将模型量化至FP-5.33-e2m3和FP4.25-e2m2,在保持极小精度损失的前提下,相比FP16推理分别提速2.8倍和3.2倍。

原文摘要 · Abstract (English)

Large language models (LLMs) have demonstrated remarkable capabilities in various kinds of tasks, while the billion or even trillion parameters bring storage and efficiency bottlenecks for inference. Quantization, particularly floating-point quantization, is known to be capable of speeding up LLM inference by reducing memory footprint and data movement during the inference process. For the first time, we advance the floating-point quantization exploration from integer bitwidths to non-integer bit-widths, namely AMS-Quant, to further approach the quantization sweet spot. AMS-Quant incorporates two novel techniques to put it into effect: (1) it proposes Mantissa-bit Sharing, which groups k quantized weights and lets them share the least significant mantissa bit, allowing us to further approach the minimum quantization bit-width without accuracy loss. (2) It introduces Adaptive Searching, which employs an offline optimization strategy to minimize the accuracy degradation introduced by sharing. Moreover, AMS-Quant is also prototyped as efficient CUDA Linear kernels, which translates memory savings into wall-clock latency reduction by reducing memory access. Extensive experiments on large-scale datasets and models show that AMS-Quant can quantize the model to FP-5.33-e2m3 and FP4.25-e2m2, and significantly speed up the LLM decoding over FP16 inference (2.8x and 3.2x), with negligible accuracy loss.

量化大模型推理加速浮点量化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。