Introduction
Temporal Point Processes (TPPs) are essential mathematical frameworks for modeling asynchronous event sequences in continuous time, such as user interactions, financial transactions, or medical histories. However, real-world datasets are often heterogeneous, consisting of sequences generated by diverse underlying mechanisms or clusters. Standard TPP models typically treat all sequences as coming from a single distribution, failing to capture this latent structure. While mixture models can address heterogeneity, they often suffer from high computational complexity, parameter inefficiency, and sensitivity to early classification errors. This paper proposes a novel "structure-enhanced" TPP that utilizes Gromov-Wasserstein (GW) regularization to learn inherent clustering structures within a single, efficient model.
Proposed Methodology
The core of the proposed approach is a "plug-and-play" regularizer that can be integrated into the Maximum Likelihood Estimation (MLE) framework of various neural TPPs. The framework bridges the gap between parametric model learning and nonparametric structural discovery.
As illustrated in the framework overview, the process involves three main components:
- Sequence Embedding: Each event sequence is mapped to a fixed-dimensional vector (embedding) using an aggregation method such as mean-pooling over the hidden states of the TPP.
- Nonparametric Similarity Kernel: To provide a structural "ground truth" without relying on model parameters, the authors compute a nonparametric distance metric based on the raw timing and types of events in the sequences.
- Gromov-Wasserstein (GW) Regularization: The GW distance is used to measure the discrepancy between the similarity matrix of the model's embeddings and the nonparametric similarity kernel. Because GW distance can compare matrices of different sizes, the authors can efficiently sample a small subset of sequences as a "reference" structure, making the regularization scalable to large datasets ($O(M^2)$ bottleneck is avoided).
Experimental Setup
The researchers evaluated the method on both synthetic and real-world benchmarks:
- Synthetic Data: Sequences from four distinct TPP types (e.g., Poisson, Hawkes) to test cluster recovery.
- Real-World Benchmarks: Diverse datasets including Taobao (user browsing), StackOverflow (badge history), Retweet (Twitter interactions), and Taxi (NYC transit patterns).
Key Results and Discussion
The inclusion of GW regularization significantly enhances both the interpretability and the predictive performance of the models. On synthetic data, the regularized models (e.g., THP+Reg) achieved substantial gains in Normalized Mutual Information (NMI) and Rand Index (RI), indicating successful identification of hidden generative processes.
As shown in the visual analysis above, the standard Transformer Hawkes Process (THP) produces a "blurry" cloud of embeddings (a) and a poorly defined similarity kernel (d). In contrast, the regularized version (THP+Reg) produces distinct, well-separated clusters in the t-SNE plot (b) and a similarity kernel (e) that closely mirrors the nonparametric ground truth (c).
Beyond interpretability, the method consistently outperformed complex mixture models in prediction accuracy (ACC) on real-world datasets like Taobao and Retweet. This suggests that by using clustering as a structural prior, the model avoids becoming a "jack of all trades" and instead learns more specialized, accurate representations for different sequence types.
Conclusion
This work demonstrates that Gromov-Wasserstein regularization is a powerful tool for enhancing TPPs with structural awareness. By aligning parametric embeddings with nonparametric similarity kernels, the model gains the benefits of mixture models—interpretability and cluster-specific accuracy—while maintaining the simplicity and parameter efficiency of a single TPP. Future work may explore more sophisticated pooling methods and further optimize the trade-off between prediction accuracy and log-likelihood fitness.
Summary updated