betaFeedback

WorksComputer Science

In-Context Batch Black-box Optimization via Flow Matching

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.

Introduction

Many scientific and engineering design problems require optimizing an objective that can only be queried through costly experiments or simulations. Modern experimental and computational platforms increasingly support parallel evaluation, from high-throughput laboratories to compute clusters, motivating batch black-box optimization in applications such as enzyme engineering, regulatory RNA design, and materials design ([5, 29, 18, 13]). This changes the nature of the optimization decision: in the batch setting, the utility of each candidate depends on the rest of the batch, which should cover several plausible high-value regions and underexplored parts of the search space while avoiding redundant evaluations. Moreover, the evaluation of each batch can incur substantial experimental or computational costs, making the number of optimization rounds an important practical constraint. Consequently, it is desirable to develop batch selection methods that make effective use of each round and achieve high-quality solutions with as few evaluation rounds as possible.

Bayesian optimization (BO; Garnett [11]) is a standard approach for constructing such batches under limited evaluation budgets. It models the objective with a probabilistic surrogate, commonly a Gaussian process (GP, Rasmussen & Williams [26]), and selects evaluations through an acquisition function that balances promising predicted values against posterior uncertainty. However, when selecting qq candidates at once, the acquisition must account for interactions among the proposed points, making its maximization a joint problem over qdqd variables. Joint acquisitions become difficult to optimize as qq grows, while common alternatives construct the batch through qq sequential or independent optimization problems ([31, 17, 3, 28]). Each round thus requires updating a task-specific surrogate and solving a difficult, time-consuming batch-selection problem before the evaluations can be run in parallel. In-context learning offers a complementary route by moving recurring computation to offline pretraining over a distribution of optimization tasks. At deployment, a pretrained model adapts to a new objective through the observations supplied in context, without updating its parameters. Existing methods introduce in-context learning at different stages of the BO loop. Surrogate-based approaches perform posterior inference in context but retain a conventional acquisition function and an online search over the design space [21, 6, 34]. Acquisition-level approaches instead learn to predict acquisition values, replacing their potentially expensive computation while still searching for the maximizing candidate [16] (Rakotoarison et al. 2026). End-to-end in-context optimizers go further by learning the query policy itself, commonly from trajectory-level rewards, and map the observed history and a supplied candidate set directly to the next query [20, 37, 15] (Zhang et al. 2026). These policies remove task-specific surrogate fitting and numerical acquisition optimization, but are typically formulated as single-query policies over a finite candidate set. They therefore do not directly provide an in-context sampler over continuous query locations from which a batch can be drawn.

Generative models offer a natural way forward. By learning a proposal distribution over continuous designs, they turn batch construction into sampling: the proposal places mass on several promising regions, generating a batch of the desired size without optimizing a joint acquisition. Recent generative BO methods either adapt a diffusion sampler using a task-specific surrogate or fit the proposal directly from observed utilities [35, 22]. In both cases, the proposal is fitted or updated on the current objective as optimization proceeds, rather than produced in context by a model pretrained across tasks. This leaves open how to combine in-context adaptation with a reusable continuous proposal and how to specify its target distribution for each observed history.

Contributions. We address this gap with Flow Matching for Thompson-Sampling Refinement (FMTR), which combines in-context adaptation with sample-based generation for large-batch-few-round black-box optimization tasks. Figure 1 provides an overview of our method and positions it against concurrent baselines. Our contributions can be summarized as follows:

Figure 1. Overview of FMTR and its positioning relative to related methods. FMTR directly models a query distribution for end-to-end batch selection. (Top) Pretraining and deployment with closed-loop rollouts for data generation.

  • We introduce a conditional flow-matching model that represents a proposal distribution over continuous query locations, conditioned on the observed history and remaining evaluation budget. FMTR generates a batch of the requested size by sampling from this proposal with fixed model parameters, without task-specific surrogate fitting or acquisition-function optimization.

  • We construct supervised training targets by refining Thompson-sampling argmaxes toward high-value regions according to the remaining optimization horizon. This provides a simple alternative to trajectory-level reinforcement learning while retaining more exploration early and increasing exploitation toward the end of optimization.

  • Across synthetic and real-world benchmarks, FMTR achieves strong optimization performance at substantially lower batch-selection cost. Ablations further show that target refinement and value weighting both improve over directly amortizing parallel Thompson sampling.

Background

We consider an expensive black-box objective f:X→Rf : \mathcal{X} \to\mathbb{R} over a search space X⊂Rd\mathcal{X} \subset\mathbb{R}^{d}, with

x⋆∈arg⁡max⁡x∈Xf(x).(1)x^{\star} \in\arg\max_{x \in\mathcal{X}} f(x). \tag*{(1)}

Starting from an initial history D0\mathcal{D}_{0}, at round r=1,…,Hr = 1, \ldots, H, the optimizer selects a batch Br={xr,i}i=1q⊂XB_{r} = \{x_{r,i}\}_{i=1}^{q} \subset\mathcal{X} conditioned on Dr−1\mathcal{D}_{r-1}. The qq points are evaluated in parallel, yielding observations yr,i=f(xr,i)+ϵr,iy_{r,i} = f(x_{r,i}) + \epsilon_{r,i}, with ϵr,i∼i.i.d.N(0,σ2)\epsilon_{r,i} \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} \mathcal{N}(0, \sigma^{2}). The history is then updated:

Dr=Dr−1∪{(xr,i,yr,i)}i=1q.\mathcal{D}_{r} = \mathcal{D}_{r-1} \cup\{(x_{r,i}, y_{r,i})\}_{i=1}^{q}.

We focus on the large-batch, few-round regime, where qq is large and the batch horizon HH is small.

Thompson sampling with Gaussian processes. A simple way to construct diverse batches is to sample plausible objective functions given the current observations and optimize each of them independently. A Gaussian process (GP) prior over ff induces a posterior p(f∣D)p(f \mid\mathcal{D}) after conditioning on the observed history D\mathcal{D} [26]. Thompson sampling (TS) draws a function from this posterior and evaluates its maximizer:

f~∼p(f∣D),xTS∈arg⁡max⁡x∈Xf~(x).(2)\tilde{f} \sim p(f \mid\mathcal{D}), \qquad x_{\mathrm{TS}} \in\arg\max_{x \in\mathcal{X}} \tilde{f}(x). \tag*{(2)}

The posterior draw therefore induces a distribution over optimizer locations,

pTS(⋅∣D)=L(xTS∣f~∼p(f∣D)),(3)p_{\mathrm{TS}}(\cdot\mid\mathcal{D}) = \mathcal{L}\left(x_{\mathrm{TS}} \mid\tilde{f} \sim p(f \mid\mathcal{D})\right), \tag*{(3)}

where L\mathcal{L} denotes the law of a random variable. Different posterior paths may place their maximizers in different regions that remain plausible under the posterior. Parallel TS forms a batch of size qq by drawing and maximizing qq posterior paths independently, allowing these optimizations to be performed concurrently [17].

Flow Matching. Flow Matching (FM) is a class of generative models that transform a prior distribution p0p_{0} to a target distribution p1p_{1} by learning a time-dependent velocity vector field vtv_{t}. This vector field constructs a flow ϕt\phi_{t} via the ordinary differential equation (ODE):

ddtϕt(x0)=vt(ϕt(x0)),ϕ0(x0)=x0(4)\frac{d}{dt}\phi_{t}(x_{0}) = v_{t}(\phi_{t}(x_{0})), \qquad\phi_{0}(x_{0}) = x_{0} \tag*{(4)}

If x0∼p0x_{0} \sim p_{0}, ϕt\phi_{t} acts as a push-forward map, creating distribution ptp_{t} at each time tt, e.g pt=[ϕt]∗p0p_{t} = [\phi_{t}]_{\ast}p_{0}. For training, we construct a conditional flow and optimize the Conditional Flow Matching (CFM) objective. One of the most natural choices for conditional flow is a straight line from source point x0x_{0} to target point x1x_{1}, where xt=(1−t)x0+tx1x_{t} = (1-t)x_{0} + tx_{1} for t∈[0,1]t \in[0,1]. Then, the CFM loss takes the form:

LCFM(θ)=Et,x1∼p1,x0∼p0[∥vθ(xt,t)−(x1−x0)∥2](5)\mathcal{L}_{\mathrm{CFM}}(\theta) = \mathbb{E}_{t,x_{1}\sim p_{1},x_{0}\sim p_{0}}\left[\left\|v_{\theta}(x_{t},t) - (x_{1}-x_{0})\right\|^{2}\right] \tag*{(5)}

Usually, t∼U(0,1)t \sim U(0,1) and p0p_{0} follows a standard Normal distribution. At inference time, one can randomly sample from source distribution x0∼p0x_{0} \sim p_{0} and generate a sample from target distribution by solving ODE from t=0t=0 to t=1t=1 using learned vector field vθv_{\theta}.

Methodology

We propose FMTR, which learns a conditional proposal over continuous query locations, and samples batches in parallel. § 3.1 defines the synthetic episodes and histories used for pretraining; § 3.2 constructs the query target distribution; § 3.3 introduces the conditional flow-matching model and training objective; and § 3.4 describes the closed-loop rollouts used to collect deployment-like histories. Model architecture is given in Figure S8.

Model architecture

Figure S8. Model Architecture.

Pretraining tasks and histories

We sample synthetic optimization episodes

τ=(fτ,Xτ,qτ,Hτ,D0τ)∼p(τ),(6)\tau= (f_{\tau}, \mathcal{X}_{\tau}, q_{\tau}, H_{\tau}, \mathcal{D}^{\tau}_{0}) \sim p(\tau), \tag*{(6)}

where fτ:Xτ⊂Rdτ→Rf_{\tau} : \mathcal{X}_{\tau} \subset\mathbb{R}^{d_{\tau}} \to\mathbb{R} is the objective, qτq_{\tau} is the batch size, HτH_{\tau} is the number of optimization rounds, and D0τ\mathcal{D}^{\tau}_{0} is an initial history containing n0,τn_{0,\tau} random evaluations. At round r∈{0,…,Hτ−1}r \in\{0, \ldots, H_{\tau} - 1\}, the model acts on the optimization state

srτ=(Drτ,hrτ,Hτ),hrτ=Hτ−r.(7)s^{\tau}_{r} = (\mathcal{D}^{\tau}_{r}, h^{\tau}_{r}, H_{\tau}), \qquad h^{\tau}_{r} = H_{\tau} - r. \tag*{(7)}

The history Drτ\mathcal{D}^{\tau}_{r} serves as context, while the supervised targets are continuous query locations sampled from the target distribution introduced in § 3.2. Thus, a pretraining example is determined by both the sampled objective and a history encountered while optimizing it.

Synthetic objective prior. We construct each objective as

fτ(x)=fRFF,τ(x)+ftrend,τ(x).(8)f_{\tau}(\mathbf{x}) = f_{\mathrm{RFF},\tau}(\mathbf{x}) + f_{\mathrm{trend},\tau}(\mathbf{x}). \tag*{(8)}

The first component is a differentiable random Fourier feature approximation to a GP sample path ([24]), with kernel family and hyperparameters randomized across episodes. Importantly, its explicit form allows function values and gradients to be evaluated at arbitrary locations and retains the generating kernel required by the target construction in § 3.2. Next, ftrendf_{\mathrm{trend}} adds a randomized quadratic trend, providing smooth global structure on top of the local GP variation. This yields optimization landscapes with more clearly defined basins and optima, a technique employed in related amortized optimization methods ([33, 6, 37]). The full RFF parameterization, trend definition, and sampling distributions are given in Appendices § 11.§ 1 and § 11.§ 2. Figure S7 displays synthetic samples.

Example of training samples used during pretraining with input dimension $d=2$

Figure S7. Example of training samples used during pretraining with input dimension d=2d=2.

Optimization histories. Starting from D0τ\mathcal{D}^{\tau}_{0}, we generate a trajectory by repeatedly proposing a batch, evaluating fτf_{\tau}, and appending the resulting observations to the history. Thus, a single episode contributes training states with different context sizes and remaining horizons. Since the proposal model induces the relevant history distribution, we periodically regenerate these trajectories using a mixture of the target distribution and the current model proposal, as described in § 3.4.

Query target distribution

For each synthetic episode τ\tau and optimization state (D,h,H)(\mathcal{D}, h, H), we construct a target distribution p1,τ(⋅∣D,h,H)p_{1,\tau}(\cdot\mid\mathcal{D}, h, H) over query locations. Because the episode is generated during pretraining, both the objective fτf_{\tau} and the kernel kτk_{\tau} used to generate its GP component are known. This information is used only to construct offline training targets: the kernel defines a distribution over plausible optimizer locations given the current history, while the objective is used to refine these locations according to the number of rounds remaining. We omit the dependence of pTSp_{\mathrm{TS}} and p1p_{1} on τ\tau below.

