MS2Forge: Bayesian Flow Network for De Novo Molecular Structure Generation from Tandem Mass Spectra
Metabolite structure annotation remains a central challenge in untargeted metabolomics, particularly for compounds absent from spectral libraries and candidate databases. Here, we present MS2Forge, a four-stage framework that employs Bayesian Flow Network for de novo molecular structure generation and prioritization from tandem mass spectra. MS2Forge reformulates spectrum-to-structure inference as progressive Bayesian refinement of probabilistic bond-state beliefs over molecular connectivity, allowing ambiguous spectral evidence to be incorporated through iterative structural inference. Molecular-prior pretraining and cross-modal transfer enable structural knowledge learned from molecule-only data to guide spectrum-conditioned generation, while EvidenceRank prioritizes generated candidates using fragmentation and spectrum−structure compatibility evidence. Under matched graph variables, conditioning information, and candidate budgets, the Bayesian flow generator outperformed the corresponding discrete diffusion and flow-matching variants. MS2Forge achieved the best overall performance among the evaluated methods, reaching top-1 exact-match accuracies of 24.1% on MassSpecGym and 31.7% on NPLIB1. On a stringent CASMI 2012−2022 cohort whose targets were absent from all enumerated paired-spectrum training sets and molecular-pretraining sources, three-seed mean top-1 and top-10 exact-match accuracies were 15.5% and 22.8%, respectively. These results demonstrate that progressive Bayesian connectivity refinement can extend MS/MS-based structure elucidation beyond a database lookup toward the generation and prioritization of testable structural hypotheses.
Authors
- Juan-Ni Wu (ORCID: https://orcid.org/0009-0008-1105-9223)
- Lu Zheng (ORCID: https://orcid.org/0000-0002-4887-7093)
- Honglin Li (ORCID: https://orcid.org/0000-0003-2270-1900)
- Pan Dou
- Zetong Li
- Hengyu Fan
- Liming Xu
- Qiyao Hua
- Zhuosong Xie
- Jiazheng Xu
Institutions
- East China Normal University (CN)
Publication Details
- Journal
- JACS Au
- Published
- 2026-11-23
- DOI
- https://doi.org/10.1021/jacsau.6c01423
- Primary Topic
- Mass Spectrometry Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00