MiDi
A diffusion denoiser that generates a molecule's bond graph and 3D atom coordinates jointly.
Molecules, proteins and genomics · 4,113 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
- 24.1M
- Operations
- 4,113
- Framework
- PyTorch
- Recurrent
- No
- Published
- ECML-PKDD 2023
- Cited by
- 61 (as of 28 October 2026)
- Authors
- Clement Vignac, Nagham Osman, Laura Toni, Pascal Frossard
- Source
- GitHub: cvignac/MiDi
- 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
- m18438
- Graph hash
- df4071cb04e9ce935cf863263404597affceea36c81322e944f37cd0621ccdf6
- Skeleton hash
- c5c5687f1f6956913cee8cc18341cc1c9431448d948d7d4ba847152471122334
- Architecture hash
- 45c0671a7d32c0de05f7bee9e1eba4b4dfb1c3c27f932a89265c0d027db11db8
- Diagram SHA-256
- 4d38ddcb400eea712ab5d5147fc0c22c46db29aa9a6c3f0540ff7b43cd7107a5
- 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
MiDi is a diffusion model that generates a molecule's graph and the 3D arrangement of its atoms together. Earlier 3D generators, the paper says, were trained only to produce conformers and recovered the bonds in a later step from interatomic distances or chemical software such as OpenBabel. MiDi instead represents a molecule as a graph embedded in 3D, with atom types and formal charges on the nodes and bond types on the edges, and denoises all of it with one network.
Two noise models run at once: the 3D coordinates are corrupted with Gaussian noise, and the other components use discrete diffusion. The noise schedule is tuned separately for each component, so atom coordinates and bond types are denoised earlier during sampling and atom types and formal charges later. The denoising network is a Transformer built around a new rEGNN layer, which extends the EGNN layer with features that are not translation-invariant.
On the GEOM-DRUGS dataset the paper reports 92% stable molecules for MiDi, against 6% for the earlier EDM model and 40% for EDM followed by an algorithm that optimizes bond orders for validity. The code covers QM9 and GEOM with implicit or explicit hydrogens, and its README notes that some of the released checkpoints have been lost.
Key idea. MiDi denoises a molecule's graph and 3D coordinates in tandem, so it produces stable molecular graphs that are consistent with the generated conformers.
- MiDi
- Mixed Graph and 3D Denoising Diffusion
- Mixed Graph+3D Denoising Diffusion
- molecule generation
- 3D molecule generation
- molecular graph generation
- diffusion model
- drug discovery
- rEGNN
- GEOM-DRUGS
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{vignac2023midimixedgraph3d,
title={MiDi: Mixed Graph and 3D Denoising Diffusion for Molecule Generation},
author={Clement Vignac and Nagham Osman and Laura Toni and Pascal Frossard},
year={2023},
eprint={2302.09048},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2302.09048},
}