SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.15123 · NeurIPS · 2023

Uncovering Neural Scaling Laws in Molecular Representation Learning

Qiang Liu, Liang Wang, Yanqiao Zhu, Shu Wu, Jieyu Zhang, Yuanqi Du, Dingshuo Chen, Zhixun Li

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 4 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/2309.15123.json · badge: /api/ran/2309.15123.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
data-reindeer/nsl_mrl canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
Data-reindeer/MolScaling canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_degree Ran
ran, honoured the contract we drafted
data-reindeer/nsl_mrl/main_fingerprint.py
code served (permissive licence) · get_code("2e06c38c082ca1f0")
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 int, shape (2,) 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_geometric.data import Data

torch.manual_seed(0)

# Create a small dataset with graph Data objects
# Each Data object needs edge_index and num_nodes attributes
data1 = Data(
    edge_index=torch.tensor([[0, 1, 2], [1, 2, 0]], dtype=torch.long),
    num_nodes=3
)

data2 = Data(
    edge_index=torch.tensor([[0, 1], [1, 0]], dtype=torch.long),
    num_nodes=2
)

train_dataset = [data1, data2]

ARGS = {
    "train_dataset": train_dataset
}
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 Tensor, ndim 1, dtype family int, shape (2,) — shape (2,) 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
compute_mean_mad Ran
ran, honoured the contract we drafted
Data-reindeer/MolScaling/main_3d.py
code served (permissive licence) · get_code("3ba442e626bbaedc")
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, ndim 1, 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)

# Create a small tensor with distinct dimensions for testing
values = torch.randn(2, 4)

ARGS = {
    "values": values
}
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, ndim 1, 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
get_num_task Ran
ran, honoured the contract we drafted
Data-reindeer/MolScaling/main_graph.py
code served (permissive licence) · get_code("5bfe1e7877fd5d4c")
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 int, ndim 0, dtype family int, 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)

# The function get_num_task takes a single parameter 'dataset' which is a string
# It checks the dataset name against several valid options and returns the number of tasks
# We need to provide a valid dataset string

ARGS = {
    'dataset': 'tox21'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
graph_data_obj_to_nx_simple Ran
ran, honoured the contract we drafted
data-reindeer/nsl_mrl/datasets/molnet.py
code served (permissive licence) · get_code("2c709535eb367b46")
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 torch.nn as nn
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 and chirality_tag_idx
# - data.edge_index: tensor of shape [2, num_edges] with edge connectivity
# - data.edge_attr: tensor of shape [num_edges, 2] with bond_type_idx and bond_dir_idx

num_atoms = 4
num_edges = 6  # Will iterate by steps of 2, so 3 actual edges

# Create atom features: [num_atoms, 2]
x = torch.tensor([
    [6, 0],      # atom 0: carbon, no chirality
    [7, 1],      # atom 1: nitrogen, chirality 1
    [8, 0],      # atom 2: oxygen, no chirality
    [6, 1],      # atom 3: carbon, chirality 1
], dtype=torch.float32)

# Create edge index: [2, num_edges]
# Edges are stored as pairs (undirected, but stored twice in PyG convention)
edge_index = torch.tensor([
    [0, 1, 1, 2, 2, 3],  # source nodes
    [1, 0, 2, 1, 3, 2],  # target nodes
], dtype=torch.long)

# Create edge attributes: [num_edges, 2]
edge_attr = torch.tensor([
    [1, 0],  # edge 0: bond type 1, direction 0
    [1, 0],  # edge 1: bond type 1, direction 0
    [2, 1],  # edge 2: bond type 2, direction 1
    [2, 1],  # edge 3: bond type 2, direction 1
    [1, 0],  # edge 4: bond type 1, direction 0
    [1, 0],  # edge 5: bond type 1, direction 0
], dtype=torch.float32)

data = Data(x=x, edge_index=edge_index, edge_attr=edge_attr)

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, 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
recons_loss Ran
ran, honoured the contract we drafted
data-reindeer/nsl_mrl/main_pretrain.py
code served (permissive licence) · get_code("e288dc26234c600e")
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 torch.nn as nn
from functools import partial
import torch.nn.functional as F

torch.manual_seed(0)

# Build dec_atom model - a simple decoder that takes node_repr, edge_index, edge_attr, mask_idx
class DecAtom(nn.Module):
    def __init__(self, input_dim=4, output_dim=4):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, node_repr, edge_index, edge_attr, mask_idx):
        # Returns predictions for all nodes
        return self.linear(node_repr)

