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

条件语言模型的分布外检测与选择生成

Out-of-Distribution Detection and Selective Generation for Conditional Language Models

Google Research(谷歌研究院);Carnegie Mellon University(卡内基梅隆大学)

Jie Ren, Jiaming Luo, Yao Zhao, Kundan Krishna, Mohammad Saleh, Balaji Lakshminarayanan, Peter J. Liu

摘要:

机器学习算法通常在训练和测试时假设独立且同分布的样本。许多研究表明,高性能的ML分类器可能会显着降低,并提供过度自信的错误分类预测,特别是对于分布外(OOD)输入。条件语言模型(CLM)主要被训练来对输出序列中的下一个标记进行分类,并且可能在OOD输入上遭受甚至更严重的降级,因为预测是在许多步骤上自回归地完成的。此外,潜在的低质量输出的空间更大,因为可以生成任意文本,并且知道何时信任生成的输出是很重要的。我们提出了一个高度准确和轻量级的面向对象检测方法CLMs,并证明了其有效性的抽象摘要和翻译。我们还展示了我们的方法如何在常见和现实的分布偏移设置下用于选择性生成(类似于选择性分类预测)高质量输出,同时自动放弃低质量输出,从而更安全地部署生成语言模型。

英文摘要:

Machine learning algorithms typically assume independent and identically distributed samples in training and at test time. Much work has shown that high-performing ML classifiers can degrade significantly and provide overly-confident, wrong classification predictions, particularly for out-of-distribution (OOD) inputs. Conditional language models (CLMs) are predominantly trained to classify the next token in an output sequence, and may suffer even worse degradation on OOD inputs as the prediction is done auto-regressively over many steps. Furthermore, the space of potential low-quality outputs is larger as arbitrary text can be generated and it is important to know when to trust the generated output. We present a highly accurate and lightweight OOD detection method for CLMs, and demonstrate its effectiveness on abstractive summarization and translation. We also show how our method can be used under the common and realistic setting of distribution shift for selective generation (analogous to selective prediction for classification) of high-quality outputs, while automatically abstaining from low-quality ones, enabling safer deployment of generative language models.

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

↑