Introduction
Temporal Point Processes (TPPs) are the mathematical backbone for modeling sequences of discrete events over time—such as high-frequency stock trades, social media posts, or emergency room visits. The primary goal is to predict when the next event will happen based on the history of past events.
The "gold standard" for TPPs is the conditional intensity function, $\lambda(t)$, which represents the instantaneous rate of an event occurring. However, researchers face a major trade-off:
- Simplicity vs. Realism: Classic models (like Hawkes processes) use fixed mathematical shapes (e.g., exponential decay) for $\lambda(t)$. These are easy to integrate but often fail to capture the messy, non-linear patterns of real-world data.
- Flexibility vs. Tractability: Recent neural network models are more flexible, but calculating their "likelihood" (to train them) requires calculating the integral of $\lambda(t)$. If $\lambda(t)$ is a complex neural network output, this integral has no closed-form solution, forcing researchers to use slow and noisy numerical approximations like Monte Carlo integration.
This paper introduces a novel Recurrent Neural Network (RNN) framework for TPPs that models the integral of the intensity function (the cumulative hazard) rather than the intensity function itself. By doing so, the authors achieve a highly flexible model that can be trained using exact log-likelihood calculations, bypassing computationally expensive and inaccurate numerical approximations.
Methodology
The core innovation is a "flip" in how we view the problem. Instead of modeling the intensity $\lambda(t)$ and struggling to integrate it, the authors model the cumulative hazard function $\Phi(t)$, which is defined as the integral of the intensity. This "Integral Trick" turns a hard calculus problem (integration) into an easy one (differentiation).
The Architecture
- History Embedding: An RNN (like a GRU or LSTM) processes the sequence of past events to create a hidden state $h_i$, representing the "context" of the system.
- Cumulative Hazard Network: This context $h_i$ and the elapsed time $\tau$ are fed into a feedforward neural network. To ensure this network represents a valid cumulative hazard function, it must be positive and monotonically increasing with respect to time. The authors enforce this by constraining specific weights to be positive and using
tanhandsoftplusactivation functions. - Automatic Differentiation: Since $\lambda(t)$ is the derivative of $\Phi(t)$, the authors use modern "Autograd" tools to calculate the intensity function directly from the cumulative hazard network.
By defining the model this way, the log-likelihood formula—which usually contains a difficult integral—becomes a simple subtraction of two network outputs. Avoiding numerical integration makes this model faster to train and provides a more stable gradient for optimization.
Experiments & Results
The authors evaluated their model on a mix of controlled synthetic data and complex real-world datasets, including finance (Nikkei 225), emergency calls (San Francisco police), memes (MemeTracker), and music (Last.fm).
The "Fully Neural Network" model consistently matched or outperformed existing state-of-the-art models:
- Synthetic Benchmarks: On datasets like "Hawkes2" (which features a complex, rapidly changing intensity), the proposed model significantly beat standard baseline models. Traditional models fail spectacularly if the real data doesn't follow an expected curve (like an exponential decay). Because this model learns the "shape" of time from scratch, it adapts to the data's specific rhythm.
- Real-world Performance: On the Meme and Music datasets, the model showed a substantial lead. These datasets have high variability in inter-event times, a feature that "fixed-shape" models struggle to capture.
- Comparison to CT-LSTM: When compared to the Continuous-Time LSTM (a prominent flexible model), the authors' model achieved better Mean Negative Log-Likelihood (MNLL) and Mean Absolute Error (MAE) across almost all categories, proving that exact likelihoods are superior to approximations.
Limitations and Future Work
- The "What" vs. the "When": This paper focuses almost entirely on the timing of events. In many real-world scenarios, events also have "marks" (e.g., the price of a trade or the category of a meme). While the authors mention the model can be extended to marked processes, it wasn't the primary focus of this study.
- Interpretability: Like many deep learning models, while it predicts "when" very well, it is harder to extract "why" compared to a simple Hawkes process where you can see the exact triggering coefficients.
- Long-term Dependencies: While the RNN captures history, very long-range dependencies in point processes remain a general challenge for the field.
Summary updated