Prefix-Tree Decoding for Predicting Mass Spectra from Molecules

Samuel Goldman, John Bradshaw, Jiayi Xin, Connor W. Coley
3/11/2023
q-bio.QMcs.LG

No official code found. Best implementation: coleygroup/ms-pred (167 stars, MIT, last commit 2026-04-24).

Abstract

Computational predictions of mass spectra from molecules have enabled the discovery of clinically relevant metabolites. However, such predictive tools are still limited as they occupy one of two extremes, either operating (a) by fragmenting molecules combinatorially with overly rigid constraints on potential rearrangements and poor time complexity or (b) by decoding lossy and nonphysical discretized spectra vectors. In this work, we use a new intermediate strategy for predicting mass spectra from molecules by treating mass spectra as sets of molecular formulae, which are themselves multisets of atoms. After first encoding an input molecular graph, we decode a set of molecular subformulae, each of which specify a predicted peak in the mass spectrum, the intensities of which are predicted by a second model. Our key insight is to overcome the combinatorial possibilities for molecular subformulae by decoding the formula set using a prefix tree structure, atom-type by atom-type, representing a general method for ordered multiset decoding. We show promising empirical results on mass spectra prediction tasks.

View on arXivView PDF

Code Implementations(1)

coleygroup/ms-predCommunity100%
MIT

Predicting tandem mass spectra from molecules

16742Shell, CythonMar 5, 20236 months agoMIT

Similar Papers

Cite this paper

@article{goldman2023prefixtree,
  title  = {Prefix-Tree Decoding for Predicting Mass Spectra from Molecules},
  author = {Samuel Goldman and John Bradshaw and Jiayi Xin and Connor W. Coley},
  year   = {2023},
  eprint = {2303.06470},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.06470v3},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.06470.svg)](https://codeofpaper.com/paper/2303.06470)

Discussion