SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.07812 · 2023

Automated 3D Pre-Training for Molecular Property Prediction

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 2 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 3 failures of our instrument; 6 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.07812.json · badge: /api/ran/2306.07812.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
lars-research/3d-pgt canonical (classifier label)
classifier basis: census
7 ran · 6 no recorded run
FunctionStatusWhere it lives
bond_to_feature_vector Ran
ran on a synthesized input
lars-research/3d-pgt/local_feature.py
code served (permissive licence) · get_code("d043f3bfddd0d5a1")
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 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.

from unittest.mock import MagicMock

# Create a mock bond object with the necessary methods
mock_bond = MagicMock()
mock_bond.GetBondType.return_value = MagicMock()
mock_bond.GetBondType.return_value.__str__ = lambda self: 'SINGLE'
mock_bond.GetStereo.return_value = 'STEREONONE'
mock_bond.GetIsConjugated.return_value = False

ARGS = {
    'bond': mock_bond
}
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 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
get_bond_feature_name Ran
ran on a synthesized input
lars-research/3d-pgt/datasets/molecule_contextual_datasets_utils.py
code served (permissive licence) · get_code("8b1c21372e10eb03")
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 numpy as np

class MockBond:
    """Mock bond object that mimics RDKit bond interface"""
    def __init__(self, bond_type, bond_dir):
        self._bond_type = bond_type
        self._bond_dir = bond_dir
    
    def GetBondType(self):
        return self._bond_type
    
    def GetBondDir(self):
        return self._bond_dir

# Create a mock bond instance with realistic values
bond = MockBond(
    bond_type="SINGLE",
    bond_dir="NONE"
)

ARGS = {
    'bond': bond
}
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 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_final_pretrained_ckpt Ran
ran; our contract draft was wrong, not the code
lars-research/3d-pgt/graphgps/finetuning.py
code served (permissive licence) · get_code("1bb331bf70a78136")
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
import tempfile
import shutil

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

# Create some checkpoint files with epoch numbers
checkpoint_files = ['1.ckpt', '2.ckpt', '5.ckpt', '3.ckpt']
for ckpt_file in checkpoint_files:
    filepath = os.path.join(temp_dir, ckpt_file)
    with open(filepath, 'w') as f:
        f.write('dummy checkpoint data')

# Define arguments for the function
ARGS = {
    'ckpt_dir': temp_dir
}
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
graph_data_obj_to_nx_simple Ran
ran, honoured the contract we drafted
lars-research/3d-pgt/datasets/molecule_datasets.py
code served (permissive licence) · get_code("4a563e1e2a6aa4b8")
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 Graph. 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_geometric.data import Data

torch.manual_seed(0)

# Create a minimal PyTorch Geometric Data object
# The function expects:
# - data.x: tensor of shape (num_atoms, 2) with [atomic_num_idx, chirality_tag_idx]
# - data.edge_index: tensor of shape (2, num_bonds) with edge indices
# - data.edge_attr: tensor of shape (num_bonds, 2) with [bond_type_idx, bond_dir_idx]

num_atoms = 3
num_bonds = 4  # 2 undirected edges = 4 directed edges (both directions)

# Node features: (num_atoms, 2) - atomic number and chirality
x = torch.tensor([
    [6.0, 0.0],  # atom 0: carbon, no chirality
    [7.0, 1.0],  # atom 1: nitrogen, chirality 1
    [8.0, 0.0],  # atom 2: oxygen, no chirality
], dtype=torch.float32)

# Edge indices: (2, num_bonds) - pairs of atom indices
# Create edges: 0-1 (both directions), 1-2 (both directions)
edge_index = torch.tensor([
    [0, 1, 1, 2],
    [1, 0, 2, 1],
], dtype=torch.long)

# Edge attributes: (num_bonds, 2) - bond type and bond direction
edge_attr = torch.tensor([
    [1.0, 0.0],  # bond 0-1
    [1.0, 0.0],  # bond 1-0
    [2.0, 1.0],  # bond 1-2
    [2.0, 1.0],  # bond 2-1
], dtype=torch.float32)

# Create PyTorch Geometric Data object
data_obj = Data(x=x, edge_index=edge_index, edge_attr=edge_attr)

ARGS = {
    "data": data_obj
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Graph — a Graph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Graph output the recorded ndim 1 and dtype family int 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
init_model_from_pretrained Ran
ran; our contract draft was wrong, not the code
lars-research/3d-pgt/graphgps/finetuning.py
code served (permissive licence) · get_code("9e4db46ba20af98e")
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 SimpleModel. 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
import os
import os.path as osp
import tempfile
from torch_geometric.graphgym.checkpoint import MODEL_STATE

torch.manual_seed(0)

# Create a temporary directory structure for pretrained checkpoints
temp_dir = tempfile.mkdtemp()
ckpt_dir = osp.join(temp_dir, '0', 'ckpt')
os.makedirs(ckpt_dir, exist_ok=True)

# Create a simple model class
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.main_layer = nn.Linear(4, 3)
        self.post_mp = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.main_layer(x)
        x = self.post_mp(x)
        return x

# Create a pretrained model and save its state
pretrained_model = SimpleModel()
pretrained_state = pretrained_model.state_dict()

# Save checkpoint with epoch number in filename
ckpt_data = {MODEL_STATE: pretrained_state}
ckpt_path = osp.join(ckpt_dir, '5.ckpt')
torch.save(ckpt_data, ckpt_path)

# Create a fresh model to load into
model = SimpleModel()

# Define the arguments
ARGS = {
    'model': model,
    'pretrained_dir': temp_dir,
    'freeze_main': False,
    'reset_prediction_head': True,
}
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
load_SMILES_list Ran
ran; our contract draft was wrong, not the code
lars-research/3d-pgt/GEOM_dataset_preparation.py
pointer only (licence: MIT); the stored copy get_code serves, from TianyuFan0504/WAS, is pointer only (licence: NONE) · get_code("e5d413a517864727")
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 TianyuFan0504/WAS, 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.

safe_index Ran
ran, honoured the contract we drafted
lars-research/3d-pgt/local_feature.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.

atom_to_feature_vector Not yet run
unverified (harvested, no recorded run)
lars-research/3d-pgt/local_feature.py
code served (permissive licence) · get_code("05c29fe3afb7b453")
How it ran

no invocation recorded.

atom_to_vocab Not yet run
unverified (harvested, no recorded run)
lars-research/3d-pgt/datasets/molecule_contextual_datasets_utils.py
code served (permissive licence) · get_code("3458fb8ee185727f")
How it ran

no invocation recorded.

bond_to_vocab Not yet run
unverified (harvested, no recorded run)
lars-research/3d-pgt/datasets/molecule_contextual_datasets_utils.py
code served (permissive licence) · get_code("d574e555f2c73b1e")
How it ran

no invocation recorded.

load_molecule Not yet run
unverified (harvested, no recorded run)
lars-research/3d-pgt/datasets/molecule_contextual_datasets.py
code served (permissive licence) · get_code("5f0dec6cfde34db0")
How it ran

no invocation recorded.

load_pretrained_model_cfg Not yet run
unverified (harvested, no recorded run)
lars-research/3d-pgt/graphgps/finetuning.py
pointer only (licence: MIT); the stored copy get_code serves, from ETH-DISCO/Benchmarking-PEs, is pointer only (licence: NONE) · get_code("91c1f5bb90bbe0f3")
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 ETH-DISCO/Benchmarking-PEs, 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. No invocation recorded.

search_graph Not yet run
unverified (harvested, no recorded run)
lars-research/3d-pgt/datasets/datasets_GPT.py
code served (permissive licence) · get_code("5a8726c5cdc38dd2")
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, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 6 later) and 7 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
get_final_pretrained_ckpt 27 other papers
5 dated earlier, 22 later
2302.04181 (2023-02)
Attending to Graph Transformers
2302.08647 (2023-02)
Multiresolution Graph Transformers and Wavelet Positional Encoding for Learning Hierarchical Structures
2305.08018 (2023-05)
DRew: Dynamically Rewired Message Passing with Delay
and 24 more not named here
graph_data_obj_to_nx_simple 9 other papers
2 dated earlier, 7 later
1905.12265 (2019-05)
Strategies for Pre-training Graph Neural Networks
2302.04451 (2023-02)
Generalization in Graph Neural Networks: Improved PAC-Bayesian Bounds on Graph Diffusion
2309.01788 (2023-09)
Hierarchical Grammar-Induced Geometry for Data-Efficient Molecular Property Prediction
and 6 more not named here
init_model_from_pretrained 6 other papers
2 dated earlier, 4 later
2305.12322 (2023-05)
Learning Large Graph Property Prediction via Graph Segment Training
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2406.05815 (2024-06)
What Can We Learn from State Space Models for Machine Learning on Graphs?
and 3 more not named here
load_pretrained_model_cfg 6 other papers
1 dated earlier, 5 later
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2310.19285 (2023-10)
Facilitating Graph Neural Networks with Random Walk on Simplicial Complexes
2402.02518 (2024-02)
Unifying Generation and Prediction on Graphs with Latent Graph Diffusion
and 3 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.16819 (2023-06)
Graph Denoising Diffusion for Inverse Protein Folding
2310.03274 (2023-10)
Fragment-based Pretraining and Finetuning on Molecular Graphs
load_SMILES_list 1 other paper
1 later
2403.01400 (2024-03)
Decoupling Weighing and Selecting for Integrating Multiple Graph Pre-training Tasks

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

Molecular property prediction is an important problem in drug discovery and materials science. As geometric structures have been demonstrated necessary for molecular property prediction, 3D information has been combined with various graph learning methods to boost prediction performance. However, obtaining the geometric structure of molecules is not feasible in many real-world applications due to the high computational cost. In this work, we propose a novel 3D pre-training framework (dubbed 3D PGT), which pre-trains a model on 3D molecular graphs, and then fine-tunes it on molecular graphs without 3D structures. Based on fact that bond length, bond angle, and dihedral angle are three basic geometric descriptors corresponding to a complete molecular 3D conformer, we first develop a multi-task generative pre-train framework based on these three attributes. Next, to automatically fuse these three generative tasks, we design a surrogate metric using the \textit{total energy} to search for weight distribution of the three pretext task since total energy corresponding to the quality of 3D conformer.Extensive experiments on 2D molecular graphs are conducted to demonstrate the accuracy, efficiency and generalization ability of the proposed 3D PGT compared to various pre-training baselines.

For agents

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

get_harvested_code_for_paper("2306.07812")
get_code_for_paper("2306.07812")
have("2306.07812")

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

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

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

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

Connect an agent — have() is free.