SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.07472 · ICML · 2023

Von Mises Mixture Distributions for Molecular Conformation Generation

Kirk Swanson, Jake Williams, Eric Jonas

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 1 failure of our instrument; 1 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.07472.json · badge: /api/ran/2306.07472.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
thejonaslab/vonmises-icml-2023 canonical (classifier label)
classifier basis: classifier_2025
4 ran · 1 no recorded run
FunctionStatusWhere it lives
GCNLayer Ran
ran on a synthesized input · constructed an object; no result was computed
thejonaslab/vonmises-icml-2023/vonmises/nets.py
code served (permissive licence) · get_code("168c93ad9382ceab")
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, GCNLayer: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

# Parameters for GCNLayer
hidden_size = 8
num_vertices = 4
reduce = 'mean'
extra_norm = 'layer'
extra_layers = 2
end_norm = 'layer'
order = True

ARGS = {
    'hidden_size': hidden_size,
    'reduce': reduce,
    'num_vertices': num_vertices,
    'extra_norm': extra_norm,
    'extra_layers': extra_layers,
    'end_norm': end_norm,
    'order': order,
}
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 GCNLayer — 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 GCNLayer 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
GCNStack Ran
ran on a synthesized input · constructed an object; no result was computed
thejonaslab/vonmises-icml-2023/vonmises/nets.py
code served (permissive licence) · get_code("ce99025575fd7688")
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, GCNStack: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

def get_normalization_module(norm_type: str, hidden_size: int, num_vertices: int=None):
    NORMALIZATIONS = {'layer': torch.nn.LayerNorm, 'batch': torch.nn.BatchNorm1d, 'instance': torch.nn.InstanceNorm1d}
    norm = NORMALIZATIONS.get(norm_type, None)
    if norm is not None:
        if norm_type == 'batch':
            norm = norm(num_vertices)
        else:
            norm = norm(hidden_size)
    return norm

class GCNLayer(torch.nn.Module):
    def __init__(self, hidden_size, reduce: str='mean', num_vertices: int=None, extra_norm: str='', extra_layers: int=0, end_norm: str='', order: bool=True):
        super(GCNLayer, self).__init__()
        self.hidden_size = hidden_size
        self.reduce = reduce
        self.num_vertices = num_vertices
        self.L_v = torch.nn.Linear(self.hidden_size, self.hidden_size)
        self.N_extra = torch.nn.ModuleList([get_normalization_module(extra_norm, self.hidden_size, self.num_vertices) for _ in range(extra_layers)])
        self.L_extra = torch.nn.ModuleList([torch.nn.Linear(self.hidden_size, self.hidden_size) for _ in range(extra_layers)])
        self.N_end = get_normalization_module(end_norm, self.hidden_size, self.num_vertices)
        self.order = order

    def forward(self, v_i_in, G=None):
        if self.order:
            v_i_prime = self.L_v(v_i_in)
            v_i_e = self.message_passing(v_i_prime, G=G)
        else:
            v_i_prime = self.message_passing(v_i_in, G=G)
            v_i_e = self.L_v(v_i_prime)
        for i, l in enumerate(self.L_extra):
            if not self.N_extra[i] is None:
                v_i_e = self.N_extra[i](v_i_e)
            v_i_e = torch.nn.functional.relu(l(v_i_e))
        v_i_e = torch.nn.functional.relu(v_i_e)
        if self.N_end is not None:
            v_i_e = self.N_end(v_i_e)
        return v_i_e

    def message_passing(self, v_i_in, G=None):
        if not self.reduce == 'nodes_only':
            n = torch.sum(G, 2)
            e = torch.eye(self.num_vertices)
            if G.is_cuda:
                n = n.cuda()
                e = e.cuda()
            G = G + torch.einsum('ij,jk->ijk', [n, e])
        out = torch.einsum('ijk,ikl->ijl', [G, v_i_in])
        if self.reduce == 'mean':
            diag = torch.diagonal(G, dim1=-2, dim2=-1)
            add_ones = torch.zeros_like(diag)
            add_ones[diag == 0] = 1
            diag = diag + add_ones
            out = out / diag.unsqueeze(2).repeat(1, 1, self.hidden_size)
        return out

