arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2608.10120v1 [cs.LG] 10 Aug 2026

ChronoSSM: Training for Temporally Aware Representations in Autoregressive State Space Models

Adrien Schoen adrien.schoen@cnrs.fr ENS de Lyon, CNRS, UCBL1, LIPLyonFrance , Nachiketa Ratnakar Patil npatil@iitb.ac.in Centre for Machine Intelligence and Data ScienceIndian Institute of Technology BombayMumbaiIndia , Arjun Bhagoji arjunp@iitb.ac.in Centre for Machine Intelligence and Data ScienceIndian Institute of Technology BombayMumbaiIndia and Francesco Bronzino francesco.bronzino@ens-lyon.fr ENS de Lyon, CNRS, UCBL1, LIPLyonFrance Institut universitaire de FranceFrance
Abstract.

Modern sequence models, from Transformers to State Space Models, have enabled powerful generative modeling across diverse domains, yet they are typically trained to predict what happens while treating when it happens as a secondary concern. In data-mining settings where events are associated with explicit timing information, this separation can limit temporal reasoning, anomaly detection, and faithful reconstruction of event chronology. A common strategy is to treat timing as an auxiliary signal, training a separate timing model using representations learned solely for event prediction. However, this two-stage approach implicitly assumes that representations optimized for event prediction already contain sufficient temporal structure.

We introduce ChronoSSM, an autoregressive State Space Model (SSM) that jointly models events and timestamps with a shared backbone trained using combined token and temporal generation objectives. We compare the Joint regime, where temporal supervision updates the backbone, with the Two-Stage regime, where timing is learned only using the frozen event representations. Across four domains spanning dense and partial timestamp supervision, Joint training consistently makes inter-arrival information more recoverable from frozen representations without any systematic degradation in content-generation quality overall. Our results show that temporal supervision can produce more temporally informative representations without materially degrading autoregressive event modeling.

copyright: none

1. Introduction

Modern autoregressive sequence models are now used well beyond natural language, including in domains such as business-process traces, clinical event sequences derived from electronic health records, network traffic, and temporal knowledge graphs (van Dongen and Borchert, 2018; Johnson et al., 2023; Bronzino et al., 2019; Jin et al., 2020). In these settings, events are associated with explicit temporal metadata, and downstream tasks depend not only on what happened but also on when it happened (Lanvin et al., 2023; Paparrizos et al., 2025; Cüppers et al., 2024; Jin et al., 2020). This raises a basic question: can autoregressive sequence models learn both event identity and event timing within a shared representation? We formalize this problem in section 2.

A common way to incorporate timing has been to treat it as an auxiliary task (Jiang et al., 2024; Chu et al., 2026): first train a sequence model for next-event prediction, then freeze its representations and fit a separate timing module on top. This two-stage strategy is simple and modular, but it assumes that representations optimized only for token prediction already retain enough temporal information. That assumption is questionable: the token generation objective only rewards features that improve next-event likelihood, not inter-arrival modeling. A downstream timing module must therefore recover temporal structure from representations that were never explicitly trained to encode it.

In this paper, we introduce ChronoSSM (section 3), an autoregressive State Space Model that predicts both the next event and its timestamp from a shared backbone. A lightweight temporal head is trained jointly with the token prediction head, so temporal gradients can directly update the backbone. The resulting model learns event semantics and temporal dynamics within a unified representation. Our code and configurations shall be released upon acceptance.

To test whether this joint formulation offers a real advantage over the two-stage alternative, we conduct a controlled comparison between two training regimes that share the same architecture, data, and temporal objective (section 4): a Two-Stage regime, in which timing is learned after event prediction on frozen representations, and a Joint regime, in which both objectives are optimized together. We evaluate this comparison on four key domains spanning dense and partial timestamp supervision: business-process traces (van Dongen and Borchert, 2018; Mannhardt et al., 2018), clinical event sequences (Johnson et al., 2023), network traffic (Bronzino et al., 2019; Chu et al., 2026), and temporal knowledge graphs (Jin et al., 2020). In addition to these four main domains, we also experiment with symbolic-music (Kong et al., 2022; Hawthorne et al., 2019; Huang et al., 2019) generation reported in appendix B. Our two main research questions are:

RQ1 (Temporal Recoverability). Does Joint training yield representations from which inter-arrival information is more recoverable than under Two-Stage training? We evaluate this using a suite of recoverability diagnostics (formalized in section 5) that probe whether temporal structure is encoded in frozen learned representations and can be extracted by lightweight analyses. We find that Joint training consistently produces representations from which timing is more recoverable across all four domains, with the magnitude of the effect varying by domain.

RQ2 (Quality Degradation). Does injecting temporal supervision into the shared backbone systematically degrade downstream modeling quality? Stronger temporal recoverability is only useful if it does not compromise the model’s primary event-generation function. We therefore compare Joint and Two-Stage training on domain-specific generation metrics and find no evidence of a systematic degradation under Joint training (section 6), with Joint generating higher quality data in 2 out of 4 domains.

Overall, these results indicate that explicit temporal supervision can improve temporal recoverability without systematically degrading the model’s primary generative function. This paves the way for temporally-aware generative models to be trained and deployed in relevant domains.

2. Background

This section introduces the modeling framework used throughout the paper. We first describe the underlying sequence model and the representations it produces, and then formalize the problem setting for predicting the next event and its associated timing information.

2.1. The State-Space Architecture

State Space Models (SSMs) are sequence models with recurrent latent-state dynamics that support linear-time processing in sequence length (Fichtl et al., 2025; Gu et al., 2022). This is useful in long-sequence settings, where computational efficiency becomes important as context length grows.

The core mechanism of an SSM is a linear dynamical system that maps an input sequence to an output sequence through a hidden state (Gu et al., 2022). At step kk, the model updates a latent state sks_{k} from the previous state and the current input xkx_{k}, and then produces an output representation hkh_{k}:

(1) sk\displaystyle s_{k} =Aksk1+Bkxk,\displaystyle=A_{k}s_{k-1}+B_{k}x_{k},
(2) hk\displaystyle h_{k} =Cksk+Dkxk.\displaystyle=C_{k}s_{k}+D_{k}x_{k}.

In modern selective SSMs, some of these parameters are conditioned on the current input, allowing the model to selectively propagate or discard information according to the sequence context. This input-dependent selection mechanism enables the model to adapt its effective memory to the content of the sequence.

Stacking several SSM layers produces a causal sequence model that processes the input in a single forward pass and generates a hidden representation hkh_{k} at each position. These token-wise hidden states can then be used by lightweight prediction heads for tasks such as next-token prediction or temporal prediction. This representation-level property is the one exploited in this paper.

2.2. Problem Setting

Let 𝒟\mathcal{D} denote a dataset of timestamped sequences. Each sequence of length TT in 𝒟\mathcal{D} is written as {(xk,tk)}k=0T1\{(x_{k},t_{k})\}_{k=0}^{T-1}, where xkx_{k} is a discrete token and tkt_{k} is its associated timestamp. From successive timestamps, we derive the inter-arrival times {Δtk=tktk1}k=1T1\{\Delta t_{k}=t_{k}-t_{k-1}\}_{k=1}^{T-1}.

Denoting the token history up to step kk by 𝒳k={xi}i=0k\mathcal{X}_{k}=\{x_{i}\}_{i=0}^{k}, our objective is to model the joint distribution of the next token xk+1x_{k+1} and its associated inter-arrival time Δtk+1\Delta t_{k+1}:

(3) pγ(xk+1,Δtk+1𝒳k).p_{\gamma}(x_{k+1},\Delta t_{k+1}\mid\mathcal{X}_{k}).

Using the chain rule, we factor this joint distribution as

(4) pγ(xk+1,Δtk+1𝒳k)=pθ,α(xk+1𝒳k)pθ,ϕ(Δtk+1xk+1,𝒳k),p_{\gamma}(x_{k+1},\Delta t_{k+1}\mid\mathcal{X}_{k})=p_{\theta,\alpha}(x_{k+1}\mid\mathcal{X}_{k})\,p_{\theta,\phi}(\Delta t_{k+1}\mid x_{k+1},\mathcal{X}_{k}),

where γ={θ,α,ϕ}\gamma=\{\theta,\alpha,\phi\} collects the parameters of the shared sequence model, token-prediction head, and temporal-prediction head, respectively. Let VV denote the vocabulary size and DD the hidden-state dimension.

The shared sequence model is a causal autoregressive model parameterized by θ\theta that produces a token-wise hidden representation hkh_{k} from the history 𝒳k\mathcal{X}_{k}. In our main instantiation, we use a State Space Model, although the framework is not tied to this particular architecture. Any causal autoregressive backbone that produces token-wise hidden representations can be used instead; Appendix appendix C illustrates this with an additional Transformer-based instantiation. Formally, the backbone computes

(5) hk=Backboneθ(𝒳k).h_{k}=\mathrm{Backbone}_{\theta}(\mathcal{X}_{k}).

The token-prediction head is a linear map WαtokV×DW^{\mathrm{tok}}_{\alpha}\in\mathbb{R}^{V\times D} parameterized by α\alpha, and it models the next-token distribution as

(6) pθ,α(xk+1𝒳k)=softmax(Wαtokhk).p_{\theta,\alpha}(x_{k+1}\mid\mathcal{X}_{k})=\mathrm{softmax}\left(W^{\mathrm{tok}}_{\alpha}h_{k}\right).

The temporal-prediction head is a function fϕtime(;rk+1)f^{\mathrm{time}}_{\phi}(\cdot;r_{k+1}) parameterized by ϕ\phi and conditioned on a transition representation rk+1r_{k+1}. After xk+1x_{k+1} is processed, the sequence model produces hk+1h_{k+1} according to Eq. 5. Because Δtk+1\Delta t_{k+1} describes the transition from position kk to position k+1k+1, its prediction is based on a representation rk+1r_{k+1} derived from both hkh_{k} and hk+1h_{k+1}. The temporal-prediction head models the second factor as

(7) pθ,ϕ(Δtk+1xk+1,𝒳k)=fϕtime(Δtk+1;rk+1).p_{\theta,\phi}(\Delta t_{k+1}\mid x_{k+1},\mathcal{X}_{k})=f^{\mathrm{time}}_{\phi}\left(\Delta t_{k+1};r_{k+1}\right).

The construction of rk+1r_{k+1} is introduced in section 3.

3. ChronoSSM

Having defined the modeling setting and notation, we now describe the design choices that instantiate ChronoSSM. We first introduce the temporal representation rk+1r_{k+1} supplied to the temporal-prediction head in Eq. 7. We then define the training objective and compare two optimization schedules that differ in whether temporal supervision is allowed to update the shared backbone.

3.1. Model Design

An inter-arrival time measures the elapsed time between two consecutive tokens, rather than a property of either token considered in isolation. We therefore represent it using the change between their corresponding hidden states:

(8) rk+1=Δhk+1=hk+1hk.r_{k+1}=\Delta h_{k+1}=h_{k+1}-h_{k}.

The temporal target and the representation used to predict it are thus both defined as differences between consecutive positions:

(9) Δtk+1=tk+1tktemporal differenceΔhk+1=hk+1hkhidden-state difference.\underbrace{\Delta t_{k+1}=t_{k+1}-t_{k}}_{\text{temporal difference}}\qquad\longleftrightarrow\qquad\underbrace{\Delta h_{k+1}=h_{k+1}-h_{k}}_{\text{hidden-state difference}}.

This choice for rk+1r_{k+1} is a modeling decision rather than a structural requirement of the framework. An alternative temporal representation rk+1=[hk;hk+1]r^{\prime}_{k+1}=[h_{k};h_{k+1}] is considered in Appendix appendix F.

3.2. Training Objective

Under the factorization in Eq. 4, maximum-likelihood training decomposes the negative log-likelihood of each transition into a token-prediction term and a temporal-prediction term:

k\displaystyle\ell_{k} =logpγ(xk+1,Δtk+1𝒳k)\displaystyle=-\log p_{\gamma}(x_{k+1},\Delta t_{k+1}\mid\mathcal{X}_{k})
(10) =logpθ,α(xk+1𝒳k)ktok+logpθ,ϕ(Δtk+1xk+1,𝒳k)ktime.\displaystyle=\underbrace{-\log p_{\theta,\alpha}(x_{k+1}\mid\mathcal{X}_{k})}_{\ell_{k}^{\mathrm{tok}}}+\underbrace{-\log p_{\theta,\phi}(\Delta t_{k+1}\mid x_{k+1},\mathcal{X}_{k})}_{\ell_{k}^{\mathrm{time}}}.

