SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.17492 · 2024

Unraveling Molecular Structure: A Multimodal Spectroscopic Dataset for Chemistry

arXiv · PDF · Open in the Atlas

Code that ran

6 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, 1 violated it and 0 have no contract verdict; 5 failures 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/2407.17492.json · badge: /api/ran/2407.17492.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
rxn4chemistry/multimodal-spectroscopic-dataset canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
create_input Ran
ran; our contract draft was wrong, not the code
rxn4chemistry/multimodal-spectroscopic-dataset/benchmark/start_training.py
code served (permissive licence) · get_code("1a275c61ef7fde96")
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 temporary directories for the function to use
temp_base = tempfile.mkdtemp()
template_dir = os.path.join(temp_base, 'templates')
output_dir = os.path.join(temp_base, 'output')
data_dir = os.path.join(temp_base, 'data')
log_dir = os.path.join(temp_base, 'logs')

os.makedirs(template_dir, exist_ok=True)
os.makedirs(output_dir, exist_ok=True)
os.makedirs(data_dir, exist_ok=True)
os.makedirs(log_dir, exist_ok=True)

# Create a simple template file with placeholders
template_content = """data_path: {0}
src_vocab_path: {1}
tgt_vocab_path: {2}
src_train_path: {3}
tgt_train_path: {4}
src_val_path: {5}
tgt_val_path: {6}
log_path: {7}
save_model_path: {8}
seed: {9}
"""

template_path = os.path.join(template_dir, 'template.yaml')
with open(template_path, 'w') as f:
    f.write(template_content)

# Create dummy training and validation files
src_train_path = os.path.join(data_dir, 'train.src')
tgt_train_path = os.path.join(data_dir, 'train.tgt')
src_val_path = os.path.join(data_dir, 'val.src')
tgt_val_path = os.path.join(data_dir, 'val.tgt')

with open(src_train_path, 'w') as f:
    f.write('hello world\n')
with open(tgt_train_path, 'w') as f:
    f.write('bonjour monde\n')
with open(src_val_path, 'w') as f:
    f.write('goodbye\n')
with open(tgt_val_path, 'w') as f:
    f.write('au revoir\n')

ARGS = {
    'template_path': template_path,
    'output_path': output_dir,
    'data_path': data_dir,
    'src_train_path': src_train_path,
    'tgt_train_path': tgt_train_path,
    'src_val_path': src_val_path,
    'tgt_val_path': tgt_val_path,
    'log_path': log_dir,
    'seed': 42,
}
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
make_msms_spectrum Ran
ran, violated the contract we drafted
rxn4chemistry/multimodal-spectroscopic-dataset/benchmark/run_xgb_baseline.py
code served (permissive licence) · get_code("07873667d5722a48")
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 ndarray, ndim 1, dtype family float, shape (10000,) 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

# Create a valid spectrum argument
# The function expects an iterable of peaks, where each peak is [m/z ratio, intensity]
spectrum = [
    [100.5, 0.8],      # m/z=100.5, intensity=0.8 -> index 1005
    [250.3, 0.5],      # m/z=250.3, intensity=0.5 -> index 2503
    [500.0, 1.0],      # m/z=500.0, intensity=1.0 -> index 5000
    [999.9, 0.3],      # m/z=999.9, intensity=0.3 -> index 9999
]

