SpecRoFormer: Relative Position-Aware Representation Learning for Small-Molecule MS/MS Spectra.
Guoqing Zhu, Shiting Lai, Xinyi Cao, Keyu Hu, Luojun Lin, Yuanlong Yu
College of Computer and Data Science, Fuzhou University, Fuzhou350108, China.
Key points
From the paper's conclusion- These results demonstrate that modeling relative spectral relationships together with fragmentation-aware robustness is critical for learning generalizable MS/MS representations, enabling reliable cross-instrument spectrum retrieval.
Abstract
Spectrum retrieval in tandem mass spectrometry (MS/MS) relies on learning representations that accurately reflect molecular structural similarity. However, fragmentation variability across experimental conditions and instrument biases introduces significant distribution shifts in spectral data, making it difficult to learn representations that can generalize to different instruments. In this study, we propose SpecRoFormer, a Transformer-based framework that learns generalizable MS/MS representations through relative spectral modeling and fragmentation-aware augmentation. The approach captures structure-relevant relationships between peaks while improving robustness to fragmentation variability and distribution shifts. We train SpecRoFormer on the GNPS dataset and evaluate its generalization across multiple external benchmarks, including MoNA, MassBank, and MassSpecGym. Across these datasets, SpecRoFormer achieves the best overall retrieval performance against strong baselines such as MSBERT, DreaMS, and SpecEmbedding. Furthermore, evaluations on the large-scale simulated dataset SimMS-9M further verify the robustness of SpecRoFormer under broader distribution shifts, consistently outperforming competing methods. These results demonstrate that modeling relative spectral relationships together with fragmentation-aware robustness is critical for learning generalizable MS/MS representations, enabling reliable cross-instrument spectrum retrieval.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- MS2Agent: Multi-Agent LLM-Driven Cross-Modal Alignment for Tandem Mass Spectrometry Structural Annotation.Analytical chemistry · 2026
- FullMS2Former: A Transformer Model for Near-Complete Prediction of Peptide Tandem Mass Spectra.Analytical chemistry · 2026
- A Transformer-Based Framework for Quality Control of Peptide Tandem Mass Spectra.ACS omega · 2026
- SPHERE-MS: Hybrid Fragment-Vocabulary Modeling for Accurate and Efficient Tandem Mass Spectra Prediction.Analytical chemistry · 2026
- π-SPECFormer: A Mass Spectrometry-based Foundation Model for Decoding the Dark ProteomebioRxiv · 2026
- Deciphering Molecular Language for Spectral Interpretation with a Foundation Model Pretrained on Repository-Wide Metabolomics DatabioRxiv · 2026