Integrating Digital Twins with Randomized Experiments

Yanping Li, Xinwei Ma, Jingshen WangNeurIPS 2026

TL;DR

Randomized controlled trials (RCTs) are the gold standard for figuring out if a treatment works, but they often fail to tell us if it will work in the messy real world—especially when privacy or logistics prevent us from seeing individual-level data for that broader target population. This paper introduces a rigorous statistical framework that bridges the gap by blending real trial data with LLM-generated "digital twins," calibrated against public summary statistics. Even better, it uses LLM outcome guesses to sharpen the statistical precision of the results without ever letting AI hallucinations bias the true causal effect.

What Problem Does This Paper Address?

Suppose you run a clinical trial and prove a new therapy works wonders—on the specific group of people who volunteered, met strict eligibility rules, and lived near your hospital. Will it have the same average treatment effect (ATE) on the broader national population? When treatment effects vary by patient traits (age, employment, medical history), differences between your trial volunteers and the general public create an external validity problem.

Usually, statisticians fix this by reweighting trial participants to match individual-level records from a target registry or survey. Often, however, individual target data simply aren't available; researchers only get coarse public summaries, like census age brackets or marginal disease rates. While pre-trained LLMs can generate synthetic patient profiles—digital twins (DTs)—to fill in the missing population structure, we can’t blindly trust an LLM to mirror reality, nor can we just reweight the trial alone if the summaries miss finer demographic nuances. The challenge is combining real trial outcomes, imperfect synthetic profiles, and coarse summary tables without corrupting causal inference.

Methods

The authors cleanly separate causal identification (how people respond to treatment) from population representation (who is in the target population):

  • Calibrated Mixture Representation (New): Instead of trusting the RCT or the LLM-generated DTs alone, the target covariate distribution is modeled as a weighted mixture of the RCT sample and a reweighted DT sample. The DT weights are learned via a penalized optimization problem that aligns the mixture with external summary statistics (like age proportions), keeps the distribution close to the RCT (via Wasserstein-1 distance), and prevents weights from concentrating on just a few synthetic records.
  • Efficient Influence Function (EIF) Estimators (New): Rather than plugging weights into a standard formula—which breaks confidence intervals—the authors derive the exact EIF for their mixture estimand and pair it with standard double machine learning (cross-fitting) to estimate nuisance models.
  • Safe Auxiliary Outcome Predictions (New): They prompt an LLM to guess potential outcomes under treatment and control for both RCT and DT profiles. These guesses enter via a calibrated outcome regression weighted by an empirically estimated projection coefficient from the real RCT. If the LLM’s guesses are pure noise, the coefficient drops to zero; if they are informative, variance shrinks while the causal target remains untouched.

Datasets

The authors evaluate their method using a semisynthetic benchmark built on the BRIGHTEN study, a US-based smartphone randomized trial for depression (comparing problem-solving therapy app iPST against control apps, measuring PHQ-9 depression scores).

  • RCT Superpopulation: 20,000 synthetic patient profiles sampled from a CTGAN trained on BRIGHTEN baseline covariates (age, race, employment, baseline PHQ-9, etc.), with ground-truth potential outcomes generated by random forests fitted to the real trial.
  • Digital Twins & Auxiliary Predictions: 20,000 synthetic covariate profiles (with no real outcomes) generated locally via Qwen3-8B, which also generated treatment/control outcome guesses for all units (with GPT-5-mini tested in sensitivity checks).
  • Target Population: A shifted 50,000-unit mixture tilted across race, marital status, and employment, while estimators only get to see external summary proportions across four age bands.

Key Insights and Ideas

  • Digital twins supply "who," never "what happens": Synthetic twins carry zero real outcome data in this framework. By restricting DTs strictly to covariate representation, an LLM hallucinating treatment efficacy cannot invent fake causal effects.
  • Filling in the joints between summaries: Why not just reweight the RCT directly to match census age brackets? Because coarse summaries leave finer joint structures (like the exact mix of employment and marital status within an age bracket) unspecified. Calibrated DTs supply that missing demographic texture.
  • Free precision from imperfect AI guesses: Borrowing from the spirit of prediction-powered inference, centering and scaling LLM outcome predictions against actual RCT residuals acts like a one-way valve: helpful LLM intuition tightens confidence intervals, while bad guesses are mathematically muted.

Key Results

Across 500 Monte Carlo replications ($n = N$ from 2,000 to 5,000):

  • Bias & Coverage: Ignoring population shift (RCT-only) caused bias to grow with sample size, dropping 95% confidence interval coverage from 93% down to 87%. Naive plug-in weighting fixed the bias, but neglecting EIF corrections tanked interval coverage to 68%–69%. Both proposed EIF estimators achieved tiny bias and hit near-nominal 95%–97% coverage.
  • Variance Reduction: Adding LLM auxiliary outcome predictions yielded 8.0% to 25.8% efficiency gains (variance reduction) across age subgroups, and ~19% overall gains across zero-shot, few-shot, and GPT-5-mini setups (while randomly permuted predictions yielded 0% gain, proving safety).
  • Beating Direct Trial Calibration: When outcomes depended on demographics beyond just age bands, the calibrated DT mixture cut large-sample absolute bias to 0.02–0.08 (vs. 0.27–0.31 for direct entropy-balancing of the trial alone) and lifted coverage at $n=5,000$ to 88%–89% (vs. 62%–66%).

Limitations and Future Work

  • Unverifiable Transportability & Overlap: The method assumes the conditional treatment response is identical between trial and target populations, and requires positivity—every DT profile must have a realistic chance of appearing in the RCT. Digital twins cannot magically extrapolate treatment effects to patient types completely excluded from the trial.
  • Unchecked Sub-Summary Structure: Summary statistics cannot verify whether the LLM got the finer, unmeasured demographic correlations right.
  • Simulation Validation: Because true target causal effects are needed for ground truth, evaluation relied on a semisynthetic trial rather than a real-world paired target cohort. Future work aims to build overlap diagnostics, incorporate multiple trials or limited target outcomes, and apply the tool to clinical trials paired with census or registry tables.

Summary updated

BibTeX
@inproceedings{li2026integrating,
  author = {Yanping Li and Xinwei Ma and Jingshen Wang},
  title = {{Integrating Digital Twins with Randomized Experiments}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=sweF37THPZ},
}
Figure