Deep Continuous-Time State-Space Models for Marked Event Sequences

Yuxin Chang, Alex James Boyd, Cao Xiao, Taha Kass-Hout, Parminder Bhatia, Padhraic Smyth, Andrew Warrington

Predicting the timing and nature of future events in irregularly timed sequences—such as hospital admissions, financial trades, or social media interactions—is a notoriously difficult challenge in machine learning. A recent paper introduces the State-Space Point Process (S2P2), a novel architecture that merges the mathematical elegance of classical Hawkes processes with the computational power of modern Deep State-Space Models (SSMs). By doing so, S2P2 achieves a massive 33% improvement in predictive performance while maintaining the ability to scale linearly to massive datasets.

The Challenge of Irregular Event Sequences

Many real-world data streams consist of events happening at irregular intervals. Researchers traditionally use Marked Temporal Point Processes (MTPPs) to model these sequences, aiming to predict when the next event will happen and what type (mark) it will be.

However, existing deep learning tools have significant drawbacks when applied to MTPPs:

  1. RNNs process events sequentially, making them prohibitively slow to train on long sequences.
  2. Transformers are highly parallelizable, but their memory usage explodes quadratically ($O(N^2)$) as sequences get longer.
  3. Parametric Models (like the classical Hawkes process) are interpretable and handle continuous time well, but they are often too simple to capture the messy, non-linear patterns of real-world data.

The core challenge is creating a model expressive enough to handle complex patterns, efficient enough for long sequences, and inherently "aware" of continuous time.

The State-Space Point Process (S2P2)

To overcome these limitations, the authors propose the Latent Linear Hawkes (LLH) layer, which serves as the foundational building block of the S2P2 architecture.

  • The Hawkes Connection: The authors take inspiration from the Linear Hawkes Process—a model where past events "excite" the probability of future events—and reformulate it as a stochastic jump differential equation.
  • Deep SSM Architecture: By stacking these LLH layers and interleaving them with non-linearities (like GELU activations) and LayerNorm, the model mirrors the highly successful architectures of modern deep state-space models like Mamba or S4.
  • Continuous-Time Dynamics: Unlike discrete models that only update when an event occurs, S2P2 maintains a hidden state that evolves continuously between events. This allows the model to naturally "forget" old information or "anticipate" new events based purely on the passage of time.
Continuous-time state evolution and parallel scan mechanism in S2P2.

Crucially, because the core of the LLH layer is linear, S2P2 can utilize a parallel scan algorithm. This allows the model to compute the entire history of a sequence simultaneously during training, leading to logarithmic time complexity for sequential steps and linear memory usage overall.

Key Insights and Empirical Performance

The "aha" moment of this research is the realization that a Hawkes process is essentially a specific type of State-Space Model where the "input" is a series of discrete jumps. Treating it this way unlocks the high-performance optimization tricks developed for modern SSMs. Furthermore, S2P2 directly ties the "intensity" (the rate at which events happen) to the model’s continuously evolving hidden state, removing the need for restrictive decoding heads that struggle to interpolate between events.

The model was rigorously evaluated on eight diverse real-world datasets, including standard benchmarks like Amazon reviews, Retweet data, and MIMIC-II clinical data. The authors also introduced EHRSHOT, a massive new medical dataset derived from electronic health records that is an order of magnitude larger than previous benchmarks.

S2P2 architecture (left) and performance comparison across key metrics (right), demonstrating state-of-the-art results.

Key Results: * Superior Accuracy: S2P2 achieved the best or second-best performance on all six evaluation metrics across all eight datasets, delivering a 33% average improvement in predictive likelihood over the previous best methods. * Better Calibration: The model's predicted probabilities for event types and timings closely matched the actual observed frequencies, making it highly reliable. * Scalability: In empirical tests, S2P2 handled sequences of over 500,000 events with ease, whereas Transformer-based models ran out of memory or became prohibitively slow.

Limitations and Future Work

While highly performant, S2P2 trades off some of the interpretability of classical Hawkes processes (where one can see exactly how specific events trigger others) for the "black box" expressivity of deep learning. Future work could focus on recovering this interpretability. Additionally, predicting the exact expected time of the next event still requires numerical integration, adding slight computational overhead. Finally, extending S2P2 to handle continuous marks (e.g., the exact dollar amount of a financial transaction) represents a promising next step for continuous-time sequence modeling.

Summary updated

BibTeX
@inproceedings{chang2025deep,
  author = {Yuxin Chang and Alex James Boyd and Cao Xiao and Taha Kass-Hout and Parminder Bhatia and Padhraic Smyth and Andrew Warrington},
  title = {{Deep Continuous-Time State-Space Models for Marked Event Sequences}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=74SvE2GZwW},
}
Figure