Semi-equivariant conditional normalizing flows, with applications to target-aware molecule generation

Eyal Rozenberg, Daniel FreedmanMach. Learn. Sci. Technol 2023

Abstract

This paper introduces semi-equivariant conditional normalizing flows, a novel generative framework for 3D graphs. By mathematically enforcing specific symmetry constraints, the model can generate high-quality "ligand" molecules tailored to fit a specific "receptor" protein. The proposed architecture significantly outperforms previous state-of-the-art methods in binding affinity and geometric realism.

Introduction

In drug discovery, a primary objective is the design of small molecules (ligands) that bind effectively to a specific target protein (a receptor). This task can be framed as a 3D graph generation problem: given a "base graph" (the receptor), the goal is to predict a "complement graph" (the ligand).

Physically realistic modeling of these complexes requires adhering to fundamental geometric symmetries. Specifically, the model must be:

  1. Invariant to rigid body transformations: Rotating or translating the entire receptor-ligand complex in 3D space should not alter the probability density of the configuration.
  2. Invariant to permutations: The likelihood of a generated graph must remain constant regardless of the ordering of its atoms.

Existing generative models often struggle with the significant size disparity between massive proteins and small drug molecules, or they fail to strictly enforce these geometric constraints, leading to chemically unrealistic structures.

Methodology

Semi-Equivariant Normalizing Flows

The authors propose a Continuous Normalizing Flow (CNF) approach. Normalizing flows transform a simple base distribution (e.g., a standard Gaussian) into a complex target distribution through a series of invertible, differentiable mappings.

Illustration of semi-equivariance constraints for receptor-ligand complexes.

The core innovation is the concept of Semi-Equivariance. Unlike standard equivariance, where the entire system transforms together, semi-equivariance accounts for the receptor being a fixed condition. The authors prove a theorem establishing the necessary conditions for the flow to remain invariant under rigid transformations and permutations of the input data.

Model Architecture

The architecture utilizes two specialized Equivariant Graph Neural Networks (EGNNs):

  • Base Graph EGNN: This component extracts invariant "summary signatures" from the receptor. By averaging receptor embeddings, the model avoids the "drowning out" effect where the large protein signal overwhelms the smaller ligand signal.
  • Conditional EGNN: This network uses the extracted signatures to guide the flow that generates the ligand's structure.

Generative Decomposition

The model factorizes the conditional probability $p(\text{Ligand} | \text{Receptor})$ into four sequential sub-problems: determining the number of atoms ($N$), their 3D positions (vertices $V$), the connectivity (edges $E$), and their chemical identities (atom types $A$).

Step-by-step decomposition of the ligand generation process.

Experimental Setup

The model was evaluated using the CrossDocked2020 dataset, a massive repository containing 22.5 million protein-ligand poses. For high-fidelity training, the authors filtered this to a subset of 132,863 training points and 63,929 validation points. The focus was placed on ligands with 30 atoms or fewer, comprising common elements (C, N, O, F).

Results and Analysis

The proposed model was compared against GraphBP, a leading auto-regressive baseline. Key findings include:

  • Binding Affinity ($\Delta$Binding): This metric measures the percentage of generated molecules that exhibit better binding than the original reference molecule. The proposed model achieved 35.7%, representing a 56% relative improvement over the best GraphBP baseline (22.76%).
  • Chemical Validity: The model reached 99.87% chemical validity, ensuring nearly all generated structures follow standard valency rules.
  • Geometric Fidelity: Analysis of bond length distributions showed that the model generates structures significantly closer to real-world references than baselines, which often produced unnaturally long bonds.
  • NLL as a Scoring Function: Because the model learns an exact probability density, its Negative Log-Likelihood (NLL) can serve as a rapid scoring function. Lower NLL values were found to correlate well with traditional, computationally expensive physics-based docking scores like Vina.

Conclusion and Future Work

While the model demonstrates state-of-the-art performance, some limitations remain. Discrete properties like atom types are currently handled via dequantization; future work could explore more direct treatments for discrete data. Additionally, while inference is efficient, the initial training cost is high (18 days on an A100 GPU). Beyond drug discovery, this semi-equivariant framework holds potential for other "base-plus-complement" problems in high-energy physics and computer vision.

Summary updated

BibTeX
@article{rozenberg2023semi,
  author = {Eyal Rozenberg and Daniel Freedman},
  title = {{Semi-equivariant conditional normalizing flows, with applications to target-aware molecule generation}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2023},
  doi = {10.1088/2632-2153/ace58c},
}
Figure