面向高效视频生成的令牌半径注意力 Token Radius Attention for Efficient Video Generation 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-03
👁️ 预览文献
💡 AI 中文简介
视频扩散Transformer生成质量高,但密集的3D自注意力计算量随视频长度和分辨率呈平方级增长,成为推理瓶颈。现有稀疏方法在注意力头或块级别共享计算预算,忽略了不同查询令牌对注意力的需求差异。作者发现保留密度与注意力熵呈对数线性关系,且主导交互形成以查询为中心、半径随令牌变化的邻域。据此提出免训练的令牌半径注意力(TRA),将查询熵映射为解析令牌预算并转为时间衰减半径,无需显式键排序。在Wan2.1、Wan2.2和HunyuanVideo的七种配置上,TRA仅保留9%–19%的注意力交互,实现1.56倍至2.05倍加速,生成质量仍有竞争力。
领域计算机视觉 / 视频生成与高效推理
适合谁读需要一定专业背景(了解扩散模型与Transformer注意力机制)
核心贡献1. 发现注意力保留密度与查询熵呈对数线性关系,且主导交互形成以查询为中心、半径随令牌变化的邻域;2. 提出免训练的令牌半径注意力(TRA),将查询熵映射为解析令牌预算并转为时间衰减半径,无需显式键排序,配合融合熵提取、预热复用和块稀疏掩码构建降低开销。
关键数据在Wan2.1、Wan2.2和HunyuanVideo的七种T2V/I2V配置上,仅保留9%–19%的注意力交互,实现1.56倍–2.05倍加速,生成质量具有竞争力。
推荐理由如果你关心视频生成模型的推理速度,这篇工作用令牌级稀疏注意力把计算量砍到十分之一左右,还能保持画质,值得一读。
关键词["视频生成", "扩散Transformer", "稀疏注意力", "令牌级稀疏", "推理加速", "免训练"]

原文摘要

查看英文原文摘要

Video Diffusion Transformers (VDiTs) enable high-fidelity generation but incur quadratic cost from dense 3D self-attention. Existing head- and block-level sparse methods share computation budgets across queries, overlooking token-specific attention demand. We observe that retained density varies across queries yet correlates log-linearly with attention entropy, while dominant interactions form query-centered neighborhoods with token-dependent radii. Based on these findings, we propose Token Radius Attention (TRA), a training-free framework that maps query entropy to an analytic token budget and converts it into a temporally decayed radius without explicit key ranking. Fused entropy extraction, warm-up reuse, and block-sparse mask construction further reduce overhead. Across seven Wan2.1, Wan2.2, and HunyuanVideo T2V/I2V configurations, TRA retains only 9-19% of attention interactions and achieves 1.56x-2.05x speedup with competitive generation quality. Code is available at https://github.com/IF-LAB-PKU/Token-Radius-Attention.