arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.22808cs.CVcs.AIeess.IV
收藏

FreqFormer:具有自适应频谱路由的分层频域注意力机制用于长序列视频扩散变换器

FreqFormer: Hierarchical Frequency-Domain Attention with Adaptive Spectral Routing for Long-Sequence Video Diffusion Transformers

Beijing University of Posts and Telecommunications(北京邮电大学)

Haopeng Jin

AI总结:

FreqFormer通过分层频域注意力机制,利用视频特征的频谱结构,采用不同操作符处理不同频段,降低长序列视频扩散变换器的计算与内存开销。

摘要:

长序列视频扩散变换器面临二次自注意力成本问题,限制了运行时间和内存。本文提出FreqFormer,一种频谱感知的异构注意力框架。将token特征划分为不同频段,使用密集全局注意力处理压缩低频内容,结构化块稀疏注意力处理中频,滑动窗口局部注意力处理高频。轻量级频谱路由网络利用层统计和扩散时间步分配注意力头,早期侧重全局结构,后期侧重细节。跨频段摘要token提供廉价残差交换。FreqFormer结合融合的GPU执行计划,协同调度密集、稀疏和局部分支以减少内核调用和内存交通。我们提供了一致的复杂度模型、正交分解视图的近似解释以及基于模拟的系统数值(吞吐量、算术强度、内存交通、持续时间缩放)。在64K到1M token的模拟中,FreqFormer显著减少了估计的注意力FLOPs和与KV相关的内存交通,同时保持硬件友好的模式,支持频谱结构的异构注意力作为长视频扩散变换器的实用方向。

英文摘要:

Long-sequence video diffusion transformers hit a quadratic self-attention cost that dominates runtime and memory for very long token sequences. Most efficient attention methods use one approximation everywhere, yet video features are spectrally structured: low frequencies carry global layout and coarse motion; high frequencies carry texture and fine detail. We present FreqFormer, a frequency-aware heterogeneous attention framework. Token features are split into spectral bands with different operators: dense global attention on compressed low-frequency content, structured block-sparse attention on mid frequencies, and sliding-window local attention on high frequencies. A lightweight spectral routing network allocates heads across bands using layer statistics and the diffusion timestep, shifting compute toward global structure early in denoising and detail later. Cross-band summary tokens provide cheap residual exchange. FreqFormer is paired with a fused GPU execution plan that co-schedules dense, sparse, and local branches to cut kernel launches and memory traffic. We give a consistent complexity model, an orthonormal-decomposition view of approximation, and simulation-based systems numbers (throughput, arithmetic intensity, memory traffic, duration scaling). In simulations from 64K to 1M tokens, FreqFormer substantially reduces estimated attention FLOPs and KV-related memory traffic versus dense attention while keeping a hardware-friendly pattern, supporting spectrally structured heterogeneous attention as a practical direction for long-video diffusion transformers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