arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.32243cs.LG
收藏

BiLoCo:用于后训练量化的二进制低秩校正

BiLoCo: Binary Low-Rank Corrections for Post-Training Quantization

Massachusetts Institute of Technology(麻省理工学院)

David Jin, Beshr IslamBouli, Tarushii Goel, Han Guo, Yoon Kim

AI总结:

提出BiLoCo二进制低秩校正方法,实现大语言模型FP4后训练量化的精度与效率平衡,在B300上的融合内核性能优于或匹配SVDQuant。

摘要:

后训练量化(PTQ)至FP4已成为降低大语言模型推理成本的关键技术,尤其在原生支持FP4张量核心的Blackwell GPU上。然而,直接进行FP4的PTQ仍存在明显的精度差距。近期SVDQuant的工作通过添加经SVD得到的高精度低秩校正,缓解了扩散模型FP4量化引入的误差,但该高精度低秩校正每个秩需要多位,且与主FP4 GEMM在同一张量核心上运行。本文提出BiLoCo,一种低秩校正方法,其左右因子存储为二进制{±1}符号向量而非BF16数值。这种符号格式每个秩1分量的存储量减少16倍,且由于校正由加/减法构成,可与FP4张量核心GEMM在CUDA核心上并行运行。在4B至72B规模的大语言模型上,BiLoCo在内存匹配条件下的PTQ性能与SVDQuant相当或更优。我们在B300上将BiLoCo实现为融合单内核,其中FP4 GEMM在张量核心运行,位打包的校正在同一启动的CUDA核心运行,两者在GEMM后处理中结合。当批量大小为1时,对于最高512的每个秩,融合内核的速度最多比纯FP4 GEMM慢11%;当秩为128时,对于最高8的批量大小,速度最多慢20%。

英文摘要:

Post-training quantization (PTQ) to FP4 has emerged as a key technique for reducing large language model inference cost, especially on Blackwell GPUs, which offer native FP4 tensor core support. Direct PTQ to FP4, however, still leaves a noticeable accuracy gap. Recent work on SVDQuant mitigates the errors introduced through FP4 quantization for diffusion models by adding high-precision low-rank corrections obtained via SVD. However, this high-precision low-rank correction requires many bits per rank, and it runs on the same tensor cores as the main FP4 GEMM. We introduce BiLoCo, a low-rank correction method whose left and right factors are stored as binary ${\{\pm 1\}}$ sign vectors rather than as BF16 numbers. The signed format uses $16{\times}$ less storage per rank-one component, and since the correction now consists of additions/subtractions, this can be run on CUDA cores concurrently with the FP4 tensor-core GEMM. On 4B--72B LLMs, BiLoCo matches or improves memory-matched SVDQuant for PTQ. We implement BiLoCo on B300 as a fused single kernel, where the FP4 GEMM runs on tensor cores, the bit-packed correction on the CUDA cores of the same launch, and the two are combined in the GEMM epilogue. With batch size $1$, the fused kernel is at most $11\%$ slower than the FP4-only GEMM for every rank up to $512$. At rank $128$, it is at most $20\%$ slower up to batch size $8$.

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

↑