Neural Graph Matching Improves Retrieval Augmented Generation in Molecular Machine Learning

Abstract

Molecular machine learning has gained popularity with the advancements of geometric deep learning. In parallel, retrieval-augmented generation has become a principled approach commonly used with language models. However, the optimal integration of retrieval augmentation into molecular machine learning remains unclear. Graph neural networks stand to benefit from clever matching to understand the structural alignment of retrieved molecules to a query molecule. Neural graph matching offers a compelling solution by explicitly modeling node and edge affinities between two structural graphs while employing a noise-robust, end-to-end neural network to learn affinity metrics. We apply this approach to mass spectrum simulation and introduce MARASON, a novel model that incorporates neural graph matching to enhance a fragmentation-based neural network. Experimental results highlight the effectiveness of our design, with MARASON achieving 27% top-1 accuracy, a substantial improvement over the non-retrieval state-of-the-art accuracy of 19%. Moreover, MARASON outperforms both naive retrieval-augmented generation methods and traditional graph matching approaches. Code is publicly available at https://github.com/coleygroup/ms-pred.

Cite

Text

Wang et al. "Neural Graph Matching Improves Retrieval Augmented Generation in Molecular Machine Learning." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Wang et al. "Neural Graph Matching Improves Retrieval Augmented Generation in Molecular Machine Learning." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/wang2025icml-neural/)

BibTeX

@inproceedings{wang2025icml-neural,
  title     = {{Neural Graph Matching Improves Retrieval Augmented Generation in Molecular Machine Learning}},
  author    = {Wang, Runzhong and Wang, Rui-Xi and Manjrekar, Mrunali and Coley, Connor W.},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {64734-64749},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/wang2025icml-neural/}
}