Abstract
Temporal Point Processes (TPPs) are essential for modeling event sequences, yet traditional neural TPPs often struggle with the non-stationary nature of real-world dynamics. We present VAETPP, a Variational Autoencoder that models event sequences by learning a dynamic latent dependency graph. By partitioning time into sub-intervals and inferring shifting relationships between event types, VAETPP captures periodicity and heterogeneity that static models miss. Our approach achieves state-of-the-art performance on datasets such as New York Motor Vehicle Collisions (NYMVC) and Stack Exchange, offering both improved predictive accuracy and model interpretability.
Introduction
Temporal Point Processes (TPPs) provide the mathematical framework for modeling sequences of discrete events in continuous time, with applications ranging from high-frequency trading to social media dynamics. A common feature in these sequences is "self-excitation," where the occurrence of one event increases the likelihood of others. However, real-world event dynamics are rarely constant; they exhibit significant periodicity and heterogeneity. For instance, the influence of traffic incidents in one urban borough on another varies drastically between rush hour and late-night periods.
Existing neural TPP models face two primary challenges. First, they often suffer from information overload, attempting to utilize all historical events without filtering noise from unrelated event types. Second, recent graph-based models typically assume a static dependency structure between event types. This "averaging" of dynamics fails to capture crucial shifts across different time regimes.
Methodology: The VAETPP Framework
The core innovation of VAETPP is treating the dependency graph as a latent variable that evolves across discrete time intervals. The framework consists of several key components:
1. Time Partitioning and Piecewise Stationarity
The model divides long event sequences into regularly spaced sub-intervals. While dynamics change globally, they are assumed to be stationary within each local window. This piecewise approach provides enough structure for the VAE to learn effectively while remaining computationally tractable.
2. Encoder and Latent Graph Inference
To determine the relationships between event types, the encoder utilizes a combination of Graph Neural Networks (GNNs) and Bidirectional Recurrent Neural Networks (RNNs). By observing the entire sequence within an interval, the encoder infers a latent graph that represents the specific dependencies for that time slice.
3. Decoder and Event Prediction
The decoder employs a Graph Recurrent Neural Network (GRNN) to predict future events. By utilizing the learned latent graph, the decoder restricts message passing to only those event types that are relevant in the current interval, effectively muting noise from non-contributing historical data.
4. Flexible Intensity Modeling
Rather than relying on simple exponential distributions for inter-event times, VAETPP uses a Log-Normal Mixture Model. This allows the framework to capture complex, multi-modal distributions of "waiting times," which are common in heterogeneous event data.
Experimental Evaluation
VAETPP was evaluated against several state-of-the-art baselines, including RMTPP and the Transformer Hawkes Process (THP), across four real-world datasets:
- NYMVC: Traffic collision data across NYC boroughs, partitioned into 3-hour blocks to capture daily cycles.
- Stack Exchange (MathOF, AskUbuntu, SuperUser): User interaction data partitioned into 1-day blocks to capture weekly patterns.
Key Results
- Predictive Accuracy: VAETPP consistently achieved the lowest Negative Log-Likelihood (NLL) and Root Mean Square Error (RMSE) for time prediction. In the NYMVC dataset, it improved RMSE to 0.775, compared to 0.798 for the next best model.
- Event Categorization: The model also outperformed competitors in event type prediction, demonstrating the value of dynamic graph structures over static ones.
- Ablation Study: Comparisons with a static version of the model (VAETPP-static) confirmed that the ability to capture temporal shifts in dependencies is critical to the model's success.
Discussion and Conclusion
VAETPP demonstrates that dynamic sparsity is a powerful tool for modeling complex event sequences. By explicitly learning how dependencies shift over time, the model moves beyond "black box" predictions toward an interpretable understanding of system dynamics—such as visualizing how the influence between urban areas weakens at night.
A current limitation is the requirement for manual tuning of sub-interval lengths. Future work will explore methods for automatically inferring optimal regime changes directly from the data, potentially allowing for asynchronous and irregular interval boundaries.
Summary updated