Manuscript Offprint

arXiv:2609.07944

CausalVerify: An Execution-Grounded Benchmark for LLM Causal Inference Workflows

Yonghong Zhang, Ricardo Correia, Isabel M. Parra, Yong Xie

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yonghong Zhang*

Department of Finance

Universidad Autónoma de Madrid

Madrid, Spain

Ricardo Correia

Department of Finance

Universidad Autónoma de Madrid

Madrid, Spain

Isabel M. Parra

Department of Finance

Universidad Autónoma de Madrid

Madrid, Spain

Yong Xie†

Spanish National Research Council (CSIC)

Madrid, Spain

Abstract

Existing causal-inference benchmarks for LLMs often evaluate text descriptions of methods or whether generated code can run. They rarely test whether the executed workflow recovers the target causal estimate. CausalVerify studies this verification problem for structured econometric causal-estimation workflows by separating realistic interpretation from verifiable computation. The benchmark draws on 259 published economics papers, each represented by a reconstructed research question, data description, and institutional context, together with 100 fixed-seed synthetic scenarios that realise CSV datasets for difference-in-differences (DID), event study (ES), instrumental variables (IV), and regression discontinuity design (RDD). Experiment A (real-paper text agreement) scores method-family and direction agreement against four-LLM consensus labels. Experiment B (synthetic execution) runs model-written R code and checks whether the extracted treatment-effect estimate matches a canonical estimator on the same realised dataset; we call this execution-grounded correctness layer L2b+, as distinct from L2b, which records only whether the code executes. A calibration arm asks whether self-reported confidence separates correct from incorrect workflows. On Experiment B, seven evaluated LLMs reach final L2b+ pass rates between 10% and 88% at the default 50% tolerance (9% to 84% at a stricter 25%; Appendix C.5), and 66 of the 426 workflows that execute (15.5%) return a wrong estimate. Execution ranking (L2b) agrees with reference-agreement correctness (L2b+) far better than text-direction scoring (L4, direction agreement with consensus labels): Kendall τ=0.81\tau = 0.81 and Spearman ρ=0.93\rho = 0.93, versus Kendall τ\tau between −0.20-0.20 and 0.100.10 for L4. A robustness run with Llama-3.3-70B-Instruct shows the same qualitative gap, and reported confidence does not reliably separate correct from incorrect workflows. The claims are confined to standardized single-shot workflows in these four design families under the evaluated R backend and model panel; the benchmark does not measure general causal-inference ability. Code, data, cached outputs, and a datasheet are released at https://github.com/causalverify/causalverify.

*Corresponding author. yonghong.zhang@estudiante.uam.es

†Corresponding author. xieyong.nwpu@gmail.com

Preprint.

1 Introduction

Evaluating LLMs for empirical causal inference requires more than text scoring of methods and effect signs: it requires verifying that the executed analysis recovers a target estimate. A valid empirical claim requires an estimand, an identification argument, an estimator, executable analysis code, and a numerical result whose interpretation matches the target causal quantity [53, 51, 24, 50, 28, 4]. This structure exposes a failure mode that standard LLM evaluations can miss: a model may name the right empirical design, produce code that runs without error, and still estimate the wrong coefficient. In applied research, such failures are more dangerous than obvious failures because the response appears fluent, complete, and confident while the causal claim remains unverified. This concern sits within broader verification pressure in scientific publishing, where more than 10,000 papers were retracted in 2023, a record high reported by Van Noorden [62]. As LLMs move from text assistance toward software engineering, scientific-analysis agents, and laboratory-instrumentation control [17, 67, 56, 43, 63, 25, 31, 47, 15, 64], causal-inference evaluation must ask not only whether a model sounds right, but whether its executed workflow recovers the right estimate.

Existing benchmarks capture only parts of this problem. Prior work and benchmarks on LLM causal reasoning study causal direction, graph reasoning, counterfactuals, correlation-to-causation judgments, intervention design, surveys of benchmark validity, and real-world identification tasks [35, 68, 33, 32, 14, 16, 66, 45, 69, 2, 39, 57, 55]. Code benchmarks evaluate whether programs can be synthesized, executed, or made to pass tests [13, 7, 22, 40, 44, 12, 37, 20, 31, 29, 70]. These settings are valuable, but causal workflows require a stricter check: after a model interprets a study, chooses a design, writes analysis code, and reports a treatment effect, does the executed workflow recover the intended estimate? This gap matters because code can pass surface checks while remaining semantically wrong [42].

We introduce CAUSALVERIFY, an execution-grounded benchmark for structured econometric causal-estimation workflows: tasks that begin after the research question, data description, and institutional context have been specified and end with an executed treatment-effect estimate in one of four quasi-experimental design families. The benchmark deliberately separates ecological realism from executable verifiability. Real published papers provide realistic institutional context, but rarely provide the cleaned data, final runnable specification, and counterfactual treatment effect needed for direct verification. We therefore use 259 published economics papers to measure text-level agreement on method family and effect direction, not as verified causal correctness. Conversely, fixed-seed synthetic DGPs sacrifice some realism but provide executable targets: 100 realised CSV datasets across difference-in-differences, event study, instrumental variables, and regression discontinuity designs [26, 5, 60, 27, 38, 11, 46, 8, 1, 10, 19, 59, 54, 52]. Models write R code, the benchmark executes it, and L2b+ checks whether the extracted treatment-effect estimate matches a canonical estimator on the same realised dataset. The benchmark does not measure general causal-inference ability: problem formulation, data collection, design selection from ambiguous field constraints, matching, propensity-score, doubly-robust, mediation, and heterogeneous-effect workflows, other software ecosystems, and interactive human-model collaboration lie outside its scope (Sections 3 and 7).

CAUSALVERIFY separates four signals that are often conflated: textual interpretation, code executability, numerical coefficient recovery, and self-assessed confidence. Across seven evaluated LLMs, final L2b+ pass rates range from 10% to 88%. Execution success is strongly aligned with reference-agreement correctness (Kendall τ=0.81\tau = 0.81, Spearman ρ=0.93\rho = 0.93), whereas text-direction agreement is weakly or negatively aligned with Exp B L2b+ ranking (Kendall τ∈[−0.20,0.10]\tau \in [-0.20, 0.10]). Execution is not sufficient—some code runs and estimates the wrong coefficient—but it is a stronger proxy for execution-grounded agreement with the reference implementation under our reference-label construction than L4 direction agreement. A calibration arm further shows that naive retrospective confidence reports do not cleanly separate correct from incorrect workflows under our prompt, connecting the benchmark to work on calibration, verbalized uncertainty, selective prediction, and self-checking [21, 18, 30, 41, 49, 34, 36, 48, 61, 65]. Our contributions are a benchmark design separating real-paper agreement from execution-grounded reference-agreement correctness, L2b+ as a metric for agreement with a benchmark-fixed reference implementation, and empirical evidence that, within structured econometric causal-estimation workflows, plausible text, runnable code, agreement with the reference implementation, and confidence can diverge sharply.

Figure

Figure 1: CAUSALVERIFY benchmark overview. Exp A uses published economics papers to form text-agreement tasks for method family and direction. Exp B uses fixed-seed synthetic DGPs and realised datasets to evaluate executable model-written R workflows against canonical estimators. The calibration arm returns each model its own Exp B answer and compares self-assessed confidence with L2b+ correctness.

References (67)