TensorX
返回文献探索

Paper · arXiv 2309.05516

Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs

Wenhua Cheng, Weiwei Zhang, Haihao Shen, Yiyang Cai, Xin He, Kaokao Lv

16 upvotesSeptember 11, 2023arXiv 预印本
AI 摘要

SignRound, a lightweight block-wise tuning method using signed gradient descent, optimizes weight rounding in weight-only quantization of Large Language Models, outperforming RTN and other recent methods without inference overhead.

weight-only quantization3-bit4-bitup and down roundingperturbationsSignRoundsigned gradient descentrounding-to-nearest (RTN)

Abstract

Large Language Models (LLMs) have proven their exceptional capabilities in performing language-related tasks. However, their deployment poses significant challenges due to their considerable memory and storage requirements. In response to this issue, weight-only quantization, particularly 3 and 4-bit weight-only quantization, has emerged as one of the most viable solutions. As the number of bits decreases, the quantization grid broadens, thus emphasizing the importance of up and down rounding. While previous studies have demonstrated that fine-tuning up and down rounding with the addition of perturbations can enhance accuracy in some scenarios, our study is driven by the precise and limited boundary of these perturbations, where only the threshold for altering the rounding value is of significance. Consequently, we propose a concise and highly effective approach for optimizing the weight rounding task. Our method, named SignRound, involves lightweight block-wise tuning using signed gradient descent, enabling us to achieve outstanding results within 400 steps. SignRound outperforms the established baseline of rounding-to-nearest (RTN) and competes impressively against recent methods, without introducing additional inference overhead. The source code will be publicly available at https://github.com/intel/neural-compressor soon.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs | TensorX