LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning

Amirhossein Abaskohi, Sascha Rothe, Yadollah Yaghoobzadeh
5/29/2023
cs.CL

No official code found. Best implementation: AmirAbaskohi/LM-CPPF (11 stars, Apache-2.0, last commit 2023-11-28).

Abstract

In recent years, there has been significant progress in developing pre-trained language models for NLP. However, these models often struggle when fine-tuned on small datasets. To address this issue, researchers have proposed various adaptation approaches. Prompt-based tuning is arguably the most common way, especially for larger models. Previous research shows that adding contrastive learning to prompt-based fine-tuning is effective as it helps the model generate embeddings that are more distinguishable between classes, and it can also be more sample-efficient as the model learns from positive and negative examples simultaneously. One of the most important components of contrastive learning is data augmentation, but unlike computer vision, effective data augmentation for NLP is still challenging. This paper proposes LM-CPPF, Contrastive Paraphrasing-guided Prompt-based Fine-tuning of Language Models, which leverages prompt-based few-shot paraphrasing using generative language models, especially large language models such as GPT-3 and OPT-175B, for data augmentation. Our experiments on multiple text classification benchmarks show that this augmentation method outperforms other methods, such as easy data augmentation, back translation, and multiple templates.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The official implementation of the ACL 2023 paper, "Paraphrasing-Guided Data Augmentation for Contrastive Prompt-based Few-shot Fine-tuning".

113Shell, PythonMay 24, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{abaskohi2023lmcppf,
  title  = {LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning},
  author = {Amirhossein Abaskohi and Sascha Rothe and Yadollah Yaghoobzadeh},
  year   = {2023},
  eprint = {2305.18169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.18169v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.18169.svg)](https://codeofpaper.com/paper/2305.18169)

Discussion