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

SpatialFormer:面向少样本学习的语义与目标感知注意力机制

SpatialFormer: Semantic and Target Aware Attentions for Few-Shot Learning

Tencent Youtu Lab(腾讯优图实验室);CATL(宁德时代);East China Normal University(华东师范大学);Shanghai Jiao Tong University(上海交通大学)

Jinxiang Lai, Siqian Yang, Wenlong Wu, Tao Wu, Guannan Jiang, Xi Wang, Jun Liu, Bin-Bin Gao, Wei Zhang, Yuan Xie, Chengjie Wang

AI总结:

本文提出SpatialFormer,通过语义与目标注意力模块在全局特征上增强目标区域、减少背景干扰,提升少样本分类性能,达到新最先进水平。

摘要:

最近的少样本学习(FSL)方法着重于生成具有判别性的嵌入特征,以精确度量支持集与查询集之间的相似性。当前基于CNN的交叉注意力方法通过增强支持对与查询对中相互语义相似的区域来生成判别性表示。然而,这种方法存在两个问题:CNN结构基于局部特征产生不准确的注意力图,且相互相似的背景会造成干扰。为缓解这些问题,我们设计了一种新颖的SpatialFormer结构,基于全局特征生成更准确的注意力区域。不同于传统Transformer建模内在的实例级相似性(这会导致FSL中精度下降),我们的SpatialFormer探索成对输入之间的语义级相似性以提升性能。随后,我们推导出两个具体的注意力模块,命名为SpatialFormer语义注意力(SFSA)和SpatialFormer目标注意力(SFTA),以增强目标对象区域同时减少背景干扰。特别地,SFSA突出成对特征之间具有相同语义信息的区域,而SFTA寻找新特征中与基类相似的潜在前景对象区域。大量实验表明,我们的方法是有效的,并在少样本分类基准上取得了新的最先进结果。

英文摘要:

Recent Few-Shot Learning (FSL) methods put emphasis on generating a discriminative embedding features to precisely measure the similarity between support and query sets. Current CNN-based cross-attention approaches generate discriminative representations via enhancing the mutually semantic similar regions of support and query pairs. However, it suffers from two problems: CNN structure produces inaccurate attention map based on local features, and mutually similar backgrounds cause distraction. To alleviate these problems, we design a novel SpatialFormer structure to generate more accurate attention regions based on global features. Different from the traditional Transformer modeling intrinsic instance-level similarity which causes accuracy degradation in FSL, our SpatialFormer explores the semantic-level similarity between pair inputs to boost the performance. Then we derive two specific attention modules, named SpatialFormer Semantic Attention (SFSA) and SpatialFormer Target Attention (SFTA), to enhance the target object regions while reduce the background distraction. Particularly, SFSA highlights the regions with same semantic information between pair features, and SFTA finds potential foreground object regions of novel feature that are similar to base categories. Extensive experiments show that our methods are effective and achieve new state-of-the-art results on few-shot classification benchmarks.

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

↑