Automated Causal Effect Estimation through Self-Evolving AI

Can Wang, Hongyu Zhao, Yiqun T. ChenNeurIPS 2026

TL;DR

Figuring out cause and effect from messy observational data usually requires a human statistician to painstakingly hand-craft an estimation pipeline. This paper introduces InferenceEvolve, an evolutionary framework where Large Language Models (LLMs) write, test, and iteratively mutate Python code to discover custom causal estimators on their own. Not only do these AI-evolved algorithms beat standard software packages, they actually match or outperform human experts from a major causal inference competition—even when ground-truth answers are hidden during the search.

What Problem Does This Paper Address?

Suppose you want to know if a job-training program actually boosts wages. In the real world, you hit the counterfactual problem: if someone takes the training, you never get to observe what their life would have looked like had they skipped it. Because we can't run randomized trials for everything, scientists rely on observational data, using statistical tricks to disentangle true cause-and-effect from background noise (confounders).

Over the decades, statisticians have built an overwhelming toolkit for this—propensity scores, doubly robust estimators, causal forests, and more. This leaves practitioners with two headaches:

  1. Which estimator do I pick? Choosing and wiring together the right statistical models requires deep expertise about both math and the quirks of your specific dataset.
  2. How do I grade it? Unlike standard machine learning where you can check predictions against held-out labels, true causal effects are invisible in real data. Researchers usually validate methods on semi-synthetic benchmarks (real-world covariates paired with simulated outcomes).

Prior AI tools for causal inference mostly act like menu-selectors—picking from a fixed list of pre-built pipelines. Nobody had yet let AI search the open-ended space of executable Python code to synthesize custom causal estimators from scratch.

Methods

Enter InferenceEvolve. Built on top of the OpenEvolve framework, it treats a causal estimator as an executable Python function (estimate(...) using numpy, pandas, scikit-learn, and statsmodels) and evolves it over 100 iterations.

Figure 1: Overview of InferenceEvolve for causal estimator discovery. a, We start with a zero-shot program, which is iteratively improved by an LLM ensemble using benchmark-based feedback. b, Principal-component view of programs across evolutions (Colors = benchmarks and darker points = later checkpoints). The line graph summarizes best-so-far progress. c, Evolved programs compare favorably with human submissions on ACIC 2022 (Thal and Finucane, 2023). Top, RMSE distributions (lower better); bottom, empirical 90% interval coverage.

Here is how the evolutionary loop works:

  • Archive & Mutation: Starting from a basic zero-shot program, the system maintains a MAP-Elites archive—a grid that preserves programs that are both high-scoring and structurally diverse. At each step, an ensemble of LLMs (GPT-5 or Gemini 3 Flash Preview at 80% weight, plus Claude Sonnet 4 at 20%) reads a parent program, data previews, and top performers, then rewrites the entire script.
  • Two-Stage Evaluation: To save compute, new code first runs on ~10% of the training simulations to catch crashes or terrible math ("fail-fast"). Survivors are scored on 100% of the training split, and the final frozen winner is tested once on untouched held-out data.
  • Proxy-Guided Search (The Real-World Twist): What if you don't have simulated ground truth to guide the evolution? The authors introduce a proxy mode. Instead of true counterfactuals, the fitness score uses observed-data proxies—specifically, cross-fitted doubly robust pseudo-outcomes (an established statistical technique that blends outcome predictions and treatment-assignment models to approximate an unbiased target).

Datasets

The authors evaluate across four established semi-synthetic causal benchmark families (splitting simulation replicates 20:80 into search vs. held-out validation):

  • ACIC 2022: Longitudinal panel data from a community data challenge (complete with 58 human-expert competition submissions for comparison).
  • ACIC 2016: Cross-sectional data with heterogeneous treatment effects. To test out-of-distribution generalization, the authors also generated 50 brand-new ACIC 2016 datasets across 5 unseen data-generating settings.
  • IHDP: Infant Health and Development Program cross-sectional benchmark.
  • LaLonde: Job-training observational data paired with generated potential outcomes.

