Automatic Integration for Spatiotemporal Neural Point Processes

Zihao Zhou, Rose Yu

Introduction

Spatiotemporal Point Processes (STPPs) serve as the mathematical foundation for modeling discrete events that occur across both space and time. From tracking earthquake aftershocks and urban crime clusters to monitoring the spread of infectious diseases like COVID-19, STPPs allow researchers to quantify the underlying intensity of event occurrences. However, training these models effectively has long been hindered by a significant computational obstacle: the "integration nightmare."

To train an STPP model using Maximum Likelihood Estimation (MLE), one must calculate the total expected number of events over a specific volume of space and time. This requires solving a triple integral of an intensity function $\lambda(s, t)$. Because this integral must be computed repeatedly during training, it often becomes a massive bottleneck, forcing researchers to choose between model flexibility and computational tractability.

The Limitations of Current Approaches

Historically, researchers have navigated this bottleneck using three primary, yet sub-optimal, strategies:

  1. Parametric Forms: Using simple mathematical distributions (such as Gaussians) that are easy to integrate analytically. While efficient, these models lack the expressivity to capture the complex, irregular patterns found in real-world data.
  2. Monte Carlo Sampling: Approximating the integral through random sampling. While flexible, this method is computationally slow and introduces numerical noise. Crucially, Monte Carlo methods often struggle with "sharp" or highly localized intensity spikes, as random samples frequently miss these narrow peaks, leading the model to learn a "blurry" or flattened version of reality.
  3. Neural ODEs: These offer high flexibility but are notoriously expensive to compute, especially as the dimensionality of the data increases.

The AutoSTPP Framework

AutoSTPP introduces a novel framework designed to be as flexible as a deep neural network while maintaining the computational efficiency of a parametric model. The core innovation lies in Automatic Integration (AutoInt).

Dual-Network Architecture

Rather than defining an intensity function $\lambda(s, t)$ and attempting to integrate it, AutoSTPP defines an integral network $F(s, t)$. The intensity function is then obtained by taking the partial derivative of this network. Because the two networks share the same parameters, evaluating the integral over a volume becomes a straightforward task of evaluating the integral network at the boundaries. To simplify the 3D calculus, the authors utilize the Divergence Theorem, treating the intensity as a vector field and converting the volume integral into a surface integral over the six faces of a cuboid.

ProdNet Decomposition

Extending 1D monotone networks to 3D space typically introduces a trade-off: the constraints required to ensure the intensity remains non-negative often become so restrictive that the model cannot represent complex shapes. To overcome this, the authors developed ProdNet. This architecture decomposes the complex 3D influence function into a sum of products of simple 1D networks:

$$f(s_1, s_2, t) = \sum_{i=1}^{N} f_{\theta,i}^1(s_1) f_{\theta,i}^2(s_2) f_{\theta,i}^3(t)$$

By enforcing non-negativity on these univariate components, AutoSTPP ensures a valid 3D intensity without sacrificing the model's universal approximation capabilities.

Experimental Results

The authors evaluated AutoSTPP against state-of-the-art baselines (such as NSTPP and Deep-STPP) across synthetic and real-world datasets, including Japanese earthquake records and New Jersey COVID-19 case data.

Accuracy and Sharpness

On synthetic data, AutoSTPP consistently outperformed baselines in Log-Likelihood and Hellinger Distance. A key finding was the model's ability to recover "ground truth" intensity shapes. While Monte Carlo-based models tended to produce "flat" intensity functions due to sampling noise, AutoSTPP’s exact integration allowed it to recover sharp, localized peaks of activity with high precision.

Real-World Impact

In practical applications, the performance gains were substantial:

  • COVID-19 Modeling: AutoSTPP achieved a Log-Likelihood of 2.62, compared to 2.10 for the Monte Carlo baseline.
  • Computational Efficiency: By implementing a custom approach for higher-order derivatives, the framework proved to be up to 68% faster than using standard PyTorch Autograd for the necessary partial derivative calculations.

Conclusion and Future Work

AutoSTPP represents a significant step forward in making spatiotemporal modeling both accurate and efficient. By bypassing the limitations of Monte Carlo integration through the ProdNet architecture and the Divergence Theorem, it allows for the modeling of complex, sharp event patterns that were previously difficult to capture.

Despite these advances, some challenges remain. While training is highly efficient, sampling from the model to generate new synthetic events remains computationally intensive because the model lacks an easily invertible cumulative distribution function (CDF). Additionally, while the current model excels at self-exciting patterns, future research is needed to better incorporate inhibitory effects, where the occurrence of one event decreases the likelihood of another.

Summary updated

BibTeX
@inproceedings{zhou2023automatic,
  author = {Zihao Zhou and Rose Yu},
  title = {{Automatic Integration for Spatiotemporal Neural Point Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Deb1yP1zMN},
}
Figure