SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.16819 · NeurIPS · 2023

Graph Denoising Diffusion for Inverse Protein Folding

Pietro Liò, Yu Wang, Kai Yi, Bingxin Zhou, Yiqing Shen

arXiv · PDF · Open in the Atlas

Code that ran

18 of 21 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; 4 honoured the contract we drafted, 2 violated it and 7 have no contract verdict; 5 failures of our instrument; 3 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/2306.16819.json · badge: /api/ran/2306.16819.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
ykiiiiii/GraDe_IF canonical (classifier label)
classifier basis: census
15 ran · 0 no recorded run
ykiiiiii/grade_if canonical (classifier label)
classifier basis: classifier_2025
3 ran · 3 no recorded run
FunctionStatusWhere it lives
PredefinedNoiseScheduleDiscrete Ran
ran on a synthesized input
ykiiiiii/grade_if/diffusion/gradeif.py
code served (permissive licence) · get_code("01cbb7848fc50864")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 1, dtype family float, shape (2,) 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

def cosine_beta_schedule_discrete(timesteps, s=0.008):
    """ Cosine schedule as proposed in https://openreview.net/forum?id=-NEXDKk8gZ. """
    steps = timesteps + 2
    x = np.linspace(0, steps, steps)
    alphas_cumprod = np.cos(0.5 * np.pi * (x / steps + s) / (1 + s)) ** 2
    alphas_cumprod = alphas_cumprod / alphas_cumprod[0]
    alphas = alphas_cumprod[1:] / alphas_cumprod[:-1]
    betas = 1 - alphas
    return betas.squeeze()

def custom_beta_schedule_discrete(timesteps, average_num_nodes=50, s=0.008):
    """ Cosine schedule as proposed in https://openreview.net/forum?id=-NEXDKk8gZ. """
    steps = timesteps + 2
    x = np.linspace(0, steps, steps)
    alphas_cumprod = np.cos(0.5 * np.pi * (x / steps + s) / (1 + s)) ** 2
    alphas_cumprod = alphas_cumprod / alphas_cumprod[0]
    alphas = alphas_cumprod[1:] / alphas_cumprod[:-1]
    betas = 1 - alphas
    assert timesteps >= 100
    p = 4 / 5
    num_edges = average_num_nodes * (average_num_nodes - 1) / 2
    updates_per_graph = 1.2
    beta_first = updates_per_graph / (p * num_edges)
    betas[betas < beta_first] = beta_first
    return np.array(betas)

class PredefinedNoiseScheduleDiscrete(torch.nn.Module):
    """
    Predefined noise schedule. Essentially creates a lookup array for predefined (non-learned) noise schedules.
    """

    def __init__(self, noise_schedule, timesteps, noise_type, blosum_path='dataset_src/blosum_substitute.pt'):
        super(PredefinedNoiseScheduleDiscrete, self).__init__()
        self.timesteps = timesteps
        self.noise_type = noise_type
        if self.noise_type == 'blosum':
            self.temperature_list = torch.load(blosum_path)['temperature']
        if noise_schedule == 'cosine':
            betas = cosine_beta_schedule_discrete(timesteps)
        elif noise_schedule == 'custom':
            betas = custom_beta_schedule_discrete(timesteps)
        else:
            raise NotImplementedError(noise_schedule)
        self.register_buffer('betas', torch.from_numpy(betas).float())
        self.alphas = 1 - torch.clamp(self.betas, min=0, max=0.9999)
        log_alpha = torch.log(self.alphas)
        log_alpha_bar = torch.cumsum(log_alpha, dim=0)
        self.alphas_bar = torch.exp(log_alpha_bar)

    def forward(self, t_normalized=None, t_int=None):
        assert int(t_normalized is None) + int(t_int is None) == 1
        if t_int is None:
            t_int = torch.round(t_normalized * self.timesteps)
        if self.betas.device != t_int.device:
            self.betas = self.betas.to(t_int.device)
        return self.betas[t_int.long()]

    def get_alpha_bar(self, t_normalized=None, t_int=None):
        if self.noise_type == 'uniform':
            assert int(t_normalized is None) + int(t_int is None) == 1
            if t_int is None:
                t_int = torch.round(t_normalized * self.timesteps)
            if self.alphas_bar.device != t_int.device:
                self.alphas_bar = self.alphas_bar.to(t_int.device)
            return self.alphas_bar[t_int.long()]
        else:
            return t_normalized


INIT_ARGS = {
    'noise_schedule': 'cosine',
    'timesteps': 100,
    'noise_type': 'uniform',
    'blosum_path': 'dataset_src/blosum_substitute.pt'
}

ARGS = {
    't_normalized': torch.tensor([0.3, 0.7]),
    't_int': None
}

