On the Importance of Distractors for Few-Shot Classification
Rajshekhar Das, Yu-Xiong Wang, José M. F. Moura
Abstract
Few-shot classification aims at classifying categories of a novel task by learning from just a few (typically, 1 to 5) labelled examples. An effective approach to few-shot classification involves a prior model trained on a large-sample base domain, which is then finetuned over the novel few-shot task to yield generalizable representations. However, task-specific finetuning is prone to overfitting due to the lack of enough training examples. To alleviate this issue, we propose a new finetuning approach based on contrastive learning that reuses unlabelled examples from the base do-main in the form of distractors. Unlike the nature of unlabelled data used in prior works, distractors belong to classes that do not overlap with the novel categories. We demonstrate for the first time that inclusion of such distractors can significantly boost few-shot generalization. Our technical novelty includes a stochastic pairing of examples sharing the same category in the few-shot task and a weighting term that controls the relative influence of task-specific negatives and distractors. An important aspect of our finetuning objective is that it is agnostic to distractor labels and hence applicable to various base domain settings. More precisely, compared to state-of-the-art approaches, our method shows accuracy gains of up to 12% in cross-domain and up to 5% in unsupervised prior-learning settings. Our code is available at https://github.com/quantacode/Contrastive-Finetuning.git
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.
8 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
- Contrastive Learning with Hard Negative Samples cites Data-Efficient Image Recognition with Contrastive Predictive Coding
- ME-D2N: Multi-Expert Domain Decompositional Network for Cross-Domain Few-Shot Learning cites Ranking Distance Calibration for Cross-Domain Few-Shot Learning
- Supervised Contrastive Learning cites Data-Efficient Image Recognition with Contrastive Predictive Coding
Cited by top-tier papers8
- Ranking Distance Calibration for Cross-Domain Few-Shot LearningPan Li, Shaogang Gong, Chengjie Wang, Yanwei FuCVPR 2022 · 59 citations
- POODLE: Improving Few-shot Learning via Penalizing Out-of-Distribution SamplesDuong H. Le, Khoi D. Nguyen, Khoi Nguyen, Quoc-Huy Tran et al.NeurIPS 2021 · 42 citations
- FeLMi : Few shot Learning with hard MixupAniket Roy, Anshul Shah, Ketul Shah, Prithviraj Dhar et al.NeurIPS 2022 · 41 citations
- TGDM: Target Guided Dynamic Mixup for Cross-Domain Few-Shot LearningLinhai Zhuo, Yuqian Fu, Jingjing Chen, Yixin Cao et al.ACM MM 2022 · 24 citations
- ME-D2N: Multi-Expert Domain Decompositional Network for Cross-Domain Few-Shot LearningYuqian Fu, Yu Xie, Yanwei Fu, Jingjing Chen et al.ACM MM 2022 · 24 citations
Builds on15
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- Data-Efficient Image Recognition with Contrastive Predictive CodingOlivier J. HénaffICML 2020 · 1,553 citations
- Contrastive Learning with Hard Negative SamplesJoshua David Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie JegelkaICLR 2021 · 999 citations
- Rapid Learning or Feature Reuse? Towards Understanding the Effectiveness of MAMLAniruddh Raghu, Maithra Raghu, Samy Bengio, Oriol VinyalsICLR 2020 · 736 citations
- Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few ExamplesEleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin et al.ICLR 2020 · 692 citations
Related papers
- Label Hallucination for Few-Shot ClassificationYiren Jian, Lorenzo TorresaniAAAI 2022 · 47 citations
- ConFeSS: A Framework for Single Source Cross-Domain Few-Shot LearningDebasmit Das, Sungrack Yun, Fatih PorikliICLR 2022 · 57 citations
- Exploring Task Difficulty for Few-Shot Relation ExtractionJiale Han, Bo Cheng, Wei LuEMNLP 2021 · 74 citations
- Cross-Level Distillation and Feature Denoising for Cross-Domain Few-Shot ClassificationHao Zheng, Runqi Wang, Jianzhuang Liu, Asako KanezakiICLR 2023 · 3 citations
- ContrastNet: A Contrastive Learning Framework for Few-Shot Text ClassificationJunfan Chen, Richong Zhang, Yongyi Mao, Jie XuAAAI 2022 · 100 citations
