When Local Variance Optimality Is Not Enough: RoPE-Aligned Q/K Rotations for Dynamic 4-Bit Quantisation

πŸ“… 2026-08-13
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
Existing rotation-based post-training quantization methods struggle to effectively suppress quantization error in RoPE-encoded attention heads, as their full-head orthogonal transformations disregard the intrinsic two-dimensional frequency-pair structure of RoPE. This work proposes a pairwise channel rotation strategy aligned with RoPE’s structural properties, theoretically demonstrating for the first time that rotation commutes with RoPE only when applied within each frequency pair. Leveraging position-averaged covariance, the authors derive a proxy objective and analytically obtain a shared optimal rotation angle. Experiments show that pairwise rotation alone underperforms full-head Hadamard transforms, yet their combination satisfies the Β±0.05 perplexity change criterion under dynamic W4A4KV4 quantization. Further gains are achieved by optimizing K channels independently and expanding the interpolation mixing range, both of which reduce quantization error and perplexity.
πŸ“ Abstract
Rotation-based post-training quantisation commonly applies an orthogonal transform across an entire attention head to reduce outlier-induced error. RoPE instead partitions each head into two-dimensional frequency pairs, raising the question of whether a transform respecting this decomposition can improve on full-head mixing. Prior work has established the per-pair rotations that commute with RoPE. We state the converse result that, for distinct frequencies, no other single-head orthogonal map commutes with RoPE. For the head-shared parameterisation used in our experiments, we then derive the rotation angle that minimises the larger channel variance under a pooled-covariance, position-averaged surrogate and verify that the implementation attains its analytic minimum. The evaluated head-shared pairwise configuration does not improve accuracy in the tested dynamic W4A4KV4 setting. Across four checkpoints, replacing the full-head Hadamard with this configuration increases perplexity at both short and long context lengths. Composing the pairwise rotation with the Hadamard satisfies the selected $\pm0.05$-PPL interval criterion under the default estimator. Estimating the shared angle from K alone improves pairwise-only on every checkpoint but does not close its gap to full-head mixing. The analytic objective controls a position-averaged second moment of a pooled calibration covariance, whereas the dynamic quantiser sets its step from a tokenwise group range. The pairwise transform also has only two-channel mixing support. Along a controlled interpolation from two-channel to full-head mixing, K range, relative quantisation error, and perplexity degradation decrease as support increases. These results show that optimality for a structured surrogate need not reduce quantisation error when the surrogate and mixing support are misaligned with the quantiser's scale-setting statistic.
Problem

Research questions and friction points this paper is trying to address.

dynamic quantization
RoPE
variance optimality
outlier-induced error
mixing support
Innovation

Methods, ideas, or system contributions that make the work stand out.

RoPE-aligned rotation
dynamic quantization
post-training quantization
mixing support
surrogate objective
πŸ”Ž Similar Papers
πŸ’Ό Related Jobs
No related jobs found.
S
Shuhan Wang
University College London
Yilin Luo
Yilin Luo
California Institute of Technology
Photoacoustic imagingtomography reconstructionbiophotonicsdeep learning
N
Nan Xu
University College London
C
Chi Wang Cheung
University College London