通过频域分解实现4比特超低比特量化,精度损失仅1.5%。
SpecQuant: Spectral Decomposition and Adaptive Truncation for Ultra-Low-Bit LLMs Quantization
- 从傅里叶频域视角,分两阶段处理激活值异常与通道差异
- 4比特量化下零样本准确率差距仅1.5%,推理速度提升2倍
- 支持运行时自适应截断,适合移动端大模型部署
随着高精度开源大语言模型的兴起,高效部署于终端设备的需求推动了先进量化技术的发展。本文从傅里叶频率域视角重新审视极端模型压缩问题——即权重与激活值的超低比特量化。提出SpecQuant,一种两阶段框架:第一阶段将激活异常值平滑并转移至权值矩阵,简化后续量化;第二阶段采用逐通道低频傅里叶截断,抑制高频成分同时保留关键信号能量,提升量化鲁棒性。该方法基于权重能量主要集中在低频成分的原理,可最小化精度损失。为实现运行时自适应,引入轻量级截断模块,根据通道特性动态调整截断阈值。在LLaMA-3 8B上,实现权重与激活值均为4比特量化,零样本准确率差距仅1.5%,推理速度提升2倍,内存占用降低3倍。代码将于https://github.com/Kishon-zzx/SpecQuant公开。
原文摘要 · Abstract (English)
The emergence of accurate open large language models (LLMs) has sparked a push for advanced quantization techniques to enable efficient deployment on end-user devices. In this paper, we revisit the challenge of extreme LLM compression -- targeting ultra-low-bit quantization for both activations and weights -- from a Fourier frequency domain perspective. We propose SpecQuant, a two-stage framework that tackles activation outliers and cross-channel variance. In the first stage, activation outliers are smoothed and transferred into the weight matrix to simplify downstream quantization. In the second stage, we apply channel-wise low-frequency Fourier truncation to suppress high-frequency components while preserving essential signal energy, improving quantization robustness. Our method builds on the principle that most of the weight energy is concentrated in low-frequency components, which can be retained with minimal impact on model accuracy. To enable runtime adaptability, we introduce a lightweight truncation module during inference that adjusts truncation thresholds based on channel characteristics. On LLaMA-3 8B, SpecQuant achieves 4-bit quantization for both weights and activations, narrowing the zero-shot accuracy gap to only 1.5% compared to full precision, while delivering 2 times faster inference and 3times lower memory usage. Code will be available at https://github.com/Kishon-zzx/SpecQuant.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。