FLRQ: Faster LLM Quantization with Flexible Low-Rank Matrix Sketching
Hongyaoxing Gul, Lijuan Hu, Shuzi Niu, Fangfang Liu
TL;DR
FLRQ addresses the inefficiency of fixed-rank post-training quantization for large language models by introducing a flexible, data-driven rank selection method (R1-FLR) and an iterative clipping-based refinement (BLC). By replacing standard SVD with the rank-1 sketch, FLRQ dramatically reduces computation while enabling per-layer rank adaptation, and its clipping-based optimization minimizes quantization error under calibration. Empirically, FLRQ achieves state-of-the-art or near-state-of-the-art quantization quality across 2–4 bit regimes on OPT and LLaMA family models, with substantially lower memory overhead and comparable or smaller latency due to kernel fusion. These contributions enable robust, efficient low-bit quantization of very large models, improving deployability on resource-constrained hardware without retraining or substantial fine-tuning.
Abstract
Traditional post-training quantization (PTQ) is considered an effective approach to reduce model size and accelerate inference of large-scale language models (LLMs). However, existing low-rank PTQ methods require costly fine-tuning to determine a compromise rank for diverse data and layers in large models, failing to exploit their full potential. Additionally, the current SVD-based low-rank approximation compounds the computational overhead. In this work, we thoroughly analyze the varying effectiveness of low-rank approximation across different layers in representative models. Accordingly, we introduce \underline{F}lexible \underline{L}ow-\underline{R}ank \underline{Q}uantization (FLRQ), a novel solution designed to quickly identify the accuracy-optimal ranks and aggregate them to achieve minimal storage combinations. FLRQ comprises two powerful components, Rank1-Sketch-based Flexible Rank Selection (R1-FLR) and Best Low-rank Approximation under Clipping (BLC). R1-FLR applies the R1-Sketch with Gaussian projection for the fast low-rank approximation, enabling outlier-aware rank extraction for each layer. Meanwhile, BLC aims at minimizing the low-rank quantization error under the scaling and clipping strategy through an iterative method. FLRQ demonstrates strong effectiveness and robustness in comprehensive experiments, achieving state-of-the-art performance in both quantization quality and algorithm efficiency.
