Curriculum Learning for Biological Sequence Prediction: The Case of De Novo Peptide Sequencing

Xiang Zhang, Jiaqi Wei, Zijie Qiu, Sheng Xu, Nanqing Dong, ZhiQiang Gao, Siqi Sun

Abstract

De novo peptide sequencing—the process of determining amino acid sequences directly from mass spectrometry data—is a critical task in proteomics, particularly for identifying novel biomarkers and antibodies. While Non-Autoregressive Transformers (NATs) have emerged as a promising architecture for this task due to their bidirectional context and efficiency, they are notoriously difficult to train using Connectionist Temporal Classification (CTC) loss. This paper discusses RefineNovo, a novel framework that stabilizes NAT training through a structured curriculum learning strategy and an iterative self-refinement module. RefineNovo reduces training failures by over 90% and achieves state-of-the-art accuracy across multiple biological benchmarks.

Introduction

Peptide sequencing is the cornerstone of modern proteomics. Traditionally, researchers have relied on "database searching," which matches mass spectra against a library of known proteins. However, this approach is limited to existing genomic data. De novo sequencing attempts to solve the sequence puzzle from scratch, making it indispensable for discovering previously uncharacterized proteins.

Recent advancements have shifted toward Non-Autoregressive Transformers (NATs). Unlike autoregressive models that predict tokens one-by-one, NATs predict the entire sequence in parallel. While faster and capable of capturing global dependencies, NATs often utilize Connectionist Temporal Classification (CTC) loss, which creates a massive, multi-modal search space. This frequently leads to "loss explosion" or non-convergence during training, depending on initialization and data distribution. RefineNovo addresses these instabilities by introducing a "simple-to-complex" training curriculum and iterative inference logic.

Methodology

RefineNovo introduces three primary technical innovations to stabilize and enhance the performance of NATs in biological sequence prediction.

1. Structured Protein Curriculum Learning

To prevent the model from becoming lost in the combinatorial complexity of CTC early in training, the authors implement "difficulty annealing." During the initial stages of training, the model is allowed to "peek" at a portion of the ground-truth tokens, effectively reducing the search space. As training progresses and the model's internal representations stabilize, the masking ratio is increased. This forces the model to rely increasingly on the input spectra and its own learned logic. Crucially, this curriculum is applied at a fine-grained, within-sequence level, adjusting difficulty based on real-time performance metrics.

2. Self-Refining Inference Module

Standard NATs generate sequences in a single pass, which can lead to errors in fine-grained amino acid discrimination. RefineNovo incorporates an iterative process where the model’s initial predictions are fed back into the decoder as conditional inputs. By "thinking twice," the model can polish its results over multiple iterations (typically three), significantly improving the accuracy of the final sequence.

3. Precise Mass Control (PMC)

Biological sequences must adhere to physical constraints. The total mass of the predicted amino acids must match the precursor mass measured by the mass spectrometer. RefineNovo enforces this through a Precise Mass Control unit—a knapsack-style dynamic programming module that ensures the final output is biologically plausible.

Experimental Setup and Datasets

The model was rigorously evaluated on several high-standard proteomic benchmarks:

  • MassIVE-KB: A large-scale human proteomic dataset containing over 30 million peptide-spectrum matches.
  • 9-species-V1 & V2: Gold-standard benchmarks covering a diverse range of organisms, including yeast, honeybees, mice, and humans.
  • NovoBench: A benchmark designed to test model robustness against "domain shift," specifically focusing on data generated by different laboratory equipment and mass spectrometers.

Key Results and Discussion

RefineNovo demonstrates significant improvements in both training stability and predictive accuracy:

  • Training Reliability: The curriculum learning strategy reduced the frequency of NAT training failures (such as loss explosions) by more than 90% compared to the baseline PrimeNovo model. This makes the architecture viable for large-scale production environments.
  • State-of-the-Art Accuracy: On the 9-species-V1 benchmark, RefineNovo achieved an average amino acid precision of 0.800, outperforming existing database search methods and previous autoregressive/non-autoregressive models.
  • Fine-Grained Discrimination: One of the most challenging aspects of peptide sequencing is distinguishing between amino acids with nearly identical masses. RefineNovo showed a marked improvement in distinguishing Glutamine (Q) from Lysine (K), which differ by only 0.036 Daltons—a feat attributed to the iterative refinement passes.
  • Generalization: Despite the inherent challenges of domain shift in mass spectrometry, RefineNovo remained more robust than its predecessors when tested on the NovoBench dataset, maintaining higher accuracy across different instrument types.

Conclusion and Future Work

RefineNovo successfully addresses the stability issues of NATs in biological sequence prediction through structured curriculum learning and iterative refinement. While the model sets a new state-of-the-art for de novo sequencing, challenges remain regarding instrument-specific domain shifts. Future research will focus on developing instrument-agnostic domain adaptation techniques and scaling the architecture to handle longer biological sequences, such as full-length proteins or complex DNA functional sites.

Summary updated

BibTeX
@inproceedings{zhang2025curriculum,
  author = {Xiang Zhang and Jiaqi Wei and Zijie Qiu and Sheng Xu and Nanqing Dong and ZhiQiang Gao and Siqi Sun},
  title = {{Curriculum Learning for Biological Sequence Prediction: The Case of De Novo Peptide Sequencing}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=WbLXcMt2eG},
}
Figure