# Quantizing With Randomized Hadamard Transforms: Efficient Heuristic Now Proven

*Ran Ben-Basat, William Kuszmaul, Michael Mitzenmacher, Amit Portnoy, Shay Vargaftik*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149294) · [Open on the map](../papers.html#p149294)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Low-bit LLM Quantization](../pgroup/10.md) · Type: new method · Keywords: quantization, randomized Hadamard transforms, Gaussian approximation, vector quantization, compression schemes

## Summary
The paper proves that composing two or three randomized Hadamard transforms yields Gaussian-like marginal distributions and decaying covariance, enabling these fast transforms to match the performance of uniform random rotations in modern quantization schemes.

## Explained to a 5-year-old
We want to make big computer models smaller so they run faster. Usually we spin a random wheel to make the numbers look nice, but that takes a lot of time. The paper shows that using a simple fast trick twice or three times works almost as well. It also adds a quick check to see if we need more tricks. This helps computers be faster without losing accuracy.

## Explained to a 5-year-old, longer
When we train big AI models, they need a lot of memory and time. To make them smaller, we change the numbers inside them using a special process called quantization. The best way to do this is to rotate the numbers randomly, which makes them look like normal noise. But random rotations are slow because they need many calculations. So researchers use a faster trick that still keeps the numbers spread out nicely. However, this fast trick sometimes does not work well for unusual inputs. The paper shows that using the fast trick twice gives results that are almost as good as the random rotations. Using it three times makes the numbers even more spread out, which helps when we need to group numbers together. They also add a quick check that looks at how the numbers are spread, so the system can decide whether two or three tricks are enough. This makes the quantization faster while keeping the model accurate. The findings apply to many tasks like compressing gradients, speeding up inference, and searching in large databases. Overall, the work gives a solid proof that these fast tricks can replace the slow random rotations in many practical situations.

## For a technical reader
The paper provides rigorous bounds showing that two compositions of the transform achieve Gaussian marginal distributions, matching the performance of uniform random rotations for scalar quantization. For vector quantization, three compositions ensure decaying covariance, preserving codebook error. A linear-time moment check is introduced to adaptively select the number of compositions, offering a practical runtime improvement.

## Problem
Quantization methods often rely on random rotations to achieve good statistical properties, but these rotations are computationally expensive. Faster orthogonal transforms are used in practice but may not guarantee similar performance for worst-case inputs. The problem is to characterize when such transforms can replace random rotations without degrading quantization quality.

## Method
The authors analyze the statistical properties of composing multiple orthogonal transforms, showing that two compositions yield Gaussian marginal distributions and three compositions induce decaying coordinate covariance. They then apply these bounds to existing compression schemes and propose a runtime moment check to adaptively select the number of transforms.

## Results
Two compositions of the transform match the asymptotic performance of uniform random rotations for scalar quantization, while three compositions guarantee comparable error for vector quantization, with an O(d) runtime check to adjust the number of transforms.

## Contributions
Provides theoretical guarantees that compositions of orthogonal transforms approximate Gaussian statistics and decaying covariance, enabling their use in quantization; extends analysis to vector quantization; and introduces a practical moment-based adaptation scheme.

## Limitations and assumptions
The guarantees rely on bounded codebooks and assume inputs are not adversarial; the O(d) check is heuristic and may not fully capture all worst-case scenarios.

## Practical relevance
Enables faster, provably effective quantization for gradient compression, inference acceleration, and vector databases without sacrificing performance.

## Research questions this paper is counted under

- [How can we design quantization methods that are both computationally efficient and provably accurate for high-dimensional vectors?](../q/493.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/149294)
