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

GSQ-Tuning:面向LLMs设备端微调的全量化训练中的组共享指数整数

GSQ-Tuning: Group-Shared Exponents Integer in Fully Quantized Training for LLMs On-Device Fine-tuning

Houmo AI(后摩智能);Southeast University(东南大学);Illinois Institute of Technology(伊利诺伊理工学院)

Sifan Zhou, Shuo Wang, Zhihang Yuan, Mingjia Shi, Yuzhang Shang, Dawei Yang

AI总结:

本文提出GSQ-Tuning框架,通过组共享指数整数格式实现完全基于整数的设备端LLM微调,在保持与BF16相当准确度的同时显著降低内存、功耗和芯片面积。

摘要:

大型语言模型(LLMs)微调技术已取得显著成果。然而,传统的LLM微调方法面临重大挑战:它们需要大量的浮点(FP)计算,在处理敏感数据时引发隐私担忧,且对于资源受限的边缘设备而言不切实际。尽管参数高效微调(PEFT)技术减少了可训练参数,但其对浮点运算的依赖与边缘硬件产生了根本性的不兼容。在本工作中,我们提出了一种新颖的设备端LLM微调框架,在推理和训练中均消除了对浮点运算的需求,命名为GSQ-Tuning。其核心是组共享指数整数格式,该格式利用参数组之间的共享指数,以整数格式高效地表示模型参数。当与类似LoRA的适配器结合时,这实现了完全基于整数的微调,在内存和计算上均十分高效。我们证明,我们的方法实现了与基于BF16的微调相当的准确度,同时显著减少了1.85倍的内存使用。此外,与FP8相比,我们的方法在相同性能下可减少5倍的功耗和11倍的芯片面积,使得在边缘设备上进行大规模模型适配成为可能。

英文摘要:

Large Language Models (LLMs) fine-tuning technologies have achieved remarkable results. However, traditional LLM fine-tuning approaches face significant challenges: they require large Floating Point (FP) computation, raising privacy concerns when handling sensitive data, and are impractical for resource-constrained edge devices. While Parameter-Efficient Fine-Tuning (PEFT) techniques reduce trainable parameters, their reliance on floating-point arithmetic creates fundamental incompatibilities with edge hardware. In this work, we introduce a novel framework for on-device LLM fine-tuning that eliminates the need for floating-point operations in both inference and training, named GSQ-Tuning. At its core is the Group-Shared Exponents Integer format, which efficiently represents model parameters in integer format using shared exponents among parameter groups. When combined with LoRA-like adapters, this enables fully integer-based fine-tuning that is both memory and compute efficient. We demonstrate that our approach achieves accuracy comparable to BF16-based fine-tuning while significantly reducing 1.85x memory usage. Moreover, compared to FP8, our method can reduce 5x power consumption and 11x chip area with same performance, making large-scale model adaptation feasible on edge devices.

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

↑