Skip to main content
QUICK REVIEW

[Paper Review] Synthesizable Molecular Generation via Soft-constrained GFlowNets with Rich Chemical Priors

Hyeonah Kim, Minsu Kim|arXiv (Cornell University)|Feb 4, 2026
Machine Learning in Materials ScienceMaterials Science0 citations
TL;DR

S3-GFN induces synthesizability as a soft constraint in SMILES-based GFlowNets using contrastive replay with a pretrained SMILES prior to generate high-reward, synthesizable molecules.

ABSTRACT

The application of generative models for experimental drug discovery campaigns is severely limited by the difficulty of designing molecules de novo that can be synthesized in practice. Previous works have leveraged Generative Flow Networks (GFlowNets) to impose hard synthesizability constraints through the design of state and action spaces based on predefined reaction templates and building blocks. Despite the promising prospects of this approach, it currently lacks flexibility and scalability. As an alternative, we propose S3-GFN, which generates synthesizable SMILES molecules via simple soft regularization of a sequence-based GFlowNet. Our approach leverages rich molecular priors learned from large-scale SMILES corpora to steer molecular generation towards high-reward, synthesizable chemical spaces. The model induces constraints through off-policy replay training with a contrastive learning signal based on separate buffers of synthesizable and unsynthesizable samples. Our experiments show that S3-GFN learns to generate synthesizable molecules ($\geq 95\%$) with higher rewards in diverse tasks.

Motivation & Objective

  • Motivate de novo molecular design that yields synthesizable compounds for wet-lab validation.
  • Leverage a large-scale SMILES prior to guide generation toward chemically plausible, synthesizable space.
  • Introduce a soft-regularization framework that separates constraint enforcement from scalar rewards.
  • Demonstrate robust performance across diverse design tasks and constraint updates.

Proposed method

  • Start from a pretrained SMILES language model (GP-MolFormer) as a chemical prior.
  • Use a post-training GFlowNet objective with relative trajectory balance to learn a posterior p(x) ∝ R(x) p_prior(x) within the synthesizable space X′.
  • Maintain two replay buffers for synthesizable (positive) and unsynthesizable (negative) samples to support off-policy learning.
  • Introduce a contrastive auxiliary loss that suppresses negative trajectories relative to positives during replay training (L_aux).
  • Apply on-policy RTB updates to positive samples and replay-based contrastive updates to separate positive and negative regions.
  • Enable external search operators (e.g., mutations, genetic search) to enrich replay buffers and improve efficiency.

Experimental results

Research questions

  • RQ1Can SMILES-based generation with soft constraints achieve high synthesizability without hard reaction-based MDPs?
  • RQ2How does distributional regularization via contrastive replay impact the sampling mass within the synthesizable region?
  • RQ3Does post-training with a rich SMILES prior preserve desirable chemical properties while increasing rewards for synthesizable molecules?
  • RQ4How do constraint changes affect model robustness and how quickly can the model realign to new synthesis constraints?
  • RQ5What is the performance of S3-GFN on structure-based docking and retrosynthesis validation compared to reaction-based GFlowNets?

Key findings

  • S3-GFN achieves synthesizability rates over 95% while maintaining competitive rewards across molecular design tasks.
  • The contrastive auxiliary loss effectively concentrates probability mass within the synthesizable region and suppresses unsynthesizable regions.
  • S3-GFN yields higher Top-100 sEH rewards and maintains drug-like properties (e.g., QED) inherited from the prior.
  • Under structure-based docking tasks, S3-GFN achieves lower (better) average Vina scores and higher AiZynthFinder success rates than several reaction-based baselines.
  • When constraints change, S3-GFN preserves higher positive ratios and uniqueness, with faster realignment than reward-shaping baselines.
  • In sample-limited settings with external exploration, S3-GFN attains competitive or superior AUC Top-10 compared to non-GFN baselines and enhanced performance with genetic exploration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.