MixNLQ: An Effective Post-Training Nonlinear Low-Bit Quantization Method for Large Language Models
Abstract
Post-training quantization (PTQ) compresses large language models (LLMs) without costly retraining. However, uniform quantization can inadequately represent peaked, heavy-tailed parameter distributions, while codebook-based non-uniform methods introduce additional storage and lookup overhead. We propose MixNLQ, a compact non-uniform PTQ method that combines linear and power-of-two components to adapt quantization levels to weight and activation distributions. Its efficient fitting procedure supports both calibration-free and activation-aware weight quantization, as well as dynamic activation quantization. Arithmetic-based reconstruction eliminates explicit codebook lookups, and the compact formulation integrates readily into existing PTQ frameworks. Experiments with 3-bit and 4-bit weight quantization on LLaMA, Mistral, and DeepSeek demonstrate competitive perplexity and zero-shot accuracy against strong baselines. Activation quantization and integration with rotation-based methods yield further accuracy gains. CUDA and Triton implementations validate its practicality, with weight storage close to uniform quantization and faster inference than the evaluated LUT baseline. MixNLQ provides a practical balance among accuracy, algorithmic simplicity, and deployment efficiency.