Skip to main content
QUICK REVIEW

[Paper 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 Science25 citations
TL;DR

FacTool presents a tool-augmented, task- and domain-agnostic framework to detect factual errors in large language model outputs across knowledge-based QA, code generation, math, and scientific literature review by extracting claims, querying tools, collecting evidence, and verifying agreement.

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 .

Motivation & Objective

  • Extend factuality detection beyond single-task setups to multi-task and multi-domain scenarios.
  • Leverage tool use (search engines, interpreters, LLMs) to gather evidence supporting or refuting generated claims.
  • Develop a unified pipeline for extracting, querying, collecting evidence, and verifying agreement across domains.
  • Evaluate across knowledge-based QA, code generation, math problem solving, and scientific literature review writing.
  • Release code and demonstrate GPT-4-based superiority over baselines in factuality detection.

Proposed method

  • Define a versatile factuality framework that connects tool use with factuality checks.
  • Extract fine-grained claims (ACUs) from generated responses guided by task-specific definitions.
  • Generate queries from claims to query external tools and gather evidence.
  • Use execution/evidence (test cases, Google Scholar results, etc.) to verify claims.
  • Apply zero-shot CoT reasoning for agreement verification with LLMs.
  • Evaluate using four tasks and compare against Self-Check baselines.
Figure 1: Tool-augmented framework for factuality detection.
Figure 1: Tool-augmented framework for factuality detection.

Experimental results

Research questions

  • RQ1Can FacTool detect factual errors across diverse tasks (KB-QA, code, math, Sci-Lit) using a unified framework?
  • RQ2How does tool-aided factuality detection compare to self-check baselines with LLMs?
  • RQ3Does GPT-4 powered FacTool outperform ChatGPT-powered variants in multi-domain factuality detection?
  • RQ4What is the impact of claim extraction quality on final factuality judgments?
  • RQ5How effective is external evidence (web search, code execution, Google Scholar) in supporting factuality judgments across domains?

Key findings

  • FacTool powered by GPT-4 achieves highest claim-level F1 and competitive or superior response-level F1 across KB-QA, code, math, and Sci-Lit tasks compared to baselines.
  • GPT-4 based FacTool outperforms ChatGPT-based FacTool and self-check baselines in most scenarios, particularly in scientific literature review and math problem solving.
  • Self-check baselines tend to have lower precision, indicating higher false-positive rates for factuality judgments.
  • Google Scholar-based evidence is robust for citations in Sci-Lit, often outperforming LLM-only approaches in evidence gathering.
  • Claim extraction via ChatGPT yields high similarity to human-annotated atomic content units (ACUs) across RoSE-based evaluation.
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.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.