Making Pre-trained Language Models End-to-end Few-shot Learners with Contrastive Prompt Tuning
Not on the map. Why?
Abstract (arXiv)
Pre-trained Language Models (PLMs) have achieved remarkable performance for various language understanding tasks in IR systems, which require the fine-tuning process based on labeled training data. For low-resource scenarios, prompt-based learning for PLMs exploits prompts as task guidance and turns downstream tasks into masked language problems for effective few-shot fine-tuning. In most existing approaches, the high performance of prompt-based learning heavily relies on handcrafted prompts and verbalizers, which may limit the application of such approaches in real-world scenarios. To solve this issue, we present CP-Tuning, the first end-to-end Contrastive Prompt Tuning framework for fine-tuning PLMs without any manual engineering of task-specific prompts and verbalizers. It is integrated with the task-invariant continuous prompt encoding technique with fully trainable prompt parameters. We further propose the pair-wise cost-sensitive contrastive learning procedure to optimize the model in order to achieve verbalizer-free class mapping and enhance the task-invariance of prompts. It explicitly learns to distinguish different classes and makes the decision boundary smoother by assigning different costs to easy and hard cases. Experiments over a variety of language understanding tasks used in IR systems and different PLMs show that CP-Tuning outperforms state-of-the-art methods.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 40 of its 58 references that are in the map. First posted on arXiv 1 Apr 2022.
Builds on
40 of 58 references.
References · 40
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2017Prototypical Networks for Few-shot Learningcited by 3,001
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
- 2020Supervised Contrastive Learningcited by 2,803
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
28 more
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2018Deep contextualized word representationscited by 2,285
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2019How Can We Know What Language Models Know?cited by 953
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2021GPT Understands, Toocited by 715
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
- 2020A Survey on Contrastive Self-supervised Learningcited by 553
- 2020Pre-trained Models for Natural Language Processing: A Surveycited by 504
- 2020Circle Loss: A Unified Perspective of Pair Similarity Optimizationcited by 402
- 2021ERNIE 3.0: Large-scale Knowledge Enhanced Pre-training for Language Understanding and Generationcited by 258
- 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 246
- 2019ERNIE 2.0: A Continual Pre-training Framework for Language Understandingcited by 230
- 2021WARP: Word-level Adversarial ReProgrammingcited by 220
- 2021How Many Data Points is a Prompt Worth?cited by 197
- 2021Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classificationcited by 183
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2019StructBERT: Incorporating Language Structures into Pre-training for Deep Language Understandingcited by 108
- 2021Self-Guided Contrastive Learning for BERT Sentence Representationscited by 103
- 2020Few-Shot Text Generation with Pattern-Exploiting Trainingcited by 87
- 2020Contrastive Self-Supervised Learning for Commonsense Reasoningcited by 25
- 2020A Simple and Effective Self-Supervised Contrastive Learning Framework for Aspect Detectioncited by 13
- 2019Self-Supervised Learning for Contextualized Extractive Summarizationcited by 12
Built on by
Citing papers per year: 2022: 3; 2023: 7; 2024: 7; 2025: 2.
19 papers.
Sort:
By area:
- 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunitiescited by 162
- 2024Lifelong Knowledge Editing for LLMs with Retrieval-Augmented Continuous Prompt Learningcited by 40
- 2024Heterogeneous Contrastive Learning for Foundation Models and Beyondcited by 27
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 25
- 2023Deep Learning for Cross-Domain Few-Shot Visual Recognition: A Surveycited by 14
- 2022EasyNLP: A Comprehensive and Easy-to-use Toolkit for Natural Language Processingcited by 9
- 2024OneNet: A Fine-Tuning Free Framework for Few-Shot Entity Linking via Large Language Model Promptingcited by 9
- 2024Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Modelscited by 7
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learningcited by 6
- 2024Exploring Prompt Engineering: A Systematic Review with SWOT Analysiscited by 5
- 2025MedREK: Retrieval-Based Editing for Medical LLMs with Key-Aware Promptscited by 5
- 2023ContrastNER: Contrastive-based Prompt Tuning for Few-shot NERcited by 3
7 more
- 2024StablePT: Towards Stable Prompting for Few-shot Learning via Input Separationcited by 3
- 2023Towards Better Parameter-Efficient Fine-Tuning for Large Language Models: A Position Papercited by 2
- 2025Prompt-Driven Continual Graph Learningcited by 1
- 2022ConsPrompt: Exploiting Contrastive Samples for Fewshot Prompt Learningcited by 0
- 2023D2CSE: Difference-aware Deep continuous prompts for Contrastive Sentence Embeddingscited by 0
- 2023Boosting Prompt-Based Self-Training With Mapping-Free Automatic Verbalizer for Multi-Class Classificationcited by 0
- 2024A Novel Prompt-tuning Method: Incorporating Scenario-specific Concepts into a Verbalizercited by 0
- 2025MedREK: Retrieval-Based Editing for Medical LLMs with Key-Aware Prompts15 Oct 2025
- 2025Prompt-Driven Continual Graph Learning10 Feb 2025
- 2024OneNet: A Fine-Tuning Free Framework for Few-Shot Entity Linking via Large Language Model Prompting10 Oct 2024
- 2024Exploring Prompt Engineering: A Systematic Review with SWOT Analysis9 Oct 2024
- 2024Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Models15 Jun 2024
- 2024Lifelong Knowledge Editing for LLMs with Retrieval-Augmented Continuous Prompt Learning6 May 2024
- 2024StablePT: Towards Stable Prompting for Few-shot Learning via Input Separation30 Apr 2024
- 2024Heterogeneous Contrastive Learning for Foundation Models and Beyond30 Mar 2024
- 2024A Novel Prompt-tuning Method: Incorporating Scenario-specific Concepts into a Verbalizer10 Jan 2024
- 2023Boosting Prompt-Based Self-Training With Mapping-Free Automatic Verbalizer for Multi-Class Classification8 Dec 2023
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Survey1 Dec 2023
- 2023Towards Better Parameter-Efficient Fine-Tuning for Large Language Models: A Position Paper22 Nov 2023
7 more
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learning26 Sep 2023
- 2023ContrastNER: Contrastive-based Prompt Tuning for Few-shot NER29 May 2023
- 2023D2CSE: Difference-aware Deep continuous prompts for Contrastive Sentence Embeddings18 Apr 2023
- 2023Deep Learning for Cross-Domain Few-Shot Visual Recognition: A Survey15 Mar 2023
- 2022ConsPrompt: Exploiting Contrastive Samples for Fewshot Prompt Learning8 Nov 2022
- 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunities13 May 2022
- 2022EasyNLP: A Comprehensive and Easy-to-use Toolkit for Natural Language Processing30 Apr 2022
- 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunitiescited by 162
- 2024Heterogeneous Contrastive Learning for Foundation Models and Beyondcited by 27
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 25
- 2023Deep Learning for Cross-Domain Few-Shot Visual Recognition: A Surveycited by 14
- 2022EasyNLP: A Comprehensive and Easy-to-use Toolkit for Natural Language Processingcited by 9
- 2024OneNet: A Fine-Tuning Free Framework for Few-Shot Entity Linking via Large Language Model Promptingcited by 9
- 2024Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Modelscited by 7
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learningcited by 6
- 2024Exploring Prompt Engineering: A Systematic Review with SWOT Analysiscited by 5
- 2025MedREK: Retrieval-Based Editing for Medical LLMs with Key-Aware Promptscited by 5
- 2023ContrastNER: Contrastive-based Prompt Tuning for Few-shot NERcited by 3
- 2024StablePT: Towards Stable Prompting for Few-shot Learning via Input Separationcited by 3
12 most cited of 17 All 17 (JSON)
- 2025MedREK: Retrieval-Based Editing for Medical LLMs with Key-Aware Prompts15 Oct 2025
- 2025Prompt-Driven Continual Graph Learning10 Feb 2025
- 2024OneNet: A Fine-Tuning Free Framework for Few-Shot Entity Linking via Large Language Model Prompting10 Oct 2024
- 2024Exploring Prompt Engineering: A Systematic Review with SWOT Analysis9 Oct 2024
- 2024Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Models15 Jun 2024
- 2024StablePT: Towards Stable Prompting for Few-shot Learning via Input Separation30 Apr 2024
- 2024Heterogeneous Contrastive Learning for Foundation Models and Beyond30 Mar 2024
- 2024A Novel Prompt-tuning Method: Incorporating Scenario-specific Concepts into a Verbalizer10 Jan 2024
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Survey1 Dec 2023
- 2023Towards Better Parameter-Efficient Fine-Tuning for Large Language Models: A Position Paper22 Nov 2023
- 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learning26 Sep 2023
- 2023ContrastNER: Contrastive-based Prompt Tuning for Few-shot NER29 May 2023
12 newest of 17 All 17 (JSON)