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

TEQ:面向大语言模型量化的可训练等价变换

TEQ: Trainable Equivalent Transformation for Quantization of LLMs

Intel(英特尔)

Wenhua Cheng, Yiyang Cai, Kaokao Lv, Haihao Shen

AI总结:

本文提出TEQ,一种可训练的等价变换,在保持FP32输出精度的同时,实现3/4位仅权重量化,训练轻量(1K步,<0.1%参数),推理无额外开销,性能与SOTA相当,可与其他方法结合提升效果。

摘要:

随着大语言模型(LLMs)日益普及,人们越来越需要新的和改进的量化方法,这些方法既能满足这些现代架构的计算需求,又能保持准确性。在本文中,我们提出了TEQ,一种可训练的等价变换,它在利用低精度量化(尤其是3位和4位仅权重量化)优势的同时,保持模型输出的FP32精度。训练过程是轻量级的,仅需1K步,且训练参数少于原始模型的0.1%。此外,该变换在推理期间不增加任何计算开销。我们的结果在典型LLMs上与最先进(SOTA)方法相当。我们的方法可以与其他方法结合,以实现更好的性能。代码可在https://github.com/intel/neural-compressor获取。

英文摘要:

As large language models (LLMs) become more prevalent, there is a growing need for new and improved quantization methods that can meet the computationalast layer demands of these modern architectures while maintaining the accuracy. In this paper, we present TEQ, a trainable equivalent transformation that preserves the FP32 precision of the model output while taking advantage of low-precision quantization, especially 3 and 4 bits weight-only quantization. The training process is lightweight, requiring only 1K steps and fewer than 0.1 percent of the original model's trainable parameters. Furthermore, the transformation does not add any computational overhead during inference. Our results are on-par with the state-of-the-art (SOTA) methods on typical LLMs. Our approach can be combined with other methods to achieve even better performance. The code is available at https://github.com/intel/neural-compressor.

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

↑