SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.01105 · ICML · 2026

SynLaD: Latent Diffusion for Generating Synthesizable Molecules Conditioned on 3D Pharmacophore Profiles

Patricia Suriana, Saeed Saremi, Kangway Chuang, Miruna Cretu, John Bradshaw, Omar Mahmood, Kirill Shmilovich, Vishnu Sresht, Colin Grambow

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), 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/2607.01105.json · badge: /api/ran/2607.01105.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
coleygroup/shepherd canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
wenhao-gao/synformer canonical (classifier label)
classifier basis: census
1 ran · 1 no recorded run
FunctionStatusWhere it lives
convert_e3nn_to_equiformerv2 Ran
ran; our contract draft was wrong, not the code
coleygroup/shepherd/src/shepherd/model/equiformer_operations.py
code served (permissive licence) · get_code("0f19f7f98d803b4d")
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 3, dtype family float, shape (2, 9, 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

torch.manual_seed(0)

# The function processes an input_tensor by splitting it along dimension 1
# into chunks of size (2*l + 1) * num_channels for each l from 0 to lmax.
# It then reshapes and transposes each chunk.
# 
# For a valid call, we need:
# - input_tensor: a 2D tensor of shape (batch_size, total_features)
#   where total_features = sum((2*l + 1) * num_channels for l in range(lmax + 1))
# - lmax: maximum l value
# - num_channels: number of channels

lmax = 2
num_channels = 3

# Calculate total feature dimension needed
# For lmax=2, num_channels=3:
# l=0: (2*0 + 1) * 3 = 1 * 3 = 3
# l=1: (2*1 + 1) * 3 = 3 * 3 = 9
# l=2: (2*2 + 1) * 3 = 5 * 3 = 15
# Total = 3 + 9 + 15 = 27

total_features = sum((2 * l + 1) * num_channels for l in range(lmax + 1))

# Create input tensor with batch_size=2, total_features=27
batch_size = 2
input_tensor = torch.randn(batch_size, total_features)

ARGS = {
    "input_tensor": input_tensor,
    "lmax": lmax,
    "num_channels": num_channels,
}
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 3, dtype family float, shape (2, 9, 3) — shape (2, 9, 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
convert_equiformerv2_to_e3nn Ran
ran; our contract draft was wrong, not the code
coleygroup/shepherd/src/shepherd/model/equiformer_operations.py
code served (permissive licence) · get_code("b906902e78d6e4a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 36) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function:
# - input_tensor: shape (batch, channels_sum, num_channels)
#   where channels_sum = sum(2*l+1 for l in range(lmax+1))
#   For lmax=2: channels_sum = 1 + 3 + 5 = 9
# - lmax: integer controlling the loop range

# Build a valid input_tensor
# For lmax=2, we need sum of (2*l+1) for l in [0,1,2] = 1+3+5 = 9
lmax = 2
channels_sum = sum(2 * l + 1 for l in range(lmax + 1))  # = 9
batch_size = 2
num_channels = 4

input_tensor = torch.randn(batch_size, channels_sum, num_channels)

ARGS = {
    "input_tensor": input_tensor,
    "lmax": lmax,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 36) — shape (2, 36) 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
forward_jump_parameters Ran
ran; our contract draft was wrong, not the code
coleygroup/shepherd/src/shepherd/inference/inference_original.py
code served (permissive licence) · get_code("7b05828dfe9ed1e8")
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, 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 numpy as np

# Construct arguments for forward_jump_parameters
t_start_idx = 0
jump = 5
sigma_ts = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8])

ARGS = {
    "t_start_idx": t_start_idx,
    "jump": jump,
    "sigma_ts": sigma_ts,
}
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 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
forward_jump_parameters Ran
ran; our contract draft was wrong, not the code
coleygroup/shepherd/src/shepherd/inference/noise.py
code served (permissive licence) · get_code("38a9a568e2816a9e")
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, 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 numpy as np

# Construct arguments for forward_jump_parameters
t_start_idx = 0
jump = 5
sigma_ts = np.linspace(0.1, 0.9, 10)

ARGS = {
    't_start_idx': t_start_idx,
    'jump': jump,
    'sigma_ts': sigma_ts,
}
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 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
forward_trajectory Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
coleygroup/shepherd/src/shepherd/inference/inference_original.py
code served (permissive licence) · get_code("3983f57da6a20bf4")
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 torch

torch.manual_seed(0)

# Construct tiny tensors
batch_size = 2
feature_dim = 4

# Initial positions: shape (batch_size, feature_dim)
x = torch.randn(batch_size, feature_dim)

# Time steps
ts = [1, 2, 3]

# Alpha and sigma schedules (one value per timestep)
alpha_ts = [0.9, 0.8, 0.7]
sigma_ts = [0.1, 0.15, 0.2]

# Mask: which samples are valid (True = keep, False = ignore)
mask = torch.tensor([True, False])

# Flags
remove_COM_from_noise = False
deterministic = False

ARGS = {
    "x": x,
    "ts": ts,
    "alpha_ts": alpha_ts,
    "sigma_ts": sigma_ts,
    "remove_COM_from_noise": remove_COM_from_noise,
    "mask": mask,
    "deterministic": deterministic,
}
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 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
remove_overlaps Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
coleygroup/shepherd/src/shepherd/extract.py
code served (permissive licence) · get_code("c3123c7de45a4d52")
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
from copy import deepcopy

# Create a minimal generated_sample dict matching ShEPhERD output structure
num_inpainted = 3
num_diffused = 2
num_total = num_inpainted + num_diffused

generated_sample = {
    'x1': {
        'positions': np.random.randn(num_total, 3).astype(np.float32),
        'atoms': np.array(['C', 'N', 'O', 'C', 'N'], dtype=object)
    }
}

# Create inpainted atom positions (non-overlapping with diffused atoms)
inpainted_atom_positions = np.random.randn(num_inpainted, 3).astype(np.float32) + 10.0

# Set some diffused atoms to be far from inpainted atoms to avoid overlap
generated_sample['x1']['positions'][num_inpainted:] = np.random.randn(num_diffused, 3).astype(np.float32) + 20.0

ARGS = {
    'generated_sample': generated_sample,
    'inpainted_atom_positions': inpainted_atom_positions,
    'cutoff': 0.7,
    'verbose': False
}
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 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
tokenize_smiles Ran
ran, honoured the contract we drafted
wenhao-gao/synformer/synformer/chem/featurize.py
code served (permissive licence) · get_code("af37f5336f265b8b")
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 int; 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 re

_smiles_vocab = 'H\nHe\nLi\nBe\nB\nC\nN\nO\nF\nNe\nNa\nMg\nAl\nSi\nP\nS\nCl\nAr\nK\nCa\nSc\nTi\nV\nCr\nMn\nFe\nCo\nNi\nCu\nZn\nGa\nGe\nAs\nSe\nBr\nKr\nRb\nSr\nY\nZr\nNb\nMo\nTc\nRu\nRh\nPd\nAg\nCd\nIn\nSn\nSb\nTe\nI\nXe\nCs\nBa\nLa\nCe\nPr\nNd\nPm\nSm\nEu\nGd\nTb\nDy\nHo\nEr\nTm\nYb\nLu\nHf\nTa\nW\nRe\nOs\nIr\nPt\nAu\nHg\nTl\nPb\nBi\nPo\nAt\nRn\nFr\nRa\nAc\nTh\nPa\nU\nNp\nPu\nAm\nCm\nBk\nCf\nEs\nFm\nMd\nNo\nLr\nRf\nDb\nSg\nBh\nHs\nMt\nDs\nRg\nCn\nNh\nFl\nMc\nLv\nTs\nOg\nb\nc\nn\no\ns\np\n0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n[\n]\n(\n)\n.\n=\n#\n-\n+\n\\\n/\n:\n~\n@\n?\n>\n*\n$\n%'.splitlines()

_smiles_token_to_id = {token: i for i, token in enumerate(_smiles_vocab, start=1)}

_smiles_token_max = max(_smiles_token_to_id.values())

_smiles_token_pattern = re.compile('(' + '|'.join(map(re.escape, sorted(_smiles_vocab, reverse=True))) + ')')

def tokenize_smiles(s_in: str):
    tok: list[int] = []
    for token in _smiles_token_pattern.findall(s_in):
        tok.append(_smiles_token_to_id.get(token, _smiles_token_max + 1))
    return tok

ARGS = {
    "s_in": "CCO"
}
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 list, ndim 1, dtype family int — 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
create_dummy_feature Not yet run
unverified (harvested, no recorded run)
wenhao-gao/synformer/synformer/molopt/model.py
code served (permissive licence) · get_code("68ff3b95f0bf3578")
How it ran

no invocation recorded.

get_checkpoint_path Not yet run
unverified (harvested, no recorded run)
coleygroup/shepherd/src/shepherd/checkpoint_manager.py
code served (permissive licence) · get_code("e99c5d0f3be8f529")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 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
tokenize_smiles 1 other paper
1 dated earlier
2406.04628 (2024-06)
Projecting Molecules into Synthesizable Chemical Spaces

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

We present SynLaD, a latent diffusion framework for small-molecule generation that unifies ligand-based drug design objectives (what to make) with synthetic accessibility (how to make it). Current models typically optimize one objective at the expense of the other, creating a bottleneck for discovering high-scoring and synthesizable molecules. SynLaD combines reactionconstrained generation with pharmacophoreconditioned 3D design by learning a latent space that decodes to both 3D structures and synthesis pathways. An encoder maps molecules to a latent representation used by two decoder heads: (i) a geometric head that reconstructs atom types and coordinates and (ii) an autoregressive synthesis head that outputs synthetic routes in a serialized, reaction-based notation. A diffusion transformer generates novel latents in the learned space, conditioned on pharmacophore profiles. Across analogue generation tasks for bioactive ligands, Syn-LaD outperforms existing baselines in synthesizable and diverse hit generation, demonstrating that a single model can produce shape-aligned molecules with feasible synthesis plans.

For agents

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

get_harvested_code_for_paper("2607.01105")
get_code_for_paper("2607.01105")
have("2607.01105")

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

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

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

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

Connect an agent — have() is free.