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

RAMS-Trans:递归注意力多尺度Transformer forFine-grained图像识别

RAMS-Trans: Recurrent Attention Multi-scale Transformer forFine-grained Image Recognition

Zhejiang University(浙江大学);Alibaba Group(阿里巴巴集团)

Yunqing Hu, Xuan Jin, Yin Zhang, Haiwen Hong, Jingfeng Zhang, Yuan He, Hui Xue

摘要:

在细粒度图像识别(FGIR)中,区域注意力的定位和放大是一个重要因素,基于卷积神经网络(CNN)的方法对这一问题进行了大量研究。最近发展起来的视觉Transformer(ViT)在计算机视觉任务上取得了可喜的成果。与CNN相比,图像序列化是一种全新的方式。然而,ViT在其感受野大小方面受到限制,因此由于其补丁的固定大小而缺乏像CNN那样的局部注意力,并且无法生成多尺度特征来学习区分区域注意力。为了便于学习没有框/部分注释的区分区域注意力,我们使用注意力权重的强度来衡量与原始图像相对应的补丁标记的重要性。我们提出了递归注意力多尺度Transformer(RAMS-Trans),它使用Transformer的自注意力以多尺度的方式递归地学习区分区域注意力。具体来说,在我们的方法的核心在于动态补丁建议模块(DPPM)引导区域放大,以完成多尺度图像补丁的集成。DPPM从全尺寸图像块开始,并迭代地按比例增加区域注意力,以通过在每个尺度上生成的注意力权重的强度作为指示器从全局到局部生成新的块。我们的方法只需要ViT本身附带的注意力权重,并且可以很容易地进行端到端的训练。大量的实验表明,RAMS-Trans的性能优于并发作品,除了高效的CNN模型,实现了最先进的结果在三个基准数据集。

英文摘要:

In fine-grained image recognition (FGIR), the localization and amplification of region attention is an important factor, which has been explored a lot by convolutional neural networks (CNNs) based approaches. The recently developed vision transformer (ViT) has achieved promising results on computer vision tasks. Compared with CNNs, Image sequentialization is a brand new manner. However, ViT is limited in its receptive field size and thus lacks local attention like CNNs due to the fixed size of its patches, and is unable to generate multi-scale features to learn discriminative region attention. To facilitate the learning of discriminative region attention without box/part annotations, we use the strength of the attention weights to measure the importance of the patch tokens corresponding to the raw images. We propose the recurrent attention multi-scale transformer (RAMS-Trans), which uses the transformer's self-attention to recursively learn discriminative region attention in a multi-scale manner. Specifically, at the core of our approach lies the dynamic patch proposal module (DPPM) guided region amplification to complete the integration of multi-scale image patches. The DPPM starts with the full-size image patches and iteratively scales up the region attention to generate new patches from global to local by the intensity of the attention weights generated at each scale as an indicator. Our approach requires only the attention weights that come with ViT itself and can be easily trained end-to-end. Extensive experiments demonstrate that RAMS-Trans performs better than concurrent works, in addition to efficient CNN models, achieving state-of-the-art results on three benchmark datasets.

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

↑