Papers › Causal Agent based on Large Language Model

Causal Agent based on Large Language Model

13 Aug 2024arXiv:2408.06849archive 2025-07-28

Kairong Han, Kun Kuang, Ziyu Zhao, Junjian Ye, Fei Wu

Large language models (LLMs) have achieved significant success across various domains. However, the inherent complexity of causal problems and causal theory poses challenges in accurately describing them in natural language, making it difficult for LLMs to comprehend and use them effectively. Causal methods are not easily conveyed through natural language, which hinders LLMs' ability to apply them accurately. Additionally, causal datasets are typically tabular, while LLMs excel in handling natural language data, creating a structural mismatch that impedes effective reasoning with tabular data. This lack of causal reasoning capability limits the development of LLMs. To address these challenges, we have equipped the LLM with causal tools within an agent framework, named the Causal Agent, enabling it to tackle causal problems. The causal agent comprises tools, memory, and reasoning modules. In the tools module, the causal agent applies causal methods to align tabular data with natural language. In the reasoning module, the causal agent employs the ReAct framework to perform reasoning through multiple iterations with the tools. In the memory module, the causal agent maintains a dictionary instance where the keys are unique names and the values are causal graphs. To verify the causal ability of the causal agent, we established a benchmark consisting of four levels of causal problems: variable level, edge level, causal graph level, and causal effect level. We generated a test dataset of 1.3K using ChatGPT-3.5 for these four levels of issues and tested the causal agent on the datasets. Our methodology demonstrates remarkable efficacy on the four-level causal problems, with accuracy rates all above 80%. For further insights and implementation details, our code is accessible via the GitHub repository https://github.com/Kairong-Han/Causal_Agent.

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="2408.06849")

Code

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

By repository: official repository: 14 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kairong-han/causal_agent officialmentioned in paperpytorchMIT 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; 11 ran; 0 honoured the contract we drafted; 3 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 · fixture could not drive it
10ran
3unverified

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 kairong-han/causal_agent. “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.

Stein_hess kairong-han/causal_agent/SCORE-main/stein.py official repository ran MIT (permissive) · a8a7a259db8a81b3 · report
add_noise kairong-han/causal_agent/main_QR.py official repository ran fingerprinted MIT (permissive) · bb340e38e6e61436 · report
compute_top_order kairong-han/causal_agent/SCORE-main/stein.py official repository ran MIT (permissive) · 00230c910f8f28f5 · report
edge_dir kairong-han/causal_agent/util.py official repository ran MIT (permissive) · 9a227dfd5452fed4 · report
edge_num kairong-han/causal_agent/SCORE-main/demo_SCORE.py official repository ran fingerprinted MIT (permissive) · 63790fd8bd85e92f · report
find_all_paths kairong-han/causal_agent/util.py official repository ran MIT (permissive) · 541d7f28dbdb0e00 · report
full_DAG kairong-han/causal_agent/SCORE-main/utils.py official repository ran · fixture could not drive it MIT (permissive) · a86ab79ff7c3ca42 · report
get_name kairong-han/causal_agent/dataset_gt.py official repository ran MIT (permissive) · 5f47c429ede66b1c · report
np_to_csv kairong-han/causal_agent/SCORE-main/utils.py official repository ran MIT (permissive) · 7f33c8711d7b2d37 · report
simulate_dag kairong-han/causal_agent/SCORE-main/utils.py official repository ran MIT (permissive) · 003d81116b4a4fb5 · report
triangle_to_adj kairong-han/causal_agent/util.py official repository ran MIT (permissive) · b036a30566ea1159 · report
Stein_pruning kairong-han/causal_agent/SCORE-main/stein.py official repository unverified MIT (permissive) · 5da3b16530d01830 · report
generate kairong-han/causal_agent/SCORE-main/demo_SCORE.py official repository unverified MIT (permissive) · 1c31ede173ef4356 · report
get_code_result kairong-han/causal_agent/baseline-codellm.py official repository unverified MIT (permissive) · 55e01338dc26c5f7 · report

Tasks

Language ModelingLanguage ModellingLarge Language Modelmodel

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGN

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