TORQUE: Optimizing What (not) to Quantize Before and After Rotation

Ran Ben Basat, Michael Mitzenmacher, Shay Vargaftik
9/28/2026
cs.LGcs.AIcs.IT

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Uniform random rotations are an effective preprocessing step for quantization: they make normalized coordinate distributions approximately Gaussian, enabling the use of codebooks optimized offline. We introduce TORQUE, a framework that improves on previous quantization works that use random rotations by jointly optimizing how many and which coordinates to preserve at high precision both before and after rotation, under a fixed overall expected bit budget. Intuitively, before rotation, preserving large input coordinates at high precision can reduce overall error by preventing the rotation from spreading their values across many coordinates. Likewise, after rotation, preserving a small fraction of the largest-magnitude coordinates at high precision allows the remaining values to be quantized more accurately using codebooks optimized offline for the resulting truncated Gaussian distribution. We derive a quantization error upper bound and prove that top-$k$ pre-rotation retention minimizes it for each $k$. This reduces the search over coordinate subsets to an optimization over $k$, enabling a fast optimizer that uses offline codebooks and parallel parameter selection for practical implementation. We demonstrate an improved tradeoff between reconstruction accuracy and storage cost through numerical evaluation under the Gaussian model and experiments on nearest-neighbor retrieval, KV-cache compression, and activation compression.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{basat2026torque,
  title  = {TORQUE: Optimizing What (not) to Quantize Before and After Rotation},
  author = {Ran Ben Basat and Michael Mitzenmacher and Shay Vargaftik},
  year   = {2026},
  eprint = {2609.36032},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.36032v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.36032.svg)](https://codeofpaper.com/paper/2609.36032)

Discussion