# Build encoder model - takes batch and returns node representations
class Encoder(nn.Module):
    def __init__(self, output_dim=4):
        super().__init__()
        self.linear = nn.Linear(4, output_dim)
    
    def forward(self, batch):
        # batch.x shape: (num_nodes, 4) -> (num_nodes, 4)
        return self.linear(batch.x)

# Build batch object with required attributes
class Batch:
    def __init__(self):
        # num_nodes = 2 in this batch
        self.x = torch.randn(2, 4)  # node features
        self.edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long)  # edges
        self.edge_attr = torch.randn(2, 3)  # edge attributes (3-dim distinct from node 4-dim)
        self.masked_atom_indices = torch.tensor([0, 1], dtype=torch.long)  # which atoms are masked
        self.node_attr_label = torch.randn(2, 4)  # labels for masked atoms

# Instantiate models and batch
batch = Batch()
model = Encoder(output_dim=4)
dec_atom = DecAtom(input_dim=4, output_dim=4)

ARGS = {
    "batch": batch,
    "model": model,
    "dec_atom": dec_atom
}
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 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
sce_loss Ran
ran; our contract draft was wrong, not the code
data-reindeer/nsl_mrl/main_pretrain.py
pointer only (licence: MIT); the stored copy get_code serves, from LiuChuang0059/StructMAE, is pointer only (licence: NONE) · get_code("80efc9c262d235a6")
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 LiuChuang0059/StructMAE, 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.

eval_general Not yet run
unverified (harvested, no recorded run)
data-reindeer/nsl_mrl/main_3d.py
code served (permissive licence) · get_code("78b7cc032dfdd5a5")
How it ran

no invocation recorded.

train_general Not yet run
unverified (harvested, no recorded run)
data-reindeer/nsl_mrl/main_3d.py
code served (permissive licence) · get_code("57bf336a58c05d26")
How it ran

no invocation recorded.

train_general Not yet run
unverified (harvested, no recorded run)
data-reindeer/nsl_mrl/main_fingerprint.py
code served (permissive licence) · get_code("fe91e3e109287aad")
How it ran

no invocation recorded.

train_general Not yet run
unverified (harvested, no recorded run)
data-reindeer/nsl_mrl/main_graph.py
code served (permissive licence) · get_code("0a0a5a030821f4ca")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 2 later) and 8 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
graph_data_obj_to_nx_simple 9 other papers
3 dated earlier, 2 the same month, 4 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
2306.07812 (2023-06)
Automated 3D Pre-Training for Molecular Property Prediction
and 6 more not named here
sce_loss 1 other paper
1 later
2404.15806 (2024-04)
Where to Mask: Structure-Guided Masking for Graph Masked Autoencoders

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 Representation Learning (MRL) has emerged as a powerful tool for drug and materials discovery in a variety of tasks such as virtual screening and inverse design. While there has been a surge of interest in advancing modelcentric techniques, the influence of both data quantity and quality on molecular representations is not yet clearly understood within this field. In this paper, we delve into the neural scaling behaviors of MRL from a data-centric viewpoint, examining four key dimensions: (1) data modalities, (2) dataset splitting, (3) the role of pre-training, and (4) model capacity. Our empirical studies confirm a consistent power-law relationship between data volume and MRL performance across these dimensions. Additionally, through detailed analysis, we identify potential avenues for improving learning efficiency. To challenge these scaling laws, we adapt seven popular data pruning strategies to molecular data and benchmark their performance. Our findings underline the importance of data-centric MRL and highlight possible directions for future research.

For agents

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

get_harvested_code_for_paper("2309.15123")
get_code_for_paper("2309.15123")
have("2309.15123")

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

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

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

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

Connect an agent — have() is free.