arXiv:2610.06282cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06282

dIon: Fragmentation-Based Invariance for Self-Supervised Learning of Tandem Mass Spectra

Alfred Nilsson, Joel Lapin, Samuel H. Payne, Mathias Wilhelm, Lukas Käll

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Alfred Nilsson

Science for Life Laboratory, KTH Royal Institute of Technology

Stockholm, Sweden

Joel Lapin

Computational Mass Spectrometry, TUM School of Life Sciences

Technical University of Munich, Freising, Germany

Samuel H. Payne

Biology Department, Brigham Young University

Provo, Utah 84602, United States

Mathias Wilhelm

Computational Mass Spectrometry, TUM School of Life Sciences

Technical University of Munich, Freising, Germany

Munich Data Science Institute, Technical University of Munich

Garching, Germany

Lukas Käll*

Science for Life Laboratory, KTH Royal Institute of Technology

Stockholm, Sweden

ABSTRACT

We introduce a novel invariance for peptide tandem mass spectrometry data, unlocking self-supervised representation learning that improves de novo sequencing of peptides. This invariance exploits the physical relationship between precursor properties (mass and charge) and fragment-ion evidence, without requiring peptide sequence labels. We introduce dIon, which adapts the DINO framework with two latent prediction tasks, both recovering a clean teacher representation: one from a spectrum mixture, using the precursor as a selection query, and one from a partial spectrum with the precursor withheld. The first associates precursor information with fragment-ion evidence; the second prevents representational collapse onto that information alone. Mechanistic probes support both effects, and ablations show that the full objective performs best. Under identical end-to-end training, dIon initialization improves de novo peptide precision over training from scratch by 5.5 and 8.4 percentage points on the held-out MassIVE-KB and Kingdoms test sets, and by 2.3 and 4.8 percentage points with a larger supervised training corpus. The resulting models surpass fully supervised state-of-the-art de novo sequencing models on the diverse, multi-species Kingdoms corpus under the same greedy-decoding protocol. Without peptide labels, dIon learns strong native peptide-similarity geometry compared with other learned models; with limited peptide-supervised adaptation, it achieves the best retrieval and pair-discrimination performance across all representation benchmarks.

*Corresponding author: lukas.kall@scilifelab.se

Figure

(a) Precursor-conditioned mixture task

Figure

(b) Precursor-withheld partial-view task

Figure 1: Dual latent-prediction objective. (a) The student sees the mixture Ai∪BiA_i \cup B_i with the precursor (M,c)(M, c) of AA and matches the teacher output qiq_i for the clean view AiA_i ( Lmix\mathcal{L}_{\text{mix}}). (b) The student sees a partial view PjP_j of AA with the precursor withheld and matches the same target ( Lpart\mathcal{L}_{\text{part}}). The teacher is an EMA of the student, and SK denotes Sinkhorn–Knopp balancing.

1 INTRODUCTION

Self-supervised learning has become a major approach for learning transferable representations without task labels, using training objectives constructed from the input data itself. Representative approaches include masked modeling (Devlin et al., 2019; He et al., 2022), contrastive learning across augmented views (Chen et al., 2020), and non-contrastive methods that match or predict learned targets across views (Caron et al., 2021; Baevski et al., 2022; Assran et al., 2023). The self-supervised objective determines which structure in the data the model must capture, making objective design especially important when moving to a new modality.

For view-based methods, the construction of the views is part of the self-supervised objective. In SimCLR, two augmented views of the same image define a positive pair, and the choice of augmentations strongly affects the learned representation (Chen et al., 2020). DINO trains a student to match an exponential moving average (EMA) teacher across differently augmented global and local views of the same image (Caron et al., 2021). The views thus define which changes the representation should become invariant to. For images, crops exploit the spatial structure of the pixel grid. The self-distillation machinery itself (student, EMA teacher, stop-gradient) is modality agnostic; the views, however, should express an invariance appropriate for that modality's data.

Peptide tandem mass spectrometry data has a very different structure. A mass spectrum is an unordered set of peaks, each given by its measured mass-to-charge ratio (m/z)(m/z) and intensity. An intact peptide ion, the precursor, is measured in an MS1 scan and then fragmented, and its fragment ions are measured in an MS2 scan, producing the tandem MS/MS spectrum. Informative fragments may be absent, unrelated or noise peaks may be present, and fragment intensities can differ substantially between measurements, while the m/zm/z values of detected ions are measured with high precision. An MS/MS spectrum is therefore a precise but incomplete and variable observation of the fragmentation of a precursor with measured mass and charge. Public repositories such as PRIDE (Perez-Riverol et al., 2025) hold vast quantities of MS/MS data, but only a minority of spectra carry peptide labels, pseudo-labels from database search assigned where a spectrum confidently matches a candidate peptide. Supervised training sees only this noisy, non-randomly selected subset, whereas self-supervision can use every spectrum.

Masked modeling would seem a natural first choice. For peptide MS/MS, however, the incompleteness and variability of spectra make the exact peaks and intensities removed by masking a less appealing target for representation learning. We instead turn to latent prediction, where the model predicts a learned target computed from another view rather than the masked observations themselves (Caron et al., 2021; Baevski et al., 2022; LeCun, 2022; Assran et al., 2023). Latent prediction still leaves the question of which relation should be preserved across views. For modalities without an obvious analogue of image crops or spatial masking, that relation can instead come from known structure in the data-generating or measurement process. One way to turn such a relation into a prediction task is to combine two data examples into a single view, provide conditioning information associated with one of them, and ask the model to recover that example's clean representation. Because the conditioning information could itself become a shortcut, a second view withholds it and presents only part of the example. We instantiate this idea for peptide MS/MS using the physical relationship between precursor properties and fragment-ion evidence, with no peptide sequence labels. We call this fragmentation-based invariance: the invariant relation is defined by fragmentation physics, while the representation remains sensitive to the fragmentation patterns that distinguish peptides.

We introduce dIon, which adapts DINO self-distillation to peptide MS/MS with two complementary latent-prediction tasks. Our main contributions are:

• We introduce a self-supervised latent-prediction construction that mixes two examples and conditions recovery of a clean representation on information associated with one source, paired with partial views that withhold this information so that it cannot serve as a shortcut.

• We instantiate this construction for peptide MS/MS as fragmentation-based invariance, through a precursor-conditioned mixture task and a precursor-withheld partial-view task, requiring no peptide sequence labels.

• We pretrain dIon as a foundation encoder for peptide MS/MS. Its global spectrum representation serves peptide retrieval and pair discrimination, and its dense peak-token representations transfer to de novo peptide sequencing, which predicts a peptide’s amino-acid sequence directly from its spectrum.

• Mechanistic probes support the intended behaviors of both latent-prediction tasks, and objective ablations show that the full dual objective performs best.

• dIon initialization improves de novo peptide precision by 2.3–8.4 percentage points under matched end-to-end training and surpasses the fully supervised Casanovo and InstaNovo models across all 70 species of the Kingdoms test set. To our knowledge, this is the first demonstration that self-supervised pretraining improves de novo sequencing over matched training from scratch. It also learns strong native peptide-similarity geometry compared with other learned models and improves label-efficient peptide-supervised metric learning.

References (100)

Couldn't load all references. Reload the page to try again.