From Hawkes Processes to Attention: Time-Modulated Mechanisms for Event Sequences
Xinzi Tan, Kejian Zhang, Junhan Yu, Doudou Zhou
TL;DR
The paper addresses the challenge of modeling irregular, multi-type event sequences by deriving Hawkes Attention, a time-modulated self-attention operator grounded in multivariate Hawkes process theory. It replaces fixed temporal encodings with learnable per-type neural influence kernels and a low-rank influence matrix, enabling joint learning of timing and content interactions in a scalable Transformer-like architecture. Key contributions include a principled decomposition of Hawkes intensities, per-type kernels with multiplicative time modulation, and end-to-end training that yields improved next-event time and type predictions along with interpretable influence patterns. The method also generalizes to regular time series, offering a unified framework for asynchronous event streams and continuous signals with competitive performance across diverse domains and strong interpretability of temporal dynamics.
Abstract
Marked Temporal Point Processes (MTPPs) arise naturally in medical, social, commercial, and financial domains. However, existing Transformer-based methods mostly inject temporal information only via positional encodings, relying on shared or parametric decay structures, which limits their ability to capture heterogeneous and type-specific temporal effects. Inspired by this observation, we derive a novel attention operator called Hawkes Attention from the multivariate Hawkes process theory for MTPP, using learnable per-type neural kernels to modulate query, key and value projections, thereby replacing the corresponding parts in the traditional attention. Benefited from the design, Hawkes Attention unifies event timing and content interaction, learning both the time-relevant behavior and type-specific excitation patterns from the data. The experimental results show that our method achieves better performance compared to the baselines. In addition to the general MTPP, our attention mechanism can also be easily applied to specific temporal structures, such as time series forecasting.