We now instantiate these two terms using the token-prediction and temporal-prediction heads introduced in section 2.2.

For token prediction, the factor pθ,α(xk+1𝒳k)p_{\theta,\alpha}(x_{k+1}\mid\mathcal{X}_{k}) is categorical, so the sequence-level token loss is

(11) Ltok=k=0T2ktok=k=0T2CE(Wαtokhk,xk+1),L_{\mathrm{tok}}=\sum_{k=0}^{T-2}\ell_{k}^{\mathrm{tok}}=\sum_{k=0}^{T-2}\mathrm{CE}\left(W^{\mathrm{tok}}_{\alpha}h_{k},x_{k+1}\right),

where CE\mathrm{CE} denotes categorical cross-entropy, which is appropriate because {xk}k=0T1\{x_{k}\}_{k=0}^{T-1} is a sequence of discrete tokens (Goodfellow et al., 2016) (see section 2.2).

For temporal prediction, the factor pθ,ϕ(Δtk+1xk+1,𝒳k)p_{\theta,\phi}(\Delta t_{k+1}\mid x_{k+1},\mathcal{X}_{k}) is defined by a conditional density over the continuous-valued target Δtk+1\Delta t_{k+1}. This definition is well posed provided that the chosen conditional density has support on the observed inter-arrival targets, including zero when zero inter-arrival times are present. We therefore define the sequence-level temporal loss as the negative log-likelihood of the observed inter-arrival times under that density:

(12) Ltime=k=0T2ktime=k=0T2logfϕtime(Δtk+1;Δhk+1),L_{\mathrm{time}}=\sum_{k=0}^{T-2}\ell_{k}^{\mathrm{time}}=\sum_{k=0}^{T-2}-\log f^{\mathrm{time}}_{\phi}\left(\Delta t_{k+1};\Delta h_{k+1}\right),

where Δhk+1\Delta h_{k+1} is the hidden-state transition defined in Eq. 8. The concrete form of fϕtimef^{\mathrm{time}}_{\phi} is specified for each experimental regime in section 4.

Summing Eq. 10 over the sequence gives the joint negative log-likelihood

(13) NLL=Ltok+Ltime.\mathcal{L}_{\mathrm{NLL}}=L_{\mathrm{tok}}+L_{\mathrm{time}}.

Minimizing this objective corresponds to maximum-likelihood training of the factorized distribution over tokens and inter-arrival times.

In practice, the token and temporal losses may have different numerical scales. We therefore optimize the weighted objective

(14) =Ltok+λτLtime,\mathcal{L}=L_{\mathrm{tok}}+\lambda_{\tau}L_{\mathrm{time}},

where λτ0\lambda_{\tau}\geq 0 controls the relative contribution of temporal prediction.

3.3. Training Schedules

We consider two approaches for optimizing the parameter set γ={θ,α,ϕ}\gamma=\{\theta,\alpha,\phi\}. Both regimes use the same shared sequence backbone model, token-prediction head, temporal-prediction head, and loss components. They differ only in whether the temporal loss is allowed to update the shared backbone. The two regimes are illustrated in Figure 1: Figure 1(a) shows the Joint setup, whereas Figure 1(b) shows the Two-Stage schedule. The corresponding optimization procedures are summarized in Algorithms 1 and 2.

Refer to caption
(a) Joint training updates the shared SSM backbone and both prediction heads using the token and temporal losses.
Refer to caption
(b) Two-Stage training first optimizes the shared SSM backbone and token-prediction head, then trains the temporal-prediction head in a separate second stage.
Figure 1. Overview of the Joint and Two-Stage training regimes.
Algorithm 1 Joint training
1:Epochs EE; backbone Backboneθ\mathrm{Backbone}_{\theta}; token head WαtokW^{\mathrm{tok}}_{\alpha}; temporal head fϕtimef^{\mathrm{time}}_{\phi}; dataset 𝒟\mathcal{D} of timestamped sequences; sequence length TT; temporal weight λτ\lambda_{\tau}
2:for epoch =1,,E=1,\ldots,E do
3:  for each {(xk,tk)}k=0T1𝒟\{(x_{k},t_{k})\}_{k=0}^{T-1}\in\mathcal{D} do
4:   (h0,,hT1)Backboneθ(x0,,xT1)(h_{0},\ldots,h_{T-1})\leftarrow\mathrm{Backbone}_{\theta}(x_{0},\ldots,x_{T-1})
5:   Compute LtokL_{\mathrm{tok}} using Eq. 11
6:   Compute LtimeL_{\mathrm{time}} using Eq. 12
7:   Ltok+λτLtime\mathcal{L}\leftarrow L_{\mathrm{tok}}+\lambda_{\tau}L_{\mathrm{time}}
8:   Update α\alpha using Ltok\nabla L_{\mathrm{tok}}
9:   Update ϕ\phi using Ltime\nabla L_{\mathrm{time}}
10:   Update θ\theta using \nabla\mathcal{L}
11:  end for
12:end for
Algorithm 2 Two-Stage training
1:Token-training epochs EtokE_{\mathrm{tok}}; temporal-training epochs EtimeE_{\mathrm{time}}; backbone Backboneθ\mathrm{Backbone}_{\theta}; token head WαtokW^{\mathrm{tok}}_{\alpha}; temporal head fϕtimef^{\mathrm{time}}_{\phi}; dataset 𝒟\mathcal{D} of timestamped sequences; sequence length TT
2:for epoch =1,,Etok=1,\ldots,E_{\mathrm{tok}} do
3:  for each {(xk,tk)}k=0T1𝒟\{(x_{k},t_{k})\}_{k=0}^{T-1}\in\mathcal{D} do
4:   (h0,,hT1)Backboneθ(x0,,xT1)(h_{0},\ldots,h_{T-1})\leftarrow\mathrm{Backbone}_{\theta}(x_{0},\ldots,x_{T-1})
5:   Compute LtokL_{\mathrm{tok}} using Eq. 11
6:   Update θ\theta and α\alpha using Ltok\nabla L_{\mathrm{tok}}
7:  end for
8:end for
9:Freeze θ\theta and α\alpha
10:for epoch =1,,Etime=1,\ldots,E_{\mathrm{time}} do
11:  for each {(xk,tk)}k=0T1𝒟\{(x_{k},t_{k})\}_{k=0}^{T-1}\in\mathcal{D} do
12:   (h0,,hT1)Backboneθ(x0,,xT1)(h_{0},\ldots,h_{T-1})\leftarrow\mathrm{Backbone}_{\theta}(x_{0},\ldots,x_{T-1})
13:   Compute LtimeL_{\mathrm{time}} using Eq. 12
14:   Update ϕ\phi using Ltime\nabla L_{\mathrm{time}}
15:  end for
16:end for

Joint Training. Under Joint training, the backbone and both prediction heads are optimized simultaneously using the objective in Eq. 14. Gradients from both LtokL_{\mathrm{tok}} and LtimeL_{\mathrm{time}} update the backbone parameters θ\theta, while the token-prediction and temporal-prediction heads are updated by LtokL_{\mathrm{tok}} and LtimeL_{\mathrm{time}}, respectively.

In particular, the temporal loss backpropagates through Δhk+1=hk+1hk\Delta h_{k+1}=h_{k+1}-h_{k}, encouraging changes between consecutive hidden states to become informative about the corresponding inter-arrival times. Because the token-prediction head uses hidden states produced by the same backbone, temporal supervision can also affect the representations used for next-token prediction.

Two-Stage Training. Under Two-Stage training, token and temporal learning are separated into two phases. In the first phase, the backbone and token-prediction head are optimized using LtokL_{\mathrm{tok}} alone. In the second phase, the temporal-prediction head is trained using LtimeL_{\mathrm{time}} on the hidden-state transitions produced by the token-trained sequence model.

Because the backbone is not updated during the second phase, temporal gradients cannot modify its representations. The temporal-prediction head can therefore exploit only the temporal information already present in the token-trained hidden-state transitions. This regime provides a controlled baseline for isolating the effect of allowing temporal supervision to shape the backbone.

3.4. Inference

Generation proceeds autoregressively. Given the token history 𝒳k\mathcal{X}_{k}, the token head first predicts the next token xk+1x_{k+1}. After this token is processed by the backbone, the model obtains hk+1h_{k+1} and computes Δhk+1\Delta h_{k+1}. The temporal head then predicts the associated inter-arrival time Δt^k+1\widehat{\Delta t}_{k+1} from Δhk+1\Delta h_{k+1}, and the timestamp is updated as tk+1=tk+Δt^k+1t_{k+1}=t_{k}+\widehat{\Delta t}_{k+1}.

The token-decoding strategy and the point estimate used for temporal prediction are specified in section 4.

4. Experimental Setup

Our experimental setup is designed to isolate the effect of allowing temporal supervision to update the shared backbone. Our primary evaluation therefore compares Joint and Two-Stage training, which use the same model components, data, temporal objective, and generation procedure within each domain, but differ in whether the temporal loss updates the shared backbone. This controlled comparison lets us determine whether this choice makes inter-arrival information more recoverable from the learned representations (RQ1 in section 5) and whether any such improvement preserves token-generation quality (RQ2 in section 6).

We conduct this controlled comparison on four domains exhibiting distinct sequence structures, vocabularies, timestamp densities, and temporal regimes: business-process traces, clinical event sequences, network traffic, and temporal knowledge graphs. Together, these four domains provide complementary tests of RQ1 and RQ2 across dense and partial timestamp coverage, short and long sequences, and substantially different temporal distributions. Appendix appendix A provides a detailed comparison of the structural and temporal properties of the four main evaluation domains, and Appendix appendix B reports additional experiments on musical event sequences.

4.1. Experimental Instantiation

Unless stated otherwise, all experiments in the main paper instantiate ChronoSSM with a Mamba2 backbone (Dao and Gu, 2024). To assess the robustness of the controlled comparison to the choice of causal autoregressive backbone, and to illustrate that the framework can be instantiated beyond SSMs, Appendix appendix C repeats the comparison with a GPT-2 backbone. The temporal-head architecture is selected separately for each domain to account for differences in sequence structure and temporal distribution.

Complete domain-specific preprocessing settings, model architectures, temporal-head configurations, loss weights, and training hyperparameters are reported in Appendix appendix H. Appendix appendix G reports the corresponding training-time and peak-memory overhead. Appendix appendix E reports an auxiliary-loss-weight sensitivity study for network traffic and temporal knowledge graph.

4.2. Densely Timestamped Datasets

In this subsection, each sequence in 𝒟\mathcal{D} follows the canonical formulation introduced in section 2.2: every token xkx_{k} is associated with an observed timestamp tkt_{k}, so inter-arrival times are defined for every consecutive pair of events.

Business-process traces. BPI Challenge 2018 (van Dongen and Borchert, 2018; Mannhardt et al., 2018) (BPI2018) is a business-process event log in which each case is represented as a sequence of timestamped activities. Each complete case forms one process trace. For every event, the activity label defines the token xkx_{k}, while its occurrence time defines the associated timestamp tkt_{k}.

Events are ordered chronologically within each trace. When multiple activities share the same timestamp, they are retained as separate tokens and therefore produce valid zero-valued inter-arrival targets. The original event log also contains resource identifiers, lifecycle transitions, application metadata, permit information, and other event- and case-level attributes, but we discard these auxiliary attributes and retain only the ordered activity labels and their timestamps to keep the modeling simple.

Clinical event sequences. MIMIC-IV (Johnson et al., 2023) is a large-scale electronic health record dataset containing clinical observations collected during hospital and intensive-care stays. We use the chartevents table, which records timestamped bedside observations such as vital signs, ventilator settings, nursing assessments, and other charted clinical measurements. The event defines the token xkx_{k}, and the recording time defines the timestamp tkt_{k}.

Events are ordered chronologically within each stay. When multiple observations share the same timestamp, they are retained as separate tokens, yielding valid zero-valued inter-arrival times, as in BPI2018. We discard the remaining clinical and administrative attributes and retain only the ordered event identities and their timestamps.

Log-transformed temporal targets. Although the temporal regimes differ across the two dense domains, both datasets exhibit highly heterogeneous inter-arrival times: BPI2018 contains very long delays, whereas MIMIC-IV is bursty and strongly zero-inflated, as summarized in Appendix appendix A. We therefore predict a log-transformed auxiliary target in both settings, preserving the monotone ordering of inter-arrival times while compressing large gaps so that they do not dominate the temporal loss and short gaps remain well resolved.

