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

TesseraQ:采用块重建的超低比特 LLM 训练后量化

TesseraQ: Ultra Low-Bit LLM Post-Training Quantization with Block Reconstruction

Yale University(耶鲁大学)

Yuhang Li, Priyadarshini Panda

AI总结:

本文提出 TesseraQ,通过块重建、渐进式自适应舍入和反量化缩放优化实现超低比特 LLM PTQ,并可增强 AWQ、OmniQuant 等方法。

摘要:

大型语言模型(LLM)已经革新了自然语言处理,但其代价是巨大的内存和计算需求。训练后量化(PTQ)正成为降低 LLM 内存占用并提高推理吞吐量的事实标准方法。在本文中,我们致力于通过利用块重建技术优化权重舍入参数,推进 LLM PTQ 的上限;该技术曾是以往视觉模型中的主流方法。我们提出 TesseraQ,这是一种全新的、达到最先进水平的 PTQ 技术,用于将 LLM 的权重量化到超低比特。为了有效优化 LLM 中的舍入并稳定重建过程,我们引入渐进式自适应舍入。该方法在重建过程中迭代地将软舍入变量转变为硬变量。此外,我们优化反量化缩放参数,以充分利用块重建技术。我们证明,TesseraQ 可以无缝集成到现有的基于缩放或裁剪的 PTQ 算法中,例如 AWQ 和 OmniQuant,从而显著提升其性能并确立新的最先进水平。例如,在 LLaMA-2-7B 的 2 比特仅权重量化中,与 AWQ 相比,TesseraQ 将 wikitext2 困惑度从 14.65 改善到 6.82,并将平均下游准确率从 50.52 提升到 59.27。在包括 W2A16、W3A16、W3A3 和 W4A4 在内的一系列量化方案中,TesseraQ 始终表现出优越性能。

英文摘要:

Large language models (LLMs) have revolutionized natural language processing, albeit at the cost of immense memory and computation requirements. Post-training quantization (PTQ) is becoming the de facto method to reduce the memory footprint and improve the inference throughput of LLMs. In this work, we aim to push the upper limit of LLM PTQ by optimizing the weight rounding parameters with the block reconstruction technique, a predominant method in previous vision models. We propose TesseraQ, a new state-of-the-art PTQ technique, to quantize the weights of LLMs to ultra-low bits. To effectively optimize the rounding in LLMs and stabilize the reconstruction process, we introduce progressive adaptive rounding. This approach iteratively transits the soft rounding variables to hard variables during the reconstruction process. Additionally, we optimize the dequantization scale parameters to fully leverage the block reconstruction technique. We demonstrate that TesseraQ can be seamlessly integrated with existing scaling or clipping-based PTQ algorithms such as AWQ and OmniQuant, significantly enhancing their performance and establishing a new state-of-the-art. For instance, when compared to AWQ, TesseraQ improves the wikitext2 perplexity from 14.65 to 6.82 and average downstream accuracy from 50.52 to 59.27 with 2-bit weight-only quantization of LLaMA-2-7B. Across a range of quantization schemes, including W2A16, W3A16, W3A3, and W4A4, TesseraQ consistently exhibits superior performance.

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

↑