A Diffusion-Based Method for Learning the Multi-Outcome Distribution of Medical Treatments

Yuchen Ma, Jonas Schweisthal, Hengrui Zhang, Stefan Feuerriegel

Abstract

Personalized medicine requires predicting how treatments affect multiple, often interdependent, outcomes. Current causal machine learning models typically focus on single-outcome point estimates, failing to capture dependencies and uncertainty. We present DIME (Diffusion-based Interventional, Multi-outcome Estimation), a score-based diffusion model designed to learn the joint interventional distribution of mixed-type medical outcomes. By employing autoregressive decomposition and specialized masking techniques, DIME provides robust uncertainty quantification and captures complex dependencies, outperforming existing baselines in both distributional accuracy and point estimation across synthetic and real-world clinical datasets.

Introduction

In personalized medicine, clinicians must predict how an individual patient will respond to a specific treatment to optimize care. This requires estimating Conditional Average Potential Outcomes (CAPOs). However, the vast majority of current causal machine learning methods suffer from two major limitations that hinder their clinical utility.

First, most models maintain a single-outcome focus. They are designed to predict a primary endpoint, such as tumor shrinkage, while ignoring secondary endpoints like toxicity or adverse events. In clinical reality, these outcomes are highly interdependent; a treatment that effectively reduces a tumor may simultaneously increase systemic fatigue. Second, existing models prioritize point estimates over distributions. By outputting a single expected value, these models provide no information regarding uncertainty or variance. In high-stakes healthcare environments, understanding the probability of a "worst-case scenario" is as critical as knowing the average expected outcome.

Learning the joint distribution of multiple outcomes is challenging due to the fundamental problem of causal inference: we only observe the factual outcome of the treatment a patient received, never the counterfactual. Furthermore, medical data is inherently "messy," comprising a mix of continuous, binary, and categorical variables that traditional generative models struggle to synthesize simultaneously.

Methodology: The DIME Framework

To address these challenges, we introduce DIME (Diffusion-based Interventional, Multi-outcome Estimation), a score-based diffusion model tailored for multi-outcome causal inference. DIME incorporates three primary innovations to handle the complexities of medical data.

Autoregressive Decomposition

Directly modeling a high-dimensional joint distribution is often computationally intractable. DIME leverages the chain rule of probability to decompose the joint distribution into a series of simpler conditional distributions. During the inference phase, the model generates predictions autoregressively—predicting one outcome and then using that result to condition the prediction of the subsequent outcome.

Causal and Conditional Masking

To overcome the lack of counterfactual data, DIME employs causal masking during training. This ensures the model only updates its parameters based on the factual outcomes observed in the training set. Additionally, conditional masking allows the model to be trained on various permutation orderings of the outcome variables. This ensures that the model learns robust dependencies regardless of the specific order in which outcomes are generated during inference.

Mixed-Type Architecture

While standard diffusion models are optimized for continuous data (like images), DIME is designed for tabular medical data. It utilizes distinct encoders to map continuous and discrete variables into a shared embedding space. The model is then optimized using a dual-loss function: a standard score-matching loss for continuous variables and a cross-entropy loss for categorical variables, processed through a shared transformer-based architecture.

Experimental Evaluation

We evaluated DIME against several baselines, including DiffPO, GANITE, and adapted Conditional Average Treatment Effect (CATE) models, across a variety of datasets:

  • Synthetic Data: Utilizing covariates from the ACIC 2018 benchmark, we simulated bivariate normal distributions with controllable correlations to test the model's ability to recover known dependencies.
  • ACIC 2018: A standard causal inference benchmark derived from linked birth and infant death data.
  • International Stroke Trial (IST): A real-world randomized controlled trial of 19,435 patients. We modeled outcomes including the probability of recurrent strokes and death/dependency at six months.
  • MIMIC-III: A large-scale observational dataset of critical care patients, where we studied the effects of mechanical ventilation on hospital stay duration and 90-day mortality.

Results and Discussion

Distributional Accuracy

DIME demonstrated superior performance in distribution matching. On the MIMIC-III dataset, DIME achieved an empirical Wasserstein distance of 1.30 ± 0.11, significantly outperforming the next best baseline, DiffPO (1.94 ± 0.13). Qualitative Kernel Density Estimation (KDE) plots further confirmed that DIME’s predicted joint distributions closely mirror the complex, non-Gaussian shapes of ground-truth distributions.

Point Estimation and Personalization

Despite being a generative model, DIME achieves state-of-the-art results in standard point estimation tasks. It recorded the lowest Precision in Estimation of Heterogeneous Effect (PEHE) across real-world datasets. By providing full joint distributions, DIME allows clinicians to visualize the actual probability density of various clinical trajectories, enabling risk-aware treatment selection tailored to a patient's specific risk tolerance.

Limitations

While effective, DIME faces a combinatorial explosion regarding outcome orderings. As the number of outcomes increases, training on all possible permutations becomes computationally expensive. Furthermore, like most causal frameworks, DIME assumes unconfoundedness; if unobserved confounders exist in the observational data, the resulting distributions may be biased.

Conclusion

DIME represents a significant step forward in causal machine learning for healthcare. By moving beyond point estimates to full joint distributions, it provides the uncertainty quantification necessary for safe, personalized clinical decision-making. Future work will focus on scaling this architecture to longitudinal patient trajectories and developing methods to mitigate the impact of hidden confounding.

Summary updated

BibTeX
@inproceedings{ma2025diffusion,
  author = {Yuchen Ma and Jonas Schweisthal and Hengrui Zhang and Stefan Feuerriegel},
  title = {{A Diffusion-Based Method for Learning the Multi-Outcome Distribution of Medical Treatments}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
}
Figure