Semantic Prompt for Few-Shot Image Recognition
Abstract
Few-shot learning is a challenging problem since only a few examples are provided to recognize a new class. Several recent studies exploit additional semantic information, e.g. text embeddings of class names, to address the issue of rare samples through combining semantic prototypes with visual prototypes. However, these methods still suffer from the spurious visual features learned from the rare support samples, resulting in limited benefits. In this paper, we propose a novel Semantic Prompt (SP) approach for few-shot learning. Instead of the naive exploitation of semantic information for remedying classifiers, we explore leveraging semantic information as prompts to tune the visual feature extraction network adaptively. Specifically, we design two complementary mechanisms to insert semantic prompts into the feature extractor: one is to enable the interaction between semantic prompts and patch embeddings along the spatial dimension via self-attention, another is to supplement visual features with the transformed semantic prompts along the channel dimension. By combining these two mechanisms, the feature extractor presents a better ability to attend to the class-specific features and obtains more generalized image representations with merely a few support samples. Through extensive experiments on four datasets, the proposed approach achieves promising results, improving the 1-shot learning accuracy by 3.67% on average.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Envisioning Class Entity Reasoning by Large Language Models for Few-shot Learning cites Simple Semantic-Aided Few-Shot Learning
- Envisioning Class Entity Reasoning by Large Language Models for Few-shot Learning cites Learning Transferable Visual Models From Natural Language Supervision
- DriveWorld: 4D Pre-Trained Scene Understanding via World Models for Autonomous Driving cites Learning Transferable Visual Models From Natural Language Supervision
- VT-FSL: Bridging Vision and Text with LLMs for Few-Shot Learning cites Envisioning Class Entity Reasoning by Large Language Models for Few-shot Learning
- VT-FSL: Bridging Vision and Text with LLMs for Few-Shot Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- VT-FSL: Bridging Vision and Text with LLMs for Few-Shot Learning cites Simple Semantic-Aided Few-Shot Learning
- VT-FSL: Bridging Vision and Text with LLMs for Few-Shot Learning cites Learning Transferable Visual Models From Natural Language Supervision
- Simple Semantic-Aided Few-Shot Learning cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Simple Semantic-Aided Few-Shot Learning cites Learning Transferable Visual Models From Natural Language Supervision
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Learning Transferable Visual Models From Natural Language Supervision
- Prompt-Driven Referring Image Segmentation with Instance Contrasting cites Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Multimodal Few-Shot Learning with Frozen Language Models cites Learning Transferable Visual Models From Natural Language Supervision
Cited by top-tier papers17
- Simple Semantic-Aided Few-Shot LearningHai Zhang, Junzhe Xu, Shanlin Jiang, Zhenan HeCVPR 2024 · 33 citations
- DriveWorld: 4D Pre-Trained Scene Understanding via World Models for Autonomous DrivingChen Min, Dawei Zhao, Liang Xiao, Jian Zhao et al.CVPR 2024 · 20 citations
- Prompt-Driven Referring Image Segmentation with Instance ContrastingChao Shang, Zichen Song, Heqian Qiu, Lanxiao Wang et al.CVPR 2024 · 20 citations
- Envisioning Class Entity Reasoning by Large Language Models for Few-shot LearningMushui Liu, Fangtai Wu, Bozheng Li, Ziqian Lu et al.AAAI 2025 · 15 citations
- VT-FSL: Bridging Vision and Text with LLMs for Few-Shot LearningWenhao Li, Qiangchang Wang, Xianjing Meng, Zhibin Wu et al.NeurIPS 2025 · 10 citations
Builds on23
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- RandAugment: Practical Automated Data Augmentation with a Reduced Search SpaceEkin Dogus Cubuk, Barret Zoph, Jonathon Shlens, Quoc LeNeurIPS 2020 · 4,453 citations
- Multimodal Few-Shot Learning with Frozen Language ModelsMaria Tsimpoukelli, Jacob Menick, Serkan Cabi, S. M. Ali Eslami et al.NeurIPS 2021 · 1,020 citations
Related papers
- Self-Prompt Mechanism for Few-Shot Image RecognitionMingchen Song, Huiqiang Wang, Guoqiang ZhongAAAI 2024
- KNN Transformer with Pyramid Prompts for Few-Shot LearningWenhao Li, Qiangchang Wang, Peng Zhao, Yilong YinACM MM 2024 · 3 citations
- Semantic-based Selection, Synthesis, and Supervision for Few-shot LearningJinda Lu, Shuo Wang, Xinyu Zhang, Yanbin Hao et al.ACM MM 2023 · 7 citations
- Multi-Label Few-Shot Image Classification via Pairwise Feature Augmentation and Flexible Prompt LearningHan Liu, Yuanyuan Wang, Xiaotong Zhang, Feng Zhang et al.AAAI 2025 · 3 citations
- Visual and Semantic Prompt Collaboration for Generalized Zero-Shot LearningHuajie Jiang, Zhengxian Li, Xiaohan Yu, Yongli Hu et al.CVPR 2025
