DeCo-Attention: Decompose to Compensate for Low-Precision Attention
Yuhang He, Harrison Zhang, Fanrong Li, Chang Liu, RuQing G. Xu, Perkz Zheng, Zhenhua Wang, Rajeev Rao,
Key points
From the paper's conclusion- We propose DeCo-Attention, a co-design of algorithm and system for low-precision attention.
Abstract
Self-attention over tens of thousands of tokens dominates the generation time of video diffusion transformers, because its cost grows quadratically with sequence length. The FP4 matrix products of modern GPUs can speed up attention, but the 4-bit rounding of the queries Q and the keys K introduces large errors. We show that the exponential in softmax amplifies the error of their product QK, which therefore dominates the attention error. We propose DeCo-Attention, a co-design of algorithm and system for low-precision attention. DeCo-Attention is training-free and compensates the rounding error of Q and K along a few principal directions found by a per-head eigendecomposition. The lightweight compensation terms are appended to Q and K as extra channels, so the FP4 matrix product corrects its own rounding error while it computes the attention scores. Once the products run in FP4, the softmax bounds the kernel, and we optimize the softmax so that the gain of FP4 computation translates into realized speedup. With QK in FP4, we implement DeCo-Attention with the rest of attention in FP8 on GB300 and VR200 and in FP4 on RTX PRO 6000. On Wan2.2, these kernels run 2.13x, 2.49x, and 2.82x faster than BF16 attention, and the whole generation runs 1.55x, 1.68x, and 1.80x faster. On four video generation models, the FP8 configuration achieves LPIPS comparable to prior 8-bit QK methods, and the fully FP4 configuration lower LPIPS than prior fully 4-bit kernels.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- JetDiffusion: Pushing the Speed Limits of Video Generation with NVFP4 Sparse AttentionarXiv · 2026
- LampAttention: Look-Ahead Mixed-Precision FlashAttention for Dedicated AcceleratorsarXiv · 2026
- DecoupAttn: Decoupled Sparse Attention for Training-Free Acceleration of Video DiffusionarXiv · 2026
- Triage: Skip, Skim, or Refine Attention Tiles in Video Diffusion TransformersarXiv · 2026
- NOVA: Normalization-Aware Output-Guided Attention Acceleration for Video Diffusion TransformersarXiv · 2026
- Token2Tile: Token-Wise Sparse Attention with Tile Execution through a Low-Rank Space for Video DiTsarXiv · 2026