arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11148cs.CVcs.AIcs.LG
收藏

基于分阶段检索增强微调的少样本识别

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

Texas A&M University(德克萨斯农工大学);University of Macau(澳门大学);Institute of Collaborative Innovation(协同创新研究院)

Tian Liu, Huixin Zhang, Shubham Parashar, Shu Kong

AI总结:

针对少样本识别中标注成本高的问题,提出分阶段检索增强微调方法SWAT,通过两阶段训练缓解检索数据的分布不平衡与域间隙问题,在9个基准上准确率较现有方法提升超6%。

摘要:

少样本识别(FSR)旨在仅使用下游任务所关注的每个概念的少量标注样本来训练分类模型,此类场景下的数据标注成本可能高得令人望而却步。我们提出了利用预训练视觉语言模型(VLM)解决少样本识别问题的方法。我们重点探索了检索增强学习(RAL),该方法通过检索开放数据(例如VLM的预训练数据集)来训练模型,以更好地服务于下游任务。检索增强学习已在零样本识别领域得到研究,但在少样本识别中的探索仍不充分。尽管将检索增强学习应用于少样本识别看似直接,但我们观察到了值得关注的全新挑战与机遇。首先,有些出人意料的是,在大量检索到的数据上微调VLM的效果不如当前最优的零样本方法,这是由检索数据的分布不平衡及其与下游任务中少样本样本的域间隙导致的。其次,更令人意外的是,我们发现仅在少样本样本上简单微调VLM的效果就显著优于以往的少样本识别方法,而在检索数据与少样本数据的混合集上微调能取得更优结果。第三,为缓解分布不平衡和域间隙问题,我们提出了分阶段检索增强微调(SWAT)方法:第一阶段在混合数据上进行端到端微调,第二阶段在少样本数据上重新训练分类器。在9个流行基准上的大量实验表明,SWAT的准确率较以往方法显著提升超过6%。

英文摘要:

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 pretraining 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