[Paper Review] Self-Attentive Hawkes Processes
This paper proposes a Self-Attentive Hawkes Process (SAHP) that leverages self-attention mechanisms to model asynchronous, multi-modal, and cross-correlated event sequences, improving prediction accuracy and interpretability over RNN-based alternatives. By replacing standard positional embeddings with time-aware phase-shifted sinusoidal functions, SAHP captures inter-event time intervals, enabling more accurate intensity modeling and revealing interpretable peer influence patterns through learned attention weights.
Asynchronous events on the continuous time domain, e.g., social media actions and stock transactions, occur frequently in the world. The ability to recognize occurrence patterns of event sequences is crucial to predict which typeof events will happen next and when. A de facto standard mathematical framework to do this is the Hawkes process. In order to enhance expressivity of multivariate Hawkes processes, conventional statistical methods and deep recurrent networks have been employed to modify its intensity function. The former is highly interpretable and requires small size of training data but relies on correct model design while the latter has less dependency on prior knowledge and is more powerful in capturing complicated patterns. We leverage pros and cons of these models and propose a self-attentive Hawkes process(SAHP). The proposed method adapts self-attention to fit the intensity function of Hawkes processes. This design has two benefits:(1) compared with conventional statistical methods, the SAHP is more powerful to identify complicated dependency relationships between temporal events; (2)compared with deep recurrent networks, the self-attention mechanism is able to capture longer historical information, and is more interpretable because the learnt attention weight tensor shows contributions of each historical event. Experiments on four real-world datasets demonstrate the effectiveness of the proposed method.
Motivation & Objective
- To investigate whether self-attention mechanisms, proven effective in NLP, can enhance the modeling of asynchronous, multi-modal, and cross-correlated event sequences in Hawkes processes.
- To address the limitation of conventional self-attention in handling temporal event sequences, where standard positional embeddings ignore actual time intervals between events.
- To develop a novel time-shifted position embedding method that translates inter-event time intervals into phase shifts of sinusoidal functions.
- To improve model interpretability by enabling attention weights to reveal the influence of one event type on another.
- To demonstrate the superiority of SAHP over existing RNN-based and standard Hawkes process models in both goodness-of-fit and next-event prediction tasks.
Proposed method
- Adapts the self-attention mechanism to continuous-time event sequences by modifying positional embeddings to encode time intervals as phase shifts in sinusoidal functions.
- Uses scaled dot-product attention to compute the influence of historical events on the intensity of the next event, based on query-key-value interactions between event embeddings.
- Employs a time-aware positional encoding where the phase shift of sinusoidal functions is proportional to the inter-event time, preserving temporal dynamics.
- Models the conditional intensity function of the Hawkes process as a weighted sum of past event influences, with attention weights indicating relative contributions.
- Trains the model end-to-end using maximum likelihood estimation on event sequences, optimizing for both event type and timing prediction.
- Enables interpretability by analyzing and visualizing attention weights across event types to reveal statistical influence patterns.
Experimental results
Research questions
- RQ1Can self-attention mechanisms effectively model complex, asynchronous, and multi-modal event sequences in temporal point processes?
- RQ2How can conventional self-attention be adapted to preserve temporal information, particularly inter-event time intervals, which are critical in continuous-time event modeling?
- RQ3Does the proposed time-shifted positional embedding improve model performance compared to standard sinusoidal or learned positional encodings in Hawkes processes?
- RQ4Can the attention weights in the proposed model reveal meaningful, interpretable peer influence patterns between different types of events?
- RQ5How does the Self-Attentive Hawkes Process compare to RNN-based and standard Hawkes process models in terms of prediction accuracy and model fit?
Key findings
- The Self-Attentive Hawkes Process (SAHP) achieves superior performance on both goodness-of-fit and next-event prediction tasks across one synthetic and four real-world datasets, outperforming state-of-the-art RNN-based and standard Hawkes models.
- The proposed time-shifted position embedding method effectively encodes inter-event time intervals by translating them into phase shifts of sinusoidal functions, significantly improving model expressivity.
- Attention weights in SAHP reveal that the model tends to attend to past events of the same type (diagonal attention), indicating self-excitation patterns in event sequences.
- Non-diagonal attention patterns, such as between 'Constituent' and 'Caucus' or 'Boosters and Enlightened' and 'Publicist', indicate statistically significant cross-type influences, reflecting co-occurrence patterns in real-world sequences.
- The model demonstrates higher interpretability than RNN-based counterparts, as attention weights directly reveal the contribution of one event type to the likelihood of another, enabling clear analysis of peer influence.
- Empirical results confirm that SAHP captures complex memory effects and non-additive dependencies in event dynamics more effectively than fixed-intensity or RNN-based Hawkes processes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.