# Poster 30168

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30168

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone, today I'm excited to present our work, LinkQuant, Accurate and Scalable Large Language Model Quantization with Loss Error Aware Grid. Large language models, or LLMs, have revolutionized AI, but their sizes are growing rapidly. Due to the neural scaling law, larger models offer better performance. However, deploying them efficiently on limited hardware remains challenging.
especially since hardware advancements are not keeping up with model size increase. Quantization is an effective model compression technique that works by compressing model parameters from floating point values to low-bit-width integers. These integers are dequantized dynamically on the fly during inference, allowing models to run efficiently on constrained hardware.
There are two primary types of quantization, affine and non-uniform quantization. As shown on the left, affine or uniform quantization evenly divides the range of weights. It is more hardware-efficient but may be less precise. And we have non-uniform quantization on the right, which adapts the quantization grid to the weight distribution, offering better precision.
Existing state-of-the-art quantization methods have two limitations: they require hardware-specific optimization due to specialized operations and they have high computational overhead requiring many GPUs or take days to quantize a model.
Our method builds upon the loss air-based quantization framework. The objective of loss air-based quantization methods is to minimize the loss air, which is proportional to the inverse diagonal Hessian. We discover that the inverse diagonal Hessian contains low-frequency, high-magnitude outliers. The figure shows the empirical distribution of inverse diagonal Hessian of the LAMA 3 8B model.
and illustrates the existence of these outliers. These outliers may disproportionately impact model quality and they are poorly handled by the standard quantization grids. Here is our insight. A loss error which we try to minimize is proportional to two quantities, the inverse diagonal Hessian and the quantization error of each parameter.
The quantization grid controls the quantization error of each parameter. The key idea of our method is then to learn an adaptive quantization grid that reduces the quantization error of Hessian outliers, which leads to improved model quality without computational overhead in inference.
Traditional quantization uses min-max quantization grid, which uniformly places the grid points between the minimum and maximum of weights as shown by the red markers in the figure. Our method LinkQuant learns a loss -aware quantization grid that specifically targets and preserves the precision of sensitive parameters as shown by the green markers.
Mean quant is versatile as it can be applied to different types of quantization including non-uniform and affine. For non-uniform quantization, we learn the grid point placement through Hessian-aware clustering. And for affine quantization, we use a similar objective to derive the optimal scaling factor and zero point through Hessian-weighted enumerative search.
We extensively evaluated LINQON on multiple large language models. It compares favorably against state -of-the-art methods in accuracy across 4-bit, 3-bit, and 2-bit methods models. LINQON quantizes very large models efficiently, scaling to 100B and 400B models using minimal hardware and offering strong performance.
BINCON consistently achieves lower loss errors compared to baselines thanks to its loss error-aware designs, which directly translates to better model quality. BINCON also has lower quantization overhead than previous methods.
In conclusion, we propose link quant which learns adaptive loss-aware quantization grids to achieve better model quality. We show that link quant is accurate, scalable, and versatile. Our paper and code are available here. Thank you.
