ChronoSSM: Training for Temporally Aware Representations in Autoregressive State Space Models
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.
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 , the model updates a latent state from the previous state and the current input , and then produces an output representation :
| (1) | ||||
| (2) |
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 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 denote a dataset of timestamped sequences. Each sequence of length in is written as , where is a discrete token and is its associated timestamp. From successive timestamps, we derive the inter-arrival times .
Denoting the token history up to step by , our objective is to model the joint distribution of the next token and its associated inter-arrival time :
| (3) |
Using the chain rule, we factor this joint distribution as
| (4) |
where collects the parameters of the shared sequence model, token-prediction head, and temporal-prediction head, respectively. Let denote the vocabulary size and the hidden-state dimension.
The shared sequence model is a causal autoregressive model parameterized by that produces a token-wise hidden representation from the history . 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) |
The token-prediction head is a linear map parameterized by , and it models the next-token distribution as
| (6) |
The temporal-prediction head is a function parameterized by and conditioned on a transition representation . After is processed, the sequence model produces according to Eq. 5. Because describes the transition from position to position , its prediction is based on a representation derived from both and . The temporal-prediction head models the second factor as
| (7) |
The construction of 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 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) |
The temporal target and the representation used to predict it are thus both defined as differences between consecutive positions:
| (9) |
This choice for is a modeling decision rather than a structural requirement of the framework. An alternative temporal representation 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:
| (10) |
We now instantiate these two terms using the token-prediction and temporal-prediction heads introduced in section 2.2.
For token prediction, the factor is categorical, so the sequence-level token loss is
| (11) |
where denotes categorical cross-entropy, which is appropriate because is a sequence of discrete tokens (Goodfellow et al., 2016) (see section 2.2).
For temporal prediction, the factor is defined by a conditional density over the continuous-valued target . 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) |
where is the hidden-state transition defined in Eq. 8. The concrete form of is specified for each experimental regime in section 4.
Summing Eq. 10 over the sequence gives the joint negative log-likelihood
| (13) |
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) |
where controls the relative contribution of temporal prediction.
3.3. Training Schedules
We consider two approaches for optimizing the parameter set . 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.
Joint Training. Under Joint training, the backbone and both prediction heads are optimized simultaneously using the objective in Eq. 14. Gradients from both and update the backbone parameters , while the token-prediction and temporal-prediction heads are updated by and , respectively.
In particular, the temporal loss backpropagates through , 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 alone. In the second phase, the temporal-prediction head is trained using 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 , the token head first predicts the next token . After this token is processed by the backbone, the model obtains and computes . The temporal head then predicts the associated inter-arrival time from , and the timestamp is updated as .
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 follows the canonical formulation introduced in section 2.2: every token is associated with an observed timestamp , 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 , while its occurrence time defines the associated timestamp .
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 , and the recording time defines the timestamp .
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 would be undefined when . We therefore define
| (15) |
where is a dataset-specific time scale. This transformed quantity 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 . This prediction is then transformed in the same way:
| (16) |
We instantiate the temporal factor as the fixed-variance log-normal density
| (17) |
where is fixed. Its negative log-likelihood is equivalent, up to terms independent of the model parameters, to squared error between and . 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 denote the set of positions carrying valid temporal targets. For each , let denote the preceding position in . The temporal target and its corresponding hidden-state representation are then defined as
| (18) |
The temporal loss is evaluated only for . Tokens outside 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 contains the packet-boundary positions.
Temporal knowledge graphs. Temporal knowledge graphs represent evolving relational information as timestamped facts , where and denote entities, denotes a relation, and 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 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 , 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 (see Eq. 15) from the corresponding frozen temporal representation (see Eq. 8):
| (19) |
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 (). A lower MAE indicates that the temporal target can be reconstructed more accurately from the representation, while a higher indicates that the probe explains a larger fraction of its variability. Lower MAE and higher 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 , we identify its nearest neighbors under cosine similarity and compute the mean absolute difference between their associated temporal targets:
| (20) |
where denotes the nearest neighbors of .
We compare this quantity with the mean target difference obtained by assigning randomly selected transitions to each , denoted , and report
| (21) |
where prevents division by zero. In all experiments, we set 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 , 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 to , while the probe improvements are clearer: increases from to and MAE decreases from to . 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 to , probe from to , and MAE from to . 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.
| Dataset | Method | TCS | Probe | Probe MAE |
|---|---|---|---|---|
| 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 |
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
where () 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 | DLS median | ||||
| Joint | 0.487 | 0.500 | ||||
| Two-Stage | 0.487 | 0.500 | ||||
| MIMIC-IV | Token JSD | Token TV | Recall@50 | |||
| Joint | 0.314 | 0.477 | 0.780 | |||
| Two-Stage | 0.302 | 0.451 | 0.780 | |||
| Network traffic | JSD ip.src | JSD ip.dst | JSD tcp.src | JSD tcp.dst | ||
| Joint | 0.0412 | 0.0311 | 0.0764 | 0.1120 | ||
| Two-Stage | 0.0669 | 0.0516 | 0.1248 | 0.2183 | ||
| Temporal KG | MRR | MR | Hits@1 | Hits@3 | Hits@10 | |
| Joint | 0.1461 | 269.06 | 0.0899 | 0.1490 | 0.2527 | |
| Two-Stage | 0.0576 | 2155.60 | 0.0325 | 0.0557 | 0.1017 | |
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@, 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 under Joint in both domains is consistent with these output-level improvements (see Appendix D).
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 should interact with the event term 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 -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
- User-dependent neural sequence models for continuous-time event data. Advances in Neural Information Processing Systems 33, pp. 21488–21499. Cited by: §7, §7.
- 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.
- 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.
- FlowChronicle: synthetic network flow generation through pattern set mining. Proc. ACM Netw. 2 (CoNEXT4). External Links: Link, Document Cited by: §1.
- An introduction to the theory of point processes: volume ii: general theory and structure. Springer. Cited by: §7.
- 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.
- 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.
- 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.
- Deep learning. MIT Press. Cited by: §3.2.
- 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.
- Efficiently modeling long sequences with structured state spaces. External Links: 2111.00396, Link Cited by: §2.1, §2.1.
- 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.
- 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.
- 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.
- 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.
- 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.
- MIMIC-IV, a freely accessible electronic health record dataset. Scientific Data 10 (1), pp. 1. External Links: Document Cited by: §1, §1, §4.2.
- 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.
- 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.
- 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.
- Decoupled weight decay regularization. External Links: 1711.05101, Link Cited by: Appendix H.
- The BPI challenge 2018. In Proceedings of the Business Process Intelligence Challenge 2018, Cited by: §1, §4.2.
- Decomposable transformer point processes. Advances in Neural Information Processing Systems 37, pp. 88932–88955. Cited by: §7, §7.
- 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.
- 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.
- BPI challenge 2018. Eindhoven University of Technology (en). External Links: Document, Link Cited by: §1, §1, §4.2.
- Practical gan-based synthetic ip header trace generation using netshare. In Proceedings of the ACM SIGCOMM 2022 Conference, pp. 458–472. Cited by: §7.
- 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)
Comparison of the experimental domains (appendix A).
-
(2)
Additional experiments on symbolic music (appendix B).
-
(3)
Application to an alternative autoregressive backbone (appendix C).
-
(4)
Held-out validation-loss diagnostics for the main experiments (appendix D).
-
(5)
Sensitivity to the auxiliary temporal-loss weight (appendix E).
-
(6)
Comparison of alternative temporal representations (appendix F).
-
(7)
Computational overhead (appendix G).
-
(8)
Domain-specific model configurations (appendix H).
-
(9)
Domain-specific baseline setup and results (appendix I).
-
(10)
Sensitivity of TCS to its metric parameters (appendix J).
-
(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
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 is note pitch and the timestamp 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) |
and instantiate the temporal factor as
| (23) |
with fixed variance . 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 Mean pitch OA Note density OA Pitch range OA Pitch var. OA TCS Probe Probe MAE 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
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 ( for both), but the probe scores still slightly favor Joint ( vs. , MAE vs. ). 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 under Two-Stage training to under Joint training. The same pattern holds for all four reported symbolic-music features. In particular, Joint improves mean-pitch OA from to , note-density OA from to , pitch-range OA from to , and pitch-variance OA from to . 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 Joint–Two-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 | 0.486951 | 0.487380 |
| Med. DLS | 0.500 | 0.500 | ||
| MIMIC-IV | JSD | 0.296 | 0.286 | |
| R@50 | 0.820 | 0.780 | ||
| Network | JSD(srcIP) | 0.5882 | 0.3902 | |
| JSD(dstIP) | 0.6931 | 0.2342 | ||
| JSD(sPort) | 0.6931 | 0.2408 | ||
| JSD(dPort) | 0.6931 | 0.4259 | ||
| TKG | MRR | 0.1310 | 0.1329 | |
| MR | 510.87 | 534.30 | ||
| Hits@1 | 0.0711 | 0.0723 | ||
| Hits@3 | 0.1385 | 0.1394 | ||
| Hits@10 | 0.2439 | 0.2492 | ||
| Recoverability | BPI2018 | TCS | -0.163 | 0.282 |
| Probe | 0.661 | 0.603 | ||
| Probe MAE | 2.630 | 2.806 | ||
| MIMIC-IV | TCS | 0.876 | 0.857 | |
| Probe | 0.663 | 0.607 | ||
| Probe MAE | 0.595 | 0.627 | ||
| Network | TCS | 0.6465 | 0.6951 | |
| Probe | 0.4297 | 0.3665 | ||
| Probe MAE | 0.0967 | 0.1188 | ||
| TKG | TCS | 0.5242 | 0.5156 | |
| Probe | 0.6057 | 0.6129 | ||
| Probe MAE | 839.75 | 833.01 |
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 | ||
|---|---|---|---|
| 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 |
For token prediction, Joint obtains lower validation 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 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: 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 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.
| TCS | MAE | MRR | MR | H@1 | H@10 | ||
|---|---|---|---|---|---|---|---|
| 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 |
TCS MAE JSD(src) JSD(dst) JSD(sport) JSD(dport) 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
The two domains exhibit different sensitivity profiles. On the temporal knowledge graph, increasing produces a fairly consistent improvement in both recoverability and downstream link prediction. Table 7 shows both trends. The strongest setting, , yields the best TCS, , MAE, mean rank, and Hits@10, while slightly improves MRR and H@1.
On network traffic, the dependence is less monotone, and no single value of optimizes all recoverability diagnostics. The highest TCS is obtained at , whereas the highest probe () occurs at and the lowest probe MAE at . Table 8 further shows that 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 . For the main experiments, we chose the auxiliary-loss weight so that the weighted temporal term, , was approximately of the same order of magnitude as the token-prediction loss 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 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 , formed by concatenating the same endpoint states:
| (24) |
The representation has dimension , whereas has dimension 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 empirically changes the magnitude and optimization behavior of the temporal objective. Stable training therefore requires , rather than the value used with . 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 use transition-level recoverability diagnostics.
Dataset Method Temporal recoverability BPI2018 generation Network-traffic generation TCS Probe Probe MAE DLS mean DLS median JSD ip.src JSD ip.dst JSD tcp.src JSD tcp.dst 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 shows that the configuration based on does not reproduce the empirical pattern obtained with the default representation .
From the perspective of RQ1 (section 5), BPI2018 remains effectively a tie. With , Two-Stage is numerically better on all three recoverability diagnostics, but the differences are small. Using therefore removes, rather than meaningfully reverses, the clearer Joint advantage obtained with . 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 , Joint still outperforms Two-Stage on the recoverability diagnostics, but the separation is substantially smaller, especially for TCS and probe . The representation therefore fails to reproduce the strong recoverability advantage observed with .
From the perspective of RQ2 (section 6), both variants using also match the packet-header distributions poorly. Source- and destination-IP JSD reach under both regimes, while the TCP-port divergences are substantially higher than with . 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 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 does not reproduce the clearer recoverability advantage obtained with , while generation quality remains near-equivalent. It also does not reproduce the stronger recoverability or generation quality obtained with on network traffic. Because the network run with uses a different temporal-loss weight, the experiment supports the practical choice of 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
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 . We use a base peak learning rate of (scaled to 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 . Next-token modeling uses Cross-Entropy loss with label smoothing (), while temporal regression uses Mean Squared Error over log-transformed targets . Models are trained with a batch size of for BPI2018, MIMIC-IV, Network traffic (32 per GPU), and GiantMIDI (sequence lengths of tokens with window stride, and / for BPI2018), and a batch size of for GDELT (sequence length , stride ).
Dataset Layers Aux head Hidden dim 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
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 Joint –Two-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 Joint–Two-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 |
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 , 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 | DLS median | ||||
| LSTM | 0.535 (0.487) | 0.533 (0.500) | |||||
| MIMIC-IV | Token JSD | Recall@50 | |||||
| THP | 0.111 (0.302) | 1.000 (0.780) | |||||
| GiantMIDI | OA mean | Mean pitch OA | Note density OA | Pitch range OA | Pitch var. OA | ||
| 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 | JSD ip.dst | JSD tcp.src | JSD tcp.dst | ||
| NetSSM | 0.3076 (0.0412) | 0.2426 (0.0311) | 0.2923 (0.0764) | 0.2923 (0.1120) | |||
| Temporal KG | MRR | MR | Hits@1 | Hits@3 | Hits@10 | ||
| RE-Net | 0.4136 (0.1461) | 144.16 (269.06) | 0.3446 (0.0899) | 0.4398 (0.1490) | 0.5405 (0.2527) | ||
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 Joint–Two-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 and the same evaluation protocol as the controlled Joint–Two-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 | Probe | Probe MAE |
|---|---|---|---|---|---|
| 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) |
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 . 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 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 used to define local neighborhoods.
In the main experiments (section 5), we fix 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 . Specifically, we recompute TCS using Euclidean () and Manhattan () 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 , while the Two-Stage baseline remains around . 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 to , whereas the Joint model ranges from to . 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 Dataset Model Cosine Euclidean () Manhattan () 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%
J.2. Sensitivity to Neighborhood Size
We next vary neighborhood size 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 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 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 () Manhattan () Dataset Two-Stage Joint Two-Stage Joint Two-Stage Joint Network Traffic 0.147 0.621 0.154 0.622 0.153 0.626 0.032 0.527 0.046 0.531 0.049 0.533 0.049 0.479 0.066 0.486 0.067 0.488 0.061 0.446 0.077 0.454 0.080 0.456 Temporal KG 0.172 0.203 0.112 0.126 0.104 0.127 0.048 0.051 0.038 0.049 0.041 0.049 0.020 0.029 0.029 0.029 0.026 0.029 -0.001 0.000 0.001 0.002 -0.001 0.002
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 and denote the activations from the Joint and Two-Stage models, respectively, for samples and representation dimension . 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 and , and the centering matrix , linear CKA is defined as
| (25) |
where
| (26) |
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 be a binary adjacency matrix such that if sample is a mutual -nearest neighbor of sample in both representation spaces. CKNNA is defined as
| (27) |
where denotes the Hadamard product and 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 -Nearest Neighbor (M-KNN) overlap to measure agreement in neighborhood membership. Let denote the set of nearest neighbors of sample in representation space . The M-KNN overlap is defined as
| (28) |
Lower overlap indicates that the two models induce different local topological structures over the data.
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 , 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 across all layers and ends at , whereas M-KNN and CKNNA drop to roughly to 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.