SpatialFormer: Semantic and Target Aware Attentions for Few-Shot Learning
Open Access
- 26 June 2023
- journal article
- research article
- Published by Association for the Advancement of Artificial Intelligence (AAAI) in Proceedings of the AAAI Conference on Artificial Intelligence
- Vol. 37 (7) , 8430-8437
Abstract
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.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Learning Dynamic Alignment via Meta-filter for Few-shot Learning2021
- Learning a Few-shot Embedding Model with Contrastive LearningProceedings of the AAAI Conference on Artificial Intelligence, 2021
- Rethinking Few-Shot Image Classification: A Good Embedding is All You Need?2020
- Few-Shot Learning via Embedding Adaptation With Set-to-Set Functions2020
- SuperGlue: Learning Feature Matching With Graph Neural Networks2020
- Generating Classification Weights With GNN Denoising Autoencoders for Few-Shot Learning2019
- Learning to Compare: Relation Network for Few-Shot Learning2018