arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.00956cs.LGcs.CL
收藏

WUSH: 面向LLM量化的近最优自适应变换

WUSH: Near-Optimal Adaptive Transforms for LLM Quantization

University of Tartu(塔尔图大学)

Jiale Chen, Vage Egiazarian, Roberto L. Castro, Torsten Hoefler, Dan Alistarh

AI总结:

提出一种结合Hadamard基与数据依赖二阶矩的非正交变换WUSH,在标准RTN AbsMax缩放块量化器下实现权重-激活联合量化的闭式最优解,显著提升低比特量化精度并支持高效GPU实现。

摘要:

量化LLM权重和激活是实现高效部署的标准方法,但少数极端异常值会拉伸动态范围并放大低比特量化误差。先前的基于变换的缓解方法(例如Hadamard旋转)是固定的且与数据无关,其量化最优性尚不明确。我们推导了在标准RTN AbsMax缩放块量化器下,用于联合权重-激活量化的闭式最优线性块变换,涵盖整数和浮点格式。由此产生的构造WUSH将Hadamard骨干与数据依赖的二阶矩分量相结合,形成一种非正交变换,在温和假设下对FP和INT量化器证明是近最优的,同时支持高效的融合GPU实现。实验上,WUSH在最强Hadamard基线(例如,在Llama-3.1-8B-Instruct的MXFP4上,RTN平均提升+2.8个点,GPTQ提升+0.7个点)上改善了W4A4精度,同时通过FP4 MatMul实现了高达BF16的5.8倍每层吞吐量。源代码可在https://github.com/IST-DASLab/WUSH获取。

英文摘要:

Quantizing LLM weights and activations is a standard approach for efficient deployment, but a few extreme outliers can stretch the dynamic range and amplify low-bit quantization errors. Prior transform-based mitigations (e.g., Hadamard rotations) are fixed and data-agnostic, and their optimality for quantization has remained unclear. We derive closed-form optimal linear blockwise transforms for joint weight-activation quantization under standard RTN AbsMax-scaled block quantizers, covering both integer and floating-point formats. The resulting construction, WUSH, combines a Hadamard backbone with a data-dependent second-moment component to form a non-orthogonal transform that is provably near-optimal for FP and INT quantizers under mild assumptions while admitting an efficient fused GPU implementation. Empirically, WUSH improves W4A4 accuracy over the strongest Hadamard-based baselines (e.g., on Llama-3.1-8B-Instruct in MXFP4, it gains +2.8 average points with RTN and +0.7 with GPTQ) while delivering up to 5.8$\times$ per-layer throughput over BF16 via FP4 MatMul. Source code is available at https://github.com/IST-DASLab/WUSH.

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

↑