TORQUE: Optimizing What (not) to Quantize Before and After Rotation
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- pre-rotation retention minimizes it for each . This reduces the search over coordinate subsets to an optimization over , 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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.IT, cs.NI, math.IT
Related papers
ThinQuant: Scalable Rotation Learning for Weight and Activation Quantization of LLMs
Shared title terminologycs.LGMehdi Makni, Ryan Lucas, Rahul Mazumder
Local Affine Quantization for KV Caches: From Shared Ranges to Prediction Error
Shared title terminologycs.LGShrey Shah, Rohith Kukkala
TorchTangents: An Accessible Bridge for Architecture-Preconditioned Optimizers
Shared title terminologycs.LGJoshua DeOliveira, Elke Rundensteiner
Optimistic Predicate Logic: Rethinking Multi-Objective Bayesian Optimization
Shared title terminologycs.LGQuoc Phong Nguyen, Sunil Gupta, Bryan Kian Hsiang Low et al.
What Predicts Forgetting in LoRA Fine-Tuning Across Optimizers
Shared title terminologycs.LGZhiyong Jin
Optimal Model-Free Learning in Average-Reward MDPs via Bellman Sharpness
Shared title terminologycs.LGMatthew Zurek, Yudong Chen