mlsanityData to 7 Oct 2026

MassFormer: Tandem Mass Spectrum Prediction for Small Molecules using Graph Transformers

arXiv 2111.04824 ↗First posted 8 Nov 2021cs.LG q-bio.BMcited by 2

Not on the map. Why?

Abstract (arXiv)

Tandem mass spectra capture fragmentation patterns that provide key structural information about a molecule. Although mass spectrometry is applied in many areas, the vast majority of small molecules lack experimental reference spectra. For over seventy years, spectrum prediction has remained a key challenge in the field. Existing deep learning methods do not leverage global structure in the molecule, potentially resulting in difficulties when generalizing to new data. In this work we propose a new model, MassFormer, for accurately predicting tandem mass spectra. MassFormer uses a graph transformer architecture to model long-distance relationships between atoms in the molecule. The transformer module is initialized with parameters obtained through a chemical pre-training task, then fine-tuned on spectral data. MassFormer outperforms competing approaches for spectrum prediction on multiple datasets, and is able to recover prior knowledge about the effect of collision energy on the spectrum. By employing gradient-based attribution methods, we demonstrate that the model can identify relationships between fragment peaks. To further highlight MassFormer's utility, we show that it can match or exceed existing prediction-based methods on two spectrum identification tasks. We provide open-source implementations of our model and baseline approaches, with the goal of encouraging future research in this area.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 29 of its 111 references that are in the map. First posted on arXiv 8 Nov 2021.

Builds on

29 of 111 references.

References · 29

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  7. 2017Graph Attention Networkscited by 8,854
  8. 2016Layer Normalizationcited by 5,579
  9. 2018How Powerful are Graph Neural Networks?cited by 4,355
  10. 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
  11. 2017Learning Important Features Through Propagating Activation Differencescited by 1,454
  12. 2017MoleculeNet: A Benchmark for Molecular Machine Learningcited by 1,037
17 more
  1. 2017Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithmcited by 723
  2. 2019Measuring and Relieving the Over-smoothing Problem for Graph Neural Networks from the Topological Viewcited by 544
  3. 2020Underspecification Presents Challenges for Credibility in Modern Machine Learningcited by 488
  4. 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 328
  5. 2021Do Transformers Really Perform Bad for Graph Representation?cited by 318
  6. 2020Towards Deeper Graph Neural Networkscited by 296
  7. 2017Predicting Organic Reaction Outcomes with Weisfeiler-Lehman Networkcited by 102
  8. 2020Molecule Attention Transformercited by 92
  9. 2019BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performancecited by 89
  10. 2020Memory-Based Graph Networkscited by 56
  11. 2021DGL-LifeSci: An Open-Source Toolkit for Deep Learning on Graphs in Life Sciencecited by 38
  12. 2018Rapid Prediction of Electron-Ionization Mass Spectrometry using Neural Networkscited by 27
  13. 2020The Curse of Performance Instability in Analysis Datasets: Consequences, Source, and Suggestionscited by 22
  14. 2020Neural Machine Translation: A Review of Methods, Resources, and Toolscited by 18
  15. 2020Using Graph Neural Networks for Mass Spectrometry Predictioncited by 12
  16. 2013Competitive Fragmentation Modeling of ESI-MS/MS spectra for putative metabolite identificationcited by 9
  17. 2014Fragmentation trees reloadedcited by 9

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 1.

2 papers.