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

轻量级视觉Transformer与双向交互

Lightweight Vision Transformer with Bidirectional Interaction

Center for Research on Intelligent Perception and Computing, CASIA(中国科学院自动化研究所智能感知与计算研究中心);National Laboratory of Pattern Recognition, CASIA(中国科学院自动化研究所模式识别国家重点实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Tsinghua University(清华大学);University of Science and Technology of China(中国科学技术大学)

Qihang Fan, Huaibo Huang, Xiaoqiang Zhou, Ran He

AI总结:

提出FASA机制和FAT轻量级视觉骨干,通过双向交互建模局部与全局上下文,在ImageNet-1K上以4.5M参数和0.7G FLOPs达到77.6%准确率,超越同类模型。

摘要:

近期视觉骨干网络的进展通过同时建模图像的局部和全局上下文显著提升了性能。然而,这两种上下文之间的双向交互尚未被充分探索和利用,而这在人类视觉系统中至关重要。本文提出了一种用于视觉Transformer的全自适应自注意力(FASA)机制,以上下文感知的方式建模局部和全局信息以及它们之间的双向交互。具体而言,FASA采用自调制卷积自适应地提取局部表示,同时利用下采样空间中的自注意力提取全局表示。随后,它在局部和全局表示之间进行双向自适应过程以建模它们的交互。此外,我们引入了一种细粒度下采样策略,以增强下采样自注意力机制,实现更细粒度的全局感知能力。基于FASA,我们开发了一系列轻量级视觉骨干网络,即全自适应Transformer(FAT)系列。在多个视觉任务上的大量实验表明,FAT取得了令人瞩目的性能。值得注意的是,FAT在ImageNet-1K上仅使用4.5M参数和0.7G FLOPs就达到了77.6%的准确率,超越了具有相似模型大小和计算成本的最先进的卷积神经网络和Transformer。此外,与其他模型相比,我们的模型在现代GPU上表现出更快的速度。代码将在https://github.com/qhfan/FAT提供。

英文摘要:

Recent advancements in vision backbones have significantly improved their performance by simultaneously modeling images' local and global contexts. However, the bidirectional interaction between these two contexts has not been well explored and exploited, which is important in the human visual system. This paper proposes a Fully Adaptive Self-Attention (FASA) mechanism for vision transformer to model the local and global information as well as the bidirectional interaction between them in context-aware ways. Specifically, FASA employs self-modulated convolutions to adaptively extract local representation while utilizing self-attention in down-sampled space to extract global representation. Subsequently, it conducts a bidirectional adaptation process between local and global representation to model their interaction. In addition, we introduce a fine-grained downsampling strategy to enhance the down-sampled self-attention mechanism for finer-grained global perception capability. Based on FASA, we develop a family of lightweight vision backbones, Fully Adaptive Transformer (FAT) family. Extensive experiments on multiple vision tasks demonstrate that FAT achieves impressive performance. Notably, FAT accomplishes a 77.6% accuracy on ImageNet-1K using only 4.5M parameters and 0.7G FLOPs, which surpasses the most advanced ConvNets and Transformers with similar model size and computational costs. Moreover, our model exhibits faster speed on modern GPU compared to other models. Code will be available at https://github.com/qhfan/FAT.

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

↑