Learning Individual Behavior in Agent-Based Models with Graph Diffusion Networks

Francesco Cozzi, Marco Pangallo, Alan Perotti, André Panisson, Corrado Monti
5/27/2025
cs.AIcs.LGcs.MA

No official code found. Best implementation: fracozzi/ABM-Graph-Diffusion-Network (3 stars, last commit 2025-11-30).

Abstract

Agent-Based Models (ABMs) are powerful tools for studying emergent properties in complex systems. In ABMs, agent behaviors are governed by local interactions and stochastic rules. However, these rules are, in general, non-differentiable, limiting the use of gradient-based methods for optimization, and thus integration with real-world data. We propose a novel framework to learn a differentiable surrogate of any ABM by observing its generated data. Our method combines diffusion models to capture behavioral stochasticity and graph neural networks to model agent interactions. Distinct from prior surrogate approaches, our method introduces a fundamental shift: rather than approximating system-level outputs, it models individual agent behavior directly, preserving the decentralized, bottom-up dynamics that define ABMs. We validate our approach on two ABMs (Schelling's segregation model and a Predator-Prey ecosystem) showing that it replicates individual-level patterns and accurately forecasts emergent dynamics beyond training. Our results demonstrate the potential of combining diffusion models and graph learning for data-driven ABM simulation.

View on arXivView PDF

Code Implementations(1)

31PythonMay 16, 202510 months ago

Similar Papers

Cite this paper

@article{cozzi2025learning,
  title  = {Learning Individual Behavior in Agent-Based Models with Graph Diffusion Networks},
  author = {Francesco Cozzi and Marco Pangallo and Alan Perotti and André Panisson and Corrado Monti},
  year   = {2025},
  eprint = {2505.21426},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.21426v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.21426.svg)](https://codeofpaper.com/paper/2505.21426)

Discussion