FlexiFlow: decomposable flow matching for generation of flexible molecular ensemble

Riccardo Tedoldi, Ola Engkvist, Patrick Bryant, Hossein Azizpour, Jon Paul Janet, Alessandro Tibo

Introduction

In drug discovery, a molecule's three-dimensional shape is just as critical as its chemical formula. Molecules are not rigid entities; rather, they exist as flexible "ensembles" that dynamically shift between various low-energy shapes known as conformers. A drug's efficacy often hinges on its ability to adopt a specific, sometimes higher-energy, conformation that perfectly fits a target protein's binding pocket.

Despite this reality, most current state-of-the-art artificial intelligence models for de novo 3D molecular design are limited to generating a single, static 3D snapshot of a molecule. To explore the conformational landscape, researchers typically rely on computationally expensive physics-based simulations, such as Molecular Dynamics or tools like CREST. This creates a significant bottleneck: there is a pressing need for generative models capable of simultaneously designing a molecule and predicting its full range of flexible movement without the massive computational overhead of classical physics.

To bridge this gap, researchers have introduced FlexiFlow, a novel generative framework that jointly designs new molecular graphs and their entire ensemble of 3D conformers.

The FlexiFlow Framework

FlexiFlow builds upon the emerging success of Flow Matching, a generative technique that learns to map simple noise distributions to complex data distributions (such as molecular structures) by following a learned vector field.

The architecture introduces several key technical innovations to handle the complexities of molecular ensembles:

  • Flow Decomposition: The core innovation of FlexiFlow is its decomposable objective. The model assumes that given a "representative" reference shape for a molecule, all other possible conformers are conditionally independent of each other. This decomposition breaks down a massive, highly complex joint probability problem into manageable, scalable components.
  • Equivariant Architecture: FlexiFlow utilizes a specialized Graph Neural Network (GNN) that is rotationally and translationally equivariant. This ensures that any rotation or translation applied to the input noise results in an identical transformation in the generated molecule, strictly preserving the underlying physical symmetries.
  • Joint Generation: Unlike previous pipelines that generate a 2D graph and subsequently "guess" the 3D coordinates, FlexiFlow generates the atoms, bonds, and multiple sets of 3D coordinates simultaneously.
  • Low-Overhead Inference: Thanks to the flow decomposition strategy, generating an additional conformer adds only about 30% more computation time compared to generating a single pose, making it highly efficient.

Experimental Setup

The researchers trained and evaluated FlexiFlow across several standard benchmarks to test its versatility and accuracy:

  • QM9: A dataset comprising approximately 134,000 small organic molecules (up to 9 heavy atoms).
  • GEOM Drugs: A much larger and more complex dataset of roughly 400,000 drug-like molecules, each featuring an average of 21 diverse 3D conformers.
  • PDBBind: Utilized for the protein-conditioned task, where the model is challenged to design a molecule that fits into a specific protein binding pocket.

Key Results and Insights

FlexiFlow demonstrates remarkable performance across both general molecular generation and targeted drug design tasks.

State-of-the-Art Generation and Stability

On both the QM9 and GEOM Drugs benchmarks, FlexiFlow matched or exceeded existing models in terms of validity, uniqueness, and novelty. Notably, it achieved 100% atom stability and 99.9% molecular stability on the QM9 dataset.

Superior Conformational Ensembles

When compared to industry standards like RDKit and Adjoint Sampling, the conformers generated by FlexiFlow were significantly closer to the "ground truth" energy minima typically identified by expensive quantum-mechanical tools. The model broadly explores the conformational landscape, frequently identifying distinct local minima that physics-based tools would take much longer to find.

Enhanced Protein Binding

In protein-ligand docking tests, the importance of generating ensembles became glaringly apparent. FlexiFlow's "alternative" poses often achieved significantly better docking scores (Vina scores) than the primary reference pose. This proves that generating a diverse set of conformers is vital for identifying the most viable drug candidates.

Flexibility Transfer

One of the most powerful insights from the study is FlexiFlow's ability to perform "flexibility transfer." The model can learn the physical "rules of wiggling" from a broad, general dataset like GEOM Drugs and successfully apply them to highly specific tasks—such as protein docking—even when the target dataset contains only static pockets without accompanying conformational data.

Limitations and Future Directions

While FlexiFlow represents a major leap forward in 3D molecular generation, the authors acknowledge a few areas for future improvement:

  • Static Pockets: Currently, the model treats the protein binding pocket as a rigid, static object. Because proteins are inherently flexible, future iterations of the model will aim to support joint protein-ligand dynamics.
  • Data Preparation at Scale: Scaling the model to even larger, more complex biological systems will require more sophisticated data pipelines capable of handling the combinatorial explosion of possible 3D configurations.
  • Inference Optimization: Although a 30% overhead for additional conformers is relatively low, further optimizations could accelerate ensemble generation even more, paving the way for ultra-high-throughput virtual screening.

Ultimately, FlexiFlow proves that treating molecular flexibility as a fundamental component of the generative process—rather than an afterthought—yields more realistic, diverse, and useful molecules for drug discovery.

Summary updated

BibTeX
@inproceedings{tedoldi2026flexiflow,
  author = {Riccardo Tedoldi and Ola Engkvist and Patrick Bryant and Hossein Azizpour and Jon Paul Janet and Alessandro Tibo},
  title = {{FlexiFlow: decomposable flow matching for generation of flexible molecular ensemble}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=iL4Uo9HeXc},
}
Figure