# MS-GPT: Rethinking MS/MS De Novo Structure Elucidation as Spectrum-Induced Posterior Querying of a Molecule-Language Model

DevFeed: [MS-GPT: Rethinking MS/MS De Novo Structure Elucidation as Spectrum-Induced Posterior Querying of a Molecule-Language Model](<https://devfeed.tech/articles/ms-gpt-rethinking-ms-ms-de-novo-structure-elucidation-as-spectrum-induced-posterior-querying-of-a-molecule-language-model-111427.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.23607>)

Author: Xin Zhao, Yumin Liu, Zhuo Li, Weichu Zheng, Feng Zhu, Xiaokang Yang, Yaohui Jin, Yanyan Xu

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [art](<https://devfeed.tech/tags/art.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [decoder](<https://devfeed.tech/tags/decoder.md>), [domain](<https://devfeed.tech/tags/domain.md>), [fingerprint](<https://devfeed.tech/tags/fingerprint.md>), [generate](<https://devfeed.tech/tags/generate.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [inference](<https://devfeed.tech/tags/inference.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [lora](<https://devfeed.tech/tags/lora.md>), [pool](<https://devfeed.tech/tags/pool.md>), [pretraining](<https://devfeed.tech/tags/pretraining.md>), [querying](<https://devfeed.tech/tags/querying.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [similarity](<https://devfeed.tech/tags/similarity.md>), [spectrum](<https://devfeed.tech/tags/spectrum.md>), [structure](<https://devfeed.tech/tags/structure.md>), [top](<https://devfeed.tech/tags/top.md>)

## AI overview

MS-GPT addresses the mismatch between molecule-language models trained on exact molecular fingerprints and inference from uncertain MS/MS-derived fingerprints. It conditions a model on fingerprints and formulas, calibrates a band of fingerprint queries around the oracle-fingerprint manifold, then pools candidates and ranks them by generation frequency and posterior similarity. A lightweight LoRA adapter is used to reduce domain-specific posterior bias while retaining the pretrained molecular prior. On NPLIB1, Top-1/Top-10 exact-match accuracy is 17.1%/27.6%; on MassSpecGym it is 10.2%/13.2%. Larger candidate pools improve recovery, with inference cost rising nearly linearly. These findings are from the supplied abstract.

## Source excerpt

arXiv:2607.23607v2 Announce Type: replace Abstract: Molecular structure elucidation from tandem mass spectra (MS/MS) is a central inverse problem in analytical chemistry. Most existing approaches to MS/MS identification remain tied to reference libraries or predefined candidate sets, whereas de novo methods aim to generate structures directly from spectra. A common de novo route predicts a molecular fingerprint from the spectrum and then decodes structures from it, enabling decoder pretraining on large molecule-only corpora. However, this paradigm creates a training-inference mismatch: the decoder is trained on oracle fingerprints computed from molecules, but at inference it is queried with a noisy spectrum-induced fingerprint posterior that is typically collapsed to a single thresholded fingerprint. We introduce MS-GPT, which recasts fingerprint-mediated de novo elucidation as spectrum-induced posterior querying of a conditional molecule-language model. MS-GPT conditions a molecule-language model on fingerprints and formulas, then converts the spectrum-induced posterior into a band of fingerprint queries near the oracle-fingerprint manifold through active-bit density calibration. Candidates sampled across this band are pooled and ranked by generation frequency and posterior similarity. A lightweight LoRA adapter further mitigates domain-specific posterior bias while preserving the pretrained molecular prior. On NPLIB1 and MassSpecGym, MS-GPT sets a new state of the art, reaching Top-1/Top-10 exact-match accuracy of 17.1%/27.6% and 10.2%/13.2%, respectively, and candidate-pool scaling improves recovery with a near-linear increase in inference cost. The source code and model checkpoints are available at https://github.com/VIKI623/MS-GPT.