SurvDiff: A Diffusion Model for Generating Synthetic Data in Survival Analysis

Marie Brockschmidt, Maresa Schröder, Stefan Feuerriegel

Introduction

Survival analysis is a cornerstone of clinical research, providing the statistical foundation for modeling "time-to-event" outcomes such as disease relapse, metastasis, or patient death. However, survival data possesses a unique characteristic that complicates analysis: right-censoring. This occurs when a patient drops out of a study or the study concludes before the event of interest happens. In these cases, researchers know the patient survived at least until a certain point, but the final outcome remains unknown.

Generating synthetic versions of this data is increasingly vital for privacy-preserving research, data sharing, and data augmentation. Yet, accurately synthesizing survival data requires faithfully reproducing both the event-time distribution and the underlying censoring mechanism.

The Challenge with Existing Generators

Standard tabular data generators, such as CTGAN or basic diffusion models, treat every row as independent. They fail to account for the complex temporal relationships between patient characteristics (covariates) and the censoring mechanism.

To address this, previous survival-specific generative models have often relied on "multi-stage" pipelines—generating patient traits first and outcomes second. Unfortunately, this staged approach frequently leads to "error propagation," where minor inaccuracies in the initial generation step snowball into significant distortions in the final dataset.

SurvDiff: An End-to-End Diffusion Approach

To overcome these limitations, researchers have introduced SurvDiff, the first end-to-end diffusion model specifically designed to generate synthetic survival data. By handling the entire data-generating process simultaneously, SurvDiff avoids the error accumulation of staged models and the mode collapse common in Generative Adversarial Networks (GANs).

SurvDiff relies on several core methodological innovations:

  • Joint Generation: SurvDiff simultaneously generates continuous covariates, discrete covariates, event times, and censoring indicators. It utilizes a masked-diffusion process for discrete variables and a Gaussian diffusion process for continuous ones.
  • Survival-Tailored Loss: The model incorporates a specialized loss function alongside the standard diffusion objective. By integrating a Cox partial negative log-likelihood, the model is forced to respect the risk-ordering of the original data, directly optimizing for downstream survival tasks.
  • Sparsity-Aware Weighting: Medical data often becomes sparse at later time points. SurvDiff employs a weighting scheme that prioritizes earlier events where data is abundant, downweighting rare, late-stage events to maintain training stability.
  • Adaptive Scaling: The architecture automatically balances the reconstruction loss (ensuring the data looks realistic) and the survival loss (ensuring outcomes are statistically accurate) during training.

Experimental Validation

SurvDiff was rigorously evaluated against state-of-the-art baselines (including SurvivalGAN and VAE-based methods) across three well-known medical datasets: the AIDS ACTG 320 Trial (91.7% censoring), GBSG2 breast cancer data (56.4% censoring), and the METABRIC breast cancer cohort (42% censoring).

Key Results: * Distributional Fidelity: SurvDiff achieved the lowest Jensen-Shannon (JS) distance across all datasets, indicating that the synthetic patient profiles were highly representative of the real data. UMAP visualizations confirmed that SurvDiff's synthetic samples perfectly overlapped original data clusters, avoiding the sub-population omissions seen in baselines like TVAE and CTGAN. * Downstream Clinical Utility: When survival models (e.g., Random Survival Forests) were trained on synthetic data and tested on real data, SurvDiff generated the highest C-index (ranking accuracy) and the best Brier scores (probability calibration). * Robustness in Small Samples: SurvDiff maintained high performance even when training data was heavily downsampled, highlighting its potential utility for rare disease research where patient cohorts are inherently small.

Limitations and Future Work

While SurvDiff represents a major step forward for synthetic clinical data, the authors note a few areas for future development. Currently, the model is designed exclusively for right-censoring and does not handle left-truncation or interval-censoring. Furthermore, it focuses on single endpoints; future iterations could expand to model "competing risks" or multiple simultaneous outcomes. Finally, as a diffusion model, SurvDiff requires more computational steps to sample data than simpler VAEs, though training on standard medical datasets typically concludes in under 15 minutes on a modern GPU.

By treating the censoring indicator as a feature to be jointly modeled rather than a nuisance variable, SurvDiff successfully bridges the gap between generative AI and rigorous clinical survival analysis.

Summary updated

BibTeX
@inproceedings{brockschmidt2026survdiff,
  author = {Marie Brockschmidt and Maresa Schröder and Stefan Feuerriegel},
  title = {{SurvDiff: A Diffusion Model for Generating Synthetic Data in Survival Analysis}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=boeY2syj2r},
}
Figure