Few-Shot Recognition via Stage-Wise Retrieval-Augmented Finetuning

Tian Liu, Huixin Zhang, Shubham Parashar, Shu Kong
2/9/2026

No official code found. Best implementation: tian1327/SWAT (32 stars, MIT, last commit 2026-03-15).

Abstract

Few-shot recognition (FSR) aims to train a classification model with only a few labeled examples of each concept concerned by a downstream task, where data annotation cost can be prohibitively high. We develop methods to solve FSR by leveraging a pretrained Vision-Language Model (VLM). We particularly explore retrieval-augmented learning (RAL), which retrieves open data, e.g., the VLM’s pre-training dataset, to learn models for better serving downstream tasks. RAL has been studied in zero-shot recognition but remains under-explored in FSR. Although applying RAL to FSR may seem straightforward, we observe interesting and novel challenges and opportunities. First, somewhat surprisingly, finetuning a VLM on a large amount of retrieved data underperforms state-of-the-art zero-shot methods. This is due to the imbalanced distribution of retrieved data and its domain gaps with the few-shot examples in the downstream task. Second, more surprisingly, we find that simply finetuning a VLM solely on few-shot examples significantly outperforms previous FSR methods, and finetuning on the mix of retrieved and few-shot data yields even better results. Third, to mitigate the imbalanced distribution and domain gap issues, we propose Stage-Wise retrieval-Augmented fineTuning (SWAT), which involves end-to-end finetuning on mixed data in the first stage and retraining the classifier on the few-shot data in the second stage. Extensive experiments on nine popular benchmarks demonstrate that SWAT significantly outperforms previous methods by >6% accuracy.

View on arXivView PDF

Code Implementations(1)

tian1327/SWATCommunity76%
MIT

[CVPR 2025] Few-shot Recognition via Stage-Wise Retrieval-Augmented Finetuning

324Shell, PythonJun 16, 20247 months agoMIT
fewshot-learningvision-language-model

Similar Papers

Cite this paper

@article{liu2026fewshot,
  title  = {Few-Shot Recognition via Stage-Wise Retrieval-Augmented Finetuning},
  author = {Tian Liu and Huixin Zhang and Shubham Parashar and Shu Kong},
  year   = {2026},
  eprint = {2406.11148},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2406.11148},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.11148.svg)](https://codeofpaper.com/paper/2406.11148)

Discussion