DeepImagine: Clinical Trial Outcome Prediction via Stepwise Local Counterfactual Imaginations
Not on the map. Why?
Abstract (arXiv)
Predicting the outcomes of prospective clinical trials remains a major challenge. Clinical trial outcomes result from complex interactions among experimental factors such as drug interventions, participant demographics, and protocols. Here, we introduce DeepImagine, a framework that predicts target trial outcomes through stepwise counterfactual imagination anchored on historical trials with observed results. Starting from a relevant historical trial, DeepImagine sequentially modifies one differing experimental factor at a time. With each step a large language model (LLM) is posed a local counterfactual: how would the current imagined outcome change with this single perturbation? The updated result is carried forward as the input to the next step, until the historical configuration exactly matches the target, yielding the final prediction. Empirically, DeepImagine consistently outperforms direct one-step prediction across several off-the-shelf LLMs, with further gains when multiple imagination pathways, initiated from different historical anchors, are aggregated. We also construct natural counterfactuals augmented with synthetic reasoning traces and train a family of specialized language models, each dedicated to learning one factor's local counterfactual transition. Integrating these learned local operators into DeepImagine yields substantial improvements over general-purpose LLM baselines. Our findings position stepwise counterfactual imagination, distinct from both correlational prediction and explicit structural causal modeling, as a promising direction for clinical trial outcome prediction. All code, training scripts, and evaluation scripts are available at hrefhttps://github.com/deepimagine-counterfactual/DeepImaginehttps://github.com/deepimagine-counterfactual/DeepImagine.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 17 references that are in the map. First posted on arXiv 24 Apr 2026.
Builds on
12 of 17 references.
References · 12
- 2023Let's Verify Step by Stepcited by 3,789
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 472
- 2023Causal Reasoning and Large Language Models: Opening a New Frontier for Causalitycited by 353
- 2023CLadder: Assessing Causal Reasoning in Language Modelscited by 107
- 2025CounterBench: Evaluating and Improving Counterfactual Reasoning in Large Language Modelscited by 21
- 2022Trial2Vec: Zero-Shot Clinical Trial Document Similarity Search using Self-Supervisioncited by 18
- 2023SPOT: Sequential Predictive Modeling of Clinical Trial Outcome with Meta-Learningcited by 13
- 2025Executable Counterfactuals: Improving LLMs' Causal Reasoning Through Codecited by 10
- 2024Automatically Labeling Clinical Trial Outcomes: A Large-Scale Benchmark for Drug Developmentcited by 7
- 2023PyTrial: Machine Learning Software and Benchmark for Clinical Trial Applicationscited by 3
- 2025ExpliCa: Evaluating Explicit Causal Reasoning in Large Language Modelscited by 3
- 2026CT Open: An Open-Access, Uncontaminated, Live Platform for the Open Challenge of Clinical Trial Outcome Predictioncited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023Counterfactual Generative Models for Time-Varying Treatments
- 2025Flow-based Generative Modeling of Potential Outcomes and Counterfactuals
- 2024Multimodal Clinical Trial Outcome Prediction with Large Language Models
- 2025Developing Large Language Models for Clinical Research Using One Million Clinical Trials
- 2023Counterfactual Outcome Prediction using Structured State Space Model
- 2025Beyond Generative AI: World Models for Clinical Prediction, Counterfactuals, and Planning
- 2025MEDEQUALQA: Evaluating Biases in LLMs with Counterfactual Reasoning
- 2025ROBoto2: An Interactive System and Dataset for LLM-assisted Clinical Trial Risk of Bias Assessment