Abstract
Temporal point process (TPP) is commonly used to model the asynchronous event sequence featuring occurrence timestamps and revealed by probabilistic models conditioned on historical impacts. While lots of previous works have focused on 'goodness-of-fit' of TPP models by maximizing the likelihood, their predictive performance is unsatisfactory, which means the timestamps generated by models are far apart from true observations. Recently, deep generative models such as denoising diffusion and score matching models have achieved great progress in image generating tasks by demonstrating their capability of generating samples of high quality. However, there are no detailed and unified works exploring and studying the potential of generative models in the context of event prediction of TPP. In this work, we try to fill the gap by designing a unified generative framework for neural temporal point process (GNTPP) model to explore their feasibility and effectiveness, and further improve models' predictive performance. Besides, in terms of measuring the historical impacts, we revise the attentive models which summarize influence from historical events with an adaptive reweighting term considering events' type relation and time intervals. Extensive experiments have been conducted to illustrate the improved predictive capability of GNTPP with a line of generative probabilistic decoders, and performance gain from the revised attention. To the best of our knowledge, this is the first work that adapts generative models in a complete unified framework and studies their effectiveness in the context of TPP.
Introduction
Temporal Point Processes (TPPs) serve as the mathematical foundation for modeling sequences of asynchronous events, such as electronic health records, stock market trades, or social media interactions. Traditionally, research in this field has prioritized "goodness-of-fit," optimizing models to maximize the likelihood of observed data. However, a high likelihood score does not necessarily translate to accurate predictions; standard TPP decoders often produce "noisy" or unrealistic future timestamps because they are constrained by the need for mathematically tractable likelihoods.
This paper introduces the Generative Neural Temporal Point Process (GNTPP) framework. By replacing standard probabilistic decoders with deep generative models—such as Diffusion models, Variational Autoencoders (VAEs), and GANs—the authors aim to bridge the gap between data fitting and high-fidelity event prediction.
Methodology
The GNTPP framework is built upon two primary innovations designed to enhance both historical encoding and future event generation.
Revised Attentive History Encoder
Standard self-attention mechanisms often fail to capture the nuanced temporal dynamics of event sequences. The authors introduce a revised encoder that incorporates an adaptive reweighting term. This term accounts for both the time interval between events and the relational similarity between event types, ensuring that the influence of past events decays or persists in a manner that reflects real-world dynamics.
Generative Probabilistic Decoders
Instead of relying on simple distributions like Log-Normal or Weibull, GNTPP integrates several state-of-the-art generative architectures to model the probability of the next event:
- Diffusion (TCDDM): Utilizes a denoising process to generate precise timestamps.
- VAE (TCVAE): Maps history to a latent space for sampling future events.
- GAN (TCGAN): Employs a discriminator to guide the generator toward realistic predictions.
- Continuous Normalizing Flow (TCCNF): Uses Neural ODEs to model probability transformations.
Experimental Evaluation
The framework was evaluated against a variety of synthetic and real-world datasets, including user interactions in MOOCs, social media retweets, and Stack Overflow badge histories.
Key Insights
- Prediction vs. Fitting: Generative models prioritize the quality of the samples they produce. By focusing on generating timestamps that mirror the distribution of real data, they achieve significantly lower error rates in "next arrival time" tasks compared to likelihood-centric baselines.
- The Diffusion Advantage: Diffusion-based (TCDDM) and VAE-based (TCVAE) models proved the most robust, successfully capturing underlying randomness without the variance issues found in score-matching approaches.
- Time-Aware Attention: The inclusion of a learnable exponential decay term in the encoder provided a consistent performance boost, confirming that the temporal distance of historical events is critical for accurate forecasting.
Performance Results
GNTPP demonstrated substantial improvements in predictive accuracy. On the MOOC dataset, traditional models like RMTPP or SAHP exhibited Mean Absolute Percent Error (MAPE) rates between 43% and 70%. In contrast, generative variants reduced this error to approximately 19-23%. Furthermore, using the Continuous Ranked Probability Score (CRPS), the authors showed that GNTPP produces more diverse and realistic samples while maintaining high accuracy in predicting event types.
Discussion and Conclusion
While GNTPP offers superior predictive performance, it introduces new trade-offs. Computational complexity is a primary concern; for instance, the TCCNF model's reliance on Neural ODEs makes it significantly slower to train and sample than simpler RNN-based models. Additionally, score-matching models (TCNSN) struggled with high variance during reverse sampling, suggesting that variance-preserving processes like Diffusion are better suited for 1D temporal data.
In conclusion, this work represents the first unified effort to adapt generative models for TPPs. The results suggest that moving beyond tractable likelihoods toward generative sampling can fundamentally improve our ability to predict complex event sequences. Future research will focus on scaling these models for more complex event types and integrating them into real-time decision-making systems.
Summary updated