Atoms as 3D tokens
Every atom is a token, 44.4 on average in GEOM-Drugs; ring geometry is learned atom by atom.
1Technical University of Munich2Munich Data Science Institute3Munich Center for Machine Learning4Imperial College London
TL;DRGenerate 3D molecules from rigid motifs, not atoms: one joint flow over motif types and their $\mathrm{SE}(3)$ poses, with each motif's inner geometry fixed by its canonical pose.
Molecule. We start from the usual all-atom representation: $N$ atoms with coordinates $\mathbf{y}_j$ and types $h_j$ from the atom vocabulary $\mathcal{V}_a$.
Rigid motifs. Keep planar rings, double and triple bonds and bonds to hydrogens; cut the rest, and split motifs rarer than a fraction $\alpha$ of the data. Isolated atoms get dummy atoms towards their neighbours, which fix their orientation. The molecule $\boldsymbol{\mathcal{M}}$ becomes $K$ motifs $m_k$, each with a frame $\mathbf{T}_k$: a rotation $\mathbf{R}_k$ and a translation $\mathbf{x}_k$.
Motif tokens. Each token pairs a frame $\mathbf{T}_k$ with a type $m_k$ from the motif vocabulary $\mathcal{V}_m$. A type stores its canonical pose $\mathbf{P}_k$, its atom types $\mathbf{h}_k$ and its symmetry rotations $\mathcal{S}_k$.
Noise. Every type $m_0$ starts masked, rotations $\mathbf{R}_0$ are drawn uniformly from $\mathrm{SO}(3)$ and translations $\mathbf{x}_0$ from a Gaussian.
Joint flow. Each type $m_t$ unmasks by a discrete flow [2]; each rotation $\mathbf{R}_t$ follows a geodesic and each translation $\mathbf{x}_t$ a straight line [1]. One IPA network predicts all of them.
Deterministic lift. The atoms $\mathbf{Y}_k$ of each motif are its canonical pose $\mathbf{P}_k$ placed by its frame $(\mathbf{R}_k,\mathbf{x}_k)$, with no learned decoder or assembly.
Atom-level models learn even the most rigid parts of a molecule, such as aromatic rings, atom by atom. Earlier protein structure generators already treated residues as rigid frames, and graph-based generators build molecules from fragments. MotiFlow brings the two ideas together for general drug-like molecules in 3D.
Every atom is a token, 44.4 on average in GEOM-Drugs; ring geometry is learned atom by atom.
Every backbone residue is an $\mathrm{SE}(3)$ frame with a fixed vocabulary of 20 side-chains.
Chemically meaningful fragments, but generated as 2D graphs without any 3D geometry.
52 atoms → 11 motif tokens with $\mathrm{SE}(3)$ frames; each motif keeps its canonical geometry.
A fragmentation has to give rigid pieces, at least three non-collinear points per piece to fix a frame, and pieces frequent enough to learn. MotiFlow keeps double and triple bonds, bonds to hydrogens and all bonds within approximately planar rings and fused ring systems, and cuts the rest. Motifs rarer than a fraction $\alpha$ of the dataset are split further; $\alpha$ is the only tunable parameter. Isolated atoms and collinear motifs get dummy atoms that lock their orientation.
Treating planar rings as motifs raises atom stability on both datasets, at a small cost in validity × connectivity. A smaller $\alpha$ gives a larger vocabulary with rarer motifs.
Rigid motifs compress the all-atom and heavy-atom representations by 3.4× and 1.9×, with no learned latent space and no expensive reconstruction.
Each motif type keeps one arbitrarily chosen and fixed canonical pose $\mathbf{P}_k$. Every instance in the data gets its rotation by Kabsch alignment to that pose, using a graph automorphism for the atom correspondence, which avoids searching over all $N!$ orderings. Symmetric motifs, such as a para-substituted benzene, have several rotations $\mathcal{S}_k$ that map them onto themselves, so their frame is only defined up to $\mathcal{S}_k$. During training the target is the equivalent rotation closest to the current noisy frame.
The dashed frame is a noisy rotation $\mathbf{R}_t$; solid frames are the $|\mathcal{S}_k|$ equivalent targets, with their geodesic distance to $\mathbf{R}_t$. Regressing to the closest one avoids conflicting gradients from equivalent but distant targets at small $t$.
Following the multimodal flows of Campbell et al. [2], the conditional path factorises over motifs and modalities: a discrete flow decides what each motif is, an $\mathrm{SE}(3)$ flow decides where it sits. The factorisation only defines the path; one network sees the whole noisy molecule and predicts all of it.
Every type starts as $[\mathrm{MASK}]$. A masked motif unmasks to its true type at rate $(1-t)^{-1}$, so on the conditional path each one reveals at a uniform time and then stays fixed.
Translations move on straight lines, rotations along geodesics of $\mathrm{SO}(3)$. Shown for the highlighted motif, with its frame at evenly spaced times.
Built on FoldFlow-Base [1], developed for protein backbones. Its residue-index edge features are replaced by purely geometric ones, since motifs have no order. Trained with $\mathcal{L}=\mathbb{E}_t\big[\mathcal{L}_{\text{trans}}+\mathcal{L}_{\text{rot}}+\tfrac{1}{1-t}\,\mathcal{L}_{\text{DFM}}\big]$.
@inproceedings{poletukhin2026d,
title = {3D Molecule Generation from Rigid Motifs via $\mathrm{SE}(3)$ Flows},
author = {Roman Poletukhin and Marcel Kollovieh and Eike Eberhard and Stephan G{\"u}nnemann},
booktitle = {The Fortieth Annual Conference on Neural Information Processing Systems},
year = {2026},
url = {https://openreview.net/forum?id=10JJ9uxd6J}
}