Papers › Generative Flow Networks for Discrete Probabilistic Modeling

Generative Flow Networks for Discrete Probabilistic Modeling

3 Feb 2022arXiv:2202.01361archive 2025-07-28

Dinghuai Zhang, Nikolay Malkin, Zhen Liu, Alexandra Volokhova, Aaron Courville, Yoshua Bengio

We present energy-based generative flow networks (EB-GFN), a novel probabilistic modeling algorithm for high-dimensional discrete data. Building upon the theory of generative flow networks (GFlowNets), we model the generation process by a stochastic data construction policy and thus amortize expensive MCMC exploration into a fixed number of actions sampled from a GFlowNet. We show how GFlowNets can approximately perform large-block Gibbs sampling to mix between modes. We propose a framework to jointly train a GFlowNet with an energy function, so that the GFlowNet learns to sample from the energy distribution, while the energy learns with an approximate MLE objective with negative samples from the GFlowNet. We demonstrate EB-GFN's effectiveness on various probabilistic modeling tasks. Code is publicly available at https://github.com/zdhNarsil/EB_GFN.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2202.01361")

Code

Syntology Ran 4 of 11 code samples harvested from 2 repositories linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 8 samples from 1 repository, 1 ran; community (archive-listed): 3 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zdhnarsil/eb_gfn officialmentioned in papermentioned on GitHubpytorchMIT report
gfnorg/eb_gfn mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 4 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
2ran
7unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

mlp_ebm zdhnarsil/eb_gfn/network.py official repository ran MIT (permissive) · 646a9f9fd82940a8 · report
estimate_ll zdhnarsil/eb_gfn/synthetic/synthetic_utils.py official repository unverified MIT (permissive) · 77c8c9154ca9862d · report
get_ebm_samples zdhnarsil/eb_gfn/synthetic/synthetic_utils.py official repository unverified MIT (permissive) · fb6f740cc2299d77 · report
get_true_samples zdhnarsil/eb_gfn/synthetic/synthetic_utils.py official repository unverified MIT (permissive) · 395de5d1a0676567 · report
inf_train_gen zdhnarsil/eb_gfn/synthetic/synthetic_data.py official repository unverified MIT (permissive) · 94ec778ec432087a · report
load_dataset zdhnarsil/eb_gfn/utils_data.py official repository unverified MIT (permissive) · 5b4889200346ea70 · report
load_dynamic_mnist zdhnarsil/eb_gfn/utils_data.py official repository unverified MIT (permissive) · e3e34d78cb795ec1 · report
tb_mle_learnedpb_loss zdhnarsil/eb_gfn/gflownet.py official repository unverified MIT (permissive) · 17e1040599b7fde6 · report
GFlowNet_Randf_TB gfnorg/eb_gfn/gflownet.py community (archive-listed) ran MIT (permissive) · a9eee1bd24b1e137 · report
make_mlp gfnorg/eb_gfn/gflownet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 748e67c13d4d482f · report
tb_mle_randf_loss gfnorg/eb_gfn/gflownet.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 15b88275b738f13f · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections