English

tSF: Transformer-based Semantic Filter for Few-Shot Learning

Computer Vision and Pattern Recognition 2024-07-18 v2

Abstract

Few-Shot Learning (FSL) alleviates the data shortage challenge via embedding discriminative target-aware features among plenty seen (base) and few unseen (novel) labeled samples. Most feature embedding modules in recent FSL methods are specially designed for corresponding learning tasks (e.g., classification, segmentation, and object detection), which limits the utility of embedding features. To this end, we propose a light and universal module named transformer-based Semantic Filter (tSF), which can be applied for different FSL tasks. The proposed tSF redesigns the inputs of a transformer-based structure by a semantic filter, which not only embeds the knowledge from whole base set to novel set but also filters semantic features for target category. Furthermore, the parameters of tSF is equal to half of a standard transformer block (less than 1M). In the experiments, our tSF is able to boost the performances in different classic few-shot learning tasks (about 2% improvement), especially outperforms the state-of-the-arts on multiple benchmark datasets in few-shot classification task.

Keywords

Cite

@article{arxiv.2211.00868,
  title  = {tSF: Transformer-based Semantic Filter for Few-Shot Learning},
  author = {Jinxiang Lai and Siqian Yang and Wenlong Liu and Yi Zeng and Zhongyi Huang and Wenlong Wu and Jun Liu and Bin-Bin Gao and Chengjie Wang},
  journal= {arXiv preprint arXiv:2211.00868},
  year   = {2024}
}
R2 v1 2026-06-28T04:58:57.214Z