Identifying molecular structures from tandem mass spectra remains a central challenge in untargeted metabolomics. Computational annotation methods use different representations and sources of information to rank candidate molecular structures, creating opportunities to improve retrieval by combining their predictions. However, existing aggregation approaches typically rely on fixed rules for combining annotation scores and do not fully exploit additional information about candidate structures. Learned aggregation offers a way to optimize how these signals are combined for molecular retrieval. We introduce MS-AGG (Mass-Spectrometry Annotation Aggregation), a framework that learns to combine annotation-model scores with candidate-level features derived from predicted molecular fingerprints and spectrum--structure reference neighborhoods. The aggregation function is trained to optimize relative candidate rankings within each query while keeping the constituent annotation models fixed. We evaluate MS-AGG across five candidate-pool settings on MassSpecGym and Spectraverse, covering mass-based, formula-restricted, and generated same-formula decoy pools. MS-AGG rankers outperform the strongest individual annotation method, all fixed-rule aggregation baselines, and the learned pointwise baseline in every setting. For example, on MassSpecGym formula pools, MS-AGG-LambdaMART achieves $46.98 \pm 0.21\%$ Hit@1, compared with $35.94\%$ for the strongest constituent model and $40.38\%$ for pointwise logistic regression. Further, feature ablations demonstrate the additional value of derived candidate-level information. These results demonstrate that molecular retrieval benefits from both learned aggregation that explicitly optimizes relative candidate rankings and the incorporation of additional predictive information not captured by individual annotation scores.
翻译:暂无翻译