Unifying non-Markovian dynamics and agent heterogeneity in scalable stochastic networks
Stochastic processes underpin dynamics across biology, physics, epidemiology, and finance, yet accurately simulating them remains a major challenge. Classical approaches such as the Gillespie algorithm are exact for Markovian, time-independent systems, where propensities depend only on the current state and agents of a given type are statistically identical. While efficient, this framework misses a defining feature of many real systems: heterogeneity and memory at the level of individual agents. Cells may divide or differentiate on distinct intrinsic timescales, individuals may preferentially interact with specific partners, and inter-event-time distributions can deviate strongly from the exponential. We introduce MOSAIC (Modeling of Stochastic Agents with Individual Complexity), a general and scalable framework that embeds agent-specific properties directly into the dynamics. MOSAIC unifies heterogeneous rates, dynamic interaction preferences, and both Markovian and non-Markovian waiting-time distributions within a single stochastic formalism, while retaining Gillespie-like computational cost. Applications to delayed biochemical reactions, competitive immune-cell dynamics, and temporal social networks show that MOSAIC reproduces empirical features that existing methods either miss or capture only at prohibitive computational cost, establishing it as a practical tool for simulating heterogeneous stochastic systems.
Authors
- María Rodríguez Martínez (ORCID: https://orcid.org/0000-0003-3766-4233)
- Miroslav Phan
- Aurélien Pélissier
- Didier Le Bail
- Niko Beerenwinkel
Institutions
- Centre National de la Recherche Scientifique (FR)
- Yale University (US)
- ETH Zurich (CH)
- IBM Research - Zurich (CH)
- Centre de Physique Théorique (FR)
- ZHAW Zurich University of Applied Sciences (CH)
Publication Details
- Journal
- Nature Communications
- Published
- 2026-03-02
- DOI
- https://doi.org/10.1038/s41467-026-69817-y
- Primary Topic
- Gene Regulatory Network Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Science Foundation
- European Commission
- Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung