Temperature Scaling as a Free Lunch for De Novo Peptide Sequencing: Further Gains from Training-Free Candidate Rescoring
preprint · bioRxiv · 2026
| Date | 2026-11-28 |
| Type | preprint |
| Venue | bioRxiv |
| Publisher | Cold Spring Harbor Laboratory |
| Contribution | post-processor |
| DOI | 10.64898/2026.11.23.768748 |
Abstract
De novo peptide sequencing infers peptide sequences directly from tandem mass spectra without relying on a reference database, enabling the identification of peptides absent from reference collections. Autoregressive models commonly decode with beam search and return the candidate with the highest model score. We first show that decoding temperature constitutes a free lunch for this pipeline: raising the decoding temperature alone improves top-1 peptide recall of Casanovo, InstaNovo, and ContraNovo by 0.5-1.0 percentage points without retraining, changes to model weights, or additional decoding passes. Temperature affects both the sequences admitted to the beam-search candidate pool and the final candidate scores, although the former effect depends on the implementation. Under the T=1.0 baseline ranking defined here, the proportion of spectra whose candidate pools contain the correct peptide exceeds top-1 peptide recall by 9-12 percentage points, revealing additional ranking headroom. To exploit this headroom, we then introduce FragR (Fragment-based Rescoring), a training-free method that combines model scores with fragment evidence computed directly from raw spectral peaks: intensity-weighted fragment coverage and b/y-ion ladder evidence. On the nine-species V1 dataset (approximately 1.53 million monoisotopic spectra), combining an elevated decoding temperature with FragR improves peptide recall over the T=1.0 baseline by 1.24-1.49 percentage points across the three models. The combined approach also improves recall on the nine-species V2 dataset (232,738 spectra), which includes isotope-shifted precursors. Asynchronous CPU rescoring overlaps with GPU decoding, so the additional FragR step adds little end-to-end inference overhead.
Methods and tools
- FragR: Training-free rescoring of beam-search candidates that adds fragment evidence computed from the raw peaks (intensity-weighted fragment coverage and b/y-ion ladders) to the model’s score, paired with a raised decoding temperature; tested on Casanovo, InstaNovo and ContraNovo.
Methods it uses
- Casanovo: First Transformer
- ContraNovo: Contrastive learning
- InstaNovo: Knapsack beam search
Evaluated on
- Nine-species benchmark (original (DeepNovo, 2017)) · MSV000081382, PXD003868 (provenance), PXD004325 (provenance), PXD004424 (provenance), PXD004467 (provenance), PXD004536 (provenance), PXD004565 (provenance), PXD004947 (provenance), PXD004948 (provenance), PXD005025 (provenance)
- Nine-species benchmark (revised (Zenodo July 2024)) · 10.5281/zenodo.12819175