{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/fact-checking-complex-claims-with-program","title":"Fact-Checking Complex Claims with Program-Guided Reasoning","arxiv_id":"2305.12744","date":"2023-05-22","proceeding":null,"authors":["Liangming Pan","Xiaobao Wu","Xinyuan Lu","Anh Tuan Luu","William Yang Wang","Min-Yen Kan","Preslav Nakov"],"abstract":"Fact-checking real-world claims often requires collecting multiple pieces of evidence and applying complex multi-step reasoning. In this paper, we present Program-Guided Fact-Checking (ProgramFC), a novel fact-checking model that decomposes complex claims into simpler sub-tasks that can be solved using a shared library of specialized functions. We first leverage the in-context learning ability of large language models to generate reasoning programs to guide the verification process. Afterward, we execute the program by delegating each sub-task to the corresponding sub-task handler. This process makes our model both explanatory and data-efficient, providing clear explanations of its reasoning process and requiring minimal training data. We evaluate ProgramFC on two challenging fact-checking datasets and show that it outperforms seven fact-checking baselines across different settings of evidence availability, with explicit output programs that benefit human debugging. Our codes and data are publicly available at https://github.com/mbzuai-nlp/ProgramFC.","url_abs":"https://arxiv.org/abs/2305.12744v1","url_pdf":"https://arxiv.org/pdf/2305.12744v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"fact-checking-complex-claims-with-program","repo_url":"https://github.com/mbzuai-nlp/programfc","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"fact-checking-complex-claims-with-program","repo_url":"https://github.com/teacherpeterpan/programfc","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"fact-checking","task_name":"Fact Checking"},{"task_slug":"in-context-learning","task_name":"In-Context Learning"}],"methods":[{"method_slug":null,"method_name":"Library"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.12744","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.12744"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/teacherpeterpan/programfc","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mbzuai-nlp/programfc","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"unverified":4},"by_repo_kind":{"official":{"samples":6,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"4e1c4ff342f96bc9","entry":"dispatch_openai_chat_requests","repo":"mbzuai-nlp/programfc","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/mbzuai-nlp/programfc/blob/HEAD/models/utils.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4e1c4ff342f96bc9"}},{"code_sha256_prefix":"94928eafb9afc8c7","entry":"dispatch_openai_prompt_requests","repo":"mbzuai-nlp/programfc","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/mbzuai-nlp/programfc/blob/HEAD/models/utils.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"94928eafb9afc8c7"}},{"code_sha256_prefix":"fe524a16685ba8c3","entry":"hash","repo":"mbzuai-nlp/programfc","repo_kind":"official","path":"datasets/FEVEROUS/utils.py","file_url":"https://github.com/mbzuai-nlp/programfc/blob/HEAD/datasets/FEVEROUS/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe524a16685ba8c3"}},{"code_sha256_prefix":"24103c586dcf9044","entry":"is_valid_sample","repo":"mbzuai-nlp/programfc","repo_kind":"official","path":"datasets/FEVEROUS/feverous_processing.py","file_url":"https://github.com/mbzuai-nlp/programfc/blob/HEAD/datasets/FEVEROUS/feverous_processing.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"24103c586dcf9044"}},{"code_sha256_prefix":"71cbb05f2913e671","entry":"load_sparse_csr","repo":"mbzuai-nlp/programfc","repo_kind":"official","path":"datasets/FEVEROUS/utils.py","file_url":"https://github.com/mbzuai-nlp/programfc/blob/HEAD/datasets/FEVEROUS/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"71cbb05f2913e671"}},{"code_sha256_prefix":"b1c91c9e3a3b88e4","entry":"normalize","repo":"mbzuai-nlp/programfc","repo_kind":"official","path":"datasets/FEVEROUS/utils.py","file_url":"https://github.com/mbzuai-nlp/programfc/blob/HEAD/datasets/FEVEROUS/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b1c91c9e3a3b88e4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}