DeepImagine: Learning Biomedical Reasoning via Successive Counterfactual Imagining

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zheng, Youze, Wang, Jianyou, Chen, Yuhan, Feng, Matthew, Bao, Longtian, Zhang, Hanyuan, Khan, Maxim, Sehgal, Aditya K., Rosin, Christopher D., Dube, Umber, Paturi, Ramamohan
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917436344762368
author Zheng, Youze
Wang, Jianyou
Chen, Yuhan
Feng, Matthew
Bao, Longtian
Zhang, Hanyuan
Khan, Maxim
Sehgal, Aditya K.
Rosin, Christopher D.
Dube, Umber
Paturi, Ramamohan
author_facet Zheng, Youze
Wang, Jianyou
Chen, Yuhan
Feng, Matthew
Bao, Longtian
Zhang, Hanyuan
Khan, Maxim
Sehgal, Aditya K.
Rosin, Christopher D.
Dube, Umber
Paturi, Ramamohan
contents Predicting the outcomes of prospective clinical trials remains a major challenge for large language models. Prior work has shown that both traditional correlational predictors, such as random forests and logistic regression, and strong commercial LLMs achieve limited performance on this task. In this paper, we propose DeepImagine, a framework for teaching LLMs biomedical reasoning through successive counterfactual imagining. The central idea is to approximate hidden causal mechanisms of clinical trials by training models to infer how observed trial results would change under controlled perturbations of experimental conditions, such as dosage, outcome measures, study arms, geography, and other trial attributes. To support this objective, we construct both natural and approximate counterfactual pairs from real clinical trials with reported outcomes. For settings where strict counterfactual supervision is available, such as paired outcome measures or dose-ranging study arms within the same trial, we train models with supervised fine-tuning. For broader settings where only approximate counterfactual pairs can be retrieved, we optimize models with reinforcement learning using verifiable rewards based on downstream benchmark correctness. We further augment training with synthetic reasoning traces that provide causally plausible explanations for local counterfactual transitions. Using this pipeline, we train language models under 10B parameters, including Qwen3.5-9B, and evaluate them on clinical trial outcome prediction. We aim to show that DeepImagine consistently improves over untuned language models and traditional correlational baselines. Finally, we aim to show that the learned reasoning trajectories provide interpretable signals about how models represent trial-level mechanisms, suggesting a practical path toward more mechanistic and scientifically useful biomedical language models.
format Preprint
id arxiv_https___arxiv_org_abs_2604_23054
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle DeepImagine: Learning Biomedical Reasoning via Successive Counterfactual Imagining
Zheng, Youze
Wang, Jianyou
Chen, Yuhan
Feng, Matthew
Bao, Longtian
Zhang, Hanyuan
Khan, Maxim
Sehgal, Aditya K.
Rosin, Christopher D.
Dube, Umber
Paturi, Ramamohan
Computation and Language
Artificial Intelligence
Machine Learning
Predicting the outcomes of prospective clinical trials remains a major challenge for large language models. Prior work has shown that both traditional correlational predictors, such as random forests and logistic regression, and strong commercial LLMs achieve limited performance on this task. In this paper, we propose DeepImagine, a framework for teaching LLMs biomedical reasoning through successive counterfactual imagining. The central idea is to approximate hidden causal mechanisms of clinical trials by training models to infer how observed trial results would change under controlled perturbations of experimental conditions, such as dosage, outcome measures, study arms, geography, and other trial attributes. To support this objective, we construct both natural and approximate counterfactual pairs from real clinical trials with reported outcomes. For settings where strict counterfactual supervision is available, such as paired outcome measures or dose-ranging study arms within the same trial, we train models with supervised fine-tuning. For broader settings where only approximate counterfactual pairs can be retrieved, we optimize models with reinforcement learning using verifiable rewards based on downstream benchmark correctness. We further augment training with synthetic reasoning traces that provide causally plausible explanations for local counterfactual transitions. Using this pipeline, we train language models under 10B parameters, including Qwen3.5-9B, and evaluate them on clinical trial outcome prediction. We aim to show that DeepImagine consistently improves over untuned language models and traditional correlational baselines. Finally, we aim to show that the learned reasoning trajectories provide interpretable signals about how models represent trial-level mechanisms, suggesting a practical path toward more mechanistic and scientifically useful biomedical language models.
title DeepImagine: Learning Biomedical Reasoning via Successive Counterfactual Imagining
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2604.23054