Skip to main content
QUICK REVIEW

[论文解读] Lightweight Vision Transformer with Bidirectional Interaction

Qihang Fan, Huaibo Huang|arXiv (Cornell University)|Jun 1, 2023
Visual Attention and Saliency DetectionComputer Science被引用 13
一句话总结

提出 Fully Adaptive Self-Attention (FASA),通过双向交互建模局部与全局特征,生成一系列轻量级骨干网络(FAT),在极少参数和FLOPs下实现强大的 ImageNet、COCO 和 ADE20K 结果。

ABSTRACT

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.

研究动机与目标

  • 激发需要同时建模局部与全局信息的高效视觉骨干网络的需求。
  • 引入 Fully Adaptive Self-Attention (FASA) 模块以捕捉局部/全局表征及其双向交互。
  • 将 Fully Adaptive Transformer (FAT) 家族发展为用于分类、检测和分割的轻量级骨干网络。
  • 通过自注意力中的细粒度下采样来提升全局感知,同时保持效率。

提出的方法

  • 引入由三个基于 CAFA 的组件组成的 FASA:全局自适应聚合、局部自适应聚合,以及双向自适应交互。
  • 在全局聚合中使用细粒度下采样以在不过高成本的前提下提升全局感知。
  • 将 FASA 嵌入具有卷积干性、CPE、ConvFFN 和捷径连接的分层 FAT 骨干网络中。
  • 在 ImageNet-1K、COCO 和 ADE20K 上对 FAT 进行分类、检测/分割和语义分割任务的训练与评估。
  • 提供消融研究,展示双向交互、细粒度下采样和位置编码的有效性。

实验结果

研究问题

  • RQ1局部与全局特征之间的双向交互是否能够在不显著增加参数量或 FLOPs 的情况下提升轻量级 Vision Transformer 的表现?
  • RQ2自注意力中的细粒度下采样策略是否比轻量级骨干中使用大步长下采样更好地保留全局信息?
  • RQ3在 ImageNet-1K、COCO 和 ADE20K 上,FAT 与最先进的轻量级骨干在准确性和效率方面有何比较?

主要发现

  • FAT-B0 在 ImageNet-1K 上实现 77.6% 的 top-1 精度,参数量 4.5M,FLOPs 0.7 GFLOPs。
  • FAT-B1、FAT-B2、FAT-B3 在成本相近的轻量骨干中达到最先进水平,例如 FAT-B3 在 ImageNet-1K 上达到 83.6% 的 top-1。
  • 在 ADE20K 上,FAT-B1、FAT-B2 和 FAT-B3 相对于竞争对手的轻量骨干实现了 mIoU 提升(例如 FAT-B1 +1.5 mIoU 相对于 EdgeViT-XS,FAT-B3 +0.7 mIoU 超过 Shunted-S)。
  • 在 COCO 目标检测/实例分割中,FAT 骨干在 RetinaNet 和 Mask R-CNN 设置下均优于对手。
  • 消融研究证实,双向自适应交互优于简单融合基线,细粒度下采样优于非重叠池化/下采样变体。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。