SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.03157 · ICML · 2025

UniSim: A Unified Simulator for Time-Coarsened Dynamics of Biomolecules

Yang Liu, Wenbing Huang, Ziyang Yu

arXiv · PDF · Open in the Atlas

Code that ran

6 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 2 have no contract verdict; 4 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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/2506.03157.json · badge: /api/ran/2506.03157.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
yaledeus/unisim canonical (classifier label)
classifier basis: classifier_2025
6 ran · 7 no recorded run
FunctionStatusWhere it lives
CosineCutoff Ran
ran on a synthesized input
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("7336823464021eba")
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 (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
from torch import nn
from torch import Tensor
import math

class CosineCutoff(nn.Module):

    def __init__(self, cutoff_lower=0.0, cutoff_upper=5.0):
        super(CosineCutoff, self).__init__()
        self.cutoff_lower = cutoff_lower
        self.cutoff_upper = cutoff_upper

    def forward(self, distances: Tensor) -> Tensor:
        if self.cutoff_lower > 0:
            cutoffs = 0.5 * (torch.cos(math.pi * (2 * (distances - self.cutoff_lower) / (self.cutoff_upper - self.cutoff_lower) + 1.0)) + 1.0)
            cutoffs = cutoffs * (distances < self.cutoff_upper)
            cutoffs = cutoffs * (distances > self.cutoff_lower)
            return cutoffs
        else:
            cutoffs = 0.5 * (torch.cos(distances * math.pi / self.cutoff_upper) + 1.0)
            cutoffs = cutoffs * (distances < self.cutoff_upper)
            return cutoffs


INIT_ARGS = {
    'cutoff_lower': 0.0,
    'cutoff_upper': 5.0,
}

ARGS = {
    'distances': torch.tensor([0.5, 1.5, 2.5, 3.5, 4.5]),
}

if __name__ == '__main__':
    module = CosineCutoff(**INIT_ARGS)
    output = module(**ARGS)
    print(output)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 (5,) — shape (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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ExpNormalSmearing Ran
ran on a synthesized input
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("2cdf9152b4141ba7")
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 2, dtype family float, shape (4, 50) 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 nn
from torch import Tensor
import math

class CosineCutoff(nn.Module):

    def __init__(self, cutoff_lower=0.0, cutoff_upper=5.0):
        super(CosineCutoff, self).__init__()
        self.cutoff_lower = cutoff_lower
        self.cutoff_upper = cutoff_upper

    def forward(self, distances: Tensor) -> Tensor:
        if self.cutoff_lower > 0:
            cutoffs = 0.5 * (torch.cos(math.pi * (2 * (distances - self.cutoff_lower) / (self.cutoff_upper - self.cutoff_lower) + 1.0)) + 1.0)
            cutoffs = cutoffs * (distances < self.cutoff_upper)
            cutoffs = cutoffs * (distances > self.cutoff_lower)
            return cutoffs
        else:
            cutoffs = 0.5 * (torch.cos(distances * math.pi / self.cutoff_upper) + 1.0)
            cutoffs = cutoffs * (distances < self.cutoff_upper)
            return cutoffs

class ExpNormalSmearing(nn.Module):

    def __init__(self, cutoff_lower=0.0, cutoff_upper=5.0, num_rbf=50, trainable=True, dtype=torch.float32):
        super(ExpNormalSmearing, self).__init__()
        self.cutoff_lower = cutoff_lower
        self.cutoff_upper = cutoff_upper
        self.num_rbf = num_rbf
        self.trainable = trainable
        self.dtype = dtype
        self.cutoff_fn = CosineCutoff(0, cutoff_upper)
        self.alpha = 5.0 / (cutoff_upper - cutoff_lower)
        means, betas = self._initial_params()
        if trainable:
            self.register_parameter('means', nn.Parameter(means))
            self.register_parameter('betas', nn.Parameter(betas))
        else:
            self.register_buffer('means', means)
            self.register_buffer('betas', betas)

    def _initial_params(self):
        start_value = torch.exp(torch.scalar_tensor(-self.cutoff_upper + self.cutoff_lower, dtype=self.dtype))
        means = torch.linspace(start_value, 1, self.num_rbf, dtype=self.dtype)
        betas = torch.tensor([(2 / self.num_rbf * (1 - start_value)) ** (-2)] * self.num_rbf, dtype=self.dtype)
        return (means, betas)

    def reset_parameters(self):
        means, betas = self._initial_params()
        self.means.data.copy_(means)
        self.betas.data.copy_(betas)

    def forward(self, dist):
        dist = dist.unsqueeze(-1)
        return self.cutoff_fn(dist) * torch.exp(-self.betas * (torch.exp(self.alpha * (-dist + self.cutoff_lower)) - self.means) ** 2)


INIT_ARGS = {
    'cutoff_lower': 0.0,
    'cutoff_upper': 5.0,
    'num_rbf': 50,
    'trainable': True,
    'dtype': torch.float32,
}

ARGS = {
    'dist': torch.tensor([0.5, 1.5, 2.5, 3.5], dtype=torch.float32),
}

if __name__ == '__main__':
    module = ExpNormalSmearing(**INIT_ARGS)
    output = module(**ARGS)
    print(output.shape)
    print(output)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 (4, 50) — shape (4, 50) 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)
_construct_cutoff_graph Ran
ran; our contract draft was wrong, not the code
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("e860ba994add58e3")
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 tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# X: (N, 3) coordinates - N=4 nodes, 3D coordinates
X = torch.randn(4, 3)

# rule_mats: list of (N, N) boolean adjacency matrices
# Create 2 rule matrices for filtering
rule_mat_1 = torch.tensor([
    [True, True, False, True],
    [True, True, True, False],
    [False, True, True, True],
    [True, False, True, True]
])

rule_mat_2 = torch.tensor([
    [True, True, True, False],
    [True, True, False, True],
    [True, False, True, True],
    [False, True, True, True]
])

rule_mats = [rule_mat_1, rule_mat_2]

cutoff_lower = 0.0
cutoff_upper = 5.0

ARGS = {
    "X": X,
    "rule_mats": rule_mats,
    "cutoff_lower": cutoff_lower,
    "cutoff_upper": cutoff_upper
}
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 tuple — a tuple 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
_construct_knn_graph Ran
ran; our contract draft was wrong, not the code
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("e90d48a5bd6a1cdc")
How it ran

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

import torch

torch.manual_seed(0)

# X: (N, 3), coordinates
N = 2
X = torch.randn(N, 3)

# rule_mats: list of (N, N), valid edges after each filtering
rule_mats = [
    torch.ones(N, N, dtype=torch.bool),
    torch.ones(N, N, dtype=torch.bool)
]

# k_neighbors: neighbors of each node
k_neighbors = 1

# reverse: boolean flag
reverse = False

ARGS = {
    "X": X,
    "rule_mats": rule_mats,
    "k_neighbors": k_neighbors,
    "reverse": reverse
}
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 tuple — a tuple 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
construct_edges Ran
ran; our contract draft was wrong, not the code
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("ba5c99566752687d")
How it ran

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

import torch
torch.manual_seed(0)

# Construct minimal valid arguments for construct_edges

# Z: atomic numbers, shape (N,)
Z = torch.tensor([6, 1, 8, 1], dtype=torch.long)  # C, H, O, H

# X: coordinates, shape (N, 3)
X = torch.tensor([
    [0.0, 0.0, 0.0],
    [1.0, 0.0, 0.0],
    [2.0, 0.0, 0.0],
    [3.0, 0.0, 0.0]
], dtype=torch.float32)

# bid: batch ID, shape (N,) - which batch each atom belongs to
bid = torch.tensor([0, 0, 1, 1], dtype=torch.long)

# mask: location mask, shape (N,) - 1 for ligand, 0 for protein
mask = torch.tensor([1, 1, 0, 0], dtype=torch.long)

ARGS = {
    'Z': Z,
    'X': X,
    'bid': bid,
    'mask': mask,
    'cutoff_lower': 0.0,
    'cutoff_upper': 5.0,
    'cutoff_H': 3.5,
    'k_neighbors': 2
}
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 tuple — a tuple 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
hydrogen_filter Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("546148e64568a3c1")
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 1, dtype family float, shape (7,) 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 hydrogen_filter
# The function expects:
# - z: atomic numbers tensor
# - pos: positions tensor
# - edge_index: edge connectivity tensor
# - H_INDEX: hydrogen index (default 0)
# - cutoff: distance cutoff (default 3.5)

# Create atomic numbers (z): 5 atoms, values representing different elements
z = torch.tensor([0, 1, 0, 6, 8], dtype=torch.long)  # 0=H, 1=C, 6=O, 8=N

# Create positions: 5 atoms, 3D coordinates
pos = torch.tensor([
    [0.0, 0.0, 0.0],
    [1.0, 0.0, 0.0],
    [2.0, 0.0, 0.0],
    [0.5, 1.0, 0.0],
    [1.5, 1.0, 0.0]
], dtype=torch.float32)

# Create edge_index: 2 x num_edges, representing source and destination nodes
edge_index = torch.tensor([
    [0, 1, 2, 3, 4, 0, 1],  # source nodes
    [1, 2, 3, 4, 0, 3, 4]   # destination nodes
], dtype=torch.long)

# Define ARGS dictionary
ARGS = {
    'z': z,
    'pos': pos,
    'edge_index': edge_index,
    'H_INDEX': 0,
    'cutoff': 3.5
}
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 1, dtype family float, shape (7,) — shape (7,) 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
EnergyKernel Not yet run
unverified (harvested, no recorded run)
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("2d76a61600ad5252")
How it ran

no invocation recorded.

EquivariantMultiHeadAttention Not yet run
unverified (harvested, no recorded run)
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("70524c3551929d8f")
How it ran

no invocation recorded.

GeomBM Not yet run
unverified (harvested, no recorded run)
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("617e83992fed42d4")
How it ran

no invocation recorded.

GeomFBM Not yet run
unverified (harvested, no recorded run)
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("7c8eafc653969e54")
How it ran

no invocation recorded.

NeighborEmbedding Not yet run
unverified (harvested, no recorded run)
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("1a11d980bff7cb38")
How it ran

no invocation recorded.

StochasticInterpolantMatcher Not yet run
unverified (harvested, no recorded run)
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("70e7804ec3d370c2")
How it ran

no invocation recorded.

TorchMD_VQ_ET Not yet run
unverified (harvested, no recorded run)
yaledeus/unisim/module/model.py
code served (permissive licence) · get_code("f4d2fcde41a618e5")
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, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 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
CosineCutoff
brick of this paper's assembly: helper
1 other paper
1 later
2602.07588 (2026-02)
Unified Biomolecular Trajectory Generation via Pretrained Variational Bridge
ExpNormalSmearing
brick of this paper's assembly: helper
1 other paper
1 later
2602.07588 (2026-02)
Unified Biomolecular Trajectory Generation via Pretrained Variational Bridge

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Molecular Dynamics (MD) simulations are essential for understanding the atomic-level behavior of molecular systems, giving insights into their transitions and interactions. However, classical MD techniques are limited by the trade-off between accuracy and efficiency, while recent deep learningbased improvements have mostly focused on single-domain molecules, lacking transferability to unfamiliar molecular systems. Therefore, we propose Unified Simulator (UniSim), which leverages cross-domain knowledge to enhance the understanding of atomic interactions. First, we employ a multi-head pretraining approach to learn a unified atomic representation model from a large and diverse set of molecular data. Then, based on the stochastic interpolant framework, we learn the state transition patterns over long timesteps from MD trajectories, and introduce a force guidance module for rapidly adapting to different chemical environments. Our experiments demonstrate that UniSim achieves highly competitive performance across small molecules, peptides, and proteins.

For agents

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

get_harvested_code_for_paper("2506.03157")
get_code_for_paper("2506.03157")
have("2506.03157")

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

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

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

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

Connect an agent — have() is free.