When should we trust the annotation? Selective prediction for molecular structure retrieval from mass spectra
Not on the map. Why?
Abstract (arXiv)
Machine learning methods for identifying molecular structures from tandem mass spectra (MS/MS) have advanced rapidly, yet current approaches still exhibit significant error rates. In high-stakes applications such as clinical metabolomics and environmental screening, incorrect annotations can have serious consequences, making it essential to determine when a prediction can be trusted. In this work, we introduce a selective prediction framework for molecular structure retrieval from MS/MS spectra, separating low-risk predictions automatically from lower-confidence predictions. We formulate the problem within the risk-coverage tradeoff framework and systematically evaluate uncertainty quantification strategies at three levels: input-level distance in the learned representation, fingerprint-level uncertainty over predicted molecular fingerprint bits, and retrieval-level uncertainty over candidate rankings. We compare scoring functions including first-order confidence measures, aleatoric and epistemic uncertainty estimates from second-order distributions, as well as distance-based measures in the latent space. All experiments are conducted on the MassSpecGym benchmark. Our analysis reveals that while fingerprint-level uncertainty scores are poor proxies for retrieval success, retrieval-level total uncertainty provides the overall strongest rejection criterion, and first-order confidence measures are computationally inexpensive, strong baselines. We demonstrate that by applying distribution-free risk control via generalisation bounds, practitioners can specify a tolerable error rate and obtain a subset of annotations satisfying that constraint with high probability.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 24 of its 59 references that are in the map. First posted on arXiv 11 Mar 2026.
Builds on
24 of 59 references.
References · 24
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2017What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?cited by 2,335
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2019Contrastive Multiview Codingcited by 1,297
- 2019Aleatoric and Epistemic Uncertainty in Machine Learning: An Introduction to Concepts and Methodscited by 903
- 2017Selective Classification for Deep Neural Networkscited by 799
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2021Laplace Redux -- Effortless Bayesian Deep Learningcited by 359
- 2022Selection by Prediction with Conformal p-valuescited by 66
12 more
- 2022Pitfalls of Epistemic Uncertainty Quantification through Loss Minimisationcited by 65
- 2024MassSpecGym: A benchmark for the discovery and identification of moleculescited by 36
- 2025DiffMS: Diffusion Generation of Molecules Conditioned on Mass Spectracited by 28
- 2018Rapid Prediction of Electron-Ionization Mass Spectrometry using Neural Networkscited by 27
- 2024Label-wise Aleatoric and Epistemic Uncertainty Quantificationcited by 22
- 2025Out-of-Distribution Detection Methods Answer the Wrong Questionscited by 14
- 2014Fragmentation trees reloadedcited by 9
- 2025MS-BART: Unified Modeling of Mass Spectra and Molecules for Structure Elucidationcited by 9
- 2024JESTR: Joint Embedding Space Technique for Ranking Candidate Molecules for the Annotation of Untargeted Metabolomics Datacited by 7
- 2025Breaking the Modality Barrier: Generative Modeling for Accurate Molecule Retrieval from Mass Spectracited by 4
- 2025Uncertainty Quantification for Machine Learning: One Size Does Not Fit Allcited by 4
- 2026Small molecule retrieval from tandem mass spectrometry: what are we optimizing for?cited by 4
Built on by
Not cited yet.