arXiv:2610.29528cs.LGOct 2026

Manuscript Offprint

arXiv:2610.29528

Are Joint-Embedding Predictive Objectives Effective for Longitudinal EHRs?

Ashvin Gupta, Brendan Delaney, Alessandra Russo

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

Abstract

Masked language modelling (MLM) is the dominant pretraining objective for transformer encoders applied to longitudinal electronic health records (EHRs). However, reconstructing individual events may overemphasise noisy or weakly informative observations and does not explicitly encourage learning higher-level patient states. Joint-Embedding Predictive Architectures (JEPAs) instead learn by predicting representations in latent space and have shown strong performance in a variety of domains. In this paper, we investigate to what extent JEPA can be adapted to EHR sequence representation. Our empirical investigation using MIMIC-IV shows that although all three of our JEPA formulations train stably without representational collapse, they consistently underperform standard MLM. We find that target size, not target heterogeneity, increases prediction error, yet reducing the target size does not recover downstream performance. This suggests that stable latent prediction alone is insufficient for competitive EHR representation learning and highlights the challenge of defining clinically meaningful latent targets for EHR.

1 Introduction

Electronic Health Records (EHRs) are longitudinal records of patient-healthcare interactions. Recent work has increasingly focused on EHR foundation models, which aim to learn general-purpose patient representations through self-supervised learning and can be adapted to a range of downstream clinical prediction tasks [1, 2, 3, 4]. Downstream performance therefore hinges on the quality of these representations.

Due to the sequential nature of EHRs, transformer encoders have become a common backbone for EHR representation learning. A dominant objective for pretraining has been BERT-style masked language modelling (MLM), in which the model is trained to reconstruct masked medical events from their surrounding context [5, 6, 7, 8]. However, exact token reconstruction may not provide the ideal learning signal for longitudinal clinical data. EHR sequences contain routine, repeated, administrative, and partially unpredictable events, yet MLM treats reconstruction of each masked token as equally important. This may encourage representations that capture the identity of local events rather than the true patient state.

In contrast, clinicians use their medical knowledge to abstract away irrelevant detail and focus on key events, trends, and interactions to form a higher-level representation of the patient state. This motivation is closely aligned with Joint-Embedding Predictive Architectures (JEPAs), which provide an alternative form of self-supervision [9, 10]. Rather than reconstructing observations in the input space, JEPA trains a predictor to estimate latent representations of unobserved targets from an available context. This approach has shown strong representation-learning performance in vision [10, 11], world modelling [12] and language [13]. Latent prediction is intended to produce semantically meaningful features and avoid unnecessary reconstruction of unpredictable low-level

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

detail. This is particularly appealing for EHRs, where multiple observed event sequences may correspond to similar underlying clinical states and trajectories.

However, defining a meaningful and predictable JEPA target in longitudinal EHRs is non-trivial. Unlike image patches, EHR events are irregularly sampled, vary substantially in density, and already represent semantically meaningful concepts. Temporal proximity therefore does not necessarily imply semantic similarity, and future clinical events may depend not only on patient state but also on healthcare decisions.

In this work, we ask whether the I-JEPA-style latent prediction framework [10] can be transferred effectively to longitudinal EHR sequences. We evaluate multiple target-construction strategies, including span masking, future masking and random masking of events. We investigate (1) whether these JEPA formulations can be trained stably without representational collapse, (2) how the downstream performance compares, and (3) which objective and training characteristics may explain the observed differences.

References (18)