Is Score Matching Suitable for Estimating Point Processes?

Haoqun Cao, Zizhuo Meng, Tianjun Ke, Feng Zhou

Introduction

Maximum Likelihood Estimation (MLE) for point processes is notoriously difficult because it requires calculating complex integrals. While "Score Matching" (SM) was proposed as a computational shortcut, recent research proves that previous attempts were mathematically incomplete and failed for general models. To address this, researchers have introduced Weighted Score Matching (WSM), a novel estimator that uses a clever weight function to bypass these errors, offering a consistent, efficient, and theoretically sound alternative to MLE.

The Computational Bottleneck of Point Processes

Point processes, such as Poisson and Hawkes processes, are the mathematical backbone for modeling discrete events over time—from earthquake aftershocks and high-frequency stock trades to the spread of viral tweets.

The standard method to train these models is Maximum Likelihood Estimation (MLE). However, MLE suffers from a "normalizing constant" problem: it requires calculating the integral of the intensity function over time. For complex or high-dimensional models, such as deep neural point processes, this integral is often impossible to solve analytically. Researchers usually resort to numerical integration, which is computationally expensive and scales poorly.

Score Matching (SM) emerged as a popular alternative that avoids integrals by matching the gradient of the model's log-density to the data. However, previous applications of SM to point processes contained a major theoretical flaw: they ignored the "boundary terms" that arise during integration by parts. Because point processes are defined on specific time windows (like $[0, T]$) rather than the entire real line, these ignored terms do not vanish, leading to heavily biased and inaccurate parameter estimates.

The Solution: Weighted Score Matching (WSM)

To fix this theoretical gap, the authors propose Weighted Score Matching (WSM) and its autoregressive counterpart (AWSM). The core innovation relies on a few key mathematical adjustments:

  1. The Weighting Trick: A weight function $h(T)$ is introduced into the score matching objective. This function is specifically designed to be zero at the boundaries of the integration region (e.g., when an event time $t_n$ approaches the previous event $t_{n-1}$ or the end of the window $T$).
  2. Eliminating the Intractable: By forcing the boundary values to zero, the "incomplete" terms that plagued previous research are mathematically eliminated. This yields an "implicit" objective function that can be computed directly from data without knowing the true underlying distribution or calculating the intensity integral.
  3. Optimal Weighting: The paper identifies a "near-optimal" weight function based on the distance between an event and its boundaries. This specific function is shown to provide the best convergence rates.

Unlike previous empirical workarounds, the authors provide formal proofs for the consistency and convergence rates of their estimator, explicitly accounting for the fact that the number of events in a window is itself a random variable ("stochastic dimensionality").

Experimental Validation and Key Results

The researchers validated their approach using both synthetic datasets (Inhomogeneous Poisson, Exponential/Gaussian Hawkes processes) and real-world datasets (StackOverflow, Twitter, Taobao), alongside deep learning benchmarks like the Self-Attentive Hawkes Process (SAHP).

Parameter estimation errors on synthetic datasets

The results demonstrate a stark contrast between the proposed WSM and previous methods:

  • Superior Accuracy: On synthetic data, WSM recovered ground-truth parameters with near-zero error. In contrast, the "incomplete" SM estimators from previous papers failed significantly, producing massive estimation errors.
  • MLE Consistency: On real-world datasets, WSM produced Log-Likelihood and Prediction Accuracy results almost identical to MLE, proving it is a reliable substitute.
  • Computational Speedup: In scenarios where MLE requires many integration nodes to be accurate (e.g., complex Hawkes processes), WSM was significantly faster while maintaining the same level of precision.

Limitations and Future Work

While WSM presents a major step forward, it does have limitations. The weight function requires knowing the exact observation endpoint $T$. In datasets where $T$ isn't explicitly recorded (and only the time of the last event is known), researchers must approximate $T$ or truncate data. Additionally, if data is heavily concentrated right at the boundaries, the weighting approach might require more samples to maintain high precision. Future work will likely focus on refining weight functions for extremely high-dimensional multivariate Hawkes processes.

Summary updated

BibTeX
@inproceedings{cao2024is,
  author = {Haoqun Cao and Zizhuo Meng and Tianjun Ke and Feng Zhou},
  title = {{Is Score Matching Suitable for Estimating Point Processes?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=HQgHCVZiHw},
}
Figure