arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20303cs.LGstat.ML
收藏

SpectrumQuant:面向大语言模型量化的频谱对齐方法

SpectrumQuant: Spectrum Alignment for LLM Quantization

Indian Institute of Science(印度科学研究所)

Dwaipayan Haldar, Indranil Patra, Azhar Yousuf, Chandra Sekhar Seelamantula

AI总结:

SpectrumQuant是一种基于频谱对齐的LLM量化闭式旋转方法,在Llama、Mistral模型上性能与最优策略相当,内存和时间开销远低于SpinQuant等学习型旋转方法。

摘要:

正交变换已成为大语言模型(LLM)低比特量化的有效工具,因为它们在不改变底层模型函数的情况下重塑激活分布。现有方法通常依赖固定的与数据无关的变换(如哈达玛旋转),或在校准阶段优化学习到的旋转。我们从第一性原理出发研究旋转选择,证明最大化协方差可实现频谱对齐,并为构建量化友好的正交变换提供了原则性准则。基于这一见解,我们提出SpectrumQuant,这是一种闭式旋转方法,它从校准数据中估计激活协方差,并利用其构建用于训练后量化的协方差感知正交变换。我们的公式将量化友好的旋转表征为对齐分量与混合分量的组合,同时将哈达玛矩阵作为特例恢复。有趣的是,一类蝴蝶矩阵也属于这一范畴。在LLM量化领域,SpectrumQuant弥合了与数据无关的结构化旋转与学习到的旋转之间的差距,为训练后量化提供了一种有效且高效的、与数据相关的替代方案。在Llama和Mistral模型上的实验表明,SpectrumQuant与最先进的旋转策略具有竞争力,同时所需GPU内存不到学习到的旋转方法(如SpinQuant和DartQuant)的三分之一,且时间显著更少。

英文摘要:

Orthogonal transforms have emerged as an effective tool for low-bit quantization of large language models (LLMs), as they reshape activation distributions without changing the underlying model function. Existing approaches typically rely either on fixed data-agnostic transforms, such as Hadamard rotations, or on calibration-time optimization of learned rotations. We study rotation selection from first principles and show that maximizing covariance leads to spectral alignment and provides a principled criterion for constructing quantization-friendly orthogonal transforms. Based on this insight, we propose SpectrumQuant, a closed-form rotation method that estimates activation covariance from calibration data and uses it to construct a covariance-aware orthogonal transform for post-training quantization. Our formulation characterizes quantization-friendly rotations as compositions of alignment and mixing components, while recovering Hadamard matrices as a special case. Interestingly, a class of butterfly matrices belongs to this category. In the realm of LLM quantization, SpectrumQuant bridges the gap between data-agnostic structured rotations and learned rotations, providing an effective and efficient data-aware alternative for post-training quantization. Experiments on Llama and Mistral models show that SpectrumQuant is competitive with state-of-the-art rotation strategies while requiring less than one-third of the GPU memory and significantly less time than learned rotations approaches like SpinQuant and DartQuant.

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

↑