Introduction
The discovery of novel therapeutic agents requires balancing two often-conflicting objectives: potent biological activity and chemical synthesizability. While 3D generative models excel at proposing high-affinity binding poses, they frequently generate "Frankenstein" molecules that are impossible to synthesize in a laboratory. Conversely, 2D synthesis-based models ensure makeability but often ignore the spatial constraints of the target protein pocket.
To bridge this gap, we present Compositional Generative Flows (CGFlow), a framework that interleaves discrete synthesis planning with continuous 3D structural modeling. Our implementation, 3DSynthFlow, jointly designs a molecule’s 3D binding pose and its chemical synthesis pathway, significantly improving sampling efficiency and biological relevance.
Methodology: Interleaved Generative Flows
CGFlow decomposes the generative process into two interleaved "flows":
- Compositional Flow: This handles the discrete steps of adding chemical building blocks (synthons). It leverages GFlowNets to sample actions that lead to high-reward outcomes, such as improved docking scores or drug-likeness.
- State Flow: This manages continuous features, specifically the 3D coordinates of atoms. It utilizes Flow Matching to transport coordinates from a noisy initial state to a refined, "clean" 3D conformation.
The core innovation lies in the interaction between these flows. As a new chemical fragment is added via the Compositional Flow, the State Flow immediately begins refining the 3D positions of all atoms currently in the system. This ensures the 3D pose is always conditioned on the specific synthetic steps taken. For drug design, 3DSynthFlow incorporates a hierarchical protein encoder (HierSemla) to process large protein pockets and predict optimal ligand placement.
Key Insights and Implementation
- State Interpolation: Transitioning between compositional states (e.g., adding a fragment) is formulated as an extension of the flow matching interpolation process. This allows the model to smoothly transition the 3D geometry as the chemical identity of the molecule changes.
- Interdependence: Jointly modeling the synthesis pathway and 3D pose allows the 3D geometry to guide building block selection, while chemical constraints prevent impossible 3D configurations. This feedback loop is critical for generating realistic ligands.
- Self-Conditioning: The model uses its previous best guess of the final 3D structure to inform subsequent discrete chemical steps. This "look-ahead" capability significantly improves decision-making in complex protein environments.
- Synthon-based Representation: Instead of using full reactants, the model uses "synthons" (fragments with attachment points). This prevents the model from "losing" atoms during simulated reactions and ensures the 3D coordinates remain consistent throughout the process.
Results and Evaluation
The model was evaluated on the LIT-PCBA and CrossDocked2020 benchmarks. 3DSynthFlow achieved a 4.2× boost in sampling efficiency over 2D synthesis-based baselines, finding high-quality, diverse molecules significantly faster.
Notably, it is the first method to achieve state-of-the-art performance in both Vina Dock scores (-9.42) and AiZynth success rate (36.1%) on the CrossDocked2020 benchmark. Analysis using the PoseCheck tool further revealed that generated molecules formed more hydrogen bonds and better hydrophobic interactions, indicating more rational drug design compared to previous 3D-unaware or synthesis-unaware methods.
Limitations and Future Work
Currently, the model's action space is restricted to arm and linker synthons, excluding complex non-linear pathways like ring-forming reactions. Additionally, 3D pose accuracy is limited by the underlying proxy reward models (e.g., Vina). Future research will focus on integrating more expressive 3D models, expanding the chemical library to include a wider variety of reaction types, and applying CGFlow to other compositional tasks like protein design or architectural layout generation.
Summary updated