WorksComputer Science
DeCo-Attention: Decompose to Compensate 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.
Introduction
Video diffusion transformers (DiTs) ((Peebles & Xie, 2023)) have become the mainstream approach to video generation, as in Wan ((Team Wan et al., 2025)), HunyuanVideo ((Kong et al., 2024; Wu et al., 2025)), CogVideoX ((Yang et al., 2025)), LongCat-Video ((Meituan LongCat Team et al., 2025)), and Movie Gen ((Polyak et al., 2024)). These models generate a video by denoising the latent of the whole clip over tens of steps, and in every step each self-attention layer attends over all spatiotemporal tokens of the clip. Because of its quadratic cost and the large number of tokens, attention dominates the generation time. For example, an 81-frame 720p clip of Wan2.2 has 75,600 tokens. Generating it with TensorRT-LLM ((NVIDIA, 2023)) takes 302.7 s on GB300, and attention takes 67.6% of each step.
Modern GPUs support increasingly low-precision data formats on their tensor cores. Hopper introduced FP8 matrix multiply-accumulates (MMAs) ((Micikevicius et al., 2022)), and Blackwell and Rubin added MMAs in block-scaled FP4 formats such as NVFP4 ((Rouhani et al., 2023; NVIDIA et al., 2025)). On GB300 and VR200, the FP4 MMA run at two to three times the FP8 rate and six to nearly nine times the BF16 rate ((NVIDIA et al., 2025; NVIDIA, 2026)). Quantizing attention to these formats is thus a direct way to accelerate it, but the lower precision can compromise the accuracy.
Many recent methods study low-precision attention and achieve promising results ((Shah et al., 2024; Zhang et al., 2025d,b; Li et al., 2026; Zhang et al., 2026, 2025c)). However, existing kernels with a 4-bit have large errors in the attention output (Figure 1), which cause a non-negligible quality loss in the generated videos. This accuracy loss is the main
Figure 1. Accuracy and speed. Mean relative L2 error over all layers of Wan2.2 against the attention time of a Wan2.2 call on GB300. With a 4-bit , DeCo-Attention advances the Pareto frontier of accuracy and speed.
challenge of accelerating attention with the FP4 tensor cores. Our analysis shows that the loss comes from the exponential in softmax. The exponential turns the error that the rounding of and causes in each score into a relative error of the attention weight, so this rounding error dominates the error of attention and of the generated video.
To address this challenge, we propose DeCo-Attention (Decompose to Compensate), a co-design of algorithm and system that decomposes the quantization error of and compensates its main part inside the FP4 product. Specifically, it decomposes this error with a per-head eigendecomposition of and and keeps its components along the top eigenvectors. We show that most of this error comes from these few top directions. These compensation terms are appended to and as extra channels, so the same FP4 MMA computes the scores together with their correction. To keep this lightweight, DeCo-Attention computes the eigenvectors from a random sample of 1/256 of the tokens and shares them between and , so one eigendecomposition per head suffices and adds only a few percent to the attention time. The 4-bit is now accurate, but the softmax between the two MMAs becomes the kernel bottleneck. To turn the speed of FP4 into a kernel speedup, we propose I-ExpCast and adopt the row sum in the MMA (Dong et al., 2026) and the lazy rescale (Zadouri et al., 2026) to shorten the softmax.
We implement DeCo-Attention for GB300, VR200, and RTX PRO 6000, with in FP8 on the first two GPUs and in FP4 on the third, and evaluate it on four video generation models. With FP8 , DeCo-Attention is on par with FP8- methods in generation quality and narrows the gap to INT8- attention. With FP4 on RTX PRO 6000, it is more accurate than prior fully 4-bit kernels. On Wan2.2, the kernels of DeCo-Attention run , , and faster than the fastest BF16 kernel, and the end-to-end generation runs , , and faster. DeCo-Attention is the fastest of the compared attention kernels and gives the largest end-to-end speedup on every GPU.
In summary, this paper makes three contributions.
Accuracy. We analyze the quantization error of a 4-bit and propose DeCo-Attention, a training-free and calibration-free method that compensates this error directly inside attention. DeCo-Attention makes a 4-bit competitive with 8-bit methods.
Performance. We implement high-performance kernels for DeCo-Attention in CuTe DSL. The FP4 product exposes the softmax as the bottleneck of low-precision attention. Our kernels relieve this bottleneck and turn the speed of the FP4 into realized speedup.
Evaluation. A systematic evaluation on three GPU platforms, at the kernel level and end to end, validates the accuracy and the speedups of DeCo-Attention. We show that DeCo-Attention advances the Pareto frontier of accuracy and speed (Figure 1).
Related Work
Low-precision attention
Low-precision attention speeds up attention by computing its two matrix products with the 8-bit and 4-bit MMAs of the tensor cores. At 8 bits, FlashAttention-3 runs attention in FP8 with block scales and a Hadamard rotation (Shah et al., 2024), and SageAttention, SageAttention2, and VC-Attention smooth or center and to keep the accuracy of an 8-bit or 4-bit (Zhang et al., 2025d,b; Li et al., 2026). With a 4-bit and an 8-bit , the NVFP4 kernels of TensorRT-LLM, cuDNN, and FlashInfer quantize and with one scale per 16 elements (NVIDIA, 2023; Chetiur et al., 2014; Ye et al., 2025; NVIDIA et al., 2025), and Attn-QAT retrains the model for such a kernel (Zhang et al., 2026). Fully 4-bit kernels such as SageAttention3, PAROAttention, and HiFA4 also quantize and (Zhang et al., 2025c; Zhao et al., 2025; Dong et al., 2026), and ThriftAttention, DraftAttention2, and DMA mix two precisions across the score matrix (Sharratt, 2026; Ding et al., 2026a,b). These methods reduce the quantization error by smoothing, by Hadamard rotations (Shah et al., 2024; Yu et al., 2026), or by finer scales. However, a floating-point element keeps its relative rounding error at any scale, so the rounding error of and stays in the scores and grows from FP8 to FP4. DeCo-Attention compensates this error inside the product.
Residual and low-rank compensation
Compensation recovers the accuracy lost in rounding by adding the main part of the residual back. Residual products refine FP16 matrix products on tensor cores (Markidis et al., 2018; Ootomo & Yokota, 2022). LoRC, LQER, QERA, and SVDQuant compensate the rounding error or the outliers of static weights offline with low-rank factors (Yao et al., 2024; Zhang et al., 2024, 2025a; Li et al., 2025). ResQ keeps the activations along principal directions of calibration data in 8 bits and the others in 4 bits (Saxena et al., 2025). AR-CQuant appends the residuals of outlier activation channels as extra channels of the same GEMM (Meng et al., 2026). MpFA restores the mean term of the centered and of an NVFP4 in an additional BF16 MMA (Deng et al., 2026). These methods rely on calibration data, a static operand, or a second product, which normally costs more than an FP8 . DeCo-Attention compensates the rounding error of both and along directions estimated at runtime for every head, in the same FP4 MMA as the scores.
Efficient attention
With low-precision matrix products, the softmax and the output rescale bound the attention kernel. FlashAttention-4 computes part of the exponentials on the fused multiply-add (FMA) units in parallel with the special-function unit (SFU), which still occupies the SFU and takes many instructions (Zadouri et al., 2026). Its lazy rescale moves the row base, which the online softmax keeps at the running maximum of a row (Dao et al., 2022; Milakov & Gimelshein, 2018), only when a tile exceeds it by more than a threshold. ExpCast of VC-Attention forms the FP8 code of a probability from its score with one FMA, because the bit pattern of a floating-point number read as an integer grows linearly with the logarithm of its value (Li et al., 2026; Schröndlp, 1999). Direct-P forms the E2M1 codes of an MXFP4 from a linear function of the score and a hardware conversion (Hu, 2026). HiFA4 appends a column of ones to , so that the product returns the row sum of (Dong et al., 2026). DeCo-Attention improves ExpCast and adopts the lazy rescale and the row sum in the MMA to build high-performance kernels.
DeCo-Attention
This section presents DeCo-Attention (Figure 2). We first show that the exponential in softmax amplifies the quantization error of . We then introduce principal residual compensation, which corrects the main part of this error in extra channels of and . Finally, we describe the kernel optimizations that turn the speed of FP4 into realized speedup. The appendix gives the derivations and details.

Figure 2. Overview of DeCo-Attention. (a) For every head, and are rotated by a Hadamard matrix and quantized to NVFP4, leaving the residuals and . An eigendecomposition (EVD) of the Gram matrices of 1/256 of the tokens gives the 32 principal directions . The projections of the residuals and of the quantized operands onto are appended as NVFP4 compensation channels, so and have 192 channels. is smoothed by subtracting its block means and quantized to . (b) Per tile, one NVFP4 MMA over and computes the compensated scores , I-ExpCast forms , and the MMA returns the output with the row sums of through columns of ones appended to . The block means are added back, the softmax rescales lazily, and is finally divided by .
Error of QK quantization
FP4 MMAs offer the highest throughput of the tensor cores on modern GPUs, but the existing kernels with a 4-bit lose accuracy. To locate the source of this loss, we quantize one product of attention at a time and report the relative L2 error (Higham, 2002) of the attention output against FP32 attention. On the hard layers1 of Wan2.2, quantizing only and gives a larger mean error than quantizing only and in the same format, 20.14% against 1.90% in FP8 and 30.12% against 7.14% in NVFP4, and the order is the same over all layers (Figure 3a). We therefore focus on the error of quantization.
Figure 3. Quantization error and energy of K. (a) Relative L2 error on Wan2.2 with only and or only and quantized (*, per-block scales of SageAttention). (b) Share of the energy of along directions over the heads of Wan2.2.
Low-precision attention methods usually quantize a high-precision tensor to a low-precision tensor with a quantization function , which leaves the residual . A query and a key , both row vectors, thus split into and , and their exact product decomposes as
Attention computes the score of and the key of token as , where is the head dimension. A quantized kernel computes the score from the first term of Eq. (1) alone, so the other three terms form the score error .
Softmax turns the scores into the attention weights , and its exponential can amplify the score errors. The quantized kernel computes the weights from the quantized scores , so each weight is the exact weight multiplied by and renormalized,
where is the -weighted mean of the score errors. For small errors, the relative change of each weight is close to its centered error , so the errors pass through softmax without amplification. With an NVFP4 , however, the centered errors can exceed 1.0, and the linear form of Eq. (2) no longer holds. The exponential then amplifies the errors instead of passing them on linearly, and most of the attention weight can move to a different key. This amplification explains why the attention output is more sensitive to the quantization of than to that of .
An NVFP4 produces such large score errors mainly because of the floating-point format itself. A floating-point format with mantissa bits rounds every element in its normal range with a relative error of up to regardless of its scale. This bound is 1/16 for FP8 and 1/4 for NVFP4. Common ways to reduce quantization error, such as finer scales, cannot avoid this error. In addition, and often contain outliers with large values Jin et al. (2025), which, together with the exponential in softmax, further amplify these rounding errors. Figure 3a confirms the effect of the format. With the same per-block scales of SageAttention, the floating-point FP8 has a much larger error than the integer INT8 Chen et al. [3], 12.63% against about 1%. NVFP4 has the largest error although it has the finest scales. An accurate 4-bit therefore has to mitigate this error by other means.
Principal residual compensation
DeCo-Attention addresses the error numerically. Since the residuals and are known, the first-order terms and of Eq. (1) can be added back to the scores. We neglect the second-order term. Adding them exactly takes two more full-width products, more than an FP8 costs. We therefore propose principal residual compensation, which approximates each term over a few channels along the principal directions that hold most of its error, so that the MMA computes them with the scores.
Error along the principal directions. For one query, the -side term of key is . Its sum of squares over all keys is a quadratic form with the Gram matrix of the quantized keys . For every head, we decompose into eigenvalues and orthonormal column eigenvectors , which splits the sum of squares along the eigenvectors,
We call the energy of the keys along . DeCo-Attention rotates and by a Hadamard matrix before the quantization, a rotation widely used for low-precision quantization [2] (Shah et al. 2024; Yu et al. 2026). In most cases the rotation lowers the rounding error of and and the second-order term. It also spreads the outliers and their residual over all channels, so that has no preferred direction and is about the same along every . The rotation leaves the scores and the eigenvalues unchanged, so each term of Eq. (3) is then proportional to its eigenvalue . Without the rotation, the outliers hold most of the residual, and the eigenvalues no longer predict how much error the compensation along their eigenvectors removes.
Compensating the error along an eigenvector cancels the term of Eq. (3). Since these terms are proportional to the eigenvalues, compensating along the eigenvectors with the largest eigenvalues removes the most error. A few eigenvectors hold most of the energy of . On Wan2.2, the 32 leading eigenvectors of hold a median of 74.3% of this energy over the heads, against 46.9% for the 32 channels of largest energy (Fig. 3b). Compensating along a small number of leading eigenvectors therefore recovers most of the error.
Decomposing the first-order terms. Let hold the leading eigenvectors of . In the eigenbasis of , the -side term of key is a sum over directions, of which DeCo-Attention keeps the first ,
The -side term splits in the same way along the leading eigenvectors of .
Extended operands. Adding the kept parts of both first-order terms to gives one dot product of the extended operands
The compensation channels are quantized to NVFP4 as well. As Figure 4 shows, one block-scaled NVFP4 MMA over the extended operands then computes the scores together with the first-order correction of both operands. On the hard layers of Wan2.2, the compensation lowers the error of the kernel from 18.70% to 2.80% (Tab. 4). It brings the centered score errors from 1.0 or more down to the range where softmax is approximately linear.

