Mamba Hawkes Process for Event Sequence Modeling
Organizations: Shenzhen Research Institute of Big Data
Abstract
Modeling asynchronous event sequences is crucial in numerous real-world applications such as healthcare monitoring, financial transaction analysis, and so on. Traditional temporal point processes, including Hawkes Processes, often fail to capture complex dependencies due to their parametric limitations. While neural approaches like RNNs and Transformers have improved flexibility, they struggle with computational inefficiency, and attention saturation. In this paper, we introduce the Mamba Hawkes Process (MHP), the first framework to integrate selective state space model (Mamba) with temporal point processes. MHP leverages time-varying state transitions and input-dependent gating to efficiently encode event history and capture long-term dependencies with linear complexity. Importantly, we provide theoretical guarantees showing that MHP generalizes both classical multi-exponential Hawkes processes and exponential-decay gated RNNs, underscoring its expressive power and theoretical soundness. To address the inherent constraints of pure state space models in handling heterogeneous event interactions, we further develop Adaptive Mamba Hawkes Process (A-MHP) that incorporates two novel mechanisms: a Time-Scaling Mechanism that adaptively weights time intervals based on event type and history, and a Dual-Channel State Transition that adaptively processes event content and temporal dynamics for more refined state updates. Extensive experiments on synthetic and realworld datasets demonstrate that MHP and A-MHP consistently outperform state-of-the-art baselines in event prediction tasks, particularly in long-sequence scenarios. Our work establishes a scalable and theoretically grounded paradigm for event sequence modeling, with practical implications for predictive maintenance, anomaly detection, and dynamic system analysis.
Figures & tables
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Info | Financial | SO | Synthetic | Retweet | MIMIC-II |
| Len (Avg.) | 2074.0 | 72.4 | 60.3 | 108.8 | 3.7 |
| Len (Std.) | 1245.0 | 43.7 | 23.1 | 54.4 | 2.3 |
| #Type | 2 | 22 | 5 | 3 | 75 |
| Parameter | d_model | Learning Rate | Batch Size | ||
| Financial | 128 | 1e-4 | 1 | 1.0 | 1e-4 |
| SO | 512 | 1e-4 | 4 | 2.0 | 8e-5 |
| Synthetic | 64 | 1e-4 | 4 | 1.0 | 1e-4 |
| Retweet | 64 | 1e-3 | 16 | 0.2 | 4e-4 |
| Mimic-II | 64 | 5e-4 | 1 | 1.6 | 8e-5 |
| d_inner | d_state | d_conv | expand factor | n_layers | dt_rank | B_split |
| 2 d_model | 16 | 4 | 2 | 4 | 2 : 1 |
| Dataset | THP | MHP | Speedup |
| Financial | 1167.40 | 5088.59 | 4.36 |
| SO | 20203.13 | 21608.38 | 1.07 |
| Synthetic | 8064.19 | 15562.60 | 1.93 |
| Retweet | 12733.84 | 78983.22 | 6.20 |
| MIMIC-II | 302.12 | 494.26 | 1.64 |
Temporal Point Processes
Temporal point processes model the timing, types, and dependencies of events occurring irregularly over time.
See all 35 papers