Abstract
Peptide de novo sequencing is a critical task in proteomics, traditionally dominated by autoregressive transformer models like Casanovo. However, these models are prone to "cascading errors," where a single mistake early in the sequence compromises the entire prediction. This paper explores the integration of diffusion decoders to enable global refinement and "middle-out" decoding. While a direct architectural swap initially degrades performance, the application of a specialized discrete diffusion loss function, DINOISER, leads to a five-fold increase in amino acid recall. Despite these gains, challenges in sequence length control and peptide-level precision persist.
Introduction: The Challenge of Cascading Errors
The goal of peptide de novo sequencing is to reconstruct the amino acid sequence of a protein fragment directly from its tandem mass spectrometry (MS/MS) spectrum. State-of-the-art models typically utilize autoregressive decoders that predict amino acids sequentially from one terminus to the other.
A significant drawback of this approach is the cascading error problem: an incorrect prediction at the start of the sequence propagates through subsequent steps, often leading to a completely erroneous result. Furthermore, the strongest experimental evidence in a spectrum often corresponds to the middle of a peptide, yet autoregressive models are structurally forced to begin at the ends. Diffusion decoders offer a potential solution by allowing the model to refine the entire sequence simultaneously and capitalize on high-confidence regions regardless of their position.
Methodology
The researchers adapted the Casanovo architecture, replacing its sequential transformer decoder with a non-autoregressive diffusion-based counterpart. The study utilized a large-scale dataset from MassIVE-KB, consisting of over 277,000 training peptide-spectrum matches (PSMs) across a diverse range of tryptic and non-tryptic peptides.
The study was structured into three primary experimental parts to isolate the effects of architecture, search strategy, and loss functions.
Model Variants
Three diffusion-based variants were developed:
- Casanovo-DS: A lightweight version with 9.7M parameters.
- Casanovo-DM1 & DM2: Larger versions (~29.6M parameters) incorporating time embeddings and optimized layer normalization.
Diffusion Decoding Process
The diffusion process involves a forward pass that adds noise to the amino acid tokens and a reverse denoising process. The model learns to predict the original tokens from their noisy versions, guided by the mass spectrometry features.
Loss Functions and Search Strategies
A key finding was the inadequacy of standard cross-entropy loss for discrete diffusion in this domain. The researchers introduced the DINOISER loss, specifically designed for discrete diffusion models. Additionally, they compared standard beam search with knapsack beam search, which uses the precursor mass as a constraint to filter valid peptide candidates.
Results and Discussion
The experiments revealed that the choice of loss function is the most critical factor in diffusion-based sequencing.
Performance Breakthrough with DINOISER
Simply swapping the decoder architecture led to a decrease in performance. However, switching to the DINOISER loss function resulted in a dramatic improvement. The best-performing model, Casanovo-DM2 with DINOISER, achieved an amino acid recall of 0.454, a statistically significant improvement over the baseline Casanovo's 0.081. This indicates that the diffusion model is significantly more effective at identifying the correct amino acids present in the fragment.
The Precision-Length Trade-off
Despite the high recall, the models struggled with peptide-level precision, which remained at zero. Qualitative analysis showed that while the models often correctly identified the start of a peptide, they tended to append "noise" amino acids at the end, resulting in sequences longer than the ground truth. This suggests that the parallel nature of the diffusion decoder lacks a natural "stop" mechanism equivalent to the end-of-sequence token in autoregressive models.
Knapsack Search Limitations
Contrary to expectations, knapsack beam search did not improve performance in the diffusion context. It significantly increased computational overhead—extending training and inference times from 1.5 to 35 hours—while actually decreasing overall accuracy.
Conclusion and Future Directions
This study demonstrates that diffusion decoders can significantly enhance amino acid recall in peptide sequencing by overcoming the limitations of autoregressive "left-to-right" decoding. However, the lack of sequence length control remains a major hurdle for achieving high peptide-level precision.
Future research will focus on developing robust mechanisms to truncate noise at the end of predicted sequences and better integrating mass constraints directly into the generation process rather than as a post-processing step.
Summary updated