Synthesizable Molecular Generation via Soft-constrained GFlowNets with Rich Chemical Priors
Abstract
Lay Summary
Deep generative models can help propose new molecules for drug discovery, but promising candidates also need to be practical to make and test in the lab. Existing methods ensure this by building molecules from predefined chemical reactions, which improves synthesizability but ties the generator to a fixed reaction library. We propose S3-GFN, a more flexible approach that generates molecules as text-like chemical strings using a model initialized from large collections of known molecules. Rather than forcing the model to follow predefined synthesis routes, we train it to prefer molecules that are likely to be synthesizable and avoid those that are not. This preserves the flexibility of string-based generation while steering the model toward candidates that are both high-scoring for the target property and more likely to be made in practice. Our experiments show that this is especially useful when synthesizability requirements change or when training samples are limited.