arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.14192cs.CLcs.AI
收藏

PromptMix:一种用于大型语言模型蒸馏的类边界增强方法

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

University of Waterloo(滑铁卢大学);ServiceNow Research(ServiceNow研究院);Mila, McGill University(麦吉尔大学米拉研究所)

Gaurav Sahu, Olga Vechtomova, Dzmitry Bahdanau, Issam H. Laradji

AI总结:

提出PromptMix方法,通过在类边界生成增强文本并利用LLM重新标记,有效将大型模型知识蒸馏至小型分类器,在少样本设置下优于多种基线方法。

摘要:

数据增强是一种广泛使用的技术,用于解决训练数据量有限的文本分类问题。近期工作通常使用如GPT3这样的大型语言模型(LLMs)来解决此问题,这些模型能在已有样本的基础上生成新样本。在本研究中,我们提出一种方法,通过利用LLM遵循指令和执行少样本分类的能力,来生成更有帮助的增强数据。我们具体的PromptMix方法包含两个步骤:1)在类边界附近生成具有挑战性的文本增强;然而,生成边界样本会增加数据集中出现假阳性的风险,因此我们2)使用基于提示的LLM分类器对文本增强进行重新标记,以提高生成数据中标签的正确性。我们在四个文本分类数据集上,于具有挑战性的2-shot和zero-shot设置下评估了所提出的方法:Banking77、TREC6、Subjectivity(SUBJ)和Twitter Complaints。我们的实验表明,生成且关键的是重新标记边界样本,有助于将像GPT3.5-turbo这样的大型LLM的知识转移到像DistilBERT$_{base}$和BERT$_{base}$这样更小、更廉价的分类器中。此外,2-shot PromptMix在四个数据集上优于多种5-shot数据增强方法。代码可在https://github.com/ServiceNow/PromptMix-EMNLP-2023获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