Abstract
Serving Large Language Models (LLMs) is costly. However, post-training weight quantization can address this problem by both compressing their sizes for limited memory and saving bandwidth for acceleration. As not all weight dimensions are equally important, those methods typically rely on a sensitivity metric, which indicates the element-wise influence of weights on loss function and is used to preprocess original weights for better quantization. In this work, we conduct an empirical study on the accuracy of the sensitivity metric, and find that existing gradient and Hessian based metrics are very inaccurate: they underestimate quantization's impact on the loss function by orders of magnitude, mainly due to the small convergence radius of local 2nd order approximation, i.e., gradient and Hessian term in Taylor's formula. To tackle this problem, we propose Post-quantization Integral (PQI), an accurate metric to estimate posterior sensitivity in a fine-grained manner. To leverage this accurate metric, we further propose ReQuant, a simple yet powerful framework that mainly consists of two Dense-and-Sparse detach components: self-adaptive outlier selection and step-wise significant weights detach. Results show that ReQuant boosts state-of-the-art post-training quantization methods, with a pronounced improvement of 2.66 perplexity gain on Llama 3.2 1B with QTIP.
The Taylor Trap: Why Local Metrics Fail
Post-Training Quantization (PTQ) is essential for deploying LLMs on resource-constrained hardware, often reducing 16-bit weights to ultra-low bitwidths (e.g., 2-4 bits). To minimize performance degradation, researchers identify "sensitive" weights—those whose quantization most negatively impacts the model's loss. Traditionally, this sensitivity is estimated using local metrics derived from Taylor expansions, such as gradients (1st order) and Hessians (2nd order).
However, these approximations assume that the change in weight (Δw) is infinitesimal. In low-bit quantization, Δw is large enough to fall outside the "convergence radius" of these local approximations. Empirical data shows that these metrics can underestimate the actual change in the loss function (ΔF) by several orders of magnitude, sometimes even incorrectly predicting a decrease in loss.
Proposed Solution: PQI and ReQuant
To overcome the limitations of local approximations, we introduce Post-quantization Integral (PQI). Instead of evaluating sensitivity at a single point, PQI integrates the gradient along the entire path from the original high-precision weight to its quantized value. By breaking this path into small intervals, PQI accurately captures the total impact on the loss, effectively bypassing the convergence radius problem.
Building on this metric, we propose the ReQuant framework. ReQuant utilizes a "Dense-and-Sparse" architecture to protect the most sensitive weights identified by PQI:
- Self-adaptive Outlier Selection: Unlike static methods that use fixed ratios, ReQuant dynamically allocates high-precision "slots" to layers based on their PQI-measured sensitivity.
- Step-wise Significant Weights Detach: A greedy algorithm identifies and preserves critical weights in high precision, preventing them from being quantized and further minimizing error.
Experimental Results
The ReQuant framework was evaluated against state-of-the-art baselines like AWQ, SqueezeLLM, and QTIP across benchmarks including WikiText-2 and MATH.
- Perplexity Improvement: On Llama 3.2 1B at 2-bit precision, ReQuant achieved a 2.66 point gain in perplexity over the QTIP baseline.
- Reasoning Recovery: In 4-bit quantization tests on the MATH benchmark, ReQuant restored model performance to a score of 24.74, whereas standard SqueezeLLM failed to produce coherent text.
- Efficiency: While the Dense-and-Sparse format introduces a slight overhead (1.2x–1.4x slower than pure quantized kernels), it remains significantly faster and more memory-efficient than full-precision models.
Conclusion
The discovery of the "Taylor Trap" highlights a fundamental flaw in current LLM quantization strategies. By replacing local approximations with the Post-quantization Integral (PQI), the ReQuant framework provides a more accurate way to identify and preserve sensitive weights. While the current implementation faces some sparse computation overhead, it sets a new state-of-the-art for ultra-low-bit LLM compression.
Summary updated