Learning Granger Causality for Hawkes Processes

Hongteng Xu, Mehrdad Farajtabar, Hongyuan Zha

TL;DR

This paper introduces a nonparametric method to uncover "who triggers whom" in complex event sequences, such as IPTV viewing habits or disease progressions. By modeling these events as Hawkes processes and using sparse-group-lasso regularization, the researchers can simultaneously learn the underlying Granger causality graph and the specific timing patterns of how events influence one another.

What Problem Does This Paper Address?

In many real-world scenarios—like a patient’s medical history or a user’s web browsing—data arrives as a sequence of discrete events in continuous time. Understanding the "Granger causality" in these sequences means identifying if historical events of type A (e.g., watching a movie) increase the likelihood of event type B occurring in the future (e.g., watching a sequel).

While Granger causality is well-studied for discrete-time series (like stock prices sampled every minute), it is much harder for point processes where events are irregular and asynchronous. Existing methods often rely on rigid, predefined mathematical shapes for these influences or require discretizing time into bins, which can lead to inaccurate results or massive computational overhead.

Methods

The authors focus on Hawkes Processes, a class of point processes where past events "trigger" future ones. Their approach, called MLE-SGLP, introduces several key innovations:

  1. Nonparametric Impact Functions: Instead of assuming the influence of an event decays exponentially, they represent the "impact function" as a linear combination of flexible basis functions (like Gaussians).
  2. Sparse-Group-Lasso (SGL): To find the causality graph, they apply group sparsity. If the entire set of coefficients for the impact of event $A$ on event $B$ is zeroed out, then $A$ does not Granger-cause $B$.
  3. Adaptive Basis Selection: Borrowing from signal processing and the Nyquist-Shannon sampling theorem, they propose an automated way to determine how many basis functions are needed based on the "bandlimit" of the observed event intensities.
  4. EM-based Algorithm: They derive an Expectation-Maximization (EM) algorithm that provides closed-form updates, making the learning process efficient and capable of handling clustering structures among event types.
Visualization of recovered impact functions for synthetic data

Datasets

  • Synthetic Data: Two datasets featuring 500 event sequences each. One uses "sine-like" impact functions and the other uses "piecewise constant" functions to test the model's ability to recover complex, non-standard triggering patterns.
  • IPTV Viewing Records: A real-world dataset of 7,100 users watching 13 categories of TV programs (Drama, Movie, News, etc.) over 11 months. The goal was to map how watching one category influences the future consumption of others.

Key Insights and Ideas

  • Causality as Group Sparsity: The "aha moment" is linking the existence of a directed edge in a causality graph directly to the group-norm of the coefficients of an impact function. This allows the graph discovery to be treated as a convex optimization problem.
  • The Sampling Theory Connection: Usually, choosing the number of basis functions is guesswork. By treating the impact function as a signal to be sampled, the authors provide a theoretical grounding for model selection.
  • Clustering Matters: The model can incorporate "pairwise similarity." If we know two event types are similar (e.g., "Action Movies" and "Thrillers"), the model can be incentivized to learn similar causal influences for both, improving robustness when data is sparse.

Key Results

  • Superior Accuracy: On synthetic data, the proposed MLE-SGLP method consistently achieved higher log-likelihood and lower error in estimating both the base intensity ($\mu$) and the impact functions ($\phi$) compared to state-of-the-art ODE-based and Least-Squares methods.
  • Robustness to Small Data: Unlike previous methods that overfit when training sequences are limited, the sparse-group-lasso approach remained stable and recovered the true causality graph even with few samples.
Performance metrics comparing MLE-SGLP against baselines
  • Interpretability in IPTV: On the real-world dataset, the model successfully identified that popular categories like "Drama" and "Movie" are strong triggers for other categories, while niche categories like "Science" are mostly self-triggering. It also captured clear daily-periodic patterns in viewing habits.
  • Efficiency: The algorithm is computationally leaner than Least-Squares competitors, which often run out of memory when trying to discretize long, dense event sequences.

Limitations and Future Work

  • Stationarity: The model assumes the underlying causal relationships and triggering patterns are constant over time, which might not hold in rapidly evolving systems.
  • Basis Function Dependency: While the adaptive selection helps, the choice of the type of basis function (e.g., Gaussian vs. Sinc) can still influence the fit for specific edge cases.
  • Generalization: The authors expressed interest in extending this framework beyond Hawkes processes to more general point processes where events might have inhibitory (negative) effects on one another.

Summary updated

BibTeX
@inproceedings{xu2016learning,
  author = {Hongteng Xu and Mehrdad Farajtabar and Hongyuan Zha},
  title = {{Learning Granger Causality for Hawkes Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
  url = {https://openreview.net/forum?id=SJ-80j-ObS},
}
Figure