Few-Shot Learning Meets Transformer: Unified Query-Support Transformers for Few-Shot Classification
Few-shot classification which aims to recognize unseen classes using very limited samples has attracted more and more attention. Usually, it is formulated as a metric learning problem. The core issue of few-shot classification is how to learn (1) consistent representations for images in both support and query sets and (2) effective metric learning for images between support and query sets. In this paper, we show that the two challenges can be well modeled simultaneously via a unified Query-Support TransFormer (QSFormer) model. To be specific,the proposed QSFormer involves global query-support sample Transformer (sampleFormer) branch and local patch Transformer (patchFormer) learning branch. sampleFormer aims to capture the dependence of samples in support and query sets for image representation. It adopts the Encoder, Decoder and Cross-Attention to respectively model the Support, Query (image) representation and Metric learning for few-shot classification task. Also, as a complementary to global learning branch, we adopt a local patch Transformer to extract structural representation for each image sample by capturing the long-range dependence of local image patches. In addition, a novel Cross-scale Interactive Feature Extractor (CIFE) is proposed to extract and fuse multi-scale CNN features as an effective backbone module for the proposed few-shot learning method. All modules are integrated into a unified framework and trained in an end-to-end manner. Extensive experiments on four popular datasets demonstrate the effectiveness and superiority of the proposed QSFormer.
Code (0)
등록된 구현이 없습니다.
Tasks
DecoderFew-Shot LearningMetric LearningMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
Reference Twice: A Simple and Unified Baseline for Few-Shot Instance Segmentation
Few-Shot Instance Segmentation (FSIS) requires detecting and segmenting novel classes with limited support examples. Existing methods based on Region Proposal Networks (RPNs) face two issues: 1) Overfitting suppresses no…
BenchmarkingFew-shot Instance SegmentationFew-Shot Object DetectionInstance Segmentation+5Enhancing Few-shot Image Classification with Cosine Transformer
This paper addresses the few-shot image classification problem, where the classification task is performed on unlabeled query samples given a small amount of labeled support samples only. One major challenge of the few-s…
ClassificationFew-Shot Image ClassificationFew-Shot Learningimage-classification+1Few-Shot Segmentation via Cycle-Consistent Transformer
Few-shot segmentation aims to train a segmentation model that can fast adapt to novel classes with few exemplars. The conventional training paradigm is to learn to make predictions on query images conditioned on the feat…
Few-Shot Semantic SegmentationSegmentationSemantic SegmentationCATrans: Context and Affinity Transformer for Few-Shot Segmentation
Few-shot segmentation (FSS) aims to segment novel categories given scarce annotated support images. The crux of FSS is how to aggregate dense correlations between support and query images for query segmentation while bei…
RelationTransfer LearningPrototype as Query for Few Shot Semantic Segmentation
Few-shot Semantic Segmentation (FSS) was proposed to segment unseen classes in a query image, referring to only a few annotated examples named support images. One of the characteristics of FSS is spatial inconsistency be…
Few-Shot Semantic Segmentation