Diffusion Transformers generate high-quality videos, but attention over their long token sequences dominates every denoising step. Attention computes two matrix products: queries times keys give the scores, and probabilities times values give the output. Running both in 8 or 4 bits promises several times the BF16 speed, but two obstacles remain. The first is accuracy. Prior work smooths the outlier channels of queries and keys, but the values have no such channels and remain a major source of error. The second is speed. Once both products run in low bits, the exponential between them becomes the bottleneck, because it runs mainly on the scarce special function units. We propose VC-Attention, a training-free low-bit attention kernel that addresses both. V-Smooth reduces the value error. We find that value tokens form groups of similar tokens across the video, each with a large common component. V-Smooth gathers each group into the same blocks by k-means and subtracts the shared component as the block mean, so only a small residual is quantized. ExpCast removes the exponential. It approximates the FP8 or NVFP4 code of each probability from its score with one multiply-add on the abundant CUDA cores. We also normalize each row by the sum of its quantized probabilities, so each output row keeps its correct scale. On Wan2.2, LongCat-Video, HunyuanVideo-1.5, and MiniMax-H3, the 8-bit kernel matches the strongest baseline on every model and exceeds it on two. It runs attention 1.59x and 1.50x faster than BF16 FlashAttention-4 on B200 and H200, and the denoising loop 1.26x and 1.25x faster. The 4-bit kernel leads the strongest 4-bit baseline by 0.7-4.0 dB of PSNR on all four models. It runs attention 3.67x, 5.24x, and 2.07x faster on the RTX PRO 6000, RTX 5090, and B300, and the denoising loop 1.85x, 2.14x, and 1.48x faster.
翻译:暂无翻译