Bayesian Flow Network (BFN)
A Bayesian Flow Network for binarized MNIST: a U-Net maps the parameters of one distribution to another.
Diffusion and generative · 504 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 24.8M
- Operations
- 504
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023
- Paper
- Bayesian Flow Networks
- Cited by
- 104 (as of 16 November 2026)
- Authors
- Alex Graves, Rupesh Kumar Srivastava, Timothy Atkinson, Faustino Gomez
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14919
- Graph hash
- 4e8d171c2a8e3d1dd4581621f67ee2a9ff22247083e33eddbd910f7b53ace34b
- Skeleton hash
- a5bad69d5d35ec13cfb5310872be525194b4abc1dd446c47a4ed762dc4a403b4
- Architecture hash
- 8b7b6f3ad8375112a42a5d18670a4f76f18f250030799f9af0e20fffc8c9b02a
- Diagram SHA-256
- e9e5533f2aa0720d92deee6c298d017b515f60d31929ecc2134d60044541ea55
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Bayesian Flow Networks (BFNs) are a class of generative model in which the parameters of a set of independent distributions are updated by Bayesian inference from noisy samples of the data, then passed to a neural network that outputs a second, interdependent distribution. Starting from a simple prior and repeating the two updates gives a generation procedure similar to the reverse process of diffusion models, but with no forward process.
The network therefore maps one distribution to another, rather than data to a distribution. Because the parameters of a categorical distribution are real-valued probabilities, the inputs to the network are continuous even when the data is discrete. The loss function directly optimizes data compression and places no restrictions on the network architecture.
For dynamically binarized MNIST, the paper applies the discrete-data version with a network based on a U-Net introduced for diffusion models, using two resblocks and layer widths of [C, 2C, 2C] with C = 128. The paper reports approximately 25M learnable parameters for that network. In its experiments, BFNs reach competitive log-likelihoods on dynamically binarized MNIST and CIFAR-10, and the authors report better results than all discrete diffusion models known to them on the text8 character-level language modeling task.
Key idea. The paper introduces a generative model that alternates Bayesian updates of simple input distributions with a network predicting an output distribution, giving diffusion-like generation without a forward process.
- Bayesian Flow Network
- BFN
- Bayesian Flow Networks
- generative model
- discrete data generation
- binarized MNIST
- diffusion alternative
- likelihood-based generative model
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{graves2025bayesianflownetworks,
title={Bayesian Flow Networks},
author={Alex Graves and Rupesh Kumar Srivastava and Timothy Atkinson and Faustino Gomez},
year={2025},
eprint={2308.07037},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2308.07037},
}