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

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

TL;DR

GSQ-Tuning introduces a fully integer-based, floating-point-free framework for fine-tuning Large Language Models (LLMs) directly on resource-constrained edge devices. By utilizing a novel Group-Shared Exponents Integer (GSE-INT) data format, it cuts fine-tuning memory usage by up to 1.85× compared to FP16 and slashes hardware power consumption by 5× compared to FP8, all while maintaining comparable accuracy.

What Problem Does This Paper Address?

Fine-tuning LLMs typically demands massive cloud-based GPUs because standard training pipelines rely heavily on high-precision floating-point (FP) arithmetic (like FP16 or BF16). This cloud dependency creates two major roadblocks:

  1. Privacy Risks: Uploading sensitive or personalized user data to remote servers is a non-starter for many applications.
  2. Hardware Incompatibility: Edge devices—such as mobile processors or embedded AI accelerators—have strict memory limits and are often architecturally optimized for integer math, leaving up to 84% of their compute units idle during floating-point operations.

While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA and QLoRA reduce the number of trainable parameters, their forward and backward passes still rely on floating-point operations. GSQ-Tuning bridges this gap by eliminating floating-point math entirely from both the inference and training loops.

Methods

The authors introduce two core components to achieve fully quantized training:

  1. Group-Shared Exponents Integer (GSE-INT) Format: Standard floating-point numbers dedicate bits to a sign, an exponent, and a mantissa for every single number. GSE-INT exploits the fact that adjacent numbers in neural network tensors tend to have similar magnitudes (spatial locality). It groups $N$ numbers together (the authors use a group size of $N=32$), identifies the largest exponent in that group, and forces all $N$ numbers to share it. This leaves only the sign and an integer mantissa for each individual element, transforming complex floating-point matrix multiplications into hardware-friendly integer multiply-accumulate (MAC) operations.
Comparison between FP8 and GSE-Int8
  1. Fully Quantized Fine-Tuning Framework: GSQ-Tuning extends this integer pipeline to the entire training graph. Using a Quantize-Compute-Dequantize (QCD) paradigm, weights, activations, and gradients are all quantized to low-bit GSE-INT formats (e.g., 5-bit to 8-bit) during both forward and backward propagation passes.
Figure 3: Dataflow of GSQ-Tuning. The weight is NF4 in full-rank branch and is FP32 in low-rank branch.

Datasets

The framework was rigorously evaluated across the entire LLaMA family (LLaMA-2 7B/13B/70B and LLaMA-3 3B/8B) as well as a vision-language model (LLaVA-v1.5-7B).

  • Fine-tuning Datasets: Alpaca (52K instruction data) and Commonsense170K (CS170K).
  • Evaluation Benchmarks: 9 zero-shot commonsense question-answering (CSQA) tasks including BoolQ, HellaSwag, LAMBADA, OpenBookQA, PIQA, SIQA, WinoGrande, ARC-Easy, and ARC-Challenge. LLaVA was evaluated on POPE, TextVQA, and MMBench.

Key Insights and Ideas

  • Redundancy in FP Exponents: By plotting the standard deviation of weights across layers, the authors showed that local variation in weight magnitude is incredibly small. Dedicating exponent bits to every single value is a waste of memory and silicon area.
  • The Bit-Rank Pareto Frontier: The authors discovered a clear trade-off between quantization bit-width and LoRA adapter rank. If you aggressively quantize the model down to 5 bits, you can actually recover the lost accuracy by scaling up the adapter rank (e.g., $r=512$), resulting in a highly optimized memory-to-accuracy profile.
Figure 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
  • Silicon-Level Efficiency: Integer arithmetic eliminates the complex bit-shifting and alignment logic required by floating-point units. As a result, an integer-based process engine is fundamentally smaller and more power-efficient than an FP8 equivalent.

Key Results

  • Accuracy Parity: With 8-bit quantization (W8A8G8), GSQ-Tuning matches or exceeds QLoRA’s performance on 83% of tasks while using 50% fewer bits for activations and gradients. Even at an aggressive 5-bit configuration, it retains 98.6% of standard accuracy.
  • Memory Reduction: For a LLaMA2-7B model, GSQ-Tuning cuts fine-tuning memory from 10.73 GB (QLoRA) down to 5.97 GB (GSE-INT6).
  • Hardware Superiority over FP8: Hardware synthesis on a 7nm process node revealed that a GSE-INT6 compute engine requires 11× less chip area and consumes 5× less power than an FP8 (E4M3) engine delivering the same performance.

Limitations and Future Work

  • Non-linear Operators: To preserve numerical stability, non-linear operations like LayerNorm and Softmax are still kept in 16-bit floating-point. While these layers are computationally lightweight and don't store learnable parameters, a truly "fully integer" pipeline remains an open goal.
  • Extreme Low-Bit Bottleneck: When pushing the quantization below 5 bits ($\le$ 4 bits), gradient directions become heavily distorted, causing severe performance degradation.

The authors propose that future work will focus on mitigating this low-bit distortion using 4-bit stochastic rounding with gradient-aware scaling, as well as exploring mixed-precision adapters.

Summary updated

BibTeX
@inproceedings{zhou2025gsq,
  author = {Sifan Zhou and Shuo Wang and Zhihang Yuan and Mingjia Shi and Yuzhang Shang and Dawei Yang},
  title = {{GSQ-Tuning: Group-Shared Exponents Integer in Fully Quantized Training for LLMs On-Device Fine-tuning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure