Rethinking Diffusion Models with Symmetries through Canonicalization with Applications to Molecular Graph Generation
Organizations: Massachusetts Institute of Technology · Zhejiang University · Peking University · Princeton University ·
Abstract
Many generative tasks in chemistry and science involve distributions invariant to group symmetries (e.g., permutation and rotation). A common strategy enforces invariance and equivariance through architectural constraints such as equivariant denoisers and invariant priors. In this paper, we challenge this tradition through the alternative canonicalization perspective: first map each sample to an orbit representative with a canonical pose or order, train an unconstrained (non-equivariant) diffusion or flow model on the canonical slice, and finally recover the invariant distribution by sampling a random symmetry transform at generation time. Building on a formal quotient-space perspective, our work provides a comprehensive theory of canonical diffusion by proving: (i) the correctness, universality and superior expressivity of canonical generative models over invariant targets; (ii) canonicalization accelerates training by removing diffusion score complexity induced by group mixtures and reducing conditional variance in flow matching. We then show that aligned priors and optimal transport act complementarily with canonicalization and further improves training efficiency. We instantiate the framework for molecular graph generation under symmetries. By leveraging geometric spectra-based canonicalization and mild positional encodings, canonical diffusion significantly outperforms equivariant baselines in 3D molecule generation tasks, with similar or even less computation. Moreover, with a novel architecture Canon, CanonFlow achieves state-of-the-art performance on the challenging GEOM-DRUG dataset, and the advantage remains large in few-step generation.
Figures & tables
| Methods | Atom Stab | Mol Stab | Valid | Opt-RMSD | NFE |
| EDM | 98.7 | 82.0 | 91.9 | – | 1000 |
| GCDM | 98.7 | 85.7 | 94.8 | – | 1000 |
| MUDiff | 98.3 | 89.9 | 95.3 | – | 1000 |
| FlowMol | 99.7 | 96.2 | 97.3 | – | 100 |
| MiDi | 99.8 | 97.5 | 97.9 | – | 500 |
| EQGAT-diff | 99.9 | 98.7 | 99.0 | – | 500 |
| Methods | Atom Stab | Mol Stab | Valid | Unique | Novel | NFE |
| FlowMol | 99.0 | 67.5 | 51.2 | - | - | 100 |
| MiDi | 99.8 | 91.6 | 77.8 | 100.0 | 100.0 | 500 |
| EQGAT-diff | 99.8 | 93.4 | 94.6 | 100.0 | 99.9 | 500 |
| SemlaFlow w/ OT | 99.8 | 97.3 | 93.9 | 100.0 | 99.6 | 100 |
| Canon. SemlaFlow w/ OT anneal (ours) | 99.8 | 98.1 | 95.0 | 100.0 | 99.7 | 100 |
| CanonFlow w/ OT anneal (ours) | 99.9 | 98.4 | 95.9 | 100.0 | 99.7 | 100 |
| Model | Mol Stab | Valid | Sample Time | NFE |
| EQGAT-diff | 93.4 | 94.6 | 2293.0 | 500 |
| SemlaFlow 50 w/ OT | 97.0 | 93.9 | 49.8 | 50 |
| Canon. SemlaFlow 50 | 97.5 | 94.9 | 50.1 | 50 |
| SemlaFlow 100 w/ OT | 97.3 | 93.9 | 99.3 | 100 |
| Canon. SemlaFlow 100 | 97.9 | 94.9 | 99.7 | 100 |
| Data | 100.0 | 100.0 | – | – |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Mol Stab | Valid | NFE |
| EQGAT-diff | 93.4 | 94.6 | 500 |
| SemlaFlow 50 w/ OT | 97.0 | 93.9 | 50 |
| CanonFlow 50 | 98.0 | 95.4 | 50 |
| SemlaFlow 100 w/ OT | 97.3 | 93.9 | 100 |
| CanonFlow 100 | 98.4 | 95.9 | 100 |
| Data | 100.0 | 100.0 | – |
| Model | CFG scale | Mol Stab | Valid | NFE |
| EQGAT-diff | – | 93.4 | 94.6 | 500 |
| SemlaFlow 50 | – | 97.0 | 93.9 | 50 |
| Canon. SemlaFlow 50 | 1.0 | 97.6 | 94.6 | 50 |
| Canon. SemlaFlow 50 | 1.5 | 97.4 | 94.7 | 50 |
| Canon. SemlaFlow 50 | 2.0 | 96.7 | 94.5 | 50 |
| SemlaFlow 100 | – | 97.3 | 93.9 | 100 |
| Model | CFG scale | Mol Stab | Valid | NFE |
| EQGAT-diff | – | 93.4 | 94.6 | 500 |
| SemlaFlow 100 | – | 97.3 | 93.9 | 100 |
| Canon. SemlaFlow 100 | 1.0 | 97.9 | 93.8 | 100 |
| Canon. SemlaFlow 100 | 1.5 | 97.7 | 94.2 | 100 |
| Canon. SemlaFlow 100 | 2.0 | 97.6 | 94.4 | 100 |
| Data | – | 100.0 | 100.0 | – |
| Group | Model | PE | OT | Mol Stab | Valid | NFE |
| EQGAT-diff | - | - | 93.4 | 94.6 | 500 | |
| SemlaFlow 20 | - | equivariant | 95.3 | 93.0 | 20 | |
| SemlaFlow 50 | - | equivariant | 97.0 | 93.9 | 50 | |
| SemlaFlow 100 | - | equivariant | 97.3 | 93.9 | 100 | |
| Canon. SemlaFlow 20 | - | equivariant | 95.1 | 93.5 | 20 | |
| Canon. SemlaFlow 50 | - | equivariant | 97.3 | 94.4 | 50 |
Generative Modeling
Generative modeling learns data distributions to create new samples, from images and text to molecules, simulations, and structured records.
See all 493 papers