Pretraining Generative Flow Networks with Inexpensive Rewards for Molecular Graph Generation

Mohit Pandey, G. Subbaraj, Artem Cherkasov, Martin Ester, Emmanuel Bengio
2/14/2026

No official code found. Best implementation: diamondspark/AGFN (7 stars, MIT, last commit 2025-05-26).

Abstract

Generative Flow Networks (GFlowNets) have recently emerged as a suitable framework for generating diverse and high-quality molecular structures by learning from rewards treated as unnormalized distributions. Previous works in this framework often restrict exploration by using predefined molecular fragments as building blocks, limiting the chemical space that can be accessed. In this work, we introduce Atomic GFlowNets (A-GFNs), a foundational generative model leveraging individual atoms as building blocks to explore drug-like chemical space more comprehensively. We propose an unsupervised pre-training approach using drug-like molecule datasets, which teaches A-GFNs about inexpensive yet informative molecular descriptors such as drug-likeliness, topological polar surface area, and synthetic accessibility scores. These properties serve as proxy rewards, guiding A-GFNs towards regions of chemical space that exhibit desirable pharmacological properties. We further implement a goal-conditioned finetuning process, which adapts A-GFNs to optimize for specific target properties. In this work, we pretrain A-GFN on a subset of ZINC dataset, and by employing robust evaluation metrics we show the effectiveness of our approach when compared to other relevant baseline methods for a wide range of drug design tasks. The code is accessible at https://github.com/diamondspark/AGFN.

View on arXivView PDF

Code Implementations(1)

diamondspark/AGFNCommunity67%
MIT

Pretraining Generative Flow Networks with Inexpensive Rewards for Molecular Graph Generation

74Python, Jupyter NotebookMay 25, 20251 years agoMIT

Similar Papers

Cite this paper

@article{pandey2026pretraining,
  title  = {Pretraining Generative Flow Networks with Inexpensive Rewards for Molecular Graph Generation},
  author = {Mohit Pandey and G. Subbaraj and Artem Cherkasov and Martin Ester and Emmanuel Bengio},
  year   = {2026},
  eprint = {2503.06337},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.06337},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.06337.svg)](https://codeofpaper.com/paper/2503.06337)

Discussion