arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.04787cs.CVcs.AI
收藏

动态视觉 Mamba

Dynamic Vision Mamba

University of Toronto(多伦多大学);Tsinghua University(清华大学);Shenzhen Technology University(深圳技术大学)

Mengxuan Wu, Zekai Li, Zhiyuan Liang, Moyang Li, Xuanlei Zhao, Samir Khaki, Zheng Zhu, Xiaojiang Peng, Konstantinos N. Plataniotis, Kai Wang, Wangbo Zhao, Yang You

AI总结:

本文提出 Dynamic Vision Mamba (DyVM),通过定制 token 剪枝和动态选择 SSM block 减少空间冗余,在 Vim-S 上以 1.7% 的准确率损失降低 35.2% 的 FLOPs,并具备良好的跨架构与跨任务泛化能力。

摘要:

基于 Mamba 的视觉模型因其计算效率高于基于注意力的模型而受到广泛关注。然而,这些模型中仍然存在空间冗余,表现为 token 冗余和 block 冗余。针对 token 冗余,我们通过分析发现,早期的 token 剪枝方法会导致训练与推理不一致,或为推理引入额外计算。因此,我们定制了 token 剪枝方法以适应 Mamba 结构,在将剪枝后的序列送入下一个 Mamba block 之前对其进行重新排列。针对 block 冗余,我们基于一个经验观察——基于 Mamba 的视觉模型的推理速度在很大程度上受 SSM block 数量的影响——允许每张图像动态选择 SSM block。我们提出的方法 Dynamic Vision Mamba (DyVM) 在性能下降很小的情况下有效降低了 FLOPs。在 Vim-S 上,我们实现了 35.2% 的 FLOPs 降低,而准确率仅损失 1.7%。该方法还能够在不同的 Mamba 视觉模型架构和不同的视觉任务中良好泛化。我们的代码将公开发布。

英文摘要:

Mamba-based vision models have gained extensive attention as a result of being computationally more efficient than attention-based models. However, spatial redundancy still exists in these models, represented by token and block redundancy. For token redundancy, we analytically find that early token pruning methods will result in inconsistency between training and inference or introduce extra computation for inference. Therefore, we customize token pruning to fit the Mamba structure by rearranging the pruned sequence before feeding it into the next Mamba block. For block redundancy, we allow each image to select SSM blocks dynamically based on an empirical observation that the inference speed of Mamba-based vision models is largely affected by the number of SSM blocks. Our proposed method, Dynamic Vision Mamba (DyVM), effectively reduces FLOPs with minor performance drops. We achieve a reduction of 35.2\% FLOPs with only a loss of accuracy of 1.7\% on Vim-S. It also generalizes well across different Mamba vision model architectures and different vision tasks. Our code will be made public.

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

↑