Skip to main content
QUICK REVIEW

[论文解读] FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios

I-Chun Chern, Steffi Chern|arXiv (Cornell University)|Jul 25, 2023
Natural Language Processing TechniquesComputer Science被引用 25
一句话总结

FacTool 提供了一个工具增强、任务和领域无关的框架,用于在知识基于问答、代码生成、数学以及科学文献综述等场景中检测大型语言模型输出中的事实错误,通过提取主张、查询工具、收集证据并核对一致性。

ABSTRACT

The emergence of generative pre-trained models has facilitated the synthesis of high-quality text, but it has also posed challenges in identifying factual errors in the generated text. In particular: (1) A wider range of tasks now face an increasing risk of containing factual errors when handled by generative models. (2) Generated texts tend to be lengthy and lack a clearly defined granularity for individual facts. (3) There is a scarcity of explicit evidence available during the process of fact checking. With the above challenges in mind, in this paper, we propose FacTool, a task and domain agnostic framework for detecting factual errors of texts generated by large language models (e.g., ChatGPT). Experiments on four different tasks (knowledge-based QA, code generation, mathematical reasoning, and scientific literature review) show the efficacy of the proposed method. We release the code of FacTool associated with ChatGPT plugin interface at https://github.com/GAIR-NLP/factool .

研究动机与目标

  • 将事实性检测从单任务扩展到多任务和多领域场景。
  • 利用工具的使用(搜索引擎、解释器、LLMs)来收集支持或反驳生成主张的证据。
  • 开发一个统一的管道,用于跨领域提取、查询、收集证据并验证一致性。
  • 在知识性问答、代码生成、数学题求解和科学文献综述写作等方面进行评估。
  • 发布代码并展示基于 GPT-4 的方法在事实性检测方面优于基线的优势。

提出的方法

  • 定义一个多功能的事实性框架,将工具使用与事实性检查连接起来。
  • 从生成的响应中提取细粒度的主张(ACUs),并以任务特定的定义为引导。
  • 从主张生成查询,以查询外部工具并收集证据。
  • 使用执行/证据(测试用例、Google Scholar 结果等)来验证主张。
  • 应用零-shot 因果链推理(CoT)与 LLM 进行一致性验证。
  • 使用四个任务进行评估,并与 Self-Check 基线进行比较。
Figure 1: Tool-augmented framework for factuality detection.
Figure 1: Tool-augmented framework for factuality detection.

实验结果

研究问题

  • RQ1使用统一框架,FacTool 是否能够在多样化任务(KB-QA、代码、数学、Sci-Lit)中检测到事实性错误?
  • RQ2利用工具辅助的事实性检测与基于 LLM 的自检基线相比如何?
  • RQ3基于 GPT-4 的 FacTool 在多领域事实性检测方面是否优于基于 ChatGPT 的变体?
  • RQ4主张提取质量对最终事实性判断的影响有多大?
  • RQ5外部证据(网络搜索、代码执行、Google Scholar)在跨领域支持事实性判断方面有多有效?

主要发现

  • 由 GPT-4 驱动的 FacTool 在 KB-QA、代码、数学和 Sci-Lit 任务中,在主张级 F1 方面达到最高,并且在回应级 F1 与基线相比具有竞争力或更优。
  • 基于 GPT-4 的 FacTool 在大多数场景中优于基于 ChatGPT 的 FacTool 和自检基线,特别是在科学文献综述和数学题求解方面。
  • 自检基线往往精确度较低,表明事实性判断的误报率较高。
  • 基于 Google Scholar 的证据在 Sci-Lit 的引用方面具有稳健性,通常在证据收集上优于仅使用 LLM 的方法。
  • 通过 ChatGPT 的主张提取在 RoSE 基于评估中,与人工注释的原子内容单元(ACUs)呈现高相似性。
Figure 2: Our proposed framework for factuality detection in four domains: knowledge-based QA, code generation, math problem solving and scientific literature review writing.
Figure 2: Our proposed framework for factuality detection in four domains: knowledge-based QA, code generation, math problem solving and scientific literature review writing.

阅读本论文

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

在 Nubint 中阅读本论文

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