NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

EventFlow: Forecasting Temporal Point Processes with Flow Matching

Gavin Kerrigan, Kai Nelson, Padhraic Smyth

TL;DR

This paper introduces EventFlow, a novel non-autoregressive model for forecasting temporal point processes (TPPs). By leveraging the flow matching framework, EventFlow directly learns the joint distribution of future event times, overcoming the cascading error issues of traditional autoregressive models and achieving significant improvements in forecasting accuracy with fewer computational resources.

What Problem Does This Paper Address?

Many real-world phenomena, from earthquakes to customer behavior, can be modeled as sequences of events occurring at irregular intervals. These are known as temporal point processes (TPPs). Current machine learning approaches often model TPPs using autoregressive neural networks, where the model predicts one event at a time, conditioned on past events. While effective for short-term predictions, this approach suffers from compounding errors when forecasting longer horizons, leading to degraded performance. Furthermore, sampling from these models can be computationally expensive and complex. The paper aims to address these limitations by developing a non-autoregressive generative model that can directly forecast entire sequences of future events.

Methods

EventFlow builds upon the flow matching framework, a technique for generative modeling that learns a continuous transformation between a simple reference distribution and a target data distribution. Instead of predicting events sequentially, EventFlow learns a vector field that transports a set of initial random event times to a forecasted sequence.

Key aspects of the method include:

  • Non-autoregressive generation: The model directly learns the joint distribution of event times, avoiding the step-by-step prediction of autoregressive models.
  • Flow matching: This framework allows for direct learning of the generative process by interpolating between a reference distribution and the data distribution.
  • Decoupled event count and time modeling: EventFlow explicitly models the number of future events using a separate, regularized cross-entropy objective, which is then combined with the flow-based model for event times.
  • Transformer architecture: The model utilizes transformers for both the event count prediction and the vector field generation, enabling it to handle variable-length sequences and capture long-range dependencies.
  • Conditional forecasting: For forecasting tasks, an encoder embeds the observed history, which is then used to condition the learned vector field.

Datasets

The paper evaluates EventFlow on a diverse set of datasets, including:

  • Synthetic Datasets: Seven synthetic datasets adopted from Omi et al. [2019], designed to exhibit various TPP behaviors.
  • Real-World Datasets: Six real-world datasets commonly used as benchmarks for unmarked TPPs, including PUBG, Reddit-C, Reddit-S, Taxi, Twitter, Yelp-Airport, and Yelp-Miss.

Key Insights and Ideas

  • Non-autoregressive models can outperform autoregressive models for multi-step TPP forecasting: The paper provides strong empirical evidence that directly modeling the joint distribution of event sequences, rather than predicting them sequentially, leads to significantly lower forecasting errors.
  • Flow matching is a powerful tool for TPPs: The framework's ability to learn continuous transformations between distributions proves effective for generating complex event sequences.
  • Decoupling event count and time prediction is beneficial: Explicitly modeling the number of future events separately from their timing allows for more accurate predictions of both aspects.
  • Efficiency gains are substantial: EventFlow achieves state-of-the-art forecasting accuracy with significantly fewer model calls at sampling time compared to many existing methods.

Key Results

  • Forecasting Accuracy: EventFlow achieved a 20%-53% lower forecast error than the nearest baseline on standard TPP benchmarks.
  • Sampling Efficiency: The model can achieve competitive performance with as few as one forward pass of the neural network at sampling time, a significant improvement over methods requiring hundreds of calls.
  • Unconditional Generation: EventFlow demonstrated strong performance on unconditional generation tasks, achieving the best or second-best MMD on most datasets.
  • Event Count Prediction: The model showed strong performance in predicting the number of future events, outperforming baselines that implicitly model event counts.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Extension to marked and spatiotemporal TPPs: The current work focuses on event times only. Extending EventFlow to incorporate event marks or spatial information is a natural next step.
  • Constrained flows: The current model relies on Gaussian noise, which doesn't explicitly enforce support constraints on the time interval [0,T]. Developing constrained flow mechanisms could further improve performance.
  • Architectural choices: While transformers are used, a more controlled study of architectural choices and their interaction with flow-based objectives could be beneficial.
  • Handling of long sequences: For very long sequences, the transformer architecture incurs higher computational costs. Investigating more efficient architectures for such cases could be valuable.

Summary updated

BibTeX
@inproceedings{kerrigan2026eventflow,
  author = {Gavin Kerrigan and Kai Nelson and Padhraic Smyth},
  title = {{EventFlow: Forecasting Temporal Point Processes with Flow Matching}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=QXqKGOE2JW},
}
Figure