SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.23326 · 2024

MassSpecGym: A benchmark for the discovery and identification of molecules

arXiv · PDF · Open in the Atlas

Code that ran

2 of 6 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; 0 failures of our instrument; 4 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/2410.23326.json · badge: /api/ran/2410.23326.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
pluskal-lab/massspecgym canonical (classifier label)
classifier basis: census
2 ran · 4 no recorded run
FunctionStatusWhere it lives
register_atom_feat Ran
ran on a synthesized input
pluskal-lab/massspecgym/massspecgym/feat_utils.py
code served (permissive licence) · get_code("214108930a8afe6a")
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 type. 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

# Clear the registry for clean state
atom_feat_registry = {}

def register_atom_feat(cls):
    """register_atom_feat."""
    atom_feat_registry[cls.name] = {'fn': cls.featurize, 'feat_size': cls.feat_size}
    return cls

# Create a minimal class that satisfies the function's requirements
class MockAtomFeaturizer:
    name = "test_atom_feat"
    feat_size = 128
    
    @staticmethod
    def featurize(atom):
        """Mock featurization function."""
        return [0.5] * 128

ARGS = {
    'cls': MockAtomFeaturizer
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
register_bond_feat Ran
ran on a synthesized input
pluskal-lab/massspecgym/massspecgym/feat_utils.py
code served (permissive licence) · get_code("d43910dd9009ba2c")
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 type. 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

# Create a minimal class that satisfies register_bond_feat's expectations
class BondFeaturizer:
    name = "test_bond_feat"
    feat_size = 16
    
    @staticmethod
    def featurize(bond):
        """Featurize a bond."""
        return torch.randn(16)

# Define ARGS dict with the single parameter 'cls'
ARGS = {
    'cls': BondFeaturizer
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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_mol_feats_sizes Not yet run
unverified (harvested, no recorded run)
pluskal-lab/massspecgym/massspecgym/feat_utils.py
code served (permissive licence) · get_code("777d58c0554795e2")
How it ran

no invocation recorded.

load_massspecgym Not yet run
unverified (harvested, no recorded run)
pluskal-lab/massspecgym/massspecgym/utils.py
code served (permissive licence) · get_code("0072aa71818db60b")
How it ran

no invocation recorded.

load_massspecgym_mols Not yet run
unverified (harvested, no recorded run)
pluskal-lab/massspecgym/massspecgym/utils.py
code served (permissive licence) · get_code("e0cc16154f5452cf")
How it ran

no invocation recorded.

load_unlabeled_mols Not yet run
unverified (harvested, no recorded run)
pluskal-lab/massspecgym/massspecgym/utils.py
code served (permissive licence) · get_code("2e2fbc4866fab30b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 6 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 6 later) and 0 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_mol_feats_sizes 1 other paper
1 later
2606.19624 (2026-06)
MassSpecGym in the Wild: Uncovering and Correcting Evaluation Pitfalls in AI-Driven Molecule Discovery
load_massspecgym 1 other paper
1 later
2606.19624 (2026-06)
MassSpecGym in the Wild: Uncovering and Correcting Evaluation Pitfalls in AI-Driven Molecule Discovery
load_massspecgym_mols 1 other paper
1 later
2606.19624 (2026-06)
MassSpecGym in the Wild: Uncovering and Correcting Evaluation Pitfalls in AI-Driven Molecule Discovery
load_unlabeled_mols 1 other paper
1 later
2606.19624 (2026-06)
MassSpecGym in the Wild: Uncovering and Correcting Evaluation Pitfalls in AI-Driven Molecule Discovery
register_atom_feat 1 other paper
1 later
2606.19624 (2026-06)
MassSpecGym in the Wild: Uncovering and Correcting Evaluation Pitfalls in AI-Driven Molecule Discovery
register_bond_feat 1 other paper
1 later
2606.19624 (2026-06)
MassSpecGym in the Wild: Uncovering and Correcting Evaluation Pitfalls in AI-Driven Molecule Discovery

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

The discovery and identification of molecules in biological and environmental samples is crucial for advancing biomedical and chemical sciences. Tandem mass spectrometry (MS/MS) is the leading technique for high-throughput elucidation of molecular structures. However, decoding a molecular structure from its mass spectrum is exceptionally challenging, even when performed by human experts. As a result, the vast majority of acquired MS/MS spectra remain uninterpreted, thereby limiting our understanding of the underlying (bio)chemical processes. Despite decades of progress in machine learning applications for predicting molecular structures from MS/MS spectra, the development of new methods is severely hindered by the lack of standard datasets and evaluation protocols. To address this problem, we propose MassSpecGym -- the first comprehensive benchmark for the discovery and identification of molecules from MS/MS data. Our benchmark comprises the largest publicly available collection of high-quality labeled MS/MS spectra and defines three MS/MS annotation challenges: de novo molecular structure generation, molecule retrieval, and spectrum simulation. It includes new evaluation metrics and a generalization-demanding data split, therefore standardizing the MS/MS annotation tasks and rendering the problem accessible to the broad machine learning community. MassSpecGym is publicly available at https://github.com/pluskal-lab/MassSpecGym.

For agents

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

get_harvested_code_for_paper("2410.23326")
get_code_for_paper("2410.23326")
have("2410.23326")

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

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

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

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

Connect an agent — have() is free.