Because both datasets contain simultaneous events, the temporal prediction mechanism must accommodate observed inter-arrival times that are exactly zero. In particular, a plain log(Δtk)\log(\Delta t_{k}) would be undefined when Δtk=0\Delta t_{k}=0. We therefore define

(15) zk=log(1+Δtks),z_{k}=\log\left(1+\frac{\Delta t_{k}}{s}\right),

where ss is a dataset-specific time scale. This transformed quantity zkz_{k} defines the auxiliary temporal target used for supervision. The temporal head produces a raw scalar output, which is mapped through a softplus nonlinearity to obtain a non-negative inter-arrival prediction Δt^k\widehat{\Delta t}_{k}. This prediction is then transformed in the same way:

(16) z^k=log(1+Δt^ks).\widehat{z}_{k}=\log\left(1+\frac{\widehat{\Delta t}_{k}}{s}\right).

We instantiate the temporal factor as the fixed-variance log-normal density

(17) fϕtime(Δtk;Δhk)=1(s+Δtk)2πσ2exp((zkz^k)22σ2),f^{\mathrm{time}}_{\phi}\left(\Delta t_{k};\Delta h_{k}\right)=\frac{1}{(s+\Delta t_{k})\sqrt{2\pi\sigma^{2}}}\exp\left(-\frac{(z_{k}-\widehat{z}_{k})^{2}}{2\sigma^{2}}\right),

where σ2\sigma^{2} is fixed. Its negative log-likelihood is equivalent, up to terms independent of the model parameters, to squared error between z^k\widehat{z}_{k} and zkz_{k}. This is a modeling choice rather than a requirement of the framework. Appendix appendix B reports an auxiliary GiantMIDI experiment that instead applies squared-error regression to scaled raw inter-arrival times, testing whether the results depend on the logarithmic target transformation.

4.3. Partially Timestamped Datasets

Many temporally structured sequences do not provide a timestamp for every token but only for selected structural boundaries. These settings are therefore important for evaluating whether temporal supervision can still shape useful representations when it is available only sparsely within the sequence.

In this subsection, we consider domains in which timestamps are attached only to selected boundary tokens rather than to every token in the sequence. Let time\mathcal{I}_{\mathrm{time}} denote the set of positions carrying valid temporal targets. For each ktimek\in\mathcal{I}_{\mathrm{time}}, let kk^{-} denote the preceding position in time\mathcal{I}_{\mathrm{time}}. The temporal target and its corresponding hidden-state representation are then defined as

(18) Δtk=tktk,Δhk=hkhk.\Delta t_{k}=t_{k}-t_{k^{-}},\qquad\Delta h_{k}=h_{k}-h_{k^{-}}.

The temporal loss is evaluated only for ktimek\in\mathcal{I}_{\mathrm{time}}. Tokens outside time\mathcal{I}_{\mathrm{time}} continue to contribute to the token-generation objective but do not contribute directly to the temporal objective. This defines a different setting from the canonical formulation introduced in section 2.2.

Network traffic. Network traffic consists of timestamped packets exchanged between hosts and recorded in packet-capture files. We use captures of video-streaming traffic (Bronzino et al., 2019), following the preprocessing procedure of Chu et al. (Chu et al., 2026). Packet contents are serialized as sequences of byte tokens, with a dedicated <|pkt|> token delimiting successive packets. Timestamps are attached only to these <|pkt|> boundary tokens, so time\mathcal{I}_{\mathrm{time}} contains the packet-boundary positions.

Temporal knowledge graphs. Temporal knowledge graphs represent evolving relational information as timestamped facts (h,r,o,τ)(h,r,o,\tau), where hh and oo denote entities, rr denotes a relation, and τ\tau denotes the fact timestamp. We use the GDELT temporal knowledge graph (Jin et al., 2020), which contains world events extracted from news media and organized chronologically.

Facts are mapped to a fixed vocabulary of entity and relation identifiers and represented as structured token blocks of the form <|STM|>, h, r, o. Consecutive facts are grouped into fixed-length training sequences. The timestamp of each fact is attached only to its <|STM|> marker, so time\mathcal{I}_{\mathrm{time}} contains the <|STM|> positions.

Log-transformed temporal targets. To keep the temporal objective comparable across all domains, we apply the same target scaling, logarithmic transformation, softplus-constrained prediction, and squared-error loss introduced in section 4.2. For network traffic only, packet inter-arrival times are clipped at the 99th percentile before scaling. This reduces the influence of rare extreme delays on the dataset-specific scaling and training stability, beyond the compression already provided by the logarithmic transformation.

4.4. Generation Settings

Token decoding is domain-specific: BPI2018, MIMIC-IV, and dynamic knowledge graphs use greedy decoding, whereas network traffic uses stochastic sampling, following Chu et al. (Chu et al., 2026). Complete decoding parameters are reported in Appendix appendix H. For temporal prediction, the raw output of the temporal head is passed through a softplus nonlinearity to obtain the non-negative point estimate Δt^k\widehat{\Delta t}_{k}, which is added to the preceding generated timestamp.

4.5. External Reference Baselines

For additional descriptive context, Appendix appendix I reports one retrained domain-adapted baseline per dataset, including its architecture, probing adaptation, results, and interpretation. These external models are not used to answer RQ1 or RQ2, because they differ from ChronoSSM in architecture, objective, temporal representation, and generation procedure.

5. Temporal Recoverability

This section addresses RQ1 (Temporal Recoverability): whether Joint training makes inter-arrival information more recoverable from the sequence-backbone representations than Two-Stage training. To answer this question, we evaluate after training the same representation that is supplied to the temporal head. The backbone is frozen, and temporal information is extracted either with a linear probe or through a non-parametric analysis of representation geometry. No probe gradients are propagated into the backbone, so the resulting measurements reflect information already present in the learned representations.

5.1. Recoverability Metrics

In order to respond to RQ1, we define temporal recoverability as the extent to which the temporal target associated with an event transition can be extracted from frozen backbone representations using a simple readout or reflected in their geometry. For each valid temporal transition, we evaluate the representation supplied to the temporal head and the transformed inter-arrival target used during training.

Linear timing probe. The first recoverability metric consists of training a ridge-regression probe to predict the temporal target zkz_{k} (see Eq. 15) from the corresponding frozen temporal representation rkr_{k} (see Eq. 8):

(19) rkzk.r_{k}\longrightarrow z_{k}.

Although this may resemble the second stage of Two-Stage training, the two procedures serve different purposes. The Two-Stage temporal head is part of the model itself and is optimized for downstream temporal prediction, whereas the probe is a post hoc diagnostic trained only after model training has finished. It uses a simple ridge-regression readout, does not reuse the trained temporal head, and is introduced solely to measure how easily temporal information can be extracted from the frozen representation.

We report mean absolute error (MAE) and the coefficient of determination (R2R^{2}). A lower MAE indicates that the temporal target can be reconstructed more accurately from the representation, while a higher R2R^{2} indicates that the probe explains a larger fraction of its variability. Lower MAE and higher R2R^{2} therefore indicate stronger temporal recoverability.

Temporal Cohesion Score. The second recoverability metric evaluates whether transitions associated with similar temporal targets occupy nearby regions of representation space. For each temporal representation rkr_{k}, we identify its KK nearest neighbors under cosine similarity and compute the mean absolute difference between their associated temporal targets:

(20) dnn=1NKk=1Nj𝒩K(k)|zkzj|,d_{\mathrm{nn}}=\frac{1}{NK}\sum_{k=1}^{N}\sum_{j\in\mathcal{N}_{K}(k)}|z_{k}-z_{j}|,

where 𝒩K(k)\mathcal{N}_{K}(k) denotes the KK nearest neighbors of rkr_{k}.

We compare this quantity with the mean target difference obtained by assigning KK randomly selected transitions to each rkr_{k}, denoted drandd_{\mathrm{rand}}, and report

(21) TCS=dranddnndrand+ε,\mathrm{TCS}=\frac{d_{\mathrm{rand}}-d_{\mathrm{nn}}}{d_{\mathrm{rand}}+\varepsilon},

where ε\varepsilon prevents division by zero. In all experiments, we set K=5K=5 and use cosine similarity. Sensitivity to the neighborhood size and similarity measure is reported in Appendix appendix J.

A high TCS indicates that transitions with similar inter-arrival times are substantially closer in representation space than expected under random pairing. Temporal information is therefore more strongly reflected in the geometry of the learned representations. Appendix appendix K provides a separate descriptive layer-wise alignment analysis of the same representation geometry across domains.

5.2. Response to RQ1

Table 1 reports transition-level temporal recoverability across the four evaluation domains. In every domain, Joint achieves higher TCS and probe R2R^{2}, together with lower probe MAE, than Two-Stage. Thus, joint training improves both local temporal coherence and the linear accessibility of inter-arrival information, under both dense and partial timestamp supervision.

The diagnostic profile nevertheless differs by domain. On BPI2018, TCS increases only slightly, from 0.7940.794 to 0.8030.803, while the probe improvements are clearer: R2R^{2} increases from 0.4610.461 to 0.6310.631 and MAE decreases from 3.3423.342 to 2.7752.775. This pattern may suggest that joint training makes temporal information more linearly accessible without substantially changing local temporal neighborhoods. MIMIC-IV shows a similar pattern. Network traffic, by contrast, shows large improvements in all three diagnostics, including TCS from 0.1470.147 to 0.6220.622, probe R2R^{2} from 0.1900.190 to 0.3940.394, and MAE from 0.3820.382 to 0.3080.308. The concurrent gains may suggest changes in both local temporal coherence and linear accessibility. For the temporal knowledge graph, the changes are smaller across all three diagnostics than on the other domains: unlike BPI2018 and MIMIC-IV, where the probe metrics improve more clearly than TCS, and network traffic, where all three diagnostics improve substantially, its gains remain modest but consistently favor Joint.

Takeaways. The controlled results provide an affirmative answer to RQ1: compared with Two-Stage, Joint makes inter-arrival information more recoverable from the representations supplied to the temporal head.
Dataset Method TCS \uparrow Probe R2R^{2} \uparrow Probe MAE \downarrow
BPI2018 Joint 0.8030 0.631 2.775
Two-Stage 0.7940 0.461 3.342
MIMIC-IV Joint 0.8620 0.6580 0.5970
Two-Stage 0.8480 0.5880 0.6450
Network traffic Joint 0.6216 0.3943 0.3080
Two-Stage 0.1468 0.1902 0.3824
Temporal KG Joint 0.2027 0.4449 904.14
Two-Stage 0.1722 0.4296 955.69
Table 1. Transition-level temporal recoverability across domains. Boldface identifies the better result within the controlled JointTwo-Stage comparison.

6. Effect on Generation Quality

The previous section provided an affirmative answer to RQ1, showing that Joint training makes temporal information more recoverable from the representations supplied to the temporal head. However, this improvement would be of limited value if it were obtained at the expense of the model’s primary generative capability. We therefore turn to RQ2 and test whether the additional temporal supervision introduced by Joint training systematically degrades generation quality relative to Two-Stage training across the four evaluation domains.

6.1. Preservation Metrics

We evaluate generated samples against held-out data using domain-specific protocols taken from the literature.

Business-process traces. For BPI2018, we evaluate generated activity sequences using Damerau–Levenshtein similarity (DLS), following the suffix-prediction protocol commonly used in predictive process monitoring (Tax et al., 2017). For each evaluated prefix, similarity between the generated and reference suffixes is computed as

1dDL(𝐱^,𝐱)max(|𝐱^|,|𝐱|),1-\frac{d_{\mathrm{DL}}(\hat{\mathbf{x}},\mathbf{x})}{\max(|\hat{\mathbf{x}}|,|\mathbf{x}|)},

where (dDLd_{\mathrm{DL}}) denotes Damerau–Levenshtein distance. We report the mean and median over all evaluated suffix comparisons. Higher values indicate that the generated continuation more closely reproduces the activity ordering of the corresponding reference trace.

Clinical event sequences. For MIMIC-IV, we compare the marginal distribution and coverage of generated clinical event types against held-out sequences. We report Jensen–Shannon divergence and total variation distance between the generated and reference event-token distributions, with lower values indicating closer agreement. We also report recall over the 50 most frequent reference event types, defined as the fraction of these event types that appear at least once in the generated data. Higher recall indicates better coverage of frequent clinical events.

