An equivariant generative framework for molecular graph-structure Co-design

Zaixi Zhang, Qi Liu, Chee‐Kong Lee, Chang‐Yu Hsieh, Enhong Chen

Abstract

Molecular design requires the simultaneous consideration of chemical topology (2D graphs) and spatial geometry (3D structures). Traditional generative models often treat these modalities in isolation, leading to physically implausible structures or a lack of conformational awareness. We present MolCode, a novel equivariant generative framework that co-designs 2D and 3D molecular representations. By utilizing autoregressive flows and a local spherical coordinate system, MolCode achieves near-perfect chemical validity and superior binding affinities in structure-based drug design tasks.

1. Introduction

In computational chemistry, molecules are typically represented as either 2D graphs—defining atom types and bond connectivity—or 3D point clouds—defining spatial coordinates. However, these views are intrinsically linked; the 3D conformation determines biological function, while the 2D topology enforces chemical valency and stability.

Existing models often struggle to bridge this gap. 2D-only models ignore the spatial constraints necessary for drug-protein interactions, whereas 3D-only models frequently produce "broken" molecules that violate basic chemical rules, such as unclosed rings or impossible valency states. MolCode addresses these limitations through a unified framework where 3D geometry informs bond creation and 2D connectivity guides spatial placement. This "co-design" approach ensures that generated molecules are both chemically valid and geometrically optimized for specific tasks.

2. Methodology

MolCode is built upon an Equivariant Generative Framework using autoregressive flows. The generation process follows a sequential, atom-by-atom construction strategy.

2.1 Roto-translation Equivariance

To maintain physical consistency, the model must be equivariant to rotations and translations in 3D space. MolCode achieves this by employing a Local Spherical Coordinate System ($d, \theta, \phi$). Rather than predicting absolute Cartesian coordinates, the model predicts distances and angles relative to "focal" atoms within the growing molecular structure. This ensures that the underlying physics of molecular stability are learned independently of the molecule's orientation or position.

2.2 Unified Encoding and Valency Constraints

The framework integrates 3D Graph Neural Networks (GNNs), such as SphereNet or EGNN, with a specialized Multi-Head Attention mechanism. This architecture explicitly encodes bond information, allowing the model to maintain a global context of the molecule's topology during generation. Furthermore, a "validity filter" is incorporated into the generation loop to reject bond configurations that violate valency rules, effectively steering the flow model toward chemically realistic candidates.

3. Experimental Evaluation

The performance of MolCode was evaluated on two primary benchmark datasets:

  • QM9: Comprising approximately 134,000 small organic molecules, used to test the model's ability to generate valid structures and optimize quantum properties like the HOMO-LUMO gap.
  • CrossDocked2020: Containing 22.5 million protein-molecule complexes, used for Structure-Based Drug Design (SBDD), where the objective is to generate ligands that fit specific protein pockets.

4. Key Results

MolCode demonstrated state-of-the-art performance across multiple metrics, establishing new benchmarks for molecular generation.

4.1 Validity and Uniqueness

On the QM9 dataset, MolCode achieved a chemical validity of 99.95% and a uniqueness score of 98.75%. This represents a significant improvement over previous benchmarks like EDM, which achieved 92.27% validity. This high validity rate confirms that the co-design approach successfully enforces chemical rules during the 3D generation process.

4.2 Structure-Based Drug Design

In SBDD tasks, MolCode generated ligands with higher binding affinities (measured by Vina Score) than the original reference molecules in 61.8% of cases. Additionally, the model produced molecules with superior Quantitative Estimate of Drug-likeness (QED) and Synthetic Accessibility (SA) scores compared to existing baselines like Pocket2Mol.

5. Discussion and Conclusion

The success of MolCode highlights the synergy between molecular geometry and topology. By enforcing equivariance and co-designing the 2D and 3D structures, the model learns the fundamental principles of molecular stability rather than merely memorizing coordinate patterns.

Despite its performance, the computational cost of high-fidelity 3D GNNs remains a challenge for scaling to larger systems. Future work may explore fragment-based generation—adding pre-defined chemical motifs rather than individual atoms—to improve efficiency and structural realism. Ultimately, while in silico results are promising, experimental wet-lab validation remains the necessary final step for confirming the efficacy of MolCode-designed therapeutics.

Summary updated

BibTeX
@inproceedings{zhang2023equivariant,
  author = {Zaixi Zhang and Qi Liu and Chee‐Kong Lee and Chang‐Yu Hsieh and Enhong Chen},
  title = {{An equivariant generative framework for molecular graph-structure Co-design}},
  booktitle = {Chemical},
  year = {2023},
  doi = {10.1039/d3sc02538a},
}
Figure