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

视觉Mamba模型中的视觉注意力探索

Visual Attention Exploration in Vision-Based Mamba Models

Visa Research(Visa研究院)

Junpeng Wang, Chin-Chia Michael Yeh, Uday Singh Saini, Mahashweta Das

AI总结:

本研究提出一种可视化分析工具,用于探索视觉Mamba模型中补丁间的注意力分布及排列策略对注意力模式的影响,以深入理解模型行为。

摘要:

状态空间模型(SSMs)已成为基于Transformer模型的高效替代方案,提供了比Transformer更好的线性复杂度扩展性。SSMs的最新进展之一——Mamba,引入了选择性扫描机制,为输入令牌分配可训练权重,有效模拟了注意力机制。Mamba也已成功扩展到视觉领域,通过将二维图像分解为更小的补丁并将其排列为一维序列。然而,目前尚不清楚这些补丁如何相对于其原始二维空间位置进行交互(或相互关注)。此外,用于将补丁排列成序列的顺序也显著影响其注意力分布。为了更好地理解补丁之间的注意力并探索注意力模式,我们引入了一种专门为基于视觉的Mamba模型设计的可视化分析工具。该工具能够更深入地理解不同Mamba块中补丁间注意力的分布方式,以及注意力在整个Mamba模型中的演变过程。利用该工具,我们还研究了不同补丁排列策略对学习到的注意力的影响,为模型行为提供了进一步见解。

英文摘要:

State space models (SSMs) have emerged as an efficient alternative to transformer-based models, offering linear complexity that scales better than transformers. One of the latest advances in SSMs, Mamba, introduces a selective scan mechanism that assigns trainable weights to input tokens, effectively mimicking the attention mechanism. Mamba has also been successfully extended to the vision domain by decomposing 2D images into smaller patches and arranging them as 1D sequences. However, it remains unclear how these patches interact with (or attend to) each other in relation to their original 2D spatial location. Additionally, the order used to arrange the patches into a sequence also significantly impacts their attention distribution. To better understand the attention between patches and explore the attention patterns, we introduce a visual analytics tool specifically designed for vision-based Mamba models. This tool enables a deeper understanding of how attention is distributed across patches in different Mamba blocks and how it evolves throughout a Mamba model. Using the tool, we also investigate the impact of different patch-ordering strategies on the learned attention, offering further insights into the model's behavior.

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

↑