SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2302.05793 · 2023

Distributional GFlowNets with Quantile Flows

arXiv · PDF · Open in the Atlas

Code that ran

11 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, 2 violated it and 7 have no contract verdict; 2 failures of our instrument; 3 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/2302.05793.json · badge: /api/ran/2302.05793.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
zdhnarsil/distributional-gflownets canonical (classifier label)
classifier basis not recorded on the link
11 ran · 3 no recorded run
FunctionStatusWhere it lives
detailed_balance_loss Ran
ran on a synthesized input
zdhnarsil/distributional-gflownets/mols/gflownet.py
code served (permissive licence) · get_code("6f514da43ddcc0a0")
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 1, dtype family float, shape (1,) 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)

# Analyze the function:
# - P_F, P_B: indexed with [offset + i], used in arithmetic, shape should be (total_steps,)
# - F, R: F indexed with [offset + i], R indexed with [ep], used in arithmetic
# - traj_lengths: shape (num_episodes,), used to get number of episodes and trajectory lengths

# Create small example with 2 episodes
num_episodes = 2
traj_lengths = torch.tensor([3, 2], dtype=torch.long)  # 2 episodes with lengths 3 and 2
total_steps = int(traj_lengths.sum())  # 5 total steps

# P_F and P_B: indexed by step, so shape (total_steps,)
P_F = torch.randn(total_steps, dtype=torch.float32)
P_B = torch.randn(total_steps, dtype=torch.float32)

# F: indexed by step, so shape (total_steps,)
F = torch.randn(total_steps, dtype=torch.float32)

# R: indexed by episode, so shape (num_episodes,)
R = torch.randn(num_episodes, dtype=torch.float32)

ARGS = {
    "P_F": P_F,
    "P_B": P_B,
    "F": F,
    "R": R,
    "traj_lengths": traj_lengths,
}
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 1, dtype family float, shape (1,) — shape (1,) 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
edge_match Ran
ran, violated the contract we drafted
zdhnarsil/distributional-gflownets/mols/mol_mdp_ext.py
code served (permissive licence) · get_code("6b452c8d0cc45c99")
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 1, dtype family float, shape (4,) 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 edge_match compares the 'bond' key in two dictionaries
# x1 and x2 are expected to be dicts with a 'bond' key

x1 = {
    'bond': torch.tensor([1, 0, 1, 0], dtype=torch.int32)
}

x2 = {
    'bond': torch.tensor([1, 0, 1, 0], dtype=torch.int32)
}

ARGS = {
    'x1': x1,
    'x2': x2
}
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 1, dtype family float, shape (4,) — shape (4,) 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
get_func Ran
ran on a synthesized input
zdhnarsil/distributional-gflownets/grid/toy_grid_dag.py
code served (permissive licence) · get_code("f6c0e2ad8348ec59")
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 function. 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 numpy as np
from scipy.stats import norm

class Config:
    def __init__(self, func, R0, R1, R2):
        self.func = func
        self.R0 = R0
        self.R1 = R1
        self.R2 = R2

# Test with 'corner' function
arg_corner = Config(
    func='corner',
    R0=1.0,
    R1=2.0,
    R2=0.5
)

