TL;DR
ADiff4TPP introduces a novel framework that applies diffusion models with an asynchronous noise schedule to Temporal Point Processes (TPPs). By denoising earlier events faster than later ones, the model naturally respects chronological causality, providing stronger conditioning for long-horizon forecasting while elegantly handling heterogeneous, variable-length event sequences.
What Problem Does This Paper Address?
Temporal Point Processes (TPPs) are mathematical frameworks used to model sequences of discrete events occurring over continuous time—such as user clicks, financial transactions, or earthquake aftershocks. Recently, Generative Diffusion Models (DMs) have shown immense promise in sequence modeling, but adapting them to TPPs introduces three major challenges:
- Data Heterogeneity: TPP events consist of mixed data types—continuous variables (like the time elapsed between events) and discrete variables (like the event category). Standard DMs are natively designed for continuous data.
- Synchronous Noise Assumption: Traditional diffusion models inject and remove noise uniformly across an entire sequence. However, TPPs are inherently causal; past events trigger future ones. Treating all time steps with the same level of noisiness ignores this sequential dependency.
- Fixed Data Dimensions: Real-world event sequences vary drastically in length, whereas standard diffusion architectures typically demand fixed-dimensional inputs.
The authors introduce ADiff4TPP to overcome these limitations by breaking the synchronous noise assumption and diffusing data at an asynchronous pace.
Methods
The ADiff4TPP framework operates via a multi-step pipeline that transitions event data into a continuous latent space before applying a customized diffusion process:
- Event Latent Space ($\beta$-VAE): To handle data heterogeneity, the authors first train a Variational Autoencoder ($\beta$-VAE). The encoder maps continuous durations and discrete event categories into a unified, continuous latent representation, which the decoder can faithfully reconstruct.
- Asynchronous Noise Schedules: Instead of using a standard scalar timestep ($s$) to define noise levels globally, the authors introduce a matrix-valued noise schedule, $A(s)$. This matrix controls individual diffusion speeds for different parts of the sequence. Later events are intentionally replaced by Gaussian noise faster than earlier ones.
- Conditional Flow Matching (CFM): The authors extend the Flow Matching framework to accommodate matrix-valued schedules. They mathematically prove that even when the flow isn't strictly invertible (due to asynchronous tracks hitting pure noise at different times), a well-posed training objective can still be derived using Moore-Penrose pseudo-inverses.
- Masked Diffusion Transformer (DiT): The core neural network is a modified Diffusion Transformer. It ingests the matrix-valued schedule $A(s)$ via sinusoidal embeddings and utilizes multi-head self-attention masking to handle variable sequence lengths and preserve chronological order.
Datasets
The authors evaluated their approach on five widely utilized TPP benchmark datasets:
- Amazon: User history logs tracking review and purchase timings.
- Retweet: Twitter cascades tracking re-sharing event sequences.
- Taxi: Taxi pick-up and drop-off event timings.
- Taobao: User shopping behavior sequences on the e-commerce platform.
- StackOverflow: Sequences of user badge awards.
Key Insights and Ideas
- Causality via Denoising Speed: The fundamental "aha!" moment of the paper is that the generation process should mirror the arrow of time. By ensuring that earlier events are fully denoised and resolved first during generation, they act as a clean, solid conditioning foundation for predicting more distant future events.
- The Danger of Unmasked Future Noise: Through ablation studies, the authors discovered that removing attention masking severely degrades performance. Without masking, the noisy, unresolved representations of future events corrupt the model's ability to accurately forecast the immediate next event.
- Single-Pass Long-Horizon Forecasting: Unlike traditional autoregressive TPP models that must predict future events recursively step-by-step (which accumulates errors), ADiff4TPP frames forecasting as a conditional generation task. It solves a single ordinary differential equation (ODE) to predict an entire window of future events simultaneously.
Key Results
The model was evaluated on two primary tasks: next-event prediction and long-horizon forecasting.
- Next-Event Prediction: ADiff4TPP achieved state-of-the-art (SOTA) performance across all five datasets for predicting inter-event times. Most notably, it improved the Retweet dataset's Root Mean Squared Error (RMSE) by 17% (reducing it from the previous best of 21.71 down to 17.88). It also achieved top-tier accuracy in predicting event categories.
- Long-Horizon Prediction: Using the Optimal Transport Distance (OTD) metric to evaluate multi-step predictions (5, 10, 20, and 30 events into the future), ADiff4TPP consistently outperformed strong baselines like HYPRO and DTPP. Crucially, the performance gap widened in favor of ADiff4TPP as the forecasting horizon grew longer, demonstrating its robustness against error accumulation.
Limitations and Future Work
While a dedicated limitations section is not explicitly detailed in the paper, a few constraints and future directions emerge from the text:
- Hyperparameter Dependency: The model's success relies heavily on pre-tuning the $\beta$-VAE's latent dimension and regularization weight ($\beta_{max}$), requiring careful calibration for different datasets.
- Heuristic Schedule Design: Although the authors provide a generalized theoretical proof for matrix-valued noise schedules, they primarily experiment with a hand-designed piecewise-linear schedule. Future work could explore frameworks where the asynchronous noise schedule is learned dynamically alongside the model parameters.
Summary updated