Learning Neural Point Processes with Latent Graphs

Qiang Zhang, Aldo Lipani, Emine Yilmaz

Abstract

Neural Point Processes (NPPs) have become a standard for modeling asynchronous event sequences. However, they often suffer from noise due to the assumption of dense dependencies between all event types. This paper proposes a novel framework that learns a latent dependency graph to identify relevant historical influences. By employing bilevel optimization, the model prunes non-contributing relationships, leading to significant improvements in prediction accuracy and model interpretability.

Introduction

Temporal Point Processes (TPPs) are essential for modeling event sequences in domains ranging from finance to healthcare. While modern NPPs leverage deep learning to capture complex temporal patterns, they typically assume that every historical event type can influence every future event. This "density flaw" introduces significant noise, especially in large-scale systems where many event types are independent. For instance, in clinical data, a routine dental visit is unlikely to influence a subsequent cardiac event. Forcing a model to consider such irrelevant history leads to overfitting and poor generalization. This work introduces a method to "learn to omit" these non-contributing relationships by discovering a latent dependency graph.

Methodology

The proposed framework integrates graph theory with deep learning through a two-stage process:

  1. Probabilistic Graph Generator (PGG): Relationships between event types are modeled as a directed latent graph. An edge from type $v$ to type $u$ indicates that $v$ influences the prediction of $u$. These relationships are sampled from a Bernoulli distribution using type embeddings. To maintain differentiability, the Gumbel-Max trick is applied, allowing for end-to-end training via backpropagation.
  2. Bilevel Programming: The core innovation lies in treating graph discovery and parameter learning as nested tasks. In the lower-level task, the NPP parameters (e.g., influence functions) are learned on the training set given a fixed graph. In the upper-level task, the graph structure itself is optimized to minimize error on a validation set. This ensures the discovered graph promotes generalization rather than just fitting training noise.
Overview of the proposed framework, including event sequence modeling, graph generation, and the bilevel optimization process.

The learned graph acts as a plug-in mask for the Self-Attentive Hawkes Process (SAHP), effectively forcing the attention mechanism to ignore historical events deemed irrelevant by the graph generator.

Experiments and Results

The model was evaluated on four diverse datasets: Synthetic, Retweet, StackOverflow (22 badge types), and MIMIC-II (75 diagnosis types). Across all benchmarks, the proposed approach outperformed state-of-the-art baselines like RMTPP, THP, and SAHP.

On the StackOverflow dataset, the model improved the $F_1$ score for event type prediction from approximately 24% to 28.34%. Furthermore, it demonstrated superior temporal precision, reducing the Normalized Root Mean Square Error (NRMSE) for time prediction from 133.61 to 114.74. These results indicate that sparsifying the dependency structure not only improves classification but also enhances the model's ability to capture the underlying temporal dynamics.

Interpretability and Insights

A key advantage of this approach is its inherent interpretability. Unlike standard "black-box" NPPs, the learned latent graph provides a human-readable map of event dependencies. Researchers can inspect the learned parameters to understand which specific historical events are driving future behavior.

Heatmap of learned dependencies between event types (badges) in the StackOverflow dataset.

By explicitly learning to ignore irrelevant event types, the model acts as its own regularizer. The validation-led discovery process ensures that the identified dependencies represent true underlying patterns rather than coincidental correlations in the training data.

Conclusion and Future Work

This paper demonstrates that learning a sparse latent graph significantly enhances the performance and interpretability of Neural Point Processes. While the current model assumes static dependencies, future work could explore dynamic graphs that evolve over time. Additionally, scaling to extremely high-dimensional spaces with thousands of event types remains an area for further optimization.

Summary updated

BibTeX
@inproceedings{zhang2021learning,
  author = {Qiang Zhang and Aldo Lipani and Emine Yilmaz},
  title = {{Learning Neural Point Processes with Latent Graphs}},
  booktitle = {The Web Conference},
  year = {2021},
  doi = {10.1145/3442381.3450135},
}
Figure