원시데이터 수집 시스템
선정목록으로

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

관련 엔지니어링 플라스틱 · (23) 컴파운드

기본 정보

저자
  1. Sifan Zhou
  2. Shuo Wang
  3. Zhihang Yuan
  4. Mingjia Shi
  5. Yue Shang
  6. Dawei Yang
DOI
10.18653/v1/2025.findings-acl.1178
저널
–
발행년도
2025
발행기관
–
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.18653/v1/2025.findings-acl.1178
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W4412887767

평가 내용

관련도
관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

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 resourceconstrained 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 ondevice 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 FP16-based fine-tuning while significantly reducing memory usage ( 50%).Moreover, compared to FP8, our method can reduce 5 power consumption and 11 chip area with same performance, making large-scale model adaptation feasible on edge devices.

본문 83,132자

본문 펼치기
# GSQ-Tuning: Group-Shared Exponents Integer in Fully Quantized Training for LLMs On-Device Fine-tuning Sifan Zhou <sup>1,2</sup> <sup>_†‡_</sup> , Shuo Wang <sup>1</sup> <sup>_†_</sup> , Zhihang Yuan <sup>1</sup> <sup>_†_</sup> , Mingjia Shi <sup>1</sup> , Yuzhang Shang <sup>3</sup> <sup>�</sup>, Dawei Yang <sup>1</sup> <sup>�</sup> 1Houmo AI 2Southeast University 3Illinois Institute of Technology Abstract 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 resourceconstrained edge devices. While ParameterEfficient 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 ondevice 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 FP16-based fine-tuning while significantly reducing memory usage ( _∼_ 50%). Moreover, compared to FP8, our method can reduce _∼_ 5 _×_ power consumption and _∼_ 11 _×_ chip area with same performance, making large-scale model adaptation feasible on edge devices. 1 Introduction Recent advances in Large Language Models (LLMs) have delivered impressive results in a variety of natural language tasks (Touvron et al., 2023a,b; Liu et al., 2023). LLMs are typically trained in several stages, including large-scale pretraining followed by one or more fine-tuning phases (Dubey et al., 2024; Liu et al., 2024a). LLM fine-tuning approaches like supervised fine-tuning _†_ Equal contribution _‡_ Work done as an intern at Houmo AI (SFT) (Zhang et al., 2023), usually employ curated, high-quality corpora for refining the model with a standard language modeling (Chiang et al., 2023). Despite their effectiveness, most LLM finetuning approaches require powerful cloud servers or GPUs equipped with large memory capacities. This poses two significant challenges in real-world settings: (1) uploading sensitive data to remote servers poses a fundamental privacy risk, and (2) in many practical scenarios, models must be deployed on resource-constrained edge devices—such as mobile processors or embedded AI accelerators—where memory and power budgets are tightly limited. _Such constraints become criti-_ _cal in LLM’s personalized applications, where data_ _cannot be shared with the cloud and model updates_ _must remain local to ensure privacy._ _Meeting these_ _challenges thus necessitates on-device adaptation_ _methods_ _capable_ _of_ _preserving_ _data_ _privacy_ _and_ _functioning within the limited memory and compute_ _budgets of edge hardware._ Parameter-Efficient Fine-Tuning (PEFT) (Han et al., 2024) techniques such as LoRA (Hu et al., 2021) and QLoRA (Dettmers et al., 2023) alleviate part of this burden by reducing trainable parameters to around 1% of the original model. Unfortunately, they remain reliant on floating-point operations for both forward and backward passes, which clashes with edge-device constraints in three ways. First, during fine-tuning, weights, activation and gradients must be stored and updated in high-precision floating-point. It introduces additional overhead or even makes the LLM fine-tuning impractical on edge devices. Second, floating-point representations incur high memory overhead (e.g., FP16 doubles the memory cost compared to INT8; for a 7B-parameter model, this can surpass 20GB memory during fine-tuning process, presenting substantial challenges for mobile processors). Last but not least, commercial edge AI accelerators (e.g., Qualcomm Hexagon (QUALCOMM, 2024)) typically 22971 _Findings of the Association for Computational Linguistics:_ _ACL 2025_ pages 22971 22988 get peak throughput only on integers, leaving up to 84% of compute units idle under FP16 training. Therefore, eliminating floating-point arithmetic for fine-tuning would have a substantial impact on software, hardware, and application design for efficient on-device LLM adaptation (ARM, 2020; Kim et al., 2021). While previous studies on integer quantization (Jacob et al., 2018a; Kim et al., 2021; Xiao et al., 2022; Yuan et al., 2023) verify the feasibility of inference, they do not extend to gradient quantization, which is required for effective finetuning of LLMs at the edge. In this paper, we propose a new framework for resource-efficient on-device LLM fine-tuning, termed GSQ-Tuning . Central to our method is the _Group-Shared Exponents Integer_ format, a novel quantization strategy that replaces floating-point with a specialized integer-based representation. We integrate this with parameter-efficient LoRA-like modules to enable fully on-device fine-tuning without incurring large memory and computation costs. We further examine this design through a Pareto frontier analysis, which demonstrates how various bits-rank settings impact the trade-off between fine-tuning memory costs and accuracy. Extensive experiments across models of varying scales, different fine-tuning datasets, and diverse tasks have demonstrated the effectiveness and generalizability. We highlight our main contributions as follows: - Group-Shared Exponents Integer Quantization: We introduce a quantization strategy that shares exponents among groups, thereby reducing the storage and computation overhead while still representing model parameters in integer format. Combined with LoRAlike adapters, our method supports fine-tuning under tight memory constraints. - Integer Forward and Backward Computations: By extending integer quantization pipelines beyond inference to include gradients, both forward and backward passes remain hardware-friendly and efficiently utilize integer-focused edge accelerators. - Pareto Frontier for Quantization Bits and Low-rank: We demonstrates how various bits-rank settings impact the trade-off between fine-tuning memory costs and accuracy through a Pareto frontier analysis. We empirically show that our approach achieves accuracy on par with FP16-based fine-tuning while dramatically lowering both _∼_ 50% memory usage. Furthermore, compared with FP8, at comparable performance levels, our method (GSE-INT5) reduces the power consumption of MAC unit by _∼_ 5 _×_ and decreases chip area by _∼_ 11 _×_ comparing to the origin. 2 Method In this section, we present GSQ-Tuning, a fully quantized training method for on-device LLM fine-tuning. We begin by reviewing the fundamentals of LLM PEFT, highlighting the bottlenecks of implementing existing PEFT methods on device, and then review relevant neural network quantization literature (Sec.2.1). Building on these insights, we propose a new LLM finetuning framework— _Group-Shared Exponents In-_ _teger in Fully Quantized Training_ —for on-device scenarios. To enable this framework, we design two key components: (1) A _Group-Shared Expo-_ _nents Integer data format_ to replace floating-point representations (Sec.2.2). (2) A _Fully Quantized_ _Fine-tuning_ _Framework_ that leverages our new data format (Sec.2.3). Finally, we explore the performance–efficiency trade-off in GSQ-Tuning via Pareto frontier analysis (Sec.2.4), providing practical guidance for its use. 2.1 Preliminaries Low-rank Adaptation. LoRA (Hu et al., 2021) is a milestone method that injects trainable lowrank adapters into linear layers, allowing efficient fine-tuning while keeping the original parameters unchanged. Specifically, a LoRA linear layer is parameterized by a non-trainable weight matrix W _∈_ R <sup>_oc×ic_</sup>, along with trainable components A _∈_ R <sup>_r×ic_</sup> and B _∈_ R <sup>_oc×r_</sup>, where _r_ is a small integer. The input X _∈_ R <sup>_b×ic_</sup> and output Y _∈_ R <sup>_b×oc_</sup> correspond to a linear layer with _oc × ic_ processing a batch of size _b_ . Building on LoRA, QLoRA integrates it with 4-bit NormalFloat (NF4) quantization and Double Quantization (DQ)techniques, enabling the fine-tuning of a 65B parameter model on a single 48GB GPU with minimal performance loss. In this paper, due to the memory constraint of on-device PEFT, we adopt QLoRA to quantize the weights of LLMs. The formulation is: Y = X _DQ_ ( W <sup>NF4</sup> ) <sup>T</sup> + XA <sup>T</sup> B <sup>T</sup> where we omit the transpose for similarity, _NF_ 4 means the 4 bit NormalFloat (NF) data type and 22972 and _DQ_ is _Double Quantization_ operation to map weights from NF4 to BF16 in QLoRA. The lowrank components A and B and input X remain in BF16 during fine-tuning process. However, QLoRA still does not suit on-device PEFT scenarios because the low-rank term _XA_ <sup>_T_</sup> _B_ <sup>_T_</sup> remains in BF16, whereas most on-device hardware only supports integer operations. This limitation motivates our development of a new LoRA method that relies exclusively on integer operations. Quantization. Quantization (Jacob et al., 2018b) is a crucial technique that maps a floating-point number to a discrete interval using integer values. Given a floating-point (FP) tensor x (such as weights, activations or gradients), the _b_ -bits formulation is: 21 <u>20</u> 2 1 2 2 2 3 0 5 10 15 20 25 30 2 2 2 3 2 4 0 5 10 15 20 25 30 Layer Index + _z,_ 0 _,_ 2 <sup>_b_</sup> _−_ 1 - xint = _Q_ ( x ) = clamp _s_ �� <u>x</u> where _s_ = <sup><u>max(</u></sup> 2 <sup>_b−_</sup> <sup>1</sup> <sup>_<u>|</u>_</sup> _−_ <sup><u>x</u></sup> 1 <sup>_<u>|</u>_</sup> <sup><u>)</u></sup> <sup>is the scaling factor,</sup> <sup>_z_</sup> <sup>denotes</sup> zero points, _⌊·⌉_ refers to the round-to-nearest, and the function clamp( _·_ ) clips values outside the integer range [ _q_ min _, q_ max] respectively. [ _q_ min _, q_ max] is the quantization range determined by the bit width _b_, where _q_ min = _−sz_ and _q_ max = _−s_ (2 <sup>_b_</sup> _−_ 1 _−_ _z_ ). Fully Quantized Training (FQT). FQT involves quantizing all tensors—weights, activations, and gradients—needed for computation-intensive operations (like matrix multiplication) during both forward and backward propagation (Wang et al., 2018; Yang et al., 2020; Zhu et al., 2020). When the network’s weights, activations, and gradients are each quantized to 8 bits, this is referred to as W8A8G8 quantization. Notably, FQT is different from Quantization-Aware Training (QAT), we also discuss the difference in Sec. A.1. 2.2 Group-Shared Exponents Integer Low-bitwidth Floating Point (FP). Floatingpoint numbers are a commonly used data representation in deep learning. For instance, FP16 represents each number using 16 bits. Recently, lower-bit floating-point representations, such as FP8, have been introduced into the training processes of deep learning models (Micikevicius et al., 2022; Baalen et al., 2023). FP8 operates in two modes: the E4M3 and E5M2 formats. In these formats, E represents the number of exponent bits and M denotes that of mantissa bits. Similar to quantization methods, low-bitwidth FP formats can effectively reduce memory storage requirements and decrease the hardware area and energy consumption of computational units. Figure 1: In each layer, the weights’ magnitudes are similar. The standard deviations of weights across layers are less than 2 <sup>_−_</sup> <sup>2</sup> by 3- _σ_ (about probability 99.7%). The weights are from Vicuna-7B-v1.5. sign bit (S) exponent (E) mantissa (M) FP8 GSE-INT8 S=1 E=5 M=2 E=5 S=1, M=7 S=1, M=7 S=1, M=7 ... 1 × N × Figure 2: The GSE format is memory efficient through group-shared exponent bits. Comparison between FP8 and GSE-Int8. However, we observe that low-bitwidth FP may not be the optimal solution for LoRA fine-tuning in large-scale models, primarily due to the following 3 reasons: (1) Neural network tensors exhibit spatial locality, meaning that adjacent elements within a tensor tend to have similar magnitudes, leading to redundancy in the exponent bits of FP representations. As illustrated in Fig. 1, the standard deviation of the values in the weight tensor is considerably lower than the magnitude of the values, indicating a small local variation; (2) The limited number of mantissa bits in low-bitwidth FP formats constrains precision, potentially impairing model performance. For instance, the E5M2 format, which has only two mantissa bits, is incapable of representing certain integers below ten, such as 5, 7, and 9; (3) FP computation demonstrates less efficiency in memory, chip area, and power consumption compared to GSE-INT computation, making it less suitable for resource-constrained environments. As shown in Table 7, FP formats incur considerably higher costs in power and chip area compared to integer-based computation, making them less suitable for edge environments. Due to the inherent characteristics of FP representations and the requirement for relatively high precision in training, it is crucial to explore other data format to reduce both hardware area and energy consumption in resource-constrained cases. 22973 Group-Shared Exponents Integer (GSE-INT). Inspired with block FP (Zhang et al., 2022), we propose the Group-Shared Exponents Integer (GSE) format as an alternative to FP formats for matrix multiplication in both forward-propagation and back-propagation. This format is also used for storing activations required by back-propagation to reduce memory consumption. As illustrated in Fig. 2, GSE introduces the following key modifications compared to traditional floating-point formats: (1) To leverage the locality of tensor values, we share the exponent across a group of N numbers. That is, all N numbers within the group use the same exponent. (2) The number of bits used for the shared exponent is fixed at 5. (3) The implicit leading 1 in floating-point representations is removed and replaced with a standard integer representation. The numerical representation in GSE is: _x_ = ( _−_ 1) <sup>_s_</sup> _·_ 2 <sup>_e_</sup> _· m_ where _s_ is sign, _e_ is the exponent value (For simplicity, we omit the exponent bias), _m_ is the mantissa value. The GSE format is memory efficient through sharing exponent bits. Memory for FP is _N_ ( _E_ + _M_ + 1) and memory for GSE is _N_ ( _M_ + 1) + _E_ . As the group size N increases, the memory savings grow proportionally, while the overhead of the shared exponent is negligible. Matrix Multiplication using GSE. Consider two vectors, A and B, both represented using the GSE format and having a length of _N_ . The dot product of the two vectors can be computed as: Activation (BF16) Weight (FP32/NF4) Update Weight (Low-Rank Branch Only) Weight Grad (BF16) Input Grad (BF16) Activation (GSE-INT6) Weight (GSE-INT6) Weight Grad (INT32) Input Grad (INT32) Output (GSE-INT6) MatMul Grad Grad (GSE-INT6) (BF16) MatMul Weight (GSE-INT6) MatMul Output (INT32) Output (BF16) Store to memory _y_ = 2 <sup>_eA_</sup> <sup>+</sup> <sup>_eB_</sup> _N_ _i_ =1 <u>�</u> ( _<u>−</u>_ 1) <sup>_sA⊕sB_</sup> _mA,imB,i_ _,_ _i_ =1 _i_ =1 standard integer multiply-accumulate - �� _B,i_ where _mA,i_ and _mB,i_ are the integer mantissas of the _i_ -th elements of the vectors. The computation involves a standard integer multiply-accumulate (MAC) operation, followed by scaling with the combined exponent 2 <sup>_eA_</sup> <sup>+</sup> <sup>_eB_</sup> . The dot product operation can be extended to large-scale matrix multiplication. For two matrices X and Y, we partition the data into groups of size _N_ . Specifically, rows of X are grouped along their elements, with each group sharing a single exponent, and columns of Y are grouped similarly. This grouping strategy simplifies hardware implementation and makes the GSE format a practical and efficient choice for large-scale matrix operations. Transform from FP to GSE. The transformation from FP representation to GSE format is efficient Figure 3: Dataflow of GSQ-Tuning. The weight is NF4 in full-rank branch and is FP32 in low-rank branch. due to the design of GSE. First, within a group of _N_ FP numbers, identify the largest exponent _e_ max among them. Then, using _e_ max as the shared exponent for the group. For each FP value in the group, its mantissa is adjusted by adding the implicit leading bit (if applicable) and then right-shifting the value based on the difference between its original exponent and _e_ max. This process ensures that all values are aligned to the shared exponent, leading the storage and computation efficiency while preserving precision. 2.3 Fully Quantized Fine-tuning As illustrated in Fig. 3, our GSQ-Tuning framework introduces a hardware-efficient quantization pipeline. Compared to QLoRA, we fully quantize weights, activations, and gradients to lowbit integers. While QLoRA primarily focuses on 4-bit quantization of frozen base model weights (NF4) while keeping adapters in high precision (BF16), our approach achieves superior computational and memory efficiency. Building on the _quantize-compute-dequantize_ (QCD) paradigm for low-precision matrix multiplication (MM) (Xi et al., 2024), the QCD approach operates in three stages: (1) _Quantization_ : Convert high-precision inputs matrices (e.g., BF16) to low-precision (e.g., GSE-INT6) using a quantizer _Q_ ( _·_ ); (2) _Computa-_ _tion in low-precision MM_ : Perform low-precision MM to produce an intermediate output (e.g., GSEINT6); and (3) _Dequantization_ : Convert output back to high-precision using a dequantizer _Q_ <sup>_−_</sup> <sup>1</sup> ( _·_ ). Forward Propagation. The forward propagation for a linear layer is calculated as follows: <u>�</u> + _Q_ <sup>_−_</sup> <sup>1 �</sup> ~~�~~ <u>��</u> ~~<u>�</u>~~ trainable adapter _Q_ ( X <sup>BF16</sup> ) _Q_ ( A <sup>BF16</sup> ) <sup>_T_</sup> _Q_ ( B <sup>BF16</sup> ) <sup>_T_</sup> <sup><u>�</u></sup> ~~�~~ - _DQ_ ( W <sup>NF4</sup> ) <u>�</u> <u>�</u> _T_ <sup><u>�</u></sup> Y <sup>BF16</sup> = _Q_ <sup>_−_</sup> <sup>1</sup> _Q_ ( X <sup>BF16</sup> ) _Q_ <u>�</u> frozen base model <u>�</u> <u>��</u> ~~<u>�</u>~~ <sup>_−_</sup> <sup>1 �</sup> _Q_ ( X <sup>BF16</sup> ) _Q_ ( A <sup>BF16</sup> ) <sup>_T_</sup> _Q_ ( B trainable adapter 22974 ~~�~~ ~~�~~ - Backward Propagation. Gradients are computed directly on quantized tensors using back propagation and chain rule: _Q_ ( X )) - _T_ (r=256) (r=128) (r=64) (r=32) (r=16) _∂∂_ A _<u>L</u>_ <sup>=</sup> <sup>_Q−_</sup> <sup>1(</sup> <sup>_Q_</sup> <sup>(</sup> <sup>B</sup> <sup>)</sup> <sup>_T Q_</sup> _∂_ Y - _<u>∂L</u>_ Reduce ~50% mem (r=512) w/o fine-tuning _<u>∂L</u>_ _∂_ B <sup>=</sup> <sup>_Q−_</sup> <sup>1(</sup> <sup>_Q_</sup> _∂_ Y <u>�</u> _<u>∂L</u>_ _Q_ ( X ) _Q_ ( A ) <sup>_T_</sup> ) - _T_ _<u>∂L</u>_ _∂_ X <sup>=</sup> <sup>_Q−_</sup> <sup>1(</sup> <sup>_Q_</sup> ( _Q_ ( W ) + _Q_ ( B ) _Q_ ( A ))) _∂_ Y - _<u>∂L</u>_ 2.4 Pareto Frontier for Quantization Bits and Low-rank. Co-optimization Principle for Model Bits and Rank. The memory footprint and FLOPs during fine-tuning exhibit strong dependence on both quantization bit-width and LoRA rank _O_ ( _b_ _·_ _r_ ) scaling. Excessive values in either dimension impose prohibitive computational burdens: (1) _Mem-_ _ory_ :Mem _∝_ _b · r_ (adapter parameter storage); (2) _Compute_ : Flops _∝_ _r · d_ <sup>2</sup> (for hidden dimension _d_ ). This necessitates joint optimization of ( _b, r_ ) to guide the accuracy-efficiency trade-off space effectively. Pure bit-width reduction sacrifices model capacity, while unrestrained rank scaling inflates computation costs disproportionately. The effectiveness of GSQ-Tuning hinges on how quantization bit-width interacts with the dimensions of low-rank adapters. To inform real-world deployments, we systematically analyze this interplay by constructing a Pareto frontier that illustrates the balance between model memory consumption during fine-tuning and accuracy across various bitsrank settings. We hope our findings not only highlight optimal configurations, but also offer practical guidelines for practitioners to tailor solutions to specific hardware constraints. Pareto Frontier Analysis. Based on our GSQTuning, we construct a Pareto frontier by plotting model memory during fine-tuning against validation accuracy across different _bits-rank_ configuration. As shown in Fig. 4, the frontier reveals three distinct optimization regimes (1) _High-Bit_ _Low-Rank_ _Regime_ _(8-bit,_ _r=64):_ Reaches 65.60 Acc with suboptimal efficiency. 0.50 Acc gain from _r_ = 16 to 64 indicates high-bit quantization inherently limits error magnitude, requiring less rank compensation. (2) _Mid-Bit Balanced Regime_ _(6-bit,_ _r=128):_ Delivers 65.58 Acc with moder ate resources. 0.71 Acc gain from _r_ = 16 to 128 shows diminishing returns beyond this point (only Figure 4: Pareto curve of accuracy-memory trade-offs. Compared to FP16, our GSQ-Tuning can reduce _∼_ 50% memory usage while having the comparable accuracy. Detailed results are in Tab.10 0.32 Acc gain from _r_ = 128 to 512). (3) _Low-_ _Bit_ _High-Rank_ _Regime_ _(5-bit,_ _r=512):_ Achieves 64.88 Acc with minimal memory footprint. 0.91 Acc gain from _r_ = 16 to 512 demonstrates that aggressive rank scaling can compensate for severe quantization errors. Besides, Compared to FP8, GSQ-Tuning offers higher finetuning performance at similar or lower memory (Table 2) and reduces chip area ( _∼_ 11×) and power ( _∼_ 5×, Table 7). We also provide the Pareto frontier and detailed results for other models in appendix. Extra extensive results yield similar guidance. 3 Experiments Foundation Models and Evaluation Metrics. We apply our method to the entire LLaMA fam ily, including LLaMA-2 (7B/13B/70B)(Touvron et al., 2023b), and LLaMA-3 (3B-8B). We evaluate the fine-tuning models on up to 9 zeroshot commonsense question-answering (CSQA) tasks using the lm-evaluation-harness (version 0.4.7)(Gao et al., 2024), including BoolQ(Clark et al., 2019), HellaSwag (Zellers et al., 2019), LAMBADA (OpenAI)(Radford et al., 2019), OpenBookQA(Mihaylov et al., 2018), PIQA (Bisk et al., 2020), SIQA (Sap et al., 2019), WinoGrande (Sakaguchi et al., 2019), ARC-Easy, and ARC-Challenge (Clark et al., 2018). The finetuning dataset follows Alpaca (Taori et al., 2023), with 52K instruction data from text-davinci-003. Besides, we also report the memory cost (Mem.(G)) during the model fine-tuning process. Training Details. We employ the whole finetuning process based on LLaMA-Factory (Zheng et al., 2024). We implement GSQ-Tuning in PyTorch using models from Hugging Face. We freeze the parameters of the linear modules and 22975 Table 1: 0-shot CSQA accuracy comparison with respect to different quantization bits in 64 rank setting. ’4-8-8’ means quantize weights, activation and gradients to 4-bit, 8-bit and 8-bit. GSQ-Tuning is built on Qlora, where all weights are quantized as NF4 firstly.Notably, the memory usage for LLaMA series model is for the model weights alone. Since these models are not fine-tuned, no fine-tuning phase (no gradient computation or updates) is involved. Denoted as 16-16-None for weights-activation-gradients. <u>Method</u> LLMs branch low-rank branch <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>Mem.(G)</u> LLaMA2-7B 16-16-None w/o <mark>64.13</mark> 46.25 74.62 77.68 76.01 44.20 79.11 46.11 69.06 13.20 _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>16-16-16</u> <u><mark>65.69</mark></u> <u>47.14</u> <u>74.75</u> <u>79.50</u> <u>76.46</u> <u>45.50</u> <u>79.63</u> <u>50.26</u> <u>71.32</u> <u>10.73</u> 4-8-8 8-8-8 <mark>65.60</mark> 48.12 74.24 79.72 76.00 45.80 79.60 49.69 71.67 7.28 w/ GSQ-Tuning 4-6-6 6-6-6 <mark>65.39</mark> 47.70 74.58 79.24 76.05 44.60 79.60 50.41 70.96 5.97 <u>4-5-5</u> <u>5-5-5</u> <u><mark>64.18</mark></u> <u>45.14</u> <u>72.69</u> <u>75.20</u> <u>75.27</u> <u>46.40</u> <u>79.65</u> <u>48.62</u> <u>70.48</u> <u>5.81</u> LLaMA2-13B 16-16-None w/o <mark>66.65</mark> 48.81 76.47 82.45 79.67 44.80 80.36 48.31 72.38 25.7 _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>16-16-16</u> <u><mark>67.61</mark></u> <u>49.66</u> <u>77.23</u> <u>83.30</u> <u>78.95</u> <u>45.40</u> <u>80.74</u> <u>51.59</u> <u>73.24</u> <u>17.42</u> 4-8-8 8-8-8 <mark>67.48</mark> 49.57 77.40 82.87 78.88 46.20 80.90 50.72 73.32 11.99 w/ GSQ-Tuning 4-6-6 6-6-6 <mark>67.35</mark> 49.66 77.27 82.75 78.66 79.05 80.90 50.97 73.16 10.89 <u>4-5-5</u> <u>5-5-5</u> <u><mark>66.97</mark></u> <u>49.91</u> <u>76.60</u> <u>81.87</u> <u>78.15</u> <u>46.20</u> <u>80.41</u> <u>49.54</u> <u>73.09</u> <u>10.33</u> <u>LLaMA2-70B</u> <u>16-16-None</u> <u>w/o</u> <u><mark>70.68</mark></u> <u>56.91</u> <u>80.05</u> <u>85.78</u> <u>83.59</u> <u>48.60</u> <u>82.48</u> <u>48.67</u> <u>79.40</u> <u>137.42</u> _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>16-16-16</u> <u><mark>72.22</mark></u> <u>59.81</u> <u>82.20</u> <u>86.51</u> <u>83.89</u> <u>50.40</u> <u>83.13</u> <u>51.48</u> <u>80.35</u> <u>66.82</u> 4-8-8 8-8-8 <mark>72.20</mark> 59.90 82.32 86.51 83.90 50.20 83.08 51.59 80.11 52.17 w/ GSQ-Tuning 4-6-6 6-6-6 <mark>72.10</mark> 59.39 82.15 86.51 83.94 50.00 83.30 50.92 80.58 48.71 <u>4-5-5</u> <u>5-5-5</u> <u><mark>71.70</mark></u> <u>58.87</u> <u>81.48</u> <u>85.90</u> <u>83.91</u> <u>49.60</u> <u>82.81</u> <u>50.67</u> <u>80.43</u> <u>46.98</u> <u>LLaMA3-3B</u> <u>16-16-None</u> <u>w/o</u> <u><mark>62.64</mark></u> <u>45.90</u> <u>71.68</u> <u>73.00</u> <u>73.64</u> <u>43.20</u> <u>77.42</u> <u>47.08</u> <u>69.22</u> <u>6.42</u> _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>16-16-16</u> <u><mark>64.11</mark></u> <u>48.63</u> <u>74.07</u> <u>77.22</u> <u>73.12</u> <u>41.60</u> <u>78.51</u> <u>49.33</u> <u>70.40</u> <u>6.78</u> 4-8-8 8-8-8 <mark>64.02</mark> 47.30 74.44 77.26 72.51 42.40 78.60 49.80 69.86 3.93 w/ GSQ-Tuning 4-6-6 6-6-6 <mark>63.71</mark> 47.07 73.59 76.64 72.23 41.80 78.20 48.76 71.36 3.47 <u>4-5-5</u> <u>5-5-5</u> <u><mark>62.74</mark></u> <u>48.04</u> <u>73.44</u> <u>73.36</u> <u>71.96</u> <u>40.40</u> <u>78.13</u> <u>47.65</u> <u>68.98</u> <u>3.24</u> <u>LLaMA3-8B</u> <u>16-16-None</u> <u>w/o</u> <u><mark>67.18</mark></u> <u>53.50</u> <u>77.74</u> <u>81.13</u> <u>79.20</u> <u>45.00</u> <u>80.63</u> <u>47.03</u> <u>73.24</u> <u>15.01</u> _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>16-16-16</u> <u><mark>68.45</mark></u> <u>55.63</u> <u>80.13</u> <u>83.67</u> <u>78.78</u> <u>44.80</u> <u>81.28</u> <u>50.41</u> <u>72.93</u> <u>11.64</u> w/ GSQ-Tuning 4-8-8 8-8-8 <mark>68.61</mark> 55.97 80.22 83.61 78.68 45.20 81.50 50.41 73.32 7.63 4-6-6 6-6-6 <mark>68.22</mark> 55.55 79.29 83.67 78.47 44.80 80.90 50.05 73.09 6.86 <u>4-5-5</u> <u>5-5-5</u> <u><mark>66.69</mark></u> <u>54.10</u> <u>77.99</u> <u>81.65</u> <u>77.12</u> <u>43.80</u> <u>79.54</u> <u>47.90</u> <u>71.43</u> <u>6.47</u> update a smaller (low-rank) set of parameters during the fine-tuning. The group size of our GSQTuning is 32. We fine-tune models using the 8-bits AdamW optimizer (Dettmers et al.) in bfloat16 precision. We choose the constant learning rate schedule and set the learning rate to be 1 _×_ 10 <sup>_−_</sup> <sup>5</sup> for all models. In all cases, we tune the hyperparameters on the base BF16 tasks, and re-use the same values for low-precision training. We always perform single-epoch experiments using a linear learning rate warm-up of 100 steps. The batch size and sequence length are fixed at 16 and 2048. The number of fine-tuning steps is 3.24K for Alpaca. Hardware Synthesis. We implemented the hardware in Verilog RTL and synthesized it using Synopsys Design Compiler with a 7nm technology library to estimate the process engine’s area, latency, and power consumption (Clark et al., 2016). The hardware operates at 1 GHz and has a capability of 50 TOPS. The memory subsystem is not considered in our settings and analyses. 3.1 Overall Results GSQ-Tuning Results on LLaMA Family. Here, we compare the fine-tuning performance across LLaMA family (3B 70B) against QLoRA. As shown in Tab. 1, GSQ-Tuning achieves comparable or better zero-shot accuracy across different LLaMA model scales (7B-70B) under a fully low-bit quantization fine-tuing setting. With 8-bit quantization precision (W8A8G8), GSQ-Tuning matches or exceeds QLoRA’s performance on 83% of tasks, despite using 50% fewer bits for activations and gradients. Even at aggressive 5-bit quantization (W5A5G5), the GSQ-Tuning maintains 98.6% of QLoRA’s average accuracy while reducing memory footprint by 2.67 _×_ . These results confirm GSQ-Tuning’s effectiveness for resourceconstrained edge deployment. Comparison with FP8. Here, we compare the designed GSE data format with FP8 in fully quantized fine-tuning framework. As shown in Tab. 2, the results demonstrate that the designed GSE implemented in our GSQ-Tuning method achieves superior fine-tuning performance compared to FP8 while significantly reducing computation efficiency. Even under 5-bit settings, GSQ-Tuning maintains fine-tuning performance on par with FP8, further validating its effectiveness. Additionally, to mitigate the impact of rank variations, we report the fine-tuning results using 64-rank setting in Tab. 15 22976 Table 2: 0-shot CSQA accuracy comparison with FP8 in different quantization bits in 32 rank setting. <u>Method</u> <u>LLMs branch</u> <u>low-rank branch</u> <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>Mem.(G)</u> LLaMA2-7B 16-16-None w/o <mark>64.13</mark> 46.25 74.62 77.68 76.01 44.20 79.11 46.11 69.06 13.2 _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>16-16-16</u> <u><mark>65.24</mark></u> <u>47.27</u> <u>75.04</u> <u>78.87</u> <u>76.11</u> <u>44.60</u> <u>79.76</u> <u>49.95</u> <u>70.32</u> <u>9.37</u> <u>w/ FP8</u> <u>4-8-8</u> <u>8-8-8</u> <u><mark>64.09</mark></u> <u>45.90</u> <u>73.27</u> <u>77.86</u> <u>75.83</u> <u>45.40</u> <u>78.45</u> <u>46.98</u> <u>69.06</u> <u>6.52</u> 4-8-8 8-8-8 <mark>65.45</mark> 48.12 74.71 78.38 76.14 46.00 79.71 49.64 70.96 6.52 w/ GSQ-Tuning <u>4-5-5</u> <u>5-5-5</u> <u><mark>64.00</mark></u> <u>44.97</u> <u>73.32</u> <u>75.29</u> <u>74.95</u> <u>44.60</u> <u>79.27</u> <u>48.93</u> <u>70.24</u> <u>5.45</u> <u>LLaMA3-8B</u> <u>16-16-None</u> <u>w/o</u> <u><mark>67.18</mark></u> <u>53.50</u> <u>77.74</u> <u>81.13</u> <u>79.20</u> <u>45.00</u> <u>80.63</u> <u>47.03</u> <u>73.24</u> <u>15.01</u> _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>16-16-16</u> <u><mark>68.31</mark></u> <u>55.55</u> <u>80.39</u> <u>83.36</u> <u>78.65</u> <u>44.60</u> <u>81.28</u> <u>50.05</u> <u>72.61</u> <u>11.02</u> <u>w/ FP8</u> <u>4-8-8</u> <u>8-8-8</u> <u><mark>66.62</mark></u> <u>50.77</u> <u>76.43</u> <u>81.59</u> <u>78.17</u> <u>43.80</u> <u>80.20</u> <u>47.44</u> <u>74.59</u> <u>7.23</u> 4-8-8 8-8-8 <mark>68.45</mark> 55.72 80.22 83.43 78.60 45.00 81.18 50.20 73.32 7.23 w/ GSQ-Tuning <u>4-5-5</u> <u>5-5-5</u> <u><mark>66.48</mark></u> <u>51.71</u> <u>77.69</u> <u>82.11</u> <u>76.91</u> <u>44.20</u> <u>79.43</u> <u>48.16</u> <u>71.67</u> <u>6.07</u> Table 3: Cross-modal task evaluation on LLaVA-v1.5-7B: the default setting is QLoRA on 4-bits/64-rank without finetuning. Shared exponents shows robustness to LLM’s finetuning, referring to the comparison with BF16. <u>POPE-random</u> <u>POPE-adversarial</u> Settings LLMs branch low-rank branch TextVQA MMBench <u>accuracy precision F1-score accuracy precision F1-score</u> LLaVA-v1.5-7B 16-16-None w/o 84.19 84.08 84.80 74.40 69.96 76.96 6.51 55.45 <u>w/ QLoRA</u> <u>4-16-16</u> <u>16-16-16</u> <u>87.47</u> <u>92.51</u> <u>86.68</u> <u>83.87</u> <u>85.52</u> <u>83.48</u> <u>47.68</u> <u>67.08</u> 4-8-8 4-8-8 87.84 96.21 87.08 84.03 87.40 83.28 45.19 69.75 w/ GSQ-Tuning <u>4-6-6</u> <u>4-6-6</u> <u>88.08</u> <u>96.08</u> <u>87.39</u> <u>83.43</u> <u>85.80</u> <u>82.87</u> <u>49.13</u> <u>70.19</u> Table 4: 0-shot CSQA accuracy on CS170K dataset in 64 rank setting. <u>Method</u> <u>LLMs branch</u> <u>low-rank branch</u> <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>LLaMA2-7B</u> <u>16-16-None</u> <u>w/o</u> <u><mark>64.13</mark></u> <u>46.25</u> <u>74.62</u> <u>77.68</u> <u>76.01</u> <u>44.20</u> <u>79.11</u> <u>46.11</u> <u>69.06</u> <u>w/ QLoRA</u> <u>4-16-16</u> <u>16-16-16</u> <u><mark>67.78</mark></u> <u>51.79</u> <u>78.86</u> <u>81.28</u> <u>75.77</u> <u>46.00</u> <u>79.98</u> <u>53.89</u> <u>75.37</u> <u>4-8-8</u> <u>8-8-8</u> <u><mark>67.73</mark></u> <u>51.79</u> <u>78.37</u> <u>82.32</u> <u>75.74</u> <u>46.20</u> <u>79.27</u> <u>53.12</u> <u>75.06</u> w/ GSQ-Tuning <u>4-6-6</u> <u>6-6-6</u> <u><mark>67.56</mark></u> <u>50.77</u> <u>77.74</u> <u>82.23</u> <u>75.07</u> <u>47.40</u> <u>79.60</u> <u>53.58</u> <u>74.11</u> of the appendix. Extensive experiments consistently support the advantages of our approach. Table 5: Fine-tuning time comparison with fullfinetuning and low-rank adapter on alpaca-52K dataset in LLaMA2-7B model. <u>Method</u> LLMs branch low-rank branch <u>Avg.</u> <u>Ft-Time.(h)</u> <u>Mem.(G)</u> <u>LLaMA2-7B</u> <u>16-16-None</u> <u>w/o</u> <u><mark>64.13</mark></u> <u>0.0</u> <u>13.20</u> _w/ Full-finetuing_ 16-16-16 16-16-16 <mark>65.88</mark> 2.4 58.56 _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>16-16-16</u> <u><mark>65.69</mark></u> <u>3.2</u> <u>10.73</u> <u>w/ GSQ-Tuning</u> <u>4-6-6</u> <u>6-6-6</u> <u><mark>65.39</mark></u> <u>3.4</u> <u>5.97</u> Fine-tuning Time Comparison. Here, we compare the fine-tuning time with QLoRA, fullfinetune, and our proposed GSQ-Tuning on the LLaMA2-7B model. As shown in Tab. 5, the results demonstrate that full fine-tuning achieves 65.88 accuracy in 2.4 hours but requires up to a typically infeasible 58.56GB memory 10× our GSQTuning’s 5.97GB and 5× QLoRA’s 10.73GB. GSQTuning (GSE-INT6) and QLoRA (BF16+NF4) both converge in 3.2 3.4 hours with matching accuracy (65.39% vs 65.69%), yet GSQ-Tuning uses nearly half QLoRA’s memory. It verifies that GSQTuning matches QLoRA’s training time while offering superior memory efficiency, in resourceconstrained edge scenarios where our primary focus. Although PEFT methods like ours inherently require longer convergence times, our primary focus lies in striking a balance between memory efficiency and computational feasibility. Table 6: Fine-tuning training memory (GB) cost with different fine-tuning settings in the LLaMA family. <u>Setting</u> LLaMA2-7B LLaMA2-13B LLaMA2-70B LLaMA3-3B LLaMA3-8B _Full-finetuing_ 58.56 112.80 597.74 28.12 65.86 _<u>w/ QLoRA</u>_ <u>10.73</u> <u>17.42</u> <u>66.82</u> <u>6.78</u> <u>11.64</u> _<u>w/ GSQ-Tuning</u>_ <u><mark>5.97</mark></u> <u><mark>10.89</mark></u> <u><mark>48.71</mark></u> <u><mark>3.47</mark></u> <u><mark>6.86</mark></u> Fine-tuning Memory Comparison. Here, as shown in Table 6, we reported the training memory cost for these baselines when training/full finetuning (batch size = 1, sequence length=2048), no activation checkpointing and memory offloading as shown in table R1. However, their huge training memory costs (>10x more than GSQ-Tuning) outside our edge-focused fine-tuning scope, where full finetuing/training is typically infeasible due to resource constraints. Hardware Efficiency Analysis. Table 7 compares the chip area and power consumption of different formats through hardware synthesis. GSEINT format demonstrates significant advantages over FP: (1) Area Efficiency: GSE-INT6 process engine requires only 0.47mm <sup>2</sup>, 10.7 _×_ smaller than 22977 Table 7: Comparison of hardware overhead between FP process engine and GSE-INT process engine (7nm). <u>Format</u> <u>Area (mm</u> <sup>2</sup> <u>)</u> _<u>↓</u>_ <u>Power (W)</u> _<u>↓</u>_ <u>FP8 (E5M2)</u> <u>4.36</u> <u>2.53</u> FP8 (E4M3) 5.06 3.23 FP7 (E3M3) 5.05 2.75 FP6 (E3M2) 3.40 2.09 GSE-INT8 <mark>0.85</mark> <mark>1.24</mark> GSE-INT7 <mark>0.61</mark> <mark>1.00</mark> GSE-INT6 <mark>0.47</mark> <mark>0.76</mark> GSE-INT5 <u><mark>0.39</mark></u> <u><mark>0.53</mark></u> FP8(E4M3). This stems from simplified integer arithmetic logic and group-wise exponent sharing that eliminates complex alignment. (2) Power Superiority: At comparable bit-widths, GSE-INT6 consumes 0.76W (the 23.52% of FP8’s 3.23W). 3.2 Generalization Experiments Generalization of GSQ-Tuning for Vision- Language Model (LLaVA). Model used is LLaVA-v1.5-7B (Liu et al., 2024b) with Vicuna7B-v1.5 (Zheng et al., 2023) as language model and CLIP ViT-L-336px (Radford et al., 2021) as vision tower, connected by a 2-layer MLP. Instruction dataset and other settings for finetuning follow the LLaVA official repository, LLaVA-Instruction (Liu et al., 2024c) and the improved one (Liu et al., 2024b). Tab. 3 shows performance drop of the vanilla quantization of 4-bits/64-rank QLoRA, especially, referring to the TextVQA evaluation. Finetuning with GSE shows comparable performance compared to that with BF16. BF16 is of E8M7 while GSE is of E5M7, demonstrating the redundancy of the dynamic range _w.r.t._ exponents is at least 3-bits much. Moreover, the memory cost of GSE is about a half of BF16. Generalization of GSQ-Tuning on Other Finetune Dataset. Here, we also select Commonsense170K (CS170K) (Hu et al., 2023) to evaluate the generalization ability of GSQ-Tuning across different fine-tuing dataset. CS170K is a dataset constructed from the training sets of BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC-e, ARC-c, and OBQA with pre-defined templates, comprising 170K commonsense reasoning samples. As shown in Tab. 4, on larger fine-tuning datasets, our GSQTuning also demonstrates comparable or even superior accuracy compared to QLoRA, while being more computationally efficient. 3.3 Ablation Study Group Size Analysis. As shown in Tab. 8, our GSQ-Tuning with 32 groups achieves optimal Table 8: The effect of the number of shared group on fine-tuning performance in 64 rank setting. <u>Method</u> LLMs branch low-rank branch <u>Group</u> <u>Avg.</u> <u>Mem.</u> <u>(G)</u> <u>LLaMA2-7B</u> <u>16-16-None</u> <u>w/o</u> <u>-</u> <u>64.13</u> <u>13.2</u> 32 <mark>65.39</mark> 6.17 w/ GSQ-Tuning 5-6-6 6-6-6 64 <mark>64.72</mark> 6.32 128 <mark>64.27</mark> 6.56 accuracy-efficiency balance in 6-bit configurations (W6A6G6). The 32-group setting yields significantly higher average accuracy (65.39) compared to 64-group (64.72) and 128-group (64.27) variants, while maintaining comparable memory efficiency (70.96 vs 69.22/69.53). This sweet spot emerges from the tension between quantization bit width and hardware deployment - smaller groups better capture value distributions but increase computation overhead, while larger groups sacrifice adaptation granularity. We therefore adopt group=32 as the default configuration. Table 9: The ablation of the exponent bit width (E) and the number of shared group (N) on fine-tuning performance in 64 rank setting. <u>Method</u> LLMs branch low-rank branch <u>Group</u> <u>Avg.</u> <u>Mem.</u> <u>(G)</u> <u>LLaMA2-7B</u> <u>16-16-None</u> <u>w/o</u> <u>-</u> <u>64.13</u> <u>13.2</u> 32 <mark>62.85</mark> 6.29 4-6-6 6-6-6 64 <mark>62.66</mark> 6.16 Exponenet Bits Analysis. As shown in Tab. 9, experiments demonstrate that fixing exponent bits E=5 achieves the optimal trade-off between accuracy and memory overhead. Adopting a smaller exponent (for example, E = 4) leads to significant performance degradation, while increasing E=6 yields marginal performance gains. This ablation study validates the effectiveness of our fixed shared exponent design E = 5. 4 Related Work Parameter-Efficient Fine-Tuning (PEFT). PEFT reduces memory and computational costs by introducing a small set of trainable parameters while keeping the pretrained model frozen. Approaches including soft prompt tuning (Wang et al., 2023), partial fine-tuning (Fu et al., 2023), and low-rank adaptation (Hu et al., 2021). Among these, LoRA stands out as a seminal work, injecting trainable low-rank matrices into linear layers to enable efficient fine-tuning without modifying the base model weights. QLoRA w/ GSQ-Tuning 32 <mark>65.39</mark> 6.32 5-6-6 6-6-6 64 <mark>64.72</mark> 6.17 32 <mark>65.41</mark> 6.35 6-6-6 6-6-6 64 <mark>64.99</mark> 6.18 22978 extends this with 4-bit NF4 quantization and Double Quantization, supporting 65B model fine-tuning on a single 48GB GPU with minimal performance degradation. Recent work further improves quantization-aware fine-tuning (Xu et al., 2023; Li et al.) and extends LoRA for better efficiency, stability, and performance (Hu et al., 2023; Liu et al., 2024d; Zhao et al., 2024; Hayou et al., 2024; Meng et al., 2024). Quantization. Much works (Yuan et al., 2023; Yuan et al.; Hu et al., 2024, 2025b,a) make efforts to accelerate the LLMs. For instance, GPTQ (Frantar et al., 2022) quantizes weights to 3-4 bit with slight accuracy drop based on approximate second-order information. AWQ (Lin et al., 2024) and SmoothQuant (Xiao et al., 2022) explore the scheme of smoothing by detecting the importance of different activation channels. Recent works (e.g., Quarot (Ashkboos et al., 2024), SpinQuant (Liu et al., 2024e)) further suppress outliers by utilizing computation-invariant rotation transformation. However, above methods focus on the inference optimization. Leveraging the key benefits of FQT, several studies (Banner et al., 2018; Wu et al., 2018; Langroudi et al., 2019; Yang et al., 2020; Zhu et al., 2020; Xi et al., 2023) have explored its implementation and optimization. However, challenges remain, especially during the backward pass due to the wide dynamic range of gradients. For example, LM-FP8 (Peng et al., 2023) trains LLMs from scratch using FP8, achieving performance comparable to BF16. Some studies have also explored full integer quantization, utilizing efficient hardware implementations. SwitchBack (Wortsman et al., 2023) quantizes partial matrix multiplications with INT8, but it is limited to vision models with up to 1B parameters. Jetfire (Xi et al., 2024) proposes a 2D block-wise quantization approach that maintains accuracy and achieves significant memory savings (1.4-1.5x) when training in INT8. However, these methods have not yet been explored to fine-tuning tasks, and using FQT to lower-bit ( _<_ INT8) poses considerable challenges. 5 Conclusion In this paper, we propose GSQ-Tuning, a resourceefficient framework that addresses the critical challenges of floating-point dependency, privacy risks, and hardware incompatibility in on-device LLM fine-tuning. By integrating Group-Shared Exponents Integer (GSE) quantization with parameter efficient adaptation, our method achieves three key advancements:(1) Full Integer Pipeline: Eliminates floating-point operations across both forward and backward passes, reducing memory usage by 50% compared to FP16 while maintaining comparable accuracy. (2) Hardware-Optimized Design: The GSE format reduces metadata overhead via groupwise exponent sharing, enabling 5-8bit integer representations. Combined with LoRA-like adapters, this achieves 5 _×_ lower power consumption and 11 _×_ smaller chip area compared to FP8 at equivalent accuracy levels. (3) Practical Deployment Guidance: A Pareto frontier analysis guides optimal bit-rank configurations for diverse edge constraints. These innovations establish GSQ-Tuning as a foundational step toward democratizing LLM adaptation for resource-constrained environments. This breakthrough makes private, on-device LLM adaptation practical for sensitive applications. Future work will explore sub-4bit quantization to further push the boundaries of edge AI. 6 Limitations While our GSQ-Tuning significantly advances on device LLM adaptation through integer-focused optimization and parameter-efficient quantization, two key limitations warrant discussion: Non-linear Operator Precision. Our current implementation maintains non-linear operations (e.g., LayerNorm, Softmax) in 16-bit to preserve numerical stability. This introduces partial precision conversion overhead during computation. However, non-linear operations do not contain additional learnable parameters and thus do not consume memory. Moreover, these non-linear operations are generally computation-light, making their computational burden negligible. Future work could explore fully integer implementations for non-linear layers. Bit-Width Range Constraints. The current framework operates effectively in 5-8bit configurations but didn’t present the performance at extreme low bit ( _≤_ 4bit) precision. This stems from gradient direction distortion under extreme quantization—a challenge requiring new error compensation mechanisms. We plan to investigate two directions: (1) 4bit stochastic rounding with gradient-aware scaling, and (2) mixed-precision adapters allocating higher bits to critical gradient dimensions. Furthermore, future work could explore (1) full integer fine-tuning, (2) low-bit quantized finetuning and (3) co-design with emerging integeroptimized AI accelerators. 22979 References ARM. 2020. Cortex-m. In _https://developer.arm.com/processors/cortex-m_ . Saleh Ashkboos, Amirkeivan Mohtashami, Maximil ian L Croci, Bo Li, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. 2024. Quarot: Outlier-free 4-bit inference in rotated llms. _arXiv_ _preprint arXiv:2404.00456_ . Mart van Baalen, Andrey Kuzmin, Suparna S Nair, Yuwei Ren, Eric Mahurin, Chirag Patel, Sundar Sub ramanian, Sanghyuk Lee, Markus Nagel, Joseph Soriaga, et al. 2023. Fp8 versus int8 for efficient deep learning inference. _arXiv preprint arXiv:2303.17951_ . Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2023. Qlora: Efficient finetuning of quantized llms. _Advances in neural information_ _processing systems_, 36:10088–10115. Zhen Dong, Zhewei Yao, Yaohui Cai, Daiyaan Ar feen, Amir Gholami, Michael W Mahoney, and Kurt Keutzer. 2019a. Hawq-v2: Hessian aware traceweighted quantization of neural networks. _arXiv_ _preprint arXiv:1911.03852_ . Zhen Dong, Zhewei Yao, Amir Gholami, Michael Ma honey, and Kurt Keutzer. 2019b. Hawq: Hessian aware quantization of neural networks with mixedprecision. pages 293–302. Haoli Bai, Wei Zhang, Lu Hou, Lifeng Shang, Jing Jin, Xin Jiang, Qun Liu, Michael Lyu, and Irwin King. 2020. Binarybert: Pushing the limit of bert quantization. _arXiv preprint arXiv:2012.15701_ . Ron Banner, Itay Hubara, Elad Hoffer, and Daniel Soudry. 2018. Scalable methods for 8-bit training of neural networks. In _Advances in Neural Information_ _Processing Systems_, pages 5145–5153. Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. 2024. The llama 3 herd of models. _arXiv_ _preprint arXiv:2407.21783_ . Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In _Proceedings of the_ _AAAI conference on artificial intelligence_, volume 34, Steven K Esser, Jeffrey L McKinstry, Deepika Bablani, Rathinakumar Appuswamy, and Dharmendra S Modha. 2019. Learned step size quantization. In _International_ _Conference_ _on_ _Learning_ _Representa-_ _tions_ . Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. 2020. Sharpness-aware minimization for efficiently improving generalization. _arXiv preprint arXiv:2010.01412_ . pages 7432–7439. Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E Gonzalez, et al. 2023. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality. _See https://vicuna._ _lmsys. org (accessed 14 April 2023)_, 2(3):6. Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. 2022. Gptq: Accurate post-training quantization for generative pre-trained transformers. _arXiv preprint arXiv:2210.17323_ . Jungwook Choi, Zhuo Wang, Swagath Venkataramani, Pierce I-Jen Chuang, Vijayalakshmi Srinivasan, and Kailash Gopalakrishnan. 2018. Pact: Parameterized clipping activation for quantized neural networks. _arXiv preprint arXiv:1805.06085_ . Zihao Fu, Haoran Yang, Anthony Man-Cho So, Wai Lam, Lidong Bing, and Nigel Collier. 2023. On the effectiveness of parameter-efficient fine-tuning. In _Proceedings_ _of_ _the_ _AAAI_ _Conference_ _on_ _Artificial_ _Intelligence_, volume 37, pages 12799–12807. Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. 2019. BoolQ: Exploring the surprising difficulty of natural yes/no questions. _arXiv preprint_ _arXiv:1905.10044_ . Lawrence T Clark, Vinay Vashishtha, Lucian Shifren, Aditya Gujja, Saurabh Sinha, Brian Cline, Chandarasekaran Ramamurthy, and Greg Yeric. 2016. Asap7: A 7-nm finfet predictive process design kit. _Microelectronics Journal_, 53:105–115. Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac’h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. 2024. A framework for [few-shot](https://doi.org/10.5281/zenodo.12608602) language model [evaluation.](https://doi.org/10.5281/zenodo.12608602) Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. _arXiv_ _preprint arXiv:1803.05457_ . Ruihao Gong, Xianglong Liu, Shenghu Jiang, Tianxiang Li, Peng Hu, Jiazhen Lin, Fengwei Yu, and Junjie Yan. 2019. Differentiable soft quantization: Bridging full-precision and low-bit neural networks. In _Pro-_ _ceedings of the IEEE/CVF International Conference_ _on Computer Vision_, pages 4852–4861. Tim Dettmers, Mike Lewis, Sam Shleifer, and Luke Zettlemoyer. 8-bit optimizers via block-wise quantization. In _International_ _Conference_ _on_ _Learning_ _Representations_ . Zeyu Han, Chao Gao, Jinyang Liu, Sai Qian Zhang, et al. 2024. Parameter-efficient fine-tuning for large models: A comprehensive survey. _arXiv_ _preprint_ _arXiv:2403.14608_ . 22980 Soufiane Hayou, Nikhil Ghosh, and Bin Yu. 2024. Lora+: Efficient low rank adaptation of large models. _arXiv preprint arXiv:2402.12354_ . Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. _arXiv_ _preprint_ _arXiv:2106.09685_ . Xing Hu, Zhixuan Chen, Dawei Yang, Zukang Xu, Chen Xu, Zhihang Yuan, Sifan Zhou, and Jiangyong Yu. 2025a. Moequant: Enhancing quantization for mixture-of-experts large language models via expert-balanced sampling and affinity guidance. _arXiv preprint arXiv:2505.03804_ . Xing Hu, Yuan Cheng, Dawei Yang, Zukang Xu, Zhi hang Yuan, Jiangyong Yu, Chen Xu, Zhe Jiang, and Sifan Zhou. 2025b. Ostquant: Refining large language model quantization with orthogonal and scaling transformations for better distribution fitting. _arXiv preprint arXiv:2501.13987_ . Xing Hu, Yuan Cheng, Dawei Yang, Zhihang Yuan, Jiangyong Yu, Chen Xu, and Sifan Zhou. 2024. I-llm: Efficient integer-only inference for fully-quantized low-bit large language models. _arXiv_ _preprint_ _arXiv:2405.17849_ . Zhiqiang Hu, Lei Wang, Yihuai Lan, Wanyu Xu, Ee Peng Lim, Lidong Bing, Xing Xu, Soujanya Poria, and Roy Ka-Wei Lee. 2023. [LLM-adapters:](https://openreview.net/forum?id=gdUBK65fwn) An [adapter family for parameter-efficient fine-tuning of](https://openreview.net/forum?id=gdUBK65fwn) [large language models.](https://openreview.net/forum?id=gdUBK65fwn) In _The 2023 Conference on_ _Empirical Methods in Natural Language Processing_ . Benoit Jacob, Skirmantas Kligys, Bo Chen, Meng long Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. 2018a. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In _Proceedings of_ _the IEEE Conference on Computer Vision and Pat-_ _tern Recognition_, pages 2704–2713. Benoit Jacob, Skirmantas Kligys, Bo Chen, Meng long Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. 2018b. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In _Proceedings of_ _the IEEE Conference on Computer Vision and Pat-_ _tern Recognition (CVPR)_ . Sehoon Kim, Amir Gholami, Zhewei Yao, Michael W Mahoney, and Kurt Keutzer. 2021. I-bert: Integeronly bert quantization. In _International conference_ _on machine learning_, pages 5506–5518. PMLR. Hamed F Langroudi, Zachariah Carmichael, and Dhiree sha Kudithipudi. 2019. Deep learning training on the edge with low-precision posits. _arXiv preprint_ _arXiv:1907.13216_ . Yixiao Li, Yifan Yu, Chen Liang, Nikos Karampatzi akis, Pengcheng He, Weizhu Chen, and Tuo Zhao. Loftq: Lora-fine-tuning-aware quantization for large QUALCOMM. 2024. Qualcomm hexagon npu. In _https://www.qualcomm.com/processors/hexagon_ . language models. In _The Twelfth International Con-_ _ference on Learning Representations_ . Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. 2024. Awq: Activation-aware weight quantization for ondevice llm compression and acceleration. _Proceed-_ _ings of Machine Learning and Systems_, 6:87–100. Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, et al. 2024a. Deepseek-v3 technical report. _arXiv_ _preprint_ _arXiv:2412.19437_ . Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. 2024b. Improved baselines with visual instruction tuning. In _Proceedings of the IEEE/CVF Con-_ _ference on Computer Vision and Pattern Recognition_, pages 26296–26306. Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2024c. Visual instruction tuning. _Advances in_ _neural information processing systems_, 36. Shih-Yang Liu, Chien-Yi Wang, Hongxu Yin, Pavlo Molchanov, Yu-Chiang Frank Wang, Kwang-Ting Cheng, and Min-Hung Chen. 2024d. Dora: Weightdecomposed low-rank adaptation. _arXiv_ _preprint_ _arXiv:2402.09353_ . Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. 2023. Gpt understands, too. _AI Open_ . Zechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran, Dhruv Choudhary, Raghuraman Krishnamoorthi, Vikas Chandra, Yuandong Tian, and Tijmen Blankevoort. 2024e. Spinquant–llm quantization with learned rotations. _arXiv_ _preprint_ _arXiv:2405.16406_ . Fanxu Meng, Zhaohui Wang, and Muhan Zhang. 2024. PiSSA: Principal singular values and singular vectors adaptation of large language models. In _The Thirty-_ _eighth_ _Annual_ _Conference_ _on_ _Neural_ _Information_ _Processing Systems_ . Paulius Micikevicius, Dusan Stosic, Neil Burgess, Mar ius Cornea, Pradeep Dubey, Richard Grisenthwaite, Sangwon Ha, Alexander Heinecke, Patrick Judd, John Kamalu, et al. 2022. Fp8 formats for deep learning. _arXiv preprint arXiv:2209.05433_ . Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. 2018. Can a suit of armor conduct electricity? a new dataset for open book question answering. In _EMNLP_ . Houwen Peng, Kan Wu, Yixuan Wei, Guoshuai Zhao, Yuxiang Yang, Ze Liu, Yifan Xiong, Ziyue Yang, Bolin Ni, Jingcheng Hu, et al. 2023. Fp8-lm: Training fp8 large language models. 22981 Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. 2021. Learning transferable visual models from natural language supervision. In _International confer-_ _ence on machine learning_, pages 8748–8763. PMLR. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. _OpenAI_ _Blog_, 1(8):9. Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhaga vatula, and Yejin Choi. 2019. Winogrande: An adversarial winograd schema challenge at scale. _arXiv_ _preprint arXiv:1907.10641_ . Maarten Sap, Hannah Rashkin, Derek Chen, Ronan LeBras, and Yejin Choi. 2019. Socialiqa: Commonsense reasoning about social interactions. _arXiv_ _preprint arXiv:1904.09728_ . Sheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma, Zhewei Yao, Amir Gholami, Michael W Mahoney, and Kurt Keutzer. 2020a. Q-bert: Hessian based ultra low precision quantization of bert. In _Proceedings_ _of_ _the AAAI Conference on Artificial Intelligence_, volume 34, pages 8815–8821. Zhen Wang, Rameswar Panda, Leonid Karlinsky, Roge rio Feris, Huan Sun, and Yoon Kim. 2023. Multitask prompt tuning enables parameter-efficient transfer learning. _arXiv preprint arXiv:2303.02861_ . Zheng Wang, Juncheng B Li, Shuhui Qu, Florian Metze, and Emma Strubell. 2022. Squat: Sharpness-and quantization-aware training for bert. _arXiv preprint_ _arXiv:2210.07171_ . Mitchell Wortsman, Tim Dettmers, Luke Zettlemoyer, Ari Morcos, Ali Farhadi, and Ludwig Schmidt. 2023. Stable and low-precision training for large-scale vision-language models. _Advances in Neural Infor-_ _mation Processing Systems_, 36:10271–10298. Shuang Wu, Guoqi Li, Feng Chen, and Luping Shi. 2018. Training and inference with integers in deep neural networks. In _International_ _Conference_ _on_ _Learning Representations_ . Haocheng Xi, Yuxiang Chen, Kang Zhao, Kaijun Zheng, Jianfei Chen, and Jun Zhu. 2024. Jetfire: Efficient and accurate transformer pretraining with int8 data flow and per-block quantization. _arXiv_ _preprint_ _arXiv:2403.12422_ . Sheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma, Zhewei Yao, Amir Gholami, Michael W Mahoney, and Kurt Keutzer. 2020b. Q-bert: Hessian based ultra low precision quantization of bert. In _Proceedings_ _of_ _the AAAI Conference on Artificial Intelligence_, volume 34, pages 8815–8821. Haocheng Xi, Changhao Li, Jianfei Chen, and Jun Zhu. 2023. Training transformers with 4-bit integers. _Ad-_ _vances_ _in_ _Neural_ _Information_ _Processing_ _Systems_, 36:49146–49168. Hanlin Tang, Xipeng Zhang, Kai Liu, Jianchen Zhu, and Zhanhui Kang. 2022. Mkq-bert: Quantized bert with 4-bits weights and activations. _arXiv preprint_ _arXiv:2203.13483_ . Guangxuan Xiao, Ji Lin, Mickael Seznec, Julien De mouth, and Song Han. 2022. Smoothquant: Accurate and efficient post-training quantization for large language models. _arXiv preprint arXiv:2211.10438_ . Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford alpaca: An instruction-following llama model. [https://](https://github.com/tatsu-lab/stanford_alpaca) [github.com/tatsu-lab/stanford_alpaca.](https://github.com/tatsu-lab/stanford_alpaca) Yuhui Xu, Lingxi Xie, Xiaotao Gu, Xin Chen, Heng Chang, Hengheng Zhang, Zhensu Chen, Xiaopeng Zhang, and Qi Tian. 2023. Qa-lora: Quantizationaware low-rank adaptation of large language models. _arXiv preprint arXiv:2309.14717_ . Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023a. Llama: Open and efficient foundation language models. _arXiv_ _preprint_ _arXiv:2302.13971_ . Yukuan Yang, Lei Deng, Shuang Wu, Tianyi Yan, Yuan Xie, and Guoqi Li. 2020. Training high-performance and large-scale deep neural networks with full 8-bit integers. _Neural Networks_, 125:70–82. Hugo Touvron, Louis Martin, Kevin Stone, Peter Al bert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023b. Llama 2: Open foundation and fine-tuned chat models. _arXiv_ _preprint_ _arXiv:2307.09288_ . Zhihang Yuan, Lin Niu, Jiawei Liu, Wenyu Liu, Xing gang Wang, Yuzhang Shang, Guangyu Sun, Qiang Wu, Jiaxiang Wu, and Bingzhe Wu. 2023. Rptq: Reorder-based post-training quantization for large language models. _arXiv preprint arXiv:2304.01089_ . Zhihang Yuan, Yuzhang Shang, and Zhen Dong. Pb llm: Partially binarized large language models. In _The_ _Twelfth_ _International_ _Conference_ _on_ _Learning_ _Representations_ . Naigang Wang, Jungwook Choi, Daniel Brand, Chia-Yu Chen, and Kailash Gopalakrishnan. 2018. Training deep neural networks with 8-bit floating point numbers. In _Advances in Neural Information Processing_ _Systems_, pages 7675–7684. Ofir Zafrir, Guy Boudoukh, Peter Izsak, and Moshe Wasserblat. 2019. Q8bert: Quantized 8bit bert. In _2019_ _Fifth_ _Workshop_ _on_ _Energy_ _Efficient_ _Machine_ _Learning and Cognitive Computing-NeurIPS Edition_ _(EMC2-NIPS)_, pages 36–39. IEEE. 22982 Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. Hellaswag: Can a machine really finish your sentence? _arXiv preprint_ _arXiv:1905.07830_ . Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. 2018. LQ-Nets: Learned quantization for highly accurate and compact deep neural networks. In _The_ _European_ _Conference_ _on_ _Computer_ _Vision_ _(ECCV)_ . Sai Qian Zhang, Bradley McDanel, and HT Kung. 2022. Fast: Dnn training under variable precision block floating point with stochastic rounding. In _2022 IEEE_ _International Symposium on High-Performance Com-_ _puter Architecture (HPCA)_, pages 846–860. IEEE. Shengyu Zhang, Linfeng Dong, Xiaoya Li, Sen Zhang, Xiaofei Sun, Shuhe Wang, Jiwei Li, Runyi Hu, Tianwei Zhang, Fei Wu, et al. 2023. Instruction tuning for large language models: A survey. _arXiv preprint_ _arXiv:2308.10792_ . Wei Zhang, Lu Hou, Yichun Yin, Lifeng Shang, Xiao Chen, Xin Jiang, and Qun Liu. 2020. Ternarybert: Distillation-aware ultra-low bit bert. _arXiv preprint_ _arXiv:2009.12812_ . Jiawei Zhao, Zhenyu Zhang, Beidi Chen, Zhangyang Wang, Anima Anandkumar, and Yuandong Tian. 2024. Galore: Memory-efficient llm training by gradient low-rank projection. _arXiv_ _preprint_ _arXiv:2403.03507_ . Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric. P Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. [Judg-](https://arxiv.org/abs/2306.05685) [ing llm-as-a-judge with mt-bench and chatbot arena.](https://arxiv.org/abs/2306.05685) _Preprint_, arXiv:2306.05685. Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyan Luo, Zhangchi Feng, and Yongqiang Ma. 2024. Llamafactory: [Unified](http://arxiv.org/abs/2403.13372) efficient fine-tuning of 100+ [language](http://arxiv.org/abs/2403.13372) models. In _Proceedings_ _of_ _the_ _62nd Annual Meeting of the Association for Compu-_ _tational Linguistics (Volume 3:_ _System Demonstra-_ _tions)_, Bangkok, Thailand. Association for Computational Linguistics. Aojun Zhou, Anbang Yao, Yiwen Guo, Lin Xu, and Yurong Chen. 2017. Incremental network quanti zation: Towards lossless cnns with low-precision weights. _International Conference on Learning Rep-_ _resentations_ . Feng Zhu, Ruihao Gong, Fengwei Yu, Xianglong Liu, Yanfei Wang, Zhelong Li, Xiuqi Yang, and Junjie Yan. 2020. Towards unified int8 training for convolutional neural network. In _Proceedings_ _of_ _the_ _IEEE/CVF Conference on Computer Vision and Pat-_ _tern Recognition_, pages 1969–1979. 22983 A Appendix A.1 Differences with Quantization-aware training (QAT): Quantization-aware training (QAT) (Choi et al., 2018; Zhang et al., 2018; Zhou et al., 2017; Jacob et al., 2018a; Dong et al., 2019b,a; Shen et al., 2020a; Zafrir et al., 2019; Shen et al., 2020b; Tang et al., 2022; Zhang et al., 2020; Bai et al., 2020; Foret et al., 2020; Wang et al., 2022) is an _infer-_ _ence acceleration_ technique which trains networks with quantizers inserted in the forward propagation graph, so the trained network can perform efficiently during inference. QAT can compress activation/weights to extremely low precision (e.g. 1-2 bits). It is tempting to think that directly applying a quantizer for QAT to FQT can lead to similar low activation/weights bit-width. However, even only quantizing the forward propagation for FQT is much more challenging than QAT because: ❶ QAT requires a converged full-precision model as initialization (Esser et al., 2019) and/or as a teacher model for knowledge distillation (Bai et al., 2020); ❷ QAT may approximate the discrete quantizer with continuous functions during training (Gong et al., 2019), which cannot be implemented with integer arithmetic. Due to these challenges, it is still an open problem to do FQT with low-bit activations/weights. A.2 Detailed results on different rank setting: Here, we also report the results of our GSQ-Tuning on different LlaMA model, including LlaMA27B (Tab.10), LlaMA2-13B (Tab.11), LlaMA270B(Tab.12), LlaMA3-3B(Tab.13), and LlaMA38B(Tab.14). The results consistently demonstrated the effectiveness and efficiency of GSQ-Tuning. A.3 Comparison with FP8 with 64 rank Here, we compare the designed GSE data format with FP8 in fully quantized fine-tuning framework with 32 rank setting. As shown in Tab. 15, the results still demonstrate that the designed GSE implemented in our GSQ-Tuning method achieves superior fine-tuning performance compared to FP8 while significantly reducing computation efficiency. Even under 5-bit settings, GSQ-Tuning maintains fine-tuning performance on par with FP8, validating its effectiveness. 22984 Table 10: 0-shot commonsense QA accuracy (%) across different bits and rank on llama2-7B. <u>Method</u> <u>rank</u> LLMs branch low-rank branch <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>Mem.</u> <u>(G)</u> <u>LLaMA2-7B</u> <u>16-16-None</u> <u>w/o</u> <u>64.13</u> <u>46.25</u> <u>74.62</u> <u>77.68</u> <u>76.01</u> <u>44.20</u> <u>79.11</u> <u>46.11</u> <u>69.06</u> <u>13.2</u> _<u>w/ QLoRA</u>_ <u>16</u> <u>4-16-16</u> <u>16-16-16</u> <u>65.05</u> <u>47.53</u> <u>75.17</u> <u>78.59</u> <u>76.09</u> <u>44.00</u> <u>79.54</u> <u>49.44</u> <u>70.09</u> <u>10.18</u> w/ GSQ-Tuning 16 4-8-8 8-8-8 65.10 47.53 74.71 78.35 75.99 45.00 79.65 49.28 70.32 6.73 4-7-7 7-7-7 64.96 47.18 75.21 78.10 75.98 44.80 79.27 49.95 69.38 5.98 4-6-6 6-6-6 64.87 46.84 73.78 78.07 75.88 45.80 79.22 49.39 70.01 5.32 4-5-5 5-5-5 63.97 46.76 72.64 75.78 74.95 45.20 79.05 48.62 68.75 5.27 _<u>w/ QLoRA</u>_ <u>32</u> <u>4-16-16</u> <u>16-16-16</u> <u>65.44</u> <u>47.27</u> <u>75.04</u> <u>78.87</u> <u>76.11</u> <u>44.60</u> <u>79.76</u> <u>49.95</u> <u>70.32</u> <u>10.37</u> w/ GSQ-Tuning 32 4-8-8 8-8-8 65.45 48.12 74.71 78.38 76.14 46.00 79.71 49.64 70.96 6.92 4-7-7 7-7-7 65.43 47.35 74.20 78.99 75.84 46.00 79.92 49.59 71.59 6.16 4-6-6 6-6-5 65.01 47.44 74.62 78.65 76.03 44.00 79.60 50.05 69.69 5.55 4-5-5 5-5-5 64.00 44.97 73.32 75.29 74.95 44.60 79.27 48.93 70.24 5.45 _<u>w/ QLoRA</u>_ <u>64</u> <u>4-16-16</u> <u>16-16-16</u> <u>65.69</u> <u>47.14</u> <u>74.75</u> <u>79.50</u> <u>76.46</u> <u>45.50</u> <u>79.63</u> <u>50.26</u> <u>71.32</u> <u>10.73</u> w/ GSQ-Tuning 64 4-8-8 8-8-8 65.60 48.12 74.24 79.72 76.00 45.80 79.60 49.69 71.67 7.28 4-7-7 7-7-7 65.47 47.78 74.71 79.51 76.09 45.80 79.60 49.80 70.48 6.52 4-6-6 6-6-6 65.39 47.70 74.58 79.24 76.05 44.60 79.60 50.41 70.96 5.97 4-5-5 5-5-5 64.18 45.14 72.69 75.20 75.27 46.40 79.65 48.62 70.48 5.81 _<u>w/ QLoRA</u>_ <u>128</u> <u>4-16-16</u> <u>16-16-16</u> <u>65.84</u> <u>48.24</u> <u>74.91</u> <u>79.78</u> <u>76.27</u> <u>45.52</u> <u>79.77</u> <u>50.48</u> <u>71.79</u> <u>11.46</u> w/ GSQ-Tuning 128 4-8-8 8-8-8 65.79 48.12 74.83 80.28 75.96 45.80 79.54 50.61 71.19 8.02 4-7-7 7-7-7 65.69 48.04 74.87 79.79 76.08 45.00 79.49 50.61 71.67 7.26 4-6-6 6-6-6 65.58 47.87 74.54 80.09 76.05 45.40 79.38 50.10 71.27 6.10 4-5-5 5-5-5 64.46 46.50 72.77 75.99 75.31 46.60 79.00 48.98 70.56 6.14 _<u>w/ QLoRA</u>_ <u>256</u> <u>4-16-16</u> <u>16-16-16</u> <u>66.12</u> <u>48.33</u> <u>75.00</u> <u>80.94</u> <u>76.37</u> <u>45.61</u> <u>79.97</u> <u>51.13</u> <u>71.64</u> <u>12.93</u> w/ GSQ-Tuning 256 4-8-8 8-8-8 66.19 48.55 75.13 80.76 76.14 47.00 79.38 50.72 71.82 9.47 4-7-7 7-7-7 65.96 48.46 75.08 80.43 76.04 45.60 79.76 50.72 71.59 8.42 4-6-6 6-6-6 65.90 48.38 74.16 79.94 75.81 46.80 79.43 50.87 71.82 7.66 4-5-5 5-5-5 64.59 46.33 72.60 76.51 75.57 46.40 79.60 49.39 70.32 6.75 _<u>w/ QLoRA</u>_ <u>512</u> <u>4-16-16</u> <u>16-16-16</u> <u>66.59</u> <u>49.26</u> <u>75.20</u> <u>81.99</u> <u>76.06</u> <u>46.74</u> <u>79.49</u> <u>51.71</u> <u>72.27</u> <u>15.85</u> w/ GSQ-Tuning 512 4-8-8 8-8-8 66.52 49.49 74.92 81.28 75.89 47.60 79.49 51.59 71.90 11.40 4-7-7 7-7-7 66.33 48.89 74.75 81.41 76.06 47.00 79.54 51.74 71.27 9.95 4-6-6 6-6-6 66.31 48.55 75.51 80.80 76.42 46.00 79.60 51.64 71.98 9.19 4-5-5 5-5-5 64.86 47.44 73.15 76.85 75.62 47.00 79.33 49.18 70.32 8.25 22985 Table 11: 0-shot commonsense QA accuracy (%) across different bits and rank on llama2-13B. <u>Method</u> <u>rank</u> LLMs branch low-rank branch <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>Mem.</u> <u>(G)</u> <u>LLaMA2-13B</u> <u>-</u> <u>16-16-None</u> <u>w/o</u> <u>66.65</u> <u>48.81</u> <u>76.47</u> <u>82.45</u> <u>79.67</u> <u>44.80</u> <u>80.36</u> <u>48.31</u> <u>72.38</u> <u>25.70</u> _<u>w/ QLoRA</u>_ <u>16</u> <u>4-16-16</u> <u>16-16-16</u> <u>67.32</u> <u>49.74</u> <u>76.98</u> <u>82.94</u> <u>78.85</u> <u>46.00</u> <u>80.52</u> <u>50.36</u> <u>73.16</u> <u>16.56</u> w/ GSQ-Tuning 16 4-8-8 8-8-8 67.35 49.83 77.06 83.09 78.89 46.00 80.47 50.31 73.16 11.13 4-7-7 7-7-7 67.29 49.91 76.94 83.03 78.90 45.40 80.58 50.61 73.01 10.58 4-6-6 6-6-6 67.23 49.66 76.98 82.75 78.79 46.00 80.47 50.05 73.16 10.03 4-5-5 5-5-5 66.57 49.57 76.43 81.62 77.98 45.40 80.09 49.39 72.06 9.47 _<u>w/ QLoRA</u>_ <u>32</u> <u>4-16-16</u> <u>16-16-16</u> <u>67.47</u> <u>49.83</u> <u>77.02</u> <u>83.24</u> <u>78.92</u> <u>46.20</u> <u>80.58</u> <u>50.77</u> <u>73.24</u> <u>16.85</u> w/ GSQ-Tuning 32 4-8-8 8-8-8 67.49 49.83 76.98 83.15 78.94 45.60 80.79 51.07 73.56 11.42 4-7-7 7-7-7 67.38 50.17 77.06 82.81 78.99 45.40 80.79 50.46 73.40 10.87 4-6-6 6-6-6 67.35 49.83 77.06 83.09 78.89 46.00 80.47 50.31 73.16 10.31 4-5-5 5-5-5 66.65 48.38 76.18 82.08 78.07 45.60 80.36 49.74 72.77 9.76 _<u>w/ QLoRA</u>_ <u>64</u> <u>4-16-16</u> <u>16-16-16</u> <u>67.61</u> <u>49.66</u> <u>77.23</u> <u>83.30</u> <u>78.95</u> <u>45.40</u> <u>80.74</u> <u>51.59</u> <u>73.24</u> <u>17.42</u> w/ GSQ-Tuning 64 4-8-8 8-8-8 67.48 49.57 77.40 82.87 78.88 46.20 80.90 50.72 73.32 11.99 4-7-7 7-7-7 67.43 49.74 77.27 82.91 78.89 46.00 80.90 50.61 73.09 11.44 4-6-6 6-6-6 67.35 49.66 77.27 82.75 78.66 79.05 80.90 50.97 73.16 10.89 4-5-5 5-5-5 66.97 49.91 76.60 81.87 78.15 46.20 80.41 49.54 73.09 10.33 _<u>w/ QLoRA</u>_ <u>128</u> <u>4-16-16</u> <u>16-16-16</u> <u>67.61</u> <u>50.34</u> <u>77.40</u> <u>83.55</u> <u>78.89</u> <u>46.00</u> <u>80.85</u> <u>50.92</u> <u>72.93</u> <u>18.56</u> w/ GSQ-Tuning 128 4-8-8 8-8-8 67.62 50.34 77.06 83.18 78.96 46.40 80.69 50.92 73.40 13.14 4-7-7 7-7-7 67.57 50.43 77.36 83.06 79.05 45.60 80.85 51.28 72.93 12.58 4-6-6 6-6-6 67.53 50.43 77.31 83.15 78.81 45.80 80.58 50.97 73.16 12.03 4-5-5 5-5-5 67.10 49.49 76.81 82.08 78.22 46.40 80.03 50.56 73.24 11.48 _<u>w/ QLoRA</u>_ <u>256</u> <u>4-16-16</u> <u>16-16-16</u> <u>67.91</u> <u>50.77</u> <u>77.36</u> <u>83.64</u> <u>78.88</u> <u>46.60</u> <u>80.74</u> <u>51.69</u> <u>73.64</u> <u>20.85</u> w/ GSQ-Tuning 256 4-8-8 8-8-8 67.84 51.11 77.06 83.82 78.80 46.40 80.69 52.00 72.85 15.42 4-7-7 7-7-7 67.74 50.77 77.31 83.79 78.84 46.00 80.63 51.89 72.69 14.87 4-6-6 6-6-6 67.68 50.77 77.19 83.49 78.82 46.00 80.58 51.38 73.24 14.32 4-5-5 5-5-5 67.22 50.85 75.84 82.11 78.21 46.00 80.36 50.92 73.48 13.76 _<u>w/ QLoRA</u>_ <u>512</u> <u>4-16-16</u> <u>16-16-16</u> <u>67.94</u> <u>50.60</u> <u>77.48</u> <u>83.88</u> <u>79.00</u> <u>46.40</u> <u>80.74</u> <u>52.05</u> <u>73.40</u> <u>25.43</u> w/ GSQ-Tuning 512 4-8-8 8-8-8 67.92 51.02 77.27 83.27 79.04 46.40 81.01 51.79 73.56 20.00 4-7-7 7-7-7 67.90 51.19 77.15 83.79 78.82 46.80 80.69 51.79 73.01 19.45 4-6-6 6-6-6 67.82 51.02 77.02 83.85 78.93 46.20 80.90 51.54 73.09 18.89 4-5-5 5-5-5 67.39 50.94 76.68 82.29 78.39 46.20 80.41 51.69 72.53 18.34 Table 12: 0-shot commonsense QA accuracy (%) across different bits and rank on llama2-70B. <u>Method</u> <u>rank</u> LLMs branch low-rank branch <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>Mem.</u> <u>(G)</u> <u>LLaMA2-70B</u> <u>-</u> <u>16-16-None</u> <u>w/o</u> <u>70.68</u> <u>56.91</u> <u>80.05</u> <u>85.78</u> <u>83.59</u> <u>48.60</u> <u>82.48</u> <u>48.67</u> <u>79.40</u> <u>137.42</u> _<u>w/ QLoRA</u>_ <u>16</u> <u>4-16-16</u> <u>16-16-16</u> <u>71.72</u> <u>58.62</u> <u>81.44</u> <u>86.39</u> <u>83.92</u> <u>49.80</u> <u>83.03</u> <u>50.46</u> <u>80.11</u> <u>63.90</u> w/ GSQ-Tuning 16 4-8-8 8-8-8 71.65 58.62 81.23 86.36 83.87 49.60 83.19 50.41 79.95 49.17 4-7-7 7-7-7 71.63 58.87 81.57 86.24 83.89 49.20 83.19 50.46 79.64 47.44 4-6-6 6-6-6 71.58 58.62 81.36 86.15 83.84 49.60 82.97 50.41 79.64 45.72 4-5-5 5-5-5 71.02 57.34 80.56 85.93 83.75 49.00 82.59 49.33 79.64 43.99 _<u>w/ QLoRA</u>_ <u>32</u> <u>4-16-16</u> <u>16-16-16</u> <u>71.84</u> <u>59.13</u> <u>81.82</u> <u>86.27</u> <u>83.88</u> <u>49.20</u> <u>83.03</u> <u>51.02</u> <u>80.35</u> <u>64.87</u> w/ GSQ-Tuning 32 4-8-8 8-8-8 71.78 59.04 81.90 86.33 83.89 49.00 83.19 51.07 79.79 50.17 4-7-7 7-7-7 71.76 59.30 81.61 86.18 83.98 49.00 83.19 51.02 79.79 48.44 4-6-6 6-6-6 71.60 58.96 81.36 86.15 83.87 48.80 83.03 51.02 79.64 46.72 4-5-5 5-5-5 71.26 57.59 80.85 86.15 83.93 49.00 83.13 50.00 79.40 44.99 _<u>w/ QLoRA</u>_ <u>64</u> <u>4-16-16</u> <u>16-16-16</u> <u>72.22</u> <u>59.81</u> <u>82.20</u> <u>86.51</u> <u>83.89</u> <u>50.40</u> <u>83.13</u> <u>51.48</u> <u>80.35</u> <u>66.82</u> w/ GSQ-Tuning 64 4-8-8 8-8-8 72.20 59.90 82.32 86.51 83.90 50.20 83.08 51.59 80.11 52.17 4-7-7 7-7-7 72.18 59.81 82.28 86.39 83.88 50.20 83.13 51.54 80.19 50.44 4-6-6 6-6-6 72.10 59.39 82.15 86.51 83.94 50.00 83.30 50.92 80.58 48.71 4-5-5 5-5-5 71.70 58.87 81.48 85.90 83.91 49.60 82.81 50.67 80.43 46.98 _<u>w/ QLoRA</u>_ <u>128</u> <u>4-16-16</u> <u>16-16-16</u> <u>72.39</u> <u>60.67</u> <u>82.37</u> <u>86.88</u> <u>84.05</u> <u>49.20</u> <u>83.19</u> <u>52.15</u> <u>80.66</u> <u>70.96</u> w/ GSQ-Tuning 128 4-8-8 8-8-8 72.37 60.75 82.49 87.00 83.94 49.40 83.08 52.15 80.19 56.16 4-7-7 7-7-7 72.32 60.41 82.45 86.94 83.94 49.00 83.08 52.15 80.58 54.43 4-6-6 6-6-6 72.28 59.81 82.45 86.91 83.99 49.60 83.35 51.89 80.27 52.70 4-5-5 5-5-5 71.85 59.47 81.90 86.48 83.82 48.20 83.08 51.02 80.82 50.97 22986 Table 13: 0-shot commonsense QA accuracy (%) across different bits and rank on llama3-3B. <u>Method</u> <u>rank</u> <u>#Bits</u> <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>Mem.</u> <u>(G)</u> <u>LLaMA3-3B</u> <u>-</u> <u>16-16-None</u> <u>64.13</u> <u>46.25</u> <u>74.62</u> <u>77.68</u> <u>76.01</u> <u>44.20</u> <u>79.11</u> <u>46.11</u> <u>69.06</u> <u>6.42</u> _<u>w/ QLoRA</u>_ <u>16</u> <u>4-16-16</u> <u>65.05</u> <u>47.53</u> <u>75.17</u> <u>78.59</u> <u>76.09</u> <u>44.00</u> <u>79.54</u> <u>49.44</u> <u>70.09</u> <u>6.42</u> w/ GSQ-Tuning 16 8-8-8 65.10 47.53 74.71 78.35 75.99 45.00 79.65 49.28 70.32 3.57 7-7-7 64.96 47.18 75.21 78.10 75.98 44.80 79.27 49.95 69.38 3.34 6-6-6 64.87 46.84 73.78 78.07 75.88 45.80 79.22 49.39 70.01 3.11 5-5-5 63.97 46.76 72.64 75.78 74.95 45.20 79.05 48.62 68.75 2.88 _<u>w/ QLoRA</u>_ <u>32</u> <u>4-16-16</u> <u>65.24</u> <u>47.27</u> <u>75.04</u> <u>78.87</u> <u>76.11</u> <u>44.60</u> <u>79.76</u> <u>49.95</u> <u>70.32</u> <u>6.54</u> w/ GSQ-Tuning 32 8-8-8 65.45 48.12 74.71 78.38 76.14 46.00 79.71 49.64 70.96 3.69 7-7-7 65.43 47.35 74.20 78.99 75.84 46.00 79.92 49.59 71.59 3.46 6-6-6 65.01 47.44 74.62 78.65 76.03 44.00 79.60 50.05 69.69 3.23 5-5-5 64.00 44.97 73.32 75.29 74.95 44.60 79.27 48.93 70.24 3.00 _<u>w/ QLoRA</u>_ <u>64</u> <u>4-16-16</u> <u>65.69</u> <u>47.14</u> <u>74.75</u> <u>79.50</u> <u>76.46</u> <u>45.50</u> <u>79.63</u> <u>50.26</u> <u>71.32</u> <u>6.78</u> w/ GSQ-Tuning 64 8-8-8 65.60 48.12 74.24 79.72 76.00 45.80 79.60 49.69 71.67 3.93 7-7-7 65.47 47.78 74.71 79.51 76.09 45.80 79.60 49.80 70.48 3.70 6-6-6 65.39 47.70 74.58 79.24 76.05 44.60 79.60 50.41 70.96 3.47 5-5-5 64.18 45.14 72.69 75.20 75.27 46.40 79.65 48.62 70.48 3.24 _<u>w/ QLoRA</u>_ <u>128</u> <u>4-16-16</u> <u>65.84</u> <u>48.24</u> <u>74.91</u> <u>79.78</u> <u>76.27</u> <u>45.52</u> <u>79.77</u> <u>50.48</u> <u>71.79</u> <u>6.76</u> w/ GSQ-Tuning 128 8-8-8 65.79 48.12 74.83 80.28 75.96 45.80 79.54 50.61 71.19 4.41 7-7-7 65.69 48.04 74.87 79.79 76.08 45.00 79.49 50.61 71.67 4.18 6-6-6 65.58 47.87 74.54 80.09 76.05 45.40 79.38 50.10 71.27 3.95 5-5-5 64.46 46.50 72.77 75.99 75.31 46.60 79.00 48.98 70.56 3.72 _<u>w/ QLoRA</u>_ <u>256</u> <u>4-16-16</u> <u>66.12</u> <u>48.33</u> <u>75.00</u> <u>80.94</u> <u>76.37</u> <u>45.61</u> <u>79.97</u> <u>51.13</u> <u>71.64</u> <u>7.61</u> w/ GSQ-Tuning 256 8-8-8 66.19 48.55 75.13 80.76 76.14 47.00 79.38 50.72 71.82 5.37 7-7-7 65.96 48.46 75.08 80.43 76.04 45.60 79.76 50.72 71.59 5.13 6-6-6 65.90 48.38 74.16 79.94 75.81 46.80 79.43 50.87 71.82 4.90 5-5-5 64.59 46.33 72.60 76.51 75.57 46.40 79.60 49.39 70.32 4.67 _<u>w/ QLoRA</u>_ <u>512</u> <u>4-16-16</u> <u>66.59</u> <u>49.26</u> <u>75.20</u> <u>81.99</u> <u>76.06</u> <u>46.74</u> <u>79.49</u> <u>51.71</u> <u>72.27</u> <u>9.73</u> w/ GSQ-Tuning 512 8-8-8 66.52 49.49 74.92 81.28 75.89 47.60 79.49 51.59 71.90 7.28 7-7-7 66.33 48.89 74.75 81.41 76.06 47.00 79.54 51.74 71.27 7.05 6-6-6 66.31 48.55 75.51 80.80 76.42 46.00 79.60 51.64 71.98 6.82 5-5-5 64.86 47.44 73.15 76.85 75.62 47.00 79.33 49.18 70.32 6.59 22987 Table 14: 0-shot commonsense QA accuracy (%) across different bits and rank on llama3-8B. <u>Method</u> <u>rank</u> <u>#Bits</u> <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>Mem.</u> <u>(G)</u> <u>LLaMA3-8B</u> <u>-</u> <u>16-16-None</u> <u>67.18</u> <u>53.50</u> <u>77.74</u> <u>81.13</u> <u>79.20</u> <u>45.00</u> <u>80.63</u> <u>47.03</u> <u>73.24</u> <u>15.01</u> _<u>w/ QLoRA</u>_ <u>16</u> <u>4-16-16</u> <u>68.14</u> <u>54.52</u> <u>79.50</u> <u>83.43</u> <u>78.66</u> <u>44.80</u> <u>80.85</u> <u>50.00</u> <u>73.32</u> <u>10.71</u> w/ GSQ-Tuning 16 8-8-8 68.16 54.61 79.84 83.70 78.58 44.80 80.79 49.85 73.16 7.03 7-7-7 68.00 54.01 79.29 83.46 78.65 45.00 80.85 49.80 73.01 6.65 6-6-6 67.74 54.01 78.70 83.09 78.49 44.00 80.90 49.44 73.32 6.26 5-5-5 66.51 51.54 77.27 81.99 77.00 44.40 78.84 48.46 72.61 5.87 _<u>w/ QLoRA</u>_ <u>32</u> <u>4-16-16</u> <u>68.31</u> <u>55.55</u> <u>80.39</u> <u>83.36</u> <u>78.65</u> <u>44.60</u> <u>81.28</u> <u>50.05</u> <u>72.61</u> <u>11.02</u> w/ GSQ-Tuning 32 8-8-8 68.45 55.72 80.22 83.43 78.60 45.00 81.18 50.20 73.32 7.23 7-7-7 68.29 54.95 80.13 83.36 78.53 44.80 81.01 50.20 73.32 6.84 6-6-6 68.08 55.29 79.29 83.55 78.28 45.80 81.07 49.39 71.98 6.46 5-5-5 66.48 51.71 77.69 82.11 76.91 44.20 79.43 48.16 71.67 6.07 _<u>w/ QLoRA</u>_ <u>64</u> <u>4-16-16</u> <u>68.45</u> <u>55.63</u> <u>80.13</u> <u>83.67</u> <u>78.78</u> <u>44.80</u> <u>81.28</u> <u>50.41</u> <u>72.93</u> <u>11.64</u> w/ GSQ-Tuning 64 8-8-8 68.61 55.97 80.22 83.61 78.68 45.20 81.50 50.41 73.32 7.63 7-7-7 68.57 55.97 80.68 83.73 78.84 45.20 81.01 50.26 72.85 7.24 6-6-6 68.22 55.55 79.29 83.67 78.47 44.80 80.90 50.05 73.09 6.86 5-5-5 66.69 54.10 77.99 81.65 77.12 43.80 79.54 47.90 71.43 6.47 _<u>w/ QLoRA</u>_ <u>128</u> <u>4-16-16</u> <u>68.77</u> <u>56.14</u> <u>80.56</u> <u>83.98</u> <u>79.03</u> <u>45.60</u> <u>81.34</u> <u>50.56</u> <u>72.93</u> <u>12.13</u> w/ GSQ-Tuning 128 8-8-8 68.72 56.57 80.22 83.82 78.80 45.40 81.23 50.41 73.32 8.43 7-7-7 68.71 56.48 80.18 83.88 78.78 45.80 81.34 50.36 72.93 8.04 6-6-6 68.67 56.91 79.50 83.79 78.71 46.60 80.52 50.36 73.01 7.66 5-5-5 66.92 52.47 78.45 82.63 77.22 44.60 79.49 48.52 71.98 7.27 _<u>w/ QLoRA</u>_ <u>256</u> <u>4-16-16</u> <u>69.09</u> <u>56.74</u> <u>80.35</u> <u>84.56</u> <u>79.02</u> <u>45.20</u> <u>81.83</u> <u>50.92</u> <u>74.11</u> <u>13.81</u> w/ GSQ-Tuning 256 8-8-8 69.04 56.57 80.85 84.07 78.97 45.40 81.45 51.28 73.72 10.03 7-7-7 69.00 56.83 80.89 84.25 78.96 45.60 81.50 50.46 73.56 9.64 6-6-6 68.84 56.74 79.80 83.98 78.84 46.40 81.12 50.77 73.09 9.26 5-5-5 67.54 53.33 78.49 83.21 77.38 44.60 79.98 48.93 73.64 8.87 _<u>w/ QLoRA</u>_ <u>512</u> <u>4-16-16</u> <u>69.18</u> <u>57.17</u> <u>80.30</u> <u>84.65</u> <u>79.28</u> <u>46.40</u> <u>81.07</u> <u>50.36</u> <u>74.27</u> <u>16.81</u> w/ GSQ-Tuning 512 8-8-8 69.24 56.48 80.47 85.35 79.13 45.40 81.56 51.54 74.03 13.23 7-7-7 69.16 56.40 80.68 85.26 79.10 45.80 81.28 51.13 73.64 12.84 6-6-6 69.01 56.57 80.01 84.56 78.84 45.80 81.23 51.64 73.48 12.45 5-5-5 67.90 54.38 78.60 83.97 78.08 45.30 80.24 50.00 72.76 12.07 Table 15: 0-shot accuracy comparison with FP8 in different quantization bits in 64 rank setting. <u>Method</u> <u>#Bits</u> <u>Avg.</u> <u>ARC-c</u> <u>ARC-e</u> <u>BoolQ</u> <u>HellaS.</u> <u>OBQA</u> <u>PIQA</u> <u>SCIQ.</u> <u>WinoG.</u> <u>Mem.</u> <u>(G)</u> LLaMA2-7B 16-16-None 64.13 46.25 74.62 77.68 76.01 44.20 79.11 46.11 69.06 13.20 _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>65.69</u> <u>47.14</u> <u>74.75</u> <u>79.50</u> <u>76.46</u> <u>45.50</u> <u>79.63</u> <u>50.26</u> <u>71.32</u> <u>9.73</u> <u>w/ FP8</u> <u>8-8-8</u> <u>64.46</u> <u>46.84</u> <u>73.61</u> <u>77.83</u> <u>76.03</u> <u>44.60</u> <u>79.65</u> <u>47.80</u> <u>69.38</u> <u>6.88</u> w/ GSQ-Tuning 8-8-8 65.60 48.12 74.24 79.72 76.00 45.80 79.60 49.69 71.67 6.88 6-6-6 65.39 47.70 74.58 79.24 76.05 44.60 79.60 50.41 70.96 6.17 5-5-5 64.18 45.14 72.69 75.20 75.27 46.40 79.65 48.62 70.48 5.81 LLaMA3-8B 16-16-None 67.18 53.50 77.74 81.13 79.20 45.00 80.63 47.03 73.24 15.01 _<u>w/ QLoRA</u>_ <u>4-16-16</u> <u>68.45</u> <u>55.63</u> <u>80.13</u> <u>83.67</u> <u>78.78</u> <u>44.80</u> <u>81.28</u> <u>50.41</u> <u>72.93</u> <u>11.71</u> <u>w/ FP8</u> <u>8-8-8</u> <u>66.46</u> <u>50.77</u> <u>76.39</u> <u>81.38</u> <u>78.19</u> <u>43.40</u> <u>79.92</u> <u>47.29</u> <u>74.35</u> <u>7.63</u> w/ GSQ-Tuning 8-8-8 68.61 55.97 80.22 83.61 78.68 45.20 81.50 50.41 73.32 7.63 6-6-6 68.22 55.55 79.29 83.67 78.47 44.80 80.90 50.05 73.09 6.86 5-5-5 66.69 54.10 77.99 81.65 77.12 43.80 79.54 47.90 71.43 6.47 22988

