SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.15611 · 2022

Protein structure generation via folding diffusion

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 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; 0 honoured the contract we drafted, 0 violated it and 11 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2209.15611.json · badge: /api/ran/2209.15611.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
microsoft/foldingdiff canonical (classifier label)
classifier basis not recorded on the link
11 ran · 2 no recorded run
FunctionStatusWhere it lives
cosine_beta_schedule Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/beta_schedules.py
code served (permissive licence) · get_code("82f226c1ee04dd39")
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 (100,) 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 cosine_beta_schedule takes:
# - timesteps: int - number of timesteps
# - s: float - smoothing parameter (default 0.008)
# 
# The function uses these parameters to compute a beta schedule for diffusion models.
# It doesn't use any complex objects, just scalar values.

ARGS = {
    "timesteps": 100,
    "s": 0.008,
}
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 (100,) — shape (100,) 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
kl_from_dset Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/custom_metrics.py
code served (permissive licence) · get_code("841237cc41673d55")
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 2, dtype family float, shape (3, 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
from torch.utils.data import Dataset

torch.manual_seed(0)

class NoisedAnglesDataset(Dataset):
    """Minimal dataset implementation matching expected interface"""
    def __init__(self, num_samples=2, num_features=4, timesteps=3):
        self.num_samples = num_samples
        self.num_features = num_features
        self.timesteps = timesteps
        self.feature_names = {'angles': [f'angle_{i}' for i in range(num_features)]}
        
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx, use_t_val=0):
        # Returns dict with 'corrupted' and 'attn_mask' keys
        corrupted = torch.randn(5, self.num_features)  # 5 time steps, num_features
        attn_mask = torch.ones(5, dtype=torch.bool)
        attn_mask[2] = False  # Mark some positions as invalid
        return {
            'corrupted': corrupted,
            'attn_mask': attn_mask
        }
    
    def sample_noise(self, values):
        # Takes tensor of shape (n_samples, n_features) and returns similar shaped noise
        return torch.randn_like(values)

# Create minimal dataset instance
dset = NoisedAnglesDataset(num_samples=2, num_features=4, timesteps=3)

