TL;DR
The paper introduces VQRound, a parameter-efficient adaptive rounding framework that scales post-training quantization (PTQ) to large language models by compressing the massive rounding matrix into a compact vector-quantized codebook. By reducing trainable parameters by up to 99.9% compared to traditional adaptive rounding, VQRound avoids memory explosion, controls worst-case element-wise errors, and seamlessly integrates with existing quantization pipelines to achieve state-of-the-art low-bit performance.
What Problem Does This Paper Address?
Quantizing Large Language Models (LLMs) to low bit-widths (like 3-bit or 4-bit) is essential for reducing memory and compute costs during deployment. However, standard Round-to-Nearest (RTN) quantization introduces significant global errors because it ignores how rounding errors accumulate and interact across different weights.
"Adaptive rounding" (e.g., AdaRound) solves this by treating rounding directions as learnable parameters optimized to minimize reconstruction loss. Unfortunately, traditional adaptive rounding requires an auxiliary rounding matrix of the exact same size as the weight matrix. For billion-parameter LLMs, this causes a massive optimization space and severe memory overhead, often leading to Out-Of-Memory (OOM) errors during calibration.
While recent methods try to use low-rank matrix factorization (like LoRA-style rounding) to reduce parameters, these approaches minimize average error (Frobenius norm). This makes them ill-suited for LLMs, which exhibit heavy-tailed weight distributions with extreme outliers. Low-rank methods discard higher-order information, leading to localized residual spikes and poor quantization fidelity.
Methods
The authors propose VQRound, which tackles these efficiency and outlier challenges through three core components:
- Vectorized Reparameterization: Instead of allocating an independent rounding variable to every single weight, VQRound divides the latent rounding matrix into small vectors and maps them to a compact, shared codebook ($C \in \mathbb{R}^{k \times d}$). During forward passes, rounding decisions are determined via a simple table lookup. Only the small codebook vectors are trained, drastically reducing the parameter footprint. Crucially, vector quantization bounds local reconstruction errors, minimizing the element-wise worst-case error ($L_\infty$ norm) to better handle LLM outliers.
- Hessian-Aware Residual Initialization: The authors discover that how the rounding matrix is initialized dictates optimization stability. They introduce a sequential, column-by-column quantization scheme. At each step, the local quantization error is normalized by the Hessian curvature and propagated to remaining unquantized columns (leveraging a GPTQ-style error compensation). The final accumulated residual is used to initialize the rounding parameters, orienting them toward a correct descent direction from the start.
- Flexible Optimization Pipeline: VQRound supports traditional block-wise reconstruction as well as a lightweight End-to-End (E2E) finetuning pipeline. The E2E pipeline jointly optimizes codebooks across all layers using a knowledge distillation loss against a frozen teacher model, requiring only 128 calibration samples.
Datasets
The framework was evaluated on standard language modeling and zero-shot downstream tasks using:
- WikiText-2 and C4 (for perplexity evaluation).
- Commonsense Reasoning Benchmarks: WinoGrande, PiQA, HellaSwag, ARC-Easy, and ARC-Challenge (for zero-shot accuracy).
Key Insights and Ideas
- The $L_\infty$ Norm Superiority: For LLMs with heavy-tailed distributions, minimizing the worst-case per-weight error ($L_\infty$ norm) is far more critical than minimizing average energy metrics (Frobenius norm). Vector quantization naturally suppresses the "tails" of error distributions, preventing clipping-induced saturation in the rounding function.
- Initialization is Decisive: Curvature-aware (Hessian) initialization provides a massive head start. Incorporating Hessian statistics during initialization consistently yields lower perplexity under both soft and hard rounding compared to non-Hessian baselines.
- Cross-Layer Error Compensation: By enabling an end-to-end finetuning pipeline with a tiny calibration set (128 samples), rounding errors can actually be compensated across layers rather than just locally within a single block.
Key Results
- Extreme Parameter Efficiency: On LLaMA-13B, VQRound requires only 0.07% of the trainable parameters used by AdaRound, scaling gracefully without running into hardware memory limits.
- Faster Convergence & Better Accuracy: As shown in the OPT-350M finetuning comparison, VQRound converges faster and achieves lower perplexity than full-parameter AdaRound.
- Complementary Performance: VQRound acts as a powerful add-on to existing state-of-the-art PTQ methods. When combined with GPTQ or OmniQuant, it consistently drives down WikiText-2 perplexity, particularly in aggressive 3-bit configurations.
Limitations and Future Work
While VQRound demonstrates excellent scalability and accuracy, the paper notes a few areas for further exploration:
- Finetuning Overhead: Although lightweight (5000 steps on 128 samples), it still introduces an optimization phase compared to pure analytical PTQ methods like vanilla GPTQ.
- Hyperparameter Sensitivity: The optimization relies on an annealing schedule for the regularization parameter ($\beta$) to push relaxed variables into hard binary choices, which requires careful tuning.
- Ultra-low Bit-widths: Future work could explore extending vectorized adaptive rounding to extreme 1-bit or 2-bit mixed-precision quantization schemes.
Summary updated