NeUQI: Near-Optimal Uniform Quantization Parameter Initialization
Li Lin, Xinyu Hu, Xiaojun Wan
TL;DR
Post-training uniform quantization enables memory- and latency-efficient deployment of large language models, but initialization—particularly the integer constraint on the zero-point—limits performance. NeUQI reframes initialization as a two-stage optimization over $z$ and $s$ using a diagonal Hessian approximation, removing the integer constraint and enabling near-optimal quantization parameters that integrate with existing PTQ pipelines. Empirically, NeUQI delivers consistent improvements across LLaMA 2/3 and Qwen 2.5 at 2-bit and 3-bit settings, and, when combined with lightweight distillation, can outperform PV-tuning with far lower resource demands. This work facilitates practical deployment of ultra-efficient LLMs on consumer hardware by improving quantization quality without heavy retraining.
Abstract
Large language models (LLMs) achieve impressive performance across domains but face significant challenges when deployed on consumer-grade GPUs or personal devices such as laptops, due to high memory consumption and inference costs. Post-training quantization (PTQ) of LLMs offers a promising solution that reduces their memory footprint and decoding latency. In practice, PTQ with uniform quantization representation is favored for its efficiency and ease of deployment since uniform quantization is widely supported by mainstream hardware and software libraries. Recent studies on $\geq 2$-bit uniform quantization have led to noticeable improvements in post-quantization model performance; however, they primarily focus on quantization methodologies, while the initialization of quantization parameters is underexplored and still relies on the suboptimal Min-Max strategies. In this work, we propose NeUQI, a method devoted to efficiently determining near-optimal initial parameters for uniform quantization. NeUQI is orthogonal to prior quantization methodologies and can seamlessly integrate with them. The experiments with the LLaMA and Qwen families on various tasks demonstrate that our NeUQI consistently outperforms existing methods. Furthermore, when combined with a lightweight distillation strategy, NeUQI can achieve superior performance to PV-tuning, a much more resource-intensive approach.
