Skip to main content
QUICK REVIEW

[论文解读] Chain of Natural Language Inference for Reducing Large Language Model Ungrounded Hallucinations

Deren Lei, Yaxi Li|arXiv (Cornell University)|Oct 6, 2023
Topic ModelingComputer Science被引用 11
一句话总结

本文提出 CoNLI,一种即插即用的两阶段框架(检测与缓解),通过分层的句子级和实体级自然语言推理来检测大型语言模型输出中的未有根据的幻觉,并通过后编辑在不进行微调的前提下减少幻觉。

ABSTRACT

Large language models (LLMs) can generate fluent natural language texts when given relevant documents as background context. This ability has attracted considerable interest in developing industry applications of LLMs. However, LLMs are prone to generate hallucinations that are not supported by the provided sources. In this paper, we propose a hierarchical framework to detect and mitigate such ungrounded hallucination. Our framework uses Chain of Natural Language Inference (CoNLI) for hallucination detection and hallucination reduction via post-editing. Our approach achieves state-of-the-art performance on hallucination detection and enhances text quality through rewrite, using LLMs without any fine-tuning or domain-specific prompt engineering. We show that this simple plug-and-play framework can serve as an effective choice for hallucination detection and reduction, achieving competitive performance across various contexts.

研究动机与目标

  • 界定文本到文本生成中的未有根据的幻觉及其对可信度的影响。
  • 开发一个通用的、非微调的检测与编辑框架,可用于任何 LLM API。
  • 提升幻觉检测能力并在不同任务中展示有效的后编辑缓解效果。
  • 在合成与人工标注的 grounding 基准测试中展示鲁棒性。

提出的方法

  • 提出一个两阶段的检测与缓解流水线(D 和 M)。
  • 利用推理链(CoT)提示和少量示例,以句子级 NLI 检测幻觉,对源 X 进行。
  • 若某句不产生幻觉,则对标注的实体应用实体级 NLI,进行基于命名实体识别(NER)驱动、以实体为焦点的检查。
  • 将句子级与实体级判断合并,以决定每个假设的总体幻觉状态。
  • 通过在检测输出的引导下改写/删除幻觉句子来缓解,同时保留原始回答的结构。

实验结果

研究问题

  • RQ1How does CoNLI’s detection performance compare with existing LLM-based and model-based hallucination detectors?
  • RQ2Does applying CoNLI with post-edit mitigation improve NLG quality and groundedness versus raw responses across benchmarks?

主要发现

  • CoNLI 在多项基准测试上的幻觉检测方面取得了强势或最先进的表现。
  • CoNLI-GPT4 在合成和带注释的数据集上常常取得最佳结果,在对比基线甚至对 oracle 基线时也具有竞争力。
  • 分层检测(句子级+实体级)优于单一层级的方法。
  • 利用 CoNLI 输出进行缓解可以提升 groundedness 指标和多项 NLG 指标,同时保留或提升整体文本质量。
  • 在带注释的数据集上,CoNLI-GPT4 在 groundedness 和若干质量指标方面有所提升,尽管 Rouge 指标有些波动。
  • 该框架在无需模型微调或领域特定提示工程的情况下仍然有效。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。