Learning Disentangled Equivariant Representation for Explicitly Controllable 3D Molecule Generation

Haoran Liu, Youzhi Luo, Tianxiao Li, James Caverlee, Martin Renqiang Min

Abstract

In the field of drug discovery, the ability to precisely modify specific molecular properties while maintaining a core structural scaffold—a process known as lead optimization—is critical. Current 3D generative models often struggle with this, either lacking explicit latent spaces for control or failing to respect physical symmetries like E(3)-equivariance. This paper presents the E(3)-equivariant Wasserstein Autoencoder (E3WAE), a novel framework that disentangles a molecule's chemical properties from its structural context. By employing separate equivariant encoders and a fragment-based generation strategy, E3WAE allows for explicit "property dialing" without compromising structural integrity. Experimental results on benchmark datasets GEOM-Drugs and CrossDocked2020 show that E3WAE outperforms existing state-of-the-art models in property targeting and demonstrates superior capabilities in context-preserving molecular generation.

Introduction

The primary goal of generative modeling in drug discovery has shifted from merely producing valid molecules to performing sophisticated "lead optimization." Scientists require tools that can refine a promising candidate's solubility or synthetic ease without destroying the fundamental architecture responsible for its biological activity.

Existing approaches generally fall into two categories: auto-regressive models and equivariant diffusion models. While auto-regressive models like G-SchNet build molecules sequentially, they often lack fine-grained control over global properties. Conversely, equivariant diffusion models like EDM generate high-quality 3D structures but lack an explicit, interpretable latent space. This absence makes it difficult to "anchor" a molecule's shape while independently adjusting its attributes. The challenge lies in developing a model that adheres to E(3)-equivariance—ensuring that rotations or translations of a molecule do not alter its identity—while providing a disentangled "control panel" for its properties.

Methodology

The proposed E(3)-equivariant Wasserstein Autoencoder (E3WAE) addresses these challenges through three core architectural pillars.

The E3WAE architecture featuring disentangled encoders for property and structural context, alongside an E(3)-equivariant decoder.

First, the model utilizes a Disentangled Latent Space composed of two separate E(3)-equivariant encoders. One encoder maps the input to property latent variables ($z_p$), while the other captures the structural context ($z_s$). To prevent information leakage between these spaces, a Maximum Mean Discrepancy (MMD) loss is applied, enforcing independence between the distributions.

Second, E3WAE adopts Fragment-Based Generation. Instead of placing individual atoms, which can lead to chemically unstable structures, the model assembles molecules from predefined fragments (e.g., benzene rings). This approach significantly reduces the search space and ensures chemical validity.

Third, the model incorporates an Alignment-Based Coordinate Loss. A significant hurdle in 3D generation is the lack of a fixed reference frame; predicted coordinates may be rotated relative to the ground truth. E3WAE employs the Kabsch algorithm to align generated structures with targets during training, allowing the equivariant network to learn effectively without external reference frames.

A key innovation is the handling of symmetry: the model ensures property predictions are invariant (rotation-independent) while coordinate predictions remain equivariant (rotating the input results in an identical rotation of the output).

Evaluation and Results

The performance of E3WAE was rigorously tested on two major benchmarks: GEOM-Drugs, containing approximately 304,000 drug-like molecules, and CrossDocked2020, which features 100,000 structures of ligands bound to protein pockets.

The model's ability to hit target values for properties such as Asphericity (shape), QED (drug-likeness), and SAS (synthetic accessibility) was compared against state-of-the-art baselines like EDM and HierDiff.

Quantitative comparison of E3WAE against baseline models across multiple property metrics on GEOM and CrossDocked2020 datasets.

As shown in the results, E3WAE outperformed existing models on 7 out of 8 property metrics. Notably, on the GEOM-Drugs dataset, it achieved a Mean Squared Error (MSE) for QED of 0.072, a substantial improvement over HierDiff’s 0.120.

Beyond property targeting, the model demonstrated a unique "Context-Preserving" capability. By combining the structural code ($z_s$) of one molecule with the property code ($z_p$) of another, E3WAE can generate novel molecules that retain the template's shape while adopting new chemical characteristics. In drug discovery simulations using the CrossDocked2020 dataset, the model successfully generated ligands with higher binding affinities (Vina Dock scores) than the original reference molecules.

Discussion and Future Work

While E3WAE represents a significant step forward in controllable 3D molecule generation, certain limitations remain. Disentangling multiple, naturally correlated properties (e.g., Asphericity and QED) is challenging, and forcing independence can sometimes impact performance. Furthermore, while the model generates 3D coordinates for fragments, the final "Atom Conformation Assembling" still relies on external chemoinformatics libraries like RDKit. Future research will focus on making the entire pipeline, from fragment selection to individual atom placement, fully end-to-end and differentiable.

Summary updated

BibTeX
@inproceedings{liu2025learning,
  author = {Haoran Liu and Youzhi Luo and Tianxiao Li and James Caverlee and Martin Renqiang Min},
  title = {{Learning Disentangled Equivariant Representation for Explicitly Controllable 3D Molecule Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i18.34071},
}
Figure