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

Adventurer:优化视觉Mamba架构设计以提升效率

Adventurer: Optimizing Vision Mamba Architecture Designs for Efficiency

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

Feng Wang, Timing Yang, Yaodong Yu, Sucheng Ren, Guoyizhe Wei, Angtian Wang, Wei Shao, Yuyin Zhou, Alan Yuille, Cihang Xie

AI总结:

本文提出Adventurer系列视觉模型,通过将图像视为patch token序列并采用单向语言模型,结合全局池化token与层间翻转操作,实现了线性复杂度的高效处理,在准确率与效率上优于现有架构。

摘要:

在这项工作中,我们引入了Adventurer系列模型,我们将图像视为patch token序列,并采用单向语言模型来学习视觉表示。这种建模范式允许我们以循环形式处理图像,其复杂度相对于序列长度呈线性关系,从而能有效解决高分辨率和细粒度图像带来的内存与计算爆炸问题。具体而言,我们引入了两种简单设计,将图像输入无缝集成到因果推理框架中:放置在序列开头的全局池化token,以及每两层之间的翻转操作。大量实证研究表明,与DeiT和Vim等现有普通架构相比,Adventurer提供了最佳的效率与准确性权衡。例如,我们的Adventurer-Base在标准ImageNet-1k基准上达到了84.3%的竞争性测试准确率,训练吞吐量为216 images/s,在实现相同结果的情况下,速度比Vim和DeiT分别快3.8倍和6.2倍。由于Adventurer提供了出色的计算和内存效率,并允许以线性复杂度进行扩展,我们希望该架构能有益于未来对高分辨率或细粒度图像长序列建模的探索。代码可在https://github.com/wangf3014/Adventurer获取。

英文摘要:

In this work, we introduce the Adventurer series models where we treat images as sequences of patch tokens and employ uni-directional language models to learn visual representations. This modeling paradigm allows us to process images in a recurrent formulation with linear complexity relative to the sequence length, which can effectively address the memory and computation explosion issues posed by high-resolution and fine-grained images. In detail, we introduce two simple designs that seamlessly integrate image inputs into the causal inference framework: a global pooling token placed at the beginning of the sequence and a flipping operation between every two layers. Extensive empirical studies highlight that compared with the existing plain architectures such as DeiT and Vim, Adventurer offers an optimal efficiency-accuracy trade-off. For example, our Adventurer-Base attains a competitive test accuracy of 84.3% on the standard ImageNet-1k benchmark with 216 images/s training throughput, which is 3.8 and 6.2 times faster than Vim and DeiT to achieve the same result. As Adventurer offers great computation and memory efficiency and allows scaling with linear complexity, we hope this architecture can benefit future explorations in modeling long sequences for high-resolution or fine-grained images. Code is available at https://github.com/wangf3014/Adventurer.

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

↑