LATMiX:用于LLM微缩量化的学习可逆变换
LATMiX: Learnable Affine Transformations for Microscaling Quantization of LLMs
AI总结:
本文提出LATMiX方法,通过学习可逆仿射变换提升LLM微缩量化精度,实验显示在多种零样本基准上优于现有方法。
摘要:
后训练量化(PTQ)是降低大语言模型(LLMs)内存和计算成本的常用方法。最近研究表明,对激活应用可逆变换可显著提高量化鲁棒性,但现有方法多局限于旋转或Hadamard变换。此外,大多数研究聚焦于传统量化方案,而现代硬件逐渐支持微缩(MX)数据格式。尝试结合两者导致性能下降,因此先前工作引入了变换假设。本文提出互补视角,通过推导量化误差界分析MX量化下的变换,强调需考虑激活分布和底层量化结构。基于此分析,提出LATMiX,通过标准深度学习工具优化学习可逆仿射变换。实验显示,在多种零样本基准上,MX低比特量化平均精度优于强基线。
英文摘要:
Post-training quantization (PTQ) is a widely used approach for reducing the memory and compute costs of large language models (LLMs). Recent studies have shown that applying invertible transformations to activations can significantly improve quantization robustness by reducing activation outliers; however, existing approaches are largely restricted to rotation or Hadamard-based transformations. Moreover, most studies focused primarily on traditional quantization schemes, whereas modern hardware increasingly supports the microscaling (MX) data format. Attempts to combine both showed severe performance degradation, leading prior work to introduce assumptions on the transformations. In this work, we take a complementary perspective. First, we provide a theoretical analysis of transformations under MX quantization by deriving a bound on the quantization error. Our analysis emphasizes the importance of accounting for both the activation distribution and the underlying quantization structure. Building on this analysis, we propose LATMiX, a method that generalizes outlier reduction to learnable invertible affine transformations optimized using standard deep learning tools. Experiments show consistent improvements in average accuracy for MX low-bit quantization over strong baselines on a wide range of zero-shot benchmarks, across multiple model sizes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。