Irrational Complex Rotations Empower Low-bit Optimizers
Zhen Tian, Wayne Xin Zhao, Ji-Rong Wen
TL;DR
This work tackles the memory burden of optimizer states in training large models by introducing π-Quant, a memory-efficient optimizer that leverages irrational complex rotations to encode parameter pairs as a single rotation angle. The authors prove a data-compression theorem allowing two real values to be represented by one angle, then develop a linear-time geometric method to recover the angle and a quantization pipeline that reduces angle precision to 2λ digits, yielding about $3.32\times$bit-width per parameter. Empirically, π-Quant achieves full accuracy with as little as $3.32$-bit optimizer states and substantial memory reductions (e.g., ~41.9% on TinyLlama/GPU memory) across language modeling and diverse downstream tasks, often outperforming existing quantizers. The approach emphasizes non-uniform error distribution and compatibility with existing optimizers, offering a practical path to memory-efficient training for large models. Overall, π-Quant provides a theoretically grounded, scalable method for low-bit optimizer state representation with meaningful impact on training efficiency.
Abstract
In this paper, we propose a novel optimizer state compression algorithm, namely $π$-Quant, which leverages the properties of irrational numbers (e.g., $π$) for memory-efficient training. The core idea is based on our mathematical findings, which show that a pair of parameters can be represented by a single rotation angle using the complex rotation scheme. Building on this insight, we map the parameters into a complex space and perform quantization using the corresponding rotation angles. To efficiently integrate it into optimization process, we develop an efficient system of geometric equations that computes the precise rotation angles with linear complexity. We evaluate $π$-Quant on a wide range of tasks. Our experiments show that it can reduce the bit-width of parameters to 3.32-bit, achieving a 75% reduction in parameter scale and a 40% decrease in GPU memory usage, all while maintaining full accuracy.