섹션 본문 76문단 · 33,879자

(제목 없음)

1Large 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 resourceconstrained 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 ondevice 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.85× memory usage.Moreover, compared to FP8, our method can reduce ∼ 5× power consumption and ∼ 11× chip area with same performance, making large-scale model adaptation feasible on edge devices.

Introduction

2Recent advances in Large Language Models (LLMs) have delivered impressive results in a variety of natural language tasks (Touvron et al., 2023a,b;Liu et al., 2023).LLMs are typically trained in several stages, including large-scale pretraining followed by one or more fine-tuning phases (Dubey et al., 2024;Liu et al., 2024a).LLM fine-tuning approaches like supervised fine-tuning † Equal contribution ‡ Work done as an intern at Houmo AI (SFT) (Zhang et al., 2023), usually employ curated, high-quality corpora for refining the model with a standard language modeling (Chiang et al., 2023).

3Despite their effectiveness, most LLM finetuning approaches require powerful cloud servers or GPUs equipped with large memory capacities.This poses two significant challenges in real-world settings: (1) uploading sensitive data to remote servers poses a fundamental privacy risk, and (2) in many practical scenarios, models must be deployed on resource-constrained edge devices-such as mobile processors or embedded AI accelerators-where memory and power budgets are tightly limited.Such constraints become critical in LLM's personalized applications, where data cannot be shared with the cloud and model updates must remain local to ensure privacy.Meeting these challenges thus necessitates on-device adaptation methods capable of preserving data privacy and functioning within the limited memory and compute budgets of edge hardware.

