arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.07049cs.CV
收藏

视觉中的静态键注意力

Static Key Attention in Vision

University of Southern California(南加州大学)

Zizhao Hu, Xiaolin Zhou, Mohammad Rostami

AI总结:

本文研究 Vision Transformer 中以静态键替代动态参数化键的效果,证明静态键注意力可媲美或超越标准自注意力,并能在 Metaformer 分层混合架构中更好地平衡卷积与自注意力。

摘要:

视觉 Transformer 的成功被广泛归因于其动态参数化多头自注意力机制的表达能力。我们考察了在 Vision Transformer 的标准注意力机制中,用静态键替换动态参数化键所产生的影响。研究发现表明,静态键注意力机制能够达到甚至超过标准自注意力的性能。将静态键注意力模块集成到 Metaformer 主干中后,我们发现它在分层混合架构中可作为更优的中间阶段,平衡深度卷积与自注意力的优势。在多项视觉任务上的实验强调了静态键机制的有效性,表明注意力中典型的两步动态参数化在某些情况下可以简化为单步,而不会影响性能。

英文摘要:

The success of vision transformers is widely attributed to the expressive power of their dynamically parameterized multi-head self-attention mechanism. We examine the impact of substituting the dynamic parameterized key with a static key within the standard attention mechanism in Vision Transformers. Our findings reveal that static key attention mechanisms can match or even exceed the performance of standard self-attention. Integrating static key attention modules into a Metaformer backbone, we find that it serves as a better intermediate stage in hierarchical hybrid architectures, balancing the strengths of depth-wise convolution and self-attention. Experiments on several vision tasks underscore the effectiveness of the static key mechanism, indicating that the typical two-step dynamic parameterization in attention can be streamlined to a single step without impacting performance under certain circumstances.

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

↑