Introduction
In domains such as finance, e-commerce, and clinical informatics, data frequently arrives as a sequence of "marked events"—discrete actions occurring at irregular intervals. Modeling these sequences requires Marked Temporal Point Processes (MTPPs). While the current state-of-the-art involves using Transformer architectures to parameterize a conditional intensity function, this approach suffers from significant computational bottlenecks. Specifically, training requires approximating complex integrals, and inference relies on the "thinning algorithm," a sequential rejection-sampling method that is notoriously slow and difficult to parallelize on modern hardware.
This paper introduces Decomposable Transformer Point Processes (DTPP), a framework that maintains the expressive power of Transformers while eliminating the need for the thinning algorithm, resulting in massive speedups and state-of-the-art accuracy.
Methodology
The fundamental innovation of DTPP is the decomposition of the joint probability of an event's time and type (mark). Rather than modeling a single, complex intensity function, DTPP decouples the "what" from the "when."
1. The "What": Distribution of Marks
To predict the next event type, DTPP employs a continuous-time Transformer architecture. This module processes the entire history of events to output a probability distribution over possible marks. By focusing solely on the categorical dependencies, the Transformer can capture deep, long-range patterns in event sequences.
2. The "When": Distribution of Inter-event Times
For the temporal component, DTPP utilizes a mixture of log-normal distributions to model the time elapsed between events. A key design choice here is the adoption of a Markov property: the model assumes that the timing of the next event depends primarily on the type of the most recent event rather than the entire history. This simplification acts as a regularizer, preventing the model from overfitting to the inherent noise in high-frequency temporal data.
Decoupled Training and Inference
Because the mark and time modules do not share parameters, they can be trained independently. This simplifies the optimization landscape. More importantly, for prediction, DTPP uses the closed-form mean of the log-normal mixture. This allows for deterministic, parallelized timestamp prediction, entirely bypassing the iterative sampling required by traditional neural point processes.
Experimental Evaluation
The researchers evaluated DTPP against several strong baselines, including the Self-Attentive Hawkes Process (SAHP), Transformer Hawkes Process (THP), and Attentive Neural Hawkes Process (A-NHP). The evaluation spanned a diverse set of real-world and synthetic datasets:
- MIMIC-II: Clinical ICU records.
- Amazon: E-commerce product review categories.
- Taxi: NYC borough-based pick-up/drop-off events.
- Taobao: User behavior sequences (browsing, purchasing).
- StackOverflow: User badge award histories.
- Synthetic: Data generated from Hawkes and Self-Attentive Hawkes processes.
Key Results
Predictive Accuracy
DTPP consistently outperformed baselines in both next-event time prediction (measured by RMSE) and mark prediction (measured by Error Rate) across nearly all real-world datasets. Furthermore, in long-horizon forecasting tasks—predicting a sequence of 20 future events—DTPP outperformed HYPRO, a model specifically optimized for long-term horizons.
Computational Efficiency
The most striking result is the inference speed. By removing the thinning algorithm bottleneck, DTPP achieved massive speedups:
- Taxi Dataset: DTPP was 8,130x faster than the thinning-based HYPRO.
- Taobao Dataset: DTPP maintained a 524x speedup.
What previously required over an hour of computation for baseline models was completed by DTPP in mere seconds, demonstrating its readiness for real-time applications.
Discussion and Limitations
The success of DTPP suggests that the complex history-dependence often attributed to event timing may be less critical than previously thought, or at least sufficiently captured by the Markovian assumption when paired with a strong mark-prediction module.
However, some limitations remain. Like most Transformer-based models, the mark distribution module is data-hungry and may struggle in low-data regimes. Additionally, while the Markov assumption for timing proved robust in these tests, it may be too restrictive for specific processes where inter-event times exhibit extremely long-range dependencies. Future work may explore "globally normalized" versions of the model to further refine the balance between efficiency and expressive power.
Conclusion
Decomposable Transformer Point Processes represent a significant step forward for MTPPs. By decoupling the temporal and categorical components of event sequences, DTPP provides a path toward scalable, high-performance event modeling that leverages the full parallelization capabilities of modern GPUs without sacrificing predictive accuracy.
Summary updated