[Paper Review] Hijacking Malaria Simulators with Probabilistic Programming
This paper proposes a method to treat population-based malaria simulators as probabilistic generative models by hijacking their internal random number generators using a universal probabilistic programming system (PPS). The approach enables interpretable inference, trace analysis, and cross-model comparison without modifying the original simulators, significantly enhancing transparency and trust in policy-relevant simulations.
Epidemiology simulations have become a fundamental tool in the fight against the epidemics of various infectious diseases like AIDS and malaria. However, the complicated and stochastic nature of these simulators can mean their output is difficult to interpret, which reduces their usefulness to policymakers. In this paper, we introduce an approach that allows one to treat a large class of population-based epidemiology simulators as probabilistic generative models. This is achieved by hijacking the internal random number generator calls, through the use of a universal probabilistic programming system (PPS). In contrast to other methods, our approach can be easily retrofitted to simulators written in popular industrial programming frameworks. We demonstrate that our method can be used for interpretable introspection and inference, thus shedding light on black-box simulators. This reinstates much-needed trust between policymakers and evidence-based methods.
Motivation & Objective
- To address the challenge of interpreting complex, stochastic malaria simulators used in policy decisions.
- To enable interpretable introspection and inference in black-box epidemiological simulators without code modification.
- To provide a common abstraction framework for comparing different simulators like EMOD and OpenMalaria.
- To enhance trust between policymakers and evidence-based simulation tools through transparent, traceable inference.
- To extend the utility of probabilistic programming to existing, large-scale simulators in computational epidemiology.
Proposed method
- Hijack the internal random number generators of existing simulators by replacing them with calls to a universal probabilistic programming (UPP) controller.
- Treat the simulator as a probabilistic generative model by exposing its stochastic execution paths through the PPS interface.
- Use the pyprob framework to instrument and track random variable draws, enabling full trace reconstruction and path probability estimation.
- Construct addressable trace graphs that map physical processes (e.g., human infection, parasite progression) to specific execution paths in the simulator.
- Enable conditioning on observed data and perform inference by manipulating stochastic branches in the simulator’s execution trace.
- Support interoperability across simulators by aligning trace addresses representing equivalent biological processes (e.g., A1 in OpenMalaria vs. A7 in EMOD).
Experimental results
Research questions
- RQ1Can existing, complex, stochastic malaria simulators be retrofitted for interpretable inference without source code changes?
- RQ2How can probabilistic programming be used to extract and analyze stochastic execution traces from black-box simulators?
- RQ3To what extent can trace-level analysis reveal the relative importance of different biological processes in disease dynamics?
- RQ4Can cross-model comparisons of trace probabilities help evaluate model complexity and consistency across simulators like EMOD and OpenMalaria?
- RQ5How does the hijacking approach improve transparency and trust in simulation-based policymaking?
Key findings
- The method successfully enables full trace reconstruction and path probability estimation in both EMOD and OpenMalaria without modifying their source code.
- Trace graphs reveal that equivalent biological processes—such as within-host dynamics of *Plasmodium falciparum*—are represented at different internal addresses (e.g., A1 in OpenMalaria, A7 in EMOD), allowing direct comparison.
- The approach allows policy-relevant inference by conditioning on observed data and manipulating stochastic branches, enabling probabilistic reasoning over simulator outputs.
- The framework supports analysis across 13 general-purpose programming languages and is easily extensible to other simulators.
- Trace-based introspection helps identify which model components most influence outcomes, offering new debugging and validation paradigms for model developers.
- The method reinstates trust in simulation-based policymaking by making stochastic decision paths transparent and analyzable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.