Contrastive Learning for Prompt-Based Few-Shot Language Learners
Not on the map. Why?
Abstract (arXiv)
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. The code will be made available at: https://github.com/yiren-jian/LM-SupCon.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 25 of its 28 references that are in the map. First posted on arXiv 3 May 2022.
Builds on
25 of 28 references.
References · 25
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2020Supervised Contrastive Learningcited by 2,803
- 2020Big Self-Supervised Models are Strong Semi-Supervised Learnerscited by 1,375
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2019Contrastive Multiview Codingcited by 1,297
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2020What Makes for Good Views for Contrastive Learning?cited by 843
- 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 800
- 2019Contrastive Representation Distillationcited by 734
13 more
- 2021Towards Understanding and Mitigating Social Biases in Language Modelscited by 294
- 2021Improving and Simplifying Pattern Exploiting Trainingcited by 97
- 2021Bootstrapping Semantic Segmentation with Regional Contrastcited by 80
- 2021AEDA: An Easier Data Augmentation Technique for Text Classificationcited by 67
- 2020LoCo: Local Contrastive Representation Learningcited by 55
- 2020Self-Supervised Meta-Learning for Few-Shot Natural Language Classification Taskscited by 51
- 2019A Closer Look At Feature Space Data Augmentation For Few-Shot Intent Classificationcited by 45
- 2021Few-Shot Text Classification with Triplet Networks, Data Augmentation, and Curriculum Learningcited by 35
- 2020Meta-Learning for Few-Shot NMT Adaptationcited by 20
- 2021Label Hallucination for Few-Shot Classificationcited by 11
- 2021Few-shot learning through contextual data augmentationcited by 8
- 2021Semi-Supervised Few-Shot Intent Classification and Slot Fillingcited by 3
- 2021MetaPix: Domain Transfer for Semantic Segmentation by Meta Pixel Weightingcited by 2
Built on by
Citing papers per year: 2022: 4; 2023: 4; 2024: 6; 2025: 3.
17 papers.
Sort:
By area:
- 2024On Large Language Model Continual Unlearningcited by 51
- 2023ConDA: Contrastive Domain Adaptation for AI-generated Text Detectioncited by 37
- 2023LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuningcited by 15
- 2022Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddingscited by 10
- 2022Few-shot Multimodal Sentiment Analysis based on Multimodal Probabilistic Fusion Promptscited by 9
- 2024Prompt-Based Bias Calibration for Better Zero/Few-Shot Learning of Language Modelscited by 7
- 2023Emotion-Conditioned Text Generation through Automatic Prompt Optimizationcited by 6
- 2023ML-LMCL: Mutual Learning and Large-Margin Contrastive Learning for Improving ASR Robustness in Spoken Language Understandingcited by 6
- 2025Few-shot Personalized Scanpath Predictioncited by 5
- 2024Across-Game Engagement Modelling via Few-Shot Learningcited by 4
- 2024SetCSE: Set Operations using Contrastive Learning of Sentence Embeddingscited by 2
- 2022Let Me Check the Examples: Enhancing Demonstration Learning via Explicit Imitationcited by 1
5 more
- 2024Prompt-enhanced Network for Hateful Meme Classificationcited by 1
- 2022ConsPrompt: Exploiting Contrastive Samples for Fewshot Prompt Learningcited by 0
- 2024Train Once for All: A Transitional Approach for Efficient Aspect Sentiment Triplet Extractioncited by 0
- 2025Advancing Uto-Aztecan Language Technologies: A Case Study on the Endangered Comanche Languagecited by 0
- 2025Rotation Control Unlearning: Quantifying and Controlling Continuous Unlearning for LLM with The Cognitive Rotation Spacecited by 0
- 2025Rotation Control Unlearning: Quantifying and Controlling Continuous Unlearning for LLM with The Cognitive Rotation Space30 Sep 2025
- 2025Advancing Uto-Aztecan Language Technologies: A Case Study on the Endangered Comanche Language10 May 2025
- 2025Few-shot Personalized Scanpath Prediction7 Apr 2025
- 2024Train Once for All: A Transitional Approach for Efficient Aspect Sentiment Triplet Extraction29 Nov 2024
- 2024Prompt-enhanced Network for Hateful Meme Classification12 Nov 2024
- 2024Across-Game Engagement Modelling via Few-Shot Learning19 Sep 2024
- 2024On Large Language Model Continual Unlearning14 Jul 2024
- 2024SetCSE: Set Operations using Contrastive Learning of Sentence Embeddings25 Apr 2024
- 2024Prompt-Based Bias Calibration for Better Zero/Few-Shot Learning of Language Models15 Feb 2024
- 2023ML-LMCL: Mutual Learning and Large-Margin Contrastive Learning for Improving ASR Robustness in Spoken Language Understanding19 Nov 2023
- 2023ConDA: Contrastive Domain Adaptation for AI-generated Text Detection7 Sep 2023
- 2023Emotion-Conditioned Text Generation through Automatic Prompt Optimization9 Aug 2023
5 more
- 2023LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning29 May 2023
- 2022Few-shot Multimodal Sentiment Analysis based on Multimodal Probabilistic Fusion Prompts12 Nov 2022
- 2022ConsPrompt: Exploiting Contrastive Samples for Fewshot Prompt Learning8 Nov 2022
- 2022Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddings20 Sep 2022
- 2022Let Me Check the Examples: Enhancing Demonstration Learning via Explicit Imitation31 Aug 2022
- 2023ConDA: Contrastive Domain Adaptation for AI-generated Text Detectioncited by 37
- 2023LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuningcited by 15
- 2022Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddingscited by 10
- 2022Few-shot Multimodal Sentiment Analysis based on Multimodal Probabilistic Fusion Promptscited by 9
- 2024Prompt-Based Bias Calibration for Better Zero/Few-Shot Learning of Language Modelscited by 7
- 2023Emotion-Conditioned Text Generation through Automatic Prompt Optimizationcited by 6
- 2023ML-LMCL: Mutual Learning and Large-Margin Contrastive Learning for Improving ASR Robustness in Spoken Language Understandingcited by 6
- 2025Few-shot Personalized Scanpath Predictioncited by 5
- 2024Across-Game Engagement Modelling via Few-Shot Learningcited by 4
- 2024SetCSE: Set Operations using Contrastive Learning of Sentence Embeddingscited by 2
- 2022Let Me Check the Examples: Enhancing Demonstration Learning via Explicit Imitationcited by 1
- 2024Prompt-enhanced Network for Hateful Meme Classificationcited by 1
12 most cited of 15 All 15 (JSON)
- 2025Advancing Uto-Aztecan Language Technologies: A Case Study on the Endangered Comanche Language10 May 2025
- 2025Few-shot Personalized Scanpath Prediction7 Apr 2025
- 2024Train Once for All: A Transitional Approach for Efficient Aspect Sentiment Triplet Extraction29 Nov 2024
- 2024Prompt-enhanced Network for Hateful Meme Classification12 Nov 2024
- 2024Across-Game Engagement Modelling via Few-Shot Learning19 Sep 2024
- 2024SetCSE: Set Operations using Contrastive Learning of Sentence Embeddings25 Apr 2024
- 2024Prompt-Based Bias Calibration for Better Zero/Few-Shot Learning of Language Models15 Feb 2024
- 2023ML-LMCL: Mutual Learning and Large-Margin Contrastive Learning for Improving ASR Robustness in Spoken Language Understanding19 Nov 2023
- 2023ConDA: Contrastive Domain Adaptation for AI-generated Text Detection7 Sep 2023
- 2023Emotion-Conditioned Text Generation through Automatic Prompt Optimization9 Aug 2023
- 2023LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning29 May 2023
- 2022Few-shot Multimodal Sentiment Analysis based on Multimodal Probabilistic Fusion Prompts12 Nov 2022
12 newest of 15 All 15 (JSON)