arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.23746cs.AIcs.LG
收藏

测试时调优的语言模型实现从MS/MS光谱到分子结构的端到端从头生成

Test-Time Tuned Language Models Enable End-to-end De Novo Molecular Structure Generation from MS/MS Spectra

IBM Research(IBM研究院);ETH Zürich(苏黎世联邦理工学院);University of Zürich(苏黎世大学)

Laura Mismetti, Marvin Alberts, Andreas Krause, Mara Graziani

AI总结:

本研究提出了一种基于Transformer模型的端到端框架,通过测试时调优策略从MS/MS光谱直接生成分子结构,显著提升了分子结构推断的准确率和适应性。

摘要:

质谱法是识别未知小分子的关键技术,在代谢组学、天然产物发现和环境分析等领域具有重要地位。然而,概率碎片过程和化学空间的大小等特性使得从此类光谱中推断结构极具挑战性,尤其是在部署和训练条件之间存在变化时。当前方法依赖于数据库匹配已知分子的先前观察光谱和多步骤流程,需要中间指纹预测或昂贵的碎片注释。我们介绍了一种基于变压器模型的新型端到端框架,可以直接从输入的质谱光谱及其对应的分子式生成分子结构,从而消除手动注释和中间步骤的需求,同时利用转移学习从模拟数据中学习。为进一步解决分布外光谱的挑战,我们引入了一种测试时调优策略,动态适应预训练模型以适应新的实验数据。我们的方法在MassSpecGym基准测试中实现了3.16%的Top-1准确率,在NPLIB1数据集中实现了12.88%的准确率,显著优于传统微调方法。基准方法分别被超越了27%和67%。即使无法恢复精确的参考结构,生成的候选分子也具有化学信息,表现出高结构合理性,这反映在与地面真实值的强Tanimoto相似性上。值得注意的是,我们观察到在NPLIB1上相比最先进方法,平均Tanimoto相似性提高了83%,在MassSpecGym上提高了64%。我们的框架结合了简单性和适应性,生成准确的分子候选物,为专家解读未见过的光谱提供了有价值的指导。

英文摘要:

Tandem Mass Spectrometry is a cornerstone technique for identifying unknown small molecules in fields such as metabolomics, natural product discovery and environmental analysis. However, certain aspects, such as the probabilistic fragmentation process and size of the chemical space, make structure elucidation from such spectra highly challenging, particularly when there is a shift between the deployment and training conditions. Current methods rely on database matching of previously observed spectra of known molecules and multi-step pipelines that require intermediate fingerprint prediction or expensive fragment annotations. We introduce a novel end-to-end framework based on a transformer model that directly generates molecular structures from an input tandem mass spectrum and its corresponding molecular formula, thereby eliminating the need for manual annotations and intermediate steps, while leveraging transfer learning from simulated data. To further address the challenge of out-of-distribution spectra, we introduce a test-time tuning strategy that dynamically adapts the pre-trained model to novel experimental data. Our approach achieves a Top-1 accuracy of 3.16% on the MassSpecGym benchmark and 12.88% on the NPLIB1 datasets, considerably outperforming conventional fine-tuning. Baseline approaches are also surpassed by 27% and 67% respectively. Even when the exact reference structure is not recovered, the generated candidates are chemically informative, exhibiting high structural plausibility as reflected by strong Tanimoto similarity to the ground truth. Notably, we observe a relative improvement in average Tanimoto similarity of 83% on NPLIB1 and 64% on MassSpecGym compared to state-of-the-art methods. Our framework combines simplicity with adaptability, generating accurate molecular candidates that offer valuable guidance for expert interpretation of unseen spectra.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