Introduction
In the face of a rapidly evolving pandemic like COVID-19, epidemiological models serve as critical tools for policy-making and public health strategy. However, fitting these complex, stochastic models to real-world data is a significant computational challenge. Traditional methods often struggle with unobserved or "latent" variables, such as asymptomatic infections, making the likelihood function intractable. This paper explores the use of modern AI hardware—specifically Graphcore Intelligence Processing Units (IPUs)—to accelerate Simulation-based Inference (SBI), transforming multi-day computational tasks into processes that take less than two hours.
The Epidemiological Model
The researchers utilized a stochastic compartmental model designed to capture the dynamics of the COVID-19 outbreak. The population is divided into six distinct sub-populations: Susceptible (S), Infected (I), Active confirmed (A), Recovered (R), Fatalities (D), and unconfirmed Removed (Ru).
As shown in Figure 1, the model distinguishes between unobserved sub-populations (S, I, Ru) and observed sub-populations (A, R, D). Transitions between these states are governed by eight key parameters, including infection rates and testing effectiveness. Because many of these transitions are not directly observable, the model must be "fit" to the data through millions of simulations to find parameter sets that produce outcomes matching real-world observations.
Methodology: Parallelized Approximate Bayesian Computation
To perform inference, the authors implemented a parallelized version of Approximate Bayesian Computation (ABC). In a standard "Vanilla" ABC workflow, parameters are sampled from a prior distribution, a simulation is run, and the results are compared to true data using a distance function. If the distance is below a threshold (ε), the parameters are accepted into the approximate posterior.
To overcome the bottlenecks of sequential processing, the researchers "embarrassingly parallelized" this workflow (Figure 4). By vectorizing the sampling, simulation, and distance-calculation steps, they enabled thousands of pandemic scenarios to be simulated simultaneously. This approach was optimized using the XLA (Accelerated Linear Algebra) compiler via TensorFlow to target both GPUs and IPUs.
Hardware Acceleration and Performance
The study compared three primary hardware platforms: the Intel Xeon Gold CPU (baseline), the NVIDIA Tesla V100 GPU (SIMD architecture), and the Graphcore Mk1 IPU (MIMD architecture).
The IPU Advantage
The Graphcore IPU achieved a 30x speedup over the CPU and a 7.5x speedup over the NVIDIA V100 GPU. This performance gap is attributed to two main architectural features:
- Memory Bandwidth: Epidemiology simulations require frequent memory access. While GPUs have high total memory, their on-chip cache is limited. The IPU’s architecture allows the entire model state to reside in 300MB of on-chip SRAM, providing 45TB/s of bandwidth—roughly 50 times that of the V100.
- MIMD Architecture: Unlike the GPU's Single Instruction, Multiple Data (SIMD) approach, which excels at uniform matrix math, the IPU uses a Multiple Instruction, Multiple Data (MIMD) approach. This is better suited for the branching logic and heterogeneous operations found in stochastic epidemiology models.
Results and Real-World Application
The framework was tested against real-world COVID-19 time-series data from Johns Hopkins University for Italy, the USA, and New Zealand. The model successfully identified distinct regional dynamics, such as New Zealand's higher recovery rates and more effective testing protocols.
In terms of practical utility, a full comparative analysis of these three countries took approximately 1.9 hours on a 16-IPU system. The authors estimate that the same task would have required 57 hours on a standard 16-core CPU cluster. Furthermore, the system demonstrated near-linear scalability across multiple IPUs, with communication overhead remaining below 8%.
Conclusion and Future Work
This research demonstrates that repurposing AI-specific hardware for scientific simulation can yield massive efficiency gains. While the study focused on COVID-19, the hardware-accelerated ABC approach is generalizable to other fields involving high-dimensional observations and large-scale stochastic models. Future work may involve testing on newer hardware generations (such as Mk2 IPUs or A100 GPUs) and refining the model's accuracy for regions with very low case counts, where current Gaussian approximations may be less precise.
Summary updated