FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios

I-Chun Chern, Steffi Chern, Shiqi Chen, Weizhe Yuan, Kehua Feng +4 more
7/25/2023
cs.CLcs.AI

Official code: GAIR-NLP/factool (935 stars, Apache-2.0, last commit 2024-08-19).

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 .

View on arXivView PDF

Code Implementations(1)

GAIR-NLP/factoolOfficial100%
Apache-2.0

FacTool: Factuality Detection in Generative AI

93567PythonJul 25, 20232 years agoApache-2.0
chatgptfact-checkinggenerative-ailarge-language-modelsnatural-language-processing+1 more

Similar Papers

Cite this paper

@article{chern2023factool,
  title  = {FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios},
  author = {I-Chun Chern and Steffi Chern and Shiqi Chen and Weizhe Yuan and Kehua Feng and Chunting Zhou and Junxian He and Graham Neubig and Pengfei Liu},
  year   = {2023},
  eprint = {2307.13528},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.13528v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.13528.svg)](https://codeofpaper.com/paper/2307.13528)

Discussion