class GCNStack(torch.nn.Module):
    def __init__(self, hidden_size: int, order: bool, num_layers: int, reduce: str='mean', num_vertices: int=None, extra_norm: str='', extra_layers: int=0, end_norm: str='', use_residual: bool=True):
        super(GCNStack, self).__init__()
        self.hidden_size = hidden_size
        self.num_vertices = num_vertices
        self.num_layers = num_layers
        self.use_residual = use_residual
        self.reduce = reduce
        self.layers = torch.nn.ModuleList([GCNLayer(self.hidden_size, reduce=self.reduce, num_vertices=self.num_vertices, extra_norm=extra_norm, extra_layers=extra_layers, end_norm=end_norm, order=order) for _ in range(num_layers)])

    def forward(self, v_i_in, G=None):
        v_i = v_i_in
        for layer in self.layers:
            v_i_new = layer(v_i, G=G)
            if self.use_residual:
                v_i = v_i + v_i_new
            else:
                v_i = v_i_new
        return v_i

hidden_dim = 4
num_verts = 3
num_layers = 2

ARGS = {
    'hidden_size': hidden_dim,
    'order': True,
    'num_layers': num_layers,
    'reduce': 'mean',
    'num_vertices': num_verts,
    'extra_norm': '',
    'extra_layers': 0,
    'end_norm': '',
    'use_residual': True,
}
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 GCNStack — 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 GCNStack 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
OutputLayer Ran
ran on a synthesized input · constructed an object; no result was computed
thejonaslab/vonmises-icml-2023/vonmises/nets.py
code served (permissive licence) · get_code("82d629f686f791cf")
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, OutputLayer: 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

torch.manual_seed(0)

# Define a simple normalization function for end_norm
def simple_norm(x):
    return torch.nn.functional.softmax(x, dim=-1)

# Create ARGS dict with all parameters for OutputLayer
ARGS = {
    'hidden_size': 4,
    'final_linear_size': 3,
    'final_output_size': 2,
    'end_norm': simple_norm
}
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 OutputLayer — 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 OutputLayer 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_normalization_module Ran
ran; our contract draft was wrong, not the code
thejonaslab/vonmises-icml-2023/vonmises/nets.py
code served (permissive licence) · get_code("e4f0cea23b5dd2e4")
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 LayerNorm. 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)

ARGS = {
    'norm_type': 'layer',
    'hidden_size': 64,
    'num_vertices': 16
}
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 LayerNorm — a LayerNorm output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LayerNorm 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
VonMisesNet Not yet run
unverified (harvested, no recorded run)
thejonaslab/vonmises-icml-2023/vonmises/nets.py
code served (permissive licence) · get_code("283f6ff3768c860e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 5 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

Molecules are frequently represented as graphs, but the underlying 3D molecular geometry (the locations of the atoms) ultimately determines most molecular properties. However, most molecules are not static and at room temperature adopt a wide variety of geometries or conformations. The resulting distribution on geometries p(x) is known as the Boltzmann distribution, and many molecular properties are expectations computed under this distribution. Generating accurate samples from the Boltzmann distribution is therefore essential for computing these expectations accurately. Traditional sampling-based methods are computationally expensive, and most recent machine learning-based methods have focused on identifying modes in this distribution rather than generating true samples. Generating such samples requires capturing conformational variability, and it has been widely recognized that the majority of conformational variability in molecules arises from rotatable bonds. In this work, we present VonMisesNet, a new graph neural network that captures conformational variability via a variational approximation of rotatable bond torsion angles as a mixture of von Mises distributions. We demonstrate that VonMisesNet can generate conformations for arbitrary molecules in a way that is both physically accurate with respect to the Boltzmann distribution and orders of magnitude faster than existing sampling methods.

For agents

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

get_harvested_code_for_paper("2306.07472")
get_code_for_paper("2306.07472")
have("2306.07472")

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

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

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

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

Connect an agent — have() is free.