ARGS = {
    "spectrum": spectrum
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (10000,) — shape (10000,) 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
process_hnmr Ran
ran; our contract draft was wrong, not the code
rxn4chemistry/multimodal-spectroscopic-dataset/benchmark/generate_input.py
code served (permissive licence) · get_code("3969b8972dadf38c")
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

# Construct valid arguments for process_hnmr function
# The function expects a list of dictionaries with specific keys

ARGS = {
    'multiplets': [
        {
            'rangeMax': 7.5,
            'rangeMin': 7.2,
            'category': 'd',
            'nH': 2,
            'j_values': '8.5_8.3'
        },
        {
            'rangeMax': 3.8,
            'rangeMin': 3.6,
            'category': 'q',
            'nH': 1,
            'j_values': '7.2'
        },
        {
            'rangeMax': 1.5,
            'rangeMin': 1.2,
            'category': 't',
            'nH': 3,
            'j_values': 'None'
        }
    ]
}
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
split_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rxn4chemistry/multimodal-spectroscopic-dataset/benchmark/generate_input.py
code served (permissive licence) · get_code("bd66f7e740f0068d")
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. 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 pandas as pd
import numpy as np

# Create a small sample DataFrame with some rows and columns
np.random.seed(0)
data = pd.DataFrame({
    'feature1': np.random.randn(100),
    'feature2': np.random.randn(100),
    'feature3': np.random.randn(100),
    'target': np.random.randint(0, 2, 100)
})

ARGS = {
    'data': data,
    'seed': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
tokenize_formula Ran
ran; our contract draft was wrong, not the code
rxn4chemistry/multimodal-spectroscopic-dataset/benchmark/generate_input.py
code served (permissive licence) · get_code("797b436a3814b956")
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 regex as re

def tokenize_formula(formula: str) -> list:
    return ' '.join(re.findall('[A-Z][a-z]?|\\d+|.', formula)) + ' '

ARGS = {
    'formula': 'H2O'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
regex — 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
train_model Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rxn4chemistry/multimodal-spectroscopic-dataset/benchmark/run_cnn_jung_baseline.py
code served (permissive licence) · get_code("10c9e9f58f6f8ea7")
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 ndarray, ndim 2, dtype family int, shape (2, 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 numpy as np

np.random.seed(0)

# The function expects:
# - X_train: array that can be reshaped to (batch, 600, 1)
# - y_train: array with shape (batch, num_fgs) for weighted loss calculation
# - X_test: array that can be reshaped to (batch, 600, 1)
# - num_fgs: number of output classes (int)
# - aug: appears unused in function body
# - num: appears unused in function body
# - weighted: flag for weighted loss (0 or 1)

batch_size = 2
num_fgs = 4
seq_length = 600

# X_train needs to be reshapeable to (batch, 600, 1)
X_train = np.random.randn(batch_size, seq_length).astype(np.float32)

# y_train needs to be (batch, num_fgs) with binary labels for weighted loss calculation
y_train = np.random.randint(0, 2, size=(batch_size, num_fgs)).astype(np.float32)

# X_test needs to be reshapeable to (batch, 600, 1)
X_test = np.random.randn(batch_size, seq_length).astype(np.float32)

ARGS = {
    'X_train': X_train,
    'y_train': y_train,
    'X_test': X_test,
    'num_fgs': num_fgs,
    'aug': None,
    'num': 0,
    'weighted': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (2, 4) — shape (2, 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 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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

Spectroscopic techniques are essential tools for determining the structure of molecules. Different spectroscopic techniques, such as Nuclear magnetic resonance (NMR), Infrared spectroscopy, and Mass Spectrometry, provide insight into the molecular structure, including the presence or absence of functional groups. Chemists leverage the complementary nature of the different methods to their advantage. However, the lack of a comprehensive multimodal dataset, containing spectra from a variety of spectroscopic techniques, has limited machine-learning approaches mostly to single-modality tasks for predicting molecular structures from spectra. Here we introduce a dataset comprising simulated $^1$H-NMR, $^{13}$C-NMR, HSQC-NMR, Infrared, and Mass spectra (positive and negative ion modes) for 790k molecules extracted from chemical reactions in patent data. This dataset enables the development of foundation models for integrating information from multiple spectroscopic modalities, emulating the approach employed by human experts. Additionally, we provide benchmarks for evaluating single-modality tasks such as structure elucidation, predicting the spectra for a target molecule, and functional group predictions. This dataset has the potential automate structure elucidation, streamlining the molecular discovery pipeline from synthesis to structure determination. The dataset and code for the benchmarks can be found at https://rxn4chemistry.github.io/multimodal-spectroscopic-dataset.

For agents

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

get_harvested_code_for_paper("2407.17492")
get_code_for_paper("2407.17492")
have("2407.17492")

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

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

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

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

Connect an agent — have() is free.