4Parameter-Efficient Fine-Tuning (PEFT) (Han et al., 2024) techniques such as LoRA (Hu et al., 2021) and QLoRA (Dettmers et al., 2023) alleviate part of this burden by reducing trainable parameters to around 1% of the original model.Unfortunately, they remain reliant on floating-point operations for both forward and backward passes, which clashes with edge-device constraints in three ways.First, during fine-tuning, weights, activation and gradients must be stored and updated in high-precision floating-point.It introduces additional overhead or even makes the LLM fine-tuning impractical on edge devices.Second, floating-point representations incur high memory overhead (e.g., FP16 doubles the memory cost compared to INT8; for a 7B-parameter model, this can surpass 20GB memory during fine-tuning process, presenting substantial challenges for mobile processors).Last but not least, commercial edge AI accelerators (e.g., Qualcomm Hexagon (QUALCOMM, 2024)) typically get peak throughput only on integers, leaving up to 84% of compute units idle under FP16 training.

5Therefore, eliminating floating-point arithmetic for fine-tuning would have a substantial impact on software, hardware, and application design for efficient on-device LLM adaptation (ARM, 2020;Kim et al., 2021).While previous studies on integer quantization (Jacob et al., 2018a;Kim et al., 2021;Xiao et al., 2022;Yuan et al., 2023) verify the feasibility of inference, they do not extend to gradient quantization, which is required for effective finetuning of LLMs at the edge.

