HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

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

Amirhossein Abaskohi; Sascha Rothe; Yadollah Yaghoobzadeh

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

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.

Code Repositories

amirabaskohi/lm-cppf
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
linguistic-acceptability-on-colaLM-CPPF RoBERTa-base
Accuracy: 14.1%
natural-language-inference-on-multinliLM-CPPF RoBERTa-base
Accuracy: 68.4
natural-language-inference-on-qnliLM-CPPF RoBERTa-base
Accuracy: 70.2%
sentiment-analysis-on-crLM-CPPF RoBERTa-base
Accuracy: 93.3
sentiment-analysis-on-sst-2-binaryLM-CPPF RoBERTa-base
Accuracy: 93.2
sentiment-analysis-on-sst-5-fine-grainedLM-CPPF RoBERTa-base
Accuracy: 54.9

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp