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

Mamba-R:Vision Mamba也需要寄存器

Mamba-R: Vision Mamba ALSO Needs Registers

Johns Hopkins University(约翰霍普金斯大学);University of Florida(佛罗里达大学);UC Santa Cruz(加州圣克拉拉大学)

Feng Wang, Jiahao Wang, Sucheng Ren, Guoyizhe Wei, Jieru Mei, Wei Shao, Yuyin Zhou, Alan Yuille, Cihang Xie

AI总结:

本文发现Vision Mamba特征图中存在严重的高范数token伪影,通过引入均匀插入并回收利用的寄存器token提出Mamba-R架构,有效清理了特征图并显著提升了模型性能与扩展性。

摘要:

与Vision Transformers类似,本文发现Vision Mamba的特征图中也存在伪影。这些伪影对应于在图像低信息背景区域出现的高范数token,在Vision Mamba中显得更为严重——即使在微型模型中也普遍存在,并在背景区域广泛激活。为缓解此问题,我们遵循先前方案,将寄存器token引入Vision Mamba。为更好适应Mamba块的单向推理范式,引入两项关键修改:1)在整个输入token序列中均匀插入寄存器;2)回收寄存器用于最终决策预测。我们将此新架构称为Mamba-R。定性观察表明,与原始Vision Mamba相比,Mamba-R的特征图更干净,更聚焦于语义有意义的区域。定量上,Mamba-R取得更强性能且扩展性更好。例如,在ImageNet基准上,基础尺寸的Mamba-R达到83.0%准确率,显著优于Vim-B的81.8%;此外,我们首次成功将其扩展至大模型尺寸(即341M参数),达到83.6%的竞争性准确率(若使用384x384输入微调则为84.5%)。在下游语义分割任务上的额外验证也支持Mamba-R的有效性。代码可在https://github.com/wangf3014/Mamba-Reg获取。

英文摘要:

Similar to Vision Transformers, this paper identifies artifacts also present within the feature maps of Vision Mamba. These artifacts, corresponding to high-norm tokens emerging in low-information background areas of images, appear much more severe in Vision Mamba -- they exist prevalently even with the tiny-sized model and activate extensively across background regions. To mitigate this issue, we follow the prior solution of introducing register tokens into Vision Mamba. To better cope with Mamba blocks' uni-directional inference paradigm, two key modifications are introduced: 1) evenly inserting registers throughout the input token sequence, and 2) recycling registers for final decision predictions. We term this new architecture Mamba-R. Qualitative observations suggest, compared to vanilla Vision Mamba, Mamba-R's feature maps appear cleaner and more focused on semantically meaningful regions. Quantitatively, Mamba-R attains stronger performance and scales better. For example, on the ImageNet benchmark, our base-size Mamba-R attains 83.0% accuracy, significantly outperforming Vim-B's 81.8%; furthermore, we provide the first successful scaling to the large model size (i.e., with 341M parameters), attaining a competitive accuracy of 83.6% (84.5% if finetuned with 384x384 inputs). Additional validation on the downstream semantic segmentation task also supports Mamba-R's efficacy. Code is available at https://github.com/wangf3014/Mamba-Reg.

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

↑