AutoBayes: A Compositional Framework for Generalized Variational Inference

Toby St Clere Smithe, Marco Perin
3/24/2025
stat.MLcs.LGmath.ST

No confident code implementation found for this paper.

Abstract

We introduce a new compositional framework for generalized variational inference, clarifying the different parts of a model, how they interact, and how they compose. We explain that both exact Bayesian inference and the loss functions typical of variational inference (such as variational free energy and its generalizations) satisfy chain rules akin to that of reverse-mode automatic differentiation, and we advocate for exploiting this to build and optimize models accordingly. To this end, we construct a series of compositional tools: for building models; for constructing their inversions; for attaching local loss functions; and for exposing parameters. Finally, we explain how the resulting parameterized statistical games may be optimized locally, too. We illustrate our framework with a number of classic examples, pointing to new areas of extensibility that are revealed.

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{smithe2025autobayes,
  title  = {AutoBayes: A Compositional Framework for Generalized Variational Inference},
  author = {Toby St Clere Smithe and Marco Perin},
  year   = {2025},
  eprint = {2503.18608},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.18608v2}
}

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/2503.18608.svg)](https://codeofpaper.com/paper/2503.18608)

Discussion