Online Learning for Mixture of Multivariate Hawkes Processes

Mohsen Ghassemi, Niccolò Dalmasso, Simran Lamba, Vamsi K. Potluru, Tucker Balch, Sameena Shah, Manuela Veloso

Abstract

Modeling asynchronous event sequences is a critical task in domains ranging from financial transactions to healthcare interventions. While Hawkes processes are effective at capturing self-exciting behaviors, traditional models often struggle with population heterogeneity and the computational demands of streaming data. This paper presents OMMHP, an Online Mixture of Multivariate Hawkes Processes framework. By combining variational inference with an online Expectation-Maximization (EM) approach, OMMHP enables real-time clustering and parameter estimation of latent behaviors. Our results demonstrate that OMMHP achieves linear scalability and competitive accuracy compared to batch-processing counterparts, making it a robust solution for large-scale, dynamic event data.

1. Introduction

In the modern digital landscape, data is frequently generated as sequences of discrete events—such as a customer’s purchase history, a patient’s clinical visits, or a user’s social media interactions. Hawkes processes have emerged as the standard mathematical framework for modeling these sequences because they account for "self-excitation," where the occurrence of a past event increases the conditional intensity of future events.

However, two significant challenges persist in applying Hawkes processes to real-world scenarios. First, most models assume a homogeneous population, failing to account for latent clusters of actors who exhibit distinct behavioral patterns. Second, existing "batch" estimation methods require access to the entire history of events, which is computationally prohibitive for streaming data and prevents models from adapting to shifting behaviors over time. To address these limitations, we introduce the Online Mixture of Multivariate Hawkes Processes (OMMHP), a scalable framework designed for real-time latent behavior discovery.

2. Methodology

The OMMHP framework addresses the complexity of mixture modeling in a streaming context through three primary technical innovations:

2.1. Time Discretization

To facilitate tractable computation on streaming data, the continuous time domain is partitioned into small, discrete intervals of length $\delta$. This discretization allows the model to evaluate the likelihood of events at the end of each interval, rather than performing expensive recalculations for every individual timestamp.

2.2. Variational Inference and the ELBO

Because cluster assignments are latent (hidden), the model must infer which behavioral group a specific sequence belongs to. We utilize the Evidence Lower Bound (ELBO) to approximate the marginal likelihood of the observed data. This approach transforms the complex task of latent variable inference into a structured optimization problem.

2.3. Online EM Framework

OMMHP employs a recursive Expectation-Maximization (EM) style update mechanism:

  • E-step: As new data arrives, the model updates the "responsibilities"—the probability that a specific sequence belongs to a particular latent cluster.
  • M-step: The model parameters, including base intensities ($\mu$) and impact functions (adjacency matrices $a$), are updated using either EM or stochastic gradient descent.

Crucially, the algorithm maintains a recursive term ($R^t$) that encapsulates the necessary information from past intervals. This ensures that the model can learn from new events without needing to re-process the entire historical dataset, maintaining a constant memory footprint per update.

3. Experimental Evaluation

We validated the OMMHP framework using a combination of synthetic simulations and large-scale real-world datasets.

3.1. Datasets

  • Synthetic Data: We generated mixtures of 2 and 3 Hawkes processes with known parameters to evaluate the model's ability to recover ground-truth clusters and parameters.
  • MathOverflow: A dataset comprising approximately 170,000 interactions among the 100 most active users on the MathOverflow Q&A platform.
  • MOOC Dataset: A dataset tracking approximately 365,000 student actions (e.g., play, stop, click) within a massive online open course.

3.2. Performance Metrics

The model's clustering performance was measured using the Adjusted Rand Index (ARI), while parameter recovery was assessed via relative error. Computational efficiency was evaluated by measuring runtime normalized by the number of sequences.

4. Results and Discussion

4.1. Parameter Convergence and Accuracy

In synthetic trials, OMMHP demonstrated steady convergence of learned parameters ($\mu$ and $a$) toward their true values as iterations progressed. Notably, the unsupervised clustering performance was comparable to "oracle" models that were provided with true cluster labels, indicating that OMMHP effectively identifies latent behaviors without prior supervision.

4.2. Real-World Clustering

On the MOOC dataset, OMMHP achieved an ARI of 0.201 with four clusters. This result indicates that the model successfully identified distinct patterns of student engagement. Similarly, on the MathOverflow dataset, the model discovered meaningful interaction clusters based purely on the timing and type of user actions.

4.3. Scalability

A key finding of this research is that OMMHP scales linearly with respect to the number of sequences, event types, and mixture components. This linear scalability is essential for enterprise applications where the volume of streaming data can be immense.

5. Conclusion and Future Work

OMMHP provides a scalable, online solution for modeling mixtures of multivariate Hawkes processes. By enabling the discovery of latent behavioral clusters in real-time, it offers a powerful tool for personalized finance, healthcare monitoring, and social network analysis.

Future research will focus on improving the stability of the M-step when using stochastic gradient descent, potentially through variance reduction techniques like SVRG. Additionally, we aim to further integrate network structure data and explore the model's performance in high-stakes domains, such as tracking shifting consumer behaviors during economic disruptions.

Summary updated

BibTeX
@inproceedings{ghassemi2022online,
  author = {Mohsen Ghassemi and Niccolò Dalmasso and Simran Lamba and Vamsi K. Potluru and Tucker Balch and Sameena Shah and Manuela Veloso},
  title = {{Online Learning for Mixture of Multivariate Hawkes Processes}},
  booktitle = {ICAIF},
  year = {2022},
  url = {https://openreview.net/forum?id=D41IvE_fHI},
}
Figure