Figure 4. Principal residual compensation of QK. Extra channels for the -side and the -side term let one NVFP4 MMA add both terms to the quantized score.
Efficient estimation. DeCo-Attention estimates the principal directions at runtime for every head, in a preparation step that we keep lightweight in three ways. First, the directions are estimated from a random sample of of the tokens. Second, and share one basis. Both are linear projections of the same activations, and we find that their leading eigenvectors span largely the same subspace. On Wan2.2, the two subspaces overlap by 0.75 (against 0.25 for two unrelated subspaces). We add the two Gram matrices of the sample, each divided by its trace so that and weigh equally,
and take the leading eigenvectors of as the basis in place of both and in Eq. (5). The shared basis holds 69.0% of the energy of , against 74.3% for (Figure 3b), and takes only one eigendecomposition per head. Third, the preparation runs as a fast chain of fused kernels. A GPU eigensolver finds the bases of all heads, and one fused pass over and rotates, quantizes, and projects every token. These passes are linear in the sequence length, whereas attention is quadratic, and the whole preparation adds only 2.7 to 3.6% to the attention time.
Kernel implementation and optimizations
We implement the kernels of DeCo-Attention in CuTe DSL for GB300, VR200, and RTX PRO 6000. On the datacenter GPUs, the softmax between the two low-precision MMAs bounds the kernel and hides their speed advantage (Li et al., 2026; Zadouri et al., 2026). We propose I-ExpCast, which forms with fewer instructions and without the SFU. We also adapt the lazy rescale and the row sum in the MMA to our kernels.
Within the softmax, the exponential is the bottleneck, since it runs on the SFU and handles far fewer scores per cycle than the MMAs (Zadouri et al., 2026). FlashAttention-4 emulates part of the exponentials on the FMA units, which takes many more instructions than the SFU and lengthens the kernel on GB300 and VR200. ExpCast (Li et al., 2026) and Direct-P (Hu, 2026) bypass the SFU and form the codes of from a linear function of the score, ExpCast in E4M3 and Direct-P in E2M1. However, neither method rounds to the nearest code, and neither covers the subnormal codes.
I-ExpCast, our improved ExpCast, forms the probability in FP16 and leaves the rounding to a hardware conversion. FP16 has ten mantissa bits and represents every value of E4M3 and E2M1 exactly, so the conversion rounds to the nearest code of either format, subnormal codes included. Let be the base-2 logarithm of a scaled probability, a linear function of its score . Read as an integer, the FP16 bit pattern of is close to plus the exponent bias 15, scaled by for the ten mantissa bits,
I-ExpCast evaluates this linear function in the subnormal range of FP32, whose values are evenly spaced multiples of with the multiple as their bit pattern. One FMA therefore maps the score to this pattern and rounds the result to an integer. Three instructions per pair of scores form the codes,
where , the saturating pack shows the pattern on the 16 bits of FP16, and converts it to E4M3 or E2M1. I-ExpCast thus stays close to the exponential followed by rounding, whereas ExpCast and Direct-P do not (Figure 5).
Figure 5. Accuracy of I-ExpCast. Decoded value of over its exact value, per way of forming the E4M3 codes (a) and the E2M1 codes (b).
We further adapt two existing techniques to these kernels. The lazy rescale moves the row base only when a tile exceeds it by more than a factor of . At , as in FlashAttention-4, probabilities below of the row base round to zero, whereas keeps the row down to and still skips most rescales. At this threshold, more of the small probabilities fall into the subnormal range of E4M3, which I-ExpCast still rounds to the nearest code. With I-ExpCast, the two optimizations can therefore be combined. With only rounded at , the mean error over all layers of Wan2.2 is 0.93% with I-ExpCast, against 3.26% with ExpCast, and at it rises to 2.72% (Table 1). An NVFP4 is much less sensitive to , since each block of 16 keys carries its own scale. DeCo-Attention uses with both formats. A column of ones appended to lets the MMA also return the row sum of (Dong et al., 2026).
| Codes from | Instr. | Hard | All | Hard | All | Hard | All | |
| E4M3 | exp2 and rounding | 8 | 0.28 | 0.40 | 0.43 | 0.88 | 1.07 | 2.72 |
| E4M3 | ExpCast | 7 | 0.44 | 1.02 | 1.41 | 3.26 | 4.37 | 8.88 |
| E4M3 | I-ExpCast | 6 | 0.50 | 0.68 | 0.54 | 0.93 | 1.11 | 2.72 |
| E2M1 | exp2 and rounding | 8 | 1.56 | 2.01 | 1.59 | 2.09 | 1.69 | 2.64 |
| E2M1 | Direct-P | 4 | 4.11 | 5.06 | 4.11 | 5.06 | 4.11 | 5.06 |
| E2M1 | I-ExpCast | 6 | 1.51 | 1.82 | 1.54 | 1.90 | 1.63 | 2.45 |
Table 1. Rounding error of P under the lazy rescale. Relative L2 error (%) on Wan2.2 with only rounded, per threshold of the lazy rescale. Instr. counts the instructions per four scores.
We also implement V smoothing (Li et al., 2026). An extra high-precision MMA adds the block means of back and keeps the output unbiased. More analysis is in the appendix.
Evaluation
Evaluation
Setup
Models. We evaluate DeCo-Attention on four video models, Wan2.2-T2V-A14B (Team Wan et al. (2025)) at 720p, LongCat-Video (Meituan LongCat Team et al. (2025)) at 480p, HunyuanVideo-1.5 (Wu et al. (2025)) at 720p, and MiniMax-H3 (MiniMax (2026)) at 1344 × 768 with audio. For a fair comparison with the other methods, MiniMax-H3 runs with the 8-step LoRA of MiniMax-H3-Acc-LoRAs (Alibaba PAI [1]).
Baselines and metrics. We compare DeCo-Attention with three groups of methods, each in its fastest kernel. The baseline is BF16 attention. The state-of-the-art methods are VC-Attention (Li et al. (2026)) and SageAttention2 (Zhang et al. (2025b)) at 8 bits, VC-Attention and SageAttention3 (Zhang et al. (2025a)) at 4 bits, and the kernel of Attn-QAT (Zhang et al. (2026)) with a 4-bit and an 8-bit (without retraining the model). The third group holds the uncompensated formats: QK16PV8 with a 16-bit and an 8-bit , per-tensor FP8, MXFP8, NVFP4 with FP8 , and NVFP4. End to end, we measure the PSNR (Huynh-Thu & Ghanbari (2008)) SSIM (Wang et al. (2004)), and LPIPS (Zhang et al. (2018)) of each video against the BF16 video of the same prompt and seed on 100 prompts of MovieGen Bench (Polyak et al. (2024)), and the speedup in TensorRT-LLM VisualGen on seven of these prompts. At the kernel level, we measure the relative L2 error (Higham (2002)) of the attention output against FP32 attention and the attention time.
Implementations. DeCo-Attention uses directions per side as a trade-off between accuracy and performance. By default, it runs FP8 on GB300 and VR200 and NVFP4 on RTX PRO 6000. Following VC-Attention (Li et al. (2026)), we smooth in both configurations by subtracting its mean over each block of keys before quantizing it. The appendix gives further details and results.
Accuracy
End-to-end quality. DeCo-Attention reaches the generation quality of FP8- methods and narrows the gap of a 4-bit to INT8- attention (Table 2). On every model, it is more accurate than per-tensor FP8, MXFP8, and SageAttention2 with FP8 . Compared with VC-Attention with FP8 , the most accurate FP8- method, DeCo-Attention is more accurate on Wan2.2 and LongCat-Video and less on the other two models. The INT8- methods, which VC-Attention reports on B200, remain more accurate. The uncompensated 4-bit is 5 to 6 dB in PSNR behind VC-Attention with INT8 , while DeCo-Attention is 1 to 3 dB behind. Its frames are also closer to those of BF16 attention than those of the uncompensated kernel (Figure 6).
| Method | QK/PV | Wan2.2 PSNR↑ | Wan2.2 SSIM↑ | Wan2.2 LPIPS↓ | LongCat-Video PSNR↑ | LongCat-Video SSIM↑ | LongCat-Video LPIPS↓ | HunyuanVideo-1.5 PSNR↑ | HunyuanVideo-1.5 SSIM↑ | HunyuanVideo-1.5 LPIPS↓ | MiniMax-H3 PSNR↑ | MiniMax-H3 SSIM↑ | MiniMax-H3 LPIPS↓ |
| BF16 | 16/16 | 24.54 | 0.850 | 0.112 | 30.09 | 0.929 | 0.038 | 18.98 | 0.709 | 0.241 | 21.40 | 0.752 | 0.186 |
| QK16PV8 | 16/8 | 20.66 | 0.748 | 0.197 | 23.50 | 0.817 | 0.107 | 16.04 | 0.601 | 0.352 | 20.19 | 0.717 | 0.217 |
| Per-tensor FP8 | 17.95 | 0.658 | 0.283 | 20.52 | 0.728 | 0.164 | 14.89 | 0.548 | 0.410 | 17.13 | 0.601 | 0.356 | |
| MXFP8 | 18.01 | 0.662 | 0.278 | 20.50 | 0.732 | 0.163 | 14.06 | 0.521 | 0.451 | 16.85 | 0.590 | 0.365 | |
| SageAttention2† | 8/8 | 20.3 | 0.730 | 0.206 | 23.1 | 0.793 | 0.122 | 15.6 | 0.581 | 0.382 | 19.9 | 0.723 | 0.252 |
| w/ FP8 QK | 17.45 | 0.646 | 0.293 | 20.81 | 0.742 | 0.158 | 14.74 | 0.551 | 0.411 | 16.98 | 0.600 | 0.355 | |
| VC-Attention† | 20.5 | 0.744 | 0.191 | 23.8 | 0.807 | 0.109 | 17.5 | 0.648 | 0.301 | 20.2 | 0.726 | 0.248 | |
| w/ FP8 QK | 18.53 | 0.690 | 0.250 | 22.23 | 0.785 | 0.128 | 16.11 | 0.608 | 0.342 | 17.70 | 0.633 | 0.310 | |
| NVFP4 QK, FP8 PV | 15.34 | 0.553 | 0.417 | 17.85 | 0.630 | 0.258 | 11.89 | 0.430 | 0.581 | 14.47 | 0.510 | 0.484 | |
| Attn-QAT | 4/8 | 15.33 | 0.556 | 0.420 | 16.85 | 0.549 | 0.373 | 10.15 | 0.360 | 0.672 | 15.16 | 0.537 | 0.452 |
| DeCo-Attention (Ours) | 19.42 | 0.723 | 0.216 | 22.53 | 0.800 | 0.115 | 15.97 | 0.595 | 0.356 | 17.22 | 0.618 | 0.329 | |
| NVFP4 | 12.40 | 0.453 | 0.545 | 13.12 | 0.450 | 0.446 | 8.06 | 0.260 | 0.777 | 13.84 | 0.506 | 0.501 | |
| SageAttention3† | 4/4 | 13.9 | 0.510 | 0.466 | 15.1 | 0.526 | 0.382 | 10.9 | 0.391 | 0.652 | 16.1 | 0.587 | 0.408 |
| VC-Attention, 4-bit† | 16.8 | 0.614 | 0.318 | 18.7 | 0.663 | 0.226 | 13.8 | 0.486 | 0.481 | 16.6 | 0.605 | 0.380 | |
| DeCo-Attention (Ours) | 17.36 | 0.644 | 0.292 | 21.16 | 0.756 | 0.145 | 14.95 | 0.555 | 0.399 | 16.73 | 0.598 | 0.352 |
Table 2. End-to-end quality on four video models against BF16 attention. Blue cells mark the best PSNR, SSIM, and LPIPS within each group with a 4-bit . SageAttention2 and VC-Attention use their default INT8 on B200, and their rows w/ FP8 run on GB300. †Means reported by VC-Attention. With FP8 , DeCo-Attention reaches the generation quality of FP8- methods.

