arXiv:2611.05260cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05260

NovoCRF: Globally Normalized De Novo Peptide Sequencing on a Prefix-Mass Lattice

Rui Qiao, Lei Xin, Baozhen Shan

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

Abstract

De novo peptide sequencing has moved from dynamic programming over hand-designed or generative scores to large transformers that learn the task end to end. We present NovoCRF, a conditional random field (CRF) whose states are prefix masses, so that its paths are exactly the peptides within ±0.06 Da of the precursor mass. A small network scores each edge from physics-derived ion-match features and is trained with its scores globally normalized over all mass-feasible peptides. To our knowledge, NovoCRF is the first de novo method trained with exact normalization over all mass-feasible peptides. Our software has three modules, each with exactly one job: a precursor mass finder recovers the accurate precursor mass from MS1, the CRF finds the peptides that fit the precursor mass by exact k-best decoding, and two BiGRU rerankers add sequence context and internal-fragment evidence. The model has 310k parameters and trains in about 17 GPU-hours. On seven held-out data-dependent acquisition datasets published in 2026 (126,262 labeled spectra), NovoCRF's mean peptide recall is 42.4%, against 39.1% for Casanovo v5 with five beams, and its amino-acid recall 64.0% against 53.1%, at 1,746 spectra/s on 18 CPU threads, 55x Casanovo's throughput on a GPU. Split by fragment evidence, NovoCRF leads on labels with up to three peptide bonds without a b or y ion, and Casanovo only beyond. NovoCRF can also search modifications it was never trained on at their exact mass: it finds 32.1% of the hydroxyproline peptides of a lion bone sample.

1 Introduction

De novo sequencing reads a peptide from its tandem mass (MS/MS) spectrum without a protein database. It is the method of choice when the sequence is not in a reference database: neoantigens, antibodies, RNA-edited proteins and organisms without a curated proteome. The spectrum constrains the peptide through prefix masses: a cleavage after residue j yields a b ion at prefix mass pjp_j and a complementary y ion at M−pjM-p_j, where MM is the precursor mass.

Classical methods made this structure explicit. PEAKS [1] and NovoHMM [2] use dynamic programming (DP) along the prefix-mass axis to find the optimal path under a defined scoring function: hand-tuned ion statistics in PEAKS, a generative hidden Markov model (HMM) trained by expectation-maximization in NovoHMM. Decoding is exact and the precursor mass is satisfied by construction, but the scores are not learned discriminatively.

DeepNovo [3] introduced deep learning: a CNN reads intensity windows at the theoretical ions of each candidate next residue, an LSTM adds sequence context, and beam search decodes a per-step softmax. PointNovo [4] replaced the intensity grid with an order-invariant network over the peaks themselves, fed with the m/zm/z difference between each peak and each theoretical ion, which made it independent of instrument resolution; it also started the LSTM from a

sinusoidal embedding of the spectrum. Casanovo [5, 6] made the task fully end to end: each peak is encoded by sinusoids into a 512-d vector, and a 9-layer transformer encoder and 9-layer decoder (47.9M parameters in the released v5 weights) translate the peak set into residues. Later transformer models include InstaNovo [7], ContraNovo [8] and the non-autoregressive π\pi-PrimeNovo [9]; GraphNovo [10] combines a spectrum graph with graph transformers. Like Casanovo, all of them lift each peak's m/zm/z into a high-dimensional vector. InstaNovo, ContraNovo and π\pi-PrimeNovo use sinusoidal embeddings. GraphNovo feeds each peak's scaled m/zm/z, together with seven intensity and rank features of the peak, through a learned network into its graph node's 2,048-dimensional vector, so the m/zm/z information is used only implicitly, in a high-dimensional latent space.

Peak encoding is popular and proven to work, yet it is a counterintuitive use of capacity: one scalar m/zm/z is encoded by 512 floating-point numbers, and not even losslessly. The network must then relearn arithmetic that is known exactly, such as b++y+=M+2mH+b^+ + y^+ = M + 2m_{H^+}, with mH+m_{H^+} the proton mass. These models are also locally normalized, with a softmax per decoding step or, with connectionist temporal classification (CTC), per output position, and none of them normalizes over the set of peptides that fit the precursor mass: the mass constraint enters only through decoding rules or filters.

NovoCRF returns to the classical formulation and makes it discriminative. Conceptually it is close to NovoHMM, a chain along the prefix-mass axis decoded by DP, but it is a conditional random field [11]: in training, the score of the true path is normalized over all mass-feasible paths rather than step by step. A model whose scores see only local evidence needs this global normalization to avoid label bias [11, 12]; in development experiments on the same lattice it was worth 8–10 points of peptide recall (4.84.8). To the best of our knowledge, NovoCRF is the first de novo sequencing method trained with exact normalization over all mass-feasible peptides. In spirit NovoCRF is a successor to PointNovo: a de novo tool using carefully engineered input features that encode domain knowledge (theoretical fragment m/zm/z, ppm-scale soft matching, isotope envelopes, neutral losses, immonium ions and internal fragments), instead of a black box with tens of millions of weights.

A model built to read the spectrum also invites a closer look at the benchmark. De novo tools are usually scored by peptide recall against database-search identifications. A database search may accept a peptide with long stretches that no b or y ion supports, because the database supplies the sequence; a de novo tool must choose the residues in such a stretch with little or no direct evidence. We therefore report recall by how much fragment evidence each label has. Our contributions:

  • a CRF over a 0.002 Da prefix-mass lattice whose partition function is computed exactly in ≈M/(57Da)\approx M/(57\text{Da}) sequential

NovoCRF: globally normalized de novo peptide sequencing

steps, with 18.5k parameters in the potentials, followed by two BiGRU rerankers (§3);

  • a modular design in which precursor correction from MS1, exact search and sequence context are separate modules, and in which modifications never seen in training are searched at their exact mass (§3.7);

  • CPU inference at 7.0× and 55× the throughput of one- and five-beam Casanovo on a GPU, and a model that trains on one desktop GPU within a day and can be deployed to edge devices, sequencing up to 1,324 spectra/s on a four-year-old cellphone.

References (22)