Abstract
A temporal point process is a stochastic process that predicts which type of events is likely to happen and when the event will occur given a history of a sequence of events. There are various examples of occurrence dynamics in the daily life, and it is important to train the temporal dynamics and solve two different prediction problems, time and type predictions. Especially, deep neural network based models have outperformed the statistical models, such as Hawkes processes and Poisson processes. However, many existing approaches overfit to specific events, instead of learning and predicting various event types. Therefore, such approaches could not cope with the modified relationships between events and fail to predict the intensity functions of temporal point processes very well. In this paper, to solve these problems, we propose a variational neural temporal point process (VNTPP). We introduce the inference and the generative networks, and train a distribution of latent variable to deal with stochastic property on deep neural network. The intensity functions are computed using the distribution of latent variable so that we can predict event types and the arrival times of the events more accurately. We empirically demonstrate that our model can generalize the representations of various event types. Moreover, we show quantitatively and qualitatively that our model outperforms other deep neural network based models and statistical processes on synthetic and real-world datasets.
Introduction
Temporal Point Processes (TPPs) are essential mathematical tools for modeling sequences of events occurring at irregular intervals, such as financial transactions, clinical visits, or social media interactions. The primary objective is to predict both the type of the next event and the time of its occurrence. While traditional statistical models like Hawkes processes are well-founded, they often struggle with the long-term dependencies found in complex sequences.
Recent deep learning advancements, particularly those utilizing Recurrent Neural Networks (RNNs) or Transformers, have significantly improved performance. However, these models are predominantly deterministic. This determinism often leads to overfitting on frequent event types, failing to capture the inherent stochasticity of real-world data or the nuances of rare events. Consequently, deterministic models struggle to represent uncertainty, leading to poor estimation of the "intensity function"—the core component of a TPP that describes the instantaneous probability of an event occurring.
Proposed Methodology
To address these limitations, we introduce the Variational Neural Temporal Point Process (VNTPP). This framework integrates a Variational Autoencoder (VAE) structure with a Transformer backbone to model the underlying stochastic dynamics of event sequences.
Architecture Overview
As illustrated in Figure 1, the VNTPP architecture consists of several key components:
- Transformer Backbone: Utilizing self-attention layers, the model captures long-term dependencies across event histories without the vanishing gradient issues common in RNNs.
- Variational Inference: The core innovation is the introduction of a latent variable $z$. An inference network maps the event history to a distribution (defined by mean $\mu$ and variance $\sigma$) in a latent space.
- Generative Network: A sampled $z$ (obtained via the reparameterization trick) is used to compute conditional intensity functions. This allows the model to represent a distribution of possible futures rather than a single point estimate.
Intensity and Decay Functions
The intensity function in VNTPP is derived from the sampled latent variable, enabling the model to handle uncertainty more effectively. We explored different formulations for the intensity function, specifically testing linear (VNTPP-L) and exponential (VNTPP-E) decay functions. These functions, as shown in Figure 2, allow the model to adapt to various physical realities regarding how the influence of past events diminishes over time.
Experimental Evaluation
VNTPP was evaluated against five diverse datasets: clinical records (MIMIC-II), user rewards (StackOverflow), social media interactions (Retweet), and two synthetic datasets with known ground-truth dynamics.
Key Results
- Event Type Prediction: VNTPP consistently outperformed state-of-the-art baselines like the Transformer Hawkes Process (THP). For instance, on the Retweet dataset, VNTPP achieved an F1 score of 0.596, compared to THP's 0.503.
- Time Prediction: The model demonstrated lower Root Mean Square Error (RMSE) in predicting arrival times, particularly in datasets with complex temporal patterns.
- Intensity Estimation: In synthetic tests, VNTPP’s estimated intensity curves closely matched the ground truth, whereas deterministic baselines often produced overly simplistic or "spiky" intensities.
Analysis of Latent Representations
Using Singular Value Decomposition (SVD), we observed that the latent variable $z$ naturally clusters by event type. This indicates that the model learns meaningful internal representations of "event signatures" without explicit supervision. Furthermore, the stochastic nature of VNTPP prevents the "winner-takes-all" problem common in deterministic models, where the system converges to predicting only the most frequent event types.
Discussion and Conclusion
VNTPP represents a significant step forward in modeling temporal point processes by combining the representational power of Transformers with the uncertainty-handling capabilities of variational inference. While the model shows superior accuracy, future work will focus on reducing the numerical complexity associated with Monte Carlo integration for high-frequency event streams and further exploring the interpretability of the latent space for tasks like anomaly detection.
Summary updated