MC-Sparse:解构并弥合扩散Transformer中的稠密-稀疏注意力差距
研究论文 · 2026/10/09
稀疏注意力是降低扩散Transformer在长序列生成任务(如视频和高分辨率3D资产生成)中延迟的主要方法。然而,现有方法在高稀疏度下会降低生成质量和保真度。通过受控的oracle比较,我们将这种退化归因于三个来源:token分组带来的约束、不准确的交互选择以及丢弃token时损失的注意力贡献。基于此分析,我们提出Meta-Cached Sparse Attention(MC-Sparse),一个无需训练的框架,它选择单个键值(KV)token,同时将相似查询组织成tile对齐的组以实现高效GPU执行。MC-Sparse缓存元数据,包括查询组、使用精确注意力概率选择的KV索引以及密集和稀疏注意力输出之间的残差,并在后续去噪步骤中重用它们。在视频和3D生成模型上,MC-Sparse比现有稀疏注意力基线实现了更高的密集注意力输出保真度和更大的去噪加速,且无明显质量下降。相对于密集注意力,它在Minimax-H3-Base上实现了1.80倍的去噪加速,在3D资产生成上实现了2.32倍的加速,两者质量损失均可忽略。
该研究通过分析稀疏注意力质量退化的原因,提出了无需训练的MC-Sparse框架,在视频和3D生成任务中显著加速去噪过程且保持高质量,对扩散模型的高效推理有重要价值。
Sparse attention is a primary approach to reducing the latency of diffusion transformers in long-sequence generation tasks, such as video and high-resolution 3D asset generation. However, existing methods can degrade generation quality and fidelity at high sparsity levels. Through controlled oracle comparisons, we trace this degradation to three sources: constraints imposed by token grouping, inaccurate interaction selection, and the attention contributions lost when tokens are discarded. Guided by this analysis, we propose Meta-Cached Sparse Attention (MC-Sparse), a training-free framework that selects individual key-value (KV) tokens while organizing similar queries into tile-aligned groups for efficient GPU execution. MC-Sparse caches metadata comprising query groups, KV indices selected using exact attention probabilities, and residuals between dense and sparse attention outputs, and reuses them across subsequent denoising steps. Across video and 3D generation models, MC-Sparse achieves higher fidelity to dense-attention outputs and larger denoising speedups than existing sparse-attention baselines, without visible quality degradation. Relative to dense attention, it delivers a 1.80times denoising speedup on Minimax-H3-Base and a 2.32times speedup on 3D asset generation, both with negligible quality loss.