SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.18407 · 2023

A Group Symmetric Stochastic Differential Equation Model for Molecule Multi-modal Pretraining

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 1 failure of our instrument; 0 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/2305.18407.json · badge: /api/ran/2305.18407.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
chao1224/moleculesde canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
coord2basis Ran
ran on a synthesized input
chao1224/moleculesde/Geom3D/models/MoleculeSDE/SDE_model_2D_to_3D.py
code served (permissive licence) · get_code("00c143671fa4b794")
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, ndim 3, 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 torch

torch.manual_seed(0)

# Analyze the function:
# - pos: indexed with pos[row] and pos[col], operated on with torch operations
#   Result of pos[row] - pos[col] is used with torch.sum(..., 1), suggesting shape (N, 3) or (N, D)
# - row: used as index into pos
# - col: used as index into pos
# 
# The function performs:
# - coord_diff = pos[row] - pos[col]  -> (batch, 3)
# - radial = torch.sum(coord_diff ** 2, 1).unsqueeze(1)  -> (batch, 1)
# - coord_cross = torch.cross(pos[row], pos[col])  -> (batch, 3)
# - torch.cross requires 3D vectors, so pos must be (..., 3)
#
# Let's construct:
# pos: (N, 3) tensor of positions
# row, col: index tensors or lists for gathering

# Create a position tensor with shape (4, 3) - 4 positions in 3D space
pos = torch.randn(4, 3)

# Create index tensors for row and col
# These should be indices into the first dimension
# Let's use batch size 2 for small example
row = torch.tensor([0, 1])  # indices
col = torch.tensor([2, 3])  # indices

ARGS = {
    "pos": pos,
    "row": row,
    "col": col,
}
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, ndim 3, dtype family float — a tuple 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
gen_noise Ran
ran on a synthesized input
chao1224/moleculesde/Geom3D/models/MoleculeSDE/SDE_model_3D_to_2D_node_adj_dense.py
code served (permissive licence) · get_code("51ea1fe21485dc0f")
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, 3, 4, 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

torch.manual_seed(0)

# Small tensors for testing
B = 2  # batch size
N = 4  # number of nodes
C = 3  # number of channels

# Create x tensor: B x N x N (adjacency matrix format)
# Testing with 4D case: B x C x N x N
x = torch.randn(B, C, N, N)

# Create flags tensor: B x N
# flags indicate which nodes are valid (1) or should be masked (0)
flags = torch.ones(B, N)
flags[0, 3] = 0  # mask last node in first batch

# sym parameter: boolean for symmetric noise generation
sym = True

ARGS = {
    "x": x,
    "flags": flags,
    "sym": sym,
}
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, 3, 4, 4) — shape (2, 3, 4, 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
get_beta_schedule Ran
ran on a synthesized input
chao1224/moleculesde/Geom3D/models/MoleculeSDE/SDE_model_2D_to_3D.py
code served (permissive licence) · get_code("37a790bde0e8a045")
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 (1000,) 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
import torch

torch.manual_seed(0)

ARGS = {
    'beta_schedule': 'linear',
    'beta_min': 0.0001,
    'beta_max': 0.02,
    'num_diffusion_timesteps': 1000,
}
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 1, dtype family float, shape (1000,) — shape (1000,) 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_perturb_distance Ran
ran on a synthesized input
chao1224/moleculesde/Geom3D/models/MoleculeSDE/SDE_model_2D_to_3D.py
code served (permissive licence) · get_code("cc6645c3b8380b12")
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, 1) 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)

# p_pos: tensor of positions with shape (num_nodes, num_features)
# The function accesses pos[row] and pos[col], so it needs to be indexable
p_pos = torch.randn(2, 4)

# edge_index: tensor with shape (2, num_edges)
# row, col = edge_index unpacks the two rows
# Then pos[row] and pos[col] are used, so row and col must be valid indices
edge_index = torch.tensor([[0, 1, 0], [1, 0, 1]], dtype=torch.long)

ARGS = {
    "p_pos": p_pos,
    "edge_index": edge_index,
}
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, 1) — shape (3, 1) 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
mask_adjs Ran
ran; our contract draft was wrong, not the code
chao1224/moleculesde/Geom3D/models/MoleculeSDE/SDE_model_3D_to_2D_node_adj_dense.py
pointer only (licence: MIT); the stored copy get_code serves, from harryjo97/gdss, is pointer only (licence: NONE) · get_code("48beee2482c52c79")
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 harryjo97/gdss, 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.

