Comparing Data Assimilation and Likelihood-Based Inference on Latent State Estimation in Agent-Based Models

Blas Kolic, Corrado Monti, Gianmarco De Francisci Morales, Marco PangalloarXiv 2025 · DOI

Introduction

Agent-Based Models (ABMs) are essential for simulating complex systems, yet their utility is often limited by the difficulty of calibrating them to real-world data. A primary challenge lies in inferring latent micro-states—such as individual beliefs or health statuses—from observed macro-level interactions. This paper provides a systematic comparison between two prominent inference frameworks: Data Assimilation (DA), specifically the Ensemble Kalman Filter (EnKF), and Likelihood-Based Inference (LBI) using automatic differentiation.

Methodology and Experimental Setup

The study utilizes a deterministic Bounded-Confidence Model (BCM) of opinion dynamics. In this model, agents interact and update their opinions only if they are within a certain "confidence" threshold. The authors test two primary regimes: Polarization ($ε = 0.2$), where distinct opinion clusters form, and Consensus ($ε = 0.3$), where agents converge to a single viewpoint.

Two distinct approaches are compared:

  • Data Assimilation (DA): A sequential, model-agnostic approach using the Ensemble Kalman Filter. It is easy to apply but assumes Gaussian uncertainties and near-linear dynamics.
  • Likelihood-Based Inference (LBI): A high-precision approach that optimizes initial latent states via gradient descent. It requires a differentiable, model-specific likelihood function formulated as a binary cross-entropy loss.

Latent State Recovery and Robustness

LBI consistently outperforms DA in reconstructing the latent opinions of agents across all tested scenarios. As shown in Figure 1, LBI maintains significantly lower reconstruction errors even under conditions of strong noise or model mis-specification. While DA is model-agnostic and easier to implement, its reliance on Gaussian assumptions and linear updates struggles with the discrete, non-linear interaction rules of the BCM. Interestingly, in the consensus regime, the performance gap narrows as the latent space simplifies and opinions converge.

Opinion reconstruction and error analysis across weak noise, strong noise, and mis-specified scenarios.

Forecasting Performance: Micro vs. Macro

A critical finding of this research is the performance gap between micro-level and macro-level forecasting. LBI provides highly accurate predictions of individual agent interactions (edge-level error). Conversely, DA exhibits high edge-level error but performs remarkably well when predicting aggregate system behavior, such as the total number of interactions (global error). This suggests that DA is a viable tool for researchers primarily interested in macro-scale trends where the exact underlying mechanics may be unknown.

Comparison of forecasting errors (Edge, Node, and Global) for DA and LBI in polarization and consensus regimes.

Conclusion

The choice between DA and LBI involves a trade-off between precision and complexity. LBI offers superior micro-level accuracy and robustness but requires a differentiable, model-specific likelihood function. DA, while less precise at the agent level, is a powerful "black-box" tool for macro-scale analysis. Future work should explore hybrid approaches or DA techniques specifically optimized for the discrete state spaces typical of social ABMs.

Summary updated

BibTeX
@misc{kolic2025comparing,
  author = {Blas Kolic and Corrado Monti and Gianmarco De Francisci Morales and Marco Pangallo},
  title = {{Comparing Data Assimilation and Likelihood-Based Inference on Latent State Estimation in Agent-Based Models}},
  year = {2025},
  eprint = {2509.17625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.17625},
}
Figure