Thompson-sampling base distribution. We instantiate TS using the kernel kτk_{\tau} and trend ftrend,τf_{\mathrm{trend},\tau} sampled for the episode:

pTS(⋅∣D)=L(arg⁡max⁡x∈X f~τ(x) | f~τ∼pτ(f∣D)).(9)p_{\mathrm{TS}}(\cdot\mid\mathcal{D}) = \mathcal{L}\left(\underset{\mathbf{x}\in\mathcal{X}}{\arg\max}\ \widetilde{f}_{\tau}(\mathbf{x}) \,\middle|\, \widetilde{f}_{\tau} \sim p_{\tau}(f \mid\mathcal{D})\right). \tag*{(9)}

Under the GP posterior induced by the sampled task and current history, pTSp_{\mathrm{TS}} represents uncertainty over the optimizer location and can assign probability mass to several regions that remain plausible optima. We construct posterior paths by combining differentiable RFF prior draws ([24]) with the pathwise update given by Matheron’s rule ([32]). Because kτk_{\tau} and its hyperparameters are sampled as part of the episode, these paths can be constructed without estimating kernel parameters from the typically sparse history. Each path is maximized independently using gradient-based optimization. Appendix § 12.§ 1 gives the complete construction.

Refinement based on remaining rounds. TS conditions on the observed history but does not explicitly account for the remaining horizon. To favor exploitation when fewer rounds remain, we refine its samples using the known synthetic objective. We define

T(h,H)=Tmin⁡+(Tmax⁡−Tmin⁡)h−1H−1,Kh,H=⌊KTmax⁡T(h,H)⌋,(10)T(h,H)=T_{\min}+(T_{\max}-T_{\min})\frac{h-1}{H-1},\qquad K_{h,H}=\left\lfloor K\frac{T_{\max}}{T(h,H)}\right\rfloor, \tag*{(10)}

where 0<Tmin⁡≤Tmax⁡0<T_{\min}\le T_{\max} and KK is the base number of refinement steps. Starting from x(0)∼pTS(⋅∣D)\mathbf{x}^{(0)}\sim p_{\mathrm{TS}}(\cdot\mid\mathcal{D}), we apply the Langevin-inspired updates

x(k+1)=x(k)+ηgτ(x(k))+σL2η ξk,ξk∼i.i.d.N(0,Idτ),(11)\mathbf{x}^{(k+1)}=\mathbf{x}^{(k)}+\eta g_{\tau}(\mathbf{x}^{(k)})+\sigma_{\mathrm{L}}\sqrt{2\eta}\,\boldsymbol{\xi}_{k},\qquad\boldsymbol{\xi}_{k}\mathrel{\overset{\mathrm{i.i.d.}}{\sim}}\mathcal{N}(\mathbf{0},I_{d_{\tau}}), \tag*{(11)}

for k=0,…,Kh,H−1k=0,\ldots,K_{h,H}-1, where gτg_{\tau} is the normalized objective gradient, η>0\eta>0 is the step size, and σL>0\sigma_{\mathrm{L}}>0 controls the perturbations. Normalization bounds the deterministic step length, while the Gaussian perturbations keep refinement stochastic. A smaller remaining-round fraction increases the number of updates, rather than their individual magnitude: this allows for objective-guided refinement near the end of optimization.

Flow-matching target. The finite-step refinement above induces the horizon-dependent distribution

p1(⋅∣D,h,H)=L(x(Kh,H)).(12)p_1(\cdot\mid\mathcal{D},h,H)=\mathcal{L}\left(\mathbf{x}^{(K_{h,H})}\right). \tag*{(12)}

Although refinement moves TS locations toward higher objective values, the probability mass of p1p_1 still depends on how frequently the TS initialization and stochastic refinement reach each region. We therefore define target distribution by favoring high-value regions via the Gibbs variational problem

p~1=arg⁡max⁡p≪p1{Ep[fτ(x)]−T(h,H)KL⁡(p∥p1)}∝p1(⋅∣D,h,H)exp⁡(fτ(⋅)T(h,H)).(13)\widetilde{p}_1=\underset{p\ll p_1}{\arg\max}\left\{\mathbb{E}_p[f_{\tau}(\mathbf{x})]-T(h,H)\operatorname{KL}(p\mathbin\Vert p_1)\right\}\propto p_1(\cdot\mid\mathcal{D},h,H)\exp\left(\frac{f_{\tau}(\cdot)}{T(h,H)}\right). \tag*{(13)}

As hh decreases, the same schedule both increases the refinement budget Kh,HK_{h,H} and lowers the temperature, progressively shifting the target toward high-value regions. In practice, we approximate p~1\widetilde{p}_1 by value-weighting samples from p1p_1, yielding the weighted flow-matching objective in § 3.3. The variational derivation and sampling approximation are given in Appendices C.3 and D.2. The synthetic objective and its gradients are used only during pretraining: deployment requires only the observed history and remaining-round fraction.

Model architecture and training objective

We learn a proposal pθ(x∣D,α)p_{\theta}(\mathbf{x}\mid\mathcal{D},\alpha) from the target samples constructed in § 3.2, where α=h/H\alpha=h/H is the fraction of optimization rounds remaining. The model combines a transformer encoder for the observed history with a conditional flow decoder operating on continuous query locations.

History-conditioned architecture. Each observation (xi,yi)(x_i,y_i) is embedded using its location and objective value, then processed by a transformer encoder without positional encodings [30]. The encoded observations form a memory matrix M∈Rnc×dmodel\mathcal{M}\in\mathbb{R}^{n_c\times d_{\mathrm{model}}}, where nc=∣D∣n_c=|\mathcal{D}| and dmodeld_{\mathrm{model}} is the hidden dimension. Each flow state xt\mathbf{x}_t, at flow time t∈[0,1]t\in[0,1], is embedded and attends to this memory through a cross-attention decoder. Flow time and the remaining-round fraction modulate the decoder through adaptive layer normalization, following the DiT architecture [23]. We omit self-attention between query states, allowing independent processing given the history. For MM flow states, this gives a cross-attention cost of O(Mnc)O(Mn_c) per decoder evaluation. The memory is computed once per optimization round and reused throughout generation. Zero-padding and an active-dimension mask accommodate objectives of dimension d≤Dd\le D, where DD is the maximum supported dimension. Appendix D.1 specifies the embeddings and decoder blocks.

Velocity distribution. Under the straight-line interpolation used for flow matching (Equation (5)), the same intermediate state can arise from different source-target pairs and therefore be associated with different target velocities. We model this conditional variation with a Gaussian mixture velocity head. Following Chen et al. [8]:

vθ(u∣xt,t,D,α)=∑c=1CπcN(u;μc,diag⁡(σc2)),(14)v_{\theta}(\mathbf{u}\mid\mathbf{x}_t,t,\mathcal{D},\alpha)=\sum_{c=1}^{C}\pi_c\mathcal{N}\left(\mathbf{u};\boldsymbol{\mu}_c,\operatorname{diag}(\boldsymbol{\sigma}_c^2)\right), \tag*{(14)}

where CC is the number of components. The mixture weights πc\pi_c, means μc\boldsymbol{\mu}_c, and diagonal standard deviations σc\boldsymbol{\sigma}_c are predicted from the decoded flow token. Here, vθv_{\theta} denotes a density over velocities, distinct from the proposal pθp_{\theta} over query locations.

Training objective. For each sampled episode and history, the ideal objective is the flow-matching loss under the tilted target p~1\tilde{p}_1,

Ltilt(θ)=−E[Et∼U(0,1),x~1∼p~1,x0∼p0[log⁡vθ(u~t∣x~t,t,D,α)]](15)\mathcal{L}_{\mathrm{tilt}}(\theta) = -\mathbb{E}\left[\mathbb{E}_{t\sim\mathcal{U}(0,1),\tilde{x}_1\sim\tilde{p}_1,x_0\sim p_0}\left[\log v_\theta\left(\tilde{u}_t \mid\tilde{x}_t,t,\mathcal{D},\alpha\right)\right]\right] \tag*{(15)}

where p0=N(0,Id)p_0 = \mathcal{N}(0,I_d), x~t=(1−t)x0+tx~1\tilde{x}_t = (1-t)x_0+t\tilde{x}_1, and u~t=x~1−x0\tilde{u}_t = \tilde{x}_1-x_0. The outer expectation is over sampled episodes and histories. Rather than sampling directly from p~1\tilde{p}_1, we approximate the inner expectation using samples x1(i)∼p1(⋅∣D,h,H)x_1^{(i)} \sim p_1(\cdot\mid\mathcal{D},h,\mathcal{H}) and self-normalized importance sampling (Aeckerle-Willems et al., 2026). With xt(i)=(1−t)x0(i)+tx1(i)x_t^{(i)}=(1-t)x_0^{(i)}+tx_1^{(i)} and ut(i)=x1(i)−x0(i)u_t^{(i)}=x_1^{(i)}-x_0^{(i)}, this gives

L(θ)=−E[∑i=1Mwilog⁡vθ(ut(i)∣xt(i),t,D,α)],wi=softmax⁡i(fτ(x1(i))/T(h,H)).(16)\mathcal{L}(\theta)=-\mathbb{E}\left[\sum_{i=1}^{M}w_i\log v_\theta\left(u_t^{(i)}\mid x_t^{(i)},t,\mathcal{D},\alpha\right)\right],\qquad w_i=\operatorname{softmax}_i\left(f_\tau(x_1^{(i)})/T(h,\mathcal{H})\right). \tag*{(16)}

Appendix § 13.§ 2 derives this approximation, while lastly, § 3.4 describes history collection.

Batch generation. At deployment, we transform qq independent Gaussian base samples through the learned flow, sharing the encoded history across their trajectories. The model parameters remain fixed, and the requested batch size determines the number of samples generated. See Algorithm 3 for batch generation procedure.

Closed-loop pretraining

The histories encountered at deployment depend on batches generated by FMTR in previous rounds. Training only on randomly sampled histories or trajectories generated solely from p~1\tilde{p}_1 would therefore expose the model to a different state distribution. We address this with Dataset Aggregation (DAgger, Ross et al. [27]). At rollout iteration ss, the entire batch at each visited state is sampled either from the target distribution or from the current FMTR proposal:

