# DeCo-Attention: Faster Video Generation with Low-Precision Attention

> Video diffusion transformers can process sequences tens of thousands of tokens long. In these models, attention—the calculation that relates each token to the others—can dominate generation time becau...

**Source**: arxiv.org | **Published**: 2026-11-25 | **Type**: research

## Key Facts

- Accelerate long-sequence video generation by using FP4 attention on compatible GPUs.
- Preserve attention accuracy by correcting query-key rounding errors without retraining models.
- Target high-impact error directions per attention head to limit correction overhead.
- Reduce generation costs by applying lightweight corrections during score computation.
- Evaluate FP4 deployment on production workloads to verify speed, quality, and hardware benefits.

## Summary

**Paper:** [DeCo-Attention: Decompose to Compensate for Low-Precision Attention](https://arxiv.org/abs/2611.32035)

**Authors:** Yuhang He, Harrison Zhang, Fanrong Li, Chang Liu, RuQing G. Xu, Perkz Zheng, Zhenhua Wang, Rajeev Rao, Mengdi Wang, Sharan Chetlur, Jun Yang

\## Executive Summary

Video diffusion transformers can process sequences tens of thousands of tokens long. In these models, attention—the calculation that relates each token to the others—can dominate generation time because its workload grows rapidly as sequences get longer. New GPUs can perform matrix calculations in 4-bit precision, known as FP4, which may speed up attention. But rounding the query and key values used to calculate attention scores can introduce substantial errors.

DeCo-Attention addresses that trade-off without retraining the model. The researchers find that errors in the query-key product are especially important: the softmax operation used to turn scores into attention weights can amplify them. Their method estimates and corrects rounding error along a small number of important directions for each attention head. It adds lightweight correction terms to the query and key data, allowing the FP4 calculation to compensate for some of its own error as it computes scores.

The system also optimizes softmax. This matters because, once the query-key calculation is faster in FP4, softmax can become the limiting step and reduce the speedup that reaches the full attention operation.

The team tested DeCo-Attention on three GPU platforms: GB300 and VR200, where the rest of attention ran in FP8, and RTX PRO 6000, where it ran in FP4. On the Wan2.2 video generation model, the attention kernels ran 2.13 times faster than BF16 attention on GB300, 2.49 times faster on VR200, and 2.82 times faster on RTX PRO 6000. End-to-end video generation was 1.55, 1.68, and 1.80 times faster, respectively. The smaller end-to-end gains show why improving one part of a workload does not translate directly into the same improvement for the whole process.

Quality was evaluated across four video generation models using LPIPS, a measure of perceptual difference. The FP8 configuration achieved LPIPS results comparable to prior methods that use 8-bit query-key calculations. The fully FP4 configuration produced lower LPIPS than prior fully 4-bit kernels. These comparisons support the claim that the method can reduce precision while retaining competitive measured output quality; they do not establish that generated videos are indistinguishable to viewers.

The reported speed and quality results come from model benchmarks on specified GPUs, not from real-world deployments or customer use. They indicate that DeCo-Attention could make video generation faster on compatible hardware, particularly where long-sequence attention is a bottleneck. The abstract does not report power use, operating costs, performance on other hardware, or results in production settings, so those effects remain unestablished.

\## Academic 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.

## Frequently Asked Questions

**What business problem does DeCo-Attention address?**

It targets the time-consuming attention calculations in video diffusion transformers with very long sequences. By compensating for some errors from FP4 calculations, it may help reduce the trade-off between faster attention and score accuracy, without retraining the model.

**Which industries could benefit most?**

The summary does not identify particular industries or deployments. Organizations using video diffusion transformers for long-sequence generation could potentially benefit, but the research does not establish which industries would benefit most.

**What are the practical implementation considerations?**

DeCo-Attention adds lightweight correction terms to query and key data and estimates error along a small number of important directions for each attention head. Its stated approach does not require retraining, but the summary does not specify integration effort, hardware requirements, or performance in particular production settings.

**What resources or expertise might be needed to use this approach?**

Applying it could require expertise in transformer attention, low-precision numerical computation, and video-generation systems, as well as access to suitable GPU hardware. The summary does not specify staffing, infrastructure, or deployment requirements.

**What competitive advantages could DeCo-Attention offer?**

If it works effectively in a given setting, it could allow organizations to use faster FP4 attention while compensating for some rounding error, potentially improving generation efficiency without retraining. The summary does not provide measured business outcomes or establish a competitive advantage in practice.

## Links

- [Read on Welcome.AI](https://welcome.ai/content/deco-attention-faster-video-generation-with-low-precision-attention)
- [Original source](https://arxiv.org/abs/2611.32035)

---

Source: Welcome.AI | https://welcome.ai/content/deco-attention-faster-video-generation-with-low-precision-attention