When doctors choose a treatment, they do it for a reason. That reason, the "indication," is usually tied to how sick the patient already is. So in hospital records, sicker patients get stronger drugs, and a naive analysis concludes the drugs are harmful. Records also miss many of these reasons, such as a bedside impression of frailty that never gets written down. Two recent lines of work disagree on what to do about the missing variables. One asks a large language model (LLM) to guess the missing confounder and keeps guessing until a statistical independence test passes, which yields a single "repaired" dataset. The other proves that several incompatible causal explanations can fit the records equally well, and that more data will never separate them. The second view says a single repaired dataset gives false confidence.
We propose a way to settle this disagreement and to use LLMs where they actually help. The method is a team of LLM agents that compete. Each proposes a different hypothesis for the missing confounder. A deterministic statistical tester rejects hypotheses the data contradict. A critic agent then searches for a rival hypothesis that also survives the test but implies a different treatment effect. The output is a set of surviving rival worlds rather than one answer, and their disagreement serves as an honest uncertainty estimate. We can only check whether this works where the true confounder is known. So we build a virtual clinic: existing in-silico patient simulators fitted with a layer of simulated clinicians who see variables the record hides and choose treatments the way real clinicians do. That layer produces confounded "observational" records with known counterfactual truth.
Core Claim
LLM-based confounder imputation should be used to enumerate the explanations that remain consistent with the data, not to pick one. Our claim is that an adversarial multi-agent search over candidate confounders, with independence checks done by code rather than by the LLM, recovers a set of compatible worlds that (a) contains the true confounding mechanism more often than single-answer imputation, and (b) widens when the confounding is not identifiable and shrinks when it is. Using that set to make offline treatment policies pessimistic should give lower regret than either the single-world LLM approach or a purely statistical ensemble of world models. The claim is falsifiable only with ground truth. That is why the simulated clinic is part of the contribution and not a convenience.
Where This Sits
The tension comes from two papers. ProCI has a single LLM hypothesize missing confounders, infer their values, and run kernel-based conditional independence tests until unconfoundedness looks restored. It reports reduced treatment-effect error on the static Twins and Jobs datasets. Delphic ORL proves that under hidden confounding, compatible world models can disagree on the optimal policy even with infinite data. It trains a variational ensemble to measure that disagreement and penalizes it during offline reinforcement learning. Delphic ORL motivates our proposal and constrains it: any method that outputs one world must fail in the cases its theorem describes. ProCI supplies the generation step we reuse. We differ from ProCI by searching for rivals instead of stopping at the first passing hypothesis. We differ from Delphic ORL by drawing candidate worlds from semantic clinical knowledge rather than only from a learned latent space. That matters because a learned latent cannot name "frailty" and use what is known about it.
The agent design draws on decomposition work. MALADE splits pharmacovigilance into retrieval agents paired with critics and routes deterministic computations to code. Its critics forced revisions in 44.5% of cases on the way to an AUC of 0.90 on the OMOP table. LEGO uses analyst and critic roles for causal explanation and reaches F1 0.666 on WIKIWHY against 0.615 for plain GPT-3.5 and 0.631 for ReAct. Both papers judge text explanations, not effect estimates under confounding. We borrow their critic role and MALADE's rule of keeping statistics out of the LLM, and point them at a quantitative causal target.
The simulator side builds on DTR-Bench. Its four environments (chemotherapy, mixed cancer therapy, sepsis, glucose) add pharmacokinetic variability, noise and missing values, but patient trajectories have no model of who chooses treatment or why. Shared-Benchmark Regime Decomposition models clinician behavior on MIMIC-IV sepsis as a stable outcome-driven policy plus switching regimes (acute escalation, protocol adherence, complexity management). It reports 96.8% held-out action prediction against 80.1% for maximum-entropy inverse reinforcement learning. We use that decomposition as the generator for our simulated clinicians. Delphic ORL already hides diabetes status in a sepsis simulator. That is the closest existing testbed, and it differs from ours in three ways: it uses a single parametric hidden variable, it has no clinician regimes, and it has no semantically misleading confounders.
Research Program
The first component is the confounded-clinic layer. It is a simulator-agnostic interface that attaches to each DTR-Bench environment. At each step, a clinician module sees the full patient state, including variables withheld from the exported record. It chooses an action using an SBRD-style mixture of a benchmark policy and regime deviations, with regime parameters fitted to MIMIC-IV so that the channeling patterns resemble real practice. The exported record contains only the observed variables and, optionally, short templated note text that weakly reflects hidden variables, the way a real chart partly reflects a bedside impression. Because the simulator is available, every record comes with true counterfactual outcomes under alternative actions.
Hidden confounders come in three designed kinds:
- Semantically natural. Frailty or diabetes, which an LLM can guess from clinical knowledge.
- Semantically misleading. A plausible clinical story points to the wrong variable.
- Nonidentifiable by construction. Two worlds generate identical record distributions but imply opposite treatment effects.
The clinic layer also has a multi-site mode. Several simulated sites share patient dynamics but differ in channeling regimes. This follows the distributed setting of federated target trial emulation, and it lets us test whether variation in practice across sites helps separate rival worlds. Here, interoperability means one portable specification of record format, hidden-variable manifest and clinician regime that travels across environments and sites. We do not need the cryptographic machinery of Secure Web Objects. We use this specification to keep comparisons fair, not as a contribution in itself.
The second component is the rival-worlds team, which has four parts:
- Proposer agent. Reads the variable dictionary and note text and proposes candidate hidden confounders, each with a generative form.
- Imputer. Uses ProCI's procedure to infer individual-level values for each candidate.
- Tester. A deterministic kernel conditional independence test that rejects candidates the data contradict.
- Critic agent. Given the current surviving set, it must propose a new candidate that passes the test and moves the estimated treatment effect as far as possible from the current consensus.
The search stops when the critic fails to find such a rival within a fixed budget. Each surviving world gives an effect estimate and a fitted world model. The spread across surviving worlds then serves as the pessimism penalty for offline policy learning, in the same way Delphic ORL uses its ensemble variance.
Baselines
The naive reference point is an analysis that adjusts only for recorded covariates. We use propensity-weighted effect estimation for treatment effects and plain behavior cloning and conservative offline Q-learning for policies. All of these are trained on the same exported records. This floor shows how much damage the designed confounding does. If the floor is not badly wrong on the misleading and nonidentifiable cases, the testbed has failed and we will strengthen the clinician channeling before going further.
The strongest existing method for policy learning is Delphic ORL. We will run it with the same offline datasets, the same downstream Q-learning backbone, and a matched compute budget, measured in GPU hours, between its ensemble training and our LLM calls plus imputation. Penalty strength is tuned on a validation split of environments for both methods. Lacuna has no reported numeric policy value for Delphic ORL on its sepsis simulator or HiRID; the paper reports only that it beats behavior cloning and other offline baselines across 14 confounding scenarios. We will therefore reproduce it rather than quote a number. Beating it means lower true-dynamics policy regret on the semantically natural and misleading confounders, and no worse regret on the nonidentifiable ones.
The strongest single-world LLM method is ProCI, run with the same backbone LLM and the same independence test. Lacuna has no reported numeric treatment-effect error for ProCI on Twins or Jobs; the file states only a significant reduction. Beating ProCI means higher coverage of the true effect and lower regret, especially on the misleading and nonidentifiable cases, where we predict it will commit confidently to a wrong world.
Two ablations isolate the key ingredient, the adversarial critic. The first is "ProCI sampled k times": independent restarts at nonzero temperature, with k chosen to match our token budget, giving an ensemble without any adversarial search. The second removes the deterministic tester and lets the LLM judge independence, which tests MALADE's principle of keeping statistics in code. The oracle, an analysis given the true hidden variable, gives the ceiling.
Why not just…?
Why not just sample a single LLM several times and take the spread? This is the most serious threat, and it is the matched-budget ablation above. Independent samples tend to settle on the same high-prior story; the critic is explicitly told to find a surviving rival that moves the effect estimate. LEGO's ablations, where removing the critic lowered explanation quality, suggest critics matter. That evidence comes from text explanation, though, not effect estimation. If sampled ProCI matches our coverage and regret, the critic is unnecessary and we will report that.
Why not just use Delphic ORL's learned ensemble and leave LLMs out? A latent ensemble measures ambiguity but cannot draw on clinical knowledge to narrow it when the confounder is semantically guessable. On the semantically natural confounders we expect LLM-proposed worlds to be tighter while still covering the truth. On the nonidentifiable confounders, Delphic ORL may be just as good or better, and that is an acceptable result: it would locate exactly when semantic knowledge adds information.
Why not just reuse Delphic ORL's parametric hidden-diabetes simulator instead of building a clinician layer? A single named variable with a fixed propensity is exactly the case where an LLM looks good by guessing the name. It cannot produce misleading clinical stories, regime switching, or cross-site practice variation. We will check whether the richer layer changes method rankings compared with a plain parametric hidden-variable propensity. If the rankings are identical, we will say the extra machinery was not needed.
Why not just train on real MIMIC-IV? Real records have no counterfactual ground truth, so no claim about coverage of the true effect can be checked. The sepsis opioid study shows why: there, harm and severity cannot be separated without unrecorded measurements. We use MIMIC-IV only to calibrate the clinician regimes and, finally, to check qualitatively whether the rival worlds proposed on real sepsis data look plausible.
Proposed Experiments and Decisive Checks
The experiments cover all four DTR-Bench environments under three conditions: the original setting, pharmacokinetic variance, and variance plus noise plus missing values. Each environment is crossed with the three confounder kinds and a sweep of confounding strength, run in single-site and multi-site modes. The metrics are:
- Absolute error in the estimated average treatment effect against simulated counterfactuals.
- Coverage of the true effect by the range spanned by the surviving worlds.
- Average width of that range.
- Policy regret under the true dynamics after pessimistic offline learning.
The first decisive check is the nonidentifiable case. A correct method must report a range that contains both opposing effects. Our prediction is that single-world ProCI picks one at roughly chance and reports it confidently. The second decisive check is calibration across confounding strength. The width of the surviving-world range should grow with strength in the same direction as Delphic ORL's uncertainty, and coverage should hold. The third check is cross-site. With heterogeneous channeling across sites, the surviving set should shrink without losing coverage. If it does not shrink, practice variation is not being exploited and the multi-site mode adds nothing.
The proposal fails cleanly if sampled single-agent imputation matches the adversarial team on coverage and regret, or if Delphic ORL matches it on the semantically natural confounders. Either result would still be useful, since it tells practitioners which tool to trust under which kind of hidden confounding.
References
- Mitigating Hidden Confounding by Progressive Confounder Imputation via Large Language Models
- Delphic Offline Reinforcement Learning under Nonidentifiable Hidden Confounding
- MALADE: Orchestration of LLM-powered Agents with Retrieval Augmented Generation for Pharmacovigilance
- LEGO: A Multi-agent Collaborative Framework with Role-playing and Iterative Feedback for Causality Explanation Generation
- DTR-Bench: An in silico Environment and Benchmark Platform for Reinforcement Learning Based Dynamic Treatment Regime
- Shared-Benchmark Regime Decomposition for Nonstationary Clinical Decisions
- Federated target trial emulation using distributed observational data for treatment effect estimation
- Secure Web Objects: Building Blocks for Metaverse Interoperability and Decentralization
- Prescription opioids are associated with higher mortality in patients diagnosed with sepsis: A retrospective cohort study using electronic health records