MS2Agent: Multi-Agent LLM-Driven Cross-Modal Alignment for Tandem Mass Spectrometry Structural Annotation

Abstract Tandem mass spectrometry (MS2) is central to small-molecule structural annotation in metabolomics, yet accurate structure inference remains challenging because of complex fragmentation and structurally similar candidates. Here, we introduce MS2Agent, an end-to-end multi-agent framework that integrates cross-modal representation learning with large language model (LLM) reasoning for MS2 annotation. The agent converts mass spectrometry data and molecular structures into a unified textual representation and utilizes a pre-trained model to calculate similarity. Four functional agents perform spectrum textualization, structure textualization, candidate initialization, and collaborative reranking, enabling evidence-based candidate discrimination. On the CASMI 2022 benchmark, MS2Agent improved Recall@1 from 0.156 for the Codex baseline to 0.738 with the same base LLM. Evaluations on MassSpecGym and an independently constructed isomer benchmark further characterize its generalization and performance in challenging structural cases. To improve computational efficiency, we developed MS2Rep-0.8B-GRPO, a lightweight 0.8B-parameter model optimized by Group Relative Policy Optimization (GRPO), a reinforcement learning (RL) algorithm for MS2 and molecular-structure textualization, achieving a Recall@1 of 0.784 (+8.4 percentage points over the base model) on the CASMI 2022 benchmark. Tests on real samples further demonstrate the practical utility of MS2Agent for metabolite annotation. This multi-agent framework integrating cross-modal representation learning and LLM reasoning offers a promising strategy for automated structural annotation workflows. Future advances in LLMs may further strengthen the annotation capability of the proposed framework.

Authors

Institutions

Publication Details

Journal
Analytical Chemistry
Published
2026-10-31
DOI
https://doi.org/10.1021/acs.analchem.6c04516
Primary Topic
Metabolomics and Mass Spectrometry Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

MS2Agent: Multi-Agent LLM-Driven Cross-Modal Alignment for Tandem Mass Spectrometry Structural Annotation

Hai Jiang, Liu Yang, Xuemeng Geng
Analytical Chemistry
Metabolomics and Mass Spectrometry Studies
article

MS2Agent: Multi-Agent LLM-Driven Cross-Modal Alignment for Tandem Mass Spectrometry Structural Annotation

Hai Jiang, Liu Yang, Xuemeng Geng
article en

Abstract

Abstract Tandem mass spectrometry (MS2) is central to small-molecule structural annotation in metabolomics, yet accurate structure inference remains challenging because of complex fragmentation and structurally similar candidates. Here, we introduce MS2Agent, an end-to-end multi-agent framework that integrates cross-modal representation learning with large language model (LLM) reasoning for MS2 annotation. The agent converts mass spectrometry data and molecular structures into a unified textual representation and utilizes a pre-trained model to calculate similarity. Four functional agents perform spectrum textualization, structure textualization, candidate initialization, and collaborative reranking, enabling evidence-based candidate discrimination. On the CASMI 2022 benchmark, MS2Agent improved Recall@1 from 0.156 for the Codex baseline to 0.738 with the same base LLM. Evaluations on MassSpecGym and an independently constructed isomer benchmark further characterize its generalization and performance in challenging structural cases. To improve computational efficiency, we developed MS2Rep-0.8B-GRPO, a lightweight 0.8B-parameter model optimized by Group Relative Policy Optimization (GRPO), a reinforcement learning (RL) algorithm for MS2 and molecular-structure textualization, achieving a Recall@1 of 0.784 (+8.4 percentage points over the base model) on the CASMI 2022 benchmark. Tests on real samples further demonstrate the practical utility of MS2Agent for metabolite annotation. This multi-agent framework integrating cross-modal representation learning and LLM reasoning offers a promising strategy for automated structural annotation workflows. Future advances in LLMs may further strengthen the annotation capability of the proposed framework.

Analytical Chemistry
Heilongjiang University of Chinese Medicine (CN)
Openalex Percentile: Top 22%
Metabolomics and Mass Spectrometry Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
MS2Agent: Multi-Agent LLM-Driven Cross-Modal Alignment for Tandem Mass Spectrometry Structural Annotation — Hai Jiang, Liu Yang, et al. · Analytical Chemistry (2026) | TGRS Research Map | TGRS