Machine Learning
CoreQ tackles quantization mismatch problem in LLMs with adaptive layer-wise correction
A new post-training quantization method uses geometric decomposition to fix the error cascade that occurs when compressing language models layer by layer.
When large language models are compressed into lower-precision formats after training, the process typically works layer by layer—a technique known as post-training quantization (PTQ). But this sequential approach creates an accumulating problem: errors introduced when rounding one layer's weights end up distorting the inputs that the next layer receives, pushing activations further from what the full-precision model would produce.
The core challenge#
Existing approaches have recognized this "mismatch" issue and tried to account for it during calibration. However, they face a dilemma: either applying the full empirical correction tends to overfit on the limited calibration data available, or using a uniform correction coefficient across all layers ignores the fact that different layers experience different amounts of mismatch variation.
CoreQ's solution#
Researchers propose CoreQ, a learning-free quantization framework that sidesteps parameter tuning altogether. The method decomposes mismatch geometrically to derive a closed-form correction coefficient that adapts to each individual layer. This coefficient determines how much of the observed error from prior layers should influence the current layer's calibration target, achieving a balance that reduces overfitting without requiring manual coefficient adjustment.
Once the correction coefficients are computed, CoreQ applies an efficient greedy algorithm called successive rounding to solve the resulting triangular least-squares optimization problem. For applications where slightly higher computation is acceptable, the K-CoreQ variant uses bounded beam search to further refine results.
Empirical results#
Testing across multiple large language model families, model sizes, bit-widths, and quantization configurations shows that both CoreQ and K-CoreQ consistently outperform established PTQ baselines on two key metrics: they lower perplexity and improve accuracy on downstream tasks. The researchers have made their implementation publicly available on GitHub.