arXiv:2610.38445cs.AIOct 2026

Manuscript Offprint

arXiv:2610.38445

DES-JEPA: Learning a Shared Vocabulary for High-Dimensional Discrete Event Sequences

Hugo Math, Maximilian Forstenhäusler, Christos Anagnostopoulos

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

Abstract

Temporal foundation models such as Chronos and TimesFM generalize across domains through a shared numerical observation space. In contrast, discrete event sequences (DESs) including operational event logs or patient clinical-event trajectories have domain-specific event vocabularies whose labels lack a consistent correspondence across domains. Beyond this lack of consistency, the number of distinct events in real-world settings is high enough to challenge both classical temporal point process modeling and current in-context foundation inference models, such as FIM-PP. Critically, no current foundational method scales past a few dozen event types for DESs, limiting their applicability to realistic, high-dimensional event streams. To address this, we propose two complementary modules: (i) DES-JEPA, a joint-embedding predictive architecture that learns a shared discrete vocabulary from synthetic stochastic processes with unaligned event vocabularies; and (ii) DES-PFN, a discrete event sequence prior-fitted network that reuses the learned vocabulary for in-context next-event prediction. We demonstrate that, without task-specific fine-tuning, this framework achieves competitive zero-shot performance on unseen real-world datasets and scales up to hundreds of distinct event types.

1 Introduction and Related Work

Discrete event sequences (DESs) arise ubiquitously across domains, from vehicle diagnostic logs [1] to electronic health records (EHRs) [2–4]. Learning across these domains requires handling event vocabularies whose labels have no consistent meaning across datasets: the same event type may denote a machine error in one system and a clinical observation in another. Concurrent work on temporal foundation models (TFMs) treats a sequence as a continuous-valued signal and pretrains a shared numerical value that lives on a comparable scale [5, 6]. However, categorical event identifiers provide no equivalent basis for such an aligned observation space.

Prior work [7–10] leverages temporal point processes (TPPs) for modeling event types and their time of occurrence [11]. Conventional methods therefore rely on fitting expensive statistical models (e.g., Hawkes processes [7]) that are known to be impractical at hundreds or thousands of distinct event types. Importantly, they must be fitted from scratch for every new batch of data. Berghaus et al. [12] address this with a foundation inference model FIM-PP, enabling in-context learning of TPPs without fine-tuning. However, FIM-PP supports at most 22 event types, restricting its direct application to datasets with larger event vocabularies and substantially limiting its scope as a foundation model.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Foundation Models for Temporal Systems: From Forecasting to World Modeling.

Figure

Figure 1: Pipeline overview. (a): an event sequence is tokenized into a shared codebook Z\mathcal{Z} via DES-JEPA. DES-PFN (b) learns in-context to predict the next code of a query q<tq_{<t}. Right (c): a sequence of interest is forecasted, the resulting code is then decoded into the event types.

Therefore, extending current methodologies to more realistic real-world domains with hundreds of discrete event types remains an important open challenge.

We hypothesize that the missing component is a representation that transfers across processes, not a better fit to any single one. Therefore, the correct invariant to learn across anchor-free data-generating processes (DGPs) is therefore not the symbol itself, but alphabets of shared patterns that recur across unaligned processes. We gather this representation in a learned codebook, which is reusable across downstream tasks such as zero-shot next-event prediction or long-horizon forecasting [13].

To address this gap, we introduce a joint-embedding predictive architecture for discrete event sequences (DES-JEPA), a JEPA-based method [14–16] that learns a shared discrete vocabulary, i.e., codebook. It consists of two transformer-based encoders: (i) a teacher encoder which quantizes future windows into latent codes, and (ii) a student encoder which maps historical observations to a latent representation. Through a prior-fitted network (PFN)-style meta-pretraining (TabPFN, TabICLV2 [17–20]) using synthetic data, the model learns to capture recurring dynamics across stochastic processes with unaligned vocabularies. Via the frozen teacher encoder and codebook embeddings, we tokenize any sequence of interest (query). Then, a second model (DES-PFN) predicts the next-event on this query, without fine-tuning, conditioned on a reference set of sequences (context). Together, they support zero-shot next-event prediction through a shared latent vocabulary, extending amortized in-context inference to discrete representations of temporal dynamics. Our contributions are:

  • We introduce DES-JEPA, combining predictive latent learning, vector quantization, and meta-pretraining to learn a shared codebook from any discrete event sequences.
  • We introduce DES-PFN, which uses the shared codebook computed by the teacher encoder of DES-JEPA, to autoregressively predict unseen event types without task-specific fine-tuning. We evaluate it on zero-shot next-event prediction on various unseen real-world datasets ranging from 3 to 700 event types, placing it as the best performing model for event sequences.

References (47)