cs.LGJan 12, 2026

Adapting Neural Posterior Estimators for Simulation-Based Inference in Agent-Based Models

Authors: Junyao Zhang, Jinglai Li, Junqi Tang

Organizations: School of Mathematics, University of Birmingham

Abstract

Agent-based models (ABMs) are widely used in economics and social sciences. They represent heterogeneous personal behaviors and their interactions by using simulations, whereas their likelihoods are often intractable for parameter estimations. Therefore, most traditional statistical inference techniques are hindered. Driven by recent advances in probabilistic machine learning, recent works have applied neural networks to achieve likelihood-free inference in large-scale ABMs. Specifically, Neural Posterior Estimation using normalizing flows provide amortized Bayesian inference from simulations, yet a pre-trained estimator may become inaccurate when the target task changes. In this work, we investigate the practicality of adapting a pre-trained conditional normalizing flow through a unified sequential neural posterior estimation test-time training (SNPE-TTT) framework. The framework includes four adaptation strategies: full-parameter adaptation, low-rank adaptation, and two update spaces identified from target-task gradients. We evaluate all four methods across economic simulation models with both tractable and intractable likelihoods. These benchmarks demonstrate that the sequential neural posterior estimation test-time training framework can adapt pre-trained posterior estimators to related inference tasks using a limited budget of target simulations. Posterior recovery and computational benefits depend on the task and adaptation strategy, with lower target-stage cost in some settings but no consistently superior posterior accuracy.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Simulation-Efficient Double-Flow Neural Posterior Estimation for Agent-Based Models

    Oct 26, 2026Junyao Zhang, Jinglai Li, Junqi TangNeural Posterior EstimationSimulation-Based Inference

  2. Neural Network-Based Parameter Estimation of a Labour Market Agent-Based Model

    Feb 17, 2026M Lopes Alves, Joel Dyer, Doyne Farmer +2Agent-Based ModelingSimulation-Based Inference

  3. Causal Posterior Estimation

    May 27, 2025Simon Dirmeier, Antonietta MiraBayesian InferenceSimulation-Based Inference