bioRxivBioinformaticsPreprint
MolSpecFlow: Mass-Constrained Hybrid Flow Matching for Joint Molecular-Spectral Analysis
Yu Wang, Fan YangiD, Kaikun XuiD, Li Yuan, Jun Zhu, Jingjie ZhangiD, Zhenchao Tang, Yatao BianiD, Cheng ChangiD, Yonghong TianiD, Jianhua YaoiD
Abstract
Identifying the "dark matter" of the chemical universe requires bridging the fundamental gap between molecules and mass spectra. Existing approaches struggle to accurately map between these distinct data formats, often yielding results that are either chemically implausible or inconsistent with the physical evidence. We introduce MolSpecFlow, a unified foundation model pretrained on 100 million molecules and 42 million spectra, which leverages a hybrid flow matching framework to orchestrate optimal transport paths for spectral peaks and discrete probability flows for molecular tokens. Furthermore, to guarantee the physicochemical validity of the generated structures, we incorporate explicit rule-based constraints into the generative process, utilizing a token-level mass control mechanism that strictly enforces alignment with the precursor molecular weight. MolSpecFlow establishes a new state-of-the-art on the MassSpecGym benchmark, surpassing diffusion and retrieval baselines in de novo generation (Top-1 accuracy +35%), spectral simulation, and molecular retrieval, demonstrating the power of physics-grounded unified modeling.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- MassGenie: a transformer-based deep learning method for identifying small molecules from their mass spectra
Aditya Divyakant Shrivastava, Neil Swainston, … Douglas Bruce Kell·BiomoleculesPeer-reviewed·Nov 30, 2021
- PFM: perturbed flow matching for structure-based drug design
- Improving Structural Plausibility in 3D Molecule Generation via Property-Conditioned Training with Distorted Molecules
Lucy Vost, Vijil Chenthamarakshan, … Charlotte Mary Deane·bioRxiv·Sep 17, 2024
- MolDiscovery: Learning Mass Spectrometry Fragmentation of Small Molecules
Liu Cao, Mustafa Güler, … Hosein Mohimani·Nature CommunicationsPeer-reviewed·Jun 17, 2021
- Improving the reliability of molecular string representations for generative chemistry
Etienne Reboul, Zoe Wefers, … Antoine Taly·Journal of Chemical Information and ModelingPeer-reviewed·Sep 17, 2025
- Reliable Molecular Retrieval from Mass Spectra using Conformal Prediction
Morteza Rakhshaninejad, Gaetan De Waele, … Willem Waegeman·Journal of Chemical Information and ModelingPeer-reviewed·May 11, 2026