Abstract
ContraNovo is a novel deep learning framework for de novo peptide sequencing that integrates contrastive learning with physical mass constraints. By aligning mass spectra and peptide sequences in a shared embedding space and utilizing a mass-aware Transformer decoder, ContraNovo achieves state-of-the-art performance across multiple species, significantly improving both amino acid and peptide-level precision.
Introduction
In proteomics, identifying the peptide sequences that constitute proteins is a fundamental task. Mass spectrometry (MS) is the primary tool for this, typically relying on database searching to match experimental spectra against known libraries. However, this approach is limited when encountering novel or modified peptides. De novo sequencing addresses this by predicting sequences directly from spectra. While deep learning has advanced this field, existing models often treat it as a generic translation task, neglecting the physical constraints of mass spectrometry and struggling with amino acids of similar masses.
Methodology
ContraNovo introduces a Transformer-based architecture enhanced by two primary innovations:
- Contrastive Learning Alignment: Inspired by multimodal models like CLIP, ContraNovo employs a contrastive loss function to align spectrum and peptide representations in a joint embedding space. This training objective encourages the model to learn more discriminative features by pulling matching pairs together and pushing mismatched pairs apart.
- Mass-Aware Decoding: To incorporate physical constraints, the decoder tracks prefix and suffix mass sums. By feeding the remaining mass (suffix) into the decoder at each step, the model constrains the search space for the next amino acid, ensuring the final sequence matches the precursor mass measured by the spectrometer.
The model is optimized using a joint loss function combining cross-entropy (CE) for sequence prediction and contrastive similarity (CS) for feature alignment, allowing for both global and local feature extraction.
Experimental Results
ContraNovo was evaluated on the MassIVE-KB and 9-species benchmarks. It consistently outperformed previous state-of-the-art models like CasaNovo and DeepNovo across various metrics and organisms.
Key findings include:
- Precision Improvements: On the 9-species-V1 benchmark, ContraNovo achieved an average amino acid precision of 78.5% and a peptide-level precision of 62.1%, representing substantial gains over CasaNovoV2.
- Human Proteome Performance: The model demonstrated a remarkable 17.6% improvement in peptide precision on human data compared to the previous best model.
- Resolution of Mass Ambiguity: The contrastive approach significantly improved the distinction between amino acids with near-identical masses, such as Glutamine (Q) and Lysine (K), which differ by only 0.46 Daltons.
- Ablation Studies: Removing the contrastive learning component led to a 2.2% drop in amino acid precision, confirming its role as a critical driver of success.
Discussion and Conclusion
The success of ContraNovo underscores the importance of integrating domain-specific physical constraints into deep learning architectures. By combining global contrastive alignment with local mass-aware decoding, the model effectively addresses the "spelling" errors common in de novo sequencing. While the model requires significant computational resources for beam search, it sets a new benchmark for accuracy in identifying protein building blocks. Future work will focus on extending the model's capabilities to the "dark proteome" of entirely unknown protein sequences.
Summary updated