SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.18463 · ICLR · 2025

Hotspot-Driven Peptide Design via Multi-Fragment Autoregressive Extension

Tong Chen, Ge Liu, Jian Peng, Shitong Luo, Ruihan Guo, Jiaqi Guan, Jianzhu Ma, Chaoran Cheng, Jiahan Li, Sheng Wang

arXiv · PDF · Open in the Atlas

Code that ran

11 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 8 failures of our instrument; 5 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.18463.json · badge: /api/ran/2411.18463.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
Ced3-han/PepHAR canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
ced3-han/pephar canonical (classifier label)
classifier basis: classifier_2025
5 ran · 3 no recorded run
FunctionStatusWhere it lives
GABlock Ran
ran on a synthesized input · constructed an object; no result was computed
ced3-han/pephar/models/density_model.py
code served (permissive licence) · get_code("70ccfaae87f9fdb0")
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, GABlock: 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 numpy as np

torch.manual_seed(0)

ARGS = {
    'node_feat_dim': 4,
    'pair_feat_dim': 5,
    'value_dim': 8,
    'query_key_dim': 6,
    'num_query_points': 3,
    'num_value_points': 3,
    'num_heads': 2,
    'bias': False,
}
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 GABlock — 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 GABlock 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
angstrom_to_nm Ran
ran, honoured the contract we drafted
ced3-han/pephar/models/density_model.py
code served (permissive licence) · get_code("a85ad2ff0e007c7a")
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 float, 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 numpy as np

torch.manual_seed(0)

# The function angstrom_to_nm takes a parameter x and divides it by 10
# x can be a number, numpy array, or tensor
# We'll test with a simple numeric value

x_value = 5.0

ARGS = {
    'x': x_value
}
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 float, 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
construct_3d_basis Ran
ran; our contract draft was wrong, not the code
ced3-han/pephar/models/density_model.py
code served (permissive licence) · get_code("c4d2cf69aa69331e")
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 4, dtype family float, shape (2, 4, 3, 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)

# Create small tensors with distinct sizes for each dimension
# N=2 (batch), L=4 (sequence length), 3 (spatial dimension)
N = 2
L = 4

center = torch.randn(N, L, 3)
p1 = torch.randn(N, L, 3)
p2 = torch.randn(N, L, 3)

ARGS = {
    "center": center,
    "p1": p1,
    "p2": p2,
}
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 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 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
global_to_local Ran
ran; our contract draft was wrong, not the code
ced3-han/pephar/models/density_model.py
code served (permissive licence) · get_code("d8bc7f88e34943de")
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 4, dtype family float, shape (2, 4, 5, 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)

# Construct arguments for global_to_local
N = 2  # batch size
L = 4  # sequence length

# R: (N, L, 3, 3) - rotation matrices
R = torch.randn(N, L, 3, 3)

# t: (N, L, 3) - translation vectors
t = torch.randn(N, L, 3)

# q: Global coordinates (N, L, ..., 3)
# Using shape (N, L, 5, 3) to have distinct dimensions
q = torch.randn(N, L, 5, 3)

ARGS = {
    "R": R,
    "t": t,
    "q": q,
}
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 4, dtype family float, shape (2, 4, 5, 3) — shape (2, 4, 5, 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
masked_select Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Ced3-han/PepHAR/datasets/my_select.py
code served (permissive licence) · get_code("b7a2e9d4dffa5e37")
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, 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)

# Test case 1: string input
v_str = "hello"
mask_str = [True, False, True, False, True]

# Test case 2: list input
v_list = ["a", "b", "c", "d"]
mask_list = [True, True, False, True]

# Test case 3: tensor input
v_tensor = torch.randn(4, 3)
mask_tensor = torch.tensor([True, False, True, False])

