Neural Spatio-Temporal Point Processes

Ricky T. Q. Chen, Brandon Amos, Maximilian Nickel

Many real-world phenomena—from the sudden rupture of earthquakes and the spread of a virus to localized brain activity—consist of discrete events occurring at specific times and locations. Spatio-temporal point processes (STPPs) are the mathematical tools used to model these occurrences. However, traditional STPPs face a difficult "flexibility vs. tractability" trade-off.

To calculate the likelihood of a sequence of events, researchers generally have to solve a complex multivariate integral over space and time. To make the math work, they often rely on restrictive simplifications: assuming space and time are independent, using simple distributions like Gaussians that cannot handle complex shapes, or discretizing continuous space into an artificial grid. These simplifications lead to mis-specified models that fail to capture the true complexity of the data.

This paper introduces Neural Spatio-Temporal Point Processes, a novel framework that combines Neural Ordinary Differential Equations (ODEs) and Continuous-time Normalizing Flows (CNFs) to model discrete events in continuous space and time. By leveraging these tools, the authors create models capable of representing complex, multimodal spatial distributions and calculating exact likelihoods without expensive approximations.

Methodology: Jump vs. Attentive CNFs

The authors propose decomposing the modeling problem into two parts: a temporal ground intensity (when an event is likely to happen) and a conditional spatial density (where it is likely to happen, given the time).

To capture the history of the process, they utilize a continuous-time hidden state that evolves via an ODE between events and "jumps" instantaneously when an event is observed. The core innovation, however, is using Continuous-time Normalizing Flows (CNFs) to model the spatial distribution. A CNF takes a simple base distribution (like a standard Normal) and transforms it into a complex one by solving another ODE.

The paper introduces two novel architectures for this spatial modeling:

  1. Jump CNF: The spatial distribution's parameters jump at every event. While intuitive, this is computationally expensive because the ODE solver must be restarted sequentially after every single event.
  2. Attentive CNF: This model uses a Transformer-style attention mechanism within the ODE's drift function. By using a clever "dummy variable" reparameterization trick, the model maps time intervals into a shared $[0, 1]$ space. This allows the trajectories for all events in a sequence to be solved in a single parallel call to the ODE solver.
Comparison of sequence processing in Jump CNF versus the parallelized Attentive CNF.

Key Innovations

  • Exact Likelihoods: Unlike previous neural point processes that rely on Monte-Carlo sampling to approximate the spatial integral, this method allows for the computation of exact likelihood values. This leads to more stable and accurate training.
  • Parallelizing the "Unparallelizable": ODEs are inherently sequential. However, the Attentive CNF's reparameterization trick successfully batches multiple event-specific ODEs together, drastically improving computational efficiency.
  • Attention as a Drift Function: Integrating attention into the drift function of a CNF allows the model to condition on the entire history of events without the sequential bottleneck of a standard Recurrent Neural Network (RNN).
  • Smooth Transitions: Because the distributions are defined by ODEs, the model naturally produces spatial densities that change smoothly over time between discrete event observations.

Key Results and Visualizations

The authors benchmarked their models on five diverse datasets: a synthetic PINWHEEL dataset, Japanese earthquakes, COVID-19 cases in New Jersey, BOLD5000 fMRI brain signals, and CitiBike demand in NYC.

The Neural STPP models consistently outperformed traditional baselines (like Hawkes processes) and recent neural models across all datasets. Quantitatively, the Attentive CNF generally achieved the highest log-likelihood per event, particularly on complex datasets. It also scaled much better computationally as the number of events in a sequence increased compared to the Jump CNF.

Model predictions on the synthetic PINWHEEL dataset, demonstrating the ability to capture complex, multimodal spatial dynamics over time.

Qualitatively, visualizations demonstrate the models successfully capturing intricate structures—such as the rotating "pinwheel" structure of the synthetic data and the complex tectonic plate boundaries in the earthquake data. Simpler Gaussian-based models completely miss these nuanced features.

Limitations and Future Work

While highly flexible, the approach does have limitations. Even when parallelized, solving ODEs introduces more computational overhead than simple feed-forward neural networks. Additionally, the Jump CNF can become numerically unstable for very long sequences, requiring specific regularization techniques during training.

Looking forward, the authors suggest extending this framework to Riemannian CNFs. This would allow for modeling events directly on the surface of a sphere (like the Earth) rather than projecting them onto a flat 2D map, which inherently introduces spatial distortion.

Summary updated

BibTeX
@inproceedings{chen2021neural,
  author = {Ricky T. Q. Chen and Brandon Amos and Maximilian Nickel},
  title = {{Neural Spatio-Temporal Point Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=XQQA6-So14},
}
Figure