Br∼{p~1(⋅∣Dr,hr,H)⊗q,with probability βs,pθ(⋅∣Dr,αr)⊗q,with probability 1−βs,αr=hrH.(17)B_r\sim \begin{cases} \tilde{p}_1(\cdot\mid\mathcal{D}_r,h_r,\mathcal{H})^{\otimes q}, & \text{with probability }\beta_s,\\ p_\theta(\cdot\mid\mathcal{D}_r,\alpha_r)^{\otimes q}, & \text{with probability }1-\beta_s, \end{cases} \qquad\alpha_r=\frac{h_r}{H}. \tag*{(17)}

where βs:=γs\beta_s:=\gamma^s, γ∈(0,1)\gamma\in(0,1), decreases over rollout iterations. Regardless of which distribution advances the trajectory, p~1\tilde{p}_1 is recomputed at every visited state using the corresponding synthetic episode and stored as supervision. The collected histories therefore become increasingly representative of those induced by FMTR while retaining target samples at each visited state. In practice, for simplicity, we can use p1p_1 instead of p~1\tilde{p}_1 for BrB_r.

Moreover, since episodes with different values of n0n_0, qq, and HH produce context sizes ∣Dr∣=n0+rq|\mathcal{D}_r|=n_0+rq at unequal frequencies, we partition the replay buffer into buckets indexed by context size. Each training minibatch is obtained by first sampling a non-empty bucket uniformly and then sampling examples from that bucket, preventing frequently occurring context lengths from dominating training. Parameter updates use the current replay buffer, which is periodically augmented with rollouts from the updated model. The exact complete training procedure is given in Appendix § 11.§ 3. Algorithm 1 summarizes the collection and training cycle, see Algorithm 2 for the full procedure. Figure S5 shows the targets and the learned proposal over a full optimization trajectory.

Evolution of FMTR over a complete optimization rollout

Figure S5. Evolution of FMTR over a complete optimization rollout. Example two-dimensional trajectory with q=16q = 16 and H=10H = 10, shown at iterations 1, 3, 5, 7, 9, and 10. From left to right: the accumulated context with the previous batch highlighted, TS argmaxes conditioned on the current history, their horizon-dependent Langevin refinements, and samples from the learned FMTR proposal. The background shows the objective. As observations accumulate and the horizon shrinks, the target and FMTR proposal concentrate on high-value regions.

Related Work

Batch Bayesian optimization. Classical batch BO either optimizes set-valued acquisitions, Monte Carlo batch acquisitions, and energy–entropy criteria, or constructs batches through sequential or independent single-point decisions [31, 3, 28, 12, 17]. Joint acquisitions account for interactions among qq candidates but require optimization over qdqd variables; local penalization and parallel TS replace this with repeated or independent optimizations. These methods retain a task-specific surrogate and online design-space search at each round.

Generative models for BO. Recent work uses generative models directly as proposal distributions for batch BO. DiBO learns a diffusion prior over evaluated designs and an ensemble surrogate for uncertainty-aware utility, then fine-tunes the sampler toward their product distribution before applying local search and filtering (Yun et al., [35]). GenBO removes the intermediate surrogate by fitting a single generative model directly from noisy utilities, targeting a proposal whose density Algorithm 1 FMTR pretraining: overview

Require: Episode prior p(τ)p(\tau); update budget NtrainN_{\mathrm{train}}; rollout settings NrollN_{\mathrm{roll}}, MM, TrefreshT_{\mathrm{refresh}}, γ\gamma

  1. Initialize θ\theta, bucketed buffer B←∅\mathcal{B} \leftarrow\varnothing, and counters u←0u \leftarrow0, s←0s \leftarrow0

  2. while u<Ntrainu < N_{\mathrm{train}} do

  3. βs←γs\beta_s \leftarrow\gamma^s ▷ β0=1\beta_0 = 1: initial rollouts use p1p_1 only

  4. for each of NrollN_{\mathrm{roll}} episodes τ∼p(τ)\tau\sim p(\tau) do

  5. D←Dτ0\mathcal{D} \leftarrow\mathcal{D}_{\tau}^{0}

  6. for r=0,…,Hτ−1r = 0, \ldots, H_{\tau} - 1 do

  7. h←Hτ−rh \leftarrow H_{\tau} - r, α←h/Hτ\alpha\leftarrow h/H_{\tau}

  8. Draw MM Thompson-sampling locations (Equation (9))

  9. Refine the Thompson-sampling locations for Kh,HτK_{h,H_{\tau}} steps (Equation (11))

  10. Store the state, refined targets, and their values in B∣D∣\mathcal{B}_{|\mathcal{D}|}

  11. Sample Br\mathcal{B}_r from the target–model mixture (Equation (17))

  12. Evaluate Br\mathcal{B}_r in parallel and append its observations to D\mathcal{D}

  13. end for

  14. end for

  15. U←min⁡(Trefresh,Ntrain−u)U \leftarrow\min(T_{\mathrm{refresh}}, N_{\mathrm{train}} - u)

  16. Perform UU updates using context-length-stratified replay (Equation (16))

  17. u←u+Uu \leftarrow u + U, s←s+1s \leftarrow s + 1

  18. end while

  19. return θ\theta

follows an expected-utility acquisition [22]. Both update task-specific generators as observations accumulate, whereas FMTR pretrains a history-conditioned proposal that adapts in context with fixed parameters.

In-context optimization. In-context methods replace different components of the BO loop with pretrained models. PFNs4BO and GIT-BO perform posterior prediction in context, while α-PFN predicts entropy-search values [21, 34, 25]. These methods retain an explicit acquisition or candidate-search step. End-to-end methods instead learn the decision rule from optimization trajectories, including NAP, PABBO, TAMO, and FICBO [20, 37, 4] (Zhang et al. 2026). These policies generally act on supplied candidate sets, but FMTR learns a continuous history-conditioned sampler for variable-size batches.

Experiments

Baselines. We compare FMTR with the trust-region optimizer TuRBO (Eriksson et al., [10]), BEEBO (Teufel et al., [28]), the diffusion-based optimizer DiBO (Yun et al., [35]), and the in-context surrogate method GIT-BO (Yu et al., [34]). We also include three GP-based batch strategies: qLogEI (Ament et al., [2]), parallel TS with Matheron’s rule (qTS-Matheron; Kandasamy et al., [17]; Wilson et al., [32]), and qUCB (Wilson et al., [31]). See Appendix § 14.§ 1 for baseline details.

Implementation details and evaluation protocol. Each run starts from 10 observations and proceeds for H=10H = 10 batch-evaluation rounds, with batch sizes specified below. We apply the Yeo–Johnson transformation to observed objective values (Cowen-Rivers et al., [9]). FMTR’s parameters remain fixed during evaluation, and each batch is generated using 100 flow-integration steps without access to test-objective gradients. We report means and 95% confidence intervals over 15 independent runs. Pretraining settings and model details are provided in Appendices § 11 and § 13.

Results

Synthetic functions. We evaluate Ackley, Rosenbrock, and Levy with d∈{3,5,10,15}d \in\{3, 5, 10, 15\} and batch size q=64q = 64 (Figure 2). FMTR achieves the best final average rank for each function, consistently across tested dimensions. Although geared towards q=1q = 1, GIT-BO supports batch selection through multiple effective subspaces, but its performance degrades markedly in the large-batch regime considered here. More explicitly batch-oriented alternatives also remain behind FMTR. BEEBO directly constructs joint batches through an energy–entropy acquisition, explicitly accounting for dependencies among candidates, while DiBO use a diffusion-based generative model to form batch proposals. In DiBO,

Experiments on synthetic functions

Figure 2. Experiments on synthetic functions. Log simple regret over 15 runs, shown as mean with 95% CI. The last column reports the average rank across dimensions for each function.

accurately learning the acquisition from the limited observations available during optimization can be difficult, potentially hindering its ability to identify promising regions. FMTR instead grounds its target distribution in TS and amortizes the subsequent refinement through offline pretraining, combining posterior-driven exploration with knowledge transferred across optimization tasks. Moreover, FMTR consistently outperforms qTS, even though TS provides the base distribution from which its training targets are constructed. We return to this finding in § 5.2, where we examine which components of FMTR account for this improvement. Extended results for q∈{16,32}q \in\{16, 32\} and more synthetic functions show broadly similar trends, although FMTR’s advantage is more pronounced for larger batches (Appendix § 10). Finally, FMTR achieves the lowest reported runtime among the methods (Table S1).

Methodd=3d = 3d=5d = 5d=10d = 10d=15d = 15
FMTR2.79 ± 0.012.80 ± 0.012.79 ± 0.012.78 ± 0.01
TuRBO8.15 ± 0.679.68 ± 1.5712.17 ± 1.3710.10 ± 1.47
DiBO180.35 ± 3.89156.38 ± 1.97205.71 ± 3.28179.29 ± 1.89
BEEBO106.70 ± 12.28198.17 ± 42.50548.54 ± 112.60789.35 ± 149.53
qLogEI93.69 ± 16.69199.48 ± 23.69350.10 ± 56.05536.13 ± 66.44
qUCB56.85 ± 8.69123.47 ± 14.03436.70 ± 31.04641.55 ± 22.02
qTS-Matheron3.77 ± 0.225.60 ± 0.4612.88 ± 4.958.18 ± 1.57
GITBO24.79 ± 0.1028.69 ± 0.0736.79 ± 2.0147.75 ± 0.13

Table S1. Runtime comparison. Wall-clock time is measured over all H=10H = 10 iterations with q=64q = 64. The measurement unit is seconds.

Real-world applications. We evaluate four data-derived benchmarks considered by Hsieh et al. [14]: oil-4D, hpobenchXGB-6D, Asteroid-12D, and pm25-14D (Appendix § 14.§ 3) with batch sizes q=64q = 64. Figure 3 reports the best normalized objective value and the Top 10 Normalized Value, i.e., the mean normalized value of the ten best points observed so far. Values are scaled by (f(x)−fmin⁡)/(fmax⁡−fmin⁡)(f(\mathbf{x}) - f_{\min})/(f_{\max} - f_{\min}). The latter metric measures the ability to identify multiple high-value candidates. FMTR remains competitive across these tasks and often attains the highest values in later rounds. Compared with the synthetic benchmarks, however, its advantage is less uniform, with several baselines closely matching its performance, such as TuRBO, which even obtains higher mean values on PM2.5. Nevertheless, FMTR achieves the best final average rank under both metrics. Extended results for q=32q = 32 in Appendix § 10.§ 4 show a similar trend, with FMTR achieving stronger performance on both metrics in general. These results support the transfer of the pretrained proposal to real-world objectives, albeit with task-dependent differences in performance.

Experiments on real-world functions

Figure 3. Experiments on real-world functions. Top row: normalized best value. Bottom row: Top 10 normalized best value. Mean with 95% CI computed across 15 runs with random initializations. Higher is better. Last column is the average rank across all tasks for each batch size.

Ablation Studies

We examine whether different modeling choices and hyperparameter settings significantly affect the performance of FMTR. In all experiments in this section, we evaluate FMTR and all baselines on the Ackley, Levy, and Rosenbrock functions with q∈{32,64}q \in\{32, 64\}, d∈{3,5,10,15}d \in\{3, 5, 10, 15\}, and H=10H = 10. To average performance across functions with different regret scales, we report Normalized Log Simple Regret (NLR). Further details are provided in Appendix § 10.§ 2.

Pretraining dataset composition. We compare FMTR pretrained with the full synthetic objective in Equation (8) against a variant using only the RFF component. Figure 4(a) reports mean with 95% CI across the three synthetic functions. Including the trend component substantially improves performance. One explanation is that broadly sampled GP hyperparameters can otherwise produce highly irregular functions, for example Matérn-3/2 samples with short lengthscales, that are less representative of practical optimization landscapes. The random trend adds smoother global structure while preserving the local variability of the RFF component.

Ablation studies

Figure 4. Ablation studies. Performance is normalized and averaged on the Ackley, Levy, and Rosenbrock functions with q∈{32,64}q \in\{32, 64\} and d∈{3,5,10,15}d \in\{3, 5, 10, 15\}. (a) Effect of the pretraining dataset composition. (b) Effect of the Langevin refinement and Distributional Tilt. (c) Effect of temperature scheduler. These results represent averages, individual results can be found in Figure S4.

Effect of Langevin refinement and distributional tilt. We disentangle the two transformations of the TS target by comparing FMTR with three variants: no Langevin, which applies the exponential tilt directly to the unrefined TS target; no tilt, which retains Langevin refinement but trains directly on p1p_1; and no Langevin + no tilt, which amortizes the unrefined TS target. Figure 4(b) shows that removing either refinement or tilt causes a clear, similar degradation, while removing both yields the weakest FMTR variant. This indicates complementary gains from the two components. Still, the doubly ablated model outperforms qTS, pointing to an additional benefit from amortized pretraining.

Effect of the temperature schedule. We compare three schedules for T(h,H)T(h, H): scheduler A, from Equation (10); scheduler B, T(h,H)=Tmax⁡(Tmin⁡/Tmax⁡)1−h−1H−1T(h, H) = T_{\max}(T_{\min}/T_{\max})^{1-\frac{h-1}{H-1}}; and scheduler C, T(h,H)=I{h=1}(Tmin⁡−Tmax⁡)+Tmax⁡T(h, H) = \mathbb{I}\{h = 1\}(T_{\min} - T_{\max}) + T_{\max}, following Teufel et al. [28]. Figure 4(c) shows that all three schedules outperform the variants without distributional tilt, indicating that the gains are not limited to a single temperature schedule. Still, scheduler A achieves the lowest NLR in later rounds, suggesting that the precise annealing profile still affects the strength and timing of exploitation.

Conclusion

We introduced FMTR, an in-context optimizer for large-batch, few-round black-box optimization that learns a continuous query proposal from horizon-dependent refinements of TS locations. Conditional flow matching amortizes these targets into parallel batch generation, avoiding task-specific model fitting and acquisition optimization. Across benchmarks, FMTR combines strong optimization performance at low online cost, while ablations show that both target refinement and value weighting improve over parallel TS. Notably, a single pretrained model remains competitive from d=2d = 2 to 15, reusing optimization experience across tasks and search-space dimensions, whereas task-specific batch baselines fit each objective independently.

Limitations and future work. An interesting point is that FMTR samples batch members independently given the history and remaining budget, without explicitly modeling within-batch redundancy. Although it remains competitive with joint-batch methods like BEEBO, joint proposals could further improve complementarity between evaluations. However, this would require jointly structured pretraining targets and an explicit batch-level objective, thus increasing pretraining complexity. Performance also depends on the synthetic-task prior (§ 5.2), motivating better-designed training distributions. Extending FMTR beyond D=15D = 15 and to discrete domains are further directions.

Reproducibility Statement

We provide all experimental details needed for reproducibility. Hyperparameters are specified in Section B.2 and Table S2; the pretraining dataset generation procedure is described in Section B; the complete training algorithm is provided in Algorithm 2; baseline hyperparameters are reported in Section E.1; and the synthetic and real world benchmark functions are described in Sections E.2 and E.3, respectively. The code will be made publicly available upon acceptance.

Episode componentDistribution or value
Search domain Xτ\mathcal{X}_{\tau}[−1,1]d[-1,1]^d
Dimension dτd_{\tau}[2,3,…,14,15][2,3,\ldots,14,15]
Batch size qτq_{\tau}[30,40,50,60,70,80][30,40,50,60,70,80]
Horizon HτH_{\tau}[5,6,7,8,9,10][5,6,7,8,9,10]
Initial context size n0,τn_{0,\tau}[10,20,30][10,20,30]
Observation noise σ\sigma0.01
Number of RFF features mm500d500d
Tmin⁡T_{\min}0.4
Tmax⁡T_{\max}1.0
Learning rate Langevin dynamics η\eta0.05
Std of Langevin dynamics’s noise term σL\sigma_L0.05
Base Langevin refinement steps KK7
Number of target location for each episode and history MM200
NrollN_{\mathrm{roll}}1500
TrefreshT_{\mathrm{refresh}}2000
γ\gamma0.7
Model hyperparameters
Embedding hidden dmodeld_{\mathrm{model}}128
Number of attention heads4
Number of self-attention layers6
Number of cross-attention layers LdecL_{\mathrm{dec}}3
Feed-forward dimension128
Number of components for GMM CC5
Number of decoder layer for GMM2 (Separate per component)
Training
OptimizerAdamW
Learning rate5e-4
Weight decay1e-2
Number of warm up step50000
Number of burn in step37500
LR schedulerCosine annealing restart with polynomial
Restart period for LR50000
Polynomial steps100000
Number of training steps1000000
Batch size128
Evaluation
Inference solver step100

Table S2. Hyperparameter settings.

AI Disclosure

In this work, we used generative AI tools for providing feedback on research methodology and implementing methods. We have not used generative AI tools for generating synthetic data sets, developing conceptual frameworks, assisting with reformat dataset and interpreting results are not applicable to this work. Additionally, we used generative AI tools for brainstorming, searching for information, and editing a research paper to improve readability. We have reviewed all AI-assisted work. LLM-generated code was verified and tested for correctness by the authors. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.

Acknowledgements

The authors thank Conor Hassan for helpful comments and feedback on early versions of this work. This work was supported by EU funding ERC ODD-ML 101201120 and the Research Council of Finland Flagship programme: Finnish Center for Artificial Intelligence FCAI and decisions 359207, 365982. S. Kaski was additionally supported by the UKRI Turing AI World-Leading Researcher Fellowship (EP/W002973/1) and J. Martinelli was supported by Research Council of Finland (grant agreement 377145). The authors acknowledge the computational resources provided by the Aalto Science-IT Project from Computer Science IT. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.

The appendix is organized as follows:

  • Appendix § 10 provides additional synthetic and real-world results across batch sizes, detailed ablations, a visualization of the optimization process, examples of pretraining tasks, and runtime comparisons.

  • Appendix § 11 details the synthetic task prior and closed-loop pretraining procedure.

  • Appendix § 12 gives the pathwise GP posterior construction, stochastic refinement, and Gibbs formulation of the value-weighted query target.

  • Appendix § 13 specifies the model architecture, derives the self-normalized importance sampling approximation to the tilted-target training objective, and provides batch-generation and computational details.

  • Appendix § 14 provides baseline details and definitions of the synthetic and real-world benchmark tasks.

Additional Experiments

More experiments on synthetic functions

Experiments on synthetic functions with q = 16

Figure S1. Experiments on synthetic functions with q=16q = 16. Log simple regret over 15 runs, shown as mean with 95% CI. The last column reports the average rank across dimensions for each function.

Experiments on synthetic functions with $q = 32$

Figure S2. Experiments on synthetic functions with q=32q = 32. Log simple regret over 15 runs, shown as mean with 95% CI. Last column reports average rank across dimensions for each function.

Experiments on synthetic functions with $q = 64$

Figure S3. Experiments on synthetic functions with q=64q = 64. Log simple regret over 15 runs, shown as mean with 95% CI. Last column reports average rank across dimensions for each function.

Further detail on Ablation Studies

Because the Ackley, Levy, and Rosenbrock functions have different regret scales, we normalize the log simple regret before averaging performance across functions in § 5.2. We refer to the resulting metric as Normalized Log Simple Regret (NLR). For each function and dimensionality, we compute the minimum and maximum log simple regret across the methods evaluated in § 5.2 and rescale to [0,1][0, 1]: NLR =log simple regret−min⁡max⁡−min⁡= \frac{\text{log simple regret} - \min}{\max- \min}. The individual results are shown in Figure S4.

More detail on Ablation Studies

Figure S4. More detail on Ablation Studies. Rows 1–3: Log simple regret with batch size 32. Rows 4–6: Log simple regret with batch size 64. Mean with 95% CI computed across 15 runs with random initializations. Lower is better.

Visualization on process

Figure S5 illustrates the targets and the FMTR proposal along one rollout with q=16q = 16 and H=10H = 10.

More experiments on real-world applications

Experiments on real-world functions with $q \in \{32, 64\}$

Figure S6. Experiments on real-world functions with q∈{32,64}q \in\{32, 64\}. Top 2 rows: normalized best value. Bottom 2 rows: Top 10 normalized best value. Mean with 95% CI computed across 15 runs with random initializations. Higher is better. Last column is the average rank across all tasks for each batch size.

Examples of training tasks

Figure S7 shows 12 training sample tasks with d=2d = 2.

Runtime Comparison

Table S1 presents the runtime performance of all baselines evaluated on the Ackley function (q=64q = 64, H=10H = 10) across 15 independent runs. The results demonstrate that our proposed method achieves the fastest execution time.

Additional pretraining details

Synthetic objective prior

This section specifies the two components of the synthetic objective in Equation (8). For each optimization episode τ\tau, we sample a stationary kernel kτk_\tau and its hyperparameters. Let pτ(ω)p_\tau(\omega) denote the corresponding spectral density. Following Rakotoarison et al. (2026), we approximate a sample from GP(0,kτ)\mathcal{GP}(0, k_\tau) using mm random Fourier features:

fRFF,τ(x)=2mzτTcos⁡(Ωτx+bτ),(18)f_{\mathrm{RFF},\tau}(\mathbf{x}) = \sqrt{\frac{2}{m}} \mathbf{z}_\tau^{\mathsf{T}} \cos(\mathbf{\Omega}_\tau\mathbf{x} + \mathbf{b}_\tau), \tag*{(18)}

where

Ωτ=[ωτ,1T⋮ωτ,mT]∈Rm×dτ,ωτ,j∼i.i.d.pτ(ω).\mathbf{\Omega}_\tau= \begin{bmatrix} \omega_{\tau,1}^{\mathsf{T}} \\ \vdots\\ \omega_{\tau,m}^{\mathsf{T}} \end{bmatrix} \in\mathbb{R}^{m \times d_\tau}, \qquad \omega_{\tau,j} \overset{\mathrm{i.i.d.}}{\sim} p_\tau(\omega).

The feature coefficients and phase offsets are sampled as

zτ∼N(0,Im),bτ∼U([0,2π]m).(19)\mathbf{z}_\tau\sim\mathcal{N}(0, \mathbf{I}_m), \qquad \mathbf{b}_\tau\sim\mathcal{U}([0, 2\pi]^m). \tag*{(19)}

The cosine in Equation (18) is applied element-wise.

Next, we add the randomized trend

ftrend,τ(x)=−aτ(∑j=1dτwτ,j(xj−cτ,j)2)pτ,(20)f_{\mathrm{trend},\tau}(\mathbf{x}) = -a_\tau\left(\sum_{j=1}^{d_\tau} w_{\tau,j}(x_j - c_{\tau,j})^2\right)^{p_\tau}, \tag*{(20)}

where aτa_\tau, pτp_\tau, wτ=(wτ,1,…,wτ,dτ)\mathbf{w}_\tau= (w_{\tau,1}, \ldots, w_{\tau,d_\tau}), and cτ=(cτ,1,…,cτ,dτ)\mathbf{c}_\tau= (c_{\tau,1}, \ldots, c_{\tau,d_\tau}) are sampled independently for each episode. The resulting objective is

fτ(x)=fRFF,τ(x)+ftrend,τ(x).f_\tau(\mathbf{x}) = f_{\mathrm{RFF},\tau}(\mathbf{x}) + f_{\mathrm{trend},\tau}(\mathbf{x}).

The explicit RFF representation makes each posterior path differentiable, so its maximizer can be obtained using gradient-based optimization. The kernel and its hyperparameters are sampled as part of the episode and are therefore available during target construction without task-specific estimation.

Sampling kernel and trend function

For each synthetic task, we sample the kernel and trend parameters as follows:

  1. Kernel family. We sample a Matérn kernel with ν∈{1/2,3/2,5/2,∞}\nu\in\{1/2, 3/2, 5/2, \infty\}, with probabilities proportional to (0.1,1,1,1)(0.1, 1, 1, 1). The output scale is sampled from U(0.1,1.0)\mathcal{U}(0.1, 1.0).

  1. Lengthscale structure. We sample isotropic, ARD, or grouped lengthscales with probabilities 0.20.2, 0.70.7, and 0.10.1, respectively. Isotropic kernels use a shared lengthscale from U(0.01,0.5)\mathcal{U}(0.01, 0.5) (our search domain being Xτ:=[−1,1]d\mathcal{X}_{\tau} := [-1, 1]^{d}), while ARD kernels sample each coordinate independently from the same distribution. For grouped kernels, dimensions are assigned to fast and slow groups with centers cfast<cslowc_{\mathrm{fast}} < c_{\mathrm{slow}}, which are independently perturbed across dimensions. This generates objectives with heterogeneous, potentially low effective dimensionality. A random rotation is additionally applied with probability prot=0.3p_{\mathrm{rot}} = 0.3 to generate non-axis-aligned functions.

  1. Trend inclusion and location. We omit the quadratic trend with probability pnone=0.2p_{\mathrm{none}} = 0.2. Otherwise, its center cτ\mathbf{c}_{\tau} is sampled from U(−0.8,0.8)\mathcal{U}(-0.8, 0.8) with probability poutside=0.25p_{\mathrm{outside}} = 0.25, and from U(−0.375,0.375)\mathcal{U}(-0.375, 0.375) otherwise, allowing some optima to lie near the boundary of the search space.

  1. Trend shape. The weights are sampled as wτ∼exp⁡(U(−0.8,0.8))\mathbf{w}_{\tau} \sim\exp(\mathcal{U}(-0.8, 0.8)) and normalized by their mean, while pτp_{\tau} is sampled uniformly from {0.5,1,2}\{0.5, 1, 2\}.

  1. Relative scale. We choose aτa_{\tau} such that the variance ratio between fRFF,τf_{\mathrm{RFF},\tau} and ftrend,τf_{\mathrm{trend},\tau} lies in [0.3,6.0][0.3, 6.0], preventing either component from dominating the objective.

For the other hyper-parameters, see Table S2.

Closed-loop pretraining

At DAgger rollout iteration ss, the probability of sampling the rollout batch from p~1\tilde{p}_{1} is

βs=γs,(21)\beta_s = \gamma^s, \tag*{(21)}

where γ∈(0,1)\gamma\in(0, 1) controls the decay. The initial replay buffer is constructed from p~1\tilde{p}_{1}-only rollouts, corresponding to s=0s = 0 and β0=1\beta_0 = 1, so that valid training examples are available before the first parameter update. Later rollouts increasingly use the current FMTR proposal as βs\beta_s decreases. For each visited state (Dr,hr,H)(\mathcal{D}_r, h_r, H), we recompute p~1(⋅∣Dr,hr,H)\tilde{p}_{1}(\cdot\mid\mathcal{D}_r, h_r, H) and store MM target locations together with the information required to evaluate the training objective. The complete rollout batch is then drawn from either p~1\tilde{p}_{1} or the current FMTR proposal according to Equation (17). Its observations are appended to the history before constructing the next state. In practice, for simplicity, we can use p1p_1 instead of p~1\tilde{p}_1 for BrB_r in Equation (17), and store the samples from p1p_1 and their corresponding weights for computing the training loss in Equation (16).

The replay buffer is partitioned into buckets {Bn}\{\mathcal{B}_n\}, where Bn\mathcal{B}_n contains states whose histories have size nn. Let

SB={n:Bn≠∅}\mathcal{S}_{B} = \{n : \mathcal{B}_n \ne\varnothing\}

denote the occupied context-size buckets. A training minibatch is sampled by first drawing

n∼U(SB)n \sim\mathcal{U}(\mathcal{S}_{B})

and then drawing bb examples uniformly from Bn\mathcal{B}_n. All examples in the resulting minibatch have the same context length, which also permits rectangular batching without padding contexts of different sizes.

The buffer is augmented every TrefreshT_{\mathrm{refresh}} parameter updates. As ss increases, the decreasing βs\beta_s exposes FMTR to histories increasingly induced by its own proposals, while the target distribution is recomputed at every visited state. Algorithm 2 gives the corresponding rollout and replay procedures.

Additional details on query target distribution construction

Pathwise GP posterior sampling

Consider a history D={(xi,yi)}i=1nc\mathcal{D} = \{(\mathbf{x}_i, y_i)\}_{i=1}^{n_c}, and define

X=[x1⊤⋮xnc⊤]∈Rnc×dτ,y=(y1,…,ync)⊤.\mathbf{X} = \begin{bmatrix} \mathbf{x}_1^{\top}\\ \vdots\\ \mathbf{x}_{n_c}^{\top} \end{bmatrix} \in\mathbb{R}^{n_c \times d_{\tau}}, \qquad \mathbf{y} = (y_1,\ldots,y_{n_c})^{\top}.

For episode τ\tau, we treat mτ(x)=ftrend,τ(x)m_{\tau}(x)=f_{\mathrm{trend},\tau}(x) as the GP mean and kτk_{\tau} as its covariance kernel. Let

Kτ=[kτ(xi,xj)]i,j=1nc,kτ,X(x)=(kτ(x,x1),…,kτ(x,xnc))T,\mathbf{K}_{\tau}=\left[k_{\tau}(x_i,x_j)\right]_{i,j=1}^{n_c},\qquad\mathbf{k}_{\tau,\mathcal{X}}(x)=\left(k_{\tau}(x,x_1),\ldots,k_{\tau}(x,x_{n_c})\right)^{\mathsf{T}},

and let mτ=(mτ(x1),…,mτ(xnc))T\mathbf{m}_{\tau}=\left(m_{\tau}(x_1),\ldots,m_{\tau}(x_{n_c})\right)^{\mathsf{T}}.

For posterior draw jj, we sample an independent zero-mean RFF prior path gτ(j)g_{\tau}^{(j)}, using the construction described in Appendix § 11.§ 1 and [24]. We also draw

ϵ~(j)∼N(0,σ2Inc),\widetilde{\boldsymbol{\epsilon}}^{(j)}\sim\mathcal{N}\left(0,\sigma^2\mathbf{I}_{n_c}\right),

where σ2\sigma^2 is the observation-noise variance, and define

ψτ(j)(x)=(ψτ(j)(x1),…,ψτ(j)(xnc))T.\boldsymbol{\psi}_{\tau}^{(j)}(x)=\left(\psi_{\tau}^{(j)}(x_1),\ldots,\psi_{\tau}^{(j)}(x_{n_c})\right)^{\mathsf{T}}.

Matheron’s rule gives the correction coefficients

v(j)=(Kτ+σ2Inc)−1(y−mτ−ψτ(j)−ϵ~(j)),(22)\mathbf{v}^{(j)}=\left(\mathbf{K}_{\tau}+\sigma^2\mathbf{I}_{n_c}\right)^{-1}\left(\mathbf{y}-\mathbf{m}_{\tau}-\boldsymbol{\psi}_{\tau}^{(j)}-\widetilde{\boldsymbol{\epsilon}}^{(j)}\right), \tag*{(22)}

Algorithm 2 FMTR pretraining: full procedure

Require: Episode prior p(τ)p(\tau); update budget NtrainN_{\mathrm{train}}; minibatch size bb; targets per state MM; episodes per collection NrollN_{\mathrm{roll}}; refresh period TrefreshT_{\mathrm{refresh}}; decay γ∈(0,1)\gamma\in(0,1)

  1. Initialize θ\theta, bucketed buffer B←∅\mathcal{B} \leftarrow\varnothing, and counters u←0u \leftarrow0, s←0s \leftarrow0

  2. while u<Ntrainu < N_{\mathrm{train}} do

  3. βs←γs\beta_s \leftarrow\gamma^s ▷ Equation (21)

  4. for j=1,…,Nrollj=1,\ldots,N_{\mathrm{roll}} do

  5. Sample τ∼p(τ)\tau\sim p(\tau); set D←Dτ0\mathcal{D} \leftarrow\mathcal{D}_{\tau}^{0}

  6. for r=0,…,Hτ−1r=0,\ldots,H_{\tau}-1 do

  7. h←Hτ−rh \leftarrow H_{\tau}-r, α←h/Hτ\alpha\leftarrow h/H_{\tau}

  8. Draw MM independent posterior paths using Equation (23)

  9. Maximize each path to obtain xTS(m)x_{\mathrm{TS}}^{(m)} via Equation (24)

  10. Refine each xTS(m)x_{\mathrm{TS}}^{(m)} for Kh,HτK_{h,H_{\tau}} steps using Equation (11), yielding x1(m)x_{1}^{(m)}

  11. Z←{(x1(m),fτ(x1(m)))}m=1M\mathcal{Z} \leftarrow\{(x_{1}^{(m)},f_{\tau}(x_{1}^{(m)}))\}_{m=1}^{M}

  12. Append (τ,D,h,Hτ,Z)(\tau,\mathcal{D},h,H_{\tau},\mathcal{Z}) to B∣D∣\mathcal{B}_{|\mathcal{D}|}

  13. Draw z∼Bernoulli⁡(βs)z \sim\operatorname{Bernoulli}(\beta_s)

  14. if z=1z=1 then

  15. Br∼p1(⋅∣D,h,Hτ)⊗qτ\mathcal{B}_r \sim p_1(\cdot\mid\mathcal{D},h,H_{\tau})^{\otimes q_{\tau}}

  16. else

  17. Br∼pθ(⋅∣D,α)⊗qτ\mathcal{B}_r \sim p_{\theta}(\cdot\mid\mathcal{D},\alpha)^{\otimes q_{\tau}}

  18. end if

  19. Draw ϵr,i∼i.i.d.N(0,σ2)\epsilon_{r,i}\mathrel{\mathop{\sim}^{\mathrm{i.i.d.}}}\mathcal{N}(0,\sigma^2), i=1,…,qτi=1,\ldots,q_{\tau}

  20. Evaluate yr,i=fτ(xr,i)+ϵr,iy_{r,i}=f_{\tau}(x_{r,i})+\epsilon_{r,i} in parallel for xr,i∈Brx_{r,i}\in\mathcal{B}_r

  21. D←D∪{(xr,i,yr,i)}i=1qτ\mathcal{D}\leftarrow\mathcal{D}\cup\{(x_{r,i},y_{r,i})\}_{i=1}^{q_{\tau}}

  22. end for

  23. end for

  24. U←min⁡(Trefresh,Ntrain−u)U\leftarrow\min(T_{\mathrm{refresh}},N_{\mathrm{train}}-u)

  25. SB←{n:Bn≠∅}\mathcal{S}_{\mathcal{B}}\leftarrow\{n:\mathcal{B}_n\ne\varnothing\}

  26. for each of the next UU parameter updates do

  27. Draw n∼U(SB)n\sim\mathcal{U}(\mathcal{S}_{\mathcal{B}})

  28. Sample a minibatch T\mathcal{T} of bb records uniformly from Bn\mathcal{B}_n

  29. for each record (τ,D,h,H,Z)∈T(\tau,\mathcal{D},h,H,\mathcal{Z})\in\mathcal{T} do

  30. Set α←h/H\alpha\leftarrow h/H and compute w1:Mw_{1:M} using Equation (44)

  31. Draw t∼U(0,1)t\sim\mathcal{U}(0,1) and x0(1:M)∼N(0,Idτ)⊗Mx_0^{(1:M)}\sim\mathcal{N}(0,I_{d_{\tau}})^{\otimes M}

  32. Set xt(m)←(1−t)x0(m)+tx1(m)x_t^{(m)}\leftarrow(1-t)x_0^{(m)}+tx_1^{(m)} and ut(m)←x1(m)−x0(m)u_t^{(m)}\leftarrow x_1^{(m)}-x_0^{(m)}, m=1,…,Mm=1,\ldots,M

  33. end for

  34. Compute L^\widehat{\mathcal{L}} by averaging the weighted losses in Equation (48) over T\mathcal{T}

  35. θ←OPTIMISERSTEP⁡(θ,∇θL^)\theta\leftarrow\operatorname{OPTIMISERSTEP}(\theta,\nabla_{\theta}\widehat{\mathcal{L}})

  36. u←u+1u\leftarrow u+1

  37. end for

  38. s←s+1s\leftarrow s+1

  39. end while

  40. return θ\theta

and the corresponding posterior path is

f~τ(j)(x)=mτ(x)+ψτ(j)(x)+kτ,X(x)⊤v(j).(23)\widetilde{f}_{\tau}^{(j)}(x)=m_{\tau}(x)+\psi_{\tau}^{(j)}(x)+\mathbf{k}_{\tau,X}(x)^{\top}\mathbf{v}^{(j)}. \tag*{(23)}

This separates the posterior sample into an RFF prior path and a function-space correction determined by the observations [32]. If the pretraining implementation conditions on noise-free observations, Equation (22) reduces to the case σ=0\sigma=0, and the auxiliary noise draw is omitted.

For each of MM independent posterior paths, we compute

xTS(j)∈arg⁡max⁡x∈Xτ f~τ(j)(x),j=1,…,M.(24)x_{\mathrm{TS}}^{(j)}\in\underset{x\in\mathcal{X}_{\tau}}{\arg\max}\ \widetilde{f}_{\tau}^{(j)}(x),\qquad j=1,\ldots,M. \tag*{(24)}

The resulting empirical Thompson-sampling distribution is

p^TS(⋅∣D)=1M∑j=1MδxTS(j)(⋅).(25)\widehat{p}_{\mathrm{TS}}(\cdot\mid\mathcal{D})=\frac{1}{M}\sum_{j=1}^{M}\delta_{x_{\mathrm{TS}}^{(j)}}(\cdot). \tag*{(25)}

Algorithm 3 FMTR batch generation

Require: GMM velocity network vθv_\theta; total horizon HH, remaining horizon hh; batch size qq; ODE solver step nn; context set D={(xi,yi)}i=1nc\mathcal{D} = \{(x_i,y_i)\}_{i=1}^{n_c}

  1. α←h/H\alpha\leftarrow h/H

  2. x(1:q)∼N(0,Id)⊗qx^{(1:q)} \sim\mathcal{N}(0,I_d)^{\otimes q}

  3. for i=0,…,n−1i=0,\ldots,n-1 do

  4. t=i/nt=i/n

  5. t2=(i+1)/nt_2=(i+1)/n

  6. u(k)∼vθ(⋅∣x(k),t,D,α)u^{(k)} \sim v_\theta(\cdot\mid x^{(k)},t,\mathcal{D},\alpha), k=1,…,qk=1,\ldots,q.

  7. x^1(1:q)=x(1:q)+(1−t)u(1:q)\hat{x}^{(1:q)}_1=x^{(1:q)}+(1-t)u^{(1:q)} ▷ Endpoint sample.

  8. x^0(1:q)∼N(0,Id)⊗q\hat{x}^{(1:q)}_0\sim\mathcal{N}(0,I_d)^{\otimes q} ▷ Re-noise source state.

  9. x(1:q)=(1−t2)x^0(1:q)+t2x^1(1:q)x^{(1:q)}=(1-t_2)\hat{x}^{(1:q)}_0+t_2\hat{x}^{(1:q)}_1

  10. end for

  11. return x(1:q)x^{(1:q)}

where δx\delta_x denotes a point mass at x\mathbf{x}. The explicit RFF representation makes each posterior path differentiable, so its maximizer can be obtained using gradient-based optimization. The kernel and its hyperparameters are sampled as part of the episode and are therefore available during target construction without task-specific estimation.

Stochastic refinement of Thompson-sampling targets

Normalized updates. For a fixed episode and optimization state (τ,D,h,H)(\tau,\mathcal{D},h,H), the temperature and number of refinement steps are given by Equation (10). We define the normalized gradient as

gτ(x)={∇fτ(x)∥∇fτ(x)∥2,∥∇fτ(x)∥2>0,0,otherwise.(26)g_\tau(\mathbf{x}) = \begin{cases} \dfrac{\nabla f_\tau(\mathbf{x})}{\lVert\nabla f_\tau(\mathbf{x})\rVert_2}, & \lVert\nabla f_\tau(\mathbf{x})\rVert_2>0,\\ 0, & \text{otherwise}. \end{cases} \tag*{(26)}

Thus, the deterministic increment in Equation (11) has norm at most η\eta, independently of the objective-gradient magnitude. The temperature changes the number of updates through Kh,HK_{h,H}; it does not rescale the gradient or noise within an individual update.

Stochastic target construction. For each Thompson-sampling location xTS(j)\mathbf{x}_{\mathrm{TS}}^{(j)}, we initialize x(0,j)=xTS(j)\mathbf{x}^{(0,j)}=\mathbf{x}_{\mathrm{TS}}^{(j)} and apply Equation (11) using independent perturbations {ξk(j)}k=0Kh,H−1\{\xi_k^{(j)}\}_{k=0}^{K_{h,H}-1}. Let

Φτ,h,H(xTS(j),ξ0:Kh,H−1(j))=x(Kh,H,j)\Phi_{\tau,h,H}\left(\mathbf{x}_{\mathrm{TS}}^{(j)},\xi_{0:K_{h,H}-1}^{(j)}\right)=\mathbf{x}^{(K_{h,H},j)}

denote the resulting refinement map. The population target is

p1(⋅∣D,h,H)=(Φτ,h,H)#[pTS(⋅∣D)⊗N(0,Id)⊗Kh,H].(27)p_1(\cdot\mid\mathcal{D},h,H) = (\Phi_{\tau,h,H})_{\#} \left[ p_{\mathrm{TS}}(\cdot\mid\mathcal{D}) \otimes \mathcal{N}(0,I_d)^{\otimes K_{h,H}} \right]. \tag*{(27)}

Including the perturbations in the source measure makes the stochastic nature of the refinement explicit. To prevent samples from leaving the domain, we apply reflection [19] after each refinement step whenever a point falls outside the domain bounds. In practice, the target is represented by MM refined samples,

p^1(⋅∣D,h,H)=1M∑j=1Mδx(Kh,H,j)(⋅).(28)\widehat{p}_1(\cdot\mid\mathcal{D},h,H) = \frac{1}{M}\sum_{j=1}^{M}\delta_{\mathbf{x}^{(K_{h,H},j)}}(\cdot). \tag*{(28)}

These samples provide the target locations used in § 3.3; their relative contributions to training are subsequently determined by the value weights in Equation (44).

Finite-step interpretation. We use the distribution after exactly Kh,HK_{h,H} updates, rather than running the process to stationarity. The construction therefore retains the Thompson-sampling initialization as part of the target definition. Accordingly, the target is defined by the finite-step refinement dynamics rather than by a stationary Langevin distribution. The values of KK, η\eta, σL\sigma_L, Tmin⁡T_{\min}, and Tmax⁡T_{\max} are reported in Table S2.

Scope of the refinement procedure. The target construction only requires samples from a finite refinement procedure, so other procedures could be considered for different synthetic-task families. Related samplers address departures from smooth continuous objectives: P-LMC (Chatterji et al., [7]) treats nonsmooth potentials under assumptions that include subgradient access, whereas DLP (Zhang et al., [36]) uses gradients of a differentiable extension to construct proposals over discrete variables.

Value-weighted target distribution

For a fixed episode τ\tau and state (D,h,H)(\mathcal{D}, h, H), write T=T(h,H)>0T = T(h, H) > 0 and suppress the conditioning of p1p_1 and p~1\tilde{p}_1. Refinement changes query locations using the objective gradient, but the resulting basin masses also depend on the Thompson-sampling initialization and finite-step dynamics. Value weighting additionally adjusts these masses according to the attained objective values.

Gibbs variational characterization. Consider

p~1=argmax⁡p≪p1{Ep[fτ(x)]−TKL⁡(p∥p1)},(29)\tilde{p}_1 = \underset{p \ll p_1}{\operatorname{argmax}}\left\{\mathbb{E}_p[f_\tau(x)] - T \operatorname{KL}(p\Vert p_1)\right\}, \tag*{(29)}

where p≪p1p \ll p_1 denotes absolute continuity, and we restrict to probability distributions with finite objective expectations and KL divergences. Define

Z=Ep1[exp⁡(fτ(x)T)],p~1(dx)=exp⁡(fτ(x)/T)Zp1(dx).(30)Z = \mathbb{E}_{p_1}\left[\exp\left(\frac{f_\tau(x)}{T}\right)\right], \qquad\tilde{p}_1(\mathrm{d}x) = \frac{\exp(f_\tau(x)/T)}{Z}p_1(\mathrm{d}x). \tag*{(30)}

Assume 0<Z<∞0 < Z < \infty and Ep~1[∣fτ(x)∣]<∞\mathbb{E}_{\tilde{p}_1}[|f_\tau(x)|] < \infty. For any admissible pp, substituting the density ratio from Equation (30) gives

Ep[fτ(x)]−TKL⁡(p∥p1)=Tlog⁡Z−TKL⁡(p∥p~1).(31)\mathbb{E}_p[f_\tau(x)] - T \operatorname{KL}(p\Vert p_1) = T \log Z - T \operatorname{KL}(p\Vert\tilde{p}_1). \tag*{(31)}

Nonnegativity of KL divergence establishes that p~1\tilde{p}_1 is the unique maximizer.

Relation to refinement. For a fixed reference distribution p1p_1, reducing TT increases the relative weight assigned to larger objective values. In FMTR, TT also changes the reference distribution through the refinement budget Kh,HK_{h,H}. The Gibbs characterization applies to this finite-step reference law and requires no stationary-distribution assumption for the refinement dynamics. Moreover, p~1≪p1\tilde{p}_1 \ll p_1: value weighting redistributes existing probability mass but cannot recover regions assigned zero mass by p1p_1. Appendix D.2 explains its implementation through weighted training.

Model architecture and training details

This section provides additional details for the conditional proposal model introduced in § 3.3. We first specify the input representations and conditional decoder, then expand the weighted training objective in Equation (16), and finally give additional details on batch generation. Model architecture figure is given in Figure S8.

Input representation and conditional decoder

Variable-dimensional inputs. To support objectives with input dimension d≤Dd \le D, where DD is the maximum dimension supported by FMTR, each location is zero-padded to DD coordinates and paired with an active-dimension mask m∈{0,1}D\mathbf{m} \in\{0,1\}^{D}. Padded coordinates remain fixed at zero throughout generation. § 3.3 uses the active dd-dimensional coordinates for readability.

Context encoding. The location and objective value of each observation are embedded as

zi=Ex(xi)+Ey(yi),(32)\mathbf{z}_i = E_x(\mathbf{x}_i) + E_y(y_i), \tag*{(32)}

with zi∈Rdmodel\mathbf{z}_i \in\mathbb{R}^{d_{\mathrm{model}}}. A pre-normalized transformer encoder processes these tokens together with a learned global token (Vaswani et al., [30]). We retain the contextualized observation tokens as the memory

M∈Rnc×dmodel,\mathcal{M} \in\mathbb{R}^{n_c \times d_{\mathrm{model}}},

rather than pooling them into a single representation.

No positional encodings are used for the observations. Permuting the history therefore only permutes the corresponding memory tokens, leaving cross-attention to the memory unchanged. Since M\mathcal{M} depends on the observed history but not on the flow state, it is computed once per optimization round and reused throughout flow generation.

Flow-state embedding. The semantics of xtx_t vary with flow time: near t=0t = 0, it is dominated by the Gaussian base sample, while near t=1t = 1, it approaches a query location. We therefore use

q=Et(xt,t,α)=Ex(xt)+(1−t)MLP⁡(xt,t,α),(33)\mathbf{q} = E_t(x_t, t, \alpha) = E_x(x_t) + (1 - t)\operatorname{MLP}(x_t, t, \alpha), \tag*{(33)}

where both terms lie in Rdmodel\mathbb{R}^{d_{\mathrm{model}}}. The additional term vanishes at t=1t = 1, giving Et(x,1,α)=Ex(x)E_t(x, 1, \alpha) = E_x(x).

Conditional decoder with AdaLN-Zero. The flow token q\mathbf{q} is processed by LdecL_{\mathrm{dec}} cross-attention blocks, each attending to M\mathcal{M} without self-attention among flow tokens. Following AdaLN-Zero from DiT ([23]), flow time and the remaining-round fraction are combined as

c=Etime(t)+Ehorizon(α),(34)\mathbf{c} = E_{\mathrm{time}}(t) + E_{\mathrm{horizon}}(\alpha), \tag*{(34)}

where EtimeE_{\mathrm{time}} uses random Fourier features of tt and EhorizonE_{\mathrm{horizon}} is a multilayer perceptron.

Each decoder block maps this conditioning vector to scale, shift, and gating parameters,

(γ1,β1,g1,γ2,β2,g2)=WadaSiLU⁡(c),(35)(\gamma_1, \beta_1, g_1, \gamma_2, \beta_2, g_2) = W_{\mathrm{ada}}\operatorname{SiLU}(\mathbf{c}), \tag*{(35)}

and applies

q←q+g1⊙MHA⁡((1+γ1)⊙LN⁡(q)+β1,LN⁡(M)),(36)\mathbf{q} \leftarrow\mathbf{q} + g_1 \odot\operatorname{MHA}\left((1 + \gamma_1) \odot\operatorname{LN}(\mathbf{q}) + \beta_1, \operatorname{LN}(\mathcal{M})\right), \tag*{(36)}
q←q+g2⊙FFN⁡((1+γ2)⊙LN⁡(q)+β2).(37)\mathbf{q} \leftarrow\mathbf{q} + g_2 \odot\operatorname{FFN}\left((1 + \gamma_2) \odot\operatorname{LN}(\mathbf{q}) + \beta_2\right). \tag*{(37)}

Here, the second argument of MHA supplies its keys and values. Following AdaLN-Zero, WadaW_{\mathrm{ada}} is initialized to zero, so the residual gates vanish at initialization and each decoder block initially acts as the identity on its query token. The context memory is normalized but not modulated by the flow-time conditioning, since it represents fixed observed data.

Gaussian mixture head. The final decoder representation is projected to the parameters of the velocity distribution in Equation (14): CC mixture logits, CC mean vectors, and CC diagonal scale vectors. The mixture weights are obtained by applying a softmax to the logits. The predicted scales are lower-bounded by a small positive constant for numerical stability.

Training objective

We now expand the objective in Equation (16). Let ρtrain(τ,D,h,H)\rho_{\mathrm{train}}(\tau, \mathcal{D}, h, H) denote the distribution over training records produced by the closed-loop collection and context-length-stratified sampling procedure described in § 3.4. For a sampled record, define α=h/H\alpha= h/H and consider the population flow-matching objective under the tilted target,

Ltilt(θ)=−E(τ,D,h,H)∼ρtrain[Et∼U(0,1),x~1∼p~1(⋅∣D,h,H),x0∼p0[log⁡vθ(u~t∣x~t,t,D,α)]],α=hH.(38)\mathcal{L}_{\mathrm{tilt}}(\theta) = -\mathbb{E}_{(\tau,\mathcal{D},h,H)\sim\rho_{\mathrm{train}}}\left[\mathbb{E}_{\substack{t\sim U(0,1),\\ \tilde{x}_1\sim\tilde{p}_1(\cdot\mid\mathcal{D},h,H),\\ x_0\sim p_0}}\left[\log v_\theta\left(\tilde{u}_t\mid\tilde{x}_t,t,\mathcal{D},\alpha\right)\right]\right], \qquad\alpha=\frac{h}{H}. \tag*{(38)}

where p0=N(0,Id)p_0=\mathcal{N}(0,I_d), x~t=(1−t)x0+tx~1\tilde{x}_t=(1-t)x_0+t\tilde{x}_1, and u~t=x~1−x0\tilde{u}_t=\tilde{x}_1-x_0.

Direct samples from p~1\tilde{p}_1 are not available in our target construction. Instead, we have samples from p1(⋅∣D,h,H)p_1(\cdot\mid\mathcal{D},h,H). From Equation (13),

p~1(x∣D,h,H)=p1(x∣D,h,H)exp⁡(fτ(x)/T(h,H))Z(τ,D,h,H),(39)\tilde{p}_1(x\mid\mathcal{D},h,H)=\frac{p_1(x\mid\mathcal{D},h,H)\exp\left(f_\tau(x)/T(h,H)\right)}{Z(\tau,\mathcal{D},h,H)}, \tag*{(39)}

where

Z(τ,D,h,H)=Ex∼p1(⋅∣D,h,H)[exp⁡(fτ(x)/T(h,H))].(40)Z(\tau,\mathcal{D},h,H)=\mathbb{E}_{x\sim p_1(\cdot\mid\mathcal{D},h,H)}\left[\exp\left(f_\tau(x)/T(h,H)\right)\right]. \tag*{(40)}

Hence, for any p~1\tilde{p}_1-integrable function ψ\psi, and assuming 0<Z<+∞0<Z<+\infty

Ep~1[ψ(x1)]=∫ψ(x1)p~1(x1∣D,h,H) dx1=1Z∫ψ(x1)p1(x1∣D,h,H)exp⁡(fτ(x1)T(h,H)) dx1=Ep1[exp⁡(fτ(x1)/T(h,H))ψ(x1)]Ep1[exp⁡(fτ(x1)/T(h,H))].(41)\begin{aligned} \mathbb{E}_{\tilde{p}_1}[\psi(x_1)] &= \int\psi(x_1)\tilde{p}_1(x_1\mid\mathcal{D},h,H)\,\mathrm{d}x_1 \\ &= \frac{1}{Z}\int\psi(x_1)p_1(x_1\mid\mathcal{D},h,H)\exp\left(\frac{f_\tau(x_1)}{T(h,H)}\right)\,\mathrm{d}x_1 \\ &= \frac{\mathbb{E}_{p_1}\left[\exp\left(f_\tau(x_1)/T(h,H)\right)\psi(x_1)\right]}{\mathbb{E}_{p_1}\left[\exp\left(f_\tau(x_1)/T(h,H)\right)\right]}. \tag*{(41)} \end{aligned}

For MM independent samples x1(i)∼p1(⋅∣D,h,H)x_1^{(i)}\sim p_1(\cdot\mid\mathcal{D},h,H), define the unnormalized importance weights

si=exp⁡(fτ(x1(i))T(h,H)),i=1,…,M.(42)s_i=\exp\left(\frac{f_\tau(x_1^{(i)})}{T(h,H)}\right),\qquad i=1,\ldots,M. \tag*{(42)}

Self-normalized importance sampling (Aeckerle-Willems et al., 2026) then approximates Equation (41) as

Ep~1[ψ(x1)]≈∑i=1Msiψ(x1(i))∑j=1Msj=∑i=1Mwiψ(x1(i)),(43)\mathbb{E}_{\tilde{p}_1}[\psi(x_1)]\approx\frac{\sum_{i=1}^{M}s_i\psi(x_1^{(i)})}{\sum_{j=1}^{M}s_j}=\sum_{i=1}^{M}w_i\psi(x_1^{(i)}), \tag*{(43)}

where

wi=si∑j=1Msj=exp⁡(fτ(x1(i))/T(h,H))∑j=1Mexp⁡(fτ(x1(j))/T(h,H))=softmax⁡i(fτ(x1(i))T(h,H)).(44)\begin{aligned} w_i &= \frac{s_i}{\sum_{j=1}^{M}s_j}\\ &= \frac{\exp\left(f_\tau(x_1^{(i)})/T(h,H)\right)}{\sum_{j=1}^{M}\exp\left(f_\tau(x_1^{(j)})/T(h,H)\right)}\\ &= \operatorname{softmax}_i\left(\frac{f_\tau(x_1^{(i)})}{T(h,H)}\right). \tag*{(44)} \end{aligned}

Equivalently, using the density ratio from Equation (39),

p~1(x1(i)∣D,h,H)p1(x1(i)∣D,h,H)=siZ,(45)\frac{\tilde{p}_1(x_1^{(i)}\mid\mathcal{D},h,H)}{p_1(x_1^{(i)}\mid\mathcal{D},h,H)}=\frac{s_i}{Z}, \tag*{(45)}

so that the unknown normalizing constant ZZ cancels after normalizing the importance weights:

p~1(x1(i))/p1(x1(i))∑j=1Mp~1(x1(j))/p1(x1(j))=si∑j=1Msj=wi.(46)\frac{\tilde{p}_1(x_1^{(i)})/p_1(x_1^{(i)})}{\sum_{j=1}^{M}\tilde{p}_1(x_1^{(j)})/p_1(x_1^{(j)})}=\frac{s_i}{\sum_{j=1}^{M}s_j}=w_i. \tag*{(46)}

We now apply this approximation to the inner expectation in Equation (38). For

ψ(x1)=Et∼U(0,1),x0∼p0[log⁡vθ(ut∣xt,t,D,α)],\psi(x_1)=\mathbb{E}_{\substack{t\sim U(0,1),\\x_0\sim p_0}}\left[\log v_\theta\left(u_t\mid x_t,t,\mathcal{D},\alpha\right)\right],

where xt=(1−t)x0+tx1x_t=(1-t)x_0+tx_1 and ut=x1−x0u_t=x_1-x_0, Equation (43) gives

Et∼U(0,1),x~1∼p~1(⋅∣D,h,H),x0∼p0[log⁡vθ(u~t∣x~t,t,D,α)]≈Et∼U(0,1),x1(1:M)∼p1(⋅∣D,h,H)⊗M,x0(1:M)∼p0⊗M[∑i=1Mwilog⁡vθ(ut(i)∣xt(i),t,D,α)].(47)\mathbb{E}_{\substack{t\sim\mathcal{U}(0,1),\\ \tilde{x}_1\sim\tilde{p}_1(\cdot\mid\mathcal{D},h,H),\\ x_0\sim p_0}}\left[\log v_\theta\left(\tilde{u}_t\mid\tilde{x}_t,t,\mathcal{D},\alpha\right)\right] \approx \mathbb{E}_{\substack{t\sim\mathcal{U}(0,1),\\ x_1^{(1:M)}\sim p_1(\cdot\mid\mathcal{D},h,H)^{\otimes M},\\ x_0^{(1:M)}\sim p_0^{\otimes M}}}\left[\sum_{i=1}^{M}w_i\log v_\theta\left(u_t^{(i)}\mid x_t^{(i)},t,\mathcal{D},\alpha\right)\right]. \tag*{(47)}

with

xt(i)=(1−t)x0(i)+tx1(i),ut(i)=x1(i)−x0(i).x_t^{(i)}=(1-t)x_0^{(i)}+tx_1^{(i)},\qquad u_t^{(i)}=x_1^{(i)}-x_0^{(i)}.

Combining this approximation with the outer expectation over training records gives the practical training objective

L(θ)=−E(τ,D,h,H)∼ρtrain,t∼U(0,1),x1(1:M)∼p1(⋅∣D,h,H)⊗M,x0(1:M)∼N(0,Id)⊗M[∑i=1Mwilog⁡vθ(ut(i)∣xt(i),t,D,α)],α=hH.(48)\mathcal{L}(\theta)=-\mathbb{E}_{\substack{(\tau,\mathcal{D},h,H)\sim\rho_{\mathrm{train}},\\ t\sim\mathcal{U}(0,1),\\ x_1^{(1:M)}\sim p_1(\cdot\mid\mathcal{D},h,H)^{\otimes M},\\ x_0^{(1:M)}\sim\mathcal{N}(0,I_d)^{\otimes M}}}\left[\sum_{i=1}^{M}w_i\log v_\theta\left(u_t^{(i)}\mid x_t^{(i)},t,\mathcal{D},\alpha\right)\right],\qquad\alpha=\frac{h}{H}. \tag*{(48)}

This is the objective summarized in Equation (16). For a fixed target pool, the weighted loss corresponds exactly to the empirical distribution

p~^1,M=∑i=1Mwiδx1(i).(49)\hat{\tilde{p}}_{1,M}=\sum_{i=1}^{M}w_i\delta_{x_1^{(i)}}. \tag*{(49)}

As an estimator of the population expectation under p~1\tilde{p}_1, self-normalized importance sampling is generally biased for finite MM, but is consistent under standard integrability conditions.

The target construction and value weighting use the synthetic objective in different ways. The refinement in § 3.2 moves Thompson-sampling locations to define p1p_1, whereas Equation (44) reweights samples from p1p_1 to approximate training under p~1\tilde{p}_1. The objective values are used only for pretraining supervision and are not additional inputs to pθ(x∣D,α)p_\theta(x\mid\mathcal{D},\alpha).

Computational Resources

We trained FMTR on one NVIDIA H100 80GB HBM3 GPU. Training took approximately 19 hours per run. All models are evaluated on Tesla V100-SXM2-32GB GPUs.

Experimental details

This section supplements § 5 with descriptions of the baseline methods. FMTR’s pretraining procedure and architecture are given in Appendices § 11 and § 13. For evaluation, since FMTR is trained on the normalized domain X=[−1,1]d\mathcal{X}=[-1,1]^d, the observed query points are first mapped to X\mathcal{X}. FMTR then generates new query points within X\mathcal{X}, which are subsequently mapped back to the original domain for function evaluation.

Baselines

TuRBO (Eriksson et al. [10]). Trust Region Bayesian Optimization fits local GP models within adaptive trust regions. Their sizes expand after consecutive improvements and contract after unsuccessful evaluations, with restarts when a region becomes too small. Its Thompson-sampling batch rule selects candidates within these restricted regions, and can allocate evaluations across multiple local models. TuRBO therefore provides a baseline based on local modeling and adaptive search regions, while retaining task-specific surrogate fitting and online candidate selection. In our experiments, we specify 5 trust regions for TuRBO.

DiBO (Yun et al. [35]). This method fits a diffusion model to evaluated designs and an ensemble of surrogate models to their objective values. It then adapts the diffusion sampler through relative trajectory balance toward a target combining the learned design prior with an ensemble-based UCB score. Generated candidates undergo local search and filtering before a batch is evaluated. Model fitting and sampler adaptation are repeated as observations accumulate, providing a generative baseline trained on the current optimization task. We use the authors’ official implementation.

GIT-BO [34]. GIT-BO uses a pretrained TabPFN surrogate to predict objective values and uncertainty from the observed history. Gradients of the predictive mean identify a low-dimensional subspace in which candidate locations are sampled and scored using a UCB-based acquisition. For the batch setting, we use the native implementation provided in the authors’ official repository, setting NCANDIDATES=qN_{\mathrm{CANDIDATES}=q}. The method constructs qq candidate pools, evaluates the acquisition independently for each batch slot, and selects the maximizing candidate from each pool. The batch is therefore proposed without intermediate observations, but its members are not coupled through a joint acquisition or within-batch conditioning.

BEEBO [28]. Batched Energy–Entropy Bayesian Optimization uses a GP-based acquisition that combines predicted objective values with the information gained from evaluating a batch. A temperature controls the exploration–exploitation trade-off, while the information term accounts for dependencies through the joint posterior covariance. Candidate locations are optimized jointly, providing a batch-native acquisition baseline that retains online GP fitting and numerical batch selection. We use the BoTorch implementation [3] with the default settings: meanBEEBO variant, keeping the temperature fixed at T=2T=2 and switching to T=0T=0 (full exploitation) in the final round.

qLogEI, qTS-Matheron, and qUCB. These baselines use a GP surrogate with different batch-selection rules and are implemented with BoTorch [3]. qLogEI uses a numerically stabilized, smoothed log-space formulation of batch expected improvement [2]. qTS-Matheron draws qq independent posterior paths through Matheron’s rule and maximizes each path to obtain one query [17, 32]. qUCB extends upper confidence bounds to batches through a Monte Carlo acquisition based on the joint posterior [31]. Thus, qLogEI and qUCB optimize batch acquisitions, whereas qTS-Matheron constructs the batch through independent posterior-path optimizations.

For all baselines that optimize acquisition using BoTorch, we set raw_samples = 512 and num_restarts = 128.

Synthetic Benchmark Functions

We evaluate our method on six standard synthetic benchmark functions with different optimization landscapes. The Ackley, Levy, and Rastrigin functions are highly multimodal, while Rosenbrock, Dixon–Price, and Styblinski–Tang provide complementary nonconvex landscapes. We define the functions below, where x=(x1,…,xd)\mathbf{x}=(x_1,\ldots,x_d) and dd denotes the input dimensionality.

Ackley.

f(x)=−20exp⁡(−0.21d∑i=1dxi2)−exp⁡(1d∑i=1dcos⁡(2πxi))+20+e,(50)f(\mathbf{x})=-20\exp\left(-0.2\sqrt{\frac{1}{d}\sum_{i=1}^{d}x_i^2}\right)-\exp\left(\frac{1}{d}\sum_{i=1}^{d}\cos(2\pi x_i)\right)+20+e, \tag*{(50)}

with domain

xi∈[−32.768,32.768],i=1,…,d.x_i\in[-32.768,32.768],\qquad i=1,\ldots,d.

Levy. Let

wi=1+xi−14.w_i=1+\frac{x_i-1}{4}.

The Levy function is

f(x)=sin⁡2(πw1)+∑i=1d−1(wi−1)2[1+10sin⁡2(πwi+1)]+(wd−1)2[1+sin⁡2(2πwd)],(51)f(\mathbf{x})=\sin^2(\pi w_1)+\sum_{i=1}^{d-1}(w_i-1)^2\left[1+10\sin^2(\pi w_i+1)\right]+(w_d-1)^2\left[1+\sin^2(2\pi w_d)\right], \tag*{(51)}

with domain

xi∈[−10,10],i=1,…,d.x_i\in[-10,10],\qquad i=1,\ldots,d.

Rosenbrock.

f(x)=∑i=1d−1[100(xi+1−xi2)2+(xi−1)2],(52)f(\mathbf{x}) = \sum_{i=1}^{d-1} \left[100(x_{i+1} - x_i^2)^2 + (x_i - 1)^2\right], \tag*{(52)}

with domain

xi∈[−5,10],i=1,…,d.x_i \in[-5, 10], \qquad i = 1,\ldots,d.

Rastrigin.

f(x)=10d+∑i=1d[xi2−10cos⁡(2πxi)],(53)f(\mathbf{x}) = 10d + \sum_{i=1}^{d} \left[x_i^2 - 10\cos(2\pi x_i)\right], \tag*{(53)}

with domain

xi∈[−5.12,5.12],i=1,…,d.x_i \in[-5.12, 5.12], \qquad i = 1,\ldots,d.

Dixon–Price.

f(x)=(x1−1)2+∑i=2di(2xi2−xi−1)2,(54)f(\mathbf{x}) = (x_1 - 1)^2 + \sum_{i=2}^{d} i(2x_i^2 - x_{i-1})^2, \tag*{(54)}

with domain

xi∈[−10,10],i=1,…,d.x_i \in[-10, 10], \qquad i = 1,\ldots,d.

Styblinski–Tang.

f(x)=12∑i=1d(xi4−16xi2+5xi),(55)f(\mathbf{x}) = \frac{1}{2}\sum_{i=1}^{d} (x_i^4 - 16x_i^2 + 5x_i), \tag*{(55)}

with domain

xi∈[−5,5],i=1,…,d.x_i \in[-5, 5], \qquad i = 1,\ldots,d.

Real-world benchmark tasks

We consider four data-derived optimization benchmarks described by Hsieh et al. [14].

Oil-well depth (oil-4D). This task uses the New York State Oil, Gas, and Other Regulated Wells dataset. The four inputs are the latitude and longitude of the surface and bottom of each well, and the objective is to identify wells with the greatest drilled depth.

XGBoost hyperparameter optimization (hpobenchXGB-6D). Precomputed HPOBench evaluations associate six XGBoost hyperparameters with classification performance. These include learning rate, L1L_1 and L2L_2 regularization, and subsampling ratios. The objective favors configurations with higher predictive performance.

Asteroid diameter (Asteroid-12D). Each candidate is represented by twelve numerical asteroid descriptors. The task seeks candidates associated with the largest diameters.

Air quality (pm25-14D). This benchmark uses air-quality observations collected in northern Taiwan in 2015. Its fourteen inputs include sulfur dioxide, carbon monoxide, and ozone measurements. The objective is to identify conditions associated with the highest PM2.5_{2.5} concentration.

Since these tasks are defined on a discrete set of points, we interpolate them onto a continuous domain using a radial basis function (RBF) interpolator with a linear kernel and 32 nearest neighbors. We implement the interpolation using the RBFInterpolator provided by SciPy. Further details are available in the SciPy documentation.

References

  1. [2]Sebastian Ament, Samuel Daulton, David Eriksson, Maximilian Balandat, and Eytan Bakshy. Unexpected improvements to expected improvement for Bayesian optimization. Advances in neural information processing systems, 2023.arxiv.org/abs/2310.20708
  2. [3]Maximilian Balandat, Brian Karrer, Daniel Jiang, Samuel Daulton, Ben Letham, Andrew G Wilson, and Eytan Bakshy. BoTorch: A framework for efficient monte-carlo Bayesian optimization. In Advances in Neural Information Processing Systems, 2020.arxiv.org/abs/1910.06403
  3. [4]Nicolas Samuel Blumer, Julien Martinelli, and Samuel Kaski. In-context black-box optimization with unreliable feedback. arXiv preprint arXiv:2605.06187, 2026.arxiv.org/abs/2605.06187
  4. [5]Richard B Canty, Jeffrey A Bennett, Keith A Brown, Tonio Buonassisi, Sergei V Kalinin, John R Kitchin, Benji Maruyama, Robert G Moore, Joshua Schrier, Martin Seifrid, et al. Science acceleration and accessibility with self-driving labs. Nature Communications, 2025.DOI
  5. [6]Paul Edmund Chang, Nasrullah Ratu Bagus Satrio Loka, Daolang Huang, Ulpu Remes, Samuel Kaski, and Luigi Acerbi. Amortized probabilistic conditioning for optimization, simulation and inference. In Proceedings of The 28th International Conference on Artificial Intelligence and Statistics, 2025.arxiv.org/abs/2410.15320
  6. [7]Niladri Chatterji, Jelena Diakonikolas, Michael I Jordan, and Peter Bartlett. Langevin monte carlo without smoothness. In International Conference on Artificial Intelligence and Statistics, 2020.arxiv.org/abs/1905.13285
  7. [8]Hansheng Chen, Kai Zhang, Hao Tan, Zexiang Xu, Fujun Luan, Leonidas Guibas, Gordon Wetzstein, and Sai Bi. Gaussian mixture flow matching models. In Forty-second International Conference on Machine Learning, 2025.arxiv.org/abs/2504.05304
  8. [9]Alexander I Cowen-Rivers, Wenlong Lyu, Rasul Tutunov, Zhi Wang, Antoine Grosnit, Ryan Rhys Griffiths, Alexandre Max Maraval, Hao Jianye, Jun Wang, Jan Peters, et al. HEBO: Pushing the limits of sample-efficient hyper-parameter optimisation. Journal of Artificial Intelligence Research, 2022.
  9. [10]David Eriksson, Michael Pearce, Jacob Gardner, Ryan D Turner, and Matthias Poloczek. Scalable global optimization via local Bayesian optimization. Advances in neural information processing systems, 2019.arxiv.org/abs/1910.01739
  10. [11]Roman Garnett. Bayesian optimization. Cambridge University Press, 2023.DOI
  11. [12]Javier Gonzalez, Zhenwen Dai, Philipp Hennig, and Neil D. Lawrence. Batch Bayesian optimization via local penalization. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, 2016.arxiv.org/abs/1505.08052
  12. [13]Trevor Hastings, Mrinalini Mukulkutla, Danial Khatamsaz, Daniel Salas, Wenle Xu, Daniel Lewis, Nicole Person, Matthew Skokan, Braden Miller, James Paramore, Brady Butler, Douglas Allaire, Vahid Attari, Ibrahim Karaman, George Pharr, Ankit Srivastava, and Raymundo Arróyave. Accelerated multi-objective alloy discovery through efficient Bayesian methods: Application to the fcc high entropy alloy space. Acta Materialia, 2025.DOI
  13. [14]Bing-Jing Hsieh, Ping-Chun Hsieh, and Xi Liu. Reinforced few-shot acquisition function learning for Bayesian optimization. Advances in Neural Information Processing Systems, 2021.arxiv.org/abs/2106.04335
  14. [15]Daolang Huang, Xinyi Wen, Ayush Bharti, Samuel Kaski, and Luigi Acerbi. ALINE: Joint amortization for Bayesian inference and active data acquisition. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.arxiv.org/abs/2506.07259
  15. [16]Yu Heng Hung, Kai-Jie Lin, Yu-Heng Lin, Chien-Yi Wang, Cheng Sun, and Ping-Chun Hsieh. BOFormer: Learning to solve multi-objective Bayesian optimization via non-markovian rl. In International Conference on Learning Representations, 2025.arxiv.org/abs/2505.21974
  16. [17]K irthevasan Kandasamy, Akshay Krishnamurthy, Jeff Schneider, and Barnabas Poczos. Parallelised Bayesian optimisation via thompson sampling. In Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics, 2018.
  17. [18]Daniel Kelvin, Erik Kubaczka, Marianna Karava, Heinz Koeppl, and Beatrix Suess. Iterative design of a nan hybrid riboswitch by deep batch Bayesian optimization. Nucleic Acids Research, 2026.DOI
  18. [19]Aaron Lou and Stefano Ermon. Reflected diffusion models. In International Conference on Machine Learning, pp. 22675–22701. PMLR, 2023.arxiv.org/abs/2304.04740
  19. [20]Alexandre Max Maraval, Matthieu Zimmer, Antoine Grosnit, and Haitham Bou Ammar. End-to-end meta-Bayesian optimisation with transformer neural processes. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.arxiv.org/abs/2305.15930
  20. [21]Samuel Müller, Matthias Feurer, Noah Hollmann, and Frank Hutter. PFNs4BO: In-context learning for Bayesian optimization. In International Conference on Machine Learning, 2023.arxiv.org/abs/2305.17535
  21. [22]Rafael Oliveira, Daniel M. Steinberg, and Edwin V. Bonilla. Generative Bayesian optimization: Generative models as acquisition functions. In The Fourteenth International Conference on Learning Representations, 2026.arxiv.org/abs/2510.25240
  22. [23]William Peebles and Saining Xie. Scalable diffusion models with transformers. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), 2023.arxiv.org/abs/2212.09748
  23. [24]Ali Rahimi and Benjamin Recht. Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems, 2007.
  24. [25]Herilalaina Rakoatoarison, Steven Adriaensen, Tom Julian Viering, Carl Hvarfner, Samuel Müller, Frank Hutter, and Eytan Bakshy. α-PFN: Fast entropy search via in-context learning. In Forty-third International Conference on Machine Learning, 2026.
  25. [26]Carl Edward Rasmussen and Christopher K. I. Williams. Gaussian processes for machine learning. MIT Press, 2006.DOI
  26. [27]Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, 2011.arxiv.org/abs/1011.0686
  27. [28]Felix Teufel, Carsten Stahlhut, and Jesper Ferkinghoff-Borg. Batched energy-entropy acquisition for Bayesian optimization. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.arxiv.org/abs/2410.08804
  28. [29]Marcelo DT Torres, Yimeng Zeng, Fangping Wan, Natalie Maus, Jacob Gardner, and Cesar de la Fuente-Nunez. A generative artificial intelligence approach for peptide antibiotic optimization. Nature Machine Intelligence, 2026.DOI
  29. [30]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 2017.arxiv.org/abs/1706.03762
  30. [31]James Wilson, Frank Hutter, and Marc Deisenroth. Maximizing acquisition functions for Bayesian optimization. Advances in neural information processing systems, 2018.arxiv.org/abs/1805.10196
  31. [32]James Wilson, Viacheslav Borovitskiy, Alexander Terenin, Peter Mostowsky, and Marc Deisenroth. Efficiently sampling functions from Gaussian process posteriors. In Proceedings of the 37th International Conference on Machine Learning, 2020.arxiv.org/abs/2002.09309
  32. [33]Adam X. Yang, Laurence Aitchison, and Henry Moss. MONGOOSE: Path-wise smooth bayesian optimisation via meta-learning. In ICML 2024 Workshop on Structured Probabilistic Inference & Generative Modeling, 2024.arxiv.org/abs/2302.11533
  33. [34]Rosen Yu, Cyril Picard, and Faez Ahmed. Git-bo: High-dimensional Bayesian optimization with tabular foundation models. In International Conference on Learning Representations, 2026.arxiv.org/abs/2505.20685
  34. [35]Taeyoung Yun, Kiyoung Om, Jaewoo Lee, Sujin Yun, and Jinkyoо Park. Posterior inference with diffusion models for high-dimensional black-box optimization. In Forty-second International Conference on Machine Learning, 2025.arxiv.org/abs/2502.16824
  35. [36]Ruqi Zhang, Xingchao Liu, and Qiang Liu. A langevin-like sampler for discrete distributions. In International Conference on Machine Learning, 2022.arxiv.org/abs/2206.09914
  36. [37]Xinyu Zhang, Daolang Huang, Samuel Kaski, and Julien Martinelli. PABBO: Preferential amortized black-box optimization. In The Thirteenth International Conference on Learning Representations, 2025.arxiv.org/abs/2503.00924

Paper details

vlnc:W_ghpkjb8m
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents