SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.04399 · NeurIPS · 2021

Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation

Yoshua Bengio, Doina Precup, Moksh Jain, Emmanuel Bengio, Maksym Korablyov

arXiv · PDF · Open in the Atlas

Code that ran

25 of 31 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 6 honoured the contract we drafted, 1 violated it and 5 have no contract verdict; 13 failures of our instrument; 6 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2106.04399.json · badge: /api/ran/2106.04399.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
bengioe/gflownet canonical (classifier label)
classifier basis: census
12 ran · 3 no recorded run
GFNOrg/gflownet canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
5 ran · 2 no recorded run
princetonlips/mam community
Papers with Code archive
3 ran · 0 no recorded run
recursionpharma/gflownet reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
gfnorg/gflownet community
Papers with Code archive
1 ran · 0 no recorded run
alexhernandezgarcia/gflownet reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
safe Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from SeonghwanSeo/RxnFlow
pointer only · get_code("1061c8464b631df1")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

GraphAgent Ran
ran on a synthesized input · constructed an object; no result was computed
gfnorg/gflownet/mols/model_block.py
code served (permissive licence) · get_code("ece02e732c2290ba")
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 an instance of its own class, GraphAgent: the run constructed the object and did not call it, so no result was computed. 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
import torch_geometric.data as gdata

torch.manual_seed(0)

# Create a minimal mdp_cfg class with required attributes
class MDPConfig:
    def __init__(self):
        self.num_true_blocks = 5
        self.num_stem_types = 3

# Create minimal graph data object
def create_graph_data():
    # Create a simple graph with 4 nodes and 3 edges
    x = torch.tensor([0, 1, 2, 0], dtype=torch.long)  # node types
    edge_index = torch.tensor([[0, 1, 2], [1, 2, 3]], dtype=torch.long)
    edge_attr = torch.tensor([[0, 1], [1, 0], [0, 1]], dtype=torch.long)  # bond types
    batch = torch.tensor([0, 0, 1, 1], dtype=torch.long)
    
    # Create stems data
    stems = torch.tensor([[0], [2]], dtype=torch.long)  # which block in each molecule
    stems_batch = torch.tensor([0, 1], dtype=torch.long)  # which molecule each stem belongs to
    stemtypes = torch.tensor([1, 2], dtype=torch.long)  # stem type indices
    
    graph_data = gdata.Data(
        x=x,
        edge_index=edge_index,
        edge_attr=edge_attr,
        batch=batch,
        stems=stems,
        stems_batch=stems_batch,
        stemtypes=stemtypes
    )
    
    # Add __slices__ attribute for indexing
    graph_data.__slices__ = {
        'x': [0, 2, 4],  # node boundaries: mol 0 has nodes 0-1, mol 1 has nodes 2-3
        'stems': [0, 1, 2]  # stem boundaries
    }
    
    return graph_data

ARGS = {
    'nemb': 4,
    'nvec': 3,
    'out_per_stem': 2,
    'out_per_mol': 1,
    'num_conv_steps': 2,
    'mdp_cfg': MDPConfig(),
    'version': 'v1'
}
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 GraphAgent — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GraphAgent 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
MAM Ran
ran on a synthesized input · constructed an object; no result was computed
princetonlips/mam/mam/models/mam.py
pointer only (licence: NONE) · get_code("b78da7a4b43fba13")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princetonlips/mam 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.

array_may_17 Ran
ran; our contract draft was wrong, not the code
GFNOrg/gflownet/mols/mars.py
code served (permissive licence) · get_code("af9f0f910f9bbc52")
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) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

