Grid shape as an independent lever in 2–4-bit weight-only LLM quantization: fitting non-uniform grids from the weight distribution and the Hessian
Preprint of the SHAPEQ study. We fit a per-tensor 16-level non-uniform grid with a Hessian-diagonal-weighted objective and store 4-bit codes plus a group scale. The method is deterministic, needs no training or gradients, and changes only the quantization alphabet, so it composes with GPTQ, rotation-based preconditioning, sparse corrections, and mixed-precision allocation. Results cover SmolLM-135M and Qwen2.5-0.5B on WikiText-2; the LUT kernel is a reference implementation and broader validation remains open. HTML paper: https://stiggigy-jpg.github.io/shapeq-paper/Code and data: https://github.com/stiggigy-jpg/shapeq-paperRuntime fork: https://github.com/stiggigy-jpg/shapeq-q4lutModels and packs: https://huggingface.co/RomanPokora/shapeq-q4lut-modelsORCID: https://orcid.org/0009-0007-4468-5266License: CC BY 4.0.
Authors
- Roman S. Pokora (ORCID: https://orcid.org/0009-0007-4468-5266)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24517962
- Primary Topic
- Advanced Neural Network Applications
- Type
- preprint