arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.13358cs.CL
收藏

AdpQ:一种用于大语言模型的零样本、免校准自适应后训练量化方法

AdpQ: A Zero-shot Calibration Free Adaptive Post Training Quantization Method for LLMs

Huawei Noah’s Ark Lab(华为诺亚方舟实验室);McGill University(麦吉尔大学)

Alireza Ghaffari, Sharareh Younesian, Vahid Partovi Nia, Boxing Chen, Masoud Asgharian

AI总结:

提出零样本免校准的自适应后训练量化方法AdpQ,利用自适应LASSO分离显著权重并最小化KL散度,在3比特量化下达到与现有方法相同精度,量化时间至少降低10倍。

摘要:

大语言模型(LLMs)日益增长的计算复杂度 necessitates 高效的部署策略。当前最先进的后训练量化(PTQ)方法通常需要校准数据以达到期望的精度。本文提出 AdpQ,一种新颖的零样本自适应 PTQ 方法,用于 LLMs,在低精度量化(如 3 比特)中无需任何校准数据即可实现最先进的性能。受自适应 LASSO 回归模型启发,我们的方法通过使用自适应软阈值方法分离显著权重来应对异常值激活的挑战。在自适应 LASSO 的引导下,该方法确保量化后的权重分布紧密遵循原始训练权重,并完全消除对校准数据的需求,这使我们的方法区别于 SpQR 和 AWQ 等流行方法。此外,我们的方法通过消除任何校准或训练数据,在隐私保护方面提供了额外优势。我们还深入探讨了所提出方法的信息论基础。我们证明,它利用自适应 LASSO 最小化量化权重与原始训练权重之间的 Kullback-Leibler 散度。这种最小化确保量化模型在很大程度上保留原始模型的 Shannon 信息内容,保证高效部署而不牺牲精度或信息。我们的结果在各种 LLM 基准上达到与现有方法相同的精度,同时量化时间至少减少 10 倍,巩固了我们对高效且保护隐私的 LLM 部署的贡献。

英文摘要:

The ever-growing computational complexity of Large Language Models (LLMs) necessitates efficient deployment strategies. The current state-of-the-art approaches for Post-training Quantization (PTQ) often require calibration to achieve the desired accuracy. This paper presents AdpQ, a novel zero-shot adaptive PTQ method for LLMs that achieves the state-of-the-art performance in low-precision quantization (e.g. 3-bit) without requiring any calibration data. Inspired by Adaptive LASSO regression model, our proposed approach tackles the challenge of outlier activations by separating salient weights using an adaptive soft-thresholding method. Guided by Adaptive LASSO, this method ensures that the quantized weights distribution closely follows the originally trained weights and eliminates the need for calibration data entirely, setting our method apart from popular approaches such as SpQR and AWQ. Furthermore, our method offers an additional benefit in terms of privacy preservation by eliminating any calibration or training data. We also delve deeper into the information-theoretic underpinnings of the proposed method. We demonstrate that it leverages the Adaptive LASSO to minimize the Kullback-Leibler divergence between the quantized weights and the originally trained weights. This minimization ensures the quantized model retains the Shannon information content of the original model to a great extent, guaranteeing efficient deployment without sacrificing accuracy or information. Our results achieve the same accuracy as the existing methods on various LLM benchmarks while the quantization time is reduced by at least 10x, solidifying our contribution to efficient and privacy-preserving LLM deployment.

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

↑