NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SIR-Hawkes: on the Relationship Between Epidemic Models and Hawkes Point Processes

Marian-Andrei Rizoiu, Swapnil Mishra, Quyu Kong, Mark James Carman, Lexing Xie · DOI

Abstract

Among the statistical tools for online information diffusion modeling, both epidemic models and Hawkes point processes are popular choices. The former originate from epidemiology, and consider information as a viral contagion which spreads into a population of online users. The latter have roots in geophysics and finance, view individual actions as discrete events in continuous time, and modulate the rate of events according to the self-exciting nature of event sequences. Here, we establish a novel connection between these two frameworks. Namely, the rate of events in an extended Hawkes model is identical to the rate of new infections in the Susceptible-Infected-Recovered (SIR) model after marginalizing out recovery events -- which are unobserved in a Hawkes process. This result paves the way to apply tools developed for SIR to Hawkes, and vice versa. It also leads to HawkesN, a generalization of the Hawkes model which accounts for a finite population size. Finally, we derive the distribution of cascade sizes for HawkesN, inspired by methods in stochastic SIR. Such distributions provide nuanced explanations to the general unpredictability of popularity: the distribution for diffusion cascade sizes tends to have two modes, one corresponding to large cascade sizes and another one around zero.

Introduction

How does a tweet go viral? For years, researchers have analyzed information diffusion through two distinct lenses. Epidemiologists view it as a contagion spreading through a population (the SIR model), while data scientists often utilize Hawkes point processes to model the "self-exciting" nature of event sequences. Historically, these models served different purposes: epidemic models excel at accounting for finite populations but struggle with precise timing, whereas Hawkes processes are the gold standard for continuous-time discrete events but typically assume an infinite pool of participants.

In this work, we demonstrate that these two seemingly distinct frameworks are mathematically linked. By establishing a formal equivalence, we introduce HawkesN, a model that accounts for finite population sizes in social media environments, providing a clearer picture of why online popularity remains notoriously difficult to predict.

The Mathematical Bridge

The core contribution of this research is the realization that a tweet can be modeled as an "infection," and a user's subsequent loss of interest as a "recovery." In social media data, we observe the infections (retweets) but rarely the recoveries (when a user stops looking at their feed).

Theorem 3.1 proves that the rate of events in a Hawkes model is mathematically identical to the expected rate of new infections in a stochastic SIR model, provided the recovery events are marginalized out. This suggests that standard Hawkes models are essentially SIR models with missing data regarding user recovery.

HawkesN: Modeling Finite Populations

Standard Hawkes processes assume an infinite population, which is a significant flaw when modeling specific communities or "thematic neighborhoods." To address this, we propose HawkesN, which modifies the standard process by adding a modulation factor: $(1 - N_t/N)$.

Visualization of the HawkesN process compared to standard Hawkes, highlighting the counting process and the reduction in offspring rate as events occur.

In this formulation, $N_t$ represents the number of events that have already occurred, and $N$ is the total population size. As more individuals participate, the rate of new events naturally slows down because the pool of "susceptible" users shrinks. This allows the model to capture the saturation effects observed in real-world cascades.

Cascade Size and Unpredictability

Predicting the final size of a retweet cascade is notoriously difficult. Most models attempt to predict a single expected value, yet identical starting conditions can lead to vastly different outcomes. By borrowing Markov chain techniques from epidemic theory, we compute a full probability distribution of the final cascade size rather than a single point estimate.

Our findings reveal that the distribution of final cascade sizes is often bimodal. A cascade is likely to either "fizzle out" almost immediately or grow to encompass a significant portion of the population. This lack of a "middle ground" explains why predicting a single average value is often misleading; at the start of a cascade, it is mathematically impossible to distinguish between a minor event and a viral outbreak.

Empirical Evaluation

We validated HawkesN using three large-scale Twitter datasets: ActiveRT (41,000 cascades), Seismic (166,000 cascades), and News (20,000 cascades).

Holdout negative log-likelihood comparison between Hawkes and HawkesN on the ActiveRT dataset, demonstrating the superior generalization of the HawkesN model.

HawkesN consistently outperformed standard Hawkes models in explaining unobserved data, particularly in longer event sequences where finite population limits become a factor. Furthermore, we proved that the "branching factor" in Hawkes (the average number of child events) is equivalent to the "Basic Reproduction Number" ($R_0$) in epidemic models, further unifying the two fields.

Conclusion

By bridging the gap between epidemic modeling and point processes, this work provides a robust framework for understanding information diffusion. HawkesN not only improves predictive accuracy by accounting for finite populations but also provides a theoretical explanation for the inherent unpredictability of virality through bimodal size distributions. Future work will explore non-exponential kernels and heterogeneous user behavior to further refine these models.

Summary updated

BibTeX
@inproceedings{rizoiu2018sir,
  author = {Marian-Andrei Rizoiu and Swapnil Mishra and Quyu Kong and Mark James Carman and Lexing Xie},
  title = {{SIR-Hawkes: on the Relationship Between Epidemic Models and Hawkes Point Processes}},
  booktitle = {The Web Conference},
  year = {2018},
  url = {https://openreview.net/forum?id=BkNJolb_bB},
}
Figure