Figure 6. Wan2.2 videos with an NVFP4 QK. Frame 40 of 81 for the two prompts whose LPIPS under both kernels is closest to the median over 100 prompts. With DeCo-Attention, the frames follow those of BF16 attention and retain visual fidelity.
With NVFP4 , DeCo-Attention has better PSNR and LPIPS than SageAttention3 and 4-bit VC-Attention on every model, and better SSIM except against 4-bit VC-Attention on MiniMax-H3. On Wan2.2, its PSNR is 17.36 dB, against 13.9 dB for SageAttention3 and 16.8 dB for 4-bit VC-Attention. The fully 4-bit DeCo-Attention matches SageAttention2 with FP8 on every model and is within about 1 dB of VC-Attention with FP8 .
The fidelity metrics also capture the drift of the sampling trajectory, which exists even between BF16 kernels. The BF16 row is the BF16 attention of cuDNN, which reaches 24.54 dB on Wan2.2. DeCo-Attention is 3 to 8 dB below this row and within 3 dB of QK16PV8.
Kernel-level accuracy. We evaluate the kernels on attention calls captured from Wan2.2 and MiniMax-H3 in the hard layers and in every layer. Table 3 shows that DeCo-Attention reaches the accuracy of FP8- kernels. On the hard layers of both models, it has the lowest error of all kernels with an FP8 or 4-bit . On Wan2.2, it reaches 2.80%, against 3.67% for VC-Attention with FP8 and 30.56% for the uncompensated kernel. Over all layers, its error lies between those of VC-Attention and SageAttention2 with FP8 on both models, 3.73% on Wan2.2 against 2.64% and 4.10%. With NVFP4 , DeCo-Attention has the lowest error of the fully 4-bit kernels. On the hard layers of Wan2.2, its 5.68% is about a quarter of the 21.86% of SageAttention3 and the 21.06% of 4-bit VC-Attention. It is also below the 13.03% of SageAttention2 with FP8 . Over all layers, its 5.09% is above the 4.10% of SageAttention2 and the 2.64% of VC-Attention with FP8 .
| Method | QK/PV | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All |
| BF16 | 16/16 | 0.15 | 0.17 | 0.17 | 0.17 |
| SageAttention2, FP8 QK | 8/8 | 13.03 | 4.10 | 21.23 | 4.55 |
| VC-Attention, FP8 QK | 3.67 | 2.64 | 6.65 | 2.85 | |
| NVFP4 QK, FP8 PV | 30.56 | 10.57 | 28.92 | 10.69 | |
| Attn-QAT | 30.19 | 10.60 | 28.25 | 11.10 | |
| DeCo-Attention (Ours) | 4/8 | 2.80 | 3.73 | 6.32 | 4.40 |
| SageAttention3 | 21.86 | 9.19 | 24.07 | 8.96 | |
| VC-Attention, 4-bit | 4/4 | 21.06 | 8.52 | 23.46 | 8.05 |
| DeCo-Attention (Ours) | 5.68 | 5.09 | 8.24 | 5.67 |
Table 3. Kernel-level accuracy. Relative L2 error (%) of the attention output. Blue marks the lowest error per 4-bit- group.
Performance
Figure 7 shows that DeCo-Attention is the fastest of the compared attention kernels and gives the largest end-to-end speedup on every GPU. On Wan2.2, its kernel runs 2.13×, 2.49×, and 2.82× faster than BF16 attention on GB300, VR200, and RTX PRO 6000, excluding the preparation step of § 3.2, and the whole generation runs 1.55×, 1.68×, and 1.80× faster. On GB300 and VR200, DeCo-Attention is 1.44× and 1.65× faster than VC-Attention, the fastest prior method, at the kernel level and 1.22× and 1.32× faster end to end. On RTX PRO 6000, where SageAttention3 is the fastest prior method, DeCo-Attention is 1.08× faster at the kernel level and 1.09× faster end to end. On MiniMax-H3, the speedups are similar, 2.25× to 2.86× at the kernel level and 1.54× to 1.78× end to end.
Figure 7. Kernel-level and end-to-end speedup. (a) Speedup of the attention kernel over the fastest BF16 kernel. (b) Speedup of the whole generation in TensorRT-LLM VisualGen over BF16 attention. The SageAttention and VC-Attention bars show their FP8- kernels on GB300 and VR200 and their 4-bit kernels on RTX PRO 6000.
Ablations
Accuracy. Table 4 ablates the two terms of the compensation in an emulation of the GB300 kernel. The baseline without both terms keeps the Hadamard rotation and the smoothing of . The two terms together reduce the mean error on the hard layers from 18.70% to 2.80% on Wan2.2 and from 29.40% to 6.31% on MiniMax-H3. Most of this reduction comes from the -side term, without which the error on Wan2.2 rises to 18.35%. The -side term has a smaller effect and still reduces the error from 3.97% to 2.80% on Wan2.2 and from 7.30% to 6.31% on MiniMax-H3.
| Q-side term | K-side term | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All |
| ✓ | ✓ | 2.80 | 3.73 | 6.31 | 4.40 |
| ✓ | 3.97 | 4.96 | 7.30 | 5.71 | |
| ✓ | 18.35 | 7.27 | 29.11 | 9.22 | |
| 18.70 | 8.10 | 29.40 | 10.00 |
Table 4. Accuracy ablation. Relative L2 error (%) of DeCo-Attention with FP8 without the -side term, the -side term, or both, in emulation.
Performance. Table 5 adds the optimizations of § 3.3 one at a time to our GB300 kernel and compares it with an
| Kernel | Time (ms) | Speedup | SM clock (MHz) | Error (%) |
| BF16 attention | 124.3 | 1.00× | 1537 | 0.15 |
| NVFP4 QK, FP8 PV | 83.8 | 1.48× | 2070 | 30.56 |
| Our kernel, compensation only | 79.0 | 1.57× | 2017 | 2.92 |
| + I-ExpCast | 62.2 | 2.00× | 1777 | 2.94 |
| + Row sum in the PV MMA | 57.3 | 2.17× | 1612 | 2.94 |
| + Lazy rescale, | 55.8 | 2.23× | 1537 | 2.95 |
| + Smoothing of V | 58.0 | 2.14× | 1582 | 2.80 |
| FP8-QK reference | 82.1 | 1.51× | 1912 | 3.70 |
| + All four above | 68.2 | 1.82× | 1537 | 3.60 |
Table 5. Performance ablation. The optimizations of § 3.3 added one at a time to the DeCo-Attention FP8- kernel on GB300, with the time of a Wan2.2 call, the SM clock under the power limit, and the error on the hard layers. The reference rows use an uncompensated FP8 with one scale per tensor.
FP8- reference, the same kernel with an uncompensated FP8 . Without the optimizations, the softmax bounds the kernel and hides the gain of the 4-bit . Our kernel takes 79.0 ms, only slightly below the 83.8 ms of the NVFP4 with FP8 kernel of TensorRT-LLM and the 82.1 ms of the reference. I-ExpCast shortens the kernel to 62.2 ms. The row sum in the MMA and the lazy rescale shorten it to 55.8 ms, where the MMAs nearly bound the kernel. With the smoothing of , the complete kernel takes 58.0 ms, 1.36× faster than without the optimizations and 2.14× faster than BF16 attention. It does more work per cycle and draws more power, which lowers the SM clock under the power limit from 2017 to 1582 MHz and offsets part of the gain. At a fixed clock, the same changes give 1.67× instead of 1.36×. The same optimizations speed up the FP8- reference by only 1.20×, since its slower FP8 MMAs then bound the kernel. As a result, DeCo-Attention is 1.17× faster than the FP8- reference, and achieves better accuracy on the hard layers, 2.80% against 3.60%. The speedup of DeCo-Attention thus comes from the 4-bit MMA and the softmax optimizations together.
Conclusion
We presented DeCo-Attention, a co-design of algorithm and system for low-precision attention. We showed that the rounding error of a 4-bit lies mostly along a few principal directions, which DeCo-Attention compensates inside the matrix product that computes the scores. Softmax optimizations then turn the speed of the FP4 products into kernel speedup. On four video models, DeCo-Attention with FP8 competes with the generation quality of FP8- methods, its fully 4-bit kernel is more accurate than prior 4-bit kernels, and it is the fastest of the compared kernels on GB300, VR200, and RTX PRO 6000. DeCo-Attention thereby advances the Pareto frontier of accuracy and speed.
DeCo-Attention has limitations that we plan to address. Our kernels target video diffusion models, and LLM inference with KV cache cannot yet use them directly. The runtime estimation of the principal directions adds a small overhead to each call, which matters in low-latency scenarios. Over all layers, the error of DeCo-Attention is not yet below that of the most accurate FP8- kernel. The kernel code will be released publicly.
Error of QK Quantization
This appendix supplements § 3.1 with the bound on the score error of a floating-point (Sec. A.1) and the propagation of the score errors through softmax to the output (Sec. A.2).
Notation. A query and the keys are row vectors of channels, the inputs of the attention. A quantized kernel rounds them to the low-precision format, and , which leaves the residuals and , and computes the score in place of the exact score . The exact attention weights are , and are the weights of the quantized scores. The captures, the hard layers, and the error metric are those described in Sec. E.1.
Score error of a floating-point QK
A floating-point format rounds with a relative error that a scale does not lower, and the score errors of an NVFP4 can exceed 1.0, beyond which the exponential of softmax amplifies them (§ 3.1). We derive the rounding bound behind the first statement and the bound on the score error behind the second.
Rounding of one element. An integer format and a floating-point format space their codes differently. INT8 gives a group of elements one scale, which maps the largest magnitude of the group to the largest code 127. The codes are then apart for every element of the group, with a rounding error of at most half of this spacing. A floating-point format with mantissa bits places codes in every binade . The codes of this binade are apart. Since an element of the binade has , this spacing is at most , with a rounding error of at most half of it. The rounding errors of the two formats are thus bounded by
The INT8 bound is absolute and follows the largest element of the group. The floating-point bound is relative to the element itself, 1/16 for E4M3 and 1/4 for E2M1. A scale multiplies an element before the rounding and divides it afterwards. For INT8, a scale fitted to a smaller group lowers and thus the error of every element of the group. For a floating-point format, a scale does not lower the error. The scaled element is rounded with the same relative error, and dividing by the scale afterwards leaves this relative error unchanged. The relative bound therefore holds for any scale that keeps the element in its normal range. With the same per-block scales, E4M3 errs by up to against for INT8, which is larger for every element above about . FP8 therefore has a much larger error than INT8 in Figure 3a.
Score error. The score error consists of the three terms of the decomposition of the exact product that a quantized kernel leaves out (§ 3.1, Eq. (1)),
Each first-order term sums a residual times an element of the other operand over the channels. The triangle inequality and the floating-point bound on every residual, , bound the -side term by
where the last step replaces the quantized element by the exact one, which holds to first order. The -side term has the same bound with the roles of and exchanged. Adding the two bounds and dividing by as in Eq. (10) bounds the score error by
The prefactor is 1/8 in E4M3 and 1/2 in E2M1. It multiplies the summed magnitudes of the channel products over , which is the scaling of the score itself. The bound follows the magnitudes of the channel products and not the score, since large products of opposite signs cancel in the score while their residuals remain. Some heads hold large values in a few channels of and , the outliers of § 3.1. There the summed magnitudes of the channel products are large, and the score error can exceed 1.0 in magnitude (Table 6).
Table 6. Error of the first-order approximation. Rotated NVFP4 without () and with () the compensation of DeCo-Attention, and exact, on the hard and on all layers of Wan2.2 and MiniMax-H3. The compensation lowers all three quantities.
Propagation through softmax
We derive how the score errors change the attention weights and the output (Eq. (2)). A quantized kernel applies softmax to the scores in place of . With , its weights are
Softmax is invariant to a shift common to all scores. An error common to all keys of a query therefore does not change the weights, and only the differences between the errors of the keys matter, which the ratio of two weights shows directly,
We subtract the -weighted mean error of the query, , and call the centered error of key . The weights depend on the centered errors alone, .
We next linearize the weights in the centered errors. This first-order form relates the output error linearly to the score errors, which is what lets § 3 measure the score error by its energy and compensate it term by term. For centered errors well below 1.0, . The denominator is then , using and the definition of . The weights become
which is Eq. (2). Each weight changes by its centered error as a relative amount, and the changes sum to zero, as the normalization of softmax requires. The first-order approximation of Eq. (15) holds while the centered errors stay below 1.0. Beyond that, the exponential of Eq. (14) grows faster than the linear term, and the weights move by more than the first-order approximation predicts.
Let be the value of token and the attention output. With and exact, the quantized scores change the output by . Inserting gives its first-order approximation,
To first order, the output error is thus linear in the centered score errors. The next paragraph measures the error of this approximation on the captures.
Error of the first-order approximation. The error of the approximation is the norm of the difference between and its first-order approximation, relative to the norm of ,
with the norms taken over the queries of a head, or over those of all heads for the pooled value. Table 6 has four rows. The first two give the share of the keys outside the linear range, which are the keys with , and the attention weight that these keys hold. The last two give the error of the approximation for the median head and pooled over the heads. Over the four columns of Table 6, the NVFP4 without compensation puts at most 7.1% of the attention weight on these keys, yet the error of the approximation is 5.9 to 28.5% of the output error of the median head and 68.4 to 97.9% of the pooled output error. The output error thus comes from a minority of heads that leave the linear range. With the compensation, these keys carry at most 0.23% of the weight, and the error of the approximation is 3.0 to 10.9% of the output error of the median head and 8.7 to 56.7% of the pooled output error. The compensation thus brings the output error back toward the linear range, as stated in § 3.2.
Weight changes of one query. Figure 8 shows how the weights of the 16 leading keys of one query change with their centered score errors, for a hard layer of Wan2.2 under the NVFP4 without compensation and with the compensated of DeCo-Attention (Sec. E.1). The dashed line is the first-order approximation of Eq. (15), on which a centered error of 0.5 raises the weight of its key by 50%. With the compensated , the centered errors stay within about a third, which keeps every key on the line, and the two leading keys change their weights by about 11% and 6%. Without compensation, the centered errors reach beyond 1.0, where the exponential of Eq. (14) grows much faster than the line. The two leading keys swap their order. The top-1 key has a centered error of about , which lowers its weight by about 60%, and the top-2 key has a centered error of about , which raises its weight by about 70%. The largest weight now lies on a different key, whose value dominates the output. A score error below one unit thus produces a large output error, which is the amplification described in § 3.1.
Figure 8. Weight changes of one query. Relative weight change of the 16 leading keys of one query of a hard layer of Wan2.2 against their centered score errors, without and with the compensation of DeCo-Attention. Marker area is the exact weight. The dashed line is the first-order approximation of Eq. (15). The compensated keys lie on the line, and without compensation the two leading keys swap their order.
Principal Residual Compensation
This appendix supplements § 3.2. We analyze the energy of the first-order terms and the share that the compensation leaves, with the Hadamard rotation as the step that lets the eigenvalues measure this energy (Sec. B.1), split the error of the compensated into its sources and show how the rotation and the compensation add up (Sec. B.2), vary the rank (Sec. B.3), and give the preparation step by step with its shared basis and its token sample (Sec. B.4).
Energy of the first-order terms
DeCo-Attention reduces the error of a low-precision numerically. It compensates the first-order terms of Eq. (1) along the leading eigenvectors of for the -side term and of for the -side term (§ 3.2). Equation (3) measures the -side term by its energy, its sum of squares over all keys, and splits this energy into one term per eigenvector of . We show which part of each term the compensation leaves, and that the eigenvalues predict it once the rotation has spread the residual evenly.
The -side term has the same form with the operands exchanged. For one key, its energy over all queries is
where and are the eigenvalues and eigenvectors of .
The compensation covers the leading eigenvectors, so the terms beyond the -th remain. Summed over the queries of a head, the share of the energy of the -side term that remains is
and that of the -side term has , and the sum over the keys. For a basis other than these eigenvectors, is the energy of the part of the term outside the directions of the basis over the energy of the term.
Direction of the residual. By Eq. (3), the error energy along an eigenvector is . The eigenvalues alone predict this energy only if the residual is spread evenly over the eigenvectors. The eigenvectors are orthonormal and span all channels, so , and the squared components of the residual along them add up to its energy,
If the residual is spread evenly over the eigenvectors, every component holds the same share, . The error energy of Eq. (3) then reduces to , which follows from the eigenvalues alone. We measure how far the residual is from this case by the direction factor , the measured error energy divided by this value,
with over the queries of the head. An evenly spread residual has . The -side term has the same factor with , and and the sum over the keys .
Hadamard rotation. The Hadamard rotation is meant to spread the residual evenly over the eigenvectors (§ 3.2), so that the eigenvalues measure the error energy. Table 7 tests this with the direction factor and with the first-order error energy of Eq. (3), each without and with the rotation. Without the rotation, is 1.20 to 1.63 over the four sets, because the leading eigenvectors lie along the outlier channels, which also carry the largest rounding errors. The rotation brings to 1.01 to 1.13. Each term of Eq. (3) is then nearly proportional to its eigenvalue, and the first-order error energy falls to 0.64 of its value without the rotation on the hard layers of Wan2.2 and to 0.80 to 0.85 on the other three sets, before any compensation.
| Rotation | Wan2.2 | MiniMax-H3 | |||
| Hard | All | Hard | All | ||
| Direction factor | 1.63 | 1.20 | 1.62 | 1.33 | |
| 1.02 | 1.01 | 1.13 | 1.03 | ||
| First-order error energy | 1.00 | 1.00 | 1.00 | 1.00 | |
| 0.64 | 0.85 | 0.80 | 0.83 |
Table 7. Residual without and with the rotation. Direction factor of Eq. (21) and first-order error energy relative to its value without the rotation, without () and with () the Hadamard rotation, as medians over the heads and means of the and the side. The rotation brings close to 1 and lowers the first-order error energy on every set.
With the rotation, is thus nearly the same along every . The remainder of Eq. (19) is then close to the share of the energy of outside the leading eigenvectors, which is one minus the share that the basis holds in Figure 3b.
Measured remainder. Table 8 gives the measured of both terms over all layers of Wan2.2, with the rotation. With the eigenvectors of and from all tokens as the bases, 25.6% of the -side term and 26.4% of the -side term remain at . These values are close to the complements of the 74.3% of the energy of and the 73.7% of the energy of that the 32 leading eigenvectors hold (Table 12), as the proportionality of § 3.2 predicts. A random basis leaves 74.8%, close to , because random directions hold on average a share of the energy. A few principal directions thus hold most of the error of both terms. Section B.4 discusses the two remaining rows of the table.
| Basis | Tokens | -side term, 16 | -side term, 16 | ||||
| 16 | 32 | 64 | 16 | 32 | 64 | ||
| separate | all | 42.1 | 25.6 | 10.7 | 43.0 | 26.4 | 11.3 |
| shared | all | 44.6 | 27.8 | 11.9 | 45.7 | 28.7 | 12.6 |
| shared (Ours) | 1/256 | 46.9 | 30.8 | 14.3 | 47.8 | 31.3 | 14.9 |
| random | none | 87.4 | 74.8 | 49.6 | 87.4 | 74.8 | 49.6 |
Table 8. First-order terms outside the compensation. Remainder (%) of Eq. (19) of the -side and the -side term of the rotated NVFP4 at , 32 and 64, median over the heads of all layers of Wan2.2, for separate bases of the leading eigenvectors of each operand, one basis shared by and , the shared basis from the 1/256 token sample of the kernels, and a random basis. The eigenvectors of each operand leave about a quarter of each term at , a random basis three quarters.
| Basis | Tokens | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All |
| separate | all | 86.0<br> 87.4 | 73.7<br>74.3 | 93.8<br>96.3 | 83.2<br>85.1 |
| shared | all | 83.8<br> 85.4 | 71.1<br>71.9 | 92.5<br>95.1 | 80.8<br>82.7 |
| shared (Ours) | 1/256 | 82.6<br> 83.8 | 68.5<br>69.0 | 88.9<br>92.4 | 75.8<br>77.5 |
| Overlap of and | 0.76 | 0.75 | 0.73 | 0.67 |
Table 12. Energy in the basis. Share (%) of the energy of and in the 32 directions of separate bases per operand, of one basis shared by and from all tokens, and of the shared basis from the token sample of the kernels, and the overlap of the leading subspaces of and , as medians over the heads. Sharing and sampling each cost a few points of energy.
Effect of the two terms. Of the two terms, the -side term has by far the larger effect on the output on the hard layers. There, the kernel error on Wan2.2 is 18.35% without the compensation of the -side term and 3.97% without that of the -side term (Table 4). The reason is that softmax passes on only the differences of the score errors between the keys of a query (Eq. (14)). For two keys and of one query, the errors of the two terms differ by
Two similar keys can round in opposite directions, so the difference of their residuals is not small. In the -side term, the whole query multiplies it. In the -side term, only the residual multiplies it, which makes it a second-order term, next to times the difference of the keys themselves, which is small for similar keys. The -side term therefore dominates wherever the weight of a query lies on similar keys. On the hard layers it does, as the ablation of Table 4 shows.
Error of the compensated QK
We show that the truncation drops the energy that counts, how much of the error the compensation removes, and how the Hadamard rotation and the compensation add up.
Truncation. Equation (4) expands the -side term of a query in the eigenvectors of and keeps the first terms. The dropped part is the sum over . Its energy over all keys is
The inner sum over the keys is . It equals for and zero otherwise, because the are orthonormal eigenvectors of . The cross terms therefore vanish, and the dropped part has the energy
which are the terms of Eq. (3) beyond the -th, the numerator of Eq. (19). DeCo-Attention thus compensates the first terms of Eq. (3) and drops the other . The eigenvalues are in descending order, , so the dropped directions are those along which the keys have the least energy. The same holds for the -side term.
Parts of the error. The compensated of § 3.2 departs from the exact scores in three places. The second-order term is neglected in Eq. (1), each first-order term is truncated to directions in Eq. (4), and the projections onto are rounded to NVFP4 in Eq. (5). Two more runs separate the three parts. One leaves the projections in FP32, which removes their rounding. The other also compensates all 128 directions, which leaves only the second-order term. The differences between the squared mean errors of the runs give each part (Table 10).
| Rotation | Wan2.2 | MiniMax-H3 | |||
| Hard | All | Hard | All | ||
| First order, compensated | 30.03 | 9.75 | 27.77 | 10.06 | |
| 18.47 | 7.27 | 29.74 | 9.13 | ||
| First order, dropped | 1.62 | 3.20 | 4.35 | 3.91 | |
| 1.69 | 3.29 | 4.64 | 3.97 | ||
| Second-order term | 1.60 | 0.74 | 1.36 | 0.78 | |
| 0.75 | 0.55 | 1.56 | 0.73 | ||
| Rounding of the projections | 2.73 | 1.39 | 2.99 | 1.28 | |
| 1.01 | 0.87 | 3.30 | 1.14 |
Table 10. Parts of the QK error without and with the rotation. Each part as the error (%) that it would give alone. The parts add in energy, that is, in their squares. The first three make up the uncompensated of Table 9, and the last three the compensated . The first-order terms are split into those along the compensated directions and those along the dropped directions. On Wan2.2, the rotation lowers the first-order terms along the compensated directions, the second-order term, and the rounding. The terms along the dropped directions rise marginally.
Table 9 gives the error of alone, with and exact. With the rotation, the compensation lowers the mean error on the hard layers of Wan2.2 from 18.57% to 2.10% and over all layers from 8.00% to 3.45%, and on MiniMax-H3 from 30.14% to 5.90% and from 9.98% to 4.19%. Table 10 gives the parts of these errors. On Wan2.2 with the rotation, the first-order terms in the 32 compensated directions amount to 18.47% on the hard layers and to 7.27% over all layers, most of the error of the uncompensated . Of the parts that remain, the first-order terms in the dropped directions are the largest on every set, 1.69% and 3.29% on Wan2.2.
| Rotation | Wan2.2 | MiniMax-H3 | |||
| Hard | All | Hard | All | ||
| Uncompensated | 30.12 | 10.29 | 28.14 | 10.82 | |
| 18.57 | 8.00 | 30.14 | 9.98 | ||
| Compensated | 3.56 | 3.57 | 5.45 | 4.19 | |
| 2.10 | 3.45 | 5.90 | 4.19 | ||
| Whole kernel | 3.94 | 3.83 | 5.82 | 4.40 | |
| 2.80 | 3.73 | 6.31 | 4.40 |
Table 9. Error without and with the rotation. Mean relative L2 error (%) without () and with () the Hadamard rotation, for alone with and exact, uncompensated and compensated at , and for the whole kernel with FP8 . The rotation lowers the errors on Wan2.2 and raises those on the hard layers of MiniMax-H3.
Rotation and compensation. The rotation helps in three ways, and its gain adds to that of the compensation. First, it lowers the score error before any compensation, on the hard layers of Wan2.2 from 30.12% to 18.57% (Table 9). It spreads the residuals of and over all directions, which takes them off the directions in which the other operand is largest (Sec. B.1). Second, the evenly spread residual lets the eigenvalues measure the error, on which choice of the compensated directions rests. Third, it evens out the values within a block of 16 channels, which lowers the two smaller parts of the compensated error (Tab. 10). The rounding of the projections falls from 2.73% to 1.01% and the second-order term from 1.60% to 0.75%. Most of this gain comes from the heads in which two large values share a block, where NVFP4 rounds the smaller one coarsely.
The cost is a weaker compensation of the first-order terms. Without the rotation, the residual lies along the leading eigenvectors, which the compensation covers. The rotation moves a small part of it into the dropped directions, whose error rises from 1.62% to 1.69%. With the compensation, the rotation lowers the error of the from 3.56% to 2.10% and the error of the kernel from 3.94% to 2.80%.
Blocks with one dominant value do not gain from the rotation. The block scale stores the largest value of a block almost exactly, so such a block is quantized well as it is. The rotation spreads this value over the channels, where every part of it is rounded to 4 bits. Some heads of the hard layers of MiniMax-H3 are of this kind. There the unrotated operands have the smaller parts of the error and the smaller error of the kernel, 5.82% against 6.31% (Table 9 and Table 10). Over all layers of MiniMax-H3, the error of the kernel is 4.40% with and without the rotation, and on Wan2.2 the rotation lowers it. The kernels therefore keep it for every model.
Compensation rank
We show that the error falls with the rank and that is the largest rank that does not add an MMA to the on GB300. Table 11 varies the rank. On the hard layers of Wan2.2, raises the error from 2.80% to 3.97% and lowers it to 2.42%, and over all layers lowers it from 3.73% to 2.81%.
| Channels | MMAs GB300 | MMAs VR200 | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All | |
| 0 | 128 | 2 | 1 | 18.70 | 8.10 | 29.40 | 10.00 |
| 16 | 160 | 2 | 2 | 3.97 | 4.77 | 10.08 | 5.89 |
| 32 (Ours) | 192 | 2 | 2 | 2.80 | 3.73 | 6.31 | 4.40 |
| 64 | 256 | 3 | 2 | 2.42 | 2.81 | 4.92 | 3.18 |
Table 11. Rank of the compensation. channels, NVFP4 MMAs of the per tile on GB300 and VR200, and relative L2 error (%) of DeCo-Attention with FP8 , per rank . is the largest rank with two MMAs on GB300.
A higher rank costs time in the preparation and in the kernel. The preparation projects every token of and onto directions twice, and at it takes 2.7 to 3.6% of the attention time (Sec. B.4). In the kernel, the operands and have channels, 192 at , which is 50% more than the 128 of and , so every tile loads 50% more bytes of them. The also takes more NVFP4 MMAs per tile once its channels exceed the reduction depth of an MMA, which is up to 96 on GB300, 128 on VR200, and 64 on RTX PRO 6000. On GB300, and take two MMAs per tile, as many as the uncompensated , and takes a third. On VR200, every rank above zero takes two MMAs, one more than the uncompensated . On RTX PRO 6000, and take three MMAs per tile and four.
We therefore use on every GPU. It is the largest rank that does not add an MMA on GB300, and it takes as many MMAs as on VR200 and RTX PRO 6000. On VR200, would take the same two MMAs, but the kernels keep one rank for all GPUs.
Preparation
We give the preparation of § 3.2 step by step. Algorithm 1 lists it for one head. It runs as a chain of fused kernels, an eigensolver for the bases of all heads and one pass each over and and over .
Algorithm 1 Preparation of one head
Require: , rank , rotation , block size of
Ensure: with channels, , block means
sample of tokens
Eq. (6) on and
leading eigenvectors of
for each token do
, ,
, ,
end for
for each block of keys do
mean of over
for
end for
• Rotation. is a normalized Hadamard matrix of order 128 with random signs on its rows. Since , the rotation leaves the scores and the eigenvalues of and unchanged.
• Sampling. The sample holds 1/256 of the tokens, at least , and is drawn before the pass over and , which needs . On a sequence of text, audio and video tokens, half of the sample comes from the text and audio tokens, or all of them when they are fewer, and the rest from the video tokens, so that both groups weigh equally in the basis.
• and . Each operand holds three groups of channels, for the 128 channels of , the 32 of and the 32 of . rounds every group to NVFP4, E2M1 elements with an unsigned E4M3 scale per block of 16 channels,
where is the largest magnitude of the group in the head and 6 and 448 are the largest values of E2M1 and E4M3. The block scale maps the largest element of its block to 6, and keeps every block scale at or below 448. Each group has its own , because the projections of the residual are much smaller than the other two groups.
. With FP8 , the blocks hold 128 keys and rounds to E4M3 with one power-of-two scale per tensor. With NVFP4 , the blocks hold 16 keys (Sec. C).
Shared basis. We show that the leading subspaces of and overlap enough for one shared basis to hold nearly as much of the energy of each operand as separate bases, and that a basis of channels or a random basis leaves most of the error. DeCo-Attention shares one basis between and (§ 3.2). Table 12 measures the overlap of the two leading subspaces as the mean share of a leading eigenvector of that lies in the span of the leading eigenvectors of , which is 1 for identical subspaces and for unrelated ones. At the overlap is 0.67 to 0.76 over the four sets, with 0.75 over all layers of Wan2.2 as quoted in § 3.2. Over all layers of Wan2.2, the shared basis holds 71.9% of the energy of , against 74.3% for separate bases. Separate bases give nearly the same error (Table 13), 2.91% against 2.80% on the hard layers of Wan2.2 and 5.97% against 6.31% on those of MiniMax-H3.
| Basis | Rotation | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All |
| shared (Ours) | ✓ | 2.80 | 3.73 | 6.31 | 4.40 |
| separate | ✓ | 2.91 | 3.77 | 5.97 | 4.35 |
| channels | ✓ | 15.16 | 6.78 | 24.99 | 8.22 |
| channels | × | 4.48 | 4.56 | 7.75 | 5.84 |
| random | ✓ | 14.56 | 6.80 | 25.74 | 8.49 |
Table 13. Basis of the compensation. Relative L2 error (%) of DeCo-Attention with FP8 with the shared basis, with separate bases and per term, with the 32 channels of largest energy as the basis, and with a random orthonormal basis, with (✓) or without (×) the Hadamard rotation. Separate bases change the error by less than half a point. With the rotation, a channel basis or a random basis leaves most of the error.
Table 13 also replaces the principal directions. The channel basis takes the 32 channels with the largest diagonal entries of , so that the extra channels hold the residuals and the quantized values of these channels, as ARQuant does for outlier channels (Meng et al., 2026). With the rotation, this basis leaves about as much error as a random basis, because the rotation spreads the energy over all channels. Without the rotation, the channel basis reaches 4.48% on the hard layers of Wan2.2 and 7.75% on those of MiniMax-H3, against 3.94% and 5.82% for the unrotated shared basis (Table 9). With the same number of extra channels, the principal directions thus remove the most error on every set, which shows the benefit of compensating along them.
Token sample. We show that a basis estimated from a small sample of the tokens holds nearly as much energy and gives nearly the same error as a basis from all tokens. DeCo-Attention estimates the basis from a random sample of 1/256 of the tokens (§ 3.2). Over all layers, the sampled basis holds 69.0% of the energy of on Wan2.2 and 77.5% on MiniMax-H3, against 71.9% and 82.7% for the shared basis from all tokens (Table 12). On Wan2.2, it leaves 30.8% and 31.3% of the two first-order terms, against 27.8% and 28.7% (Table 8). Sharing and sampling together thus lower the energy of in the basis over all layers of Wan2.2 from 74.3% to 69.0%, the two values of § 3.2. A basis from 1/64 or from all of the tokens lowers the error on the hard layers of Wan2.2 from 2.80% to 2.77% and on those of MiniMax-H3 from 6.31% to 6.07% and 5.78% (Table 14). The larger gain on MiniMax-H3 comes from the token types. Half of the sample is drawn from the text and audio tokens, whereas a basis from all tokens follows the video tokens.
| Tokens | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All |
| 1/256 (Ours) | 2.80 | 3.73 | 6.31 | 4.40 |
| 1/64 | 2.77 | 3.65 | 6.07 | 4.26 |
| all | 2.77 | 3.62 | 5.78 | 3.99 |
Table 14. Token sample of the basis. Relative L2 error (%) of DeCo-Attention with FP8 with the basis estimated from 1/256, 1/64, or all of the tokens. The sample costs 0.03 points on the hard layers of Wan2.2 and about half a point on those of MiniMax-H3.
Common scale of the three channel groups. The MMA over the 192 channels of and sums the three groups into one score, which can carry only one scale . The kernel takes as the largest of the three products of a group scale and its group scale. I-ExpCast can raise further, because it folds into the multiplier of its FMA, an FP32 subnormal, which keeps at or above with FP8 and with NVFP4 (Eq. (8)). A group whose product lies below shrinks its block scales by the ratio, which leaves the scores unchanged. A block scale below , the end of the normal range of E4M3, loses accuracy. The kernel therefore spreads the shrink over the block scales of and . The group scales and are powers of two, so the shrink shifts the exponent of a block scale without a second rounding.
Cost. Per head, the attention takes multiply-adds for the and for the , and the preparation for the rotation of and and for the four projections. The Gram matrices of the sample and the block means of add little, and the eigendecomposition of a matrix does not grow with . The preparation is thus linear in and the attention quadratic, with the ratio
about for and , or 0.2% for the 75,600 tokens of a Wan2.2 call. In time, the preparation adds 2.7 to 3.6% to the attention (Table 27), as stated in § 3.2. This exceeds its share of the operations, partly because the rotation and the projections run as BF16 and TF32 MMAs, which are slower than the NVFP4 and FP8 MMAs of the attention, and because every operand is read and written once.
| Method | QK/PV | Backend | GB300 Wan2.2 attention | GB300 Wan2.2 prep. | GB300 MiniMax-H3 attention | GB300 MiniMax-H3 prep. | VR200 Wan2.2 attention | VR200 Wan2.2 prep. | VR200 MiniMax-H3 attention | VR200 MiniMax-H3 prep. |
| BF16 | 16/16 | FA4, cuDNN / FA4 | 122.5 (1.00×) | 0.00 | 83.5 (1.00×) | 0.00 | 72.6 (1.00×) | 0.00 | 50.5 (1.00×) | 0.00 |
| QK16PV8 | 16/8 | TRT-LLM / FlashInfer | 102.8 (1.19×) | 0.65 | 69.8 (1.20×) | 0.46 | 59.8 (1.22×) | 0.59 | 41.9 (1.21×) | 0.43 |
| Per-tensor FP8 | FlashInfer / cuDNN | 79.2 (1.55×) | 1.95 | 52.7 (1.58×) | 1.40 | 43.7 (1.66×) | 1.78 | 29.0 (1.74×) | 1.30 | |
| MXFP8 | 8/8 | cuDNN | 82.7 (1.50×) | 3.37 | 54.5 (1.53×) | 2.32 | 44.2 (1.64×) | 3.51 | 29.5 (1.72×) | 2.41 |
| SageAttention2, FP8 QK | TRT-LLM | 103.1 (1.21×) | 1.71 | 67.9 (1.23×) | 1.15 | 52.6 (1.38×) | 1.99 | 34.8 (1.45×) | 1.36 | |
| VC-Attention, FP8 QK | FlashInfer | 83.0 (1.48×) | 3.63 | 51.0 (1.53×) | 2.44 | 48.1 (1.51×) | 2.21 | 30.7 (1.65×) | 1.46 | |
| NVFP4 QK, FP8 PV | TRT-LLM | 83.7 (1.49×) | 11.53 | 56.3 (1.48×) | 7.90 | 44.9 (1.62×) | 12.59 | 31.3 (1.61×) | 8.67 | |
| Attn-QAT | 4/8 | Attn-QAT | 77.5 (1.60×) | 0.96 | 51.1 (1.62×) | 0.66 | — | — | — | — |
| DeCo-Attention (Ours) | ours | 57.5 (2.13×) | 1.55 | 37.2 (2.25×) | 1.09 | 29.2 (2.49×) | 1.05 | 19.6 (2.58×) | 0.70 | |
| NVFP4 | FlashInfer | 74.8 (1.66×) | 0.99 | 49.9 (1.67×) | 0.64 | — | — | — | — | |
| DeCo-Attention (Ours) | 4/4 | ours | 54.7 (2.28×) | 1.41 | 36.1 (2.32×) | 1.00 | 32.0 (2.27×) | 1.02 | 21.3 (2.38×) | 0.74 |
Table 27. Kernel speed on GB300 and VR200. Attention time (ms) of a Wan2.2 and a MiniMax-H3 call, with the speedup over BF16 attention, the method’s preparation outside the kernel, and the backend of each kernel, written GB300 / VR200 where the two GPUs differ and Wan2.2, MiniMax-H3 where the two models differ. Each speedup is over the BF16 attention of the kernel’s own timing session, whose time is within 2% of the BF16 row. A dash marks a method without a kernel for the GPU. Blue marks the shortest attention time of each 4-bit- group.
Smoothing of V
DeCo-Attention smooths before it quantizes , following the V-Smooth of VC-Attention (§ 5.1) ((Li et al., 2026)). We give the method, show what the smoothing removes from the error of each operand of the product, and show why the FP8- kernels smooth per 128 keys and the NVFP4- kernels per 16 keys.
Method. Every key has a value vector , and the keys of a block of consecutive keys share their mean . The smoothing takes this shared part out of the low-precision . It subtracts from the values of its block, the kernel multiplies with the centered in low precision, and a small product in high precision adds the block means back. Let be the exponential of the score of key relative to the row base of row and the block that holds key . The numerator of the attention output splits exactly into the centered values and the block means,
The kernel rounds only the first term and adds the second with its block sums of ,
where is the quantized of the MMA and is the block sum of that the kernel forms (Sec. D.2). VC-Attention reorders the tokens by k-means and subtracts the mean of each tile of 128 tokens. DeCo-Attention keeps the token order, in which neighboring video tokens are similar, and smooths per block of 16 keys with NVFP4 . The small blocks follow more closely than tiles of 128 tokens and do not need a grouping in token order (Table 15).
| Block | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All | |
| FP8 | none | 2.95 | 3.75 | 6.37 | 4.44 |
| FP8 | 16 | 2.66 | 3.70 | 6.29 | 4.38 |
| FP8 | 32 | 2.73 | 3.71 | 6.31 | 4.39 |
| FP8 | 128 (Ours) | 2.80 | 3.73 | 6.31 | 4.40 |
| NVFP4 | none | 7.50 | 5.81 | 9.16 | 6.55 |
| NVFP4 | 16 (Ours) | 5.68 | 5.09 | 8.24 | 5.66 |
| NVFP4 | 32 | 6.15 | 5.26 | 8.37 | 5.78 |
| NVFP4 | 128 | 6.58 | 5.43 | 8.44 | 5.85 |
Table 15. Block of the smoothing. Relative L2 error (%) of DeCo-Attention with as it is (none) and smoothed per block of 16, 32 or 128 keys, per format. The smoothing does not lower the error by much with FP8 and lowers it most with NVFP4 and small blocks.
Effect on P and V. The smoothing lowers the error of both operands of the . For , it returns the shared part of every contribution that a 4-bit drops. An NVFP4 rounds every probability below 1/24 of its block maximum to zero, so without the smoothing the output loses the whole contribution of such a key. With the smoothing, the part of this contribution returns to the output through the block sum , which the NVFP4- kernels form from most probabilities before the rounding (Sec. D.2). Only the part is lost. For , the centered values have zero mean in every block, so these losses have both signs and largely cancel, where the losses of the uncentered values all point along the block mean. The centered values are also smaller than , so a floating-point format rounds them with a smaller error, and the block means stay in high precision. Figure 9 shows the result. Without the smoothing, the errors of the rows lean to one side, and with it they center near zero. The cost is one more MMA, which multiplies the block sums of with the block means in high precision and which smaller blocks need more often.
Figure 9. Bias of a 4-bit P. Error of each query row of a typical head of Wan2.2 along the mean error of the head, with rounded to NVFP4 and exact, without and with smoothing per 16 keys. Without the smoothing the row errors lean to one side, with it they center near zero.
Block size. The block size follows from the accuracy and from what bounds each kernel. Table 15 gives the error per block size. An FP8 and round finely already, so the smoothing does not lower the error by much. On the hard layers of Wan2.2, blocks of 128 keys lower the error from 2.95% to 2.80% and blocks of 16 keys to 2.66%, but the smaller blocks need the extra MMA four times as often, once per two key tiles instead of eight. The FP8- kernel already runs close to the time of its MMAs (Sec. D.3), so every extra MMA lengthens it. It therefore smooths per 128 keys, which lengthens the kernel on GB300 from 55.8 to 58.0 ms on a Wan2.2 call (Table 5). An NVFP4 gains much more, and most from small blocks. Blocks of 16 keys lower the error from 7.50% to 5.68% on the hard layers of Wan2.2 and from 5.81% to 5.09% over all layers, against 6.58% and 5.43% with 128 keys. On GB300 and VR200, the softmax warps bound the NVFP4- kernel (Sec. D.2), so its tensor cores have room for the extra MMAs. The NVFP4- kernels therefore smooth per 16 keys.
Kernels
This appendix supplements § 3.3. On GB300 and VR200, the softmax between the two MMAs bounds the kernel, so the faster 4-bit MMA shortens the kernel only when the softmax is shortened as well. The three optimizations of § 3.3 do this. We derive the bit pattern of I-ExpCast, bound the error of its approximation and measure its accuracy and speed in the kernels (Sec. D.1), measure the row sum and the block sums of in the MMA (Sec. D.2), and measure the threshold of the lazy rescale (Sec. D.3).
I-ExpCast
We show that I-ExpCast overestimates a probability by at most 6%, which moves the attention weights by less than a centered score error of 0.06, and that it forms faster than every other way in the kernels at the error of the exponential on the SFU.
Bit pattern. An FP16 number holds a sign bit, an exponent field of five bits, and a mantissa field of ten bits. For , its value is , where 15 is the exponent bias of the format, and the 16 bits of a positive number read as the integer . Let with the integer and . Then with , so its fields are and , and its bit pattern is
where the approximation replaces by . This is Eq. (7). It holds for , which covers every value of E4M3 and E2M1.
Approximation error. The pattern has the exponent field and the mantissa field , so it is the FP16 number , whereas . I-ExpCast thus forms the probability times
which is exact at integer and largest at , an overestimate of up to 6%. The kernel divides the output by the row sum of the same , so the weight of key is . A factor that all keys share cancels in this ratio. Since every lies between 1 and 1.06, each weight changes by about 6% at most. By Eq. (2), this is the effect of a centered score error of about 0.06, far below the 1.0 at which the softmax leaves its linear range (Sec. A.2). The codes of I-ExpCast therefore follow those of the exponential and rounding over the whole range, subnormal codes included (Figure 5).
Accuracy. With only rounded, I-ExpCast stays close to the exponential followed by rounding in both formats (Table 1). The kernel scales down by to leave room for the lazy rescale (Sec. D.3). A larger threshold therefore moves more of the small probabilities into the subnormal range of the format, where the ways of forming the codes differ most. For an E4M3 , ExpCast makes the subnormal codes too small. Over all layers of Wan2.2, its error grows from 1.02% at to 3.26% at and 8.88% at , whereas I-ExpCast has 0.68%, 0.93% and 2.72%, against 0.40%, 0.88% and 2.72% for the exponential and rounding. For an E2M1 , Direct-P (Hu, 2026) forms the codes from a linear function of the score and has 5.06% at every threshold, whereas I-ExpCast has 1.90% at , below the 2.09% of the exponential and rounding. In the kernels (Table 16), I-ExpCast has 2.80% on the hard layers of Wan2.2 with FP8 , against 2.78% for the exponentials on the SFU, whereas ExpCast raises this error to 3.13%.
| PV | Exponential | Time (ms) | Wan2.2 | Wan2.2 | MiniMax-H3 | MiniMax-H3 |
| Hard | All | Hard | All | |||
| FP8 | I-ExpCast (Ours) | 57.83 | 2.80 | 3.73 | 6.32 | 4.40 |
| FP8 | ExpCast | 60.05 (+3.6%) | 3.13 | 4.82 | 6.87 | 5.08 |
| FP8 | SFU | 70.24 (+21.5%) | 2.78 | 3.69 | 6.27 | 4.37 |
| FP8 | SFU and polynomial | 72.67 (+25.7%) | 2.78 | 3.69 | 6.27 | 4.37 |
| NVFP4 | I-ExpCast (Ours) | 54.17 | 5.68 | 5.09 | 8.24 | 5.67 |
| NVFP4 | SFU | 72.77 (+34.3%) | 5.67 | 5.07 | 8.23 | 5.65 |
| NVFP4 | Direct-P† | 75.44 (+40.2%) | nan | nan | nan | nan |
Table 16. Forming in the kernels. Attention time of a Wan2.2 call and relative error (%) of the FP8- and NVFP4- kernels of DeCo-Attention on GB300 with each way of forming , as the mean over the hard layers and over all layers. ExpCast is that of VC-Attention, SFU computes every exponential on the special-function unit, and the polynomial of FlashAttention-4 replaces it for one eighth of the score pairs. †Direct-P is timed in its released kernel against the NVFP4- kernel of the same session. In every set of calls, some of its outputs are not finite, so its errors are nan. I-ExpCast is the fastest way in both formats at the error of the exponentials on the SFU.
Performance. I-ExpCast takes 6 instructions per four scores and does not use the SFU (Figure 10). The times of Table 16 show two things. First, I-ExpCast saves a large part of the kernel time. With every exponential on the SFU, the