Network traffic. We compare marginal distributions of key packet-header fields between generated and real traffic, following prior work (Jiang et al., 2024; Chu et al., 2026). We report Jensen–Shannon divergence for source and destination IP addresses and TCP ports. Lower divergence indicates that generated packets more faithfully reproduce the distributional characteristics of real network traffic.

Temporal knowledge graphs. We use filtered link prediction following (Jin et al., 2020). Given a query prefix, the model ranks candidate objects while masking facts that appear elsewhere in the dataset. We report mean reciprocal rank, mean rank, and Hits@(1,3,10). Higher mean reciprocal rank and Hits scores, and lower mean rank, indicate that the model better captures the relational structure required to complete a fact.

Dataset Method Content-generation quality
BPI2018 DLS mean \uparrow DLS median \uparrow
Joint 0.487 0.500
Two-Stage 0.487 0.500
MIMIC-IV Token JSD \downarrow Token TV \downarrow Recall@50 \uparrow
Joint 0.314 0.477 0.780
Two-Stage 0.302 0.451 0.780
Network traffic JSD ip.src \downarrow JSD ip.dst \downarrow JSD tcp.src \downarrow JSD tcp.dst \downarrow
Joint 0.0412 0.0311 0.0764 0.1120
Two-Stage 0.0669 0.0516 0.1248 0.2183
Temporal KG MRR \uparrow MR \downarrow Hits@1 \uparrow Hits@3 \uparrow Hits@10 \uparrow
Joint 0.1461 269.06 0.0899 0.1490 0.2527
Two-Stage 0.0576 2155.60 0.0325 0.0557 0.1017
Table 2. Content-generation quality across domains. Boldface identifies the better result within the controlled JointTwo-Stage comparison.

6.2. Response to RQ2

Table 2 reports content-generation quality across the four domains. The controlled comparison provides a negative answer to RQ2: Joint training does not systematically degrade generative performance relative to Two-Stage training. Its effect is nevertheless domain-dependent, but provides no evidence of a systematic degradation in generative performance.

On BPI2018, Joint and Two-Stage obtain identical mean and median DLS. The additional temporal supervision therefore changes neither the generated activity suffixes nor their similarity to the reference traces in this setting. On MIMIC-IV, Two-Stage achieves slightly lower token JSD and total variation distance, while both regimes obtain the same recall over the 50 most frequent clinical event types. Thus, Joint introduces a small degradation in matching the marginal event-token distribution, but does not reduce coverage of frequent clinical events. Appendix appendix D reports the complementary held-out validation-loss diagnostics: MIMIC-IV is also the only main domain in which Joint has a slightly higher token loss than Two-Stage (1.296 versus 1.293, a difference of about 0.2%). This small teacher-forced loss difference is consistent with the limited distributional change, but does not indicate a broad degradation in generation quality: frequent-event coverage is unchanged.

In contrast, Joint improves content-generation quality in both partially timestamped domains. On network traffic, Joint consistently lowers the JSD of all four evaluated packet-header fields, with particularly large improvements for source and destination TCP ports. On temporal knowledge graphs, Joint also improves every filtered link-prediction metric, yielding substantially higher MRR and Hits@{1,3,10}\{1,3,10\}, together with a markedly lower mean rank. In these domains, temporal supervision not only preserves content generation but appears to improve the structural regularities captured by the token generator. The lower held-out LtokL_{\mathrm{tok}} under Joint in both domains is consistent with these output-level improvements (see Appendix D).

Takeaways. The results provide a negative answer to RQ2. Although Joint does not dominate Two-Stage on every individual metric, there is no evidence that the improved temporal recoverability established in RQ1 is obtained at the cost of a systematic degradation in the model’s primary generative capability.

7. Related Work

The prediction problem formalized in Eq. 4 has long been studied in the point-process literature (Daley and Vere-Jones, 2008). Recent neural approaches have used recurrent architectures (Boyd et al., 2020; Du et al., 2016) and transformers (Panos, 2024) to model continuous-time event sequences. Our focus is on the stricter generative setting, where both event identity and timing must be produced autoregressively. Prior work in this domain typically either decouples timing from content generation or does not model timing at all. For example, some methods assign inter-arrival times with separate components after content generation (Chu et al., 2026; Jiang et al., 2024), whereas others focus on event generation without modeling inter-arrival times within the same autoregressive generator (Yin et al., 2022; Jin et al., 2020). By contrast, ChronoSSM focuses on how the event and temporal factors in Eq. 4 interact when they are learned within the same autoregressive sequence model.

A key distinction is that, even when prior work models event identity and timing jointly within a common model (Boyd et al., 2020; Du et al., 2016; Panos, 2024), it does not study how the temporal term pθ,ϕ(Δtk+1xk+1,𝒳k)p_{\theta,\phi}(\Delta t_{k+1}\mid x_{k+1},\mathcal{X}_{k}) should interact with the event term pθ,α(xk+1𝒳k)p_{\theta,\alpha}(x_{k+1}\mid\mathcal{X}_{k}) from a representation-learning perspective when both are learned within the same model. This is the specific question studied in this paper.

8. Discussion and Future Work

We introduced ChronoSSM, an autoregressive model that jointly predicts tokens and inter-event times from a shared backbone. Across four temporally structured domains, Joint training yields representations from which temporal information is more easily recoverable (RQ1). At the same time, it does not systematically degrade downstream generation quality relative to Two-Stage training (RQ2): generation quality is unchanged on BPI2018, modestly reduced on selected MIMIC-IV distributional metrics, and improved on network traffic and temporal knowledge graphs. These results indicate that allowing timing gradients to shape the shared backbone can improve temporal recoverability without imposing a systematic cost on generative performance.

8.1. Linking Temporal Recoverability and Generation Quality

The relationship between temporal recoverability and content-generation quality is domain-dependent. On BPI2018, improved temporal recoverability is accompanied by unchanged activity-sequence quality. On MIMIC-IV, it coexists with a modest degradation in marginal event-token distribution metrics, but no reduction in frequent-event coverage. On network traffic and temporal knowledge graphs, Joint training is associated with better evaluated content-generation metrics alongside improved temporal recoverability. These results indicate that stronger temporal organization does not necessarily impose a uniform temporal–semantic trade-off. Instead, its effect depends on the domain structure, the density of temporal supervision, and the content properties captured by the evaluation protocol.

Validation loss analysis: In addition to the analysis described above, we also carry out a direct check of the effectiveness of the temporal head in predicting inter-arrival times, given the true difference in token representations (see Eq. 12). We compute the temporal loss on the held-out validation data for each dataset (which has the true inter-arrival times), and report it in Appendix appendix D. We observe that the timing loss for most cases, is lower using the Joint method. However, this is a only a coarse measurement how well the time head has learned the underlying distribution of temporal data. A more careful check would require multiple, long generation sequences, appropriately calibrated against the training data, after which the temporal distributions would be compared for real and generated data. As we note in section 8.3, a rigorous evaluation pipeline for this would be an interesting direction for future work.

8.2. Towards a Mechanistic Understanding

Appendix appendix K compares the layer-wise representations learned by the token-generation model with and without explicit temporal supervision. We use Centered Kernel Alignment (CKA), Centered Kernel Nearest Neighbor Alignment (CKNNA), and Mutual kk-Nearest Neighbor (M-KNN). Across domains, temporal supervision changes the learned representations, but the form of this change varies: in some cases it affects both global and local geometry, whereas in others it is primarily local. Changes are also generally less pronounced in earlier layers, which may reflect their stronger focus on the input structure. The patterns nevertheless differ across the four domains, so they do not yet provide a single mechanistic account of how temporal supervision reshapes representation learning in SSMs.

8.3. Future Work

Several questions remain about the conditions under which temporal supervision is beneficial. Building on the sensitivity analyses in Appendix appendix E, future work should test more systematically how the gains from Joint training depend on temporal-supervision strength across all domains, temporal-head capacity, and the structure of the target domain. This would clarify the conditions under which temporal gradients beneficially reshape the backbone.

The practical value of improved temporal recoverability also warrants direct evaluation. Future work should test whether it translates into better performance on downstream tasks that explicitly depend on temporal structure, such as anomaly detection, forecasting, or temporal retrieval. This would help establish whether the representation-level gains observed here are not only diagnostic but also practically useful across temporally structured domains.

Finally, future work should assess the distributional fidelity of timestamps produced during free autoregressive generation, testing whether the representation-level gains translate into faithful temporal synthesis beyond the content-generation metrics considered in this study. For RQ2, we prioritized domain-specific generation protocols established in the respective application literatures, allowing a controlled comparison of the two training regimes using metrics with existing task-specific meaning. These protocols primarily assess event content, however. Developing standardized evaluation procedures for jointly generated event content and timestamps is therefore an important next step, particularly because existing generative approaches often decouple temporal prediction from content generation (section 7).

