SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.20660 · NeurIPS · 2024

TurboHopp: Accelerated Molecule Scaffold Hopping with Consistency Models

Sanghoon Lee, Jaewoo Kang, Kiwoong Yoo, Owen Oertell, Junhyun Lee

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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; 5 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 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; 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/2410.20660.json · badge: /api/ran/2410.20660.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
orgw/TurboHopp canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
orgw/turbohopp canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
FunctionStatusWhere it lives
parse_checkpoint_for_final_timesteps Ran
ran, honoured the contract we drafted
orgw/turbohopp/evaluate_consistency.py
code served (permissive licence) · get_code("7c27b9bdbb84d955")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T00:34:58Z). 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 re

def parse_checkpoint_for_final_timesteps(checkpoint_path: str) -> int:
    """
    Parse the checkpoint path to extract final_timesteps.
    Assumes path format contains 'gvp_[final_timesteps]'.
    """
    match = re.search('gvp_(\\d+)', checkpoint_path)
    if match:
        return int(match.group(1))
    else:
        raise ValueError(f'Could not extract final_timesteps from path: {checkpoint_path}')


ARGS = {
    "checkpoint_path": "model_gvp_1000_epoch5.pt"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
ema_decay_rate_schedule Ran
ran, honoured the contract we drafted
orgw/TurboHopp/utils/_util_consistency.py
pointer only (licence: MIT); the stored copy get_code serves, from LYMDLUT/improved_consistency_models_cifar10_pytorch, is pointer only (licence: NONE) · get_code("0ec29979d800502a")
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 LYMDLUT/improved_consistency_models_cifar10_pytorch, 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_grad_norm Ran
ran, honoured the contract we drafted
orgw/TurboHopp/diffusion_hopping/model/consistency_lightning.py
code served (permissive licence) · get_code("44a37ba761a6564f")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model with parameters
model = nn.Linear(4, 3)

# Create an optimizer with the model's parameters
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

# Forward pass to generate gradients
x = torch.randn(2, 4)
y = torch.randn(2, 3)
loss = nn.MSELoss()(model(x), y)
loss.backward()

# Now optimizer has param_groups with parameters that have gradients
ARGS = {
    'optimizer': optimizer,
    'norm_type': 2.0
}
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 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
get_logger Ran
ran; our contract draft was wrong, not the code
orgw/TurboHopp/utils/_util_consistency.py
code served (permissive licence) · get_code("80a6b97900b7f8df")
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 WandbLogger. 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
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create a mock wandb run object
mock_run = MagicMock()
mock_run.id = "test_run_123"
mock_run.name = "test_experiment"
mock_run.project = "test_project"

ARGS = {
    'run': mock_run,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pytorch_lightning, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WandbLogger — a WandbLogger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a WandbLogger 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
karras_schedule Ran
ran, honoured the contract we drafted
orgw/TurboHopp/consistency/models_consistency.py
code served (permissive licence) · get_code("cabb00ce8f3d2b4d")
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 (10,) 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)

ARGS = {
    "num_timesteps": 10,
    "sigma_min": 0.002,
    "sigma_max": 80.0,
    "rho": 7.0,
    "device": torch.device("cpu"),
}
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 (10,) — shape (10,) 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
setup_directory Ran
ran; our contract draft was wrong, not the code
orgw/TurboHopp/utils/docking_posecheck_utils.py
code served (permissive licence) · get_code("c476c97d0a433baa")
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 str. 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 os
import tempfile

# Create a temporary base directory for testing
base_dir = tempfile.mkdtemp()

# Define a simple identifier string
identifier = "experiment_001"

# Construct the ARGS dictionary with all required parameters
ARGS = {
    "base_dir": base_dir,
    "identifier": identifier,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
skip_computation_on_oom Ran
ran; our contract draft was wrong, not the code
orgw/TurboHopp/diffusion_hopping/model/util.py
code served (permissive licence) · get_code("e3b35558a4cef594")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# The decorator function takes return_value and error_message as parameters
# It decorates a function that may raise RuntimeError with 'out of memory'
# The decorator returns return_value if OOM occurs

# Define a simple test function to be decorated
@(lambda return_value=None, error_message=None: 
  lambda func: (
    lambda *args, **kwargs: (
      func(*args, **kwargs) if True else None
    )
  )
)()
def dummy_func():
    return "success"

# Test values for the decorator parameters
return_value = torch.zeros(2, 4)  # A small tensor as return value
error_message = "Out of memory occurred, using fallback value"

ARGS = {
    "return_value": return_value,
    "error_message": error_message
}
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 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
skip_scaling Ran
ran, violated the contract we drafted
orgw/TurboHopp/consistency/models_consistency.py
code served (permissive licence) · get_code("db077dcd1ca85df7")
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 numpy as np

torch.manual_seed(0)

# Construct sigma as a small tensor
# The function performs arithmetic operations on sigma, so it needs to be a Tensor
sigma = torch.tensor([0.1, 0.5, 1.0, 2.0], dtype=torch.float32)

# sigma_data and sigma_min are float parameters with default values
sigma_data = 0.5
sigma_min = 0.002

ARGS = {
    "sigma": sigma,
    "sigma_data": sigma_data,
    "sigma_min": sigma_min,
}
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 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
timesteps_schedule Ran
ran, honoured the contract we drafted
orgw/TurboHopp/consistency/models_consistency.py
pointer only (licence: MIT); the stored copy get_code serves, from LYMDLUT/improved_consistency_models_cifar10_pytorch, is pointer only (licence: NONE) · get_code("5d181060fa21e0cc")
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 LYMDLUT/improved_consistency_models_cifar10_pytorch, 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.

update_ema_model_ Ran
ran; our contract draft was wrong, not the code
orgw/turbohopp/train_consistency.py
code served (permissive licence) · get_code("04a18de83bbb93d8")
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 SimpleModel. 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)

# Create a simple online model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        self.register_buffer("running_mean", torch.randn(3))
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Create online model and initialize it
online_model = SimpleModel()

# Create EMA model as a copy of online model
ema_model = SimpleModel()
# Initialize EMA model with same weights as online model
for ema_param, online_param in zip(ema_model.parameters(), online_model.parameters()):
    ema_param.data.copy_(online_param.data)
for ema_buf, online_buf in zip(ema_model.buffers(), online_model.buffers()):
    ema_buf.copy_(online_buf)

# Set decay rate (typical values are 0.999 or similar)
ema_decay_rate = 0.99

ARGS = {
    "ema_model": ema_model,
    "online_model": online_model,
    "ema_decay_rate": ema_decay_rate,
}
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
calculate_center_of_mass Not yet run
unverified (harvested, no recorded run)
orgw/TurboHopp/utils/docking_posecheck_utils.py
code served (permissive licence) · get_code("48f827b8718c250a")
How it ran

no invocation recorded.

model_forward_wrapper_difsigma Not yet run
unverified (harvested, no recorded run)
orgw/turbohopp/train_consistency.py
code served (permissive licence) · get_code("d9433790869011e8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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
ema_decay_rate_schedule 2 other papers
2 dated earlier
2303.01469 (2023-03)
Consistency Models
2310.14189 (2023-10)
Improved Techniques for Training Consistency Models
timesteps_schedule 2 other papers
2 dated earlier
2303.01469 (2023-03)
Consistency Models
2310.14189 (2023-10)
Improved Techniques for Training Consistency Models
karras_schedule 1 other paper
1 dated earlier
2303.01469 (2023-03)
Consistency Models
skip_scaling 1 other paper
1 dated earlier
2303.01469 (2023-03)
Consistency Models

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

Navigating the vast chemical space of druggable compounds is a formidable challenge in drug discovery, where generative models are increasingly employed to identify viable candidates. Conditional 3D structure-based drug design (3D-SBDD) models, which take into account complex three-dimensional interactions and molecular geometries, are particularly promising. Scaffold hopping is an efficient strategy that facilitates the identification of similar active compounds by strategically modifying the core structure of molecules, effectively narrowing the wide chemical space and enhancing the discovery of drug-like products. However, the practical application of 3D-SBDD generative models is hampered by their slow processing speeds. To address this bottleneck, we introduce TurboHopp, an accelerated pocket-conditioned 3D scaffold hopping model that merges the strategic effectiveness of traditional scaffold hopping with rapid generation capabilities of consistency models. This synergy not only enhances efficiency but also significantly boosts generation speeds, achieving up to 30 times faster inference speed as well as superior generation quality compared to existing diffusion-based models, establishing TurboHopp as a powerful tool in drug discovery. Supported by faster inference speed, we further optimize our model, using Reinforcement Learning for Consistency Models (RLCM), to output desirable molecules. We demonstrate the broad applicability of TurboHopp across multiple drug discovery scenarios, underscoring its potential in diverse molecular settings. The code is provided at https://github.com/orgw/TurboHopp

For agents

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

get_harvested_code_for_paper("2410.20660")
get_code_for_paper("2410.20660")
have("2410.20660")

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

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

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

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

Connect an agent — have() is free.