FBQuant: FeedBack Quantization for Large Language Models
Yijiang Liu, Hengyu Fang, Liulu He, Rongyu Zhang, Yichuan Bai, Yuan Du, Li Du
TL;DR
FBQuant tackles the challenge of deploying large language models on edge devices by addressing memory-bandwidth bottlenecks through weight-only quantization, while mitigating the resulting accuracy loss with a novel feedback-based sub-branch mechanism. The method upper-bounds weight reconstruction via $W_F = \mathcal{Q}(W-\Sigma) + \Sigma$ and enables differentiable optimization of the sub-branch adapters, together with a CUDA kernel fusion that reduces latency by about 60%. Empirical results show FBQuant achieving state-of-the-art perplexity and zero-shot accuracy across multiple models (e.g., 3-bit Llama2-7B gains 1.2% in zero-shot accuracy) and significantly improved wall-clock throughput on real devices. These contributions advance practical on-device LLM deployment by delivering both accuracy and efficiency gains with sub-branch quantization. FBQuant thus offers a scalable, calibration-data-efficient path toward robust, low-latency edge inference for modern LLMs.
Abstract
Deploying Large Language Models (LLMs) on edge devices is increasingly important, as it eliminates reliance on network connections, reduces expensive API calls, and enhances user privacy. However, on-device deployment is challenging due to the limited computational resources of edge devices. In particular, the key bottleneck stems from memory bandwidth constraints related to weight loading. Weight-only quantization effectively reduces memory access, yet often induces significant accuracy degradation. Recent efforts to incorporate sub-branches have shown promise for mitigating quantization errors, but these methods either lack robust optimization strategies or rely on suboptimal objectives. To address these gaps, we propose FeedBack Quantization (FBQuant), a novel approach inspired by negative feedback mechanisms in automatic control. FBQuant inherently ensures that the reconstructed weights remain bounded by the quantization process, thereby reducing the risk of overfitting. To further offset the additional latency introduced by sub-branches, we develop an efficient CUDA kernel that decreases 60% of extra inference time. Comprehensive experiments demonstrate the efficiency and effectiveness of FBQuant across various LLMs. Notably, for 3-bit Llama2-7B, FBQuant improves zero-shot accuracy by 1.2%.
