Introduction
Modeling spatiotemporal point patterns—such as taxi pickups, crime events, or disease outbreaks—is frequently handled using Cox Processes. In these models, a Gaussian Process (GP) dictates the underlying "rate" or intensity of events. However, these models are notoriously "doubly intractable." Calculating the likelihood requires integrating the rate over the entire continuous domain, a task that typically lacks a closed-form solution.
Historically, researchers have relied on approximations with significant drawbacks:
- Discretization: Binning data into a grid scales poorly as the number of spatial or temporal dimensions increases.
- Thinning: Exact Markov Chain Monte Carlo (MCMC) methods are computationally prohibitive for datasets exceeding a few thousand points.
- Lloyd’s Method: Using a square-root link function makes the integral tractable but scales poorly with domain size and suffers from "nodal lines"—artificial regions of zero intensity where the latent function crosses zero.
This paper introduces a highly scalable method for performing Bayesian inference on Large-Scale Cox Processes. By combining a square-root link function with Variational Fourier Features (VFF), the approach allows researchers to model complex spatiotemporal point patterns with over 100,000 events in three dimensions on a single GPU, drastically outperforming previous grid-based or inducing-point methods in both speed and accuracy.
Methodology: Variational Fourier Features and the Constant Offset
The authors build upon the square-root link function approach ($\lambda(x) = f(x)^2$) but introduce several critical innovations to overcome its historical limitations.
Variational Fourier Features (VFF): Instead of relying on a small set of "inducing points" (local landmarks), the GP is represented using a spectral (Fourier) basis. This provides global support across the entire domain. Global support is crucial for Cox processes because the absence of events in a region is just as informative as their presence. Traditional inducing point methods struggle here because they only "see" the function locally, whereas Fourier features naturally capture the "empty space" between events.
Solving the Nodal Line Problem: A major issue with the standard square-root link function is the creation of "energy barriers" during optimization. If the latent function crosses zero, it can get stuck, creating artificial "dead zones" or nodal lines of zero intensity. The authors solve this by extending the link function to include a constant offset: $\lambda(x) = (f(x) + \beta)^2$. This simple addition effectively "lifts" the function away from zero, preventing these artificial traps.
Kernel Flexibility and Inference: The VFF framework is extended to support the Matérn family of kernels and periodic kernels, enabling the modeling of recurring patterns like time-of-day effects. For inference, the authors provide both a fast Variational Gaussian approximation and a more flexible sparse MCMC approach for scenarios where the posterior is non-Gaussian.
Key Results: Scaling to Real-World Data
The authors validated their approach on both 1D synthetic data and a massive real-world dataset of Porto taxi pickups. The Porto dataset contains 1.7 million trajectories, from which the authors modeled 462,000 downtown pickups, including a massive 3D spatiotemporal model trained on 113,000 events.
- Unprecedented Speedup: By leveraging the spectral properties of the GP, the authors reduced the complexity of the likelihood's area term, achieving $O(NM^2)$ scaling. For a 2D spatial model, the VFF approach converged in just 15–30 minutes. In stark contrast, the standard inducing point approach (Gauß+IP) failed to converge even after 48 hours.
- High Accuracy: VFF successfully resolved fine-grained spatial features that were either smoothed over or entirely missed by Kernel Intensity Smoothing (KIS) or inducing point methods.
- Spatiotemporal Scale: The method successfully fit a 3D model (latitude, longitude, and time) to over 113,000 events across the city. It accurately captured both the static spatial density of pickups and the dynamic, periodic daily cycles.
Limitations and Future Directions
While computationally efficient, the memory requirements for Fourier features grow cubically with the number of frequencies in 3D models. This imposes a practical limit on the "resolution" of the model based on available GPU RAM. Additionally, the authors noted that the Evidence Lower Bound (ELBO) is not always a perfect proxy for the best fit, meaning manual cross-validation remains necessary for hyperparameter tuning.
Future work may explore extending this framework to incorporate external covariates—such as weather conditions or local landmarks—directly into the link function, further enriching the model's predictive capabilities.
Summary updated