cs.LGOct 14, 2026

In-Context Batch Black-box Optimization via Flow Matching

Authors: Quoc-Anh Hoang Nguyen, Xinyu Zhang, Daolang Huang, Julien Martinelli, Samuel Kaski

Organizations: ELLIS Institute Finland · Department of Computer Science, Aalto University, Finland · Department of Computer Science, University of Manchester

Abstract

Batch black-box optimization is important for expensive systems where many candidates can be evaluated in parallel, yet only a few rounds of evaluation are affordable. In this regime, effective batch construction must identify multiple promising regions while avoiding redundant evaluations, and conventional Bayesian optimization can require increasingly difficult batch-selection procedures as the batch size grows. We introduce Flow Matching for Thompson-Sampling Refinement (FMTR), an amortized approach that learns offline a continuous, history-conditioned proposal distribution from which variable-size batches can be sampled. FMTR is trained offline by conditional flow matching on Thompson-sampling argmaxes refined toward high-value regions via a horizon-dependent Langevin pushforward map, adapting the exploration-exploitation tradeoff over the optimization horizon. At test time, the model parameters remain fixed and batch generation requires neither task-specific surrogate refitting nor numerical acquisition optimization. FMTR achieves strong performance against batch BO and in-context baselines on synthetic and real-world benchmarks, while substantially reducing the computational cost of batch selection.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. B3O: Scalable Boltzmann Batch Bayesian Optimization

    Jun 29, 2026Maximilian Bloor, Liyuan Xu, Hrvoje Stojic +1Bayesian OptimizationBoltzmann Sampling

  2. Expected Batch Optimal Transport Plans and Consequences for Flow Matching

    May 12, 2026Samuel Boïté, Julie Delon, Kimia NadjahiFlow MatchingOptimal Transport

  3. Adaptive Candidate Point Thompson Sampling for High-Dimensional Bayesian Optimization

    Apr 10, 2026Donney Fan, Geoff PleissBayesian OptimizationThompson Sampling