Papers › FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for...

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

25 Jul 2023arXiv:2307.13528archive 2025-07-28

I-Chun Chern, Steffi Chern, Shiqi Chen, Weizhe Yuan, Kehua Feng, Chunting Zhou, Junxian He, Graham Neubig, PengFei Liu

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 .

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2307.13528")

Code

Syntology Ran 4 of 14 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: community (archive-listed): 14 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

gair-nlp/factool officialmentioned in papermentioned on GitHubApache-2.0 report
freedomintelligence/sdak mentioned on GitHubpytorchApache-2.0 report
yuxiaw/openfactcheck mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 4 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
2ran
10unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from freedomintelligence/sdak. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_rotary_pos_emb freedomintelligence/sdak/code/workers/modeling_chatglm.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 5cfeaee89a75c5ff · report
gelu freedomintelligence/sdak/code/src/modeling_chatglm_med.py community (archive-listed) ran Apache-2.0 (permissive) · 43c9688838aff8b2 · report
gelu_impl freedomintelligence/sdak/code/src/modeling_chatglm_med.py community (archive-listed) ran Apache-2.0 (permissive) · c8f235d13277facd · report
split_tensor_along_last_dim freedomintelligence/sdak/code/workers/modeling_chatglm.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · d7e378ee7899fbde · report
calculate_accuracy freedomintelligence/sdak/code/src/score_test_backend.py community (archive-listed) unverified Apache-2.0 (permissive) · 873e7bc30cea086f · report
calculate_class_accuracy freedomintelligence/sdak/code/src/score_test_backend.py community (archive-listed) unverified Apache-2.0 (permissive) · a24b83b6424555fd · report
calculate_class_type_accuracy freedomintelligence/sdak/code/src/score_test_backend.py community (archive-listed) unverified Apache-2.0 (permissive) · 128f2c3f0e4e57c0 · report
default_init freedomintelligence/sdak/code/workers/modeling_chatglm.py community (archive-listed) unverified Apache-2.0 (permissive) · 237019e36b9481d9 · report
follow_rate freedomintelligence/sdak/code/evaluate.py community (archive-listed) unverified Apache-2.0 (permissive) · 22856e4b99f1261c · report
get_fewshot_input_path freedomintelligence/sdak/code/src/gen_ans_atom.py community (archive-listed) unverified Apache-2.0 (permissive) · 9eed5c0d506a76a0 · report
load_tf_weights_in_chatglm_6b freedomintelligence/sdak/code/src/modeling_chatglm_med.py community (archive-listed) unverified Apache-2.0 (permissive) · 7744c6b2a37fdc8c · report
match_choice freedomintelligence/sdak/code/src/utils_v2.py community (archive-listed) unverified Apache-2.0 (permissive) · 5efad641568837aa · report
parser_anaswr_one_cateory freedomintelligence/sdak/code/evaluate.py community (archive-listed) unverified Apache-2.0 (permissive) · ec74acf5910b6ffd · report
read_prompt freedomintelligence/sdak/code/src/gpt4_eval.py community (archive-listed) unverified Apache-2.0 (permissive) · 75a67db826a48255 · report

Tasks

Code GenerationFact CheckingMathematical Reasoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections