MS-BART: Unified Modeling of Mass Spectra and Molecules for Structure Elucidation

Yang Han, Pengyu Wang, Kai Yu, Xin Chen, Lu Chen
10/23/2025
cs.LG

No official code found. Best implementation: OpenDFM/MS-BART (13 stars, last commit 2025-10-24).

Abstract

Mass spectrometry (MS) plays a critical role in molecular identification, significantly advancing scientific discovery. However, structure elucidation from MS data remains challenging due to the scarcity of annotated spectra. While large-scale pretraining has proven effective in addressing data scarcity in other domains, applying this paradigm to mass spectrometry is hindered by the complexity and heterogeneity of raw spectral signals. To address this, we propose MS-BART, a unified modeling framework that maps mass spectra and molecular structures into a shared token vocabulary, enabling cross-modal learning through large-scale pretraining on reliably computed fingerprint-molecule datasets. Multi-task pretraining objectives further enhance MS-BART's generalization by jointly optimizing denoising and translation task. The pretrained model is subsequently transferred to experimental spectra through finetuning on fingerprint predictions generated with MIST, a pre-trained spectral inference model, thereby enhancing robustness to real-world spectral variability. While finetuning alleviates the distributional difference, MS-BART still suffers molecular hallucination and requires further alignment. We therefore introduce a chemical feedback mechanism that guides the model toward generating molecules closer to the reference structure. Extensive evaluations demonstrate that MS-BART achieves SOTA performance across 5/12 key metrics on MassSpecGym and NPLIB1 and is faster by one order of magnitude than competing diffusion-based methods, while comprehensive ablation studies systematically validate the model's effectiveness and robustness.

View on arXivView PDF

Code Implementations(1)

OpenDFM/MS-BARTCommunity67%

[NeurIPS 2025] MS-BART: Unified Modeling of Mass Spectra and Molecules for Structure Elucidation

131Shell, PythonMay 15, 202512 months ago

Cite this paper

@article{han2025msbart,
  title  = {MS-BART: Unified Modeling of Mass Spectra and Molecules for Structure Elucidation},
  author = {Yang Han and Pengyu Wang and Kai Yu and Xin Chen and Lu Chen},
  year   = {2025},
  eprint = {2510.20615},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.20615v1},
  journal = {NEURIPS 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/2510.20615.svg)](https://codeofpaper.com/paper/2510.20615)

Discussion