Fast Gaussian process methods for point process intensity estimation

John P. Cunningham, Krishna V. Shenoy, Maneesh Sahani

Introduction

Estimating the changing "intensity" of a point process—such as neural spikes, earthquake occurrences, or stock trades—using Gaussian Processes (GPs) is notoriously difficult due to computational bottlenecks. While GPs are considered a gold standard for inferring these hidden intensity functions because they provide smooth, probabilistic estimates, they scale cubically with the number of time bins.

If you discretize just one second of data into millisecond bins, you generate $n=1,000$ points. Standard GP methods require $O(n^2)$ memory to store the necessary matrices and $O(n^3)$ time to invert them. At $n=10,000$ (merely 10 seconds of data), the problem becomes practically intractable for a standard workstation. This paper introduces a specialized algorithm for renewal processes that slashes this complexity from $O(n^3)$ to roughly $O(n \log n)$, turning tasks that would take a month into seven-minute jobs.

Methodology

The authors focus on a specific class of models: inhomogeneous renewal processes (specifically the Gamma interval process) paired with a GP prior. Their "fast" approach relies on four clever mathematical optimizations:

  1. Exploiting Hessian Structure: They demonstrate that for renewal processes, the Hessian matrix used in optimization has a highly specific structure: it is the sum of the inverse covariance matrix and a block-diagonal matrix.
  2. Matrix Inversion Lemma + Conjugate Gradients (CG): Instead of directly inverting the massive $n \times n$ matrix, they apply the Sherman-Morrison-Woodbury formula. This allows them to solve the system using Conjugate Gradients, which only requires multiplying a vector by the covariance matrix.
  3. FFT for Toeplitz Matrices: Because the time bins are evenly spaced, the GP covariance matrix is "Toeplitz." Multiplying a vector by a Toeplitz matrix can be executed in $O(n \log n)$ time using Fast Fourier Transforms (FFT). This completely avoids the need to store the full $n \times n$ matrix in memory.
  4. Low-Rank Model Selection: To optimize hyperparameters (like the smoothness of the intensity), the authors approximate the "log-determinant" term. They leverage the fact that while the time-grid size $n$ is large, the number of actual events $N$ is usually much smaller, effectively reducing the determinant calculation from an $n \times n$ problem to an $N \times N$ problem.

Key Insights

  • The "Event-Space" vs. "Time-Space" Divide: The core breakthrough is realizing that the complexity of the likelihood is tied to the number of events ($N$), while the GP prior is tied to the number of time bins ($n$). By decoupling these using the matrix inversion lemma, the authors handle high-resolution time grids without the $O(n^3)$ penalty.
  • Implicit Representations: The algorithm never actually constructs the full $n \times n$ matrices. By keeping everything in "operator form" (using FFTs and diagonal updates), the memory requirement drops from $O(n^2)$ to $O(n)$.
  • Spectral Concentration: Surprisingly, preconditioning the Conjugate Gradient method—a standard trick to speed up convergence—actually slowed the process down. The specific structure of this problem meant the "raw" CG already converged extremely quickly (often in under 30 steps) because the eigenvalues were naturally well-behaved.

Key Results

The performance gains achieved by this method are dramatic. The authors evaluated their approach using synthetic datasets designed to mimic real-world scenarios like neural firing, testing time bins ($n$) ranging from 500 to 10,000.

Performance comparison between the fast and naive methods across various dataset sizes.

As detailed in the performance benchmarks:

  • MAP Estimation Speedup: For $n=10,000$, the "fast" method solved the intensity estimate in 37.9 seconds, while the naive method was projected to take an entire day—a roughly 2000x speedup.
  • Full Estimation (Iterative): When including hyperparameter optimization, the naive method would take an estimated one month for the largest dataset. The fast method completed the same task in just over 7 minutes (423 seconds).
  • Accuracy Maintained: The Mean Squared Error (MSE) between the fast and naive methods remained vanishingly small ($10^{-4}$ to $10^{-6}$), proving that these massive speedups do not sacrifice the quality of the estimate.

Limitations and Future Work

While highly effective, the approach has a few constraints:

  • 1D Constraint: The current implementation is optimized for 1D time series. While techniques like Fast Gauss Transforms could theoretically extend this to spatial point processes (2D/3D), the specific Toeplitz/FFT trick used here is most efficient in one dimension.
  • Renewal Process Assumption: The speedups rely heavily on the block-diagonal structure of the renewal process likelihood. If the observation model featured long-range dependencies between events, the $O(n)$ scaling of the likelihood computation might break down.
  • Implicit Gradients: The authors acknowledge that they ignore "implicit gradients" during model selection to save time. However, they provide empirical evidence suggesting these are small enough to be safely omitted without degrading performance.

Summary updated

BibTeX
@inproceedings{cunningham2008fast,
  author = {John P. Cunningham and Krishna V. Shenoy and Maneesh Sahani},
  title = {{Fast Gaussian process methods for point process intensity estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2008},
  doi = {10.1145/1390156.1390181},
}
Figure