OffQ:通过偏移驯服LLM量化中的结构化异常值
OffQ: Taming Structured Outliers in LLM Quantization by Offsetting
AI总结:
提出OffQ方法,通过top-1 PCA识别异常值子空间、旋转集中异常值通道并转换为共享偏移,实现LLM的低比特均匀量化,在W4A4KV4下提升精度。
摘要:
低比特量化已被广泛采用,通过显著降低计算成本和内存使用来加速大型语言模型(LLM)的推理。然而,激活异常值对有效量化构成了重大挑战,常常导致显著的性能下降。在本文中,我们介绍了OffQ,一种通过新颖的偏移机制来缓解低比特量化中激活异常值的方法。具体来说,OffQ首先使用提出的top-1 PCA识别激活中的低维异常值子空间,然后通过旋转将高幅度激活集中到1个通道中。OffQ随后通过将其幅度转换为共享偏移来吸收这个集中的异常值通道,从而降低激活的标准差。这种偏移策略使得使用部署友好的均匀网格和均匀精度量化对LLM进行有效的W4A4KV4量化成为可能。在多种LLM架构和基准上的广泛实验表明,OffQ优于最先进的基线,在保持低比特效率的同时持续提高模型精度。
英文摘要:
Low-bit quantization has been widely adopted to accelerate the inference of large language models (LLMs) by significantly reducing computational cost and memory usage. However, activation outliers pose a major challenge to effective quantization, often leading to notable performance degradation. In this paper, we introduce OffQ, a method designed to mitigate activation outliers in low-bit quantization through a novel offsetting mechanism. Specifically, OffQ first identifies a low-dimensional outlier subspace in the activations using a proposed top-1 PCA, and then concentrates high-magnitude activations into 1 channel via rotation. OffQ then absorbs this concentrated outlier channel by converting its magnitude into a shared offset, thereby reducing the standard deviation of the activations. This offsetting strategy enables effective W4A4KV4 quantization of LLMs using deployment-friendly uniform-grid and uniform-precision quantization. Extensive experiments across diverse LLM architectures and benchmarks demonstrate that OffQ outperforms state-of-the-art baselines, consistently improving model accuracy while preserving low-bit efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。