TarDiff: Target-Oriented Diffusion Guidance for Synthetic Electronic Health Record Time Series Generation

Bowen Deng, Chang Xu, Hao Li, Yuhao Huang, Min Hou, Jiang Bian · 2025

Read TarDiff: Target-Oriented Diffusion Guidance for Synthetic Electronic Health Record Time Series Generation by Bowen Deng, Chang Xu, Hao Li, Yuhao Huang, Min Hou, Jiang Bian (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-17613.txt.

Introduction

Bowen Deng and co-authors published a 2025 paper on generating synthetic patient records that are useful, not just realistic. Hospitals cannot share real records freely, so machine learning trains on synthetic ones. Most generators copy the statistical shape of real data. The authors argue that is the wrong target: common patterns dominate, and the rare cases models most need to learn stay rare.

Their framework, TarDiff, steers a diffusion generator with the downstream task itself. Generation is guided toward samples that improve a specific clinical model's performance on its target outcome. Usefulness, not resemblance, becomes the objective. The setting is health-record time series, the sequences of measurements that chart a patient's course. If synthetic data can be aimed, scarce-data problems in medicine get a new lever: manufacture the examples your model is missing. The paper reframes data generation as a form of teaching.

Catalog record

CREATORBowen Deng, Chang Xu, Hao Li, Yuhao Huang, Min Hou, Jiang Bian
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE61 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2504-17613

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

TarDiff: Target-Oriented Diffusion Guidance for Synthetic Electronic Health Record Time Series Generation Bowen Deng, Chang Xu, Hao Li, Yuhao Huang, Min Hou, Jiang Bian Abstract Synthetic Electronic Health Record (EHR) time-series generation is crucial for advancing clinical machine learning models, as it helps address data scarcity by providing more training data. However, most existing approaches focus primarily on replicating statistical distributions and temporal dependencies of real-world data. We argue that fidelity to observed data alone does not guarantee better model performance, as common patterns may dominate, limiting the representation of rare but important conditions. This highlights the need for generate synthetic samples to improve performance of specific clinical models to fulfill their target outcomes. To address this, we propose TarDiff , a novel target-oriented diffusion framework that integrates task-specific influence guidance into the synthetic data generation process. Unlike conventional approaches that mimic training data distributions, TarDiff optimizes synthetic samples by quantifying their expected contribution to improving downstream model performance through influence functions. Specifically, we measure the reduction in task-specific loss induced by synthetic samples and embed this influence gradient into the reverse diffusion process, thereby steering the generation towards utility-optimized data. Evaluated on six publicly available EHR datasets, TarDiff achieves state-of-the-art performance, outperforming existing methods by up to 20.4% in AUPRC and 18.4% in AUROC. Our results demonstrate that TarDiff not only preserves temporal fidelity but also enhances downstream model performance, offering a robust solution to data scarcity and class imbalance in healthcare analytics. 1 Introduction Healthcare is a cornerstone of societal well-being, especially as the world faces an aging population and the rising burden of chronic diseases, placing increasing pressure on healthcare systems worldwide ( Liang et al. 2024 ) . Traditionally, medical diagnoses have relied on human expertise, but with advancements in machine learning, Electronic Health Records (EHRs)—which digitally store a patient’s medical history, including demographic attributes ( Maweu et al. 2021 ; Li et al. 2023 ) , vital signs ( Tseng et al. 2022 ) , and lab measurements—have become invaluable for clinical research ( Kaushik et al. 2020 ; Schlegel et al. 2023 ) . EHR time series data, such as Electroencephalography (EEG) for neurological analysis and Electrocardiography (ECG) for heart condition diagnosis, provide critical insights for medical decision-making. Leveraging these rich data sources, machine learning models trained in a data-driven manner are then applied to various downstream tasks, including disease diagnosis, prognosis prediction, and treatment planning ( Shickel et al. 2017 ; Goldstein et al. 2016 ; Li et al. 2024b ; Nagar et al. 2024 ) . However, obtaining and utilizing EHR data remains a significant challenge due to medical-related factors, such as strict privacy regulations, data incompleteness resulting from sensor failures, and difficulties in accurate labeling. As a result, synthesizing EHR data has gained increasing attention. Existing work has explored a wide range of methods including rule-based approaches and generative models. Rule-based techniques—such as time warping, jittering, and interpolation ( Wang et al. 2024 ; Wen et al. 2020 ) —are favored for their simplicity and efficiency, yet they often fail to capture the intricate temporal dependencies and pathological patterns present in clinical data. GANs ( Schön et al. 2023 ) and VAEs ( Kingma 2013 ) have been employed to generate high-fidelity signals, with notable examples including TimeGANs ( Yoon et al. 2019 ) , TimeVAE ( Desai et al. 2021 ) , and TimeVQ-VAE ( Lee et al. 2023 ) , which have demonstrated improved performance in various biohealthcare applications. More recently, diffusion models ( Ho et al. 2020 ; Song et al. 2020 ; Fan et al. 2024 ; Li et al. 2025 ) have emerged as a promising alternative; methods such as TimeDiff ( Tian et al. 2024 ) , DiffusionTS ( Yuan and Qiao 2024 ) and BioDiffusion ( Li et al. 2024a ) similarly seek to approximate the underlying data distribution through iterative refinement, emphasizing the generation of realistic time series data. While these efforts have significantly advanced the field, they primarily focus on generating synthetic data by mimicking the empirical distribution of training samples. We argue that this approach inherently overlooks the effectiveness of the generated data for downstream medical tasks. For instance, in rare disease diagnosis, where positive samples are scarce in real-world datasets, generating synthetic data purely based on observed distributions may exacerbate biases in the downstream model ( Gupta et al. 2021 ) , making it more inclined to diagnose common conditions while failing to recognize rare diseases effectively. Consequently, such data generation strategies do not necessarily enhance model performance in rare disease diagnosis and may even worsen the imbalance in predictive accuracy ( Huo et al. 2022 ) . Therefore, we propose that EHR data generation should not merely replicate statistical patterns of training data but should instead be guided by its utility in training more effective models to fulfill the targets of downstream tasks. This calls for an adaptive generation strategy that actively optimizes synthetic data to enhance model learning for specific medical applications. In this work, we investigate how to develop a model for generating EHR data that is specifically tailored to enhance downstream model performance for target tasks. Recent advancements in diffusion models have shown promising results in time series generation ( Tian et al. 2024 ; Yuan and Qiao 2024 ; Li et al. 2024a ) , with conditional diffusion models ( Huang et al. 2025 ; Dhariwal and Nichol 2021 ; Ho and Salimans 2022 ) offering significant insights for this work. These models have the ability to guide the generation process towards a predefined goal, which provides a compelling direction for EHR generation. Therefore, an intuitive idea is to guide the diffusion process towards generating data that benefits downstream tasks. However, one of the key challenges is how to represent and quantify the impact of the generated data on the performance of downstream models for specific tasks. To address this, we draw inspiration from influence functions ( Koh and Liang 2017 ; Anand et al. 2023 ; Cook 1977 ) , a robust statistics technique that measures the impact of a single data point on an estimator, revealing how observations affect model parameters and predictions. In machine learning, influence functions help understand model behavior, debug predictions, and identify influential training points by tracing a model’s predictions back to its training data ( Hou et al. 2024 ) . Building upon this foundation, we propose a diffusion framework that integrates the influence of synthetic samples as a form of guidance, with the goal of generating samples that yield the most positive impact on specific clinical tasks. In our approach, the influence of a generated sample is defined as the reduction in the task-specific loss on a guidance set drawn from the same distribution as the downstream task when the sample is incorporated into the training data. By estimating the influence of intermediate samples during the diffusion process, we leverage the gradient information associated with the influence to steer the generation process toward producing data that are optimally beneficial for downstream tasks. By incorporating this influence gradient into the reverse diffusion process, our method actively guides the generation toward producing samples that are more likely to improve

Read the complete text