Few-Shot Learning Meets Transformer: Unified Query-Support Transformers for Few-Shot Classification

08/26/2022
by   Xixi Wang, et al.
0

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.

READ FULL TEXT

page 1

page 3

research
05/25/2023

Multi-scale Efficient Graph-Transformer for Whole Slide Image Classification

The multi-scale information among the whole slide images (WSIs) is essen...
research
11/30/2020

Multi-scale Adaptive Task Attention Network for Few-Shot Learning

The goal of few-shot learning is to classify unseen categories with few ...
research
04/20/2023

Clustered-patch Element Connection for Few-shot Learning

Weak feature representation problem has influenced the performance of fe...
research
09/27/2021

Sparse Spatial Transformers for Few-Shot Learning

Learning from limited data is a challenging task since the scarcity of d...
research
11/13/2022

Enhancing Few-shot Image Classification with Cosine Transformer

This paper addresses the few-shot image classification problem. One nota...
research
03/28/2022

Few-Shot Object Detection with Fully Cross-Transformer

Few-shot object detection (FSOD), with the aim to detect novel objects u...
research
09/10/2020

Attributes-Guided and Pure-Visual Attention Alignment for Few-Shot Recognition

The purpose of few-shot recognition is to recognize novel categories wit...

Please sign up or login with your details

Forgot password? Click here to reset