Figure 10. Cost of forming P. Instructions that form the codes of from a pair of scores in the softmax warps, in PTX names, with their count per four scores on GB300 and VR200, for exp2 on the SFU, ExpCast of VC-Attention, I-ExpCast, and Direct-P. Only (a) uses the SFU, for 2 of its 8 instructions. The constants and fold in the score scale, the row base, and the scale, and in Direct-P its linear map. (a) to (c) form E4M3 codes and (d) E2M1 codes, which I-ExpCast forms with an E2M1 conversion as its last instruction.
FP8- kernel takes 21.5% longer. Second, it saves more with NVFP4 , where the SFU costs 34.3%, because the faster 4-bit MMA leaves the softmax a larger share of the kernel. The polynomial of FlashAttention-4 (Zadouri et al., 2026) does not close this gap. A score pair takes 13 instructions on the polynomial against 4 on the SFU. With the polynomial on one eighth of the score pairs and the SFU on the others, the FP8- kernel takes 25.7% longer than with I-ExpCast on GB300 and 36.1% longer on VR200, more than with the SFU alone. This is the slowdown that § 3.3 refers to. ExpCast also keeps the exponentials off the SFU, but its 7 instructions take 3.6% longer. Direct-P needs only 4 instructions, but its released kernel takes 40.2% longer than the NVFP4- kernel of DeCo-Attention. In every set of calls, some of its outputs are not finite, which leaves its error unmeasured (Table 16).
Row sum and block sums
We show that the row sum of in the MMA does not cost accuracy against a sum on the ALU and saves 7.2% of the kernel time, and we give how the kernels form the block sums that the smoothing of needs. The ones column appended to sums the that the multiplies, in the format of the , so the denominator matches the rounded numerator (§ 3.3). Table 17 compares it with a sum on the ALU of the softmax warps. The ALU sum of the same E4M3 values gives the same error in every column, and takes 7.2% longer. The row sum through the E4M3 MMA does not lose accuracy and moves the sum from the softmax warps, which bound the kernel, to the tensor cores. Table 5 measures the same step before the lazy rescale, with 62.2 against 57.3 ms.
| Row sum of P | Time (ms) | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All |
| MMA (Ours) | 54.93 | 2.95 | 3.75 | 6.37 | 4.44 |
| ALU, E4M3 values | 58.89 (+7.2%) | 2.95 | 3.75 | 6.37 | 4.44 |
| ALU, FP16 values | 57.91 (+5.4%) | 3.02 | 3.79 | 6.44 | 4.48 |
Table 17. Row sum of P. Attention time of a Wan2.2 call and relative L2 error (%) of the FP8- kernel of DeCo-Attention on GB300 with each way of summing , without the smoothing of , as the mean over the hard layers and over all layers. The sum in the MMA is the fastest and does not cost accuracy.
Summing the FP16 values before the rounding takes 5.4% longer than the MMA and raises the error, from 2.95% to 3.02% on the hard layers of Wan2.2, because this sum does not match the rounded of the numerator.
The smoothing of needs the sums of per block of keys (Sec. C). With FP8 , each of eight consecutive key tiles has its ones in a column of its own, and one BF16 MMA per eight key tiles adds the block means to the output. With a 4-bit , sums formed by the MMA would omit the probabilities that round to zero. The NVFP4- kernels therefore sum the unquantized on the ALU of the softmax warps where their time allows. On RTX PRO 6000, the MMAs bound the kernel, and it accumulates the row sum and all block sums in registers. On GB300 and VR200, the softmax warps bound the kernel. These kernels sum three of the four pairs of 16-key blocks of a tile on the ALU and leave the fourth pair to the MMA. Summing it on the ALU as well would take about 6% longer and lower the error of the kernel by about 1%.
Threshold of the lazy rescale
We show that the threshold keeps the error of a rescale of every tile and nearly the speed of . The lazy rescale of § 3.3 moves the row base only when a tile exceeds it by more than a factor of , so a probability reaches up to of the row base. FP8 kernels scale by before the conversion, which keeps it below the largest E4M3 value of 448. The smallest E4M3 subnormal then stands for
of the row base, at and at , the two values of § 3.3. Table 18 measures both kernels on GB300 at , 4 and 8. With an FP8 , raises the mean error over all layers from 3.73% to 4.50% on Wan2.2 and from 4.40% to 5.05% on MiniMax-H3. changes the errors only in the second decimal but lengthens the attention by 2.5%. The block scales of an NVFP4 follow the block maxima, so its errors differ only in the second decimal between the thresholds, and lengthens its attention by 4.5%. Both kernels therefore keep , which is within 0.5% of the time of .
| PV | Time (ms) | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All | |
| FP8 | 0 | 59.09 (+2.5%) | 2.79 | 3.70 | 6.27 | 4.36 |
| FP8 | 4 (Ours) | 57.63 | 2.80 | 3.73 | 6.32 | 4.40 |
| FP8 | 8 | 57.36 (-0.5%) | 2.99 | 4.50 | 6.85 | 5.05 |
| NVFP4 | 0 | 56.63 (+4.5%) | 5.67 | 5.07 | 8.24 | 5.65 |
| NVFP4 | 4 (Ours) | 54.19 | 5.68 | 5.09 | 8.24 | 5.67 |
| NVFP4 | 8 | 54.01 (-0.3%) | 5.70 | 5.13 | 8.28 | 5.70 |
Table 18. Threshold of the lazy rescale. Attention time of a Wan2.2 call and relative L2 error (%) of the FP8- and NVFP4- kernels of DeCo-Attention on GB300 at three thresholds , as the mean over the hard layers and over all layers. keeps the error of at nearly the time of .
With the three optimizations of this appendix, the MMAs of a tile of the FP8- kernel on GB300 take, at their full rate, about nine tenths of the measured time of the tile, so the kernel runs close to the time of its MMAs (§ 5.4).
Evaluation Details
This appendix supplements § 5. We give the setup (Sec. E.1), further accuracy results (Sec. E.2), and the times behind the speedups (Sec. E.3).
Setup
We give the models and captures, the software, the settings of every method, and the protocols of the four measurements, the end-to-end quality, the kernel error, the kernel time and the end-to-end time.
Models and captures. Table 19 lists the models of the kernel-level evaluation. We capture the BF16 inputs , , and of their self-attention calls, on Wan2.2 those of the conditional guidance branch. The hard layers are the three layers with the largest error of per-tensor FP8 attention. On Wan2.2, each hard layer is captured at three steps per expert, and the all-layer calls take every layer at the middle step of each expert, steps 6 and 26. MiniMax-H32 runs with its PDD LoRA as in VC-Attention, which reduces the sampling to eight forward passes. The base model is guidance-distilled and runs without classifier-free guidance. Its calls hold text, video, and audio tokens in one joint attention. The hard layers are captured at passes 0, 4, and 7, and the all-layer calls take all 50 layers at pass 4.
| Wan2.2 | MiniMax-H3 | |
| Resolution | 720p | 1344 × 768 |
| Frames | 81 | 243, with audio |
| Tokens per call | 75,600 | 73,512 |
| Heads | 40 | 56 |
| Hard layers | 33, 34, 38 | 49, 45, 1 |
| Hard calls | 18 | 9 |
| All-layer calls | 80 | 50 |
Table 19. Models and captures of the kernel-level evaluation. Output of each model, size of a self-attention call, and the captured calls.
Software. Every kernel that we run uses PyTorch 2.14 and CUDA 13.4. Our kernels and FlashAttention-4 4.0.0b37 are built with CuTe DSL 4.8.1, and the other baselines with the versions of their releases. cuDNN is 9.25 on GB300 and 9.26 on VR200 and RTX PRO 6000. On RTX PRO 6000, the kernels run in the TensorRT-LLM 1.4.0rc2 container.
Method settings. Every baseline keeps the quantization scheme of its method, and where a method has several kernels we time the fastest. Table 20 lists where each implementation comes from.
| Method | QK/PV | Source |
| BF16, FlashAttention-4 | 16/16 | public release |
| BF16, cuDNN | 16/16 | TensorRT-LLM |
| QK16PV8 | 16/8 | TensorRT-LLM |
| Per-tensor FP8 | 8/8 | TensorRT-LLM |
| MXFP8 | 8/8 | TensorRT-LLM |
| SageAttention2, INT8 or FP8 QK | 8/8 | TensorRT-LLM |
| VC-Attention, INT8 or FP8 QK | 8/8 | TensorRT-LLM |
| NVFP4 QK, FP8 PV | 4/8 | TensorRT-LLM |
| Attn-QAT | 4/8 | public release |
| NVFP4 | 4/4 | TensorRT-LLM |
| SageAttention3 | 4/4 | public release |
| VC-Attention, 4-bit | 4/4 | our reproduction |
| Direct-P | 4/4 | public release |
Table 20. Sources of the implementations. Where the implementation of each method comes from.
BF16 attention. The reference videos of the end-to-end quality come from FlashAttention-4. The BF16 row of Table 2 is the BF16 attention of cuDNN, scored against them, and the VBench tables hold both.
QK16PV8, per-tensor FP8, MXFP8, NVFP4 QK with FP8 PV, and NVFP4 are the configurations of TensorRT-LLM VisualGen with these formats. NVFP4 with FP8 subtracts the mean of and applies SmoothQuant scales (Xiao et al., 2023) before the quantization.
SageAttention has three configurations. SageAttention2 scales per token and per 16 tokens, with INT8 or FP8 , and SageAttention3 is fully 4-bit.
VC-Attention groups the video tokens of a call by k-means and smooths per tile of 128 tokens. As for SageAttention, we run its configurations with INT8 , with FP8 , and fully 4-bit.
Attn-QAT runs without the retraining and casts to E4M3 without a scale. A prompt whose output is not finite is generated again.
Reported rows. The rows of Table 2 and 21 marked with a dagger are means that VC-Attention reports, quoted unchanged. They are SageAttention2 and VC-Attention with INT8 on B200, since their INT8 needs the INT8 tensor cores of B200, and SageAttention3 and 4-bit VC-Attention on RTX PRO 6000. Our own runs of the two INT8 configurations on B200 reproduce the reported PSNR to within about 1.4 dB (Tab. 23). That of SageAttention2
Table 21 | End-to-end quality without a reference. VBench subject consistency (S.C.), imaging quality (I.Q.), and aesthetic quality (A.Q.) of the videos of Table 2. Blue cells mark the best score within each group with a 4-bit . The row of FlashAttention-4 holds the reference videos, and the row of cuDNN those of the BF16 attention of cuDNN, the BF16 row of Table 2. Means reported by VC-Attention, which does not report A.Q., read against its own BF16 row.
| Method | QK/PV | Wan2.2 S.C.↑ | Wan2.2 I.Q.↑ | Wan2.2 A.Q.↑ | LongCat-Video S.C.↑ | LongCat-Video I.Q.↑ | LongCat-Video A.Q.↑ | HunyuanVideo-1.5 S.C.↑ | HunyuanVideo-1.5 I.Q.↑ | HunyuanVideo-1.5 A.Q.↑ | MiniMax-H3 S.C.↑ | MiniMax-H3 I.Q.↑ | MiniMax-H3 A.Q.↑ |
| BF16, FlashAttention-4 | 16/16 | 0.930 | 0.700 | 0.669 | 0.938 | 0.683 | 0.678 | 0.922 | 0.672 | 0.659 | 0.905 | 0.686 | 0.647 |
| BF16 | 16/16 | 0.932 | 0.703 | – | 0.941 | 0.694 | – | 0.933 | 0.680 | – | 0.899 | 0.668 | – |
| BF16, cuDNN | 16/16 | 0.931 | 0.700 | 0.668 | 0.938 | 0.684 | 0.679 | 0.924 | 0.670 | 0.658 | 0.904 | 0.686 | 0.647 |
| QK16PV8 | 16/8 | 0.931 | 0.700 | 0.672 | 0.937 | 0.682 | 0.680 | 0.923 | 0.668 | 0.656 | 0.906 | 0.686 | 0.647 |
| Per-tensor FP8 | 8/8 | 0.927 | 0.695 | 0.671 | 0.938 | 0.681 | 0.677 | 0.915 | 0.671 | 0.653 | 0.902 | 0.677 | 0.644 |
| MXFP8 | 8/8 | 0.927 | 0.696 | 0.669 | 0.937 | 0.681 | 0.677 | 0.917 | 0.666 | 0.650 | 0.904 | 0.675 | 0.647 |
| SageAttention2 | 8/8 | 0.931 | 0.703 | – | 0.941 | 0.697 | – | 0.931 | 0.676 | – | 0.897 | 0.671 | – |
| w/ FP8 QK | 8/8 | 0.931 | 0.698 | 0.674 | 0.938 | 0.681 | 0.679 | 0.920 | 0.670 | 0.653 | 0.904 | 0.676 | 0.645 |
| VC-Attention | 8/8 | 0.932 | 0.705 | – | 0.941 | 0.696 | – | 0.931 | 0.677 | – | 0.897 | 0.669 | – |
| w/ FP8 QK | 8/8 | 0.931 | 0.700 | 0.669 | 0.938 | 0.683 | 0.679 | 0.921 | 0.674 | 0.657 | 0.904 | 0.686 | 0.646 |
| NVFP4 QK, FP8 PV | 4/8 | 0.918 | 0.689 | 0.657 | 0.935 | 0.681 | 0.676 | 0.899 | 0.645 | 0.594 | 0.899 | 0.668 | 0.636 |
| Attn-QAT | 4/8 | 0.919 | 0.684 | 0.661 | 0.911 | 0.658 | 0.613 | 0.895 | 0.642 | 0.591 | 0.896 | 0.669 | 0.635 |
| DeCo-Attention (Ours) | 4/8 | 0.931 | 0.699 | 0.669 | 0.937 | 0.683 | 0.676 | 0.921 | 0.675 | 0.659 | 0.902 | 0.687 | 0.647 |
| NVFP4 | 4/4 | 0.918 | 0.684 | 0.660 | 0.932 | 0.685 | 0.672 | 0.877 | 0.616 | 0.513 | 0.900 | 0.673 | 0.637 |
| SageAttention3 | 4/4 | 0.925 | 0.697 | – | 0.938 | 0.692 | – | 0.927 | 0.677 | – | 0.907 | 0.686 | – |
| VC-Attention, 4-bit | 4/4 | 0.931 | 0.707 | – | 0.939 | 0.695 | – | 0.934 | 0.679 | – | 0.909 | 0.686 | – |
| DeCo-Attention (Ours) | 4/4 | 0.932 | 0.700 | 0.671 | 0.939 | 0.682 | 0.680 | 0.920 | 0.676 | 0.656 | 0.905 | 0.690 | 0.646 |
Table 21.
Table 22 | End-to-end motion and prompt alignment without a reference. VBench motion smoothness (M.S.), dynamic degree (D.D., the fraction of videos rated dynamic), and overall consistency (O.C., the similarity of video and prompt) of the runs of Tab. 21. Blue cells mark the best M.S. and O.C. within each group with a 4-bit , and the D.D. closest to that of BF16 FlashAttention-4.
| Method | QK/PV | Wan2.2 M.S.↑ | Wan2.2 D.D. | Wan2.2 O.C.↑ | LongCat-Video M.S.↑ | LongCat-Video D.D. | LongCat-Video O.C.↑ | HunyuanVideo-1.5 M.S.↑ | HunyuanVideo-1.5 D.D. | HunyuanVideo-1.5 O.C.↑ | MiniMax-H3 M.S.↑ | MiniMax-H3 D.D. | MiniMax-H3 O.C.↑ |
| BF16, FlashAttention-4 | 16/16 | 0.9766 | 0.61 | 0.268 | 0.9834 | 0.80 | 0.262 | 0.9893 | 0.74 | 0.266 | 0.9887 | 0.80 | 0.272 |
| BF16, cuDNN | 16/16 | 0.9765 | 0.62 | 0.268 | 0.9834 | 0.80 | 0.263 | 0.9894 | 0.75 | 0.265 | 0.9887 | 0.81 | 0.272 |
| QK16PV8 | 16/8 | 0.9765 | 0.62 | 0.266 | 0.9832 | 0.81 | 0.263 | 0.9889 | 0.75 | 0.263 | 0.9888 | 0.78 | 0.273 |
| Per-tensor FP8 | 8/8 | 0.9763 | 0.61 | 0.268 | 0.9831 | 0.80 | 0.262 | 0.9866 | 0.73 | 0.267 | 0.9884 | 0.76 | 0.270 |
| MXFP8 | 8/8 | 0.9764 | 0.60 | 0.269 | 0.9830 | 0.81 | 0.262 | 0.9872 | 0.75 | 0.267 | 0.9881 | 0.77 | 0.269 |
| SageAttention2, FP8 QK | 8/8 | 0.9770 | 0.61 | 0.269 | 0.9832 | 0.81 | 0.262 | 0.9884 | 0.75 | 0.263 | 0.9882 | 0.78 | 0.270 |
| SageAttention, FP8 QK | 8/8 | 0.9765 | 0.60 | 0.268 | 0.9836 | 0.80 | 0.263 | 0.9890 | 0.72 | 0.265 | 0.9887 | 0.81 | 0.271 |
| NVFP4 QK, FP8 PV | 4/8 | 0.9758 | 0.60 | 0.268 | 0.9823 | 0.82 | 0.262 | 0.9812 | 0.74 | 0.268 | 0.9872 | 0.69 | 0.269 |
| Attn-QAT | 4/8 | 0.9765 | 0.62 | 0.268 | 0.9737 | 0.60 | 0.253 | 0.9787 | 0.80 | 0.265 | 0.9879 | 0.76 | 0.270 |
| DeCo-Attention (Ours) | 4/8 | 0.9767 | 0.60 | 0.266 | 0.9834 | 0.80 | 0.263 | 0.9888 | 0.71 | 0.264 | 0.9885 | 0.80 | 0.271 |
| NVFP4 | 4/4 | 0.9728 | 0.60 | 0.271 | 0.9742 | 0.84 | 0.261 | 0.9700 | 0.74 | 0.243 | 0.9885 | 0.76 | 0.268 |
| DeCo-Attention (Ours) | 4/4 | 0.9766 | 0.63 | 0.268 | 0.9833 | 0.80 | 0.262 | 0.9881 | 0.75 | 0.265 | 0.9885 | 0.82 | 0.270 |
Table 22.
Table 23 | Reported and reproduced INT8 rows. PSNR (dB) of SageAttention2 and VC-Attention with INT8 as VC-Attention reports it and as ours on B200 measure it over the 100 prompts. Our runs reproduce the reported values to within about 1.4 dB.
| Model | SageAttention2 reported | SageAttention2 ours | VC-Attention reported | VC-Attention ours |
| Wan2.2 | 20.30 | 20.08 | 20.50 | 19.78 |
| LongCat-Video | 23.10 | 22.93 | 23.80 | 25.21 |
| HunyuanVideo-1.5 | 15.60 | 15.88 | 17.50 | 17.41 |
| MiniMax-H3 | 19.90 | 19.36 | 20.20 | 19.39 |
Table 23.
differs by about 0.5 dB at most. That of VC-Attention is within 0.1 dB on HunyuanVideo-1.5, 0.7 and 0.8 dB lower on Wan2.2 and MiniMax-H3, and 1.4 dB higher on LongCat-Video. The tables quote the reported values.
End-to-end quality. Each model generates 100 videos for the first 100 prompts of the extended prompt file of MovieGen Bench, with the prompt index as seed and the same initial noise for every method. The kernel under test computes every self-attention call of every layer and step. Each model runs with its official default settings, except that LongCat-Video runs only its first stage at 480p and MiniMax-H3 runs the distilled pipeline of the captures, as in VC-Attention. LPIPS uses AlexNet features. VBench {(citep}(Huang et al., 2024)} scores each video without a reference in six dimensions. Differences between two runs are paired per prompt and given with the 95% Student-t confidence interval of their mean.
Kernel error. We measure the relative L2 error of the attention output against the FP32 attention of the BF16 inputs,
@page 22/30 starts_mid=0 ends_mid=1
Table 21 | End-to-end quality without a reference. VBench subject consistency (S.C.), imaging quality (I.Q.), and aesthetic quality (A.Q.) of the videos of Table 2. Blue cells mark the best score within each group with a 4-bit . The row of FlashAttention-4 holds the reference videos, and the row of cuDNN those of the BF16 attention of cuDNN, the BF16 row of Table 2. Means reported by VC-Attention, which does not report A.Q., read against its own BF16 row.
| Method | QK/PV | Wan2.2 S.C.↑ | Wan2.2 I.Q.↑ | Wan2.2 A.Q.↑ | LongCat-Video S.C.↑ | LongCat-Video I.Q.↑ | LongCat-Video A.Q.↑ | HunyuanVideo-1.5 S.C.↑ | HunyuanVideo-1.5 I.Q.↑ | HunyuanVideo-1.5 A.Q.↑ | MiniMax-H3 S.C.↑ | MiniMax-H3 I.Q.↑ | MiniMax-H3 A.Q.↑ |
| BF16, FlashAttention-4 | 16/16 | 0.930 | 0.700 | 0.669 | 0.938 | 0.683 | 0.678 | 0.922 | 0.672 | 0.659 | 0.905 | 0.686 | 0.647 |
| BF16 | 16/16 | 0.932 | 0.703 | – | 0.941 | 0.694 | – | 0.933 | 0.680 | – | 0.899 | 0.668 | – |
| BF16, cuDNN | 16/16 | 0.931 | 0.700 | 0.668 | 0.938 | 0.684 | 0.679 | 0.924 | 0.670 | 0.658 | 0.904 | 0.686 | 0.647 |
| QK16PV8 | 16/8 | 0.931 | 0.700 | 0.672 | 0.937 | 0.682 | 0.680 | 0.923 | 0.668 | 0.656 | 0.906 | 0.686 | 0.647 |
| Per-tensor FP8 | 8/8 | 0.927 | 0.695 | 0.671 | 0.938 | 0.681 | 0.677 | 0.915 | 0.671 | 0.653 | 0.902 | 0.677 | 0.644 |
| MXFP8 | 8/8 | 0.927 | 0.696 | 0.669 | 0.937 | 0.681 | 0.677 | 0.917 | 0.666 | 0.650 | 0.904 | 0.675 | 0.647 |
| SageAttention2 | 8/8 | 0.931 | 0.703 | – | 0.941 | 0.697 | – | 0.931 | 0.676 | – | 0.897 | 0.671 | – |
| w/ FP8 QK | 8/8 | 0.931 | 0.698 | 0.674 | 0.938 | 0.681 | 0.679 | 0.920 | 0.670 | 0.653 | 0.904 | 0.676 | 0.645 |
| VC-Attention | 8/8 | 0.932 | 0.705 | – | 0.941 | 0.696 | – | 0.931 | 0.677 | – | 0.897 | 0.669 | – |
| w/ FP8 QK | 8/8 | 0.931 | 0.700 | 0.669 | 0.938 | 0.683 | 0.679 | 0.921 | 0.674 | 0.657 | 0.904 | 0.686 | 0.646 |
| NVFP4 QK, FP8 PV | 4/8 | 0.918 | 0.689 | 0.657 | 0.935 | 0.681 | 0.676 | 0.899 | 0.645 | 0.594 | 0.899 | 0.668 | 0.636 |
| Attn-QAT | 4/8 | 0.919 | 0.684 | 0.661 | 0.911 | 0.658 | 0.613 | 0.895 | 0.642 | 0.591 | 0.896 | 0.669 | 0.635 |
| DeCo-Attention (Ours) | 4/8 | 0.931 | 0.699 | 0.669 | 0.937 | 0.683 | 0.676 | 0.921 | 0.675 | 0.659 | 0.902 | 0.687 | 0.647 |
| NVFP4 | 4/4 | 0.918 | 0.684 | 0.660 | 0.932 | 0.685 | 0.672 | 0.877 | 0.616 | 0.513 | 0.900 | 0.673 | 0.637 |
| SageAttention3 | 4/4 | 0.925 | 0.697 | – | 0.938 | 0.692 | – | 0.927 | 0.677 | – | 0.907 | 0.686 | – |
| VC-Attention, 4-bit | 4/4 | 0.931 | 0.707 | – | 0.939 | 0.695 | – | 0.934 | 0.679 | – | 0.909 | 0.686 | – |
| DeCo-Attention (Ours) | 4/4 | 0.932 | 0.700 | 0.671 | 0.939 | 0.682 | 0.680 | 0.920 | 0.676 | 0.656 | 0.905 | 0.690 | 0.646 |
Table 21 (PDF p. 22).
Table 22 | End-to-end motion and prompt alignment without a reference. VBench motion smoothness (M.S.), dynamic degree (D.D., the fraction of videos rated dynamic), and overall consistency (O.C., the similarity of video and prompt) of the runs of Tab. 21. Blue cells mark the best M.S. and O.C. within each group with a 4-bit , and the D.D. closest to that of BF16 FlashAttention-4.
| Method | QK/PV | Wan2.2 M.S.↑ | Wan2.2 D.D. | Wan2.2 O.C.↑ | LongCat-Video M.S.↑ | LongCat-Video D.D. | LongCat-Video O.C.↑ | HunyuanVideo-1.5 M.S.↑ | HunyuanVideo-1.5 D.D. | HunyuanVideo-1.5 O.C.↑ | MiniMax-H3 M.S.↑ | MiniMax-H3 D.D. | MiniMax-H3 O.C.↑ |
| BF16, FlashAttention-4 | 16/16 | 0.9766 | 0.61 | 0.268 | 0.9834 | 0.80 | 0.262 | 0.9893 | 0.74 | 0.266 | 0.9887 | 0.80 | 0.272 |
| BF16, cuDNN | 16/16 | 0.9765 | 0.62 | 0.268 | 0.9834 | 0.80 | 0.263 | 0.9894 | 0.75 | 0.265 | 0.9887 | 0.81 | 0.272 |
| QK16PV8 | 16/8 | 0.9765 | 0.62 | 0.266 | 0.9832 | 0.81 | 0.263 | 0.9889 | 0.75 | 0.263 | 0.9888 | 0.78 | 0.273 |
| Per-tensor FP8 | 8/8 | 0.9763 | 0.61 | 0.268 | 0.9831 | 0.80 | 0.262 | 0.9866 | 0.73 | 0.267 | 0.9884 | 0.76 | 0.270 |
| MXFP8 | 8/8 | 0.9764 | 0.60 | 0.269 | 0.9830 | 0.81 | 0.262 | 0.9872 | 0.75 | 0.267 | 0.9881 | 0.77 | 0.269 |
| SageAttention2, FP8 QK | 8/8 | 0.9770 | 0.61 | 0.269 | 0.9832 | 0.81 | 0.262 | 0.9884 | 0.75 | 0.263 | 0.9882 | 0.78 | 0.270 |
| SageAttention, FP8 QK | 8/8 | 0.9765 | 0.60 | 0.268 | 0.9836 | 0.80 | 0.263 | 0.9890 | 0.72 | 0.265 | 0.9887 | 0.81 | 0.271 |
| NVFP4 QK, FP8 PV | 4/8 | 0.9758 | 0.60 | 0.268 | 0.9823 | 0.82 | 0.262 | 0.9812 | 0.74 | 0.268 | 0.9872 | 0.69 | 0.269 |
| Attn-QAT | 4/8 | 0.9765 | 0.62 | 0.268 | 0.9737 | 0.60 | 0.253 | 0.9787 | 0.80 | 0.265 | 0.9879 | 0.76 | 0.270 |
| DeCo-Attention (Ours) | 4/8 | 0.9767 | 0.60 | 0.266 | 0.9834 | 0.80 | 0.263 | 0.9888 | 0.71 | 0.264 | 0.9885 | 0.80 | 0.271 |
| NVFP4 | 4/4 | 0.9728 | 0.60 | 0.271 | 0.9742 | 0.84 | 0.261 | 0.9700 | 0.74 | 0.243 | 0.9885 | 0.76 | 0.268 |
| DeCo-Attention (Ours) | 4/4 | 0.9766 | 0.63 | 0.268 | 0.9833 | 0.80 | 0.262 | 0.9881 | 0.75 | 0.265 | 0.9885 | 0.82 | 0.270 |
Table 22 (PDF p. 22).
Table 23 | Reported and reproduced INT8 rows. PSNR (dB) of SageAttention2 and VC-Attention with INT8 as VC-Attention reports it and as ours on B200 measure it over the 100 prompts. Our runs reproduce the reported values to within about 1.4 dB.
| Model | SageAttention2 reported | SageAttention2 ours | VC-Attention reported | VC-Attention ours |
| Wan2.2 | 20.30 | 20.08 | 20.50 | 19.78 |
| LongCat-Video | 23.10 | 22.93 | 23.80 | 25.21 |
| HunyuanVideo-1.5 | 15.60 | 15.88 | 17.50 | 17.41 |
| MiniMax-H3 | 19.90 | 19.36 | 20.20 | 19.39 |
Table 23 (PDF p. 22).
differs by about 0.5 dB at most. That of VC-Attention is within 0.1 dB on HunyuanVideo-1.5, 0.7 and 0.8 dB lower on Wan2.2 and MiniMax-H3, and 1.4 dB higher on LongCat-Video. The tables quote the reported values.
End-to-end quality. Each model generates 100 videos for the first 100 prompts of the extended prompt file of MovieGen Bench, with the prompt index as seed and the same initial noise for every method. The kernel under test computes every self-attention call of every layer and step. Each model runs with its official default settings, except that LongCat-Video runs only its first stage at 480p and MiniMax-H3 runs the distilled pipeline of the captures, as in VC-Attention. LPIPS uses AlexNet features. VBench (Huang et al., 2024) scores each video without a reference in six dimensions. Differences between two runs are paired per prompt and given with the 95% Student-t confidence interval of their mean.
Kernel error. We measure the relative L2 error of the attention output against the FP32 attention of the BF16 inputs,
where and are the reference and the output under test of head on the same 1024 query rows, 16 random blocks of 64 rows. We report the mean over the hard layers and over all layers. The errors come from the GB300 kernels, except those of the INT8 kernels, which run on B200, and of SageAttention3 and 4-bit VC-Attention, which run on RTX PRO 6000.
We time it in the same way, and Table 27 gives its median. For VC-Attention, this is the time of a step that reuses its grouping. A step that groups again with -means takes about an order of magnitude longer. The 1.67× of § 5.4 comes from a separate measurement with the SM clock fixed at 1500 MHz, in which the kernel takes 101.1 ms without the four steps of Table 5 and 60.5 ms with them (Table 28). Table 5 itself is at the default clock.
| Kernel | Time (ms) | Speedup of the optimizations |
| Our kernel, compensation only | 101.1 | — |
| + All four optimizations | 60.5 | 1.67× |
| FP8-QK reference | 98.9 | — |
| + All four optimizations | 69.4 | 1.43× |
Table 28. Softmax optimizations at a fixed clock. Time of the FP8- kernel of DeCo-Attention and of the FP8- reference on a Wan2.2 call on GB300 with the SM clock fixed at 1500 MHz, without the four optimizations of Table 5 and with all of them. At a fixed clock the four optimizations speed our kernel up 1.67×.
Emulation. The accuracy ablations emulate the GB300 kernels of DeCo-Attention in PyTorch and Triton. The emulation forms , , and the smoothed from the same sampled tokens as the preparation, runs the online softmax at with I-ExpCast, and takes the sums of as the kernels do. It computes the basis in FP64 and the rescale factors of the online softmax and the final division exactly, whereas the kernels use their own eigensolver and approximate instructions. For the settings that also exist as kernel builds, the emulation reproduces the call error of the kernel to within 0.25% of its value.
End-to-end time. The time of a generation is the time that TensorRT-LLM VisualGen reports for a request, from the prompt to the decoded video, as the mean over prompts 1–7 after a warm-up generation. The methods of a model run one after another on the same GPU or host. The BF16 run uses the BF16 attention of cuDNN on GB300 and VR200 and the FA2 prefill of FlashInfer on RTX PRO 6000.
Kernel time. We time the attention kernel alone, at the default clock of the GPU and at the batch of the real call, on four captures per model, two of hard layers and two of other layers. Each kernel runs after a warm-up, in two passes with the methods in opposite order. We report the median over the captures and the passes. The speedup is over the fastest BF16 kernel of the same session. A kernel that runs only together with the quantization of its operands is timed in the profiler. The preparation of a method is its work outside the kernel, the quantization of the operands and, where the method has them, the smoothing, rotation, compensation, and grouping.
Accuracy
We show that DeCo-Attention keeps the VBench scores of BF16 attention, that the paired differences per prompt give the ranking of § 5, and that it has the lowest worst-case kernel error among the kernels with a 4-bit .
Quality without a reference. DeCo-Attention keeps the VBench scores of BF16 attention (Tabs. 21 and 22). Among the runs with a 4-bit , it has the best score in 19 of the 24 entries of Tab. 21 and in 13 of the 16 random ranked cells of Tab. 22. Its largest drops in Tab. 21 are from 0.905 to 0.902 (S.C. on MiniMax-H3, FP8 ) and from 0.659 to 0.656 (A.Q. on HunyuanVideo-1.5, NVFP4 ). The three kernels
with an uncompensated NVFP4 lose much more. On HunyuanVideo-1.5, their aesthetic quality is 0.594, 0.591, and 0.513, and their motion smoothness is 0.9812, 0.9787, and 0.9700, against 0.9893 for the reference and 0.9888 and 0.9881 for DeCo-Attention. The BF16 attention of cuDNN
shows that the fidelity metrics also measure the drift of the sampling trajectory. Its PSNR against the reference is only 24.54 dB on Wan2.2, yet its VBench scores are 0.931, 0.700, and 0.668 against 0.930, 0.700, and 0.669.
Paired differences. Table 24 and Table 25 compare each method with DeCo-Attention prompt by prompt, with FP8 and with NVFP4 . A difference is significant when its 95% confidence interval excludes zero. Grey entries are significantly worse than DeCo-Attention, bold entries significantly better, and black entries are not significant. Every kernel with an uncompensated 4-bit is significantly worse than DeCo-Attention on every model. With FP8 , DeCo-Attention has a significantly lower LPIPS than per-tensor FP8, MXFP8, and SageAttention2 with FP8 on every model. Against VC-Attention with FP8 , one difference is significant in each direction, in favor of DeCo-Attention on Wan2.2 and of VC-Attention on MiniMax-H3. With NVFP4 , no difference to SageAttention2 with FP8 is significant on any model, and the PSNR of DeCo-Attention is 0.97 to 1.17 dB below that of VC-Attention with FP8 . Its PSNR is 1.95 to 6.15 dB above that of SageAttention3 on every model, all significant, and above that of 4-bit VC-Attention on every model, significant on LongCat-Video and MiniMax-H3 with 3.67 and 1.22 dB.
| Method | QK/PV | Wan2.2 PSNR | Wan2.2 LPIPS | LongCat-Video PSNR | LongCat-Video LPIPS | HunyuanVideo-1.5 PSNR | HunyuanVideo-1.5 LPIPS | MiniMax-H3 PSNR | MiniMax-H3 LPIPS |
| QK16PV8 | 16/8 | +1.24 ± 0.58 | -0.019 ± 0.017 | +0.97 ± 0.64 | -0.008 ± 0.013 | +0.07 ± 0.40 | -0.003 ± 0.018 | +2.97 ± 0.47 | -0.112 ± 0.017 |
| Per-tensor FP8 | -1.47 ± 0.47 | +0.067 ± 0.017 | -2.02 ± 0.65 | +0.049 ± 0.015 | -1.08 ± 0.37 | +0.054 ± 0.017 | -0.09 ± 0.37 | +0.027 ± 0.015 | |
| MXFP8 | -1.41 ± 0.47 | +0.061 ± 0.017 | -2.03 ± 0.55 | +0.047 ± 0.014 | -1.91 ± 0.38 | +0.096 ± 0.019 | -0.37 ± 0.35 | +0.035 ± 0.015 | |
| SageAttention2, FP8 QK | 8/8 | -1.97 ± 0.50 | +0.077 ± 0.019 | -1.72 ± 0.58 | +0.043 ± 0.015 | -1.23 ± 0.35 | +0.055 ± 0.017 | -0.24 ± 0.36 | +0.026 ± 0.015 |
| VC-Attention, FP8 QK | -0.90 ± 0.48 | +0.034 ± 0.017 | -0.30 ± 0.60 | +0.013 ± 0.017 | +0.14 ± 0.40 | -0.013 ± 0.017 | +0.48 ± 0.38 | -0.020 ± 0.017 | |
| NVFP4 QK, FP8 PV | 4/8 | -4.09 ± 0.56 | +0.201 ± 0.019 | -4.68 ± 0.63 | +0.143 ± 0.017 | -4.08 ± 0.42 | +0.226 ± 0.018 | -2.75 ± 0.41 | +0.155 ± 0.018 |
| Attn-QAT | -4.09 ± 0.54 | +0.204 ± 0.019 | -5.68 ± 0.70 | +0.258 ± 0.017 | -5.82 ± 0.50 | +0.316 ± 0.021 | -2.06 ± 0.35 | +0.122 ± 0.016 |
Table 24. Paired end-to-end differences with FP8 PV. PSNR (dB) and LPIPS of each method minus those of DeCo-Attention with FP8 on the same prompt, as the mean over the 100 prompts with the half width of its 95% confidence interval. Beyond its interval, a bold entry is better than DeCo-Attention and a grey entry worse. A black entry has an interval that contains zero. Table 2 holds the absolute values.
| Method | QK/PV | Wan2.2 PSNR | Wan2.2 LPIPS | LongCat-Video PSNR | LongCat-Video LPIPS | HunyuanVideo-1.5 PSNR | HunyuanVideo-1.5 LPIPS | MiniMax-H3 PSNR | MiniMax-H3 LPIPS |
| SageAttention2, FP8 QK | 8/8 | +0.09 ± 0.43 | +0.001 ± 0.017 | -0.35 ± 0.40 | +0.013 ± 0.014 | -0.21 ± 0.38 | +0.012 ± 0.018 | +0.26 ± 0.29 | +0.003 ± 0.013 |
| VC-Attention, FP8 QK | +1.17 ± 0.51 | -0.042 ± 0.020 | +1.07 ± 0.60 | -0.017 ± 0.017 | +1.16 ± 0.39 | -0.056 ± 0.018 | +0.97 ± 0.41 | -0.042 ± 0.017 | |
| NVFP4 | 4/4 | -4.95 ± 0.61 | +0.253 ± 0.023 | -8.05 ± 0.61 | +0.301 ± 0.020 | -6.90 ± 0.52 | +0.378 ± 0.022 | -2.88 ± 0.37 | +0.148 ± 0.017 |
| SageAttention3 | -3.77 ± 2.44 | +0.119 ± 0.037 | -6.15 ± 2.00 | +0.180 ± 0.048 | -5.62 ± 1.71 | +0.310 ± 0.089 | -1.95 ± 1.27 | +0.093 ± 0.060 | |
| VC-Attention, 4-bit | -1.21 ± 1.78 | +0.053 ± 0.069 | -3.67 ± 1.50 | +0.105 ± 0.046 | -0.57 ± 1.12 | +0.029 ± 0.058 | -1.22 ± 1.14 | +0.079 ± 0.062 |
Table 25. Paired end-to-end differences with NVFP4 PV. PSNR (dB) and LPIPS of each method minus those of DeCo-Attention with NVFP4 , as in Table 24. SageAttention3 and 4-bit VC-Attention are paired on prompts 0 to 7. Table 2 holds the absolute values.
Every kernel. Table 26 extends Table 3 to every kernel and adds the maximum over the calls. DeCo-Attention has the lowest mean and maximum among the kernels with a 4-bit . With FP8 , its worst call on the hard layers of Wan2.2 has 3.74%, against 47.44% for NVFP4 with FP8 . With NVFP4 , it has 6.79%, against 36.02% for SageAttention3 and 35.67% for 4-bit VC-Attention. Against the kernels with an FP8 , the fully 4-bit DeCo-Attention has a lower mean error than SageAttention2 on the hard layers, 5.68% against 13.03% on Wan2.2 and 8.24% against 21.23% on MiniMax-H3, and a higher one over all layers, 5.09% against 4.10% and 5.67% against 4.55%. VC-Attention with FP8 keeps the lowest mean error over all layers, 2.64% and 2.85%, below both configurations of DeCo-Attention.
| Method | QK/PV | Wan2.2 Hard | Wan2.2 All | MiniMax-H3 Hard | MiniMax-H3 All |
| BF16 | 16/16 | 0.15 / 0.17 | 0.17 / 0.19 | 0.17 / 0.20 | 0.17 / 0.19 |
| QK16PV8 | 16/8 | 1.90 / 2.28 | 1.20 / 2.27 | 1.76 / 2.17 | 1.27 / 2.03 |
| Per-tensor FP8 | 20.29 / 35.18 | 5.29 / 29.69 | 21.42 / 56.52 | 5.14 / 46.44 | |
| MXFP8 | 18.21 / 33.28 | 4.81 / 33.16 | 21.87 / 57.12 | 4.95 / 48.17 | |
| SageAttention2 | 2.18 / 2.79 | 1.37 / 2.43 | 3.32 / 5.42 | 1.52 / 4.68 | |
| w/ FP8 QK | 8/8 | 13.03 / 26.29 | 4.10 / 26.64 | 21.23 / 56.42 | 4.55 / 44.85 |
| VC-Attention | 1.83 / 2.32 | 1.57 / 2.82 | 1.93 / 2.43 | 1.46 / 2.15 | |
| w/ FP8 QK | 3.67 / 5.78 | 2.64 / 5.25 | 6.65 / 11.88 | 2.85 / 9.51 | |
| NVFP4 QK, FP8 PV | 30.56 / 47.44 | 10.57 / 47.19 | 28.92 / 59.90 | 10.69 / 50.58 | |
| Attn-QAT | 4/8 | 30.19 / 46.41 | 10.60 / 45.99 | 28.25 / 63.30 | 11.10 / 53.43 |
| DeCo-Attention (Ours) | 2.80 / 3.74 | 3.73 / 5.50 | 6.32 / 10.52 | 4.40 / 7.79 | |
| NVFP4 | 31.46 / 47.63 | 12.97 / 47.18 | 30.02 / 64.53 | 13.87 / 54.65 | |
| SageAttention3 | 21.86 / 36.02 | 9.19 / 34.90 | 24.07 / 53.67 | 8.96 / 45.02 | |
| VC-Attention, 4-bit | 4/4 | 21.06 / 35.67 | 8.52 / 34.54 | 23.46 / 53.48 | 8.05 / 44.86 |
| DeCo-Attention (Ours) | 5.68 / 6.79 | 5.09 / 7.81 | 8.24 / 11.37 | 5.67 / 9.36 |
Table 26. Accuracy of every kernel. Relative L2 error (%) of every method, as mean / maximum over the hard layers and over all layers. The hard layers are captured at three times as many steps as all layers, so the two columns hold different calls. SageAttention2 and VC-Attention use their default INT8 on B200, and their rows w/ FP8 run on GB300. Blue marks the lowest error of each 4-bit- group.
Performance
We show that DeCo-Attention has the shortest attention time and the shortest generation on every GPU and model.
Kernel speed. Table 27 and Table 29 give the times behind Figure 7. With FP8 , a Wan2.2 call takes 57.5 ms on GB300 and 29.2 ms on VR200. The fastest baseline is the fully 4-bit NVFP4 kernel with 74.8 ms on GB300 and per-tensor FP8 with 43.7 ms on VR200. With NVFP4 on RTX PRO 6000, the call takes 234.0 ms, against 253.0 ms for SageAttention3 and 262.1 ms for 4-bit VC-Attention.
| Method | QK/PV | Wan2.2 | MiniMax-H3 |
| BF16 | 16/16 | 660.3 (1.00×) | 444.0 (1.00×) |
| SageAttention3 | 253.0 (2.61×) | 165.3 (2.69×) | |
| VC-Attention, 4-bit | 4/4 | 262.1 (2.52×) | 170.1 (2.61×) |
| DeCo-Attention (Ours) | 234.0 (2.82×) | 155.1 (2.86×) |
Table 29. Kernel speed on RTX PRO 6000. Attention time (ms) with the speedup over BF16 attention. Blue marks the shortest time.
End-to-end speed. Table 30 gives the generation times. With FP8 , a Wan2.2 generation takes 194.7 s on GB300 and 108.0 s on VR200, 1.55× and 1.68× faster than with BF16 attention, against 237.8 s and 142.9 s for VC-Attention with FP8 . On RTX PRO 6000, it takes 900.8 s with NVFP4 , 1.80× faster, against 983.9 s for SageAttention3. The BF16 run of Wan2.2 on GB300 takes 302.7 s, and its attention takes 67.6% of a traced denoising step, the two numbers of the introduction.
| Method | Wan2.2 | MiniMax-H3 |
| GB300 | ||
| BF16 | 302.7 (1.00×) | 51.9 (1.00×) |
| VC-Attention, FP8 QK | 237.8 (1.27×) | 41.3 (1.26×) |
| SageAttention2, FP8 QK | 270.4 (1.12×) | 46.2 (1.12×) |
| DeCo-Attention, FP8 PV (Ours) | 194.7 (1.55×) | 33.6 (1.54×) |
| VR200 | ||
| BF16 | 181.0 (1.00×) | 32.2 (1.00×) |
| VC-Attention, FP8 QK | 142.9 (1.27×) | 24.8 (1.30×) |
| SageAttention2, FP8 QK | 149.2 (1.21×) | 25.4 (1.27×) |
| DeCo-Attention, FP8 PV (Ours) | 108.0 (1.68×) | 19.1 (1.69×) |
| RTX PRO 6000 | ||
| BF16 | 1619.1 (1.00×) | 269.7 (1.00×) |
| SageAttention3 | 983.9 (1.65×) | 168.3 (1.60×) |
| VC-Attention, 4-bit | 1111.7 (1.46×) | 188.8 (1.43×) |
| DeCo-Attention, NVFP4 PV (Ours) | 900.8 (1.80×) | 151.3 (1.78×) |
Table 30. End-to-end speed. Time (s) of a whole generation in Wan2.2-T2V-MiniMax-H3 with the speedup over BF16 attention on the same GPU. Blue marks the shortest time on each GPU.
Generated Videos
Figure 11 to Figure 14 show the videos that each model generates from one prompt, five frames per row. The upper block of each figure holds BF16 FlashAttention-4 and the GB300 runs of Table 2. The lower block holds our runs of the fully 4-bit methods on RTX PRO 6000 next to BF16 attention on the same GPU, the FA2 prefill of FlashInfer, with the protocol and seeds of the GB300 runs. In these runs, 4-bit VC-Attention groups the tokens of each call again on every denoising step. The PSNR above a row is that of the whole clip against the BF16 row of its block. The four prompts of MovieGen Bench follow.

