IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2505.21426.html
   My bibliography  Save this paper

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

Author

Listed:
  • Francesco Cozzi
  • Marco Pangallo
  • Alan Perotti
  • Andr'e Panisson
  • Corrado Monti

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.

Suggested Citation

  • Francesco Cozzi & Marco Pangallo & Alan Perotti & Andr'e Panisson & Corrado Monti, 2025. "Learning Individual Behavior in Agent-Based Models with Graph Diffusion Networks," Papers 2505.21426, arXiv.org.
  • Handle: RePEc:arx:papers:2505.21426
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2505.21426
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Lamperti, Francesco & Roventini, Andrea & Sani, Amir, 2018. "Agent-based model calibration using machine learning surrogates," Journal of Economic Dynamics and Control, Elsevier, vol. 90(C), pages 366-389.
    2. Francesco Lamperti & Giovanni Dosi & Andrea Roventini, 2025. "A Complex System Perspective on the Economics of Climate Change, Boundless Risk, and Rapid Decarbonization," LEM Papers Series 2025/16, Laboratory of Economics and Management (LEM), Sant'Anna School of Advanced Studies, Pisa, Italy.
    3. Corneel Casert & Isaac Tamblyn & Stephen Whitelam, 2024. "Learning stochastic dynamics and predicting emergent behavior using transformers," Nature Communications, Nature, vol. 15(1), pages 1-7, December.
    4. Lamperti, Francesco & Roventini, Andrea & Sani, Amir, 2018. "Agent-based model calibration using machine learning surrogates," Journal of Economic Dynamics and Control, Elsevier, vol. 90(C), pages 366-389.
    5. Marc C. Kennedy & Anthony O'Hagan, 2001. "Bayesian calibration of computer models," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 63(3), pages 425-464.
    6. repec:hal:spmain:info:hdl:2441/13thfd12aa8rmplfudlgvgahff is not listed on IDEAS
    7. Lux, Thomas, 2018. "Estimation of agent-based models using sequential Monte Carlo methods," Journal of Economic Dynamics and Control, Elsevier, vol. 91(C), pages 391-408.
    8. Platt, Donovan, 2020. "A comparison of economic agent-based model calibration methods," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    9. Oswald, Yannick & Suchak, Keiran & Malleson, Nick, 2025. "Agent-based models of the United States wealth distribution with Ensemble Kalman Filter," Journal of Economic Behavior & Organization, Elsevier, vol. 229(C).
    10. Marian Farah & Paul Birrell & Stefano Conti & Daniela De Angelis, 2014. "Bayesian Emulation and Calibration of a Dynamic Epidemic Model for A/H1N1 Influenza," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 109(508), pages 1398-1411, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Zila, Eric & Kukacka, Jiri, 2023. "Moment set selection for the SMM using simple machine learning," Journal of Economic Behavior & Organization, Elsevier, vol. 212(C), pages 366-391.
    2. Donovan Platt, 2022. "Bayesian Estimation of Economic Simulation Models Using Neural Networks," Computational Economics, Springer;Society for Computational Economics, vol. 59(2), pages 599-650, February.
    3. Kukacka, Jiri & Kristoufek, Ladislav, 2021. "Does parameterization affect the complexity of agent-based models?," Journal of Economic Behavior & Organization, Elsevier, vol. 192(C), pages 324-356.
    4. Priscilla Avegliano & Jaime Simão Sichman, 2023. "Equation-Based Versus Agent-Based Models: Why Not Embrace Both for an Efficient Parameter Calibration?," Journal of Artificial Societies and Social Simulation, Journal of Artificial Societies and Social Simulation, vol. 26(4), pages 1-3.
    5. Shiono, Takashi, 2021. "Estimation of agent-based models using Bayesian deep learning approach of BayesFlow," Journal of Economic Dynamics and Control, Elsevier, vol. 125(C).
    6. Marco Pangallo & R. Maria del Rio-Chanona, 2024. "Data-Driven Economic Agent-Based Models," Papers 2412.16591, arXiv.org.
    7. Kukacka, Jiri & Jang, Tae-Seok & Sacht, Stephen, 2018. "On the estimation of behavioral macroeconomic models via simulated maximum likelihood," Economics Working Papers 2018-11, Christian-Albrechts-University of Kiel, Department of Economics.
    8. Delli Gatti, Domenico & Grazzini, Jakob, 2020. "Rising to the challenge: Bayesian estimation and forecasting techniques for macroeconomic Agent Based Models," Journal of Economic Behavior & Organization, Elsevier, vol. 178(C), pages 875-902.
    9. Barde, Sylvain, 2020. "Macroeconomic simulation comparison with a multivariate extension of the Markov information criterion," Journal of Economic Dynamics and Control, Elsevier, vol. 111(C).
    10. Andrei I. Vlad & Alexei A. Romanyukha & Tatiana E. Sannikova, 2024. "Parameter Tuning of Agent-Based Models: Metaheuristic Algorithms," Mathematics, MDPI, vol. 12(14), pages 1-21, July.
    11. Barde, Sylvain, 2024. "Bayesian estimation of large-scale simulation models with Gaussian process regression surrogates," Computational Statistics & Data Analysis, Elsevier, vol. 196(C).
    12. Chenkai Wang & Junji Ren & Peng Yang, 2024. "Alleviating Non-identifiability: a High-fidelity Calibration Objective for Financial Market Simulation with Multivariate Time Series Data," Papers 2407.16566, arXiv.org, revised Jun 2025.
    13. Andrea Coletta & Joseph Jerome & Rahul Savani & Svitlana Vyetrenko, 2023. "Conditional Generators for Limit Order Book Environments: Explainability, Challenges, and Robustness," Papers 2306.12806, arXiv.org.
    14. Tubbenhauer, Tobias & Fieberg, Christian & Poddig, Thorsten, 2021. "Multi-agent-based VaR forecasting," Journal of Economic Dynamics and Control, Elsevier, vol. 131(C).
    15. Yang Ye & Abhishek Pandey & Carolyn Bawden & Dewan Md. Sumsuzzman & Rimpi Rajput & Affan Shoukat & Burton H. Singer & Seyed M. Moghadas & Alison P. Galvani, 2025. "Integrating artificial intelligence with mechanistic epidemiological modeling: a scoping review of opportunities and challenges," Nature Communications, Nature, vol. 16(1), pages 1-18, December.
    16. Chaitanya Kaligotla & Jonathan Ozik & Nicholson Collier & Charles M. Macal & Kelly Boyd & Jennifer Makelarski & Elbert S. Huang & Stacy T. Lindau, 2020. "Model Exploration of an Information-Based Healthcare Intervention Using Parallelization and Active Learning," Journal of Artificial Societies and Social Simulation, Journal of Artificial Societies and Social Simulation, vol. 23(4), pages 1-1.
    17. Ramis Khabibullin & Alexey Ponomarenko, 2022. "An empirical behavioral model of household’s deposit dollarization," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 17(3), pages 827-847, July.
    18. Jackson Samuel E. & Vernon Ian & Liu Junli & Lindsey Keith, 2020. "Understanding hormonal crosstalk in Arabidopsis root development via emulation and history matching," Statistical Applications in Genetics and Molecular Biology, De Gruyter, vol. 19(2), pages 1-33, April.
    19. Platt, Donovan, 2020. "A comparison of economic agent-based model calibration methods," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    20. Dyer, Joel & Cannon, Patrick & Farmer, J. Doyne & Schmon, Sebastian M., 2024. "Black-box Bayesian inference for agent-based models," Journal of Economic Dynamics and Control, Elsevier, vol. 161(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2505.21426. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.