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

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.

Authors

Institutions

Publication Details

Journal
Journal of Proteome Research
Published
2025-06-02
DOI
https://doi.org/10.1021/acs.jproteome.5c00063
Primary Topic
Advanced Proteomics Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Joel Lapin, Mathias Wilhelm, Lukas Käll, A. Nilsson
Journal of Proteome Research
Advanced Proteomics Techniques and Applications
article

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

Joel Lapin, Mathias Wilhelm, Lukas Käll, A. Nilsson
article en

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.

Journal of Proteome ResearchVol. 24(7)
Science for Life Laboratory (SE), Technical University of Munich (DE), KTH Royal Institute of Technology (SE)
Knut och Alice Wallenbergs Stiftelse, H2020 European Research Council
Openalex Percentile: Top 89%
Advanced Proteomics Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Pairwise Attention: Leveraging Mass Differences to Enhance De Novo Sequencing of Mass Spectra — Joel Lapin, Mathias Wilhelm, et al. · Journal of Proteome Research (2025) | TGRS Research Map | TGRS