SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.16821 · 2024

General Binding Affinity Guidance for Diffusion Models in Structure-Based Drug Design

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 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/2406.16821.json · badge: /api/ran/2406.16821.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
ask-berkeley/badger-sbdd canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
compose_context Ran
ran; our contract draft was wrong, not the code
ask-berkeley/badger-sbdd/models/common.py
pointer only (licence: MIT); the stored copy get_code serves, from CMACH508/PAFlow, is pointer only (licence: NONE) · get_code("413b017b3368ab8d")
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 CMACH508/PAFlow, 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.

cosine_beta_schedule Ran
ran, honoured the contract we drafted
ask-berkeley/badger-sbdd/models/classifier_multi.py
code served (permissive licence) · get_code("c92a02b48d8fb1c4")
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 1, dtype family float, shape (1000,) 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 cosine_beta_schedule takes timesteps (an integer) and s (a float)
# It uses timesteps as an integer to create a schedule
# s is a hyperparameter with default value 0.008

ARGS = {
    "timesteps": 1000,
    "s": 0.008,
}
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 1, dtype family float, shape (1000,) — shape (1000,) 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_beta_schedule Ran
ran, honoured the contract we drafted
ask-berkeley/badger-sbdd/models/classifier_multi.py
pointer only (licence: MIT); the stored copy get_code serves, from weizhigao/modiff, is pointer only (licence: NONE) · get_code("ca0cea1ca1eeec89")
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 weizhigao/modiff, 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.

get_distance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ask-berkeley/badger-sbdd/models/classifier_multi.py
pointer only (licence: MIT); the stored copy get_code serves, from huang3170/MolForm, is pointer only (licence: NOASSERTION) · get_code("5befa7d29d90c70b")
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 huang3170/MolForm, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

get_h_dist Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ask-berkeley/badger-sbdd/models/common.py
pointer only (licence: MIT); the stored copy get_code serves, from CMACH508/PAFlow, is pointer only (licence: NONE) · get_code("3c6858db01947fd5")
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 CMACH508/PAFlow, 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.

get_r_feat Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ask-berkeley/badger-sbdd/models/common.py
pointer only (licence: MIT); the stored copy get_code serves, from CMACH508/PAFlow, is pointer only (licence: NONE) · get_code("27af771ab4cfc179")
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 CMACH508/PAFlow, 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.

single_head_attention Not yet run
unverified (harvested, no recorded run)
ask-berkeley/badger-sbdd/models/egtf.py
code served (permissive licence) · get_code("104b55793b1e0a99")
How it ran

no invocation recorded.

torchify_dict Not yet run
unverified (harvested, no recorded run)
ask-berkeley/badger-sbdd/datasets/pl_data.py
pointer only (licence: MIT); the stored copy get_code serves, from BLEACH366/EvoEGF-Mol, is pointer only (licence: GPL-3.0) · get_code("5f7183207256b0a3")
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 BLEACH366/EvoEGF-Mol, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 6 the same month, 7 later) and 1 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
get_beta_schedule 25 other papers
14 dated earlier, 2 the same month, 9 later · 1 only as an assembly brick
2201.11760 (2022-01)
Unsupervised Denoising of Retinal OCT with Diffusion Probabilistic Model
2203.02923 (2022-03)
GeoDiff: a Geometric Diffusion Model for Molecular Conformation Generation
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
and 22 more not named here
cosine_beta_schedule 11 other papers
5 dated earlier, 1 the same month, 5 later · 1 only as an assembly brick
2102.05379 (2021-02)
Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
2303.03543 (2023-03)
3D Equivariant Diffusion for Target-Aware Molecule Generation and Affinity Prediction
2310.17800 (2023-10)
Interacting Diffusion Processes for Event Sequence Forecasting
and 8 more not named here
torchify_dict 11 other papers
4 dated earlier, 1 the same month, 6 later
2305.07508 (2023-05)
MolDiff: Addressing the Atom-Bond Inconsistency Problem in 3D Molecule Diffusion Generation
2310.02553 (2023-10)
Full-Atom Protein Pocket Design via Iterative Refinement
2402.18583 (2024-02)
Binding-Adaptive Diffusion Models for Structure-Based Drug Design
and 8 more not named here
get_h_dist 10 other papers
3 dated earlier, 1 the same month, 6 later
2303.03543 (2023-03)
3D Equivariant Diffusion for Target-Aware Molecule Generation and Affinity Prediction
2402.18583 (2024-02)
Binding-Adaptive Diffusion Models for Structure-Based Drug Design
2403.07902 (2024-03)
DECOMPDIFF: Diffusion Models with Decomposed Priors for Structure-Based Drug Design
and 7 more not named here
get_r_feat 10 other papers
3 dated earlier, 1 the same month, 6 later
2303.03543 (2023-03)
3D Equivariant Diffusion for Target-Aware Molecule Generation and Affinity Prediction
2402.18583 (2024-02)
Binding-Adaptive Diffusion Models for Structure-Based Drug Design
2403.07902 (2024-03)
DECOMPDIFF: Diffusion Models with Decomposed Priors for Structure-Based Drug Design
and 7 more not named here
compose_context 8 other papers
2 dated earlier, 1 the same month, 5 later
2303.03543 (2023-03)
3D Equivariant Diffusion for Target-Aware Molecule Generation and Affinity Prediction
2402.18583 (2024-02)
Binding-Adaptive Diffusion Models for Structure-Based Drug Design
2406.01650 (2024-06)
TAGMol: Target-Aware Gradient-guided Molecule Generation
and 5 more not named here
get_distance 3 other papers
2 dated earlier, 1 later
2203.02923 (2022-03)
GeoDiff: a Geometric Diffusion Model for Molecular Conformation Generation
aaai_25639 (2023 (year only))
MDM: Molecular Diffusion Model for 3D Molecule Generation
2507.05503 (2025-07)
MolFORM: Multi-modal Flow Matching for Structure-Based Drug Design

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

Structure-based drug design (SBDD) aims to generate ligands that bind strongly and specifically to target protein pockets. Recent diffusion models have advanced SBDD by capturing the distributions of atomic positions and types, yet they often underemphasize binding affinity control during generation. To address this limitation, we introduce \textbf{\textnormal{\textbf{BADGER}}}, a general \textbf{binding-affinity guidance framework for diffusion models in SBDD}. \textnormal{\textbf{BADGER} }incorporates binding affinity awareness through two complementary strategies: (1) \textit{classifier guidance}, which applies gradient-based affinity signals during sampling in a plug-and-play fashion, and (2) \textit{classifier-free guidance}, which integrates affinity conditioning directly into diffusion model training. Together, these approaches enable controllable ligand generation guided by binding affinity. \textnormal{\textbf{BADGER} } can be added to any diffusion model and achieves up to a \textbf{60\% improvement in ligand--protein binding affinity} of sampled molecules over prior methods. Furthermore, we extend the framework to \textbf{multi-constraint diffusion guidance}, jointly optimizing for binding affinity, drug-likeness (QED), and synthetic accessibility (SA) to design realistic and synthesizable drug candidates.

For agents

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

get_harvested_code_for_paper("2406.16821")
get_code_for_paper("2406.16821")
have("2406.16821")

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

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

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

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

Connect an agent — have() is free.