Molecule Attention Transformer
Transformer for molecular property prediction with attention augmented by inter-atomic distances and graph structure.
Molecules, proteins and genomics · 520 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
- 42M
- Operations
- 520
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2020
- Cited by
- 254 (as of 15 November 2026)
- Authors
- Łukasz Maziarka, Tomasz Danel, Sławomir Mucha and others
- Source
- GitHub: ardigen/MAT
- License
- MIT
- 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
- m18511
- Graph hash
- 267bae011957947003930bdc4b7dcce3cd1d7901ef4c60c228c7be25ab88ad93
- Skeleton hash
- 898ede0ef437d33ca3b8cd7c4cec245fd8a82dbf1263419900da7de6ef917eed
- Architecture hash
- 3b9f6e83fac6880b60fa209e4ee72a42addeedaae7c0c0ab7fe2f308994e4161
- Diagram SHA-256
- 116c13e2c3009b4d2c11131153f02caf389e1896ab585a711e28503deab69b26
- 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
Molecule Attention Transformer (MAT) is a Transformer for predicting the properties of molecules. The paper sets it against a goal it calls largely an open challenge: a single neural network architecture that performs competitively across a range of molecule property prediction tasks, which the authors say may unlock a widespread use of deep learning in the drug discovery industry.
The central change is to augment the attention mechanism in Transformer using inter-atomic distances and the molecular graph structure. A separate PyTorch reimplementation exposes this as three weights, one each for the adjacency matrix, the distance matrix and the usual self-attention. The paper reports that MAT performs competitively on a diverse set of molecular prediction tasks. With a simple self-supervised pretraining, it says, MAT requires tuning of only a few hyperparameter values for downstream tasks.
The authors also show that the attention weights learned by MAT are interpretable from the chemical point of view. The official repository presents the average rank across the 7 datasets of the authors' benchmark. Its Transformer implementation is inspired by The Annotated Transformer.
Key idea. MAT augments the attention mechanism in Transformer with inter-atomic distances and the molecular graph structure to predict molecular properties.
- Molecule Attention Transformer
- MAT
- molecular property prediction
- molecule transformer
- drug discovery
- inter-atomic distances
- molecular graph
- graph transformer
- self-supervised pretraining
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{maziarka2020moleculeattentiontransformer,
title={Molecule Attention Transformer},
author={Łukasz Maziarka and Tomasz Danel and Sławomir Mucha and Krzysztof Rataj and Jacek Tabor and Stanisław Jastrzębski},
year={2020},
eprint={2002.08264},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2002.08264},
}