ARGS = {
    'arg': arg_corner
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_mlp Ran
ran on a synthesized input
zdhnarsil/distributional-gflownets/grid/distributional.py
code served (permissive licence) · get_code("29e96c8a8bdeae38")
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 Sequential. 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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function make_mlp takes:
# - l: a list of layer dimensions (integers)
# - act: an activation function (nn.Module)
# - tail: a list of additional modules to append

ARGS = {
    "l": [4, 8, 6, 3],  # Input dim 4, hidden 8, hidden 6, output 3
    "act": nn.LeakyReLU(),
    "tail": []
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
mol2graph Ran
ran on a synthesized input
zdhnarsil/distributional-gflownets/mols/model_block.py
code served (permissive licence) · get_code("5c990a0f4e743885")
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 Data. 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 torch
from torch_geometric.data import Data

torch.manual_seed(0)

class MockMDP:
    def __init__(self):
        self.device = 'cpu'
        self.num_true_blocks = 5
        self.num_stem_types = 3
        self.true_blockidx = [0, 1, 2, 3, 4]
        self.stem_type_offset = [0, 2, 4]

class MockMol:
    def __init__(self):
        self.blockidxs = [0, 1, 2]
        self.jbonds = [(0, 1, 0, 1), (1, 2, 1, 0)]
        self.stems = [(0, 0), (1, 1)]

mol = MockMol()
mdp = MockMDP()

ARGS = {
    'mol': mol,
    'mdp': mdp,
    'floatX': torch.float,
    'bonds': False,
    'nblocks': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Data — a Data output has no array shape of its own; none is 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
mols2batch Ran
ran; our contract draft was wrong, not the code
zdhnarsil/distributional-gflownets/mols/model_atom.py
pointer only (licence: MIT); the stored copy get_code serves, from ZRNB/PLUS, is pointer only (licence: NONE) · get_code("06477cbf36090384")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ZRNB/PLUS, 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.

mols2batch Ran
ran; our contract draft was wrong, not the code
zdhnarsil/distributional-gflownets/mols/model_block.py
pointer only (licence: MIT); the stored copy get_code serves, from ZRNB/PLUS, is pointer only (licence: NONE) · get_code("e2f61d62c1a23b4e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ZRNB/PLUS, 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.

node_match Ran
ran, violated the contract we drafted
zdhnarsil/distributional-gflownets/mols/mol_mdp_ext.py
code served (permissive licence) · get_code("514f704ea4cae3e4")
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 bool, ndim 0, dtype family float, shape () 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)

x1 = {'block': 1}
x2 = {'block': 1}

ARGS = {
    'x1': x1,
    'x2': x2
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
normal_cdf Ran
ran on a synthesized input
zdhnarsil/distributional-gflownets/grid/distributional.py
code served (permissive licence) · get_code("00732f3acab6fcc3")
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 2, dtype family float, shape (2, 4) 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 math
import torch

torch.manual_seed(0)

# The function takes:
# - value: a tensor to compute normal CDF for
# - loc: location parameter (float, default 0.0)
# - scale: scale parameter (float, default 1.0)

# Create a small tensor for the value parameter
value = torch.randn(2, 4)

# Use default and custom parameters
loc = 0.0
scale = 1.0

ARGS = {
    "value": value,
    "loc": loc,
    "scale": scale,
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) 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
normal_invcdf Ran
ran on a synthesized input
zdhnarsil/distributional-gflownets/grid/distributional.py
code served (permissive licence) · get_code("85f30989270c06ff")
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 1, dtype family float, shape (4,) 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
import math

torch.manual_seed(0)

# The function takes:
# - value: a tensor (used in arithmetic operations with 2, 1, and scale)
# - loc: a scalar float (default 0.0)
# - scale: a scalar float (default 1.0)

# Create a small tensor for 'value' parameter
# torch.erfinv expects values in (-1, 1), so we need value in (0, 1)
# Let's create values in the valid range for erfinv
value = torch.tensor([0.1, 0.5, 0.9, 0.3], dtype=torch.float32)

loc = 0.0
scale = 1.0

ARGS = {
    "value": value,
    "loc": loc,
    "scale": scale,
}
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 1, dtype family float, shape (4,) — shape (4,) 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
onehot Ran
ran on a synthesized input
zdhnarsil/distributional-gflownets/mols/utils/chem.py
code served (permissive licence) · get_code("a0579acf3f4c545c")
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 ndarray, ndim 2, dtype family int, shape (5, 3) 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 numpy as np

# Create a small 1D array of class indices
arr = np.array([0, 1, 2, 1, 0], dtype=np.int32)

# Number of classes to one-hot encode to
num_classes = 3

# Data type for output
dtype = np.int32

ARGS = {
    'arr': arr,
    'num_classes': num_classes,
    'dtype': dtype
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (5, 3) — shape (5, 3) 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
func_diff_corners Not yet run
unverified (harvested, no recorded run)
zdhnarsil/distributional-gflownets/grid/toy_grid_dag.py
code served (permissive licence) · get_code("4f978fbee1d9c9b2")
How it ran

no invocation recorded.

tb_lambda_loss Not yet run
unverified (harvested, no recorded run)
zdhnarsil/distributional-gflownets/mols/gflownet.py
code served (permissive licence) · get_code("f267c62af541e3d2")
How it ran

no invocation recorded.

trajectory_balance_loss Not yet run
unverified (harvested, no recorded run)
zdhnarsil/distributional-gflownets/mols/gflownet.py
code served (permissive licence) · get_code("e4f0eb023588e4fc")
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, 5 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 4 the same month, 4 later) and 9 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
mols2batch 4 other papers
1 dated earlier, 1 the same month, 2 later
2106.04399 (2021-06)
Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
2302.04040 (2023-02)
Sample-efficient Multi-objective Molecular Optimization with GFlowNets
2310.12934 (2023-10)
Generative Flow Networks as Entropy-Regularized RL
and 1 more not named here
mols2batch 3 other papers
1 dated earlier, 1 the same month, 1 later
2106.04399 (2021-06)
Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
2302.04040 (2023-02)
Sample-efficient Multi-objective Molecular Optimization with GFlowNets
2510.00805 (2025-10)
Planning-Augmented Sampling with Early Guidance for High-Reward Discovery
edge_match 2 other papers
1 the same month, 1 later
2302.04040 (2023-02)
Sample-efficient Multi-objective Molecular Optimization with GFlowNets
2310.12934 (2023-10)
Generative Flow Networks as Entropy-Regularized RL
node_match 2 other papers
1 the same month, 1 later
2302.04040 (2023-02)
Sample-efficient Multi-objective Molecular Optimization with GFlowNets
2310.12934 (2023-10)
Generative Flow Networks as Entropy-Regularized RL
make_mlp 1 other paper
1 dated earlier
2210.00999 (2022-10)
Latent State Marginalization as a Low-cost Approach for Improving Exploration

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

Generative Flow Networks (GFlowNets) are a new family of probabilistic samplers where an agent learns a stochastic policy for generating complex combinatorial structure through a series of decision-making steps. Despite being inspired from reinforcement learning, the current GFlowNet framework is relatively limited in its applicability and cannot handle stochasticity in the reward function. In this work, we adopt a distributional paradigm for GFlowNets, turning each flow function into a distribution, thus providing more informative learning signals during training. By parameterizing each edge flow through their quantile functions, our proposed \textit{quantile matching} GFlowNet learning algorithm is able to learn a risk-sensitive policy, an essential component for handling scenarios with risk uncertainty. Moreover, we find that the distributional approach can achieve substantial improvement on existing benchmarks compared to prior methods due to our enhanced training algorithm, even in settings with deterministic rewards.

For agents

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

get_harvested_code_for_paper("2302.05793")
get_code_for_paper("2302.05793")
have("2302.05793")

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

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

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

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

Connect an agent — have() is free.