if __name__ == '__main__':
    model = PredefinedNoiseScheduleDiscrete(**INIT_ARGS)
    output = model(**ARGS)
    print("Output shape:", output.shape)
    print("Output:", output)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 (2,) — shape (2,) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
batched_index_select Ran
ran; our contract draft was wrong, not the code
ykiiiiii/GraDe_IF/diffusion/model/egnn_pytorch/egnn_pytorch.py
code served (permissive licence) · get_code("582b2f1aa69315a0")
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, 6, 3, 5) 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 test tensors for batched_index_select
# values: shape (batch, dim, feature1, feature2) = (2, 4, 3, 5)
# indices: shape (batch, indices_dim) = (2, 6)
# dim: 1

values = torch.randn(2, 4, 3, 5)
indices = torch.randint(0, 4, (2, 6))
dim = 1

ARGS = {
    "values": values,
    "indices": indices,
    "dim": dim
}
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, 6, 3, 5) — shape (2, 6, 3, 5) 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
clip_noise_schedule Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ykiiiiii/GraDe_IF/diffusion/utils.py
code served (permissive licence) · get_code("227cedce4e185b09")
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 (8,) 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

# Create a simple noise schedule (alphas^2 values)
# Using a decreasing schedule typical for diffusion models
alphas2 = np.array([0.9999, 0.9998, 0.9997, 0.9996, 0.9995, 0.9994, 0.9993, 0.9992], dtype=np.float32)

ARGS = {
    "alphas2": alphas2,
    "clip_value": 0.001
}
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 (8,) — shape (8,) 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
cosine_beta_schedule Ran
ran, honoured the contract we drafted
ykiiiiii/GraDe_IF/diffusion/utils.py
code served (permissive licence) · get_code("826fe75952e9c8fb")
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 ndarray, ndim 1, dtype family float, shape (11,) 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