# We'll use the tensor case as the primary test
ARGS = {
    "v": v_tensor,
    "mask": mask_tensor
}
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, 3) — shape (2, 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
nm_to_angstrom Ran
ran, honoured the contract we drafted
Ced3-han/PepHAR/models/ga.py
code served (permissive licence) · get_code("46d22cb265b2e628")
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 float, 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

torch.manual_seed(0)

# The function nm_to_angstrom takes a single parameter x and multiplies it by 10
# x can be a scalar, list, numpy array, or tensor
# We'll test with a simple numeric value

x = 5.0

ARGS = {
    "x": x
}
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 float, 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
normalize_vector Ran
ran; our contract draft was wrong, not the code
Ced3-han/PepHAR/models/ga.py
pointer only (licence: MIT); the stored copy get_code serves, from A4Bio/ADesigner, is pointer only (licence: NONE) · get_code("d26ff18f89e81ea5")
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 A4Bio/ADesigner, 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.

project_v2v Ran
ran; our contract draft was wrong, not the code
ced3-han/pephar/models/density_model.py
code served (permissive licence) · get_code("e83f79b6a566bc97")
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, 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 numpy as np

torch.manual_seed(0)

# Construct valid arguments for project_v2v
v = torch.randn(2, 4, 3)  # (N=2, L=4, 3)
e = torch.randn(2, 4, 3)  # (N=2, L=4, 3)
dim = 2  # dimension to sum over

ARGS = {
    "v": v,
    "e": e,
    "dim": dim,
}
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 3, dtype family float, shape (2, 4, 3) — shape (2, 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
register_dataset Ran
ran; our contract draft was wrong, not the code
Ced3-han/PepHAR/datasets/_base.py
code served (permissive licence) · get_code("76294830633c3f09")
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 register_dataset function is a decorator factory.
# It takes a 'name' parameter (string) and returns a decorator.
# The decorator takes a class and registers it in _DATASET_DICT.

# To construct valid arguments, we need to provide a 'name' for the decorator.
# Let's create a simple test class to pass to the decorator.

class DummyDataset:
    """A minimal dataset class for testing the decorator."""
    def __init__(self):
        self.data = torch.randn(2, 4)
    
    def __len__(self):
        return 2
    
    def __getitem__(self, idx):
        return self.data[idx]

# The function register_dataset(name) returns a decorator.
# To test it, we would call: @register_dataset("dataset_name")
# But since we need to provide arguments for the function itself,
# we just need to provide the 'name' parameter.

ARGS = {
    "name": "test_dataset"
}
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
register_model Ran
ran; our contract draft was wrong, not the code
Ced3-han/PepHAR/models/_base.py
pointer only (licence: MIT); the stored copy get_code serves, from edapinenut/cbgbench, is pointer only (licence: GPL-3.0) · get_code("be3d8f2945b52b90")
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 edapinenut/cbgbench, 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. A run is recorded.

select Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Ced3-han/PepHAR/datasets/my_select.py
code served (permissive licence) · get_code("8337784447c888a4")
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 torch

torch.manual_seed(0)

# Test case 1: v is a list
v_list = [10, 20, 30, 40, 50]
index_list = [0, 2, 4]

# Test case 2: v is a tensor
v_tensor = torch.randn(5, 4)
index_tensor = torch.tensor([0, 2, 4])

# We'll use the list case for ARGS
ARGS = {
    "v": [10, 20, 30, 40, 50],
    "index": [0, 2, 4]
}
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 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
DensityModuleV4 Not yet run
unverified (harvested, no recorded run)
ced3-han/pephar/models/density_model.py
code served (permissive licence) · get_code("d48913d73f657848")
How it ran

no invocation recorded.

GAEncoder Not yet run
unverified (harvested, no recorded run)
ced3-han/pephar/models/density_model.py
code served (permissive licence) · get_code("991ea9c0d0410c77")
How it ran

no invocation recorded.

_alpha_from_logits Not yet run
unverified (harvested, no recorded run)
ced3-han/pephar/models/density_model.py
code served (permissive licence) · get_code("a868e2a65de81bd2")
How it ran

no invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
Ced3-han/PepHAR/datasets/_base.py
code served (permissive licence) · get_code("12a234a1ea67a141")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
Ced3-han/PepHAR/models/_base.py
code served (permissive licence) · get_code("be1d33da9ab60900")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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
register_model
brick of this paper's assembly: helper
3 other papers
3 dated earlier
2203.14486 (2022-03)
Equivariant Point Cloud Analysis via Learning Orientations for Message Passing
2204.09410 (2022-04)
Generating 3D Molecules for Target Protein Binding
2311.10908 (2023-11)
Equivariant Neural Operator Learning with Graphon Convolution
normalize_vector
brick of this paper's assembly: helper
2 other papers
2 dated earlier
2203.14486 (2022-03)
Equivariant Point Cloud Analysis via Learning Orientations for Message Passing
2208.06073 (2022-08)
Conditional Antibody Design as 3D Equivariant Graph Translation
project_v2v
brick of this paper's assembly: helper
2 other papers
2 dated earlier
2201.13299 (2022-01)
Orientation-Aware Graph Neural Networks for Protein Structure Representation Learning
2203.14486 (2022-03)
Equivariant Point Cloud Analysis via Learning Orientations for Message Passing
construct_3d_basis
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2201.13299 (2022-01)
Orientation-Aware Graph Neural Networks for Protein Structure Representation Learning
get_model 1 other paper
1 dated earlier
2203.14486 (2022-03)
Equivariant Point Cloud Analysis via Learning Orientations for Message Passing
register_dataset 1 other paper
1 dated earlier
2311.10908 (2023-11)
Equivariant Neural Operator Learning with Graphon Convolution

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

Peptides, short chains of amino acids, interact with target proteins, making them a unique class of protein-based therapeutics for treating human diseases. Recently, deep generative models have shown great promise in peptide generation. However, several challenges remain in designing effective peptide binders. First, not all residues contribute equally to peptide-target interactions. Second, the generated peptides must adopt valid geometries due to the constraints of peptide bonds. Third, realistic tasks for peptide drug development are still lacking. To address these challenges, we introduce PepHAR, a hot-spot-driven autoregressive generative model for designing peptides targeting specific proteins. Building on the observation that certain hot spot residues have higher interaction potentials, we first use an energy-based density model to fit and sample these key residues. Next, to ensure proper peptide geometry, we autoregressively extend peptide fragments by estimating dihedral angles between residue frames. Finally, we apply an optimization process to iteratively refine fragment assembly, ensuring correct peptide structures. By combining hot spot sampling with fragment-based extension, our approach enables de novo peptide design tailored to a target protein and allows the incorporation of key hot spot residues into peptide scaffolds. Extensive experiments, including peptide design and peptide scaffold generation, demonstrate the strong potential of PepHAR in computational peptide binder design. The source code will be available at https://github.com/Ced3-han/PepHAR.

For agents

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

get_harvested_code_for_paper("2411.18463")
get_code_for_paper("2411.18463")
have("2411.18463")

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

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

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

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

Connect an agent — have() is free.