paper

RotateAttention: RoPE-Aware Rotation and Range Rectification for INT4 Quantized Attention in Video Generation

arXiv:2607.02584

Abstract

In , the attention mechanism remains a primary computational bottleneck due to its quadratic complexity with respect to sequence length. While quantized offers a promising path toward hardware acceleration, existing low-bit quantization methods overlook two critical challenges in this setting: applying online rotation matrices -- a widely used technique for mitigating outliers in Queries () and Keys () -- is difficult to reconcile with ; and the non-negative attention matrix makes symmetric quantization waste half of the 4-bit dynamic range. In this work, we observe that the outlier distributions of and are strongly affected by the dimensional partitioning of . Based on this finding, we propose , an efficient framework tailored for , using selective for accuracy-sensitive attention blocks and denoising steps. RotateAttention introduces two core techniques: , which employs either mergeable rotation matrices that can be fused into RoPE or negligible-overhead matrices to mitigate RoPE-induced outliers in and ; and $\textbf{2) Range-optimized $P$ Quantization}$, which uses fixed scales and zero-points to fully exploit the with minimal computational overhead. Experiments show that preserves video generation quality nearly identical to full-precision baselines while achieving up to 1.68 end-to-end speedup and 2.2 kernel-level acceleration.