arXiv:2610.29533cs.LGOct 2026

Manuscript Offprint

arXiv:2610.29533

Block Diffusion for Longitudinal EHR: Accuracy, Efficiency, and Representation Trade-offs

Ashvin Gupta, Joshua Placidi, Brendan Delaney, Alessandra Russo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Autoregressive (AR) models have proved effective for zero-shot prediction from longitudinal electronic health records, but impose strictly sequential generation on trajectories containing temporally clustered and interdependent clinical events. We investigate block-based masked diffusion (BD) as an alternative on MIMIC-IV under matched tokenisation, context length, model capacity, and evaluation conditions. Across block sizes, BD exhibits a clear quality–efficiency trade-off, with small-block configurations retaining much of the predictive performance of AR while enabling substantially faster inference. A representative B=8 configuration achieves approximately 1.43×1.43\times faster evaluation. Although generative rollout remains below AR in most settings, frozen linear probes on BD and AR representations achieve near-identical performance across clinical prediction tasks, indicating that BD learns comparably informative clinical representations. Increasing the denoising budget yields diminishing returns, while alternative decoding strategies provide limited gains. Overall, our results show that block diffusion is a viable and computationally attractive approach to longitudinal EHR modelling, with further improvements in iterative decoding offering a promising route toward closing the remaining generative performance gap.

1 Introduction

Foundation models for structured electronic health record (EHR) data have predominantly adopted autoregressive (AR) sequence modelling. By generating possible future patient trajectories, these models have demonstrated strong zero-shot performance across clinical prediction tasks, in some settings approaching or exceeding task-specific supervised baselines [1, 2, 3, 4]. However, AR modelling imposes a strict left-to-right factorisation with each event generated conditionally on all preceding events before subsequent events can be considered. Longitudinal EHRs are only partly sequential in this sense. Clinical activity often occurs in temporally concentrated bursts, making groups of nearby events a natural target for partially parallel generation (Appendix A.9), and in our MIMIC-IV data, 47.4% of recorded timestamps contain at least eight tokens (Appendix A.4). This strict factorisation also carries an inference cost, as token-by-token decoding limits parallelism and requires sequential computation for each generated event. This motivates generative objectives that relax strict next-token prediction and instead allow groups of clinical events to be modelled jointly.

Discrete diffusion language models provide one such alternative by learning to reconstruct corrupted tokens through iterative denoising [5]. These models have shown strong generative and representation-learning performance in other structured scientific domains, including protein sequence modelling and molecular graph generation [6, 7]. Block diffusion (BD) introduces an AR factorisation across blocks while denoising tokens jointly within each block, enabling partial parallelism while retaining causal conditioning on previously generated context [8]. Prior work has shown a quality–parallelism trade-off: larger blocks allow more parallel generation but generally degrade likelihood and generation quality, whereas smaller blocks more closely approach AR performance. Discrete diffusion has

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: World Models for High-Stakes Health.

previously been applied to EHRs for synthetic data generation [9, 10], but its behaviour relative to strong AR foundation models for zero-shot clinical prediction remains less well understood.

In this work, we conduct a controlled empirical comparison between AR and block-diffusion modelling of tokenised MIMIC-IV patient trajectories. We ask three questions: (1) how do block size and denoising budget affect the trade-off between predictive performance and inference efficiency; (2) when diffusion rollout underperforms AR, does the gap arise from poorer learned representations or from the iterative generation process; and (3) can alternative decoding strategies recover performance lost during blockwise generation?

Our contributions are:

  1. We show that block diffusion is a competitive alternative for longitudinal EHR prediction, achieving rollout performance close to AR while providing up to a 1.43×1.43 \times evaluation speedup in our primary operating regime.

  2. We show that AR and block-diffusion models encode similarly predictive clinical information, with frozen linear probes achieving near-identical downstream performance across tasks despite a larger gap during generative rollout.

  3. We provide a systematic study of how block size and denoising budget affect the quality–efficiency trade-off of block diffusion on EHR sequences, and find that alternative decoding strategies are not sufficient to close the remaining performance gap to AR.