Key Insights and Ideas

  • Recombination, Not New Math: InferenceEvolve isn't inventing new causal identification theorems from thin air. Instead, it performs knowledge-guided discovery—intelligently recombining textbook building blocks (like cross-fitting, propensity clipping, and practice-mean controls) into bespoke hybrids.
  • Organic Dataset Adaptation: Without being told which family to use, evolution naturally gravitates toward the right tool for the data structure. On ACIC 2022 (panel data over time), 21 of 24 runs converged on difference-in-differences/OLS panel models. On cross-sectional ACIC 2016 and IHDP, it converged on meta-learners (like X-learners), while observational LaLonde favored doubly robust hybrids.
  • Open Code Beats Fixed Menus: Unlike structured AutoML tools (such as AutoCATE) that optimize a single metric over fixed templates, evolving raw code lets the AI jointly optimize point estimates, calibration, and uncertainty intervals—even on longitudinal panel data that standard AutoML pipelines can't natively handle.
  • Fast Diminishing Returns: Runs reached 76% of their final performance gain by iteration 25 and 90% by iteration 50 (~$2–$4 in API tokens and ~5.5 hours of compute for a full 100-iteration run), meaning users can stop early for a bargain.

Key Results

Held-out error distributions and code complexity across benchmarks for baselines, true-score evolution, and proxy-guided evolution.

Held-out error distributions and code complexity across benchmarks for baselines, true-score evolution, and proxy-guided evolution.
  • Competing with Humans (ACIC 2022): Zero-shot LLM scripts performed poorly (median RMSE 36.2). After evolution, InferenceEvolve achieved a median RMSE of 18.8 and empirical 90% interval coverage of 0.84—handily beating the 58 human competition submissions (median RMSE 23.2, coverage 0.57). Two evolved programs landed directly on the competition's Pareto frontier.
  • Beating Baselines & Generalizing: Using nested training-split selection, InferenceEvolve cut estimation error by 22% to 43% across all four benchmarks compared to the strongest off-the-shelf packages (BART, Causal Forest) and AI baselines (CAIS). On the 50 newly generated out-of-distribution ACIC 2016 datasets, a single frozen program beat Causal Forest on both heterogeneous effect error ($\sqrt{\text{PEHE}}$: 0.986 vs. 1.428) and average effect error (0.121 vs. 0.219).
  • Proxy Alignment: Across 243 discovered programs, observed-data proxy scores correlated tightly with hidden ground truth ($r = 0.89$ to $0.92$ on cross-sectional tasks; Spearman $\rho = 0.86$ to $0.96$ on ACIC 2022), beating baselines on three of four benchmarks without ever peeking at true counterfactuals.

Limitations and Future Work

  • Proxy Overfitting: High correlation doesn't guarantee immunity from Goodhart's Law. Under proxy-guided search on ACIC 2016, the AI overfit the proxy objective, causing true $\sqrt{\text{PEHE}}$ to degrade (2.416 vs. 1.321 baseline). Designing universal observed-data proxies remains an open problem.
  • No Zero-Shot Schema Transfer: A frozen Python script evolved for panel data won't magically run on a new study design or column layout; InferenceEvolve must be re-run for new task specifications.
  • Not a Replacement for Domain Experts: Evolved code is longer (~104–120 lines vs. 54 for baselines) and cannot verify untestable causal assumptions (like unmeasured confounding). The authors frame it as a search assistant to complement human study design, and suggest future work mining the AI's commit histories to extract reusable statistical tricks.

Summary updated

BibTeX
@inproceedings{wang2026automated,
  author = {Can Wang and Hongyu Zhao and Yiqun T. Chen},
  title = {{Automated Causal Effect Estimation through Self-Evolving AI}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hEJF4xVLvo},
}
Figure