SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.16644 · NeurIPS · 2024

Exploring Discrete Flow Matching for 3D De Novo Molecule Generation

Ryan David, Koes, Ian Dunn

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 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/2411.16644.json · badge: /api/ran/2411.16644.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
dunni3/FlowMol canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_cumulative_reos_deviation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dunni3/FlowMol/flowmol/analysis/metrics.py
code served (permissive licence) · get_code("21645f118a521a92")
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 dict. 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
import pandas as pd

# Create minimal dataframes with the required 'flag_rate' column
df_reos = pd.DataFrame({
    'flag_rate': np.array([0.1, 0.2, 0.3, 0.4])
})

df_reos_train = pd.DataFrame({
    'flag_rate': np.array([0.15, 0.25, 0.35, 0.45])
})

fold_change_lims = (0.5, 2.0)

ARGS = {
    'df_reos': df_reos,
    'df_reos_train': df_reos_train,
    'fold_change_lims': fold_change_lims
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
exists Ran
ran, violated the contract we drafted
dunni3/FlowMol/flowmol/models/gvp.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
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 ThomasMrY/VCT, 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.

merge_config_and_args Ran
ran; our contract draft was wrong, not the code
dunni3/FlowMol/flowmol/model_utils/sweep_config.py
code served (permissive licence) · get_code("f2649ae491fecb28")
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 dict. 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 argparse
import torch

torch.manual_seed(0)

# Create a comprehensive config dict matching what the function expects
config = {
    'training': {
        'batch_size': 32,
        'max_num_edges': 100,
    },
    'lr_scheduler': {
        'base_lr': 0.001,
        'warmup_length': 1000,
        'cosine_params': {
            'x': 0.5,
            'a': 0.5,
            'c': 0.5,
            'e': 0.5,
        }
    },
    'mol_fm': {
        'total_loss_weights': {
            'x': 1.0,
            'a': 1.0,
            'c': 1.0,
            'e': 1.0,
        },
        'distort_p': 0.1,
        'distort_t': 0.5,
        'fake_atom_p': 0.05,
        'fake_atom_std': 0.1,
        'time_scaled_loss': True,
        'prior_config': {
            'ot_node_feats': True,
            'rotate_positions': False,
            'biased_edge_prior': True,
            'position_std': 0.1,
            'no_bond_prob': 0.05,
            'bond_order_std': 0.2,
        }
    },
    'interpolant_scheduler': {
        'cosine_params': {
            'x': 0.5,
            'a': 0.5,
            'c': 0.5,
            'e': 0.5,
        }
    },
    'wandb': {
        'name': 'default_run',
    },
    'vector_field': {
        'scprop': False,
        'separate_mol_updaters': False,
        'n_vec_channels': 16,
        'n_hidden_scalars': 32,
        'n_hidden_edge_feats': 32,
        'n_recycles': 4,
        'n_molecule_updates': 2,
        'convs_per_update': 2,
        'n_cp_feats': 16,
        'n_message_gvps': 2,
        'n_update_gvps': 2,
        'rbf_dim': 8,
        'rbf_dmax': 10.0,
        'message_norm': 1.0,
    }
}

# Create argparse.Namespace with all the parameters the function checks
args = argparse.Namespace(
    batch_size=64,
    lr=0.002,
    warmup_length=500,
    max_edges=150,
    x_loss_weight=1.5,
    a_loss_weight=1.2,
    c_loss_weight=0.8,
    e_loss_weight=1.0,
    x_cos_param=0.6,
    a_cos_param=0.55,
    c_cos_param=0.45,
    e_cos_param=0.5,
    name='test_run',
    scprop=True,
    distort_p=0.15,
    distort_t=0.7,
    fake_atom_p=0.08,
    fake_atom_std=0.15,
    ot_node_feats='true',
    rotate_positions='false',
    biased_edge_prior='true',
    position_std=0.12,
    no_bond_prob=0.06,
    bond_order_std=0.25,
    separate_mol_updaters='false',
    n_vec_channels=24,
    n_hidden_scalars=48,
    n_hidden_edge_feats=40,
    n_recycles=6,
    n_molecule_updates=3,
    convs_per_update=3,
    n_cp_feats=20,
    n_message_gvps=3,
    n_update_gvps=3,
    rbf_dim=12,
    rbf_dmax=15.0,
    message_norm='2.5',
    time_scaled_loss='true',
)

ARGS = {
    'config': config,
    'args': args,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
distutils, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
read_config_file Ran
ran; our contract draft was wrong, not the code
dunni3/FlowMol/flowmol/model_utils/load.py
code served (permissive licence) · get_code("761a77898a513fa5")
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 dict. 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
import yaml

# Create a temporary YAML config file
temp_dir = tempfile.TemporaryDirectory()
config_file_path = Path(temp_dir.name) / "test_config.yaml"

# Write a sample config to the temporary file
sample_config = {
    "model": "test_model",
    "batch_size": 32,
    "learning_rate": 0.001,
    "epochs": 10,
    "layers": [64, 128, 256]
}

with open(config_file_path, 'w') as f:
    yaml.dump(sample_config, f)

# Define the arguments dict
ARGS = {
    "config_file": config_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 3 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
exists 486 other papers
397 dated earlier, 14 the same month, 64 later, 9 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named 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

Deep generative models that produce novel molecular structures have the potential to facilitate chemical discovery. Flow matching is a recently proposed generative modeling framework that has achieved impressive performance on a variety of tasks including those on biomolecular structures. The seminal flow matching framework was developed only for continuous data. However, de novo molecular design tasks require generating discrete data such as atomic elements or sequences of amino acid residues. Several discrete flow matching methods have been proposed recently to address this gap. In this work we benchmark the performance of existing discrete flow matching methods for 3D de novo small molecule generation and provide explanations of their differing behavior. As a result we present FlowMol-CTMC, an open-source model that achieves state of the art performance for 3D de novo design with fewer learnable parameters than existing methods. Additionally, we propose the use of metrics that capture molecule quality beyond local chemical valency constraints and towards higher-order structural motifs. These metrics show that even though basic constraints are satisfied, the models tend to produce unusual and potentially problematic functional groups outside of the training data distribution. Code and trained models for reproducing this work are available at https://github.com/dunni3/FlowMol.

For agents

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

get_harvested_code_for_paper("2411.16644")
get_code_for_paper("2411.16644")
have("2411.16644")

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

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

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

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

Connect an agent — have() is free.