ARGS = {
    'args': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
array_may_18 Ran
ran on a synthesized input
bengioe/gflownet/mols/ppo.py
code served (permissive licence) · get_code("c3caff85ecc30396")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

torch.manual_seed(0)

def array_may_18(args):
    base = {'nemb': 256}
    all_hps = [{**base}]
    return all_hps

ARGS = {
    'args': {}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
binarize_static Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from GFNOrg/GFlowNet-EM
pointer only · get_code("4e16af7e5dbea818")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

branin Ran
ran, honoured the contract we drafted
bengioe/gflownet/grid/cond_grid_dag.py
code served (permissive licence) · get_code("b8e02a8995424b4e")
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) and returned ndarray, ndim 1, dtype family float, shape (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 numpy as np
import torch

torch.manual_seed(0)

# The function takes x as input
# x is indexed with [..., 0] and [..., 1], so it needs at least 2 dimensions on the last axis
# x should be a numpy array or similar that supports advanced indexing

# Create a small batch of 2D points in the normalized space [-1, 1] x [-1, 1]
x = np.array([
    [0.3, -0.2],
    [-0.5, 0.7]
], dtype=np.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (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
cross Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
recursionpharma/gflownet/src/gflownet/algo/trajectory_balance.py
code served (permissive licence) · get_code("2a8ed5bf472b7004")
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) and returned Tensor, ndim 2, dtype family float, shape (4, 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)

# Create a small 1D tensor for testing
x = torch.randn(4)

ARGS = {
    "x": x,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 (4, 4) — shape (4, 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
currin Ran
ran, honoured the contract we drafted
bengioe/gflownet/grid/cond_grid_dag.py
code served (permissive licence) · get_code("54dafc6a55c42deb")
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) and returned ndarray, 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 numpy as np

# The function takes a single parameter 'x' which should be a numpy array
# with shape (..., 2) since it indexes x[..., 0] and x[..., 1]
# Let's create a small batch of 2D input points

x = np.array([
    [-0.5, 0.3],
    [0.2, -0.1],
    [0.8, 0.9],
    [-0.3, 0.5]
], dtype=np.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
func_corners Ran
ran, honoured the contract we drafted
bengioe/gflownet/grid/toy_grid_dag.py
pointer only (licence: MIT); the stored copy get_code serves, from ZRNB/PLUS, is pointer only (licence: NONE) · get_code("bf7643eca4bc2a69")
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.

func_corners_floor_A Ran
ran, honoured the contract we drafted
bengioe/gflownet/grid/toy_grid_dag.py
pointer only (licence: MIT); the stored copy get_code serves, from ZRNB/PLUS, is pointer only (licence: NONE) · get_code("58d90758e97a6d03")
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.

func_corners_floor_B Ran
ran, honoured the contract we drafted
bengioe/gflownet/grid/toy_grid_dag.py
pointer only (licence: MIT); the stored copy get_code serves, from ZRNB/PLUS, is pointer only (licence: NONE) · get_code("aa7a567324830eab")
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.

gen_order Ran
ran, honoured the contract we drafted
princetonlips/mam/mam/models/mam.py
pointer only (licence: NONE) · get_code("e9f231473aac8e22")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princetonlips/mam 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.

generate_batch Ran
ran on a synthesized input
bengioe/gflownet/grid/toy_grid_dag_al.py
code served (permissive licence) · get_code("f08d023272aa048c")
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 tuple. 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 numpy as np

torch.manual_seed(0)

# Build a minimal args object with required attributes
class Args:
    def __init__(self):
        self.num_samples = 2

# Build a minimal agent with sample_many method
class Agent:
    def sample_many(self, num_samples, batch_s):
        # Populate batch_s with sample states
        for i in range(num_samples):
            batch_s.append(np.array([float(i), float(i+1), float(i+2), float(i+3)]))

# Build a minimal environment with s2x and func methods
class Env:
    def s2x(self, s):
        # Convert state to input
        return s
    
    def func(self, x):
        # Return a scalar output for the input
        return np.sum(x)

# Build dataset as tuple of (x, y) tensors
x_init = torch.FloatTensor(np.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]]))
y_init = torch.FloatTensor(np.array([10.0, 26.0]))
dataset = (x_init, y_init)

ARGS = {
    'args': Args(),
    'agent': Agent(),
    'dataset': dataset,
    'env': Env()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
get_network_output Ran
ran on a synthesized input
bengioe/gflownet/grid/toy_grid_dag_al.py
code served (permissive licence) · get_code("7ff5d9aaf5641dd3")
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 (4, 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 torch
import torch.nn as nn
from torch.utils.data import TensorDataset, DataLoader

torch.manual_seed(0)

# Create a simple network that returns outputs with mean and variance attributes
class SimpleNetwork(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class NetworkWithDistribution(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        output = self.linear(x)
        # Create a simple object with mean and variance attributes
        class Output:
            def __init__(self, tensor):
                self.mean = tensor.mean(dim=0)
                self.variance = (tensor - self.mean).pow(2).mean(dim=0)
        return Output(output)

# Create args object
class Args:
    def __init__(self, inf_batch_size):
        self.inf_batch_size = inf_batch_size

# Test case 1: regular network without mean_std
args1 = Args(inf_batch_size=2)
network1 = SimpleNetwork()
inputs1 = torch.randn(4, 4)  # batch_size=4, input_dim=4

# Test case 2: network with distribution for mean_std=True
args2 = Args(inf_batch_size=2)
network2 = NetworkWithDistribution()
inputs2 = torch.randn(4, 4)  # batch_size=4, input_dim=4

ARGS = {
    "args": args1,
    "network": network1,
    "inputs": inputs1,
    "mean_std": False
}
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 (4, 3) — shape (4, 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
make_mlp Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from gfnorg/gflownet
pointer only · get_code("c59313aa188e63c6")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_mlp Ran
ran; our contract draft was wrong, not the code
bengioe/gflownet/grid/cond_grid_dag.py
code served (permissive licence) · get_code("2b63a9198ca42b4e")
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) 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 class (default nn.LeakyReLU)
# - tail: a list of additional modules to append (default [])

# Construct valid arguments
ARGS = {
    "l": [4, 8, 6, 3],  # Input dim 4, hidden dims 8 and 6, output dim 3
    "act": nn.LeakyReLU,  # Activation function class
    "tail": []  # Empty tail, or could add modules like [nn.Dropout(0.5)]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
make_opt Ran
ran; our contract draft was wrong, not the code
alexhernandezgarcia/gflownet/gflownet/gflownet.py
code served (permissive licence) · get_code("30d10fc001f71c75")
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) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# Create a small model with parameters
class TinyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = TinyModel()
params = list(model.parameters())

# Create logZ parameter (optional, can be None or a list of parameters)
logZ = [torch.nn.Parameter(torch.randn(2))]

# Create config object with all required attributes
class Config:
    def __init__(self):
        self.method = 'adam'
        self.lr = 0.001
        self.adam_beta1 = 0.9
        self.adam_beta2 = 0.999
        self.lr_z_mult = 1.0
        self.momentum = 0.9
        self.lr_decay_period = 10
        self.lr_decay_gamma = 0.1

config = Config()

ARGS = {
    'params': params,
    'logZ': logZ,
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
mol2graph Ran
ran; our contract draft was wrong, not the code
bengioe/gflownet/mols/model_block.py
pointer only (licence: MIT); the stored copy get_code serves, from ZRNB/PLUS, is pointer only (licence: NONE) · get_code("f763f98f79152e0e")
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
bengioe/gflownet/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
bengioe/gflownet/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.

sample Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from GFNOrg/GFlowNet-EM
pointer only · get_code("bf574d554afe6839")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

sample_order Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
princetonlips/mam/mam/models/mam.py
pointer only (licence: NONE) · get_code("afd6888b673d0c17")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princetonlips/mam 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.

shift_right Ran
ran; our contract draft was wrong, not the code
recursionpharma/gflownet/src/gflownet/algo/trajectory_balance.py
code served (permissive licence) · get_code("a508d01ed77ced0b")
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) 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 torch

torch.manual_seed(0)

# Create a small tensor with shape (2, 4) - batch size 2, dimension 4
x = torch.randn(2, 4)

# z is a scalar or can be a tensor element
z = 0

ARGS = {
    "x": x,
    "z": z,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
sleep_step Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from GFNOrg/GFlowNet-EM
pointer only · get_code("0461df5888f82edd")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

branin Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from gfnorg/gflownet
pointer only · get_code("e81128bd6b1cab12")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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. No invocation recorded.

currin Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from gfnorg/gflownet
pointer only · get_code("9c972ac9b931bb9e")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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. No invocation recorded.

mols2batch Not yet run
unverified (harvested, no recorded run)
bengioe/gflownet/mols/model_fingerprint.py
pointer only (licence: MIT); the stored copy get_code serves, from ZRNB/PLUS, is pointer only (licence: NONE) · get_code("32208d4977dcb086")
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. No invocation recorded.

subTB Not yet run
unverified (harvested, no recorded run)
recursionpharma/gflownet/src/gflownet/algo/trajectory_balance.py
code served (permissive licence) · get_code("d2e1d2a558b75603")
How it ran

no invocation recorded.

train_generative_model Not yet run
unverified (harvested, no recorded run)
bengioe/gflownet/mols/gflownet_activelearning.py
pointer only (licence: MIT); the stored copy get_code serves, from ZRNB/PLUS, is pointer only (licence: NONE) · get_code("c29d60fd9bc56a0c")
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. No invocation recorded.

train_model_with_proxy Not yet run
unverified (harvested, no recorded run)
bengioe/gflownet/mols/gflownet.py
code served (permissive licence) · get_code("df792b9c5dae7a48")
How it ran

no invocation recorded.

Also present in other papers' code

Of 31 samples lifted from this paper's linked repositories, 31 carry a function identity and 0 do not. Of the 28 distinct functions with an identity, 22 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 22 later) and 6 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
cross 4 other papers
4 later
2209.12782 (2022-09)
Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
2405.01155 (2024-05)
SynFlowNet: Design of Diverse and Novel Molecules with Synthesis Constraints
and 1 more not named here
mols2batch 4 other papers
4 later
2302.04040 (2023-02)
Sample-efficient Multi-objective Molecular Optimization with GFlowNets
2302.05793 (2023-02)
Distributional GFlowNets with Quantile Flows
2310.12934 (2023-10)
Generative Flow Networks as Entropy-Regularized RL
and 1 more not named here
shift_right 4 other papers
4 later
2209.12782 (2022-09)
Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
2405.01155 (2024-05)
SynFlowNet: Design of Diverse and Novel Molecules with Synthesis Constraints
and 1 more not named here
branin 3 other papers
3 later
2201.13259 (2022-01)
Trajectory balance: Improved credit assignment in GFlowNets
2302.01687 (2023-02)
Better Training of GFlowNets with Local Credit and Incomplete Trajectories
2310.00386 (2023-10)
Order-Preserving GFlowNets
currin 3 other papers
3 later
2201.13259 (2022-01)
Trajectory balance: Improved credit assignment in GFlowNets
2302.01687 (2023-02)
Better Training of GFlowNets with Local Credit and Incomplete Trajectories
2310.00386 (2023-10)
Order-Preserving GFlowNets
mols2batch 3 other papers
3 later
2302.04040 (2023-02)
Sample-efficient Multi-objective Molecular Optimization with GFlowNets
2302.05793 (2023-02)
Distributional GFlowNets with Quantile Flows
2510.00805 (2025-10)
Planning-Augmented Sampling with Early Guidance for High-Reward Discovery
safe 3 other papers
3 later
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
2410.04542 (2024-10)
Generative Flows on Synthetic Pathway for Drug Design
2602.04119 (2026-02)
Synthesizable Molecular Generation via Soft-constrained GFlowNets with Rich Chemical Priors
make_mlp 2 other papers
2 later
2201.13259 (2022-01)
Trajectory balance: Improved credit assignment in GFlowNets
2302.01687 (2023-02)
Better Training of GFlowNets with Local Credit and Incomplete Trajectories
mol2graph 2 other papers
2 later
2310.12934 (2023-10)
Generative Flow Networks as Entropy-Regularized RL
2510.00805 (2025-10)
Planning-Augmented Sampling with Early Guidance for High-Reward Discovery
mols2batch 2 other papers
2 later
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
subTB 2 other papers
2 later
2209.12782 (2022-09)
Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
2405.01155 (2024-05)
SynFlowNet: Design of Diverse and Novel Molecules with Synthesis Constraints
train_model_with_proxy 2 other papers
2 later
2201.13259 (2022-01)
Trajectory balance: Improved credit assignment in GFlowNets
2302.01687 (2023-02)
Better Training of GFlowNets with Local Credit and Incomplete Trajectories
array_may_17 1 other paper
1 later
2510.00805 (2025-10)
Planning-Augmented Sampling with Early Guidance for High-Reward Discovery
binarize_static 1 other paper
1 later
2302.06576 (2023-02)
GFlowNet-EM for Learning Compositional Latent Variable Models
func_corners 1 other paper
1 later
2510.00805 (2025-10)
Planning-Augmented Sampling with Early Guidance for High-Reward Discovery
func_corners_floor_A 1 other paper
1 later
2510.00805 (2025-10)
Planning-Augmented Sampling with Early Guidance for High-Reward Discovery
func_corners_floor_B 1 other paper
1 later
2510.00805 (2025-10)
Planning-Augmented Sampling with Early Guidance for High-Reward Discovery
gen_order
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2110.02037 (2021-10)
Autoregressive Diffusion Models
make_opt 1 other paper
1 later
2306.11715 (2023-06)
Multi-Fidelity Active Learning with GFlowNets
sample 1 other paper
1 later
2302.06576 (2023-02)
GFlowNet-EM for Learning Compositional Latent Variable Models

Shown: the 20 functions present in the most other papers. 2 more shared functions are not listed here.

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 is about the problem of learning a stochastic policy for generating an object (like a molecular graph) from a sequence of actions, such that the probability of generating an object is proportional to a given positive reward for that object. Whereas standard return maximization tends to converge to a single return-maximizing sequence, there are cases where we would like to sample a diverse set of high-return solutions. These arise, for example, in black-box function optimization when few rounds are possible, each with large batches of queries, where the batches should be diverse, e.g., in the design of new molecules. One can also see this as a problem of approximately converting an energy function to a generative distribution. While MCMC methods can achieve that, they are expensive and generally only perform local exploration. Instead, training a generative policy amortizes the cost of search during training and yields to fast generation. Using insights from Temporal Difference learning, we propose GFlowNet, based on a view of the generative process as a flow network, making it possible to handle the tricky case where different trajectories can yield the same final state, e.g., there are many ways to sequentially add atoms to generate some molecular graph. We cast the set of trajectories as a flow and convert the flow consistency equations into a learning objective, akin to the casting of the Bellman equations into Temporal Difference methods. We prove that any global minimum of the proposed objectives yields a policy which samples from the desired distribution, and demonstrate the improved performance and diversity of GFlowNet on a simple domain where there are many modes to the reward function, and on a molecule synthesis task.

For agents

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

get_harvested_code_for_paper("2106.04399")
get_code_for_paper("2106.04399")
have("2106.04399")

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

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

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

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

Connect an agent — have() is free.