Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

DiffMS: Diffusion Generation of Molecules Conditioned on Mass Spectra

About

Mass spectrometry plays a fundamental role in elucidating the structures of unknown molecules and subsequent scientific discoveries. One formulation of the structure elucidation task is the conditional de novo generation of molecular structure given a mass spectrum. Toward a more accurate and efficient scientific discovery pipeline for small molecules, we present DiffMS, a formula-restricted encoder-decoder generative network that achieves state-of-the-art performance on this task. The encoder utilizes a transformer architecture and models mass spectra domain knowledge such as peak formulae and neutral losses, and the decoder is a discrete graph diffusion model restricted by the heavy-atom composition of a known chemical formula. To develop a robust decoder that bridges latent embeddings and molecular structures, we pretrain the diffusion decoder with fingerprint-structure pairs, which are available in virtually infinite quantities, compared to structure-spectrum pairs that number in the tens of thousands. Extensive experiments on established benchmarks show that DiffMS outperforms existing models on de novo molecule generation. We provide several ablations to demonstrate the effectiveness of our diffusion and pretraining approaches and show consistent performance scaling with increasing pretraining dataset size. DiffMS code is publicly available at https://github.com/coleygroup/DiffMS.

Montgomery Bohde, Mrunali Manjrekar, Runzhong Wang, Shuiwang Ji, Connor W. Coley• 2025

Related benchmarks

TaskDatasetResultRank
De novo structural elucidationMassSpecGym (test)
Top-1 Accuracy2.3
32
Molecular Generation from Mass SpectraMassSpecGym
Top-1 Accuracy2.3
22
De novo structural elucidationNPLIB1 (test)
Top-1 Accuracy8.34
21
De novo structural elucidationMassSpecGym
Accuracy4.25
20
De novo structural elucidationNPLIB1
Accuracy15.44
18
Molecular Generation from Mass SpectraNPLIB1
Top-1 Accuracy8.34
16
De novo molecular generation from mass spectraNPLIB1 (test)
Top-1 Accuracy8.34
11
Molecular Generation from Mass SpectraMassSpecGym (test)
Overall Valid100
8
Molecular Generation from Mass SpectraNPLIB1 (test)
Overall Validity100
7
De novo molecule generationNPLIB1
Validity Rate100
4
Showing 10 of 12 rows

Other info

Code

Follow for update