Variational Inference of Parameters in Opinion Dynamics Models
Jacopo Lenti, Fabrizio Silvestri, Gianmarco De Francisci Morales
TL;DR
The paper tackles the challenge of estimating parameters in agent-based opinion dynamics models by turning ABMs into Probabilistic Generative ABMs (PGABMs) and performing Variational Inference (VI) with differentiable relaxations and normalizing flows. It assesses four BCM-b extensions (BCM-S, BCM-I, BCM-U, BCM-G) and demonstrates that VI-based methods outperform simulation-based approaches (ABC) and MCMC both in accuracy and speed, even enabling recovery of up to 400 microscopic agent attributes. The work provides a principled, data-driven framework for tuning ABMs to real observations and offers insights into human behavior in social systems, while discussing limitations and future directions for broader applicability. Overall, the approach integrates probabilistic modeling with differentiable ABMs to enable scalable, data-informed calibration of complex social dynamics.
Abstract
Despite the frequent use of agent-based models (ABMs) for studying social phenomena, parameter estimation remains a challenge, often relying on costly simulation-based heuristics. This work uses variational inference to estimate the parameters of an opinion dynamics ABM, by transforming the estimation problem into an optimization task that can be solved directly. Our proposal relies on probabilistic generative ABMs (PGABMs): we start by synthesizing a probabilistic generative model from the ABM rules. Then, we transform the inference process into an optimization problem suitable for automatic differentiation. In particular, we use the Gumbel-Softmax reparameterization for categorical agent attributes and stochastic variational inference for parameter estimation. Furthermore, we explore the trade-offs of using variational distributions with different complexity: normal distributions and normalizing flows. We validate our method on a bounded confidence model with agent roles (leaders and followers). Our approach estimates both macroscopic (bounded confidence intervals and backfire thresholds) and microscopic ($200$ categorical, agent-level roles) more accurately than simulation-based and MCMC methods. Consequently, our technique enables experts to tune and validate their ABMs against real-world observations, thus providing insights into human behavior in social systems via data-driven analysis.
