Self-Attentive Hawkes Process (SAHP)
A self-attention model of the Hawkes process intensity function for predicting the next event and its time.
Time series · 267 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Time series
- Parameters
- 4.2K
- Operations
- 267
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- ICML 2020
- Cited by
- 20 (as of 24 October 2026)
- Authors
- Qiang Zhang, Aldo Lipani, Omer Kirnap, Emine Yilmaz
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20322
- Graph hash
- ababd3e10775df341d447d2045579304cd7aa0a450b246d297e982f3de7667f9
- Skeleton hash
- 06424e989b8d376cefd9c312c14516b7b1872c079efe7d9302d468973d2f2cb8
- Architecture hash
- 870244407896dfdf18811c0517e0bce00f723fd6870cc8fe36aec2ceb17db958
- Diagram SHA-256
- 153cf06fc9ba265cd9cedfd1cfb14b5ab7f831f3bd42262b42015581ed8f643d
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
The self-attentive Hawkes process (SAHP) models sequences of events that occur asynchronously in continuous time, such as social media actions and stock transactions, to predict which type of event will happen next and when. The standard mathematical framework for this is the Hawkes process, and earlier work modified its intensity function with conventional statistical methods or deep recurrent networks. SAHP adapts self-attention to fit the intensity function instead.
The paper claims two benefits for this design. Compared with conventional statistical methods, SAHP is more powerful at identifying complicated dependencies between events. Compared with deep recurrent networks, self-attention can capture longer history and is more interpretable, because the learned attention weights show the contribution of each historical event. The experiments use four real-world datasets.
A separate codebase, written for the paper Transformer Embeddings of Irregularly Spaced Events and Their Participants, includes a corrected version of SAHP and says its corrections were discussed with and agreed by the SAHP authors.
Key idea. SAHP adapts self-attention to fit the intensity function of Hawkes processes, capturing longer event history than recurrent networks with interpretable attention weights.
- sahp
- self-attentive hawkes process
- self-attentive hawkes processes
- hawkes process
- temporal point process
- event sequence modeling
- intensity function
- asynchronous event sequences
- next event prediction
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2020selfattentivehawkesprocesses,
title={Self-Attentive Hawkes Processes},
author={Qiang Zhang and Aldo Lipani and Omer Kirnap and Emine Yilmaz},
year={2020},
eprint={1907.07561},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1907.07561},
}