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.


翻译:暂无翻译

0
下载
关闭预览

相关内容

Stabilizing Transformers for Reinforcement Learning
专知会员服务
61+阅读 · 2019年10月17日
使用 FastAI 和即时频率变换进行音频分类
AI研习社
11+阅读 · 2019年5月9日
learn to see in the dark-低照度图像增强算法
计算机视觉life
16+阅读 · 2019年1月14日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
18+阅读 · 2018年12月24日
一文读懂图像压缩算法
七月在线实验室
17+阅读 · 2018年5月2日
From Softmax to Sparsemax-ICML16(1)
KingsGarden
74+阅读 · 2016年11月26日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
10+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
9+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
5+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
10+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
8+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
17+阅读 · 11月25日
相关VIP内容
Stabilizing Transformers for Reinforcement Learning
专知会员服务
61+阅读 · 2019年10月17日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员