MADGEN: Mass-Spec attends to De Novo Molecular generation

Yinkai Wang, Xiaohui Chen, Li-Ping Liu, Soha Hassoun
1/1/2025

No official code found. Best implementation: HassounLab/MADGEN (20 stars, MIT, last commit 2025-09-23).

Abstract

The annotation (assigning structural chemical identities) of MS/MS spectra remains a significant challenge due to the enormous molecular diversity in biological samples and the limited scope of reference databases. Currently, the vast majority of spectral measurements remain in the"dark chemical space"without structural annotations. To improve annotation, we propose MADGEN (Mass-spec Attends to De Novo Molecular GENeration), a scaffold-based method for de novo molecular structure generation guided by mass spectrometry data. MADGEN operates in two stages: scaffold retrieval and spectra-conditioned molecular generation starting with the scaffold. In the first stage, given an MS/MS spectrum, we formulate scaffold retrieval as a ranking problem and employ contrastive learning to align mass spectra with candidate molecular scaffolds. In the second stage, starting from the retrieved scaffold, we employ the MS/MS spectrum to guide an attention-based generative model to generate the final molecule. Our approach constrains the molecular generation search space, reducing its complexity and improving generation accuracy. We evaluate MADGEN on three datasets (NIST23, CANOPUS, and MassSpecGym) and evaluate MADGEN's performance with a predictive scaffold retriever and with an oracle retriever. We demonstrate the effectiveness of using attention to integrate spectral information throughout the generation process to achieve strong results with the oracle retriever.

View on arXivView PDF

Code Implementations(1)

HassounLab/MADGENCommunity100%
MIT

MASS-SPEC ATTENDS TO DE NOVO MOLECULAR GENERATION

203PythonJan 29, 20251 years agoMIT

Similar Papers

Cite this paper

@article{wang2025madgen,
  title  = {MADGEN: Mass-Spec attends to De Novo Molecular generation},
  author = {Yinkai Wang and Xiaohui Chen and Li-Ping Liu and Soha Hassoun},
  year   = {2025},
  eprint = {2501.01950},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2501.01950},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.01950.svg)](https://codeofpaper.com/paper/2501.01950)

Discussion