Pairwise Attention: Leveraging Mass Differences to Enhance De Novo Sequencing of Mass Spectra

preprint · bioRxiv · 2025

preprint · bioRxiv · 2025. Joel Lapin et al. A fundamental challenge in mass spectrometry-based proteomics is determining which peptide generated a given…
Date 2025-03-28
Type preprint
Venue bioRxiv
Publisher Cold Spring Harbor Laboratory
Contribution algorithm
DOI 10.1101/2025.03.28.645943
Citations (OpenAlex) 0

Peer-reviewed version: Pairwise Attention: Leveraging Mass Differences to Enhance De Novo Sequencing of Mass Spectra (2025-06-02, Journal of Proteome Research)

Abstract

A fundamental challenge in mass spectrometry-based proteomics is determining which peptide generated a given MS2 spectrum. Peptide sequencing typically relies on matching spectra against a known sequence database, which in some applications is not available. Deep learning-based de novo sequencing can address this limitation by directly predicting peptide sequences from MS2 data. We have seen the application of the transformer architecture to de novo sequencing produce state-of-the-art results on the so-called nine-species benchmark. In this study, we propose an improved transformer encoder inspired by the heuristics used in the manual interpretation of spectra. We modify the attention mechanism with a learned bias based on pairwise mass differences, termed Pairwise Attention (PA). Adding PA improves average peptide precision at 100\% coverage by 12.7\% (5.9 percentage points) over our base transformer on the original nine-species benchmark. We have also achieved a 7.4\% increase over the previously published model Casanovo. Our MS2 encoding strategy is largely orthogonal to other transformer-based models encoding MS2 spectra, enabling straightforward integration into existing deep-learning approaches. Our results show that integrating domain-specific knowledge into transformers boosts de novo sequencing performance.Competing Interest StatementThe authors have declared no competing interest.

Authors

  1. Joel Lapin · Technical University of Munich
  2. Alfred Nilsson · KTH Royal Institute of Technology
  3. Mathias Wilhelm · Technical University of Munich
  4. Lukas Käll · KTH Royal Institute of Technology

Methods and tools

Cites (10)

Seen in the charts

Back to the full map

Back to top