SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.07037 · 2023

Bayesian Flow Networks

arXiv · PDF · Open in the Atlas

Code that ran

13 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 13 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2308.07037.json · badge: /api/ran/2308.07037.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
nnaisense/bayesian-flow-networks canonical (classifier label)
classifier basis: census
13 ran · 1 no recorded run
FunctionStatusWhere it lives
attention_inner_heads Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nnaisense/bayesian-flow-networks/networks/unet_vdm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ML-GSAI/BFN-Solver, is pointer only (licence: NONE) · get_code("c362b4cbfac8170f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ML-GSAI/BFN-Solver, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

bin_mnist_cts_transform Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/data.py
code served (permissive licence) · get_code("0af60baeeb1fb185")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (4, 3, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function bin_mnist_cts_transform takes a tensor x and:
# 1. Permutes dimensions from (D0, D1, D2) to (D1, D2, D0)
# 2. Makes it contiguous
# 3. Applies torch.bernoulli (which expects values in [0, 1])
# 4. Subtracts 0.5

# We need a tensor with 3 dimensions. Let's use shape (2, 4, 3)
# After permute(1, 2, 0) it becomes (4, 3, 2)
# torch.bernoulli expects float values in [0, 1]

x = torch.rand(2, 4, 3)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (4, 3, 2) — shape (4, 3, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bin_mnist_transform Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/data.py
code served (permissive licence) · get_code("2ae69bceb65a76e8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family int, shape (4, 3, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with shape (batch, height, width)
# The function expects a tensor that will be permuted to (height, width, batch)
# and then bernoulli sampled (so values should be in [0, 1])
x = torch.rand(2, 4, 3)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family int, shape (4, 3, 2) — shape (4, 3, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gelu Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/networks/transformer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ML-GSAI/BFN-Solver, is pointer only (licence: NONE) · get_code("b17ebf2b2ef1cb60")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ML-GSAI/BFN-Solver, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nnaisense/bayesian-flow-networks/networks/unet_vdm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ML-GSAI/BFN-Solver, is pointer only (licence: NONE) · get_code("179411226b633de6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ML-GSAI/BFN-Solver, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

init_checkpointing Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/utils_train.py
code served (permissive licence) · get_code("3441023d420317ab")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

ARGS = {
    "checkpoint_dir": tempfile.gettempdir(),
    "run_id": "test_run_001"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_master_params Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/networks/unet_improved.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from freemasti/diffo, is pointer only (licence: NONE) · get_code("a863803cdd5f3ce6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from freemasti/diffo, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_progress_bar Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/utils_train.py
code served (permissive licence) · get_code("c9031db20e2d11cc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Progress. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from rich.progress import Progress, SpinnerColumn, MofNCompleteColumn, TimeElapsedColumn, TextColumn

ARGS = {
    'is_main': True,
    'text': '[red]loss: {task.fields[loss]:.3f}'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
rich — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Progress — a Progress output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Progress output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
safe_exp Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/utils_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ML-GSAI/BFN-Solver, is pointer only (licence: NONE) · get_code("a91dc4fa6fd3684d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ML-GSAI/BFN-Solver, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

safe_log Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/utils_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ML-GSAI/BFN-Solver, is pointer only (licence: NONE) · get_code("34cc47ee17f6c9ee")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ML-GSAI/BFN-Solver, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sandwich Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/utils_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ML-GSAI/BFN-Solver, is pointer only (licence: NONE) · get_code("1b5fa89b375364a0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ML-GSAI/BFN-Solver, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

unflatten_master_params Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/networks/unet_improved.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from freemasti/diffo, is pointer only (licence: NONE) · get_code("30e43bcf12d042b0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from freemasti/diffo, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

zero_init Ran
ran; our contract draft was wrong, not the code
nnaisense/bayesian-flow-networks/networks/unet_vdm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ML-GSAI/BFN-Solver, is pointer only (licence: NONE) · get_code("b6858c53f43787dc")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ML-GSAI/BFN-Solver, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv_nd Not yet run
unverified (harvested, no recorded run)
nnaisense/bayesian-flow-networks/networks/unet_improved.py
code served (permissive licence) · get_code("fe4eb545bbb728e0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 10 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 10 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
conv_nd 121 other papers
52 dated earlier, 2 the same month, 66 later, 1 same year, order not determinable · 32 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 118 more not named here
make_master_params 16 other papers
7 dated earlier, 9 later
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
2206.07696 (2022-06)
Diffusion Models for Video Prediction and Infilling
and 13 more not named here
unflatten_master_params 15 other papers
7 dated earlier, 8 later
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
2206.07696 (2022-06)
Diffusion Models for Video Prediction and Infilling
and 12 more not named here
attention_inner_heads 2 other papers
2 later
2403.10648 (2024-03)
Debiasing with Diffusion: Probabilistic reconstruction of Dark Matter fields from galaxies with CAMELS
2404.15766 (2024-04)
Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations
gelu 1 other paper
1 later
2404.15766 (2024-04)
Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations
get_timestep_embedding 1 other paper
1 later
2404.15766 (2024-04)
Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations
safe_exp 1 other paper
1 later
2404.15766 (2024-04)
Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations
safe_log 1 other paper
1 later
2404.15766 (2024-04)
Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations
sandwich 1 other paper
1 later
2404.15766 (2024-04)
Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations
zero_init 1 other paper
1 later
2404.15766 (2024-04)
Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper introduces Bayesian Flow Networks (BFNs), a new class of generative model in which the parameters of a set of independent distributions are modified with Bayesian inference in the light of noisy data samples, then passed as input to a neural network that outputs a second, interdependent distribution. Starting from a simple prior and iteratively updating the two distributions yields a generative procedure similar to the reverse process of diffusion models; however it is conceptually simpler in that no forward process is required. Discrete and continuous-time loss functions are derived for continuous, discretised and discrete data, along with sample generation procedures. Notably, the network inputs for discrete data lie on the probability simplex, and are therefore natively differentiable, paving the way for gradient-based sample guidance and few-step generation in discrete domains such as language modelling. The loss function directly optimises data compression and places no restrictions on the network architecture. In our experiments BFNs achieve competitive log-likelihoods for image modelling on dynamically binarized MNIST and CIFAR-10, and outperform all known discrete diffusion models on the text8 character-level language modelling task.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2308.07037")
get_code_for_paper("2308.07037")
have("2308.07037")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2308.07037.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2308.07037.svg)](https://syntology.ai/paper/2308.07037)

Connect an agent — have() is free.