arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2011.02593cs.CLcs.AI
收藏

条件神经序列生成中幻觉内容的检测

Detecting Hallucinated Content in Conditional Neural Sequence Generation

Carnegie Mellon University(卡内基梅隆大学);Facebook AI Research(脸书人工智能研究院)

Chunting Zhou, Graham Neubig, Jiatao Gu, Mona Diab, Paco Guzman, Luke Zettlemoyer, Marjan Ghazvininejad

摘要:

神经序列模型可以生成高度流畅的句子,但最近的研究也表明,它们也容易产生输入不支持的额外内容。这些流畅但错误的输出尤其成问题,因为用户不可能告诉他们正在呈现不正确的内容。为了检测这些错误,我们提出了一个任务来预测输出序列中的每个令牌是否是幻觉(不包含在输入中),并为此任务收集新的手动注释的评估集。我们还介绍了一种使用预训练的语言模型来学习检测幻觉的方法,该模型在合成数据上进行了微调,其中包括自动插入的幻觉。机器翻译(MT)和抽象摘要的实验表明,我们提出的方法在所有基准数据集上的表现始终优于强基线。我们进一步展示了如何使用标记级幻觉标签来定义低资源MT中目标序列的细粒度损失,并在强基线方法上实现显着改进。我们还将我们的方法应用于MT的字级质量估计,并在监督和无监督设置中显示其有效性。代码和数据可在https://github.com/violet-zct/fairseq-detect-hallucination上获得。

英文摘要:

Neural sequence models can generate highly fluent sentences, but recent studies have also shown that they are also prone to hallucinate additional content not supported by the input. These variety of fluent but wrong outputs are particularly problematic, as it will not be possible for users to tell they are being presented incorrect content. To detect these errors, we propose a task to predict whether each token in the output sequence is hallucinated (not contained in the input) and collect new manually annotated evaluation sets for this task. We also introduce a method for learning to detect hallucinations using pretrained language models fine tuned on synthetic data that includes automatically inserted hallucinations Experiments on machine translation (MT) and abstractive summarization demonstrate that our proposed approach consistently outperforms strong baselines on all benchmark datasets. We further demonstrate how to use the token-level hallucination labels to define a fine-grained loss over the target sequence in low-resource MT and achieve significant improvements over strong baseline methods. We also apply our method to word-level quality estimation for MT and show its effectiveness in both supervised and unsupervised settings. Codes and data available at https://github.com/violet-zct/fairseq-detect-hallucination.

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

↑