6In this paper, we propose a new framework for resource-efficient on-device LLM fine-tuning, termed GSQ-Tuning.Central to our method is the Group-Shared Exponents Integer format, a novel quantization strategy that replaces floating-point with a specialized integer-based representation.We integrate this with parameter-efficient LoRA-like modules to enable fully on-device fine-tuning without incurring large memory and computation costs.We further examine this design through a Pareto frontier analysis, which demonstrates how various bits-rank settings impact the trade-off between fine-tuning memory costs and accuracy.Extensive experiments across models of varying scales, different fine-tuning datasets, and diverse tasks have demonstrated the effectiveness and generalizability.We highlight our main contributions as follows:

7• Group-Shared Exponents Integer Quantization: We introduce a quantization strategy that shares exponents among groups, thereby reducing the storage and computation overhead while still representing model parameters in integer format.Combined with LoRAlike adapters, our method supports fine-tuning under tight memory constraints.

8• Integer Forward and Backward Computations: By extending integer quantization pipelines beyond inference to include gradients, both forward and backward passes remain hardware-friendly and efficiently utilize integer-focused edge accelerators.

9• Pareto Frontier for Quantization Bits and Low-rank: We demonstrates how various bits-rank settings impact the trade-off between fine-tuning memory costs and accuracy through a Pareto frontier analysis.We empirically show that our approach achieves accuracy on par with FP16-based fine-tuning while dramatically lowering both 1.85× memory footprint.Furthermore, compared with FP8, at comparable performance levels, our method (GSE-INT5) reduces the power consumption of MAC unit by ∼ 5 × and decreases chip area by ∼ 11 × comparing to the origin.