Figure 11. “A cinematic wide-angle portrait of a man with his face illuminated by the warm glow of a TV screen. . . . A wide-angle shot capturing the man’s intense gaze and the warm ambiance of the room.”
Figure 11 | Videos of Wan2.2-T2V-A14B. Prompt 90 of MovieGen Bench, frames 0, 20, 40, 60, and 80 of 81. The upper block runs on GB300 and the lower block on RTX PRO 6000, with the PSNR of each clip against BF16 attention on the same GPU.

Figure 14. “A cinematic film shot in 70mm, capturing an extreme close-up of a 24-year-old woman’s eye as it blinks. . . . A medium shot with a slightly elevated perspective, highlighting the natural movement of her eye.” Videos of MiniMax-H3. Prompt 11 of MovieGen Bench, frames 0, 60, 121, 181, and 242 of 243. The upper block runs on GB300 and the lower block on RTX PRO 6000, with the PSNR of each clip against BF16 attention on the same GPU.
Wan2.2-T2V-A14B. Prompt 90: “A cinematic wide-angle portrait of a man with his face illuminated by the warm glow of a TV screen. The man, with a rugged yet determined expression, leans forward slightly against a vintage wooden armchair. His dark hair is slightly disheveled, and he wears a worn leather jacket over a plain white shirt. The background features a cluttered living room with old books, newspapers, and a few framed photos scattered around. The TV shows static, with a faint image of a news broadcast flickering in the corner. The overall scene has a nostalgic and gritty feel, with a rich color palette and a soft, grainy texture. A wide-angle shot capturing the man’s intense gaze and the warm ambiance of the room.”
LongCat-Video. Prompt 48: “A dynamic scene captured in the style of a vibrant food photography, showcasing a chef skillfully chopping onions in a bustling kitchen. The chef, a middle-aged man with a weathered face and determined expression, skillfully slices the onions with quick, practiced movements. He wears a white apron tied neatly around his waist and a chef’s hat perched atop his head. The background is a well-equipped kitchen, with stainless steel appliances and countertops cluttered with various cooking tools and ingredients. Steam rises from a pot on the stove, and sunlight filters through the window, casting a warm glow. A medium shot with the chef at the center, capturing the intensity of his work.”
HunyuanVideo-1.5. Prompt 44: “An aerial view of Santorini during the blue hour, capturing the stunning architecture of white Cycladic buildings with blue domes against the twilight sky. The caldera views are breathtaking, with the volcanic cliffs and sea below creating a dramatic contrast. The lighting casts a soft, warm
glow, enhancing the serene atmosphere. The image has a dreamy, almost ethereal quality, emphasizing the beauty of the setting. A bird’s-eye view with a wide-angle lens, focusing on the intricate details of the buildings and the vast expanse of the caldera.”
MiniMax-H3. Prompt 11: “A cinematic film shot in 70mm, capturing an extreme close-up of a 24-year-old woman’s eye as it blinks. The scene takes place during magic hour in Marrakech, with the vibrant colors of the setting sun casting warm hues over the bustling streets. The depth of field emphasizes the intricate details of her almond-shaped eyes, which reflect the lively atmosphere of the city. Her eyes, framed by long, dark lashes, are set against a backdrop of bustling market stalls, ornate architecture, and the soft shadows of the setting sun. The background features a blend of rich textures and vibrant colors, creating a sense of depth and immersion. A medium shot with a slightly elevated perspective, highlighting the natural movement of her eye.”

