DeCo-Attention: Decompose to Compensate for Low-Precision Attention

Yuhang He, Harrison Zhang, Fanrong Li, Chang Liu, RuQing G. Xu +6 more
11/24/2026
cs.CV
transformer-attention

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{he2026decoattention,
  title  = {DeCo-Attention: Decompose to Compensate for Low-Precision Attention},
  author = {Yuhang He and Harrison Zhang and Fanrong Li and Chang Liu and RuQing G. Xu and Perkz Zheng and Zhenhua Wang and Rajeev Rao and Mengdi Wang and Sharan Chetlur and Jun Yang},
  year   = {2026},
  eprint = {2611.32035},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.32035v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.32035.svg)](https://codeofpaper.com/paper/2611.32035)

Discussion