ARGS = {
    'dset': dset,
    'single_thread': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 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
kl_from_empirical Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/custom_metrics.py
code served (permissive licence) · get_code("9ee8353049e168c2")
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 float64, ndim 0, 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

# Set random seed for reproducibility
np.random.seed(0)

# Create two empirical distributions as numpy arrays
# These represent samples from two different distributions
u = np.random.normal(loc=0, scale=1, size=100)
v = np.random.normal(loc=0.5, scale=1.2, size=100)

# Define all arguments for the function
ARGS = {
    "u": u,
    "v": v,
    "nbins": 50,
    "pseudocount": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
lddt Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/lddt.py
code served (permissive licence) · get_code("10e14aae4b9a1ff2")
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; 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 tempfile
import os
from pathlib import Path

# Create temporary PDB files for testing
tmpdir = tempfile.mkdtemp()
query_path = Path(tmpdir) / "query.pdb"
ref_path = Path(tmpdir) / "ref.pdb"

# Write minimal valid PDB files
pdb_content = """ATOM      1  N   ALA A   1       0.000   0.000   0.000  1.00  0.00           N
ATOM      2  CA  ALA A   1       1.458   0.000   0.000  1.00  0.00           C
ATOM      3  C   ALA A   1       2.009   1.390   0.000  1.00  0.00           C
ATOM      4  O   ALA A   1       1.221   2.390   0.000  1.00  0.00           O
END
"""

with open(query_path, 'w') as f:
    f.write(pdb_content)

with open(ref_path, 'w') as f:
    f.write(pdb_content)

ARGS = {
    'query': query_path,
    'ref': ref_path
}
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 float, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:NameError)
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
linear_beta_schedule Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/beta_schedules.py
code served (permissive licence) · get_code("d79d8da3ec92f2f8")
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 (100,) 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 = {
    "timesteps": 100,
    "beta_start": 0.0001,
    "beta_end": 0.02,
}
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 (100,) — shape (100,) 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
plot_joint_kde Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/plotting.py
code served (permissive licence) · get_code("190d51335b6ede35")
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 Figure. 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
import torch

torch.manual_seed(0)

# Generate sample data for x and y values
# Using numpy arrays since the function passes them to sns.kdeplot which accepts array-like
x_values = np.random.randn(100)
y_values = np.random.randn(100)

# Define all arguments for the function
ARGS = {
    'x_values': x_values,
    'y_values': y_values,
    'show_axes': True,
    'fname': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, seaborn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure 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
plot_losses Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/plotting.py
code served (permissive licence) · get_code("93e2bf5ea81af422")
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 Figure. 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 pandas as pd
import tempfile
import os

# Create a temporary CSV file with loss data
with tempfile.NamedTemporaryFile(mode='w', suffix='.csv', delete=False) as f:
    log_fname = f.name
    f.write("epoch,val_loss,train_loss,test_loss\n")
    f.write("0,0.5,0.6,0.55\n")
    f.write("1,0.4,0.5,0.45\n")
    f.write("2,0.3,0.4,0.35\n")
    f.write("3,0.25,0.35,0.3\n")

# Create output filename
with tempfile.NamedTemporaryFile(mode='w', suffix='.png', delete=False) as f:
    out_fname = f.name

ARGS = {
    'log_fname': log_fname,
    'out_fname': out_fname,
    'simple': False,
    'pattern': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, pandas, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure 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
plot_val_dists_at_t Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/plotting.py
code served (permissive licence) · get_code("c32b0d4e8dd9281d")
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 Figure. 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
from torch.utils.data import Dataset

torch.manual_seed(0)

class MockDataset(Dataset):
    def __init__(self):
        self.feature_names = {
            'angles': ['phi', 'psi', 'chi1', 'dist_ca']
        }
        self.data = []
        # Create 3 samples with time steps
        for sample_idx in range(3):
            for t in range(5):
                sample = {
                    't': torch.tensor(t, dtype=torch.long),
                    'corrupted': torch.randn(8, 4),  # 8 positions, 4 features
                    'attn_mask': torch.randint(0, 2, (8,), dtype=torch.bool)
                }
                self.data.append((sample_idx, t, sample))
    
    def __len__(self):
        return 3  # 3 samples
    
    def __getitem__(self, idx, use_t_val=None):
        # Return data for the sample at index idx with the specified time step
        if use_t_val is not None:
            # Find the entry matching idx and use_t_val
            for sample_idx, t, sample in self.data:
                if sample_idx == idx and t == use_t_val:
                    return sample
            # Fallback: create one on the fly
            return {
                't': torch.tensor(use_t_val, dtype=torch.long),
                'corrupted': torch.randn(8, 4),
                'attn_mask': torch.randint(0, 2, (8,), dtype=torch.bool)
            }
        else:
            return self.data[idx][2]

dset = MockDataset()

ARGS = {
    't': 2,
    'dset': dset,
    'share_axes': True,
    'zero_center_angles': False,
    'fname': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, seaborn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure 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
quadratic_beta_schedule Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/beta_schedules.py
code served (permissive licence) · get_code("96ef62e7f39a0d92")
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 = {
    "timesteps": 10,
    "beta_start": 0.0001,
    "beta_end": 0.02
}
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
radian_l1_loss Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/losses.py
code served (permissive licence) · get_code("3942ec1e0adb96ee")
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 numpy as np

torch.manual_seed(0)

# Create small tensors for input and target
input_tensor = torch.tensor([0.1, 0.2, 0.3, 0.4])
target_tensor = torch.tensor([0.15, 0.25, 0.35, 0.45])

ARGS = {
    "input": input_tensor,
    "target": target_tensor,
}
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 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
wrapped_mean Ran
ran on a synthesized input
microsoft/foldingdiff/foldingdiff/custom_metrics.py
code served (permissive licence) · get_code("62faf860e1474bd2")
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 float64, ndim 0, 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

# Create a small numpy array with angular values in radians
# Using values that make sense for circular mean computation
x = np.array([
    [0.1, 0.5, 1.2, 2.0],
    [np.pi/4, np.pi/2, 3*np.pi/4, np.pi]
])

ARGS = {
    'x': x,
    'axis': None
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
pairwise_dist_loss Not yet run
unverified (harvested, no recorded run)
microsoft/foldingdiff/foldingdiff/losses.py
code served (permissive licence) · get_code("5997c5ff2b36f4ed")
How it ran

no invocation recorded.

run_tmalign Not yet run
unverified (harvested, no recorded run)
microsoft/foldingdiff/foldingdiff/tmalign.py
code served (permissive licence) · get_code("07efaf9aa9418e65")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

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

The ability to computationally generate novel yet physically foldable protein structures could lead to new biological discoveries and new treatments targeting yet incurable diseases. Despite recent advances in protein structure prediction, directly generating diverse, novel protein structures from neural networks remains difficult. In this work, we present a new diffusion-based generative model that designs protein backbone structures via a procedure that mirrors the native folding process. We describe protein backbone structure as a series of consecutive angles capturing the relative orientation of the constituent amino acid residues, and generate new structures by denoising from a random, unfolded state towards a stable folded structure. Not only does this mirror how proteins biologically twist into energetically favorable conformations, the inherent shift and rotational invariance of this representation crucially alleviates the need for complex equivariant networks. We train a denoising diffusion probabilistic model with a simple transformer backbone and demonstrate that our resulting model unconditionally generates highly realistic protein structures with complexity and structural patterns akin to those of naturally-occurring proteins. As a useful resource, we release the first open-source codebase and trained models for protein structure diffusion.

For agents

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

get_harvested_code_for_paper("2209.15611")
get_code_for_paper("2209.15611")
have("2209.15611")

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

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

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

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

Connect an agent — have() is free.