MHNreact
Modern Hopfield network that scores reaction templates for a molecule in single-step retrosynthesis.
Molecules, proteins and genomics · 14 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 8.4M
- Operations
- 14
- Framework
- PyTorch
- Recurrent
- No
- Published
- Journal of Chemical Information and Modeling (arXiv 2021)
- Cited by
- 9 (as of 27 October 2026)
- Authors
- Philipp Seidl, Philipp Renz, Natalia Dyubankova and others
- Source
- GitHub: ml-jku/mhn-react
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18118
- Graph hash
- d6f47b7bfcbaedc4485558284f5947e88662fba9deccfa8e8a47828da7ef6249
- Skeleton hash
- 43895e7fd807c9539219e2f40e6ea2e9daa9e6708e7db42b430bd9a18f29a1e4
- Architecture hash
- fd016676770ad87975e3794f223b77dfd75352ac4dadd42faea385d82fcdbebb
- Diagram SHA-256
- b72135809b8f3b1104b668a56a4724ceddbc50810f7b674f5d7f7afe0c27a197
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MHNreact is a template-based model for single-step retrosynthesis: given a molecule, it predicts which reaction templates are relevant to it. Such models matter because computer-assisted synthesis planning, used to find synthesis routes for new drugs and materials, relies on a model of chemical reactivity.
The model is built on modern Hopfield networks, adapted to associate two different modalities, reaction templates and molecules. Because templates get their own learned representation, the model can generalize across different reactions. The paper reports that this significantly improves template relevance prediction, especially for templates with few or zero training examples.
On the USPTO-50k retrosynthesis benchmark, the paper reports better top-k exact match accuracy for k of 5 or more, with inference several times faster than the baseline methods.
Key idea. Modern Hopfield networks are adapted to associate molecules with reaction templates, improving template relevance prediction for templates with few or zero training examples.
- MHNreact
- MHN-react
- modern hopfield networks
- reaction template prediction
- retrosynthesis
- single-step retrosynthesis
- template relevance prediction
- few-shot reaction template prediction
- USPTO-50k
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{seidl2021modernhopfieldnetworksfew,
title={Modern Hopfield Networks for Few- and Zero-Shot Reaction Template Prediction},
author={Philipp Seidl and Philipp Renz and Natalia Dyubankova and Paulo Neves and Jonas Verhoeven and Marwin Segler and Jörg K. Wegner and Sepp Hochreiter and Günter Klambauer},
year={2021},
eprint={2104.03279},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2104.03279},
}