# GSQ: Highly-Accurate Low-Precision Scalar Quantization for LLMs via Gumbel-Softmax Sampling

*Alireza Dadgarnia, Rush Tabesh, Mahdi Nikdan, Michael Helcig, Eldar Kurtić, Maximilian Kleinegger, Dan Alistarh*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148490) · [OpenReview](https://openreview.net/forum?id=xPoqKULr74) · [alphaXiv](https://www.alphaxiv.org/abs/2604.18556) · [Open on the map](../papers.html#p148490)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Low-bit LLM Quantization](../pgroup/10.md) · Type: new method · Keywords: scalar quantization, LLM inference, low-bit quantization, Gumbel-Softmax, post-training optimization, model compression

## Summary
GSQ introduces a post-training scalar quantization method that uses Gumbel-Softmax sampling to jointly learn per-coordinate grid assignments and per-group scales, achieving high accuracy at low bit-widths and matching vector-quantized performance while staying compatible with existing scalar inference kernels.

## Explained to a 5-year-old
A big computer brain called a language model needs a lot of memory to work. To run it on small devices like phones, scientists shrink the memory by using fewer numbers. The old ways of shrinking made the brain not think as well. This paper finds a new trick that keeps the brain almost as smart while using very little memory. The trick also works on the biggest computer brains, so many people can use it.

## Explained to a 5-year-old, longer
A language model is a computer program that can write and understand text. It works by storing a huge amount of information inside its memory. Sometimes we want to use it on a small device like a phone or a tablet. To fit it there, we need to make its memory smaller. If we make it too small, the model becomes less accurate and makes more mistakes. The paper discovers a clever way to shrink the memory without losing much of its ability to understand and generate text. It uses a special sampling technique that helps the model learn how to store information in a compact form. This method keeps the model’s performance close to its original size while using far fewer numbers. It also works on the largest models, so even big research labs can benefit. The new approach can be applied to existing model files, making it easy for developers to improve their deployments. Overall, it makes powerful language models more practical for everyday devices.

## For a technical reader
GSQ leverages a Gumbel-Softmax relaxation to learn discrete grid assignments and group scales in a post-training quantization pipeline. By matching the grid cardinality to the target bit-width, it makes optimization tractable and maintains compatibility with scalar inference kernels. The method is applied to standard LLMs and large MoE models, delivering accuracy comparable to vector-quantized techniques while preserving existing deployment formats.

## Problem
Existing scalar quantization techniques for LLMs plateau in accuracy at 3-4 bits per parameter, while more accurate vector- or trellis-quantized methods are difficult to implement and scale. The paper asks whether this performance gap is fundamental or can be bridged by a carefully optimized scalar quantizer.

## Method
The approach learns per-coordinate grid assignments and per-group scales using a Gumbel-Softmax relaxation of a discrete scalar grid, matching the grid size to the target bit-width. Optimization is performed post-training and can be applied to existing GGUF checkpoints, producing a symmetric scalar grid with group-wise quantization that remains compatible with scalar inference kernels.

## Results
The approach achieves near-vector-quantization accuracy at 2 and 3 bits per parameter on Llama-3.1-8B/70B-Instruct models and scales to trillion-scale Mixture-of-Experts models.

## Contributions
A post-training scalar quantization scheme that jointly optimizes grid assignments and group scales via a Gumbel-Softmax relaxation, enabling high-accuracy low-bit quantization that matches vector-quantized methods while staying compatible with existing scalar inference kernels, and a method to apply the same optimization to GGUF checkpoints and large MoE models.

## Practical relevance
GSQ enables accurate low-precision LLM deployment on resource-constrained devices, making high-performance models more accessible for local inference.

## Research questions this paper is counted under

- [How can we preserve model accuracy when quantizing large language models to ultra-low bitwidths?](../q/25.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148490)