mask_x Ran
ran, honoured the contract we drafted
chao1224/moleculesde/Geom3D/models/MoleculeSDE/invariant_scorenetwork_dense.py
pointer only (licence: MIT); the stored copy get_code serves, from harryjo97/gdss, is pointer only (licence: NONE) · get_code("9e2571123018843f")
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 harryjo97/gdss, 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.

node_flags Ran
ran on a synthesized input
chao1224/moleculesde/Geom3D/models/MoleculeSDE/SDE_model_3D_to_2D_node_adj_dense.py
code served (permissive licence) · get_code("4b15f760872cd0a2")
How it ran

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

import torch

torch.manual_seed(0)

# Create a small adjacency matrix
# The function expects adj to be a tensor where:
# - It computes abs(adj).sum(-1) to sum over last dimension
# - It can be 2D or 3D (if 3D, takes [:, 0, :])
# Let's create a 3D tensor to test both code paths: (batch=2, features=3, nodes=4)
adj = torch.randn(2, 3, 4)

eps = 1e-05

ARGS = {
    "adj": adj,
    "eps": eps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pow_tensor Ran
ran on a synthesized input
chao1224/moleculesde/Geom3D/models/MoleculeSDE/invariant_scorenetwork_dense.py
code served (permissive licence) · get_code("aea355de2a51c07e")
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, 3, 4, 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

torch.manual_seed(0)

# x is used with:
# - x.clone()
# - x.unsqueeze(1)
# - torch.bmm(x_, x) where x_ and x are both 3D tensors
# So x should be a 3D tensor suitable for batch matrix multiplication
# Shape: (batch_size, matrix_rows, matrix_cols)
# Using (2, 4, 4) for a batch of 2 square 4x4 matrices

x = torch.randn(2, 4, 4)

# cnum is the number of powers to compute
# Should be a positive integer
cnum = 3

ARGS = {
    "x": x,
    "cnum": cnum,
}
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, 3, 4, 4) — shape (2, 3, 4, 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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 6 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
mask_adjs 3 other papers
2 dated earlier, 1 later · 2 only as an assembly brick
2202.02514 (2022-02)
Score-based Generative Modeling of Graphs via the System of Stochastic Differential Equations
2303.10108 (2023-03)
Data-Centric Learning from Unlabeled Graphs with Diffusion Model
2403.16883 (2024-03)
GLAD: Improving Latent Graph Generative Modeling with Simple Quantization
mask_x 3 other papers
2 dated earlier, 1 later · 2 only as an assembly brick
2202.02514 (2022-02)
Score-based Generative Modeling of Graphs via the System of Stochastic Differential Equations
2303.10108 (2023-03)
Data-Centric Learning from Unlabeled Graphs with Diffusion Model
2403.16883 (2024-03)
GLAD: Improving Latent Graph Generative Modeling with Simple Quantization

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

Molecule pretraining has quickly become the go-to schema to boost the performance of AI-based drug discovery. Naturally, molecules can be represented as 2D topological graphs or 3D geometric point clouds. Although most existing pertaining methods focus on merely the single modality, recent research has shown that maximizing the mutual information (MI) between such two modalities enhances the molecule representation ability. Meanwhile, existing molecule multi-modal pretraining approaches approximate MI based on the representation space encoded from the topology and geometry, thus resulting in the loss of critical structural information of molecules. To address this issue, we propose MoleculeSDE. MoleculeSDE leverages group symmetric (e.g., SE(3)-equivariant and reflection-antisymmetric) stochastic differential equation models to generate the 3D geometries from 2D topologies, and vice versa, directly in the input space. It not only obtains tighter MI bound but also enables prosperous downstream tasks than the previous work. By comparing with 17 pretraining baselines, we empirically verify that MoleculeSDE can learn an expressive representation with state-of-the-art performance on 26 out of 32 downstream tasks.

For agents

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

get_harvested_code_for_paper("2305.18407")
get_code_for_paper("2305.18407")
have("2305.18407")

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

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

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

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

Connect an agent — have() is free.