arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.04025cs.CVcs.AIcs.LG
收藏

PSA: 基于金字塔稀疏注意力的高效视频理解和生成

PSA: Pyramid Sparse Attention for Efficient Video Understanding and Generation

ZIP Lab, Zhejiang University(浙江大学浙大信息实验室)

Xiaolong Li, Youping Gu, Xi Lin, Weijie Wang, Bohan Zhuang

AI总结:

PSA通过多级池化键值表示实现高效视频理解和生成,相比现有稀疏注意力方法在效率和质量上表现更优。

摘要:

注意力机制是基础模型的核心,但其二次复杂性仍然是扩展的关键瓶颈。这一挑战推动了高效注意力机制的发展,稀疏性逐渐成为主导范式。当前方法通常保留或丢弃整个键值块,使用二进制掩码,导致在高稀疏性下信息损失显著。为缓解这一差距,我们提出了金字塔稀疏注意力(PSA),一个适用于视频理解和生成任务的通用模块。不同于二进制掩码,PSA引入了多级池化的键值表示,使掩码粒度更精细。具体而言,每个查询块动态分配较低的池化级别给关键的键值块,较高的级别给不重要的块,从而在完全保留和完全修剪之间创建信息性插值。这种设计类似于固定点量化和经典特征金字塔网络,在计算机视觉中,有效缓解信息损失的同时保持计算效率,同时在低计算预算下保持效率。它与原生、硬件友好的内核一起工作,利用解耦的块-瓷砖设计确保高效执行。在视频理解和生成基准测试中,PSA保留了上下文信息和视觉保真度,一致地在现有稀疏注意力基线中表现更优或达到可比性能,具有更优越的效率-质量权衡。我们的代码和模型权重可在:http://ziplab.co/PSA 公开获取。

英文摘要:

Attention mechanisms are the core of foundation models, but their quadratic complexity remains a critical bottleneck for scaling. This challenge has driven the development of efficient attention mechanisms, with sparsity emerging as the dominant paradigm. Current methods typically retain or discard entire key-value blocks with binary masks, resulting in substantial information loss under high sparsity. To mitigate this gap, we present Pyramid Sparse Attention (PSA), a versatile module applicable to both video understanding and generation tasks. Instead of binary masking, PSA introduces multi-level pooled KV representations, enabling finer mask granularity. Specifically, each query block dynamically allocates lower pooling levels to critical KV blocks and higher levels to less important ones, creating an informative interpolation between full retention and complete pruning. This design, analogous to fixed-point quantization and classical feature pyramid networks in computer vision, effectively mitigates information loss while preserving computational efficiency under a low compute budget. It works with a native, hardware-friendly kernel that leverages decoupled block-tile design to ensure efficient execution. Across video understanding and generation benchmarks, PSA preserves contextual information and visual fidelity, consistently outperforming or achieving comparable performance over existing sparse attention baselines with superior efficiency-quality trade-offs. Our code and model weights are publicly available at: http://ziplab.co/PSA

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

↑