Generative Modeling with Bayesian Sample Inference
Marten Lienen, Marcel Kollovieh, Stephan Günnemann
TL;DR
Bayesian Sample Inference (BSI) presents a generative framework that treats the unknown data sample ${\bm{x}}$ as the object of iterative Bayesian updates driven by noisy measurements ${\bm{y}}_i$. A predictor $f_{\theta}$ alternates with posterior updates to progressively refine ${\bm{x}}$, linking diffusion models and Bayesian Flow Networks within a unified Bayesian view. The authors derive an evidence lower bound (ELBO) for training and introduce variance-reduction via importance sampling, showing competitive log-likelihoods on CIFAR10 and ImageNet32 along with improved sample quality on ImageNet32. They implement preconditioning and precision-encoding to stabilize learning, experiment on ImageNet32 and CIFAR10 with U-Net and DiT backbones, and discuss how BFNs and diffusion models arise as special cases of the BSI framework, suggesting a broadly applicable probabilistic lens for generative modeling.
Abstract
We derive a novel generative model from iterative Gaussian posterior inference. By treating the generated sample as an unknown variable, we can formulate the sampling process in the language of Bayesian probability. Our model uses a sequence of prediction and posterior update steps to iteratively narrow down the unknown sample starting from a broad initial belief. In addition to a rigorous theoretical analysis, we establish a connection between our model and diffusion models and show that it includes Bayesian Flow Networks (BFNs) as a special case. In our experiments, we demonstrate that our model improves sample quality on ImageNet32 over both BFNs and the closely related Variational Diffusion Models, while achieving equivalent log-likelihoods on ImageNet32 and CIFAR10. Find our code at https://github.com/martenlienen/bsi.
