How well can off-the-shelf LLMs elucidate molecular structures from mass spectra using chain-of-thought reasoning?
By: Yufeng Wang , Lu Wei , Lin Liu and more
Mass spectrometry (MS) is a powerful analytical technique for identifying small molecules, yet determining complete molecular structures directly from tandem mass spectra (MS/MS) remains a long-standing challenge due to complex fragmentation patterns and the vast diversity of chemical space. Recent progress in large language models (LLMs) has shown promise for reasoning-intensive scientific tasks, but their capability for chemical interpretation is still unclear. In this work, we introduce a Chain-of-Thought (CoT) prompting framework and benchmark that evaluate how LLMs reason about mass spectral data to predict molecular structures. We formalize expert chemists' reasoning steps-such as double bond equivalent (DBE) analysis, neutral loss identification, and fragment assembly-into structured prompts and assess multiple state-of-the-art LLMs (Claude-3.5-Sonnet, GPT-4o-mini, and Llama-3 series) in a zero-shot setting using the MassSpecGym dataset. Our evaluation across metrics of SMILES validity, formula consistency, and structural similarity reveals that while LLMs can produce syntactically valid and partially plausible structures, they fail to achieve chemical accuracy or link reasoning to correct molecular predictions. These findings highlight both the interpretive potential and the current limitations of LLM-based reasoning for molecular elucidation, providing a foundation for future work that combines domain knowledge and reinforcement learning to achieve chemically grounded AI reasoning.
Similar Papers
Chemical reasoning in LLMs unlocks strategy-aware synthesis planning and reaction mechanism elucidation
Artificial Intelligence
Computers plan chemical reactions like expert scientists.
Beyond Chemical QA: Evaluating LLM's Chemical Reasoning with Modular Chemical Operations
Artificial Intelligence
Helps computers design new medicines and chemicals.
Atom-anchored LLMs speak Chemistry: A Retrosynthesis Demonstration
Machine Learning (CS)
Teaches computers to invent new medicines.