MS-BART: Unified Modeling of Mass Spectra and Molecules for Structure Elucidation
Yang Han, Pengyu Wang, Kai Yu, Xin Chen, Lu Chen
TL;DR
Mass spectrometry structure elucidation suffers from limited annotated spectra and heterogeneous signals. MS-Bart introduces a unified vocabulary bridging mass-spectrum fingerprints and molecular SELFIES, trained via multi-task pretraining on fingerprint–molecule pairs and adapted to experimental spectra through finetuning with MIST-predicted fingerprints and chemical-feedback alignment. The approach achieves state-of-the-art performance on MassSpecGym and NPLIB1 across multiple metrics while being significantly faster than diffusion-based methods, with ablations validating the benefits of unified pretraining and alignment. This work demonstrates a scalable, cross-modal framework for robust molecular identification from MS data, mitigating hallucinations and enabling practical application to real-world spectral variability.
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.