Figure 12. GB300, PSNR against BF16 FlashAttention-4 on the same GPU
BF16 FlashAttention-4 PSNR reference
DeCo-Attention, FP8 PV PSNR 17.63 dB
SageAttention2, FP8 QK PSNR 13.54 dB
VC-Attention, FP8 QK PSNR 11.99 dB
RTX PRO 6000, PSNR against BF16 FlashInfer FA2 on the same GPU
BF16 FlashInfer FA2 PSNR reference
DeCo-Attention, NVFP4 PV PSNR 16.89 dB
SageAttention3 PSNR 12.36 dB
VC-Attention, 4-bit PSNR 14.32 dB
“A dynamic scene captured in the style of a vibrant food photography, showcasing a chef skillfully chopping onions in a bustling kitchen. . . . A medium shot with the chef at the center, capturing the intensity of his work.”
Videos of LongCat-Video. Prompt 48 of MovieGen Bench, frames 0, 23, 46, 69, and 92 of 93. The upper block runs on GB300 and the lower block on RTX PRO 6000, with the PSNR of each clip against BF16 attention on the same GPU.

Figure 13. “An aerial view of Santorini during the blue hour, capturing the stunning architecture of white Cycladic buildings with blue domes against the twilight sky. . . . A bird’s-eye view with a wide-angle lens, focusing on the intricate details of the buildings and the vast expanse of the caldera.”
Figure 13 | Videos of HunyuanVideo-1.5. Prompt 44 of MovieGen Bench, frames 0, 30, 60, 90, and 120 of 121. The upper block runs on GB300 and the lower block on RTX PRO 6000, with the PSNR of each clip against BF16 attention on the same GPU.
References
- [1]Alibaba PAI. MiniMax-H3-Acc-LoRAs. Hugging Face model, 2026.
- [2]Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Al- izadeh, Torsten Hoefler, and James Hensman. QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs. In Advances in Neural Information Processing Systems, pp. 100213– 100240, 2024.arxiv.org/abs/2404.00456
- [3]Mengzhao Chen, Meng Wu, Hui Jin, Zhihang Yuan, Jing Liu, Chaoyi Zhang, Yunshui Li, Jie Huang, Jin Ma, Zeyue Xue, Zhiheng Liu, Xingyan Bin, and Ping Luo. INT vs. FP: A Comprehensive Study of Fine-Grained Low-Precision Quantization Formats. In International Conference on Machine Learning, pp. 17447–17466, 2026.





