Temporal Selective Exploration for Reinforcement Learning-Guided Continuous-Discrete Flow Matching in 3D Molecular Design
Authors: Lianghong Chen, Yan Yi Li, Gen Zhou, Yuxi Long, Ganlin Feng, Mike Domaratzki, Pingzhao Hu
Organizations: Department of Computer Science, Western University, London, Ontario, Canada · Department of Biochemistry, Western University, London, Ontario, Canada
Flow matching has shown strong potential in generative tasks, while its optimization via Reinforcement Learning (RL) remains underexplored, especially in continuous-discrete mixed settings. Moreover, flow matching is formulated as an Ordinary Differential Equation (ODE), whose deterministic trajectories do not naturally support RL optimization. Introducing stochasticity by converting the entire trajectory into a Stochastic Differential Equation (SDE) is a common practice. Nevertheless, not all timesteps contribute to the final outcomes, and redundant exploration introduces additional noise. Furthermore, in multi-objective settings, some objectives may dominate the optimization while others receive insufficient updates. In this study, we propose an RL-guided continuous-discrete flow matching framework with temporal selective exploration for 3D de novo molecular design. Specifically, our method jointly optimizes continuous and discrete flow matching for atomic coordinates and molecular identities, respectively, while restricting exploration to timesteps that primarily contribute to target properties, reducing ineffective exploration. We also introduce a reward-based advantage calibration mechanism to mitigate objective dominance in multi-objective optimization. The framework is applied to design inhibitors for both the well-studied target protein EGFR and the challenging Pin1 protein. We identify some novel candidate inhibitors, supported by in silico validation.
Figures & tables
Figure 1: Illustration of temporal selective exploration. The curves show the sensitivity of QED, SAS, and binding affinity to perturbations along the generation trajectory. The shaded regions indicate timesteps used for stochastic exploration under (a) Full-SDE and (b) temporal selection.
Figure 2: Overview of the proposed RL-guided continuous-discrete flow matching framework with temporal selective exploration. (A) Overall workflow. A continuous-discrete flow matching model is optimized via RL to generate molecules with improved drug-relevant properties. Generated molecules are evaluated using QED, SAS, and binding affinity. CRAC balances the objectives using their remaining gaps to the target criteria and constructs the advantage for model updates. Top generated molecules are further evaluated using ADMET analysis and MD simulation. (B) Temporal selection. Probe trajectories are sampled along the generation process. At each probed timestep, each probe is expanded into multiple perturbed branches to estimate how molecular properties respond to perturbations. The label Perturb denotes generating multiple stochastic branches from the same intermediate molecular state. The ODE and SDE labels describe continuous-coordinate dynamics, while discrete molecular attributes evolve through CTMC transitions. For each objective, sensitivity is estimated using an LCB criterion, and the selected regions are combined into the final temporal window. Stochastic exploration is then applied within the selected window during RL training.
Method
Validity
Uniqueness
Novelty
VUN
Atom stab.
Mol. stab.
Loose
Strict
3W2S
Base Model
99.37 ± 0.15
99.97 ± 0.06
100.00 ± 0.00
99.33 ± 0.12
99.99 ± 0.00
99.77 ± 0.06
70.50 ± 0.85
47.53 ± 0.99
Best-of-N
100.00 ± 0.00
98.80 ± 0.10
100.00 ± 0.00
98.80 ± 0.10
100.00 ± 0.00
99.87 ± 0.06
74.33 ± 1.67
62.33 ± 0.29
SMC
100.00 ± 0.00
65.33 ± 0.47
100.00 ± 0.00
65.33 ± 0.47
99.99 ± 0.00
99.63 ± 0.06
78.83 ± 2.30
63.50 ± 1.51
DM+RL
94.17 ± 1.72
99.08 ± 0.40
100.00 ± 0.00
93.30 ± 1.75
99.54 ± 0.13
98.37 ± 0.42
72.17 ± 1.72
58.47 ± 0.76
BInD
84.37 ± 0.25
98.78 ± 0.13
99.00 ± 0.07
82.50 ± 0.17
96.92 ± 0.18
98.77 ± 0.09
56.77 ± 0.40
39.27 ± 0.38
Table 1: Performance of baselines and our method. Best and second-best results are highlighted.
Method
Validity
Uniqueness
Novelty
VUN
Atom stab.
Mol. stab.
Loose
Strict
3W2S
w/o discrete
98.77 ± 0.21
99.80 ± 0.10
100.00 ± 0.00
98.57 ± 0.15
99.58 ± 0.07
99.49 ± 0.11
79.37 ± 1.15
58.57 ± 1.63
w/o continuous
98.33 ± 0.15
99.29 ± 0.10
100.00 ± 0.00
97.63 ± 0.12
99.96 ± 0.01
99.88 ± 0.06
77.07 ± 1.25
57.93 ± 1.80
w/o temporal selection
99.37 ± 0.45
100.00 ± 0.00
100.00 ± 0.00
99.37 ± 0.45
100.00 ± 0.00
99.90 ± 0.10
72.33 ± 1.90
49.87 ± 1.66
w/o CRAC
99.60 ± 0.26
100.00 ± 0.00
100.00 ± 0.00
99.60 ± 0.26
99.99 ± 0.01
99.63 ± 0.25
78.13 ± 1.32
56.43 ± 1.61
w/o both
98.23 ± 0.32
100.00 ± 0.00
100.00 ± 0.00
98.23 ± 0.32
99.97 ± 0.02
99.42 ± 0.26
71.07 ± 1.26
45.60 ± 1.71
Table 2: Ablation study. Best and second-best results are highlighted.
Figure 3: Temporal selection ablation. The analyses of branches, number of probes, and seeds use QED as the target property.
Figure 4: Comparison between the reference ligand and the generated molecule for the Pin1 (3IKD) system. The three subfigures in each row represent docking visualization, ADMET analysis (farther from center is better), and MD simulation RMSD trajectories (lower is more stable) from left to right, respectively. (a–c) Co-crystallized reference ligand. (d–f) The top generated molecule.
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
Aspect
Conditional
Unconditional
Condition inputs
Required (property values)
Not required
Candidate diversity
Moderate
High
Large-scale exploration
Moderate
Strong
Adaptation to new tasks
May require additional conditioning or retraining
Shared backbone for task-specific optimization
Appendix
Table A.1: Comparison between conditional and unconditional generation.
Aspect
PPO
GRPO
Optimization signal
Advantage-based
Group-relative advantage
Grouping requirement
Not required
Required
Shared condition
Not required
Often used
Unconditional generation
Used in this work
Group definition needed
Batch dependence
Depends on estimator
Depends on group
Appendix
Table A.2: Comparison between PPO and GRPO under our setting.
Items
QM9
GEOM-Drugs
Description
3D small organic molecules dataset from the GDB-17 chemical space
Large-scale 3D dataset of drug-like molecules
Number of molecules
∼ 134K
∼ 304K
Properties
Energies, dipole moments, polarizabilities, etc.
N/A
Unique atom types
C, N, O, F, H
C, H, N, O, F, P, S, Cl, Br, I
Atom valency / states
Simple, fixed valency patterns
Diverse valency and charge states across atom types
Molecular size
Small molecules ( ≤ 9 heavy atoms)
Larger, more complex drug-like molecules
Appendix
Table C.1: Summary of QM9 and GEOM-Drugs datasets
Items
EGFR (PDB ID: 3W2S)
Pin1 (PDB ID: 3IKD)
Protein type
Tyrosine kinase
Peptidyl-prolyl isomerase
Structural domain
Kinase domain
Catalytic domain
Pocket exposure
More enclosed
More solvent-exposed
Resolution
1.90 Å
2.0 Å
Binding pocket
Deep, well-defined ATP-binding pocket
Shallow, flexible catalytic pocket
Related diseases
Non-Small Cell Lung Cancer (NSCLC), glioblastoma
Triple-Negative Breast Cancer (TNBC), hepatocellular carcinoma
Appendix
Table C.2: Comparison of EGFR and Pin1
Figure C.1: Distribution of molecules by number of heavy atoms (hydrogens removed)
Figure C.2: Redocking Validation on EGFR (PDB ID: 3W2S) and Pin1 (PDB ID: 3IKD)
Figure D.1: Temporal selection ablation. The analyses of branches, number of probes, and seeds use SAS as the target property.
Figure D.2: A top candidate for Pin1 (3IKD). The three subfigures in each row represent docking visualization, ADMET analysis (farther from center is better), and MD simulation RMSD trajectories (lower is more stable) from left to right, respectively.
We introduce Discrete flow Matching policy Optimization (DoMinO), a unified framework for Reinforcement Learning (RL) fine-tuning Discrete Flow Matching (DFM) models under a broad class of policy gradient methods. Our key idea is to view the DFM sampling procedure as a multi-step Markov Decision Process. This perspective provides a simple and transparent reformulation of fine-tuning reward maximization as a robust RL objective. Consequently, it not only preserves the original DFM samplers but also avoids biased auxiliary estimators and likelihood surrogates used by many prior RL fine-tuning methods. To prevent policy collapse, we also introduce new total-variation regularizers to keep the fine-tuned distribution close to the pretrained one. Theoretically, we establish an upper bound on the discretization error of DoMinO and tractable upper bounds for the regularizers. Experimentally, we evaluate DoMinO on regulatory DNA sequence design. DoMinO achieves stronger predicted enhancer activity and better sequence naturalness than the previous best reward-driven baselines. The regularization further improves alignment with the natural sequence distribution while preserving strong functional performance. These results establish DoMinO as an useful framework for controllable discrete sequence generation.
Maojiang Su, Po-Chung Hsieh, Weimin Wu +4
Center for Foundation Models and Generative AI, Northwestern University, Evanston, IL 60208, USA · Department of Electrical Engineering, National Taiwan University, Taipei 10617, Taiwan · Department of Physics, National Taiwan University, Taipei 10617, Taiwan +1
Discrete diffusion and flow matching models capture complex, non-additive and non-autoregressive structure in high-dimensional objective landscapes through parallel, iterative refinement. However, their implicit generative nature precludes direct integration with principled variational frameworks for online black-box optimisation, such as variational search distributions (VSD) and conditioning by adaptive sampling (CbAS). We introduce Active Flow Matching (AFM), which reformulates variational objectives to operate on conditional endpoint distributions along the flow, enabling gradient-based steering of flow models toward high-fitness regions while preserving the rigour of VSD and CbAS. We derive forward and reverse Kullback-Leibler (KL) variants using self-normalised importance sampling. Across a suite of online protein and small molecule design tasks, forward-KL AFM consistently performs competitively compared to state-of-the-art baselines, demonstrating effective exploration-exploitation under tight experimental budgets.
Yashvir S. Grewal, Daniel M. Steinberg, Thang D. Bui +2
School of Computing, College of Systems and Society, Australian National University, Australia · Data61, CSIRO, Australia
Molecular discovery is increasingly framed as an inverse design problem: identifying molecular structures that satisfy desired property profiles under feasibility constraints. While recent generative models provide continuous latent representations of chemical space, targeted optimization within these representations often leads to degraded validity, loss of structural fidelity, or unstable behavior. We introduce MoltenFlow, a modular framework that combines property-organized latent representations with flow-matching generative priors and gradient-based guidance. This formulation supports both conditioned generation and local optimization within a single latent-space framework. We show that guided latent flows enable efficient multi-objective molecular optimization under fixed oracle budgets with controllable trade-offs, while a learned flow prior improves unconditional generation quality.