[Paper Review] FastFlows: Flow-Based Models for Molecular Graph Generation
FastFlows introduces a normalizing flow-based generative model for molecular graph generation that uses SELFIES encoding to ensure chemical validity and enables ultrafast sampling—over 24,000 molecules per second—achieving high validity, novelty, and uniqueness even with only 100 training molecules. The framework supports multi-objective optimization for druglikeness, synthetic accessibility, and complexity, identifying Pareto-optimal candidates efficiently.
We propose a framework using normalizing-flow based models, SELF-Referencing Embedded Strings, and multi-objective optimization that efficiently generates small molecules. With an initial training set of only 100 small molecules, FastFlows generates thousands of chemically valid molecules in seconds. Because of the efficient sampling, substructure filters can be applied as desired to eliminate compounds with unreasonable moieties. Using easily computable and learned metrics for druglikeness, synthetic accessibility, and synthetic complexity, we perform a multi-objective optimization to demonstrate how FastFlows functions in a high-throughput virtual screening context. Our model is significantly simpler and easier to train than autoregressive molecular generative models, and enables fast generation and identification of druglike, synthesizable molecules.
Motivation & Objective
- To develop a fast, data-efficient generative model for small molecule design that avoids the training instability and slow sampling of autoregressive models.
- To ensure chemical validity without post-hoc corrections by using SELFIES, a grammar-enforced molecular representation.
- To enable high-throughput virtual screening by coupling fast sampling with substructure filtering and multi-objective optimization.
- To demonstrate the feasibility of normalizing flows in low-data regimes for targeted chemical space exploration.
- To identify Pareto-optimal molecules balancing druglikeness, synthetic accessibility, and complexity.
Proposed method
- The model uses normalizing flows (NFs) with Real NVP transformations to map a standard normal base distribution to the target molecular distribution in latent space.
- Molecules are represented as SELFIES strings, which enforce valency and bonding rules, guaranteeing syntactic and semantic validity without post-hoc corrections.
- SELFIES strings are one-hot encoded and dequantized with uniform noise to enable continuous training while preserving exact recovery via floor operation.
- The flow architecture uses 32 layers, 8 residual blocks per layer, and checkerboard masking for efficient, parallelizable sampling.
- Substructure filters are applied post-generation to eliminate undesirable moieties, and metrics like QED, synthetic accessibility (SA), and synthetic complexity (SCScore) are computed for multi-objective optimization.
- Pareto frontier identification is performed via dominance checking to select non-dominated molecules across multiple objectives.
Experimental results
Research questions
- RQ1Can normalizing flows trained on only 100 molecules generate chemically valid, novel, and unique molecules at scale?
- RQ2Can SELFIES representation eliminate the need for post-hoc validity correction in flow-based molecular generation?
- RQ3How fast can flow-based models sample molecules while maintaining high-quality distributions in low-data regimes?
- RQ4Can multi-objective optimization over druglikeness, synthetic accessibility, and complexity identify high-potential candidates efficiently?
- RQ5What are the computational and architectural limitations of normalizing flows when applied to high-dimensional chemical spaces like ChEMBL?
Key findings
- FastFlows generated over 24,000 molecules per second when trained on QM9, demonstrating extreme sampling efficiency.
- With only 100 training molecules, FastFlows achieved high validity, novelty, and uniqueness without post-hoc corrections, thanks to SELFIES encoding.
- After substructure filtering and multi-objective optimization, the Pareto frontier was reduced from over 2,000 candidates to just three molecules in the QM9 experiment.
- On ChEMBL, the model generated 481 molecules per second, showing scalability to larger, more complex molecules despite increased dimensionality.
- The model’s performance was validated using established metrics: QED, SA, and SCScore, which were found to be correlated with model quality and useful for Pareto optimization.
- Despite high speed, the need for deep architectures with many bijective transformations remains a computational bottleneck for high-dimensional chemical spaces.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.