SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.19624 · 2026

MassSpecGym in the Wild: Uncovering and Correcting Evaluation Pitfalls in AI-Driven Molecule Discovery

Connor Coley, Runzhong Wang, Soha Hassoun, Josef Sivic, Yinkai Wang, Mrunali Manjrekar, Roman Bushuiev, Tomáš Pluskal, Hongxuan Liu, Magdalena Lederbauer, Ivy Lightheart, Anton Bushuiev, and 3 more

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; 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/2606.19624.json · badge: /api/ran/2606.19624.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 (6 with at least one paper dated earlier, 0 the same month, 0 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 dated earlier
2410.23326 (2024-10)
MassSpecGym: A benchmark for the discovery and identification of molecules
load_massspecgym 1 other paper
1 dated earlier
2410.23326 (2024-10)
MassSpecGym: A benchmark for the discovery and identification of molecules
load_massspecgym_mols 1 other paper
1 dated earlier
2410.23326 (2024-10)
MassSpecGym: A benchmark for the discovery and identification of molecules
load_unlabeled_mols 1 other paper
1 dated earlier
2410.23326 (2024-10)
MassSpecGym: A benchmark for the discovery and identification of molecules
register_atom_feat 1 other paper
1 dated earlier
2410.23326 (2024-10)
MassSpecGym: A benchmark for the discovery and identification of molecules
register_bond_feat 1 other paper
1 dated earlier
2410.23326 (2024-10)
MassSpecGym: A benchmark for the discovery and identification of molecules

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

Reliable benchmarking is critical for developing machine learning models for tandem mass spectrometry (MS/MS) based molecule discovery. Subtle issues in experimental design and model evaluation procedures can degrade the trustworthiness of such benchmarks and lead to erroneous conclusions. We conduct a thorough review of model evaluation issues in the recent MS/MS machine learning literature, using the standard MassSpecGym benchmark suite as a case study to illustrate the impact of these issues. We find evaluation issues in at least 17 of 26 papers reporting MassSpecGym benchmark results in the first year of its adoption. We isolate three classes of failures: (i) data leakage, (ii) shortcut learning, and (iii) implementation bugs and metric divergence. Through extensive experimentation and code replication, we quantify the impact of these issues and show how they corrupt the evaluation standards MassSpecGym was designed to enforce. We distill our findings into recommendations generalizable to MS/MS challenges, benchmarks, and custom evaluation setups. We also release MassSpecGym v1.5, an implementation of our recommendations in the MassSpecGym benchmarking suite which addresses the failure modes identified in this audit. MassSpecGym v1.5 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("2606.19624")
get_code_for_paper("2606.19624")
have("2606.19624")

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

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

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

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

Connect an agent — have() is free.