References

  • A. Boyd, R. Bamler, S. Mandt, and P. Smyth (2020) User-dependent neural sequence models for continuous-time event data. Advances in Neural Information Processing Systems 33, pp. 21488–21499. Cited by: §7, §7.
  • F. Bronzino, P. Schmitt, S. Ayoubi, G. Martins, R. Teixeira, and N. Feamster (2019) Inferring streaming video quality from encrypted traffic: practical models and deployment experience. Proc. ACM Meas. Anal. Comput. Syst. 3 (3). External Links: Link, Document Cited by: §1, §1, §4.3.
  • A. Chu, X. Jiang, S. Liu, A. Bhagoji, F. Bronzino, P. Schmitt, and N. Feamster (2026) NetSSM: multi-flow and state-aware network trace generation using state-space models. Proc. ACM Netw. 4 (CoNEXT1). External Links: Link, Document Cited by: §I.1, Table 12, §1, §1, §4.3, §4.4, §6.1, §7.
  • J. Cüppers, A. Schoen, G. Blanc, and P. Gimenez (2024) FlowChronicle: synthetic network flow generation through pattern set mining. Proc. ACM Netw. 2 (CoNEXT4). External Links: Link, Document Cited by: §1.
  • D. J. Daley and D. Vere-Jones (2008) An introduction to the theory of point processes: volume ii: general theory and structure. Springer. Cited by: §7.
  • T. Dao and A. Gu (2024) Transformers are ssms: generalized models and efficient algorithms through structured state space duality. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. Cited by: §4.1.
  • N. Du, H. Dai, R. Trivedi, U. Upadhyay, M. Gomez-Rodriguez, and L. Song (2016) Recurrent marked temporal point processes: embedding event history to vector. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pp. 1555–1564. Cited by: §7, §7.
  • A. Fichtl, J. Bohn, J. Kelber, E. Mosca, and G. Groh (2025) The end of transformers? on challenging attention and the rise of sub-quadratic architectures. ArXiv abs/2510.05364. External Links: Link Cited by: §2.1.
  • I. Goodfellow, Y. Bengio, and A. Courville (2016) Deep learning. MIT Press. Cited by: §3.2.
  • A. Gretton, K. Fukumizu, C. Teo, L. Song, B. Schölkopf, and A. Smola (2007) A kernel statistical test of independence. In Advances in Neural Information Processing Systems, J. Platt, D. Koller, Y. Singer, and S. Roweis (Eds.), Vol. 20, pp. . External Links: Link Cited by: §K.1.
  • A. Gu, K. Goel, and C. Ré (2022) Efficiently modeling long sequences with structured state spaces. External Links: 2111.00396, Link Cited by: §2.1, §2.1.
  • C. Hawthorne, A. Stasyuk, A. Roberts, I. Simon, C. A. Huang, S. Dieleman, E. Elsen, J. Engel, and D. Eck (2019) Enabling factorized piano music modeling and generation with the MAESTRO dataset. In International Conference on Learning Representations, External Links: Link Cited by: Appendix B, §I.1, §1.
  • C. A. Huang, A. Vaswani, J. Uszkoreit, N. Shazeer, I. Simon, C. Hawthorne, A. M. Dai, M. D. Hoffman, M. Dinculescu, and D. Eck (2019) Music transformer: generating music with long-term structure. In International Conference on Learning Representations, External Links: Link Cited by: Appendix B, §I.1, Table 12, §1.
  • M. Huh, B. Cheung, T. Wang, and P. Isola (2024) Position: the platonic representation hypothesis. In Proceedings of the 41st International Conference on Machine Learning, R. Salakhutdinov, Z. Kolter, K. Heller, A. Weller, N. Oliver, J. Scarlett, and F. Berkenkamp (Eds.), Proceedings of Machine Learning Research, Vol. 235, pp. 20617–20642. External Links: Link Cited by: §K.1.
  • X. Jiang, S. Liu, A. Gember-Jacobson, A. N. Bhagoji, P. Schmitt, F. Bronzino, and N. Feamster (2024) Netdiffusion: network data augmentation through protocol-constrained traffic generation. Proceedings of the ACM on Measurement and Analysis of Computing Systems 8 (1), pp. 1–32. Cited by: §1, §6.1, §7.
  • W. Jin, M. Qu, X. Jin, and X. Ren (2020) Recurrent event network: autoregressive structure inferenceover temporal knowledge graphs. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), B. Webber, T. Cohn, Y. He, and Y. Liu (Eds.), Online, pp. 6669–6683. External Links: Link, Document Cited by: §I.1, Table 12, §1, §1, §4.3, §6.1, §7.
  • A. E. W. Johnson, L. Bulgarelli, T. J. Pollard, S. Horng, L. A. Celi, and R. G. Mark (2023) MIMIC-IV, a freely accessible electronic health record dataset. Scientific Data 10 (1), pp. 1. External Links: Document Cited by: §1, §1, §4.2.
  • Q. Kong, B. Li, X. Song, Q. Meng, M. Barlow, and S. Dixon (2022) GiantMIDI-Piano: a large-scale MIDI dataset for classical piano music. Transactions of the International Society for Music Information Retrieval 5 (1), pp. 87–102. External Links: Document Cited by: Appendix B, §I.1, §1.
  • S. Kornblith, M. Norouzi, H. Lee, and G. Hinton (2019) Similarity of neural network representations revisited. In Proceedings of the 36th International Conference on Machine Learning, K. Chaudhuri and R. Salakhutdinov (Eds.), Proceedings of Machine Learning Research, Vol. 97, pp. 3519–3529. External Links: Link Cited by: §K.1.
  • M. Lanvin, P. Gimenez, Y. Han, F. Majorczyk, L. Mé, and E. Totel (2023) Towards understanding alerts raised by unsupervised network intrusion detection systems. In Proceedings of the 26th International Symposium on Research in Attacks, Intrusions and Defenses, RAID ’23, New York, NY, USA, pp. 135–150. External Links: ISBN 9798400707650, Link, Document Cited by: §1.
  • I. Loshchilov and F. Hutter (2019) Decoupled weight decay regularization. External Links: 1711.05101, Link Cited by: Appendix H.
  • F. Mannhardt, M. de Leoni, H. A. Reijers, and W. M. P. van der Aalst (2018) The BPI challenge 2018. In Proceedings of the Business Process Intelligence Challenge 2018, Cited by: §1, §4.2.
  • A. Panos (2024) Decomposable transformer point processes. Advances in Neural Information Processing Systems 37, pp. 88932–88955. Cited by: §7, §7.
  • J. Paparrizos, P. Boniol, Q. Liu, and T. Palpanas (2025) Advances in time-series anomaly detection: algorithms, benchmarks, and evaluation measures. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2, KDD ’25, New York, NY, USA, pp. 6151–6161. External Links: ISBN 9798400714542, Link, Document Cited by: §1.
  • N. Tax, I. Verenich, M. La Rosa, and M. Dumas (2017) Predictive business process monitoring with LSTM neural networks. In Advanced Information Systems Engineering, Lecture Notes in Computer Science, Vol. 10253, pp. 477–492. External Links: Document Cited by: §I.1, Table 12, §6.1.
  • B. van Dongen and F. (. Borchert (2018) BPI challenge 2018. Eindhoven University of Technology (en). External Links: Document, Link Cited by: §1, §1, §4.2.
  • Y. Yin, Z. Lin, M. Jin, G. Fanti, and V. Sekar (2022) Practical gan-based synthetic ip header trace generation using netshare. In Proceedings of the ACM SIGCOMM 2022 Conference, pp. 458–472. Cited by: §7.
  • S. Zuo, H. Jiang, Z. Li, T. Zhao, and H. Zha (2020) Transformer hawkes process. In Proceedings of the 37th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 119, pp. 11692–11702. External Links: Link Cited by: §I.1, Table 12.

Appendix Overview

In this appendix, we provide additional experimental details, robustness analyses, and supporting results that complement the main paper. In particular, we (i) compare the experimental domains and document the model configurations, (ii) evaluate the robustness of the results across datasets, backbones, temporal-loss weights, and temporal representations, (iii) report held-out validation-loss diagnostics, (iv) provide comparisons with domain-specific baselines, and (v) further analyze the recoverability metrics and the layer-wise geometry of the learned representations. The appendix is organized as follows:

  1. (1)

    Comparison of the experimental domains (appendix A).

  2. (2)

    Additional experiments on symbolic music (appendix B).

  3. (3)

    Application to an alternative autoregressive backbone (appendix C).

  4. (4)

    Held-out validation-loss diagnostics for the main experiments (appendix D).

  5. (5)

    Sensitivity to the auxiliary temporal-loss weight (appendix E).

  6. (6)

    Comparison of alternative temporal representations (appendix F).

  7. (7)

    Computational overhead (appendix G).

  8. (8)

    Domain-specific model configurations (appendix H).

  9. (9)

    Domain-specific baseline setup and results (appendix I).

  10. (10)

    Sensitivity of TCS to its metric parameters (appendix J).

  11. (11)

    Layer-wise representation analysis (appendix K).

Appendix A Comparison of Experimental Domains

This appendix expands on the four-domain evaluation introduced in section 4.2 and section 4.3, summarizing why the evaluation spans genuinely different settings. The main paper compares two densely timestamped domains (BPI2018 and MIMIC-IV) and two partially timestamped domains (network traffic and temporal knowledge graphs), while the auxiliary GiantMIDI experiment adds a dense musical setting. These datasets differ not only in application domain, but also in the granularity of the atomic event, the meaning and size of the token vocabulary, the scale of the input sequences, the positions at which timestamps are available, and the characteristic shape of the temporal distribution.

Partial Timestamping Dense Timestamping Property Temporal KG Network Traffic BPI2018 MIMIC-IV GiantMIDI (Aux.) Atomic event Knowledge-graph fact Packet Business activity Charted clinical event Piano note Token semantics Entity / relation Byte value Activity label itemid Note pitch Vocabulary 15,626 symbolic tokens 261 byte-level tokens 41 activities 500 retained itemids 84 note tokens Typical sequence length Hundreds to thousands Tens of thousands Tens Thousands Thousands Timestamp availability Fact boundaries only Packet boundaries only Every event Every event Every note Temporal supervision Sparse Sparse Dense Dense Dense Typical inter-arrival scale Seconds Microseconds Minutes to days minutes, with many zeros Milliseconds–seconds Temporal distribution Moderate variability Heavy-tailed Strongly heavy-tailed Zero-inflated and bursty Dense with many zero Simultaneity No No common extremely common very common Outlier handling No clipping 99th-percentile clipping No clipping No clipping No clipping Main temporal challenge Sparse supervision Extreme density Very long delays Bursty zero-inflated timing Simultaneous events

Table 3. High-level comparison of the main evaluation domains and the auxiliary GiantMIDI benchmark.

In Table 3, we see that the datasets differ strongly even within each timestamping regime. Among the dense domains, BPI2018 is comparatively short, template-like, and dominated by long waiting periods between process stages, whereas MIMIC-IV is much longer, more heterogeneous, and strongly zero-inflated because many clinical events share the same chart time. GiantMIDI is also dense, but it operates at a much finer temporal scale, with sub-second note timing and many simultaneous events due to chords. Among the partial domains, temporal knowledge graphs use a large symbolic vocabulary and relatively coarse fact-level timing, whereas network traffic uses a much smaller byte-level vocabulary and extremely dense packet timing.

These differences matter directly for the interpretation of the main results. Because the same qualitative effect of joint token–time training appears across these settings, it is less likely to be an artifact of a single temporal scale, single supervision pattern, or single type of Two-Stage structure.

Appendix B Music Event Experiments

Dataset and event representation. We use GiantMIDI (Kong et al., 2022), a large-scale corpus of classical piano MIDI performances. Each piece is converted into an ordered sequence of note events as in MAESTRO-style symbolic music modeling (Hawthorne et al., 2019): the token xkx_{k} is note pitch and the timestamp tkt_{k} is note onset. We retain only pitch events and onset times and discard note duration, velocity, composer and performer identifiers, YouTube metadata, and transcription metadata. As noted in section 4.2, this auxiliary experiment also differs from the main dense-domain setup in its temporal supervision: instead of the log-gap target, it regresses directly on scaled raw inter-arrival times. More specifically, we define the scaled target

(22) uk=Δtksmusic,u^k=softplus(gϕ(Δhk)),u_{k}=\frac{\Delta t_{k}}{s_{\mathrm{music}}},\qquad\widehat{u}_{k}=\operatorname{softplus}\!\left(g_{\phi}(\Delta h_{k})\right),

and instantiate the temporal factor as

(23) fϕtime(Δtk;Δhk)=1smusic2πσ2exp((uku^k)22σ2),f^{\mathrm{time}}_{\phi}\left(\Delta t_{k};\Delta h_{k}\right)=\frac{1}{s_{\mathrm{music}}\sqrt{2\pi\sigma^{2}}}\exp\left(-\frac{(u_{k}-\widehat{u}_{k})^{2}}{2\sigma^{2}}\right),

with fixed variance σ2\sigma^{2}. Thus, its negative log-likelihood is equivalent, up to parameter-independent terms, to squared error on scaled raw inter-arrival times.

Generation-quality evaluation. We evaluate generated music against held-out MIDI sequences with a window-based overlapping-area (OA) protocol inspired by the evaluation used by (Huang et al., 2019). Each sequence is segmented into fixed 2-second windows, and for every window we compute four simple symbolic music statistics: note density, pitch range, mean pitch, and pitch variance. For each feature, we compare the empirical distribution over generated windows with the corresponding held-out distribution through their overlapping area, where higher values indicate closer agreement. We report both the feature-wise OA scores and their mean.

Dataset Method OA mean \uparrow Mean pitch OA \uparrow Note density OA \uparrow Pitch range OA \uparrow Pitch var. OA \uparrow TCS \uparrow Probe R2R^{2} \uparrow Probe MAE \downarrow GiantMIDI Joint 0.172 0.345 0.230 0.050 0.063 -0.044 0.160 248.006 Two-Stage 0.016 0.000 0.063 0.000 0.000 -0.044 0.142 261.097

Table 4. Auxiliary GiantMIDI results. OA denotes the mean and feature-wise overlapping-area scores computed from 2-second window statistics. Boldface identifies the better result within the controlled JointTwo-Stage comparison.

Response. Table 4 provides the same controlled comparison for the auxiliary musical setting. From the perspective of RQ1, temporal recoverability remains weak for both ChronoSSM variants: TCS is identical (0.044-0.044 for both), but the probe scores still slightly favor Joint (R2=0.160R^{2}=0.160 vs. 0.1420.142, MAE 248.006248.006 vs. 261.097261.097). Thus, even in this dense symbolic-music setting, joint training yields a modest recoverability advantage under the probe-based diagnostics.

From the perspective of RQ2, the controlled comparison shows no degradation of free-generation quality under Joint in this auxiliary setting. At the aggregate level, mean OA increases from 0.0160.016 under Two-Stage training to 0.1720.172 under Joint training. The same pattern holds for all four reported symbolic-music features. In particular, Joint improves mean-pitch OA from 0.0000.000 to 0.3450.345, note-density OA from 0.0630.063 to 0.2300.230, pitch-range OA from 0.0000.000 to 0.0500.050, and pitch-variance OA from 0.0000.000 to 0.0630.063. This mirrors the pattern observed for network traffic and temporal knowledge graphs in section 6, where Joint training is also associated with better evaluated content-generation metrics relative to Two-Stage.

Appendix C Alternative Autoregressive Backbone

As described in section 2.2, ChronoSSM is not tied to a State Space Model: its shared backbone can be any causal autoregressive architecture that produces token-wise hidden states. This appendix therefore illustrates the framework with a GPT-2 backbone. We repeat the controlled JointTwo-Stage comparison while keeping the datasets and evaluation protocols unchanged. Table 5 summarizes the results, so we keep the discussion brief here.

Dataset Metric Joint Two-Stage
Generation BPI2018 Mean DLS \uparrow 0.486951 0.487380
Med. DLS \uparrow 0.500 0.500
MIMIC-IV JSD \downarrow 0.296 0.286
R@50 \uparrow 0.820 0.780
Network JSD(srcIP) \downarrow 0.5882 0.3902
JSD(dstIP) \downarrow 0.6931 0.2342
JSD(sPort) \downarrow 0.6931 0.2408
JSD(dPort) \downarrow 0.6931 0.4259
TKG MRR \uparrow 0.1310 0.1329
MR \downarrow 510.87 534.30
Hits@1 \uparrow 0.0711 0.0723
Hits@3 \uparrow 0.1385 0.1394
Hits@10 \uparrow 0.2439 0.2492
Recoverability BPI2018 TCS \uparrow -0.163 0.282
Probe R2R^{2} \uparrow 0.661 0.603
Probe MAE \downarrow 2.630 2.806
MIMIC-IV TCS \uparrow 0.876 0.857
Probe R2R^{2} \uparrow 0.663 0.607
Probe MAE \downarrow 0.595 0.627
Network TCS \uparrow 0.6465 0.6951
Probe R2R^{2} \uparrow 0.4297 0.3665
Probe MAE \downarrow 0.0967 0.1188
TKG TCS \uparrow 0.5242 0.5156
Probe R2R^{2} \uparrow 0.6057 0.6129
Probe MAE \downarrow 839.75 833.01
Table 5. GPT-2 backbone instantiation under the controlled JointTwo-Stage comparison. Boldface identifies the better result for each metric.

Response. The GPT-2 results are more heterogeneous than the Mamba2 results. On MIMIC-IV and network traffic, the recoverability picture is more favorable to Joint than the generation picture. On MIMIC-IV, Joint clearly improves the timing-recovery metrics, but the generation comparison is mixed: Two-Stage achieves slightly lower JSD, whereas Joint improves recall over the 50 most frequent event types. On network traffic, the tension is sharper: Joint improves the linear-probe recoverability metrics, but Two-Stage is clearly better on all packet-header distribution-matching metrics, and even TCS favors Two-Stage. On BPI2018 and the temporal knowledge graph, GPT-2 does not reproduce the Mamba2 recoverability pattern. On BPI2018, generation quality is effectively unchanged under DLS. TCS favors Two-Stage, whereas both probe diagnostics favor Joint. On the temporal knowledge graph, the two regimes are effectively tied overall, with Joint improving TCS and mean rank but Two-Stage remaining slightly better on the probe metrics and the other link-prediction scores.

Overall, the GPT-2 appendix does not support a uniform story. In some domains, Joint yields more recoverable temporal information only with mixed or weaker generation results; in others, it does not even provide a clear recoverability advantage. The favorable qualitative picture in the main paper is therefore not reproduced consistently with a GPT-2 backbone. One plausible explanation is architectural: Mamba2’s selective recurrent state dynamics may provide a more suitable inductive bias for representing temporal transitions in long event sequences, whereas GPT-2 distributes sequence history through attention-based representations. This interpretation remains tentative. The present comparison does not isolate architectural effects from differences in model capacity, optimization, or backbone-specific hyperparameter choices, so it does not establish that one architecture is intrinsically simpler or better suited to temporal supervision than the other.

Appendix D Held-Out Validation-Loss Diagnostics

Table 6 reports validation losses on the predefined validation partitions used in the four main experiments. We use the dataset-provided training and validation splits; validation samples are excluded from gradient-based training. Both losses are evaluated under observed validation histories and therefore characterize conditional prediction rather than free-running generation. Consequently, the reported losses neither compare generated sequences or timestamps with their real-data distributions nor capture errors that accumulate when the model conditions on its own generated history. They provide complementary optimization diagnostics, but do not by themselves establish high-quality free-running content generation or distributionally faithful timestamp generation.

Dataset Method LtokL_{\mathrm{tok}}\downarrow LtimeL_{\mathrm{time}}\downarrow
BPI2018 Joint 1.066 7.813
Two-Stage 1.107 19.585
MIMIC-IV Joint 1.296 0.348
Two-Stage 1.293 0.446
Network traffic Joint 1.087 0.001370
Two-Stage 1.145 0.001692
Temporal KG Joint 4.718 0.239
Two-Stage 5.868 0.078
Table 6. Held-out validation losses for the four main experiments. Boldface identifies the lower result within each dataset and loss.

For token prediction, Joint obtains lower validation LtokL_{\mathrm{tok}} on BPI2018, network traffic, and temporal knowledge graphs, whereas Two-Stage is marginally lower on MIMIC-IV. This pattern provides complementary context for the content-generation results in section 6, but does not replace the free-generation evaluation.

For temporal point prediction, Joint obtains lower LtimeL_{\mathrm{time}} on BPI2018, MIMIC-IV, and network traffic. On the temporal knowledge graph, however, Two-Stage achieves lower direct temporal-head loss. This result should be interpreted narrowly: LtimeL_{\mathrm{time}} measures the conditional point-prediction error of the particular trained temporal head, rather than a general measure of temporal generation quality.

Appendix E Effect of Auxiliary-Loss Weight

This section studies the effect of the auxiliary temporal-loss weight λτ\lambda_{\mathrm{\tau}} on the two partially timestamped domains: network traffic and temporal knowledge graphs. The goal is to assess how increasing the strength of temporal supervision changes temporal recoverability and downstream generation quality.

λτ\lambda_{\mathrm{\tau}} TCS\uparrow R2R^{2}\uparrow MAE\downarrow MRR\uparrow MR\downarrow H@1\uparrow H@10\uparrow
0.05 0.188 0.265 965.9 0.095 684.6 0.059 0.160
0.10 0.186 0.299 942.0 0.095 498.5 0.054 0.169
0.20 0.195 0.298 922.8 0.119 360.1 0.068 0.212
0.35 0.190 0.297 934.8 0.126 316.9 0.071 0.230
0.50 0.214 0.309 921.8 0.135 274.2 0.079 0.240
0.75 0.203 0.303 928.1 0.149 273.5 0.093 0.254
1.00 0.224 0.312 913.1 0.148 265.6 0.090 0.256
Table 7. Effect of the auxiliary temporal-loss weight λτ\lambda_{\mathrm{\tau}} on temporal recoverability and link prediction for the temporal knowledge graph. Hits@3 is omited for space reasons.

λτ\lambda_{\mathrm{\tau}} TCS\uparrow R2R^{2}\uparrow MAE\downarrow JSD(src)\downarrow JSD(dst)\downarrow JSD(sport)\downarrow JSD(dport)\downarrow 10 0.323 0.385 0.331 0.300 0.182 0.231 0.419 50 0.289 0.294 0.346 0.278 0.168 0.218 0.374 100 0.606 0.377 0.316 0.187 0.112 0.203 0.351 200 0.377 0.288 0.363 0.213 0.127 0.202 0.363 500 0.614 0.330 0.344 0.341 0.216 0.240 0.400

Table 8. Effect of the auxiliary temporal-loss weight λτ\lambda_{\mathrm{\tau}} on recoverability and packet-header distribution matching for network traffic. JSD(src), JSD(dst), JSD(sport), and JSD(dport) denote the source/destination IP and source/destination TCP-port marginals, respectively.

The two domains exhibit different sensitivity profiles. On the temporal knowledge graph, increasing λτ\lambda_{\mathrm{\tau}} produces a fairly consistent improvement in both recoverability and downstream link prediction. Table 7 shows both trends. The strongest setting, λτ=1.00\lambda_{\mathrm{\tau}}=1.00, yields the best TCS, R2R^{2}, MAE, mean rank, and Hits@10, while λτ=0.75\lambda_{\mathrm{\tau}}=0.75 slightly improves MRR and H@1.

On network traffic, the dependence is less monotone, and no single value of λτ\lambda_{\mathrm{\tau}} optimizes all recoverability diagnostics. The highest TCS is obtained at λτ=500\lambda_{\mathrm{\tau}}=500, whereas the highest probe (R2R^{2}) occurs at λτ=10\lambda_{\mathrm{\tau}}=10 and the lowest probe MAE at λτ=100\lambda_{\mathrm{\tau}}=100. Table 8 further shows that λτ=100\lambda_{\mathrm{\tau}}=100 yields the best packet-header distribution-matching metrics. These results therefore do not reveal a simple trade-off between temporal recoverability and generation quality; rather, the different recoverability diagnostics respond differently to the strength of temporal supervision, while an intermediate weight provides the best agreement with the evaluated packet-header marginals.

Rule of Thumb for Selecting the Auxiliary-Loss Weight. These results indicate that there is no universally optimal value of λτ\lambda_{\mathrm{\tau}}. For the main experiments, we chose the auxiliary-loss weight so that the weighted temporal term, λτLtime\lambda_{\mathrm{\tau}}L_{\mathrm{time}}, was approximately of the same order of magnitude as the token-prediction loss LtokL_{\mathrm{tok}} during training. This scale-matching criterion prevents either term from numerically dominating the joint objective in Eq. 14.

Appendix F Alternative Temporal Representations

The default temporal representation rkr_{k} introduced in section 3.1 (Eq. 8) is defined as the difference between the hidden states associated with the two endpoints of a temporally supervised transition. We compare it with the alternative representation rkr^{\prime}_{k}, formed by concatenating the same endpoint states:

(24) rk=Δhk=hkhk1,rk=[hk1;hk].r_{k}=\Delta h_{k}=h_{k}-h_{k-1},\qquad r^{\prime}_{k}=[h_{k-1};h_{k}].

The representation rkr_{k} has dimension dd, whereas rkr^{\prime}_{k} has dimension 2d2d and therefore changes the input projection of the temporal head. We evaluate both choices on one densely timestamped domain (BPI2018) and one partially timestamped domain (network traffic), retaining the same backbone, data splits, temporal-head family, and optimization schedule within each representation.

On network traffic, using rkr^{\prime}_{k} empirically changes the magnitude and optimization behavior of the temporal objective. Stable training therefore requires λτ=50\lambda_{\tau}=50, rather than the value λτ=300\lambda_{\tau}=300 used with rkr_{k}. Consequently, the network experiment should be interpreted as a comparison between two practical temporal-input configurations rather than as a strictly representation-only ablation. The results obtained with rkr^{\prime}_{k} use transition-level recoverability diagnostics.

Dataset Method Temporal recoverability BPI2018 generation Network-traffic generation TCS \uparrow Probe R2R^{2} \uparrow Probe MAE \downarrow DLS mean \uparrow DLS median \uparrow JSD ip.src \downarrow JSD ip.dst \downarrow JSD tcp.src \downarrow JSD tcp.dst \downarrow BPI2018 Joint 0.7924 (0.8030) 0.8753 (0.631) 4,919,732 (2.775) 0.487 (0.487) 0.500 (0.500) Two-Stage 0.8029 (0.7940) 0.8789 (0.461) 4,861,086 (3.342) 0.487 (0.487) 0.500 (0.500) Network traffic Joint 0.2987 (0.6216) 0.0313 (0.3943) 0.00610 (0.3080) 0.6931 (0.0412) 0.6931 (0.0311) 0.3477 (0.0764) 0.4344 (0.1120) Two-Stage 0.2538 (0.1468) 0.0116 (0.1902) 0.00654 (0.3824) 0.6931 (0.0669) 0.6931 (0.0516) 0.3431 (0.1248) 0.3926 (0.2183)

Table 9. Results with concatenation rk=[hk1;hk]r^{\prime}_{k}=[h_{k-1};h_{k}] as the temporal representation. Parenthesized italic values report the results from the main paper for reference. Boldface identifies the better concatenation result within each JointTwo-Stage comparison; “–” marks metrics not applicable to that dataset.

Table 9 shows that the configuration based on rkr^{\prime}_{k} does not reproduce the empirical pattern obtained with the default representation rkr_{k}.

From the perspective of RQ1 (section 5), BPI2018 remains effectively a tie. With rkr^{\prime}_{k}, Two-Stage is numerically better on all three recoverability diagnostics, but the differences are small. Using rkr^{\prime}_{k} therefore removes, rather than meaningfully reverses, the clearer Joint advantage obtained with rkr_{k}. Generation quality is unchanged, with identical mean and median DLS under both regimes.

The network-traffic results show a clearer departure from the default configuration. With rkr^{\prime}_{k}, Joint still outperforms Two-Stage on the recoverability diagnostics, but the separation is substantially smaller, especially for TCS and probe R2R^{2}. The representation rkr^{\prime}_{k} therefore fails to reproduce the strong recoverability advantage observed with rkr_{k}.

From the perspective of RQ2 (section 6), both variants using rkr^{\prime}_{k} also match the packet-header distributions poorly. Source- and destination-IP JSD reach 0.69310.6931 under both regimes, while the TCP-port divergences are substantially higher than with rkr_{k}. Because this degradation occurs for both Joint and Two-Stage, it does not indicate a Joint-specific trade-off, but rather that the tested configuration based on rkr^{\prime}_{k} is poorly suited to network traffic.

Overall, the main empirical pattern is sensitive to the representation supplied to the temporal head. On BPI2018, the representation rkr^{\prime}_{k} does not reproduce the clearer recoverability advantage obtained with rkr_{k}, while generation quality remains near-equivalent. It also does not reproduce the stronger recoverability or generation quality obtained with rkr_{k} on network traffic. Because the network run with rkr^{\prime}_{k} uses a different temporal-loss weight, the experiment supports the practical choice of rkr_{k} without isolating the representation as the sole causal factor.

Appendix G Computational Overhead

We report the computational cost of the Joint and Two-Stage training procedures defined in section 3.3 (Algorithms 1 and 2). All experiments were performed on NVIDIA RTX PRO 6000 Blackwell Max-Q GPUs (96 GB VRAM). The network traffic experiments used two GPUs with a batch size of 32 per GPU (64 total), while the remaining datasets were trained on a single GPU.

Our experiments consider two training strategies. In the proposed Joint training approach, for a single training run of 40 epochs. In Two-Stage training first trains the language model for 40 epochs and then performs an additional 40 epochs of training using only the auxiliary objective, resulting in a total of 80 training epochs.

Table 10 summarizes the training time. For two-stage training, the reported time is separated into the language-model (LM) stage and the auxiliary (Aux) stage.

Dataset Joint (40 ep.) Two-Stage (80 ep.) Peak VRAM Network traffic 58.0 h 68.7 h 51 GB BPI2018 17 min 15 min 3 GB MIMIC-IV 8.3 h 9.3 h 29 GB GDELT 53.3 min 66.7 min 60 GB

Table 10. Total training time and peak GPU memory usage. Joint training optimizes both objectives simultaneously for 40 epochs, whereas Two-Stage training consists of 40 epochs of language-model training followed by 40 epochs of auxiliary training.

The proposed method introduces only a lightweight auxiliary prediction head on top of the language-model backbone. Consequently, the backbone architecture, hidden-state dimension, and sequence length remain unchanged, and the additional computation arises only from evaluating the auxiliary loss during training. Although each epoch of joint training is slightly more expensive than language-model training alone, it eliminates the need for a separate auxiliary optimization stage. As shown in Table 10, this results in comparable or lower end-to-end training time across the evaluated datasets while maintaining a modest memory footprint.

Appendix H Model Configurations

Table 11 records the concrete Mamba2 configurations used in our experiments. Following the training schedules defined in section 3.3 (Algorithms 1 and 2), for optimization, all Joint models are trained for 40 epochs. All Two-Stage models use 40 epochs of token-only training followed by 40 epochs of temporal-head training with the backbone frozen. For the partially timestamped domains section 4.3, the temporal head additionally uses four temporal lags.

Training Hyperparameters and Setup. All models are optimized using AdamW (Loshchilov and Hutter, 2019) with weight decay 0.10.1. We use a base peak learning rate of η=2×104\eta=2\times 10^{-4} (scaled to 4×1044\times 10^{-4} for multi-GPU DDP runs on Network traffic), scheduled with a 1-epoch linear warmup followed by cosine annealing decay down to a floor ratio of 0.10.1. Next-token modeling uses Cross-Entropy loss with label smoothing (ϵsmooth=0.1\epsilon_{\mathrm{smooth}}=0.1), while temporal regression uses Mean Squared Error over log-transformed targets log(1+Δt/s)\log(1+\Delta t/s). Models are trained with a batch size of 6464 for BPI2018, MIMIC-IV, Network traffic (32 per GPU), and GiantMIDI (sequence lengths of 40964096 tokens with 50%50\% window stride, and 256256/128128 for BPI2018), and a batch size of 3232 for GDELT (sequence length 50005000, stride 10241024).

Dataset dmodeld_{\mathrm{model}} Layers Aux head Hidden dim ss λτ\lambda_{\tau} BPI2018 128 4 MLP 256 1.0 0.1 MIMIC-IV 256 8 MLP 768 1.0 0.1 Network traffic 768 24 GRU 768 0.001 300 GDELT 256 8 MLP 768 0.001 1.0 GiantMIDI 192 6 MLP 384 1.0 0.1

Table 11. Domain-specific Mamba2 configurations. The column ss denotes the time scale used in the transformed temporal target, and λτ\lambda_{\tau} denotes the temporal-loss weight in Eq. 14.

Appendix I Domain-Specific Baselines

This appendix provides the full baseline setup, results, and interpretation summarized in section 4.5, kept separate from the controlled JointTwo-Stage comparison in the main text. Here, a baseline denotes a previously proposed domain-specific model that serves as an external reference point for the task. Studying such baselines is useful because it helps contextualize the absolute scale of the reported metrics, shows how our models compare with domain-adapted alternatives from prior work, and clarifies which observations appear specific to ChronoSSM versus common across different modeling choices. In all cases, the baselines are retrained on the same train/validation/test splits as ChronoSSM and evaluated with the same domain-specific metrics. However, they remain descriptive reference points only. Because they differ from ChronoSSM in architecture, objective, temporal representation, and generation procedure, they do not isolate the effect of the training regime and therefore cannot be used to answer RQ1 (section 5) or RQ2 (section 6). The evidence for those two questions comes only from the controlled JointTwo-Stage comparison.

I.1. Baseline Presentation

Table 12 summarizes the baseline family used for each domain, including the event-generation procedure and the temporal mechanism.

Dataset Baseline Event-generation procedure Temporal mechanism
BPI2018 LSTM (Tax et al., 2017) Autoregressive activity generation until end-of-sequence Next-gap prediction from the shared recurrent state
MIMIC-IV THP (Zuo et al., 2020) Autoregressive next-event generation from the event-history context Joint next-gap prediction from the same contextual representation
Network traffic NetSSM + GMM (Chu et al., 2026) Autoregressive byte-sequence generation with packet delimiters Packet inter-arrival times sampled afterward from a 3-component GMM
Temporal KG RE-Net + GMM (Jin et al., 2020) Autoregressive future-fact generation from temporal quadruples Fact-level temporal gaps sampled afterward from a 3-component GMM
GiantMIDI Music Transformer (Huang et al., 2019) Autoregressive note-event generation Timing represented through discrete time_shift tokens
Table 12. Reference baselines used for descriptive comparison across the four main domains and the auxiliary GiantMIDI experiment.

BPI2018. For business-process traces, we use an LSTM baseline inspired by the predictive-process-monitoring model of Tax et al. (Tax et al., 2017), which jointly predicts the next activity and its time gap from a recurrent state. In our experiments, we use a modernized implementation rather than the original legacy training script. The model is trained for 50 epochs with batch size 256.

MIMIC-IV. For MIMIC-IV, we use the Transformer Hawkes Process (THP) (Zuo et al., 2020), a sequence model designed for event streams with explicit temporal dynamics. We train for 20 epochs with batch size 64, model dimension 256, 4 attention heads, and 4 transformer layers. Relative times are scaled in hours during training.

Network traffic. For network traffic, we use NetSSM (Chu et al., 2026) as the content generator and then assign timing with a separately fitted Gaussian mixture model, reflecting a decoupled content/time pipeline. NetSSM is trained on the tokenized packet-sequence representation of the dataset for 10 epochs with batch size 8. Packet timestamps are then assigned using a 3-component GMM fit on training-split inter-arrival times.

GDELT. For temporal knowledge graphs, we use RE-Net (Jin et al., 2020), again combined with a separate Gaussian mixture model for fact-level timing, similar to what we did with NetSSM. We follow the standard RE-Net training schedule, with a pretraining phase followed by full training; both phases use hidden size 200, dropout 0.5, learning rate 10310^{-3}, batch size 1024, and 20 epochs.

GiantMIDI. For the auxiliary GiantMIDI experiment, we use Music Transformer (Huang et al., 2019), a strong symbolic-music baseline in which timing is represented directly through discrete time_shift tokens. It is trained on PerformanceRNN-style event tokens obtained from the MAESTRO-style export of GiantMIDI (Kong et al., 2022; Hawthorne et al., 2019). We use discrete note and time_shift events, fix note duration to 0.10 seconds and velocity to 64 during export for 100 epochs with batch size 2.

Timestamping Dataset Baseline Content-generation quality
Dense BPI2018 DLS mean \uparrow DLS median \uparrow
LSTM 0.535 (0.487) 0.533 (0.500)
MIMIC-IV Token JSD \downarrow Recall@50 \uparrow
THP 0.111 (0.302) 1.000 (0.780)
GiantMIDI OA mean \uparrow Mean pitch OA \uparrow Note density OA \uparrow Pitch range OA \uparrow Pitch var. OA \uparrow
Music Transformer 0.577 (0.172) 0.458 (0.345) 0.270 (0.230) 0.852 (0.050) 0.730 (0.063)
Partial Network traffic JSD ip.src \downarrow JSD ip.dst \downarrow JSD tcp.src \downarrow JSD tcp.dst \downarrow
NetSSM 0.3076 (0.0412) 0.2426 (0.0311) 0.2923 (0.0764) 0.2923 (0.1120)
Temporal KG MRR \uparrow MR \downarrow Hits@1 \uparrow Hits@3 \uparrow Hits@10 \uparrow
RE-Net 0.4136 (0.1461) 144.16 (269.06) 0.3446 (0.0899) 0.4398 (0.1490) 0.5405 (0.2527)
Table 13. Content-generation results for the reference baselines on the four main evaluation domains and the auxiliary GiantMIDI experiment. Parenthesized values report the best ChronoSSM result across Joint and Two-Stage; boldface marks the better of the baseline and ChronoSSM value.

I.2. Baseline Recoverability Protocol

The recoverability analysis requires a small adaptation for the external baselines, because they do not all expose the same temporal representation as ChronoSSM. The controlled JointTwo-Stage comparison always probes the representation supplied to the temporal head. For the baselines, we therefore probe the frozen representation most directly tied to temporal prediction in each model, so that the diagnostic remains as comparable as possible across methods. This is the recurrent state for the LSTM, the event-history representation for THP, the packet-boundary representation for NetSSM, and the fact-history representation for RE-Net. Within each dataset, the baseline probe uses the same target zkz_{k} and the same evaluation protocol as the controlled JointTwo-Stage comparison. The resulting numbers remain descriptive only, since the compared models still differ in architecture and temporal parameterization. Table 14 reports the resulting descriptive recoverability scores.

Timestamping Dataset Baseline TCS \uparrow Probe R2R^{2} \uparrow Probe MAE \downarrow
Dense BPI2018 LSTM 0.0375 (0.8030) 0.0001 (0.631) 4.120 (2.775)
MIMIC-IV THP 0.8584 (0.8620) 0.2265 (0.6580) 1.96 (0.5970)
GiantMIDI Music Transformer -1.000 (-0.044) undef. (0.160) 10.568 (248.006)
Partial Network traffic NetSSM + GMM 0.3689 (0.6216) -0.5744 (0.3943) 0.860 (0.3080)
Temporal KG RE-Net + GMM 0.3762 (0.2027) 0.0161 (0.4449) 1,412.25 (904.14)
Table 14. Temporal-recoverability results for the reference baselines on the four main evaluation domains and the auxiliary GiantMIDI experiment. Parenthesized values report the best ChronoSSM result across Joint and Two-Stage; boldface marks the better of the baseline and best ChronoSSM value.

I.3. Baseline Results

The baseline comparisons are most informative when they reveal a separation between generation quality and temporal recoverability. On several datasets, the domain-specific baselines are clearly stronger than ChronoSSM on the generation task, which is expected because they were designed specifically for that domain. Table 13 shows that, on BPI2018, the LSTM yields higher suffix similarity than both controlled variants. On MIMIC-IV, THP also dominates the generation metrics. The largest gap appears on the temporal knowledge graph, where RE-Net substantially outperforms ChronoSSM on filtered link prediction. The auxiliary GiantMIDI baseline shows the same pattern, with Music Transformer far ahead on OA generation quality. These gaps are not a problem for the main claims of the paper; they are expected, because these baselines are purpose-built generators for their respective domains.

By contrast, the recoverability picture is consistently weak or at least much less convincing for the baselines. The LSTM baseline on BPI2018 has almost no recoverability under the probe diagnostics. NetSSM is similarly weak on network traffic, including a negative probe R2R^{2}. RE-Net is another important case: despite much better generation quality, its probe recoverability remains poor relative to both ChronoSSM variants. Music Transformer also fits this pattern, with very poor recoverability despite being the strongest generator in that setting.

The most revealing case is THP on MIMIC-IV. Its TCS is close to that of Joint, yet its probe R2R^{2} is much lower. This suggests that a seemingly favorable TCS value does not by itself imply that temporal information is cleanly or linearly accessible from the representation. More broadly, these baselines do not learn timing through the same kind of shared representation studied in ChronoSSM: some use different temporal parameterizations, and others decouple timing from content generation entirely. Their recoverability is therefore generally weak, and when a baseline comes close to Joint on a single metric, we interpret that locally as a reminder that no single recoverability metric should be read in isolation.

Appendix J Sensitivity to Distance Metric and Neighborhood Size

The Temporal Cohesion Score (TCS) depends on two design choices: (i) the distance metric used to compare hidden states, and (ii) the neighborhood size KK used to define local neighborhoods.

In the main experiments (section 5), we fix K=5K=5 and use cosine similarity. In this section, we analyze the robustness of TCS to these choices and clarify how the resulting sensitivity differs between the network-traffic and temporal-knowledge-graph domains.

J.1. Sensitivity to Distance Metric

We first examine the effect of the distance metric while keeping the neighborhood size fixed at K=5K=5. Specifically, we recompute TCS using Euclidean (L2L_{2}) and Manhattan (L1L_{1}) distances in place of cosine similarity.

Table 15 reports the resulting scores for both domains. On network traffic, the Joint model consistently achieves a TCS of approximately 0.620.62, while the Two-Stage baseline remains around 0.150.15. The relative improvement induced by joint training is therefore large and stable across all three metrics. This robustness indicates that the strong temporal signal observed in network traffic is not an artifact of a particular geometric choice.

On the temporal knowledge graph, the same qualitative pattern holds, but the gains are much smaller: the Two-Stage baseline ranges from 0.1040.104 to 0.1120.112, whereas the Joint model ranges from 0.1260.126 to 0.1440.144. Temporal cohesion is therefore somewhat sensitive to the distance metric in this domain, but the advantage of Joint training remains positive under all three choices.

TCS Metric Formulation \uparrow Dataset Model Cosine Euclidean (L2L_{2}) Manhattan (L1L_{1}) Network Traffic Two-Stage 0.1469 0.1542 0.1526 Joint 0.6214 0.6225 0.6255 Improv. +323% +303% +310% Temporal KG Two-Stage 0.110 0.112 0.104 Joint 0.144 0.126 0.127 Improv. +31% +12% +22%

Table 15. TCS across distance metrics for network traffic and temporal knowledge graphs.

J.2. Sensitivity to Neighborhood Size KK

We next vary neighborhood size KK on the two partially timestamped domains, again using cosine, Euclidean, and Manhattan distances. Table 16 shows a clear contrast between them. For network traffic, the Joint model remains far above the Two-Stage baseline for all tested values of KK and all three distance metrics, even though TCS gradually decreases as neighborhoods grow. This indicates that the temporal organization induced by Joint training is not limited to a narrow nearest-neighbor effect.

For temporal knowledge graphs, the picture is different. The advantage of Joint training is visible at small neighborhoods, but it rapidly shrinks toward zero as KK increases, regardless of the distance metric. Here, temporal information is therefore much more localized: once the neighborhood expands, static relational structure dominates similarity and temporal ordering becomes difficult to recover. Together with the distance-metric analysis above, this comparison shows that the main conclusion is robust to the exact geometric choice, while the spatial extent of temporal organization depends strongly on the domain.

Cosine Distance Euclidean (L2L_{2}) Manhattan (L1L_{1}) Dataset KK Two-Stage Joint Two-Stage Joint Two-Stage Joint Network Traffic 55 0.147 0.621 0.154 0.622 0.153 0.626 1515 0.032 0.527 0.046 0.531 0.049 0.533 2525 0.049 0.479 0.066 0.486 0.067 0.488 3535 0.061 0.446 0.077 0.454 0.080 0.456 Temporal KG 55 0.172 0.203 0.112 0.126 0.104 0.127 1515 0.048 0.051 0.038 0.049 0.041 0.049 2525 0.020 0.029 0.029 0.029 0.026 0.029 3535 -0.001 0.000 0.001 0.002 -0.001 0.002

Table 16. Sensitivity of TCS to neighborhood size KK for network traffic and temporal knowledge graphs.

Appendix K Layer-Wise Representation Analysis

This appendix examines how temporal supervision changes the internal representations learned by ChronoSSM. It is intended to complement the recoverability results of section 5 and the generation-quality results of section 6, rather than to provide a complete mechanistic account of all four evaluation domains.

K.1. Representation-Similarity Metrics

This subsection provides the formal definitions of the representation-similarity metrics used in the layer-wise analysis below. These metrics quantify alignment between hidden representations learned under Joint and Two-Stage training at different geometric scales.

To quantify structural differences between the two training regimes, we compare hidden states produced by corresponding backbone layers on identical input sequences. Let 𝐗n×d\mathbf{X}\in\mathbb{R}^{n\times d} and 𝐘n×d\mathbf{Y}\in\mathbb{R}^{n\times d} denote the activations from the Joint and Two-Stage models, respectively, for nn samples and representation dimension dd. We measure alignment at three complementary geometric scales.

Global structural alignment (CKA). We use linear Centered Kernel Alignment (CKA) (Kornblith et al., 2019) to measure similarity between the global “clouds” formed by the representations. Given Gram matrices K=𝐗𝐗K=\mathbf{X}\mathbf{X}^{\top} and L=𝐘𝐘L=\mathbf{Y}\mathbf{Y}^{\top}, and the centering matrix H=I1n𝟏𝟏H=I-\frac{1}{n}\mathbf{1}\mathbf{1}^{\top}, linear CKA is defined as

(25) CKA(K,L)=HSIC(K,L)HSIC(K,K)HSIC(L,L),\text{CKA}(K,L)=\frac{\text{HSIC}(K,L)}{\sqrt{\text{HSIC}(K,K)\,\text{HSIC}(L,L)}},

where

(26) HSIC(K,L)=1(n1)2tr(KHLH)\text{HSIC}(K,L)=\frac{1}{(n-1)^{2}}\,\mathrm{tr}(KHLH)

is the Hilbert–Schmidt Independence Criterion (Gretton et al., 2007). High CKA values indicate strong global alignment between representation spaces.

Local neighborhood alignment (CKNNA). To assess alignment at a local geometric scale, we use Centered Kernel Nearest Neighbor Alignment (CKNNA) (Huh et al., 2024). Let 𝐀\mathbf{A} be a binary adjacency matrix such that 𝐀ij=1\mathbf{A}_{ij}=1 if sample jj is a mutual kk-nearest neighbor of sample ii in both representation spaces. CKNNA is defined as

(27) CKNNA(K,L)=tr((𝐀K)(𝐀L))𝐀KF𝐀LF,\text{CKNNA}(K,L)=\frac{\mathrm{tr}\!\left((\mathbf{A}\circ K)(\mathbf{A}\circ L)^{\top}\right)}{\|\mathbf{A}\circ K\|_{F}\cdot\|\mathbf{A}\circ L\|_{F}},

where \circ denotes the Hadamard product and F\|\cdot\|_{F} is the Frobenius norm. Lower values indicate greater divergence in local neighborhood structure between the two representations.

Topological overlap (M-KNN). Finally, we compute the Mutual kk-Nearest Neighbor (M-KNN) overlap to measure agreement in neighborhood membership. Let 𝒩k𝐗(i)\mathcal{N}_{k}^{\mathbf{X}}(i) denote the set of kk nearest neighbors of sample ii in representation space 𝐗\mathbf{X}. The M-KNN overlap is defined as

(28) M-KNN(𝐗,𝐘)=1nki=1n|𝒩k𝐗(i)𝒩k𝐘(i)|.\text{M-KNN}(\mathbf{X},\mathbf{Y})=\frac{1}{nk}\sum_{i=1}^{n}\left|\mathcal{N}_{k}^{\mathbf{X}}(i)\cap\mathcal{N}_{k}^{\mathbf{Y}}(i)\right|.

Lower overlap indicates that the two models induce different local topological structures over the data.

Refer to caption
(a) BPI2018.
Refer to caption
(b) MIMIC-IV.
Refer to caption
(c) Network traffic.
Refer to caption
(d) Temporal knowledge graph.
Figure 2. Layer-wise alignment between ChronoSSM models trained under Joint and Two-Stage regimes, measured using CKA, M-KNN, and CKNNA. CKA captures global geometric alignment, whereas M-KNN and CKNNA emphasize local neighborhood structure.

K.2. Per-Domain Patterns

Figure 2 collects the layer-wise alignment plots for all four domains.

BPI2018. Figure 2(a) shows the mildest change of the four domains. CKA remains high throughout the backbone and ends at 0.9170.917, while M-KNN and CKNNA decline but stay well above the network-traffic values. The substantial probe-based recoverability gain despite this relatively mild geometric change is consistent with the possibility that Joint makes temporal information more linearly accessible without a major reshaping of the representation space. The alignment measures alone do not establish that mechanism.

MIMIC-IV. Figure 2(b) shows a different pattern: CKA stays close to 11 across all layers and ends at 0.9690.969, whereas M-KNN and CKNNA drop to roughly 0.340.34 to 0.360.36 at the final layer. The natural reading is that Joint changes local neighborhood structure much more than global geometry. This local change is compatible with the favorable probe diagnostics on MIMIC-IV, but the plot does not establish how it produces them or explain why generation quality is slightly mixed in this domain.

Network traffic. Figure 2(c) shows the strongest reorganization. CKA is high at the input, drops sharply through much of the backbone, and recovers only near the end, while M-KNN and CKNNA remain low across most layers. This pattern is consistent with the concurrent gains in TCS and probe diagnostics: compared with Two-Stage, Joint appears to reshape fine-grained local geometry much more substantially in this domain than in the others. It may therefore be compatible with changes in both local temporal coherence and linear accessibility, without establishing a causal explanation for either the recoverability or generation results.

Temporal knowledge graphs. Figure 2(d) lies between the previous two cases. The two models stay well aligned early, diverge most clearly in the middle layers, and recover substantial similarity near the output. This fits the smaller recoverability differences relative to the other domains, but does not provide a clear account of why those differences are small: Joint changes the intermediate computation, while the two regimes converge again toward more similar late-layer geometries.

K.3. Cross-Domain Interpretation

The main cross-domain observation is negative but informative: the four domains do not support a single geometric story for why Joint improves temporal recoverability. BPI2018 shows only modest change, MIMIC-IV preserves almost the same global geometry while altering local neighborhoods, temporal knowledge graphs diverge mainly in the middle layers before recovering, and network traffic undergoes the broadest local and intermediate-layer reorganization.

This variation weakens two simple explanations at once. First, it weakens a single-mechanism interpretation in which improved recoverability would always arise from the same kind of representational change. Second, it weakens a simple dense-versus-partial timestamping explanation: BPI2018 and MIMIC-IV are both densely timestamped but behave quite differently, and the two partially timestamped domains are likewise not interchangeable. Timestamp density alone is therefore too coarse to explain the observed patterns.

There is no simple relationship between alignment and recoverability gains. BPI2018 exhibits a substantial probe-based gain despite relatively high final-layer alignment, whereas network traffic combines broad local divergence with large gains in both TCS and the probe diagnostics. These observations are consistent with the domain-specific interpretations in the recoverability analysis, but the plots do not verify them or identify a common mechanism.

The safest conclusion is therefore narrow. Joint can improve temporal recoverability under several different patterns of representational change, and those patterns do not map cleanly onto downstream generation quality. The layer-wise analysis is useful mainly because it rules out overly simple explanations; it does not provide a complete account of why the domain-level results differ. This interpretation is robust to the neighborhood size used for M-KNN and CKNNA: although the absolute values change, the same qualitative patterns remain.