cs.MAFeb 18, 2025

BeforeIT.jl: High-Performance Agent-Based Macroeconomics Made Easy

Authors: Adriano Meligrana, Mitja Devetak, Steven Hoekstra, Oliver Reiter, Enrico Minnella, Sebastian Poledna, Marco Bardoscia, Aldo Glielmo

Organizations: University of Turin, Turin, Italy · Paris 1 Panthéon-Sorbonne University, Paris, France · Complexity Science Hub, Vienna, Austria · Supply Chain Intelligence Institute Austria, Vienna, Austria · 

Abstract

BeforeIT is an open-source software for building and simulating state-of-the-art macroeconomic agent-based models (macro ABMs) based on the recently introduced macro ABM developed in [1] and here referred to as the base model. Written in Julia, it combines extraordinary computational efficiency with user-friendliness and extensibility. We present the main structure of the software, demonstrate its ease of use with illustrative examples, and benchmark its performance. Our benchmarks demonstrate that the base model built with BeforeIT is orders of magnitude faster than its original Matlab implementation, while achieving performance comparable to a highly optimised HPC implementation. Furthermore, we show how BeforeIT supports an easy construction of model variants such as the 'CANVAS' model of [2], how these variants can be evaluated at scale via an automated multicountry forecasting pipeline, and how the entire simulation can be automatically differentiated. BeforeIT is designed to facilitate reproducibility, extensibility, and experimentation. As the first open-source, industry-grade software to build macro ABMs, BeforeIT can significantly foster collaboration and innovation in the field of agent-based macroeconomic modelling. The package, along with its documentation, is freely available at https://github.com/bancaditalia/BeforeIT.jl under the Apache 2.0 license.

Figures & tables

Explore similar work

CardsList
  1. Statistical Model Checking of the Keynes+Schumpeter Model: A Transient Sensitivity Analysis of a Macroeconomic ABM

    May 11, 2026Stefano Blando, Giorgio Fagiolo, Mauro Napoletano +2Statistical Model CheckingAgent-Based Modeling

  2. Statistical Model Checking of the Island Model: An Established Economic Agent-Based Model of Endogenous Growth

    Apr 6, 2026Stefano Blando, Giorgio Fagiolo, Daniele Giachini +2Statistical Model CheckingAgent-Based Modeling

  3. JaxMARL-BC: Multi-Agent Reinforcement Learning for Macroeconomic Modelling, in Seconds

    Oct 20, 2026Daniele Montagnani, Andrea Coletta, Antonietta Mira +1Multi-Agent Reinforcement LearningReinforcement Learning