Applications of Modular Co-Design for De Novo 3D Molecule Generation

Danny Reidenbach, Filipp Nikitin, Olexandr Isayev, Saee Paliwal · DOI

Abstract

Generating physically realistic 3D molecular structures remains a significant challenge in drug discovery. We present Megalodon, a scalable transformer-based model family that co-designs the handling of discrete 2D graph data and continuous 3D coordinates. Megalodon achieves state-of-the-art performance in generating chemically valid and physically stable molecules, reaching energy levels 2-10x lower than previous generative models and demonstrating exceptional scaling capabilities for large, drug-like compounds.

Introduction

De novo 3D molecule generation is critical for identifying novel therapeutic candidates. However, existing models often struggle to produce realistic 3D conformations, frequently generating structures that are topologically stable on paper but physically impossible or high-energy in reality. Furthermore, a significant "scaling gap" exists: models effective for small molecules often fail when generating larger compounds. Current evaluation metrics also frequently overlook 3D physics, focusing instead on 2D connectivity. Megalodon addresses these gaps by bridging discrete graph topology and continuous 3D geometry through a unified architecture.

Methods

Megalodon utilizes a hybrid architecture centered around a core Transformer "trunk" to model discrete data such as atom types, bond types, and charges. This is integrated with equivariant layers—based on E(n) Equivariant Graph Neural Networks—to update 3D coordinates.

The Megalodon architecture features a fused invariant transformer block and modular co-design for 2D and 3D data.

Key methodological innovations include:

  • Modular Co-Design: A joint denoising objective for both 3D positions and 2D bonds.
  • Independent Noise Schedules: Separate schedules for different data types allow the model to learn how 2D graphs inform 3D structures, enabling conditional generation.
  • Self-Conditioning: A "re-reading" mechanism where the model refines its own previous predictions to accelerate convergence.
  • Framework Versatility: Megalodon is the first 3D generator tested with both stochastic Diffusion and deterministic Flow Matching frameworks.

Results and Key Insights

Megalodon sets a new benchmark for 3D molecular generation, outperforming previous state-of-the-art models like MiDi and EQGAT-diff across both 2D validity and 3D distributional metrics.

Scaling and Large Molecule Generation

A primary breakthrough is the model's scaling behavior. Increasing the model size to 40 million parameters resulted in a 49x improvement in generating valid molecules with over 100 atoms. While previous models' performance drops precipitously as molecule size increases, Megalodon maintains high validity.

Megalodon maintains significantly higher validity and stability for large molecules compared to previous SOTA models.

Physical Realism and Energy Milestones

Megalodon is the first generative model to reach a median relaxation energy of ~3 kcal/mol. Given that the "thermal window" for real-world molecules is approximately 2.5 kcal/mol, Megalodon's outputs are nearly indistinguishable from stable, real-world conformations.

Efficiency and Flexibility

The "Megalodon-quick" variant (19M parameters) provides a 44x throughput improvement over baselines for large molecules. Additionally, the model demonstrates "zero-shot" conditioning capabilities, generating 3D structures from 2D graph prompts with competitive accuracy without specific fine-tuning.

Discussion and Limitations

While Megalodon represents a significant leap forward, it faces certain limitations. The reliance on $N^2$ edge features introduces computational complexity that scales poorly for extremely large systems. Additionally, the current use of one-hot encoding limits generalization to rare atom types not present in the training set. Future work will focus on reducing computational overhead and expanding the chemical vocabulary to include a wider range of elements and complex biological interactions like protein-ligand binding.

Summary updated

BibTeX
@inproceedings{reidenbach2024applications,
  author = {Danny Reidenbach and Filipp Nikitin and Olexandr Isayev and Saee Paliwal},
  title = {{Applications of Modular Co-Design for De Novo 3D Molecule Generation}},
  booktitle = {AIDrugX @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=KNTyaCNG7Y},
}
Figure