Method

10In this section, we present GSQ-Tuning, a fully quantized training method for on-device LLM fine-tuning.We begin by reviewing the fundamentals of LLM (2) A Fully Quantized Fine-tuning Framework that leverages our new data format (Sec.2.3).Finally, we explore the performance-efficiency trade-off in GSQ-Tuning via Pareto frontier analysis (Sec.2.4) , providing practical guidance for its use.

Preliminaries

11Low-rank Adaptation.LoRA (Hu et al., 2021) is a milestone method that injects trainable lowrank adapters into linear layers, allowing efficient fine-tuning while keeping the original parameters unchanged.Specifically, a LoRA linear layer is parameterized by a non-trainable weight matrix W ∈ R oc×ic , along with trainable components A ∈ R r×ic and B ∈ R oc×r , where r is a small integer.The input X ∈ R b×ic and output Y ∈ R b×oc correspond to a linear layer with oc × ic processing a batch of size b.Building on LoRA, QLoRA integrates it with 4-bit NormalFloat (NF4) quantization and Double Quantization (DQ)techniques, enabling the fine-tuning of a 65B parameter model on a single 48GB GPU with minimal performance loss.In this paper, due to the memory constraint of on-device PEFT, we adopt QLoRA to quantize the weights of LLMs.The formulation is:

