UniSVQ: 2-bit Unified Scalar-Vector Quantization
Authors: Haoyu Wang, Haiyan Zhao, Xingyu Yu, Zhangyang Yao, Xu Han
The authors propose the UniSVQ framework, unifying scalar and vector quantization by parameterizing codebooks as affine transformations of integer lattices. This approach maintains compatibility with optimized integer kernels while preserving vector quantization flexibility, introducing a data-driven block-level fine-tuning strategy to minimize reconstruction error.
Paper Summary
Problem
Addresses the performance-efficiency trade-off in 2-bit post-training quantization for large language models. Existing scalar quantization suffers significant performance degradation at 2-bit, whereas vector quantization faces challenges with excessive computational and storage overhead.
Method Overview
- Backbone: 多种大语言模型家族
- Key module: 仿射格点参数化、随机 Hadamard 变换、块级微调
- Loss: 量化重建误差
Takeaways
Personal understanding — corrections welcome
Experiments demonstrate that UniSVQ outperforms state-of-the-art scalar quantization methods across multiple benchmarks, matches the performance of advanced vector quantization methods, and achieves higher inference throughput. The affine transformation structure effectively reduces codebook-related memory traffic.
Limitations & Questions
The method primarily targets 2-bit quantization scenarios, and the block-level fine-tuning strategy may incur additional computational costs. The paper does not extensively discuss generalization capabilities in non-2-bit scenarios.
Reading Notes
Personal reading notes. Original paper: arXiv:2606.10520v1.
arxiv_id: 2606.10520v1
Paper Reading Note: UniSVQ: 2-bit Unified Scalar-Vector Quantization
Paper Overview
This paper introduces UniSVQ, a 2-bit unified scalar-vector quantization framework for Large Language Models (LLMs). The paper is co-authored by Haoyu Wang et al. from Tsinghua University, Peking University, and Beihang University, published at ICML 2026.
The authors point out that 2-bit Post-Training Quantization (PTQ) is key to low-cost deployment and inference acceleration. However, existing Scalar Quantization (SQ) suffers significant performance degradation at 2-bit, while Vector Quantization (VQ) faces excessive computational and storage overhead. UniSVQ aims to bridge SQ and VQ by parameterizing codebooks as affine transformations of integer lattice points, maintaining compatibility with optimized integer kernels while retaining VQ’s flexibility.
Research Background and Challenges
The introduction reviews existing LLM compression methods, focusing on the dilemmas faced by 2-bit quantization:
-
Limitations of Scalar Quantization (SQ):
- SQ converts each floating-point weight to a discrete value; the quantization-dequantization process is simple and can leverage optimized tensor cores for acceleration.
- However, traditional 2-bit SQ methods typically face severe performance degradation. Due to min-max projection and independent processing of each dimension, SQ is susceptible to outliers.
- The paper notes that State-of-the-Art (SOTA) 2-bit SQ models may suffer performance drops exceeding 30% on various zero-shot tasks.
-
Overhead of Vector Quantization (VQ):
- VQ maps continuous weight groups to a finite set of floating-point vectors (codebooks).
- Although VQ performs excellently at 2-bit, it requires additional storage space to save the codebook.
- If the codebook size exceeds the GPU’s L1 cache, frequent memory transfers significantly reduce computation speed. Existing VQ research often optimizes by reducing codebook size, but this usually leads to performance degradation or complicated decoding processes.
The authors argue that the main cause of computational and storage overhead in VQ methods is the unstructured codebook. Based on this insight, the paper proposes UniSVQ.
Core Method: UniSVQ
The core idea of UniSVQ is to leverage the spatial structure of the quantization grid. The paper proposes that when using a quantization grid with linear constraints, i.e., all discrete values can be obtained through an affine transformation of a set of integer coordinate vectors, a model structure between SQ and VQ can be achieved.
Affine Lattice Parameterization
UniSVQ parameterizes codebooks as affine transformations of integer lattice points. This structure brings dual advantages:
- Quantization Phase: UniSVQ is equivalent to VQ using a linearly constrained codebook, achieving VQ-like performance.
- Inference Phase: UniSVQ replaces the VQ codebook with an affine transformation, reducing the number of extra parameters and maintaining an SQ-like structure. This allows the model to reuse well-optimized SQ matrix multiplication kernels.
Architecture Description
The paper illustrates the architectural details of UniSVQ in Figure 1 (Note: As no image file is available, this is a textual description based on the paper):
- Parameter Overhead: UniSVQ introduces only 20 extra parameters per weight matrix (a 4×4 affine matrix and 4 bias vectors), significantly fewer than required by VQ.
- Computation Flow: Block-level affine transformations can be pre-applied to activations, enabling optimized scalar quantized Matmul kernels.
- Outlier Suppression: The architecture includes Random Hadamard Transform (Left/Right Hadamard Transform). The operation denotes the inverse random Hadamard transform, used to suppress outliers and ensure a more uniform weight distribution.
- Module Composition: Includes Chunking, Affine Transformation, Scalar Quantization, and Matmul Kernel.
Optimization Strategy
To further reduce quantization reconstruction error, the paper introduces a data-driven block-wise fine-tuning strategy.
- Objective: Directly minimize quantization reconstruction error.
- Method: Adaptively fine-tune the affine transformation.
- Effect: This strategy further improves the performance of quantized models across a wide range of tasks.
Experimental Results and Contributions
The paper conducts extensive experiments on multiple LLM families and zero-shot benchmarks, with the following main conclusions:
- Performance:
- UniSVQ consistently outperforms SOTA SQ baseline methods.
- It is comparable to advanced VQ methods in performance, and even superior in some cases.
- Inference Efficiency:
- By reducing memory traffic related to codebooks, UniSVQ improves inference efficiency.
- It provides higher throughput in practical applications.
The paper summarizes three main contributions:
- Introduced the UniSVQ framework, bridging scalar and vector quantization through affine lattice parameterization, achieving VQ-like flexibility with only a few auxiliary parameters.
- Demonstrated that UniSVQ outperforms SOTA SQ baselines on multiple models and zero-shot benchmarks, and is competitive with strong VQ methods.
- Showed that UniSVQ improves inference efficiency by reducing codebook-related memory traffic, achieving higher throughput in practice.
Summary
UniSVQ proposes an innovative 2-bit quantization scheme, cleverly combining the efficiency of scalar quantization with the high performance of vector quantization. By replacing traditional unstructured codebooks with affine transformations, this method effectively solves the storage and computational overhead issues of VQ, while overcoming the accuracy loss of SQ at low bits. The paper’s experimental results verify that this method can significantly improve inference throughput while maintaining model performance, providing a new solution for low-bit deployment of LLMs.
This note was included in the arXiv daily digest 20260616. More roundups at blog archive .