Sparse Spatial Transformers for Few-Shot Learning
Not on the map. Why?
Abstract (arXiv)
Learning from limited data is challenging because data scarcity leads to a poor generalization of the trained model. A classical global pooled representation will probably lose useful local information. Many few-shot learning methods have recently addressed this challenge using deep descriptors and learning a pixel-level metric. However, using deep descriptors as feature representations may lose image contextual information. Moreover, most of these methods independently address each class in the support set, which cannot sufficiently use discriminative information and task-specific embeddings. In this paper, we propose a novel transformer-based neural network architecture called sparse spatial transformers (SSFormers), which finds task-relevant features and suppresses task-irrelevant features. Particularly, we first divide each input image into several image patches of different sizes to obtain dense local features. These features retain contextual information while expressing local information. Then, a sparse spatial transformer layer is proposed to find spatial correspondence between the query image and the full support set to select task-relevant image patches and suppress task-irrelevant image patches. Finally, we propose using an image patch-matching module to calculate the distance between dense local representations, thus determining which category the query image belongs to in the support set. Extensive experiments on popular few-shot learning benchmarks demonstrate the superiority of our method over state-of-the-art methods. Our source code is available at urlhttps://github.com/chenhaoxing/ssformers.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 30 of its 47 references that are in the map. First posted on arXiv 27 Sep 2021.
Builds on
30 of 47 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2017Prototypical Networks for Few-shot Learningcited by 3,001
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2016Matching Networks for One Shot Learningcited by 2,246
- 2018OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fieldscited by 1,161
- 2017Learning to Compare: Relation Network for Few-Shot Learningcited by 1,139
- 2016Realtime Multi-Person 2D Pose Estimation using Part Affinity Fieldscited by 1,061
- 2019Meta-Learning with Differentiable Convex Optimizationcited by 461
- 2018Meta-Learning for Semi-Supervised Few-Shot Classificationcited by 456
- 2020Rethinking Few-Shot Image Classification: a Good Embedding Is All You Need?cited by 435
18 more
- 2018TADAM: Task dependent adaptive metric for improved few-shot learningcited by 408
- 2018Meta-learning with differentiable closed-form solverscited by 395
- 2019A Baseline for Few-Shot Image Classificationcited by 298
- 2018Few-Shot Learning via Embedding Adaptation with Set-to-Set Functionscited by 293
- 2019Cross Attention Network for Few-shot Classificationcited by 218
- 2020CrossTransformers: spatially-aware few-shot transfercited by 174
- 2018Task-Agnostic Meta-Learning for Few-shot Learningcited by 151
- 2019Revisiting Local Descriptor based Image-to-Class Measure for Few-shot Learningcited by 121
- 2021Relational Embedding for Few-Shot Classificationcited by 74
- 2021Pareto Self-Supervised Training for Few-Shot Learningcited by 52
- 2020On Episodes, Prototypical Networks, and Few-shot Learningcited by 46
- 2019Few-Shot Learning with Global Class Representationscited by 44
- 2020Rethinking Class Relations: Absolute-relative Supervised and Unsupervised Few-shot Learningcited by 31
- 2019LGM-Net: Learning to Generate Matching Networks for Few-Shot Learningcited by 27
- 2020Multi-scale Adaptive Task Attention Network for Few-Shot Learningcited by 10
- 2021DMN4: Few-shot Learning via Discriminative Mutual Nearest Neighbor Neural Networkcited by 9
- 2021Multi-level Metric Learning for Few-shot Image Recognitioncited by 8
- 2021Learning to Focus: Cascaded Feature Matching Network for Few-shot Image Recognitioncited by 4
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 4; 2024: 4; 2025: 3; 2026: 1.
14 papers.
Sort:
By area:
- 2024UniAnimate: Taming Unified Video Diffusion Models for Consistent Human Image Animationcited by 101
- 2025Training-free and Adaptive Sparse Attention for Efficient Long Video Generationcited by 65
- 2023Multimodal Multi-loss Fusion Network for Sentiment Analysiscited by 26
- 2023Context-enriched molecule representations improve few-shot drug discoverycited by 23
- 2022Mask-guided Vision Transformer (MG-ViT) for Few-Shot Learningcited by 10
- 2024Enhancing Few-Shot Image Classification through Learnable Multi-Scale Embedding and Attention Mechanismscited by 4
- 2025Minimizing Risk Through Minimizing Model-Data Interaction: A Protocol For Relying on Proxy Tasks When Designing Child Sexual Abuse Imagery Detection Modelscited by 4
- 2021Shaping Visual Representations with Attributes for Few-Shot Recognitioncited by 2
- 2023Hint-Aug: Drawing Hints from Foundation Vision Transformers Towards Boosted Few-Shot Parameter-Efficient Tuningcited by 2
- 2024The Devil is in the Few Shots: Iterative Visual Knowledge Completion for Few-shot Learningcited by 1
- 2023Recent Advances of Local Mechanisms in Computer Vision: A Survey and Outlook of Recent Workcited by 0
- 2024Exploration of Class Center for Fine-Grained Visual Classificationcited by 0
- 2026PMCE: Probabilistic Multi-Granularity Semantics with Caption-Guided Enhancement for Few-Shot Learning20 Jan 2026
- 2025LeCoT: revisiting network architecture for two-view correspondence pruning10 Nov 2025
- 2025Minimizing Risk Through Minimizing Model-Data Interaction: A Protocol For Relying on Proxy Tasks When Designing Child Sexual Abuse Imagery Detection Models10 May 2025
- 2025Training-free and Adaptive Sparse Attention for Efficient Long Video Generation28 Feb 2025
- 2024Enhancing Few-Shot Image Classification through Learnable Multi-Scale Embedding and Attention Mechanisms12 Sep 2024
- 2024Exploration of Class Center for Fine-Grained Visual Classification5 Jul 2024
- 2024UniAnimate: Taming Unified Video Diffusion Models for Consistent Human Image Animation3 Jun 2024
- 2024The Devil is in the Few Shots: Iterative Visual Knowledge Completion for Few-shot Learning15 Apr 2024
- 2023Multimodal Multi-loss Fusion Network for Sentiment Analysis1 Aug 2023
- 2023Recent Advances of Local Mechanisms in Computer Vision: A Survey and Outlook of Recent Work2 Jun 2023
- 2023Hint-Aug: Drawing Hints from Foundation Vision Transformers Towards Boosted Few-Shot Parameter-Efficient Tuning25 Apr 2023
- 2023Context-enriched molecule representations improve few-shot drug discovery24 Apr 2023
2 more
- 2023Multimodal Multi-loss Fusion Network for Sentiment Analysiscited by 26
- 2023Context-enriched molecule representations improve few-shot drug discoverycited by 23
- 2022Mask-guided Vision Transformer (MG-ViT) for Few-Shot Learningcited by 10
- 2024Enhancing Few-Shot Image Classification through Learnable Multi-Scale Embedding and Attention Mechanismscited by 4
- 2025Minimizing Risk Through Minimizing Model-Data Interaction: A Protocol For Relying on Proxy Tasks When Designing Child Sexual Abuse Imagery Detection Modelscited by 4
- 2021Shaping Visual Representations with Attributes for Few-Shot Recognitioncited by 2
- 2023Hint-Aug: Drawing Hints from Foundation Vision Transformers Towards Boosted Few-Shot Parameter-Efficient Tuningcited by 2
- 2024The Devil is in the Few Shots: Iterative Visual Knowledge Completion for Few-shot Learningcited by 1
- 2023Recent Advances of Local Mechanisms in Computer Vision: A Survey and Outlook of Recent Workcited by 0
- 2024Exploration of Class Center for Fine-Grained Visual Classificationcited by 0
- 2025LeCoT: revisiting network architecture for two-view correspondence pruningcited by 0
- 2026PMCE: Probabilistic Multi-Granularity Semantics with Caption-Guided Enhancement for Few-Shot Learningcited by 0
- 2026PMCE: Probabilistic Multi-Granularity Semantics with Caption-Guided Enhancement for Few-Shot Learning20 Jan 2026
- 2025LeCoT: revisiting network architecture for two-view correspondence pruning10 Nov 2025
- 2025Minimizing Risk Through Minimizing Model-Data Interaction: A Protocol For Relying on Proxy Tasks When Designing Child Sexual Abuse Imagery Detection Models10 May 2025
- 2024Enhancing Few-Shot Image Classification through Learnable Multi-Scale Embedding and Attention Mechanisms12 Sep 2024
- 2024Exploration of Class Center for Fine-Grained Visual Classification5 Jul 2024
- 2024The Devil is in the Few Shots: Iterative Visual Knowledge Completion for Few-shot Learning15 Apr 2024
- 2023Multimodal Multi-loss Fusion Network for Sentiment Analysis1 Aug 2023
- 2023Recent Advances of Local Mechanisms in Computer Vision: A Survey and Outlook of Recent Work2 Jun 2023
- 2023Hint-Aug: Drawing Hints from Foundation Vision Transformers Towards Boosted Few-Shot Parameter-Efficient Tuning25 Apr 2023
- 2023Context-enriched molecule representations improve few-shot drug discovery24 Apr 2023
- 2022Mask-guided Vision Transformer (MG-ViT) for Few-Shot Learning20 May 2022
- 2021Shaping Visual Representations with Attributes for Few-Shot Recognition13 Dec 2021