12where we omit the transpose for similarity, N F 4 means the 4 bit NormalFloat (NF) data type and and DQ is Double Quantization operation to map weights from NF4 to BF16 in QLoRA.The lowrank components A and B and input X remain in BF16 during fine-tuning process.However, QLoRA still does not suit on-device PEFT scenarios because the low-rank term XA T B T remains in BF16, whereas most on-device hardware only supports integer operations.This limitation motivates our development of a new LoRA method that relies exclusively on integer operations.Quantization.Quantization (Jacob et al., 2018b) is a crucial technique that maps a floating-point number to a discrete interval using integer values.Given a floating-point (FP) tensor x (such as weights, activations or gradients), the b-bits formulation is:

13where s = max(|x|) 2 b−1 −1 is the scaling factor, z denotes zero points, ⌊•⌉ refers to the round-to-nearest, and the function clamp(•) clips values outside the integer range [q min , q max ] respectively.[q min , q max ] is the quantization range determined by the bit width b, where q min = −sz and q max = −s(2 b − 1 − z).Fully Quantized Training (FQT).FQT involves quantizing all tensors-weights, activations, and gradients-needed for computation-intensive operations (like matrix multiplication) during both forward and backward propagation (Wang et al., 2018;Yang et al., 2020;Zhu et al., 2020).When the network's weights, activations, and gradients are each quantized to 8 bits, this is referred to as W8A8G8 quantization.Notably, FQT is different from Quantization-Aware Training (QAT), we also discuss the difference in Sec.A.1.

