arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.10467cs.LGcs.AI
收藏

AnyBCQ: 面向多精度大语言模型的硬件高效灵活二进制编码量化

AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs

NAVER Cloud(NAVER云)

Gunho Park, Jeongin Bae, Beomseok Kwon, Byeongwook Kim, Se Jung Kwon, Dongsoo Lee

AI总结:

AnyBCQ通过硬件高效灵活的二进制编码量化技术,实现多精度大语言模型在准确性和效率之间的平衡,显著提升低精度下的准确性并提高吞吐量。

摘要:

大语言模型(LLMs)的部署日益受到内存和延迟瓶颈的限制,推动了需要在准确性和效率之间灵活平衡的量化技术的需求。近期的研究引入了多精度模型,使模型能够在单个模型内根据运行时约束在多种精度下进行推断。为了支持这种灵活性,量化权重通常存储为位平面,在硬件效率提高时,计算直接在位平面级别操作,并仅激活每个请求所需的精度。在本工作中,我们提出了AnyBCQ,这是一种硬件友好的多精度二进制编码量化(BCQ)扩展,支持直接的位平面操作。通过将权重表示为带有相应缩放因子的二进制位平面,AnyBCQ实现了位平面级别的计算,并自然映射到适合加速器的位并行算术。我们的渐进精度扩展机制逐步细化缩放因子,同时重用已分配的二进制代码,从而在启用更多位时实现准确性的单调改进。我们进一步设计了一个专用内核,利用BCQ结构来支持动态的每请求精度选择,其开销极小。在最近的LLMs上的实验表明,AnyBCQ显著缩小了低精度(例如2位)下的准确性下降,保持了高精度下的竞争力,并在半精度上实现了高达3.0倍的吞吐量提升,在多精度方法上实现了1.2倍的提升。通过将算法灵活性与硬件效率对齐,AnyBCQ为跨多样服务级别目标的多精度LLM部署提供了实用的基础。

英文摘要:

The deployment of large language models (LLMs) is increasingly constrained by memory and latency bottlenecks, motivating the need for quantization techniques that flexibly balance accuracy and efficiency. Recent work has introduced multi-precision models, which enable inference at multiple precisions within a single model depending on runtime constraints. To support such flexibility, quantized weights are often stored as bit-planes, where hardware efficiency improves when the compute operates directly at the bit-plane level and activates only the precision required by each request. In this work, we present AnyBCQ, a hardware-friendly multi-precision extension of Binary-Coded Quantization (BCQ) that supports direct bit-plane operations. By representing weights as binary bit-planes with corresponding scale factors, AnyBCQ enables bit-plane-level computation and maps naturally to accelerator-friendly, bit-parallel arithmetic. Our progressive precision expansion mechanism incrementally refines scaling factors while reusing previously assigned binary codes, yielding monotonic improvements in accuracy as additional bits are enabled. We further co-design a specialized kernel that exploits the BCQ structure to support dynamic per-request precision selection with negligible overhead. Experiments on recent LLMs demonstrate that AnyBCQ significantly narrows the accuracy drop in the low-bit regime (e.g. 2-bit), remains competitive at higher precision, and achieves throughput gains of up to 3.0x over half precision and 1.2x over state-of-the-art multi-precision methods. By aligning algorithmic flexibility with hardware efficiency, AnyBCQ provides a practical foundation for multi-precision LLM deployment across diverse service-level objectives.

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

↑