Geometric Representation Condition Improves Equivariant Molecule Generation

Zian Li, Cai Zhou, Xiyuan Wang, Xingang Peng, Muhan Zhang

TL;DR

GeoRCG is a novel two-stage framework that significantly improves 3D molecular generative models by breaking the generation process down into two steps: first generating a compact, symmetry-free geometric representation, and then decoding it into a full 3D molecule. This approach yields an average 50% performance boost in conditional molecule generation tasks and allows for a 10x reduction in the number of required diffusion steps without sacrificing quality.

What Problem Does This Paper Address?

Generating realistic 3D molecules is a holy grail for AI-driven drug discovery and materials science. However, directly modeling the distribution of 3D molecular structures is incredibly difficult.

Molecules naturally exist on a lower-dimensional manifold, but they are typically embedded in a much higher-dimensional 3D ambient space. Furthermore, physical laws dictate that molecular distributions must satisfy strict Euclidean symmetries—specifically, $O(3)$ or $SO(3)$ invariance (rotation and reflection) and $S(N)$ permutation invariance (atom reordering). Directly forcing a generative model to learn these complex, symmetric distributions often leads to unstable molecular structures and large errors, especially when trying to generate molecules with specific target properties (like a precise HOMO-LUMO energy gap).

Methods

The authors introduce GeoRCG (Geometric-Representation-Conditioned Molecule Generation), which decomposes the problem into a manageable two-stage pipeline:

  1. Representation Generation: A pre-trained, frozen geometric encoder (such as UniMol or Frad) maps 3D molecules into a compact, low-dimensional latent representation vector ($r$). Because this latent space strips away the complex spatial and permutation symmetries of the raw 3D coordinates, the distribution becomes much simpler. A lightweight MLP-based diffusion model easily learns to generate these representations.
  2. Molecule Generation: A conditional molecular generator (like Equivariant Diffusion Models (EDM) or SemlaFlow) takes the generated representation and decodes it into a valid 3D molecular structure.
Figure 1: Training and sampling procedure of GeoRCG for unconditional molecule generation. a) During training, each molecule M is mapped into a representation r by a pre-trained, frozen geometric encoder E. The representation distribution is then learned by a lightweight representation generator. The molecule generator is trained in a self-conditioned manner, generating a molecule M conditioned on its own representation E(M). b) During sampling, an informative representation is first generated, which subsequently guides the molecule generator to produce high-quality molecules.

To prevent the molecule generator from overfitting to the training representations, the authors introduce a simple yet effective representation perturbation technique, adding a small amount of Gaussian noise to the latents during training. During sampling, they leverage low-temperature sampling and classifier-free guidance to flexibly trade off molecular quality and diversity without retraining.

Datasets

The framework was evaluated on two widely recognized benchmarks for 3D molecule generation:

  • QM9: A dataset containing roughly 134k small stable organic molecules with up to 9 heavy atoms, annotated with various chemical properties.
  • GEOM-DRUG: A much larger and more complex dataset featuring larger, drug-like molecules with a wider variety of chemical elements and conformations.

Key Insights and Ideas

  • Symmetry is the Enemy of Learning: The core "aha" moment is that by mapping molecules to a latent space using an equivariant encoder, the symmetries are absorbed. Generating a vector without symmetry constraints is fundamentally easier than generating a point cloud that must respect 3D rotations and atom permutations.
  • Leveraging Self-Supervised Knowledge: Instead of learning chemistry from scratch, GeoRCG piggybacks on advanced pre-trained molecular encoders. These encoders have already learned approximations of molecular force fields through pretext tasks (like coordinate denoising), providing a rich semantic prior for the generator.
  • Size Matters: The authors found that conditioning the representation generator on the atom count ($N$) drastically simplifies the learning process. As shown via t-SNE visualizations, molecules naturally cluster by size in the latent space; explicitly accounting for this prevents mode collapse and ensures structural consistency.
Figure 2: t-SNE visualizations of the representations pro- duced by Frad (Feng et al., 2023) for the QM9 dataset (left) and by Unimol (Zhou et al., 2023) for the GEOM-DRUG dataset (right). The representations exhibit clear clustering based on node count.

Key Results

  • Massive Boost in Property Targeting: In conditional generation tasks on QM9 (generating molecules to match specific properties like polarizability or dipole moments), GeoRCG achieved an average 50% reduction in Mean Squared Error (MSE) compared to state-of-the-art baselines.
  • Improved Structural Stability: When applied to EDM, GeoRCG boosted the percentage of stable molecules generated from 82% to 92.32% on QM9. It also consistently enhanced SemlaFlow, a recent state-of-the-art model, on the challenging GEOM-DRUG dataset.
  • 10x Acceleration: Traditional diffusion models often require 1,000 sampling steps to produce high-quality molecules. With the guidance of the geometric representation, GeoRCG can cut this down to just 100 steps while fully preserving generation quality.

Limitations and Future Work

Despite its strong performance, GeoRCG has two notable limitations:

  1. Dependency on Pre-trained Encoders: The quality of the generated molecules is fundamentally bounded by the quality of the latent space. If the pre-trained encoder produces noisy or uninformative representations (as can happen with highly complex datasets), the downstream generation quality degrades.
  2. Computational Overhead during Sampling: Implementing classifier-free guidance requires doubling the batch size during the reverse diffusion process, which roughly doubles the memory and computational footprint during inference.

Future work will focus on developing more robust pre-training strategies tailored specifically for generative tasks and optimizing the sampling efficiency to mitigate the guidance overhead.

Summary updated

BibTeX
@inproceedings{li2025geometric,
  author = {Zian Li and Cai Zhou and Xiyuan Wang and Xingang Peng and Muhan Zhang},
  title = {{Geometric Representation Condition Improves Equivariant Molecule Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=79O2XccGXZ},
}
Figure