ARGS = {
    "timesteps": 10,
    "s": 0.008,
    "raise_to_power": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 (11,) — shape (11,) 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
dataset_argument Ran
ran on a synthesized input
ykiiiiii/GraDe_IF/dataset_src/utils.py
code served (permissive licence) · get_code("40c02c9bb61dccd1")
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
import numpy as np

torch.manual_seed(0)

# The function dataset_argument takes a single parameter n (defaults to 0)
# and returns a dictionary with dataset configuration parameters.
# Since this function only reads the parameter n and constructs a dict,
# we just need to provide valid values for n.

ARGS = {
    'n': 0
}
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 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
ykiiiiii/GraDe_IF/diffusion/model/egnn_pytorch/egnn_pytorch.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.

exists Ran
ran, violated the contract we drafted
ykiiiiii/GraDe_IF/diffusion/gradeif.py
code served (permissive licence) · get_code("608e364a9d2376a3")
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 bool, 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

def exists(x):
    return x is not None

ARGS = {
    "x": torch.tensor([1, 2, 3, 4])
}
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 bool, 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_pdb Ran
ran on a synthesized input
ykiiiiii/GraDe_IF/dataset_src/download_pdb.py
code served (permissive licence) · get_code("53c6f2683e5d4b78")
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
from unittest.mock import patch

# Mock os.system to prevent actual network calls
def mock_system(cmd):
    return 0

ARGS = {
    'pdb_code': '1BNA'
}

# Patch os.system to prevent wget from actually running
with patch('os.system', side_effect=mock_system):
    pass
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
get_stat Ran
ran on a synthesized input
ykiiiiii/GraDe_IF/dataset_src/utils.py
code served (permissive licence) · get_code("d04f9a6f7f21ed3c")
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 torch
import os
import tempfile
from torch_geometric.data import Data

torch.manual_seed(0)

# Create a temporary directory with mock graph files
temp_dir = tempfile.mkdtemp()

# Create mock graph data objects and save them
for i in range(5):
    x = torch.randn(10, 4)  # 10 nodes, 4 features
    pos = torch.randn(10, 3)  # 10 nodes, 3 spatial coordinates
    mu_r_norm = torch.randn(10, 5)  # 10 nodes, 5 features
    edge_index = torch.randint(0, 10, (2, 15))  # 15 edges
    edge_attr = torch.randn(15, 6)  # 15 edges, 6 features
    
    graph = Data(
        x=x,
        pos=pos,
        mu_r_norm=mu_r_norm,
        edge_index=edge_index,
        edge_attr=edge_attr
    )
    
    filepath = os.path.join(temp_dir, f"graph_{i}.pt")
    torch.save(graph, filepath)

ARGS = {
    "graph_root": temp_dir,
    "limited_num": 5,
    "num_subgroup": 2,
    "max_limits": 100000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric, tqdm — 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
has_nan_or_inf Ran
ran; our contract draft was wrong, not the code
ykiiiiii/grade_if/diffusion/gradeif.py
code served (permissive licence) · get_code("9d3a88ecd04c9fa7")
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 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

torch.manual_seed(0)

# The function takes a single parameter: tensor
# It checks for NaN, Inf, and negative values
# We'll create a small tensor to test with

tensor = torch.randn(2, 4)

ARGS = {
    "tensor": tensor
}
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 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
num_to_groups Ran
ran, honoured the contract we drafted
ykiiiiii/grade_if/diffusion/gradeif.py
code served (permissive licence) · get_code("4f66ae7f14b3b240")
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 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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - num_to_groups takes two parameters: num and divisor
# - num is used in integer division (//) and modulo (%)
# - divisor is used in integer division (//) and modulo (%), and appended to a list
# - Both should be integers

ARGS = {
    "num": 17,
    "divisor": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
prepare_graph Ran
ran on a synthesized input
ykiiiiii/GraDe_IF/dataset_src/generate_graph.py
code served (permissive licence) · get_code("3edd03452fa3816d")
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 Data. 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
from torch_geometric.data import Data

torch.manual_seed(0)

# Create a minimal Data object with all required attributes
num_nodes = 2
num_edges = 3

data = Data(
    x=torch.randn(num_nodes, 25),  # 20 base features + 5 sasa features
    pos=torch.randn(num_nodes, 3),
    edge_index=torch.tensor([[0, 1, 0], [1, 0, 1]], dtype=torch.long),
    edge_attr=torch.randn(num_edges, 4),
    mu_r_norm=torch.randn(num_nodes, 5),  # Will be concatenated with x[:, 20:]
    ss=torch.randn(num_nodes, 8),
    distances=torch.randn(num_nodes, num_nodes),  # Will be deleted
    edge_dist=torch.randn(num_edges, 1),  # Will be deleted
)

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Data — a Data output has no array shape of its own; none is 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
rot Ran
ran, honoured the contract we drafted
ykiiiiii/GraDe_IF/diffusion/model/egnn_pytorch/utils.py
code served (permissive licence) · get_code("ce6e710ab3f70a4e")
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 (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
from torch import sin, cos, atan2, acos

torch.manual_seed(0)

# The function rot takes three scalar angle parameters: alpha, beta, gamma
# Each should be a torch tensor (scalar) since they're used with sin/cos operations
# which expect tensor inputs

alpha = torch.tensor(0.5, dtype=torch.float32)
beta = torch.tensor(1.2, dtype=torch.float32)
gamma = torch.tensor(0.3, dtype=torch.float32)

ARGS = {
    "alpha": alpha,
    "beta": beta,
    "gamma": gamma,
}
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 (3, 3) — shape (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
rot_y Ran
ran on a synthesized input
ykiiiiii/GraDe_IF/diffusion/model/egnn_pytorch/utils.py
code served (permissive licence) · get_code("01d34e165ddda4f6")
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 (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)

beta = torch.tensor(0.5, dtype=torch.float32)

ARGS = {
    "beta": beta
}
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 (3, 3) — shape (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
rot_z Ran
ran on a synthesized input
ykiiiiii/GraDe_IF/diffusion/model/egnn_pytorch/utils.py
code served (permissive licence) · get_code("65804fe33d6057cf")
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 (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
from torch import sin, cos, atan2, acos

torch.manual_seed(0)

# The function rot_z takes a single parameter 'gamma' which is used in:
# - cos(gamma)
# - sin(gamma)
# - dtype attribute access (gamma.dtype)
# So gamma must be a torch.Tensor with a dtype attribute

gamma = torch.tensor(0.5, dtype=torch.float32)

ARGS = {
    "gamma": gamma
}
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 (3, 3) — shape (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
safe_div Ran
ran; our contract draft was wrong, not the code
ykiiiiii/GraDe_IF/diffusion/model/egnn_pytorch/egnn_pytorch.py
code served (permissive licence) · get_code("d92b80051870e976")
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, 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 torch.nn as nn

torch.manual_seed(0)

# Construct arguments for safe_div(num, den, eps=1e-08)
# The function calls:
# - num.div(den.clamp(min=eps))
# - den == 0
# - res.masked_fill_(den == 0, 0.0)
# So num and den must be torch tensors

num = torch.randn(2, 4)
den = torch.randn(2, 4)

ARGS = {
    "num": num,
    "den": den,
    "eps": 1e-08
}
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, 4) — shape (2, 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
safe_index Ran
ran, honoured the contract we drafted
ykiiiiii/GraDe_IF/dataset_src/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from lvkd84/graphfp, is pointer only (licence: NONE) · get_code("556ccfd77bd3c202")
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 lvkd84/graphfp, 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.

sum_except_batch Ran
ran; our contract draft was wrong, not the code
ykiiiiii/GraDe_IF/diffusion/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from danyalrehman/autobg, is pointer only (licence: NOASSERTION) · get_code("2cee3f8f2583fd9d")
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 danyalrehman/autobg, 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.

BlosumTransition Not yet run
unverified (harvested, no recorded run)
ykiiiiii/grade_if/diffusion/gradeif.py
code served (permissive licence) · get_code("bf6b44b1a6414f1c")
How it ran

no invocation recorded.

DiscreteUniformTransition Not yet run
unverified (harvested, no recorded run)
ykiiiiii/grade_if/diffusion/gradeif.py
code served (permissive licence) · get_code("5f6908aac98fe703")
How it ran

no invocation recorded.

GraDe_IF Not yet run
unverified (harvested, no recorded run)
ykiiiiii/grade_if/diffusion/gradeif.py
code served (permissive licence) · get_code("eb48da1c7c545b9e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 10 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 3 the same month, 9 later) and 11 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
188 dated earlier, 8 the same month, 284 later, 4 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
exists 144 other papers
41 dated earlier, 6 the same month, 96 later, 1 same year, order not determinable · 40 only as an assembly brick
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
and 141 more not named here
num_to_groups 8 other papers
5 dated earlier, 3 later
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.06337 (2021-05)
Grad-TTS: A Diffusion Probabilistic Model for Text-to-Speech
2110.07579 (2021-10)
Diffusion Normalizing Flow
and 5 more not named here
sum_except_batch 6 other papers
2 dated earlier, 4 later
2105.09016 (2021-05)
E(n) Equivariant Normalizing Flows
2203.17003 (2022-03)
Equivariant Diffusion for Molecule Generation in 3D
2308.16212 (2023-08)
RetroBridge: Modeling Retrosynthesis with Markov Bridges
and 3 more not named here
batched_index_select 5 other papers
3 dated earlier, 2 later · 1 only as an assembly brick
1904.09664 (2019-04)
Deep Hough Voting for 3D Object Detection in Point Clouds
2102.09844 (2021-02)
E(n) Equivariant Graph Neural Networks
2110.13100 (2021-10)
Parameter Prediction for Unseen Deep Architectures
and 2 more not named here
clip_noise_schedule 4 other papers
4 later
2311.13466 (2023-11)
Accelerating Inference in Molecular Diffusion Models with Latent Representations of Protein Structure
2401.02683 (2024-01)
Geometric-Facilitated Denoising Diffusion Model for 3D Molecule Generation
2404.12141 (2024-04)
MolCRAFT: Structure-Based Drug Design in Continuous Parameter Space
and 1 more not named here
safe_index 3 other papers
1 dated earlier, 1 the same month, 1 later
2209.05481 (2022-09)
A Molecular Multimodal Foundation Model Associating Molecule Graphs with Natural Language
2306.07812 (2023-06)
Automated 3D Pre-Training for Molecular Property Prediction
2310.03274 (2023-10)
Fragment-based Pretraining and Finetuning on Molecular Graphs
rot 2 other papers
1 dated earlier, 1 later
1807.02547 (2018-07)
3D Steerable CNNs: Learning Rotationally Equivariant Features in Volumetric Data
2410.11443 (2024-10)
Are High-Degree Representations Really Unnecessary in Equivariant Graph Neural Networks?
cosine_beta_schedule 1 other paper
1 later
2311.13466 (2023-11)
Accelerating Inference in Molecular Diffusion Models with Latent Representations of Protein Structure
safe_div 1 other paper
1 dated earlier
2102.09844 (2021-02)
E(n) Equivariant Graph Neural Networks

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

Inverse protein folding is challenging due to its inherent one-to-many mapping characteristic, where numerous possible amino acid sequences can fold into a single, identical protein backbone. This task involves not only identifying viable sequences but also representing the sheer diversity of potential solutions. However, existing discriminative models, such as transformer-based auto-regressive models, struggle to encapsulate the diverse range of plausible solutions. In contrast, diffusion probabilistic models, as an emerging genre of generative approaches, offer the potential to generate a diverse set of sequence candidates for determined protein backbones. We propose a novel graph denoising diffusion model for inverse protein folding, where a given protein backbone guides the diffusion process on the corresponding amino acid residue types. The model infers the joint distribution of amino acids conditioned on the nodes' physiochemical properties and local environment. Moreover, we utilize amino acid replacement matrices for the diffusion forward process, encoding the biologically meaningful prior knowledge of amino acids from their spatial and sequential neighbors as well as themselves, which reduces the sampling space of the generative process. Our model achieves state-of-the-art performance over a set of popular baseline methods in sequence recovery and exhibits great potential in generating diverse protein sequences for a determined protein backbone structure. The code is available on https://github.com/ykiiiiii/GraDe_IF.

For agents

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

get_harvested_code_for_paper("2306.16819")
get_code_for_paper("2306.16819")
have("2306.16819")

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

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

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

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

Connect an agent — have() is free.