Group-Shared Exponents Integer

14Low-bitwidth Floating Point (FP).Floatingpoint numbers are a commonly used data representation in deep learning.For instance, FP16 represents each number using 16 bits.Recently, lower-bit floating-point representations, such as FP8, have been introduced into the training processes of deep learning models (Micikevicius et al., 2022;Baalen et al., 2023).FP8 operates in two modes: the E4M3 and E5M2 formats.In these formats, E represents the number of exponent bits and M denotes that of mantissa bits.

15Similar to quantization methods, low-bitwidth FP formats can effectively reduce memory storage requirements and decrease the hardware area and energy consumption of computational units.However, we observe that low-bitwidth FP may not be the optimal solution for LoRA fine-tuning in large-scale models, primarily due to the following 3 reasons: (1) Neural network tensors exhibit spatial locality, meaning that adjacent elements within a tensor tend to have similar magnitudes, leading to redundancy in the exponent bits of FP representations.As illustrated in Fig. 1, the standard deviation of the values in the weight tensor is considerably lower than the magnitude of the values, indicating a small local variation;

16(2) The limited number of mantissa bits in low-bitwidth FP formats constrains precision, potentially impairing model performance.For instance, the E5M2 format, which has only two mantissa bits, is incapable of representing certain integers below ten, such as 5, 7, and 9; (3) FP computation demonstrates less efficiency in memory, chip area, and power consumption compared to GSE-INT computation, making it less suitable for resource-constrained environments.As shown in Table 7, FP formats incur considerably higher costs in power and chip area compared to integer-based computation, making them less suitable for edge environments.Due to the inherent characteristics of FP representations and the requirement for relatively high precision in training, it is crucial to explore other data format to reduce both hardware area and energy consumption in resource-constrained cases.

Group-Shared Exponents Integer (GSE-INT).

17Inspired with block FP (Zhang et al., 2022), we propose the Group-Shared Exponents Integer (GSE) format as an alternative to FP formats for matrix multiplication in both forward-propagation and back-propagation.This format is also used for storing activations required by back-propagation to reduce memory consumption.As illustrated in Fig. 2, GSE introduces the following key modifications compared to traditional floating-point formats: (1) To leverage the locality of tensor values, we share the exponent across a group of N numbers.That is, all N numbers within the group use the same exponent.(2) The number of bits used for the shared exponent is fixed at 5. (3) The implicit leading 1 in floating-point representations is removed and replaced with a standard integer representation.The numerical representation in GSE is:

18where s is sign, e is the exponent value (For simplicity, we omit the exponent bias), m is the mantissa value.The GSE format is memory efficient through sharing exponent bits.Memory for FP is N (E + M + 1) and memory for GSE is N (M + 1) + E. As the group size N increases, the memory savings grow proportionally, while the overhead of the shared exponent is negligible.

19Matrix Multiplication using GSE.Consider two vectors, A and B, both represented using the GSE format and having a length of N .The dot product of the two vectors can be computed as:

20(−1) s A ⊕s B mA,imB,i standard integer multiply-accumulate , where m A,i and m B,i are the integer mantissas of the i-th elements of the vectors.The computation involves a standard integer multiply-accumulate (MAC) operation, followed by scaling with the combined exponent 2 e A +e B .

21The dot product operation can be extended to large-scale matrix multiplication.For two matrices X and Y, we partition the data into groups of size N .Specifically, rows of X are grouped along their elements, with each group sharing a single exponent, and columns of Y are grouped similarly.This grouping strategy simplifies hardware implementation and makes the GSE format a practical and efficient choice for large-scale matrix operations.due to the design of GSE.First, within a group of N FP numbers, identify the largest exponent e max among them.Then, double e max to account for the shared exponent of the group.For each FP value in the group, its mantissa is adjusted by adding the implicit leading bit (if applicable) and then right-shifting the value based on the difference between its original exponent and e max .This process ensures that all values are aligned to the shared exponent, leading the storage and computation efficiency while preserving precision.

Fully Quantized Fine-tuning

22As illustrated in Fig. 3, our GSQ-Tuning framework introduces a hardware-efficient quantization pipeline.Compared to QLoRA, we fully quantize weights, activations, and gradients to lowbit integers.While QLoRA primarily focuses on 4-bit quantization of frozen base model weights (NF4) while keeping adapters in high precision (BF16), our approach achieves superior computational and memory efficiency.Building on the quantize-compute-dequantize (QCD) paradigm for low-precision matrix multiplication (MM) (Xi et al., 2024), the QCD approach operates in three stages: (1) Quantization: Convert high-precision inputs matrices (e.g., BF16) to low-precision (e.g., GSE-INT6) using a quantizer Q(•);

23(2) Computation in low-precision MM: Perform low-precision MM to produce an intermediate output (e.g., GSE-INT6); and (3) Dequantization: Convert output back to high-precision using a dequantizer Q −1 (•).

24Forward Propagation.The forward propagation for a linear layer is calculated as follows:

25Backward Propagation.Gradients are computed directly on quantized tensors using back propagation and chain rule: The effectiveness of GSQ-Tuning hinges on how quantization bit-width interacts with the dimensions of low-rank adapters.To inform real-world deployments, we systematically analyze this interplay by constructing a Pareto frontier that illustrates the balance between model memory consumption during fine-tuning and accuracy across various bitsrank settings.We hope our findings not only highlight optimal configurations, but also offer practical guidelines for practitioners to tailor solutions to specific hardware constraints.

26Pareto Frontier Analysis.Based on our GSQ-Tuning, we construct a Pareto frontier by plotting model memory during fine-tuning against validation accuracy across different bits-rank configuration.As shown in Fig. 4 2) and reduces chip area (∼11×) and power (∼5×, Table 7).We also provide the Pareto frontier and detailed results for other models in appendix.Extra extensive results yield similar guidance.

Experiments

27Foundation Models and Evaluation Metrics.We apply our method to the entire LLaMA family, including LLaMA-2 (7B/13B/70B) (Touvron et al., 2023b), and LLaMA-3 (3B-8B).We evaluate the fine-tuning models on up to 9 zeroshot commonsense question-answering (CSQA) tasks using the lm-evaluation-harness (version 0.4.7)(Gao et al., 2024), including BoolQ(Clark et al., 2019), HellaSwag (Zellers et al., 2019), LAMBADA (OpenAI) (Radford et al., 2019), Open-BookQA (Mihaylov et al., 2018), PIQA (Bisk et al., 2020), SIQA (Sap et al., 2019), Wino-Grande (Sakaguchi et al., 2019), ARC-Easy, and ARC-Challenge (Clark et al., 2018).The finetuning dataset follows Alpaca (Taori et al., 2023), with 52K instruction data from text-davinci-003.Besides, we also report the memory cost (Mem.(G))during the model fine-tuning process.Training Details.We employ the whole finetuning process based on LLaMA-Factory (Zheng et al., 2024).We implement GSQ-Tuning in PyTorch using models from Hugging Face.We freeze the parameters of the linear modules and The hardware operates at 1 GHz and has a capability of 50 TOPS.The memory subsystem is not considered in our settings and analyses.

Overall Results

28GSQ-Tuning Results on LLaMA Family.Here, we compare the fine-tuning performance across LLaMA family (3B 70B) against QLoRA.As shown in Tab. 1, GSQ-Tuning achieves comparable or better zero-shot accuracy across different LLaMA model scales (7B-70B) under a fully low-bit quantization fine-tuing setting.With 8-bit quantization precision (W8A8G8), GSQ-Tuning matches or exceeds QLoRA's performance on 83% of tasks, despite using 50% fewer bits for activations and gradients.Even at aggressive 5-bit quantization (W5A5G5), the GSQ-Tuning maintains 98.6% of QLoRA's average accuracy while reducing 1.85× memory footprint.These results confirm GSQ-Tuning's effectiveness for resource-constrained edge deployment.Besides, we present comprehensive results of our GSQ-Tuning across various LlaMA models in Sec.A.2.This includes LlaMA2-7B (Tab.11),LlaMA2-13B (Tab.12),LlaMA2-70B (Tab.13),LlaMA3-3B (Tab.14), and LlaMA3-8B (Tab.15).The findings consistently highlight the efficiency of GSQ-Tuning.

