Learning Point Processes using Recurrent Graph Network

Saurabh Dash, Xueyuan She, Saibal Mukhopadhyay · DOI

Abstract

Modeling discrete event sequences, known as Temporal Point Processes (TPP), is critical for understanding phenomena like financial trading and clinical visits. While Transformers offer high expressiveness for these tasks, their quadratic computational complexity ($O(N^2)$) relative to sequence length creates a significant "memory wall." We present the Recurrent Graph Network (RGN), an architecture that shifts focus from event history to event types. By attending over a fixed set of event types, RGN achieves constant complexity relative to sequence length, significantly improving efficiency and memory usage while outperforming state-of-the-art models in prediction accuracy.

Introduction

Many real-world datasets consist of "discrete event sequences"—streams of events where each entry has a timestamp and a type. Traditional models like the Hawkes Process rely on rigid assumptions, while modern deep learning approaches like RNNs struggle with long-term dependencies. Transformers have become the gold standard for sequence modeling, but their self-attention mechanism requires comparing every event to every previous event. For long sequences, this $O(N^2)$ cost becomes prohibitive.

The Recurrent Graph Network (RGN) addresses this by treating the sequence as a superposition of different sequences, where each node in a graph represents a unique event type. This allows the model to capture complex relational dependencies without the overhead of full history attention.

Methodology: The Recurrent Graph Network

The core innovation of RGN is type-centric attention. Instead of attending to the entire history of $N$ events, the model maintains a graph where each node represents one of the possible event types.

The RGN architecture processes events by updating type-specific nodes and using graph attention to model inter-type influences.

The architecture operates in three stages:

  1. Input-to-Graph Update: When an event occurs, an LSTM updates the hidden state of the corresponding node. This provides a per-type memory of past occurrences.
  2. Graph-to-Graph Update: A Graph Attention Network (GAT) computes how information propagates between event types. This step models the relational influence (e.g., how a "Buy" order might trigger a "Sell" order).
  3. Global Update: The final graph state is processed by a Multi-Layer Perceptron (MLP) to calculate the conditional intensity function, determining the likelihood of future events.

By shifting attention to nodes rather than history, complexity is reduced to $O(|\mathcal{Y}|^2)$, where $|\mathcal{Y}|$ is the number of event types. In most applications, this is significantly smaller than the sequence length, leading to massive efficiency gains.

Experimental Results

The RGN was evaluated against the Transformer Hawkes Process (THP) on benchmarks including Retweets, StackOverflow, MIMIC-II, Financial Transactions, and a new StarCraft II build-order dataset.

Accuracy and Computational Efficiency

RGN consistently outperformed THP, showing up to an 8% improvement in log-likelihood and a 13% reduction in time prediction error. The efficiency gains were most pronounced on long sequences. In financial transaction data, RGN required 77x fewer computations (MFLOPs) and 5x fewer activations than THP. Memory usage was also drastically lower: RGN required only 1.02 GB of GPU memory compared to 7.15 GB for the Transformer model on the same sequence.

Interpretability and Insights

A key advantage of the RGN is its inherent interpretability. Because the model uses attention between event types, the resulting attention matrices provide a window into the evolving relationships within the data stream.

Attention matrices visualize the time-varying relational graph between different event types, offering insights into how events trigger one another.

This "strong inductive bias"—the assumption that event types interact relationally—helps the model learn faster and generalize better than "blank slate" architectures like standard Transformers.

Conclusion and Future Work

RGN demonstrates that focusing on event types rather than raw history can overcome the "memory wall" of Transformers in TPP modeling. While highly effective when the number of event types is small relative to sequence length, its efficiency decreases in scenarios with many rare event types. Future research will explore dynamic graphs to accommodate emerging event types and spline-based interpolation for better continuous-time modeling.

Summary updated

BibTeX
@inproceedings{dash2022learning,
  author = {Saurabh Dash and Xueyuan She and Saibal Mukhopadhyay},
  title = {{Learning Point Processes using Recurrent Graph Network}},
  booktitle = {IJCNN},
  year = {2022},
  doi = {10.1109/ijcnn55064.2022.9892129},
}
Figure