Papers › Diffusion Generative Flow Samplers: Improving learning signals through partial...

Diffusion Generative Flow Samplers: Improving learning signals through partial trajectory optimization

4 Oct 2023arXiv:2310.02679archive 2025-07-28

Dinghuai Zhang, Ricky T. Q. Chen, Cheng-Hao Liu, Aaron Courville, Yoshua Bengio

We tackle the problem of sampling from intractable high-dimensional density functions, a fundamental task that often appears in machine learning and statistics. We extend recent sampling-based approaches that leverage controlled stochastic processes to model approximate samples from these target densities. The main drawback of these approaches is that the training objective requires full trajectories to compute, resulting in sluggish credit assignment issues due to use of entire trajectories and a learning signal present only at the terminal time. In this work, we present Diffusion Generative Flow Samplers (DGFS), a sampling-based framework where the learning process can be tractably broken down into short partial trajectory segments, via parameterizing an additional "flow function". Our method takes inspiration from the theory developed for generative flow networks (GFlowNets), allowing us to make use of intermediate learning signals. Through various challenging experiments, we demonstrate that DGFS achieves more accurate estimates of the normalization constant than closely-related prior methods.

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="2310.02679")

Code

Syntology Ran 8 of 18 code samples harvested from 2 repositories linked to this paper; 10 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 3 ran · our draft was wrong; 2 ran with no contract checked.

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

zdhNarsil/Diffusion-Generative-Flow-Samplers officialmentioned in papermentioned on GitHubpytorch report
lollcat/fab-torch mentioned on GitHubpytorchMIT 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

18 samples harvested; 8 ran; 2 honoured the contract we drafted; 10 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.

2ran · honoured contract
1ran · violated contract
3ran · our draft was wrong
2ran
10unverified

Licence: 1 of the 18 samples is 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. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

FourierMLP zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository ran · metamorphic tier: deterministic BSD-2-Clause (permissive) · a201302b402cd6c0 · report
TimeConder zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository ran · metamorphic tier: deterministic fingerprinted BSD-2-Clause (permissive) · d37a1cf88a974ddb · report
cal_subtb_coef_matrix zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository ran · honoured contract fingerprinted BSD-2-Clause (permissive) · da2a05982956c734 · report
check_shape zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository ran · violated contract fingerprinted BSD-2-Clause (permissive) · 1b8efc311899b36e · report
fl_inter_logr zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository ran · our draft was wrong BSD-2-Clause (permissive) · 5a929f917f107757 · report
normal_logp zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository ran · our draft was wrong fingerprinted BSD-2-Clause (permissive) · 2ed606761595e6ff · report
sample_traj zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository ran · our draft was wrong BSD-2-Clause (permissive) · 47473fd7a828cef0 · report
DetailedBalance zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository unverified BSD-2-Clause (permissive) · 7e440df137ddbc75 · report
GFlowNet zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository unverified BSD-2-Clause (permissive) · 394421bec90315ef · report
SubTrajectoryBalanceTrajectoryBased zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository unverified BSD-2-Clause (permissive) · 1577628704e1417d · report
viz_contour_sample2d zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository unverified BSD-2-Clause (permissive) · bd6f8a0574e9cd96 · report
viz_coutour_with_ax zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository unverified BSD-2-Clause (permissive) · 309401c5bfc7cbee · report
viz_kde2d zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository unverified BSD-2-Clause (permissive) · 63cdfff03811f45f · report
viz_sample2d zdhNarsil/Diffusion-Generative-Flow-Samplers/gflownet/gflownet.py official repository unverified BSD-2-Clause (permissive) · 660957422c84b3e3 · report
get_intermediate_log_prob lollcat/fab-torch/fab/sampling_methods/base.py community (archive-listed) unverified MIT (permissive) · 99eccb5ee7909c68 · report
grad_and_value lollcat/fab-torch/fab/sampling_methods/base.py community (archive-listed) unverified MIT (permissive) · 2107603dfc4feb0f · report
rejection_sampling lollcat/fab-torch/fab/sampling_methods/rejection_sampling.py community (archive-listed) unverified MIT (permissive) · a78f6c4029a8dd93 · report
num_to_groups identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · 4f66ae7f14b3b240 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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