29Comparison with FP8.Here, we compare the designed GSE data format with FP8 in fully quantized fine-tuning framework.As shown in Tab. 2, the results demonstrate that the designed GSE implemented in our GSQ-Tuning method achieves superior fine-tuning performance compared to FP8 while significantly reducing computation efficiency.

30Even under 5-bit settings, GSQ-Tuning maintains fine-tuning performance on par with FP8, further validating its effectiveness.Additionally, to mitigate the impact of rank variations, we report the fine-tuning results using 64-rank setting in Tab.16 of the appendix.Extensive experiments consistently support the advantages of our approach.

Generalization Experiments

31Generalization of GSQ-Tuning for Vision-Language Model (LLaVA).Model used is LLaVA-v1.5-7B(Liu et al., 2024b) with Vicuna-7B-v1.5 (Zheng et al., 2023) as language model and CLIP ViT-L-336px (Radford et al., 2021) as vision tower, connected by a 2-layer MLP.Instruction dataset and other settings for finetuning follow the LLaVA official repository, LLaVA-Instruction (Liu et al., 2024c) and the improved one (Liu et al., 2024b).Tab. 3 shows performance drop of the vanilla quantization of 4-bits/64-rank QLoRA, especially, referring to the TextVQA evaluation.Finetuning with GSE shows comparable performance compared to that with BF16.BF16 is of E8M7 while GSE is of E5M7, demonstrating the redundancy of the dynamic range w.r.t.exponents is at least 3-bits much.Moreover, the memory cost of GSE is about a half of BF16.

32Generalization of GSQ-Tuning on Other Finetune Dataset.Here, we also select Common-sense170K (CS170K) (Hu et al., 2023) to evaluate the generalization ability of GSQ-Tuning across different fine-tuing dataset.CS170K is a dataset constructed from the training sets of BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC-e, ARC-c, and OBQA with pre-defined templates, comprising 170K commonsense reasoning samples.As shown ).This sweet spot emerges from the tension between quantization bit width and hardware deployment -smaller groups better capture value distributions but increase computation overhead, while larger groups sacrifice adaptation granularity.We therefore adopt group=32 as the default configuration.Exponenet Bits Analysis.As shown in Tab. 9, experiments demonstrate that fixing exponent bits E=5 achieves the optimal trade-off between accuracy and memory overhead.Adopting a smaller exponent (for example, E = 4) leads to significant performance degradation, while increasing E=6 yields marginal performance gains.This ablation study validates the effectiveness of our fixed shared exponent design E = 5.

33Low Rank Size Analysis.As shown in Tab. 10, the results demonstrates the accuracy-efficiency trade-off across different LoRA ranks in 6-bit configurations (W6A6G6).While larger ranks consistently improve performance (64.87 → 66.31 av- erage accuracy for rank 16 → 512), the marginal gains diminish significantly beyond rank 64 (+0.38 from 64→128 vs +0.73 from 16 → 64).This aligns with the spectral properties of weight matrices, where most task-relevant information is captured by the dominant singular vectors.We observe that rank=64 provides an optimal balance, achieving 98.6% of the maximum accuracy while using 50% less memory than rank=512 configurations.

Related Work

34Parameter-Efficient Fine-Tuning (PEFT).

35PEFT reduces memory and computational costs by introducing a small set of trainable parameters while keeping the pretrained model frozen.

36Approaches including soft prompt tuning (Wang et al., 2023), partial fine-tuning (Fu et al., 2023), and low-rank adaptation (Hu et al., 2021).Among these, LoRA stands out as a seminal work, injecting trainable low-rank matrices into linear layers to enable efficient fine-tuning without modifying the base model weights.QLoRA extends this with 4-bit NF4 quantization and Double Quantization, supporting 65B model fine-tuning on a single 48GB GPU with minimal performance degradation.Despite recent studies further extending LoRA from the perspective of quantization-aware fine-tuning (Xu et al., 2023;Li et al.) to improve efficiency, stability, and performance (Hu et al., 2023;Liu et al., 2024d;Zhao et al., 2024;Hayou et al., 2024;Meng et al., 2024), these methods still maintain compute-intensive forward and backward propagations at high bit-widths during fine-tuning.This results in a substantial computational burden when targeting edge AI accelerators.

37Quantization.Much excellent works (Yuan et al., 2023;Shang et al., 2023;Yue et al., 2024;Frantar et al., 2022;Xiao et al., 2022;Hu et al., 2024Hu et al., , 2025b,a) ,a) use the quantization techniques to accelerate the inference of LLMs.For instance, GPTQ (Frantar et al., 2022) quantizes weights to 3-4 bit with slight accuracy drop based on approximate second-order information.AWQ (Lin et al., 2024), SmoothQuant (Xiao et al., 2022), and Omni-Quant (Shao et al.) explore the scheme of smoothing by detecting the importance of different activation channels.Recent works (e.g., Quarot (Ashkboos et al., 2024), SpinQuant (Liu et al., 2024e), OSTQuant (Hu et al., 2025b)) further suppress outliers by utilizing computation-invariant rotation transformation.However, above methods mainly focus on the post-training optimization while overlooking the overhead during training.Interestingly, several studies (Banner et al., 2018;Drumond et al., 2018;Adelman and Silberstein, 2018;Wu et al., 2018;Langroudi et al., 2019a,b;Yang et al., 2020;Zhu et al., 2020;Xi et al., 2023) have made much efforts to improve the efficiency and optimization of the training process, notably through Fully Quantized Training (FQT).FQT involves quantizing all tensors-weights, activations, and gradients-needed for computation-intensive operations (like matrix multiplication) during both forward and backward propagation (Wang et al., 2018;Yang et al., 2020;Zhu et al., 2020).Particularly during the backward propagation, quantizing gradients remains challenging due to the wide dynamic range.Recent works have focused on integer-based quantization for smaller-scale models; for instance, SwitchBack (Wortsman et al., 2023) quantizes partial matrix multiplications with INT8, but it is limited to vision models with up to 1B parameters.Jetfire (Xi et al., 2024) proposes a 2D block-wise quantization approach that maintains accuracy and achieves significant memory savings (1.4-1.5x) when training in INT8.However, these methods have yet to scale to LLMs.Additionally, some efforts have attempted to alleviate the training burden using low-bit floating-point representations; for example, LM-FP8 (Peng et al., 2023) trains LLMs from scratch using FP8, achieving performance comparable to BF16.Nonetheless, above methods have not yet been explored to for low-bit integer fine-tuning tasks for LLMs.Notably, FQT is different from Quantization-Aware Training (QAT), we also discuss the difference in Sec.A.1.

Conclusion

38In this paper, we propose GSQ-Tuning, a resourceefficient framework that addresses the critical challenges of floating-point dependency, privacy risks, and hardware incompatibility in on-device LLM fine-tuning.By integrating Group-Shared Exponents Integer (GSE) quantization with parameter-efficient adaptation, our method achieves three key advancements:(1) Full Integer Pipeline: Eliminates floating-point operations across both forward and backward passes, reducing 1.85× memory footprint compared to FP16 while maintaining comparable accuracy.

39(2) Hardware-Optimized Design:

40The GSE format reduces metadata overhead via group-wise exponent sharing, enabling 5-8bit integer representations.Combined with LoRA-like adapters, this achieves 5 × lower power consumption and 11× smaller chip area compared to FP8 at equivalent accuracy levels.

41(3) Practical Deployment Guidance: A Pareto frontier analysis guides optimal bit-rank configurations for diverse edge constraints.These innovations establish GSQ-Tuning as a foundational step toward democratizing LLM adaptation for resource-constrained environments.This breakthrough makes private, on-device LLM adaptation practical for sensitive applications.Future work will explore sub-4bit quantization to further push the boundaries of edge AI.

Limitations and Future Work

42Limitations While our GSQ-Tuning significantly advances on-device LLM adaptation through integer-focused optimization and parameterefficient quantization, two key limitations warrant discussion:

43Non-linear Operator Precision.Our current implementation maintains non-linear operations (e.g., LayerNorm, Softmax) in 16-bit to preserve numerical stability.This introduces partial precision conversion overhead during computation.However, non-linear operations do not contain additional learnable parameters and thus do not consume memory.Moreover, these non-linear operations are generally computation-light, making their computational burden negligible.Future work could explore fully integer implementations for non-linear layers.Bit-Width Range Constraints.The current framework operates effectively in 5-8bit configurations but didn't present the performance at extreme low bit (≤ 4bit) precision.This stems from gradient direction distortion under extreme quantization-a challenge requiring new error compensation mechanisms.We plan to investigate two directions: (1) 4bit stochastic rounding with gradient-aware scaling, and (2) mixed-precision adapters allocating higher bits to critical gradient dimensions.

44Future Work Furthermore, future work could explore (1) full integer fine-tuning, (2) extreme lowbit quantized fine-tuning and (3) co-design with emerging integer-optimized AI accelerators.

A Appendix

45A.1 Differences with Quantization-aware training (QAT):

46Quantization-aware training (QAT) (Choi et al., 2018;Zhang et al., 2018;Zhou et al., 2017;Jacob et al., 2018a;Dong et al., 2019b,a;Shen et al., 2019;Zafrir et al., 2019;Shen et al., 2020;Tang et al., 2022;Zhang et al., 2020;Bai et al., 2020;Foret et al., 2020;Wang et al., 2022) is an inference acceleration technique which trains networks with quantizers inserted in the forward propagation graph, so the trained network can perform efficiently during inference.QAT can compress activation/weights to extremely low precision (e.g.1-2 bits).It is tempting to think that directly applying a quantizer for QAT to FQT can lead to similar low activation/weights bit-width.However, even only quantizing the forward propagation for FQT is much more challenging than QAT because: ❶

47QAT requires a converged full-precision model as initialization (Esser et al., 2019) and/or as a teacher model for knowledge distillation (Bai et al., 2020);

48❸ QAT may approximate the discrete quantizer with continuous functions during training (Gong et al., 2019), which cannot be implemented with integer arithmetic.Due to these challenges, it is still an open problem to do FQT with low-bit activations/weights.

49A.2 Detailed results on different rank setting:

50Here, we also report the results of our GSQ-Tuning on different LlaMA model, including LlaMA2-7B (Tab.11),LlaMA2-13B (Tab.12),LlaMA2-70B(Tab.13),LlaMA3-3B(Tab.14), and LlaMA3-8B(Tab.15).The results consistently demonstrated the effectiveness and efficiency of GSQ-Tuning.

A.3 Comparison with FP8 with 64 rank

51Here, we compare the designed GSE data format with FP8 in fully quantized fine-tuning framework with 32 rank setting.As shown in Tab.16, the results still demonstrate that the designed GSE implemented in our GSQ-Tuning method achieves superior fine-tuning performance compared to FP8 while significantly reducing computation efficiency.

52Even under 5-bit settings, GSQ-Tuning maintains fine-tuning performance on par with FP8, validating its effectiveness.

Figure 1 :

53Figure 1: In each layer, the weights' magnitudes are similar.The standard deviations of weights across layers are less than 2 −2 by 3-σ (about probability 99.7%).The weights are from Vicuna-7B-v1.5.

Figure 2 :

54Figure 2: The GSE format is memory efficient through group-shared exponent bits.Comparison between FP8 and GSE-Int8.

Figure 3 :

55Figure 3: Dataflow of GSQ-Tuning.The weight is NF4 in full-rank branch and is FP32 in low-rank branch.

56.4 Pareto Frontier for Quantization Bits and Low-rank.Co-optimization Principle for Model Bits and Rank.The memory footprint and FLOPs during fine-tuning exhibit strong dependence on both quantization bit-width and LoRA rank O(b • r) scaling.Excessive values in either dimension impose prohibitive computational burdens: (1) Memory:Mem ∝ b • r (adapter parameter storage); (2) Compute: Flops ∝ r • d 2 (for hidden dimension d).This necessitates joint optimization of (b, r) to guide the accuracy-efficiency trade-off space effectively.Pure bit-width reduction sacrifices model capacity, while unrestrained rank scaling inflates computation costs disproportionately.

Figure 4 :

57Figure 4: Pareto curve of accuracy-memory trade-offs.Compared to FP16, our GSQ-Tuning can reduce 1.85× memory usage while having the comparable accuracy.Detailed results are in Tab.11

Table 1 :

580-shot CSQA accuracy comparison with respect to different quantization bits in 64 rank setting.'4-8-8' means quantize weights, activation and gradients to 4-bit, 8-bit and 8-bit.GSQ-Tuning is built on Qlora, where all weights are quantized as NF4 firstly.Notably, the memory usage for LLaMA series model is for the model weights alone.Since these models are not fine-tuned, no fine-tuning phase (no gradient computation or updates) is involved.Denoted as 16-16-None for weights-activation-gradients.

59update a smaller (low-rank) set of parameters during the fine-tuning.The group size of our GSQ-Tuning is 32.We fine-tune models using the 8-bits AdamW optimizer (Dettmers et al.) in bfloat16 precision.We choose the constant learning rate schedule and set the learning rate to be 1 × 10 −5 for all models.In all cases, we tune the hyperparameters on the base BF16 tasks, and re-use the same values for low-precision training.We always perform single-epoch experiments using a linear learning rate warm-up of 100 steps.The batch size and sequence length are fixed at 16 and 2048.The number of fine-tuning steps is 3.24K for Alpaca.

Table 2 :

600-shot CSQA accuracy comparison with FP8 in different quantization bits in 32 rank setting.LLMs branch low-rank branch Avg.ARC-c ARC-e BoolQ HellaS.OBQA PIQA SCIQ.WinoG.Mem.(G)

Table 3 :

61Cross-modal task evaluation on LLaVA-v1.5-7B:the default setting is QLoRA on 4-bits/64-rank without finetuning.Shared exponents shows robustness to LLM's finetuning, referring to the comparison with BF16.

Table 4 :

620-shot CSQA accuracy on CS170K dataset in 64 rank setting.

63MethodLLMs branch low-rank branch Avg.ARC-c ARC-e BoolQ HellaS.OBQA PIQA SCIQ.WinoG.

Table 5 :

64Fine-tuning time comparison with fullfinetuning and low-rank adapter on alpaca-52K dataset in LLaMA2-7B model.

Table 6 :

65Fine-tuning training memory (GB) cost with different fine-tuning settings in the LLaMA family.

Table 7 :

66Comparison of hardware overhead between FP process engine and GSE-INT process engine (7nm).

Table 8 :

67The effect of the number of shared group on fine-tuning performance in 64 rank setting.

Table 9

68MethodLLMs branch low-rank branch Group Avg.Mem.(G)

Table 10 :

69The effect of the number of low rank on finetuning performance in group=32 setting.

Table 11 :

700-shot commonsense QA accuracy (%) across different bits and rank on llama2-7B.

Table 12 :

710-shot commonsense QA accuracy (%) across different bits and rank on llama2-13B.rankLLMs branch low-rank branch Avg.ARC-c ARC-e BoolQ HellaS.OBQA PIQA SCIQ.WinoG.Mem.(G)

Table 13 :

720-shot commonsense QA accuracy (%) across different bits and rank on llama2-70B.

73Methodrank LLMs branch low-rank branch Avg.ARC-c ARC-e BoolQ HellaS.OBQA PIQA SCIQ.WinoG.Mem.(G)

Table 14 :

740-shot commonsense QA accuracy (%) across different bits and rank on llama3-3B.

Table 15 :

750-shot commonsense QA accuracy (%) across different bits and rank on llama3-8B.rankLLMs branch low-rank branch Avg.ARC-c ARC-e BoolQ HellaS.OBQA PIQA SCIQ.WinoG.Mem.(G)

Table 16 :

760-shot accuracy comparison with FP8 in different quantization bits in 64 rank setting.LLMs branch low-rank branch Avg.ARC-c ARC-e BoolQ HellaS.OBQA PIQA SCIQ.WinoG.Mem.(G)

참고문헌

참고문헌 정보가 없습니다.