Explainable Molecular Structure Inference from GC--MS with Diffusion Models and LLM Reranking
Changlin Liu, Tianyu Yi, Chengchun Liu, Boxuan Zhao, Fanyang Mo
Key points
From the paper's conclusion- Presents DiffGCMS, a spectrum-conditioned discrete graph diffusion model for de novo structure elucidation from GC--EI--MS, and develops a framework that integrates DiffGCMS with second-stage reasoning by a large language model (LLM).
- The framework can generate plausible molecular structures for compounds absent from reference spectral libraries and provide traceable evidence supporting its decisions.
- Spectrum-aware postprocessing can correct errors produced by the generative model while providing auditable and traceable explanations for the final ranking.
Abstract
GC--EI--MS is an important technique for analyzing volatile and semivolatile compounds in complex samples. However, conventional methods rely heavily on reference spectral library matching, limiting their ability to identify compounds absent from these libraries and to infer complete molecular structures directly from fragmentation information. Here, we present DiffGCMS, a spectrum-conditioned discrete graph diffusion model for de novo structure elucidation from GC--EI--MS, and further develop a framework that integrates DiffGCMS with second-stage reasoning by a large language model (LLM). In the first stage, DiffGCMS generates candidate molecular structures from input spectra; in the second stage, the LLM uses mass spectral information to validate, repair, and rerank the candidates and provides interpretable analysis of fragment-ion peaks. This framework can generate plausible molecular structures for compounds absent from reference spectral libraries and provide traceable evidence supporting its decisions. On a test set comprising 13,696 spectra from NIST 20, the generative model achieved Acc@1 and Acc@10 of 6.01\% and 15.76\%, respectively. On the test subset containing molecules with no more than 10 heavy atoms, LLM-assisted molecular graph repair and reranking increased Acc@1 from 21.28\% to 21.95\%, Acc@10 from 46.91\% to 47.99\%, and candidate validity from 91.04\% to 100\%. These results demonstrate that spectrum-aware postprocessing can correct errors produced by the generative model while providing auditable and traceable explanations for the final ranking.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Presents DiffGCMS, a spectrum-conditioned discrete graph diffusion model for de novo structure elucidation from GC--EI--MS, and develops a framework that integrates DiffGCMS with second-stage reasoning by a large language model (LLM).
- The framework can generate plausible molecular structures for compounds absent from reference spectral libraries and provide traceable evidence supporting its decisions.
- Spectrum-aware postprocessing can correct errors produced by the generative model while providing auditable and traceable explanations for the final ranking.
Readers' thoughts
No reader thoughts yet.
Related papers
- How well can off-the-shelf LLMs elucidate molecular structures from mass spectra using chain-of-thought reasoning?Journal of Cheminformatics · 2026
- MAST: Motif-Augmented Diffusion with Search Tree for Spectroscopic Molecular Structure ElucidationarXiv · 2026
- MS2Agent: Multi-Agent LLM-Driven Cross-Modal Alignment for Tandem Mass Spectrometry Structural Annotation.Analytical chemistry · 2026
- Fragment-Grounded Neural Simulation of Electron Ionization Mass Spectra at Library Scale.Analytical chemistry · 2026
- MS2Forge: Bayesian Flow Network for De Novo Molecular Structure Generation from Tandem Mass SpectraJACS Au · 2026
- A Spectrum-to-Structure Diffusion Model for De Novo Small Molecule GenerationAnalytical Chemistry · 2025