Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · 2022 · 30 citations · 13 references
ComputingComputer ScienceComputational LinguisticsMachine LearningNatural Language ProcessingLanguage LearningLanguage ModelingLanguage ModelsLearning From DemonstrationContrastive LearningContrastive LossFew-shot Language ModelingFew-shot LearningFine-tuningIn-context LearningMasked Language Modeling
The impressive performance of GPT‑3 with natural language prompts and in‑context learning has spurred research into better fine‑tuning of moderately sized models under this paradigm. We present a contrastive learning framework that clusters same‑class inputs to improve the generality of models trained with only limited examples. The framework applies supervised contrastive learning by clustering same‑class inputs across augmented views created via varied prompts and demonstrations, while repelling different‑class samples, and it requires minimal task or model assumptions. Adding contrastive loss to the standard masked language modeling loss improves performance over state‑of‑the‑art on 15 diverse language tasks in prompt‑based few‑shot learning.
The impressive performance of GPT-3 using natural language prompts and in-context learning has inspired work on better fine-tuning of moderately-sized models under this paradigm. Following this line of work, we present a contrastive learning framework that clusters inputs from the same class for better generality of models trained with only limited examples. Specifically, we propose a supervised contrastive framework that clusters inputs from the same class under different augmented “views” and repel the ones from different classes. We create different “views” of an example by appending it with different language prompts and contextual demonstrations. Combining a contrastive loss with the standard masked language modeling (MLM) loss in prompt-based few-shot learners, the experimental results show that our method can improve over the state-of-the-art methods in a diverse set of 15 language tasks. Our framework makes minimal assumptions on the task or the base model, and can be applied to many recent methods with little modification.
13
A Simple Framework for Contrastive Learning of Visual Representations
Ting Chen, Simon Kornblith, Mohammad Norouzi et al. · arXiv (Cornell University) · 2020 · 7.3K citations · Full text
mixup: Beyond Empirical Risk Minimization
Hongyi Zhang, Moustapha Cissé, Yann Dauphin et al. · arXiv (Cornell University) · 2017 · 4.8K citations · Full text
CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
Sangdoo Yun, Dongyoon Han, Sanghyuk Chun et al. · 2019 · 4.7K citations
Making Pre-trained Language Models Better Few-shot Learners
Tianyu Gao, Adam Fisch, Danqi Chen · 2021 · 1.2K citations · Full text