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

Meta Temporal Point Processes

Wonho Bae, Mohamed Osama Ahmed, Frederick Tung, Gabriel L. Oliveira

TL;DR

This paper introduces Meta Temporal Point Processes (Meta TPP), a framework that treats individual event sequences as distinct "tasks" within a meta-learning paradigm. By framing TPPs as Neural Processes, the authors develop an Attentive TPP model that excels at capturing unique sequence dynamics and periodic patterns, significantly outperforming standard supervised models in noisy and shifting environments.

What Problem Does This Paper Address?

Temporal Point Processes (TPPs) are the mathematical tools we use to model discrete events occurring over time—think of taxi pickups, stock trades, or social media posts. Traditionally, "Neural TPPs" are trained using a standard supervised learning approach: one large model is trained on a massive collection of sequences, assuming they all follow a similar underlying distribution.

However, this approach has a major flaw: real-world sequences are diverse. The pickup patterns of a taxi driver in Manhattan during a storm are vastly different from a driver in a quiet suburb on a sunny day. Supervised models often overfit to the "average" pattern and struggle to adapt to the unique characteristics of a specific sequence. Furthermore, they are often brittle when faced with missing data (noise) or changes in patterns over time (distribution drift).

Methods

The authors propose shifting from supervised learning to meta-learning. They frame the TPP problem through the lens of Neural Processes (NPs), a family of models that learn a distribution over functions.

Architectural comparison of Neural TPP, Conditional Meta TPP, and the proposed Attentive TPP.

Key Innovations:

  1. Sequences as Tasks: Instead of one big dataset, every event sequence is treated as a separate "task." The model learns to quickly adapt its predictions based on a "context set" of previous events in that specific sequence.
  2. Meta TPP & Latent Path: They introduce a latent variable $z$ to capture the stochasticity and unique "style" of a sequence. This allows the model to represent uncertainty and adapt to sequence-specific dynamics.
  3. Attentive TPP: To handle sequences with repeating patterns (like daily commutes), they add a cross-attention module. This module compares the current "local history" (a small window of recent events) against all previous local histories in the sequence. If a similar pattern occurred in the past, the model "attends" to it to improve its next-event prediction.
  4. Local History Windowing: To keep computation efficient, they define target inputs as a fixed window of $k$ recent events, ensuring the model focuses on relevant local dynamics rather than just the entire global history.

Datasets

The researchers evaluated their models on two categories of data:

  • Standard Benchmarks: Stack Overflow, Mooc, Reddit, and Wiki.
  • Periodic Benchmarks: Three datasets with strong cyclical patterns: Sinusoidal wave (synthetic), Uber (pickup times), and NYC Taxi (pickup times).

Key Insights and Ideas

  • Inductive Bias for Periodicity: The "aha moment" here is that cross-attention acts as a powerful inductive bias. By explicitly matching current local history to past segments, the model naturally "discovers" periodicities (like 24-hour cycles) without being told they exist.
  • Robustness through Meta-Learning: Because the model is trained to adapt to new "tasks," it is inherently more robust. When data is missing (imputation) or the environment changes (distribution drift), the Meta TPP can rely on its context-adaptation mechanism to stay accurate, whereas standard models (like THP+) see their performance degrade rapidly.
  • Efficiency via Weight Sharing: The authors found that sharing weights between the latent path and the attention path encoders significantly reduced parameter count (by ~50%) while actually improving performance.

Key Results

  • State-of-the-Art Performance: The Attentive TPP achieved the best results (lowest RMSE and NLL) on four major benchmarks.
  • Superior Periodicity Capture: On the NYC Taxi and Uber datasets, Attentive TPP significantly outperformed baselines like Transformer Hawkes Processes (THP+). For example, on NYC Taxi, it achieved an RMSE of 8.92 compared to THP+'s 10.31.
  • Noise Resilience: In "imputation" tests (where events are randomly dropped), the performance gap between Meta TPP and standard models grew exponentially as the noise increased, proving the meta-learning approach is far more stable.
  • Handling Drift: When trained on NYC Taxi data from January/February and tested on later months, Meta TPP maintained much higher accuracy than supervised baselines, which struggled as seasonal patterns shifted.
Performance comparison showing Meta TPP maintaining lower RMSE than THP+ across shifting seasonal target domains.

Limitations and Future Work

  • Single-Step Prediction: Currently, the model is designed to predict the next event time. The authors note that extending this to predict multiple future events (long-horizon forecasting) is an important next step.
  • Computational Complexity: While windowing helps, the cross-attention mechanism still adds computational overhead compared to simpler RNN-based TPPs.
  • Marked TPP Extension: While the paper touches on "marked" TPPs (predicting both when and what the event is), the primary focus remains on the temporal aspect. Further refinement of the categorical prediction side in a meta-learning context is suggested.

Summary updated

BibTeX
@inproceedings{bae2023meta,
  author = {Wonho Bae and Mohamed Osama Ahmed and Frederick Tung and Gabriel L. Oliveira},
  title = {{Meta Temporal Point Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=QZfdDpTX1uM},
}
Figure