TL;DR
The authors introduce CDiff, a novel generative model that uses interacting diffusion processes to forecast sequences of events occurring at irregular intervals. By predicting an entire sequence of future events simultaneously rather than one-by-one, CDiff avoids the error accumulation that plagues traditional autoregressive models, setting a new state-of-the-art for long-horizon forecasting.
What Problem Does This Paper Address?
Predicting "what happens next and when" is the core objective of Temporal Point Processes (TPPs). Applications for these models range from modeling high-frequency trading to predicting when a user will next click on a website.
The current gold standard, Neural TPPs, typically operates autoregressively: the model predicts the next event, then uses that prediction as the ground truth to predict the subsequent one. This leads to two major issues:
- Error Propagation: Small mistakes in the first few steps snowball, leading to poor long-term (long-horizon) accuracy.
- Independence Assumptions: Many models assume that the type of an event and the time it occurs are independent given the history. This fails to capture complex real-world correlations (e.g., an "urgent" event type might always follow a very short time interval).
Methods
The authors propose CDiff, a sequence-to-sequence diffusion model. Instead of predicting events sequentially, it starts with a sequence of pure noise and "denoises" it into a valid sequence of $N$ future events.
Key technical innovations include:
- Cross-Diffusion: The model employs two separate but interacting diffusion processes. One handles continuous inter-arrival times (using Gaussian noise after a Box-Cox transformation to handle strictly positive data), and the other handles categorical event types (using multinomial diffusion).
- Interacting Denoising Functions: This is the "secret sauce." During the generative process, the denoising function for time intervals takes the current state of event types as input, and vice versa. This allows the model to learn the joint probability distribution of "what" and "when" directly.
- Transformer-Based Architecture: CDiff uses a continuous-time Transformer to encode historical context and standard Transformer blocks for the denoising functions, allowing it to capture long-range dependencies in the event history.
Datasets
The model was evaluated on a diverse set of six real-world datasets and one synthetic benchmark:
- Taobao: User website click streams.
- Taxi: NYC taxi pickup/drop-off locations and actions.
- StackOverflow: History of user badge awards.
- Retweet: Social media interaction patterns.
- MOOC: Student interactions within an online course system.
- Amazon: Product category review sequences.
- Synthetic Hawkes: Data generated from a traditional Hawkes process to test the model against known ground-truth dynamics.
Key Insights and Ideas
- Parallel Generation vs. Sequential Drift: By generating the entire sequence at once, CDiff maintains a "global" view of the forecast. The authors show via statistical tests that while all models degrade as they look further into the future, CDiff's error grows significantly slower than its competitors.
- Capturing Multi-modality: Real-world time intervals are often multi-modal (e.g., events happen either very quickly or after a long delay, but rarely in between). Diffusion models are famously good at capturing these complex distributions where traditional parametric models (like those based on Exponential or Weibull distributions) struggle.
- The Power of Interaction: An ablation study ("CDiff-indep") proved that letting the two diffusion processes "talk" to each other is critical. Modeling time and type jointly consistently outperformed modeling them as independent processes.
Key Results
CDiff was compared against state-of-the-art baselines including HYPRO, AttNHP, and TCDDM.
- Superior Accuracy: CDiff outperformed all baselines across nearly all datasets and metrics, including Optimal Transport Distance (OTD) and sMAPE for timing.
- Long-Horizon Dominance: The performance gap between CDiff and autoregressive models widened as the prediction horizon increased (e.g., predicting 20 events ahead vs. 1 event ahead).
- Efficiency: Despite having more parameters, CDiff offers improved sampling efficiency because it generates the entire sequence in parallel, whereas autoregressive models must wait for each step to finish before starting the next.
Limitations and Future Work
The authors acknowledge a few constraints:
- Fixed Horizon: The current model requires the user to specify a fixed number of events ($N$) to forecast. In some real-world scenarios, one might want to forecast all events within a fixed time window regardless of how many events that entails.
- Hyperparameter Sensitivity: Like many diffusion models, performance can be sensitive to the number of diffusion steps, though the authors provide a sensitivity study suggesting that 100–200 steps are generally sufficient.
Future work could involve adapting the model to handle variable-length sequences more dynamically or exploring even more complex interaction layers between the diffusion processes.
Summary updated