Skip to main content
QUICK REVIEW

[论文解读] Dual Cross-Attention Learning for Fine-Grained Visual Categorization and Object Re-Identification

Haowei Zhu, Wenjing Ke|arXiv (Cornell University)|May 4, 2022
Domain Adaptation and Few-Shot LearningComputer Science被引用 17
一句话总结

本文提出双交叉注意力学习(DCAL),通过引入全局-局部交叉注意力(GLCA)以增强空间判别性线索,以及成对交叉注意力(PWCA)通过图像对比较正则化注意力学习,从而提升视觉Transformer在细粒度视觉分类与行人重识别任务中的性能。DCAL在多个自注意力基线模型上取得提升,在MSMT17数据集上相较DeiT-Tiny和ViT-Base分别实现2.8%和2.4%的mAP增益。

ABSTRACT

Recently, self-attention mechanisms have shown impressive performance in various NLP and CV tasks, which can help capture sequential characteristics and derive global information. In this work, we explore how to extend self-attention modules to better learn subtle feature embeddings for recognizing fine-grained objects, e.g., different bird species or person identities. To this end, we propose a dual cross-attention learning (DCAL) algorithm to coordinate with self-attention learning. First, we propose global-local cross-attention (GLCA) to enhance the interactions between global images and local high-response regions, which can help reinforce the spatial-wise discriminative clues for recognition. Second, we propose pair-wise cross-attention (PWCA) to establish the interactions between image pairs. PWCA can regularize the attention learning of an image by treating another image as distractor and will be removed during inference. We observe that DCAL can reduce misleading attentions and diffuse the attention response to discover more complementary parts for recognition. We conduct extensive evaluations on fine-grained visual categorization and object re-identification. Experiments demonstrate that DCAL performs on par with state-of-the-art methods and consistently improves multiple self-attention baselines, e.g., surpassing DeiT-Tiny and ViT-Base by 2.8% and 2.4% mAP on MSMT17, respectively.

研究动机与目标

  • 通过解决细微视觉差异问题,提升视觉Transformer在细粒度视觉分类与目标重识别任务中的性能。
  • 通过建模全局图像与局部高响应区域之间的交互,增强空间判别性特征学习。
  • 通过图像对比较正则化注意力学习,减少过拟合并提升泛化能力。
  • 设计与现有自注意力模块兼容的交叉注意力机制,且不增加推理阶段的计算开销。

提出的方法

  • 提出全局-局部交叉注意力(GLCA),通过计算选定局部查询向量与全局图像完整键值向量集之间的交叉注意力,突出判别性空间区域。
  • 引入成对交叉注意力(PWCA),在训练过程中将第二张图像视为干扰项,以分散注意力响应并提升鲁棒性。
  • 在PWCA中使用来自两幅图像的联合键值向量,以增加注意力学习难度,促进互补特征的发现。
  • 仅在训练阶段应用PWCA;推理阶段将其移除,确保无计算开销。
  • 将GLCA与PWCA作为即插即用模块,兼容多种视觉Transformer主干网络(如DeiT与ViT)。
  • 以标准自注意力为基干,通过添加DCAL组件以优化注意力图与特征表示。

实验结果

研究问题

  • RQ1全局图像与局部高响应区域之间的交叉注意力能否提升细粒度识别中的空间判别能力?
  • RQ2在训练过程中将成对图像作为干扰项,能否正则化注意力学习并减少对虚假特征的过拟合?
  • RQ3所提出的双交叉注意力机制是否能在多种视觉Transformer架构上持续提升FGVC与Re-ID基准上的性能?
  • RQ4与标准自注意力相比,使用GLCA与PWCA时注意力分布如何变化?

主要发现

  • 在MSMT17 Re-ID基准上,DCAL相较DeiT-Tiny与ViT-Base分别实现2.8%与2.4%的mAP增益,优于当前最先进方法。
  • 在CUB-200-2011数据集上,DCAL使DeiT-Tiny的top-1准确率达到92.0%,使用CaiT-XS24时达到89.7%的top-1准确率。
  • 在CUB上,DCAL使Swin-T的top-1准确率提升0.9%;在MSMT17上,mAP提升1.0%,表明其在不同架构间具有良好的泛化能力。
  • 消融实验表明,移除GLCA与PWCA模块后,CUB数据集上准确率仅下降0.3%,VeRi-776数据集上仅下降0.1%,证实其有效性。
  • 可视化结果表明,DCAL能减少误导性注意力关注,并使响应扩散至更多互补的物体部件。
  • 尽管训练时间相比基线增加1.7小时(3.8小时 vs. 2.1小时),但由于细粒度数据集规模较小,该方法仍具实用性。

阅读本论文

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

在 Nubint 中阅读本论文

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