Long Horizon Forecasting with Temporal Point Processes

Prathamesh Deshpande, Kamlesh Marathe, Abir De, Sunita Sarawagi

Abstract

Predicting sequences of events over long time horizons is a critical challenge in machine learning, applicable to domains ranging from social media dynamics to emergency service planning. While Marked Temporal Point Processes (MTPPs) excel at short-term "nowcasting," they often suffer from "cascading drift"—where small errors in early predictions accumulate, leading to catastrophic failure in long-term forecasts. This paper introduces DualTPP, a framework that mitigates this drift by enforcing consensus between microscopic event-level models and macroscopic count-level models through a novel joint inference optimization.

Introduction

Most modern MTPP models are auto-regressive: they predict the immediate next event and then use that prediction as input for subsequent steps. While effective for the near future, this approach is prone to cascading drift. In long-horizon forecasting, slight inaccuracies in the timing or type of early events disconnect the model's internal state from reality. By the time the model reaches the end of a distant window, its predictions often resemble noise. DualTPP addresses this by introducing a macroscopic "anchor" to keep the microscopic event sequence on track.

The DualTPP Framework

DualTPP utilizes a dual architecture that views the same data stream at two different scales simultaneously:

  1. The Event Model (Microscopic): An intensity-free MTPP that employs a Gated Recurrent Unit (GRU) to embed event history. To ensure stable gradients over long horizons, it models inter-arrival times using a simple Gaussian distribution rather than complex, often "peaky" intensity functions.
  2. The Count Model (Macroscopic): This component predicts the total number of events expected within fixed future time windows (bins), ignoring individual timings. It serves as a sanity check for the event-level predictions.

Joint Inference via Optimization

The core innovation lies in the inference protocol. Instead of simple stochastic sampling, DualTPP solves a joint optimization problem. It seeks an event sequence that is highly probable according to the Event Model while strictly satisfying the count constraints predicted by the Count Model.

The DualTPP architecture combining microscopic event modeling with macroscopic count constraints.

This is formulated as a sequence of constrained quadratic optimization problems. The system uses a binary search to determine the optimal event count for a given bin and then solves for specific event timings that maximize likelihood under that constraint.

Experimental Evaluation

The authors evaluated DualTPP against state-of-the-art baselines, including RMTPP, Transformer Hawkes Processes (THP), and WGANs, across four diverse real-world datasets: US Election tweets, NYC Taxi data, and 911 emergency calls (Traffic and EMS).

Key Results

  • Drift Resistance: DualTPP demonstrates remarkable stability as the forecast horizon increases. While baseline errors grow rapidly, DualTPP’s error remains relatively flat.
  • Wasserstein Distance: The model achieved significant reductions in Wasserstein distance—a metric measuring the distance between predicted and actual event sequences—sometimes reaching an order of magnitude improvement over traditional MTPPs.
  • Count Accuracy: On the Taxi dataset, DualTPP’s Count Mean Absolute Error (MAE) was 39, compared to 128 for the next best baseline (WGAN), highlighting its superior ability to capture event volume.
Comparison of Wasserstein Distance across different prediction horizons for the Traffic-911 dataset.

Conclusion

DualTPP represents a paradigm shift in temporal point process research by focusing on the inference protocol as much as the model architecture. By bridging the gap between microscopic event details and macroscopic statistical trends, it provides a robust solution for long-term event forecasting. Future work may extend this framework to continuous event marks and explore richer macroscopic signals beyond simple counts to further refine prediction accuracy.

Summary updated

BibTeX
@inproceedings{deshpande2021long,
  author = {Prathamesh Deshpande and Kamlesh Marathe and Abir De and Sunita Sarawagi},
  title = {{Long Horizon Forecasting with Temporal Point Processes}},
  booktitle = {WSDM},
  year = {2021},
  url = {https://openreview.net/forum?id=i7jzblWa9b},
}
Figure