Temporal Selective Exploration for Reinforcement Learning-Guided Continuous-Discrete Flow Matching in 3D Molecular Design
Organizations: Department of Computer Science, Western University, London, Ontario, Canada · Department of Biochemistry, Western University, London, Ontario, Canada
Abstract
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
| 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 |
| 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 |
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 |
| 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 |
| 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 |
| 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 |
| Property | Range | Direction | Normalization | Adjusted Range | Adjusted Direction |
| QED | N/A | N/A | N/A | ||
| SAS | |||||
| Affinity |
| Property (Unit) | Range | Direction | Normalization | Adjusted Range | Adjusted Direction |
| HOMO (eV) | Window | ||||
| LUMO (eV) | Window | ||||
| gap (eV) | Window | ||||
| (Debye) | Window | ||||
| ( ) |
| Parameter | GEOM-Drugs | QM9 |
| Batch size | 12 | 128 |
| Num workers | 6 | 8 |
| Max epochs | 20 | 20 |
| Learning rate | ||
| Weight decay | ||
| Gradient accumulation | 1 | 1 |
| Hyperparameter | Search Range |
| Batch size | 4, 8, 16, 32, 64, 128, 256 |
| SDE noise scale ( ) | 0.01, 0.03, 0.05, 0.08, 0.1, 0.2, 0.5, 1 |
| Learning rate | 2e-4, 1e-4, 2e-5, 5e-5, 1e-5, 5e-6, 1e-6 |
| Clipping parameter | 3e-3, 1e-3, 1e-4, 2e-4, 3e-4, 4e-4, 5e-4, 7e-4 |
| Gradient clipping norm | 0.1, 0.3, 0.5, 0.8, 1.0, 2.0, 5.0 |
| Update iterations | 1, 2, 3, 4, 5, 10 |
| Hyperparameter | GEOM-Drugs | QM9 |
| Batch size | 64 | 128 |
| SDE noise scale ( ) | 0.05 | 0.05 |
| Learning rate | 1e-5 | 2e-5 |
| Clipping parameter | 5e-4 | 3e-4 |
| Gradient clipping norm | 0.5 | 0.5 |
| Update iterations | 3 | 3 |
| Number of molecules | QED (s) | SAS (s) | Total (s) |
| 1,000 | 1.03 | 0.20 | 1.23 |
| 10,000 | 9.06 | 1.99 | 11.05 |
| EGFR (PDB: 3W2S) | Pin1 (PDB: 3IKD) | |||
| Metrics | Base Model | Ours | Base Model | Ours |
| Validity (%) | 98.99 | 99.64 | 98.99 | 99.52 |
| Uniqueness (%) | 99.89 | 99.56 | 99.89 | 99.94 |
| Novelty (%) | 100.00 | 100.00 | 100.00 | 100.00 |
| Validity Uniqueness Novelty (%) | 98.88 | 99.20 | 98.88 | 99.46 |
| Atom Stability (%) | 99.99 | 100.00 | 99.99 | 99.99 |
| EGFR (PDB: 3W2S) | Pin1 (PDB: 3IKD) | |||
| Metrics | Base Model | Ours | Base Model | Ours |
| Connected Fraction (%) | 99.12 | 99.71 | 99.12 | 99.25 |
| Bond Lengths Valid (%) | 99.99 | 100.00 | 99.99 | 99.98 |
| Bond Angles Valid (%) | 100.00 | 100.00 | 100.00 | 99.99 |
| Steric Clash Free (%) | 94.02 | 95.18 | 94.02 | 94.01 |
| Non-Aromatic Ring Non-Flatness (%) | 99.67 | 99.70 | 99.67 | 99.72 |
| QM9 | ||
| Metrics | Base Model | Ours |
| Validity (%) | 99.81 | 99.83 |
| Uniqueness (%) | 92.54 | 91.97 |
| Novelty (%) | 99.99 | 99.86 |
| Validity Uniqueness Novelty (%) | 92.35 | 91.68 |
| Atom Stability (%) | 99.99 | 100.00 |
Flow Matching
Flow matching learns continuous-time vector fields that transport simple noise distributions into data for efficient generative modeling.
See all 712 papers