DeepABM: Scalable, efficient and differentiable agent-based simulations via graph neural networks

Ayush Chopra, Esma Senturk Gel, Jayakumar Subramanian, Balaji Krishnamurthy, Santiago Romero-Brufau, Kalyan S. Pasupathy, Thomas C. Kingsley, Ramesh RaskararXiv 2021

Introduction

Agent-Based Models (ABMs) are essential for simulating complex systems, such as epidemic spread, by modeling individual interactions. However, traditional frameworks like Mesa or NetLogo are often computationally prohibitive due to their object-oriented nature, leading to slow execution times as population sizes increase. Furthermore, these models typically function as "black boxes," lacking differentiability and making parameter calibration difficult. DeepABM addresses these challenges by reimagining ABMs through the lens of Graph Neural Networks (GNNs) and GPU acceleration.

Methodology: A Network-Centric Approach

The core innovation of DeepABM is the transition from an object-centric to a network-centric design. By representing agent states as rows in a large tensor and interactions as message-passing operations, the framework leverages the massive parallel processing power of modern GPUs.

  1. Agents as Tensors: Attributes such as age, infection status, and occupation are stored in tensors rather than individual objects.
  2. Interactions as Message Passing: Social interactions are modeled using GNN abstractions, allowing the simultaneous calculation of effects (e.g., viral transmission) across entire networks.
  3. Multi-Layered Networks: The framework utilizes distinct layers for household, occupation (small-world), and random interactions to capture heterogeneous social dynamics.
  4. Differentiability: Built on PyTorch, the entire simulation pipeline is differentiable, enabling gradient-based optimization for model calibration.

Performance and Scalability

DeepABM demonstrates significant performance gains over traditional CPU-based frameworks. In benchmarking tests, DeepABM-COVID modeled 200 million interactions (100,000 agents over 180 days) in just 90 seconds on a GPU. This represents a roughly 200x speedup compared to the Mesa framework, which required 5 hours for the same simulation. This efficiency allows for rapid "what-if" analysis and large-scale sensitivity studies.

Evaluating Public Health Interventions

The framework's scalability makes it an ideal tool for evaluating the impact of various non-pharmaceutical interventions. By simulating different scenarios, researchers can visualize the cumulative infection incidence and mortality rates over time, providing critical data for policy decisions.

Cumulative infection incidence and mortality rates under various intervention strategies, demonstrating the model's ability to simulate complex public health scenarios.

Policy Impact: Vaccination Strategy Optimization

A notable application of DeepABM was a study published in the British Medical Journal evaluating COVID-19 vaccination schedules. The simulation compared standard dosing against strategies like delaying the second dose to maximize initial coverage. The findings suggested that if the first dose is highly effective (>80%), delaying the second dose can significantly reduce cumulative mortality.

Comparison of vaccination strategies and their associated priority lists used in the simulation study to optimize public health outcomes.

Conclusion and Future Directions

DeepABM bridges the gap between the flexibility of agent-based modeling and the efficiency of deep learning hardware. While current implementations focus on epidemiology, the framework's differentiable nature and scalability offer promising applications in economics, social sciences, and beyond. Future work will further explore "inverse modeling," using macro-level data to automatically tune micro-level agent behaviors via gradient descent.

Summary updated

BibTeX
@misc{chopra2021deepabm,
  author = {Ayush Chopra and Esma Senturk Gel and Jayakumar Subramanian and Balaji Krishnamurthy and Santiago Romero-Brufau and Kalyan S. Pasupathy and Thomas C. Kingsley and Ramesh Raskar},
  title = {{DeepABM: Scalable, efficient and differentiable agent-based simulations via graph neural networks}},
  year = {2021},
  eprint = {2110.04421},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.04421},
}
Figure