Amortized Bayesian Inference on Multilevel Models of Arbitrary Structure

Daniel Habermann, Andreas Bulling, Stefan T. Radev, Paul-Christian Bürkner
9/30/2026
stat.MLcs.LGstat.CO
bayesian

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{habermann2026amortized,
  title  = {Amortized Bayesian Inference on Multilevel Models of Arbitrary Structure},
  author = {Daniel Habermann and Andreas Bulling and Stefan T. Radev and Paul-Christian Bürkner},
  year   = {2026},
  eprint = {2609.40024},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.40024v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.40024.svg)](https://codeofpaper.com/paper/2609.40024)

Discussion