stat.MLSep 30, 2026

Amortized Bayesian Inference on Multilevel Models of Arbitrary Structure

Authors: Daniel Habermann, Andreas Bulling, Stefan T. Radev, Paul-Christian Bürkner

Organizations: Department of Statistics TU Dortmund University, Germany · Institute for Visualisation and Interactive Systems University of Stuttgart, Germany · Department of Cognitive Science Rensselaer Polytechnic Institute, USA

Abstract

We develop a general method for amortized Bayesian inference on multilevel models of arbitrary structure. Given a generative model specified as a directed acyclic graph, our method automatically derives valid factorizations of the joint posterior and matching neural network architectures. The key steps, graph expansion and graph inversion, yield an inverse graph that determines how inference networks are stacked and conditioned, producing factorizations that amortize over the number of groups and the number of observations within each group. Unlike approaches that simplify the dependency structure to speed up learning or inference, our method preserves all conditional independence and exchangeability assumptions of the generative model. Across three case studies, it closely matches gold-standard samplers on models with more than 6,500 parameters while reducing inference to a near-instant forward pass once trained.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Amortized Factor Inference Networks for Posterior Inference

    May 26, 2026Joohwan Ko, Justin DomkeBayesian InferencePosterior

  2. Neural Architectures for Amortized Bayesian Inference: Statistical Foundations and Empirical Assessments

    Jan 12, 2026Roy Shivam Ram Shreshtth, Arnab Hazra, Gourab MukherjeeBayesian InferenceNeural Network Inference

  3. Prior-Amortized In-Context Bayesian Inference for Generalized Linear Mixed-Effects Models

    Sep 21, 2026Alex Kipnis, Marcel Binz, Eric SchulzBayesian InferenceGeneralized Linear Model