# SHq: Learnable Grids for LLM Weight Quantization

DevFeed: [SHq: Learnable Grids for LLM Weight Quantization](<https://devfeed.tech/articles/shq-learnable-grids-for-llm-weight-quantization-114755.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.02966>)

Author: Michael Helcig, Earl Killian, Dan Alistarh

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [NVFP4](<https://devfeed.tech/topics/nvfp4.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [bits](<https://devfeed.tech/tags/bits.md>), [block](<https://devfeed.tech/tags/block.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [drop-in](<https://devfeed.tech/tags/drop-in.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [fp8](<https://devfeed.tech/tags/fp8.md>), [gptq](<https://devfeed.tech/tags/gptq.md>), [grid](<https://devfeed.tech/tags/grid.md>), [kl-divergence](<https://devfeed.tech/tags/kl-divergence.md>), [llm](<https://devfeed.tech/tags/llm.md>), [mixture-of-experts](<https://devfeed.tech/tags/mixture-of-experts.md>), [nvfp4](<https://devfeed.tech/tags/nvfp4.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [nvidia-rubin](<https://devfeed.tech/tags/nvidia-rubin.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [scale](<https://devfeed.tech/tags/scale.md>), [standard](<https://devfeed.tech/tags/standard.md>), [weight](<https://devfeed.tech/tags/weight.md>)

## AI overview

SHq proposes a drop-in replacement grid for block-scaled lookup-table LLM quantization. Its closed-form grid tunes level spacing between uniform and floating-point-like with a companding parameter, and adds an offset for asymmetry; the offset lets the otherwise unused FP8 block-scale sign bit select the grid or its mirror, potentially doubling distinct values per block. In evaluations of five 3B-35B models at 2-6 bits using RTN and GPTQ, SHq had the lowest KL divergence in all tested 3- and 4-bit settings and most settings at other bit widths, outperforming the best fixed grid by up to 34%. At 4.5 bits per weight, it reduced NVFP4 KL divergence by 41-67% and improved downstream accuracy. Grid families with spacing and offset performed comparably; those without an offset had higher error. These are abstract-reported results; implementation details and full evaluation context are not provided.

## Source excerpt

arXiv:2611.02966v1 Announce Type: new Abstract: Block-scaled lookup-table (LUT) formats, which represent weights as indices into a small value set (the grid), have become standard for low-bit LLM quantization, ranging from NF4 and BOF4 to the 3-bit LUT instruction in NVIDIA Rubin. While these formats leave the grid definition flexible, existing implementations rely on fixed grids derived either from numerical data types (INT, FP) or assumed weight distributions (NF, BOF). We demonstrate that no single fixed grid is universally optimal; the best fixed grid varies with bit-width: BOFS at 2 bits, NF at 4 and 5 bits, and INT at 6 bits. We introduce SHq, a closed-form family of grids parameterized by two critical degrees of freedom: a companding strength {\alpha} that interpolates level spacing from uniform to floating-point-like, and an offset c that introduces asymmetry. This offset allows the sign bit of the FP8 block scale, otherwise unused, to select between the grid and its mirror image, up to doubling the number of distinct values available per block. SHq modifies only the lookup table contents and serves as a drop-in replacement for the grid in any such format. Across five models ranging from 3B to 35B parameters, including a mixture-of-experts architecture, evaluated at 2-6 bits using RTN and GPTQ, SHq achieves the lowest KL divergence in every setting at 3 and 4 bits and in most settings at 2, 5 and 6 bits. It outperforms the best fixed grid by up to 34% and remains superior under mixed-precision configurations. At 4.5 bits per weight, the SHq format reduces the KL divergence of NVFP4 by 41-67% while improving downstream accuracy. Grid families incorporating both spacing and offset parameters perform comparably, whereas those lacking an offset exhibit clearly higher error, confirming that these two degrees of freedom drive the observed gains. We therefore propose SHq as the standard grid for block-scaled lookup-table formats.