PromptMix: A Class Boundary Augmentation Method for Large Language Model Distillation

Gaurav Sahu, Olga Vechtomova, Dzmitry Bahdanau, Issam H. Laradji
10/22/2023
cs.CLcs.AI

Official code: ServiceNow/promptmix-emnlp-2023 (12 stars, Apache-2.0, last commit 2023-12-13).

Abstract

Data augmentation is a widely used technique to address the problem of text classification when there is a limited amount of training data. Recent work often tackles this problem using large language models (LLMs) like GPT3 that can generate new examples given already available ones. In this work, we propose a method to generate more helpful augmented data by utilizing the LLM's abilities to follow instructions and perform few-shot classifications. Our specific PromptMix method consists of two steps: 1) generate challenging text augmentations near class boundaries; however, generating borderline examples increases the risk of false positives in the dataset, so we 2) relabel the text augmentations using a prompting-based LLM classifier to enhance the correctness of labels in the generated data. We evaluate the proposed method in challenging 2-shot and zero-shot settings on four text classification datasets: Banking77, TREC6, Subjectivity (SUBJ), and Twitter Complaints. Our experiments show that generating and, crucially, relabeling borderline examples facilitates the transfer of knowledge of a massive LLM like GPT3.5-turbo into smaller and cheaper classifiers like DistilBERT$_{base}$ and BERT$_{base}$. Furthermore, 2-shot PromptMix outperforms multiple 5-shot data augmentation methods on the four datasets. Our code is available at https://github.com/ServiceNow/PromptMix-EMNLP-2023.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Offical code repository for PromptMix: A Class Boundary Augmentation Method for Large Language Model Distillation, EMNLP 2023

122PythonOct 17, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{sahu2023promptmix,
  title  = {PromptMix: A Class Boundary Augmentation Method for Large Language Model Distillation},
  author = {Gaurav Sahu and Olga Vechtomova and Dzmitry Bahdanau and Issam H. Laradji},
  year   = {2023},
  eprint = {2310.14192},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.14192v1}
}

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/2310.14192.svg)](https://codeofpaper.com/paper/2310.14192)

Discussion