跳到正文
arXiv (AI + Vision + Imaging)· Cuong Pham, Hoang Anh Dung, Cuong C. Nguyen, Trung Le, Gustavo Carneiro, Jianfei Cai, Thanh-Toan Do·· 9 天前AI 评分22

面向大语言模型训练后量化的自适应逐层变换方法

Adaptive Layer-Wise Transformations for Post-Training Quantization of Large Language Models

AI 导读

研究提出自适应变换选择框架,按层为LLM确定最优量化变换类型,以缓解激活与权重中的系统性离群值。该方法利用权重分布峰度与变换类型的关联,通过鲁棒z-score归一化的离群值引导层选择,性能接近可微搜索且开销显著降低。在LLaMA-3-8B的W3A3KV2量化下,相比FlatQuant困惑度最多改善4.58点,六任务零样本平均准确率提升2.11%。

正文 · 原文

arXiv:2511.17809v2 Announce Type: replace Abstract: Large language models require significant computational resources for deployment, making quantization essential for practical applications. However, the main obstacle to effective quantization lies in systematic outliers in activations and weights, which cause substantial LLM performance degradation, especially at low-bit settings. While existing transformation-based methods like affine and rotation transformations successfully mitigate outliers, they apply the homogeneous transformation setting, i.e., using the same transformation types across all layers, ignoring the heterogeneous distribution characteristics within LLMs. In this paper, we propose an adaptive transformation selection framework that systematically determines optimal transformations on a per-layer basis. To this end, we first formulate transformation selection as a differentiable optimization problem to achieve the accurate transformation type for each layer. However, searching for optimal layer-wise transformations for every model is computationally expensive. To this end, we establish the connection between weight distribution kurtosis and accurate transformation type. Specifically, we propose an outlier-guided layer selection method using robust $z$-score normalization that achieves comparable performance to differentiable search with significantly reduced overhead. Comprehensive experiments on LLaMA family models demonstrate that our adaptive approach consistently outperforms the widely-used fixed transformation settings. For example, our method achieves an improvement of up to 4.58 perplexity points and a 2.11% gain in average six-task zero-shot accuracy under aggressive W3A3KV2 quantization settings for the LLaMA-3-8B model compared to the current best existing method, FlatQuant, demonstrating the necessity of heterogeneous transformation selection for optimal LLM quantization.

来源:arXiv (AI + Vision + Imaging) · arxiv.org