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.
Figures & tables
Figure 1: Budget-constrained optimisation on Ehrlich synthetic landscapes and the AAV capsid design task. We report the simple regret
Figure 2: Structure-based protein design with FoldX oracles. We plot the best score found vs. oracle calls;
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Parameter
Value / Schedule
Generative Flow & Classifier Architecture
Architecture
Bi-LSTM
Hidden Dimension
256
Embedding Dimension
128
Layers
3
Dropout
0.1
Appendix
Table 1: Hyperparameters and dynamic scheduling for Ehrlich experiments.
Parameter
Value / Schedule
Mixing Coefficients (Round r )
Replay ( αrb )
0.3 (fixed)
Flow ( αflow )
(1−αrb)×0.15 ( r<5 )
(1−αrb)×0.35 ( r≥5 )
Prior ( α0 )
1−αrb−αflow
Buffer Temp ( γ )
0.2
Appendix
Table 2: Hyperparameters for FoldX experiments. Unlisted parameters match Table 1 .
Parameter
Value / Schedule
Generative Flow Model
Architecture
Transformer
Layers
5
Heads
8
Hidden Dim
256
Dropout
0.1
Appendix
Table 3: Hyperparameters for AAV Capsid Optimisation.
Parameter
Value / Schedule
Generative Flow Model
Architecture
Bi-LSTM
Hidden Dimension
512
Embedding Dimension
256
Layers
4
Dropout
0.1
Appendix
Table 4: Hyperparameters for Dockstring (F2/Thrombin) experiments.