Genetic-guided GFlowNets: Advancing in Practical Molecular Optimization Benchmark

Hyeonah Kim, Minsu Kim, Sanghyeok Choi, Jinkyoo Park · OpenReview

Abstract

The challenge of discovering new molecules with desired properties is crucial in domains like drug discovery and material design. Recent advances in deep learning-based generative methods have shown promise but face the issue of sample efficiency due to the computational expense of evaluating the reward function. This paper proposes a novel algorithm for sample-efficient molecular optimization by distilling a powerful genetic algorithm into deep generative policy using GFlowNets training, the off-policy method for amortized inference. This approach enables the deep generative policy to learn from domain knowledge, which has been explicitly integrated into the genetic algorithm. Our method achieves state-of-the-art performance in the official molecular optimization benchmark, significantly outperforming previous methods. It also demonstrates effectiveness in designing inhibitors against SARS-CoV-2 with substantially fewer reward calls.

Introduction

Designing new molecules with specific properties, such as high binding affinity to a viral protein, is a "needle in a haystack" problem. The chemical search space is astronomically large, and evaluating a molecule's "reward"—often through complex physics-based simulations called docking—is computationally expensive.

Current deep learning methods often struggle with sample efficiency; they require excessive reward evaluations to learn effectively because they typically navigate the search space from scratch. Conversely, classical Genetic Algorithms (GAs) excel at local search using expert chemical rules, such as swapping molecular fragments, but they often converge prematurely into local optima. Genetic-guided GFlowNets (Genetic GFN) aims to bridge this gap by creating a hybrid system that explores broadly like a neural network while optimizing deeply like a genetic algorithm.

Methodology: The Genetic GFN Framework

The Genetic GFN framework operates in an iterative loop that combines the diverse exploration of Generative Flow Networks with the local exploitation power of Genetic Algorithms. The process follows five key steps:

  1. SMILES Generation: A GFlowNet policy, based on a Gated Recurrent Unit (GRU), generates molecules as SMILES strings.
  2. Genetic Refinement: These generated molecules form a "population." A graph-based Genetic Algorithm performs crossover and mutation operations to refine these candidates into higher-reward molecules.
  3. Rank-based Replay Buffer: Evaluated molecules are stored in a buffer. A rank-based reweighting strategy prioritizes training on the most promising candidates.
  4. Off-policy Training: The GFlowNet is fine-tuned using Trajectory Balance (TB) loss. As GFlowNets are off-policy, they can distill the high-reward samples found by the GA into the neural policy.
  5. Regularization: To maintain chemical validity, a KL-divergence penalty keeps the policy close to a model pre-trained on the ZINC 250K dataset.
Overview of the Genetic GFN framework, showing the loop between neural generation and genetic refinement.

Experimental Results and Performance

The model was evaluated using the Practical Molecular Optimization (PMO) benchmark, which consists of 23 different tasks ranging from simple similarity searches to complex biological activity predictions. Genetic GFN achieved state-of-the-art performance, securing the highest total score (16.213) across the benchmark and outperforming over 25 baselines, including specialized GAs and other deep learning models.

Summary of AUC Top-10 scores across the PMO benchmark, highlighting Genetic GFN's superior performance.

As shown in the performance table, Genetic GFN took first place in 14 out of 23 tasks. Beyond benchmark performance, the model demonstrated significant efficiency in real-world drug design. In experiments targeting SARS-CoV-2 protein inhibitors (PLPro and RdRp), Genetic GFN identified high-scoring candidates in only 100 update steps, whereas competing methods required 1,000 steps to achieve comparable results.

Discussion and Conclusion

The synergy between exploration and exploitation is central to the success of Genetic GFN. The GA acts as a local expert guiding the GFlowNet toward reward peaks, while the GFlowNet provides diverse starting points that prevent the GA from stagnating. Furthermore, as an amortized sampler, the GFlowNet maintains molecular diversity, which is critical for drug discovery where multiple "lead" compounds are required.

While the method relies on domain-specific genetic operators, its success in molecular optimization suggests broad potential for other combinatorial problems, such as hardware architecture search or vehicle routing. Future work will focus on developing expert rules for these diverse domains to further leverage the sample efficiency of the Genetic GFN framework.

Summary updated

BibTeX
@inproceedings{kim2024genetic,
  author = {Hyeonah Kim and Minsu Kim and Sanghyeok Choi and Jinkyoo Park},
  title = {{Genetic-guided GFlowNets: Advancing in Practical Molecular Optimization Benchmark}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=B4q98aAZwt},
}
Figure