Learning Granger Causality for Hawkes Processes

Hongteng Xu, Mehrdad Farajtabar, Hongyuan Zha

TL;DR

This paper introduces a robust nonparametric method to learn Granger causality graphs for multi-dimensional Hawkes processes. By representing continuous-time impact functions using a series of basis functions and applying a sparse-group-lasso regularizer, the model accurately uncovers causal relationships and event-triggering patterns simultaneously, even from limited data.

What Problem Does This Paper Address?

Many real-world phenomena consist of asynchronous, irregular events recorded in continuous time—such as a user's IPTV viewing history, high-frequency financial trades, or a patient's clinical history. Multi-dimensional point processes, particularly Hawkes processes, are widely used to model how past events trigger future ones.

However, determining Granger causality—identifying whether one type of event causally influences another—is exceptionally challenging in continuous time. Traditional Granger causality methods rely on discrete, fixed time-lags (like Vector Autoregressive models). Because point processes lack fixed intervals, capturing historical dependencies requires a flexible, tractable representation. Existing methods either discretize time (which destroys resolution and explodes computational costs) or rely on rigid parametric assumptions about how influence decays, leading to dubious causal graphs if the assumptions are wrong.

Methods

The authors exploit a key theoretical insight: in a Hawkes process, event type $u'$ does not Granger-cause event type $u$ if and only if their mutual "impact function" $\phi_{uu'}(t)$ is identically zero for all time.

To learn these impact functions without making rigid structural assumptions, the authors propose the following framework:

  1. Basis Function Expansion: Each impact function is represented nonparametrically as a linear combination of a series of basis functions (e.g., Gaussian kernels).
  2. Sparse-Group-Lasso (SGL) Regularization: To determine the causality graph, the model enforces group sparsity on the coefficients of the basis functions. If the entire group of coefficients for a pair $(u, u')$ shrinks to zero, the causal link is eliminated. They also include standard lasso for temporal sparsity and an optional pairwise similarity penalty to exploit any known clustering structures among event types (referred to as MLE-SGLP).
  3. EM-Based Optimization: They derive an Expectation-Maximization (EM) algorithm that decouples the parameters, yielding clean, closed-form updates per iteration.
  4. Adaptive Basis Selection: Instead of guessing the number and frequency of basis functions, the authors use Nyquist-Shannon sampling theory to estimate the optimal bandlimit of the intensity function, automating model selection.

Datasets

The model was evaluated on both synthetic and real-world data:

  • Synthetic Data: Two datasets generated via a 5-dimensional Hawkes process. One used smooth, sine-like impact functions, and the other used sharp, piecewise-constant impact functions to test the model's flexibility.
  • IPTV Viewing Records: A real-world dataset tracking the viewing behavior of 7,100 users across 13 predefined TV program categories (e.g., Drama, Movie, News) over 11 months.

Key Insights and Ideas

  • Causality as Group Sparsity: The core "aha moment" is mapping a continuous-time functional property ($\phi(t) = 0$) to a structured sparsity problem in optimization. Group lasso acts as a discrete edge selector for a continuous-time graph.
  • Robustness to Misspecification: Remarkably, even if the chosen basis functions (e.g., smooth Gaussians) do not perfectly match the true impact function shape (e.g., sharp piecewise constants), the group sparsity mechanism still correctly identifies whether the function is zero or non-zero. It recovers the correct network topology even if the exact function fit is slightly off.
  • Sampling Theory for Hyperparameters: By treating the impact function estimation as a signal sampling problem, the authors use the data's empirical intensity to mathematically bound the required number of basis functions, removing tedious trial-and-error.

Key Results

  • Synthetic Performance: The proposed MLE-SGLP method consistently achieved higher log-likelihoods and lower relative errors for both baseline intensities ($e_\mu$) and impact functions ($e_\phi$) compared to state-of-the-art Ordinary Differential Equation (ODE) and Least-Squares (LS) methods.
Performance comparison on synthetic data
  • Graph Recovery: As shown in the green-bordered subfigures of the impact function grid, the sparse regularizer successfully recovered all-zero impact functions exactly, whereas standard Maximum Likelihood Estimation (MLE) hallucinated causal links due to noise.
Impact function recovery with and without regularizers
  • Real-World Interpretability: On the IPTV dataset, the method successfully mapped a 13x13 "infectivity matrix." It revealed strong self-triggering patterns (viewers watching periodic daily shows) and showed that popular genres (like Drama and Movies) trigger wider viewing habits, while niche categories (like Kids or Science) rarely cause cross-genre viewing. Furthermore, the competing LS method failed completely on this dataset due to out-of-memory errors caused by timeline discretization.

Limitations and Future Work

The primary limitation of this work is its specificity to Hawkes processes. The clean mathematical relationship between zero-valued impact functions and Granger non-causality does not automatically hold for more general or non-linear point processes (e.g., those involving inhibitory relationships where an event prevents future occurrences). The authors note that extending these nonparametric group-sparsity techniques to general point processes remains an open and important direction for future research.

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