arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.15718cs.CL
收藏

对比性新颖增强学习:利用大型语言模型预测分布外样本

Contrastive Novelty-Augmented Learning: Anticipating Outliers with Large Language Models

University of Southern California(南加州大学)

Albert Xu, Xiang Ren, Robin Jia

AI总结:

本文提出CoNAL方法,通过提示大型语言模型生成新类别OOD样本,并用对比目标训练分类器降低对其置信度,从而提升模型对新类别的检测与弃权能力,且不损害分布内准确率。

摘要:

在许多任务场景中,文本分类模型很可能遇到来自新类别的样本,而它们无法对这些样本进行正确预测。选择性预测(即模型对低置信度样本弃权(不执行))提供了一种可能的解决方案,但现有模型在未见过的类别上往往过于自信。为了纠正这种过度自信,我们提出了对比性新颖增强学习(CoNAL),这是一种两步方法:首先生成能够代表新类别的分布外(OOD)样本,然后训练模型降低对这些样本的置信度。第一步,我们通过两次提示大型语言模型来生成OOD样本:先提示它枚举相关的新类别,再为每个新类别生成符合任务格式的样本。第二步,我们使用一种新颖的对比目标训练分类器,该目标鼓励模型对生成的OOD样本给出比训练样本更低的置信度。使用CoNAL训练后,分类器在检测新类别样本并对其弃权(不执行)的能力上,相比先前方法在4个NLP数据集上平均提升了2.3%的准确率-覆盖率曲线下面积(AUAC)和5.5%的AUROC,同时不损失分布内准确率。

英文摘要:

In many task settings, text classification models are likely to encounter examples from novel classes on which they cannot predict correctly. Selective prediction, in which models abstain on low-confidence examples, provides a possible solution, but existing models are often overly confident on unseen classes. To remedy this overconfidence, we introduce Contrastive Novelty-Augmented Learning (CoNAL), a two-step method that generates OOD examples representative of novel classes, then trains to decrease confidence on them. First, we generate OOD examples by prompting a large language model twice: we prompt it to enumerate relevant novel classes, then generate examples from each novel class matching the task format. Second, we train a classifier with a novel contrastive objective that encourages lower confidence on generated OOD examples than training examples. When trained with CoNAL, classifiers improve in their ability to detect and abstain on novel class examples over prior methods by an average of 2.3% in terms of accuracy under the accuracy-coverage curve (AUAC) and 5.5% AUROC across 4 NLP datasets, with no cost to in-distribution accuracy.

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

↑