Edit-Based Flow Matching for Temporal Point Processes

David Lüdke, Marten Lienen, Marcel Kollovieh, Stephan Günnemann

TL;DR

EDITPP introduces a novel non-autoregressive generative framework for Temporal Point Processes (TPPs) based on "Edit Flows." By learning to transform noise into data through a continuous-time sequence of insertions, deletions, and substitutions, the model achieves state-of-the-art accuracy while significantly reducing the computational overhead of event generation.

The Autoregressive Bottleneck in TPPs

Temporal Point Processes (TPPs) are the mathematical backbone for modeling events that happen in continuous time, such as high-frequency stock trades, social media posts, or patient hospital visits. Traditionally, these are modeled autoregressively—predicting the next event based on all previous ones.

However, autoregressive models suffer from three major flaws:

  1. Sequential Bottleneck: Sampling is slow because you must generate events one by one.
  2. Error Accumulation: A small mistake early in a long sequence compounds over time.
  3. Rigidity: They are great at forecasting the future but struggle with "inpainting" (filling in missing data in the middle of a sequence).

While recent "diffusion-style" TPP models have attempted to fix this by modeling the whole sequence at once, they typically rely only on adding or removing events. This paper argues that adding a substitution (moving an event) operation acts as a vital "shortcut," making the generative process much more efficient.

Methods: The Edit Flow Process

The authors propose EDITPP, which treats the generation of an event sequence as a "flow" from a random noise sequence to a structured data sequence.

Illustration of the Edit Flow process transforming a sequence via insert, delete, and substitute operations.

Key technical components include:

  • Edit Operations: The model uses three atomic operations: Insert, Delete, and Substitute. To handle continuous time, the authors cleverly discretize the space between events into "bins," allowing the model to choose where to insert or move an event within a finite set of choices.
  • Continuous-Time Markov Chain (CTMC): The model learns the "instantaneous rates" at which these edits should occur. Instead of a fixed number of diffusion steps, the sequence evolves continuously from $s=0$ (noise) to $s=1$ (data).
  • Auxiliary Alignment Space: Training a model to find the "best" path between two different sequences is mathematically difficult. The authors solve this by using the Needleman-Wunsch algorithm (a classic tool from bioinformatics) to align noise sequences with data sequences, creating a clear "ground truth" path of edits for the model to learn.
  • Architecture: The rate model is based on the Llama transformer architecture, utilizing FlexAttention to handle variable-length sequences efficiently without the need for wasteful padding.

Key Insights

  • Substitution is a Game Changer: Previous models had to delete an event at time 0.50 and insert a new one at 0.51 to "move" it. EDITPP can simply substitute the time. This reduces the total number of operations needed to reach the target distribution.
  • Unconditional Training, Conditional Flexibility: Even though the model is trained to generate sequences from scratch (unconditionally), it can be used for forecasting or inpainting at inference time by simply "fixing" the known parts of the sequence and letting the rest evolve.
  • Bridging Discrete and Continuous: The paper successfully applies "Discrete Flow Matching" (usually used for text/tokens) to the continuous-time domain of TPPs by using quantization bins for timestamps.

Key Results

The model was evaluated on a comprehensive suite of 13 datasets, ranging from synthetic Hawkes Processes to real-world data like PUBG gaming events, Reddit comments, NYC Taxi pick-ups, and Yelp check-ins.

Performance comparison of EDITPP against baseline models across various datasets.
  • State-of-the-Art Performance: EDITPP outperformed both autoregressive (IFTPP) and diffusion-based (PSDIFF, ADDTHIN) baselines across almost all metrics, including Maximum Mean Discrepancy (MMD) and Wasserstein distances.
  • Efficiency Gains: In unconditional sampling, EDITPP required ~15% fewer edit operations than the previous best non-autoregressive model (PSDIFF).
  • Speed: On the Reddit Comments dataset, EDITPP was over 2.5x faster to sample from than PSDIFF and over 10x faster than ADDTHIN when running on an H100 GPU.
  • Robust Forecasting: Unlike many non-autoregressive models that struggle with precision, EDITPP matched or exceeded the forecasting accuracy of specialized autoregressive models while avoiding their sequential sampling limitations.

Limitations and Future Work

  • Hyperparameter Sensitivity: The model introduces several new hyperparameters, such as the number of bins ($b_{ins}$) and the maximum substitution distance ($\delta$), which may require tuning for different types of data.
  • Euler Approximation: Sampling currently relies on an Euler discretization of the continuous flow. While fast, very complex sequences might require more steps to maintain high quality.
  • Future Directions: The authors suggest extending this "Edit Flow" framework to Marked TPPs (where events have categories, like "buy" vs "sell" in finance) and higher-dimensional spatio-temporal processes.

Summary updated

BibTeX
@inproceedings{ludke2026edit,
  author = {David Lüdke and Marten Lienen and Marcel Kollovieh and Stephan Günnemann},
  title = {{Edit-Based Flow Matching for Temporal Point Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=FNf9IV1P2L},
}
Figure