Manuscript Offprint
arXiv:2610.22763Acquisition Function-Guided Generation for Bayesian Optimization over Discrete Spaces
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Bayesian optimization (BO) over discrete spaces is challenging due to missing gradients and the sparsity of valid solutions. Latent-space BO sidesteps both issues by fitting a surrogate in the latent space of a generative model, which however substantially complicates the direct incorporation of domain knowledge that is naturally expressed in the original discrete space. In this work, we instead combine a pretrained generative model with a surrogate defined directly in data space, where inductive biases such as domain-specific kernels can be readily incorporated. Rather than maximizing the acquisition function over the discrete design space, our method samples candidates from the generative model under a distribution tilted by the acquisition function. To recover useful gradients for sampling, we embed this tilted distribution into a diffusion bridge that yields a smooth, posterior-averaged acquisition function. This leads to acquisition function guided generation (AFGG), which we instantiate with a categorical diffusion model and an autoregressive normalizing flow. Across a broad suite of molecular benchmarks, the diffusion model variant performs on par with leading BO methods, while the flow model variant outperforms state-of-the-art methods in most cases and remains highly competitive otherwise. Our implementation is available at https://anonymous.4open.science/r/afgg.
1 INTRODUCTION
Bayesian optimization (BO) offers a sample-efficient approach to problems such as molecular and protein design, where objective evaluations are costly and the search space is discrete and structured (Garnett, 2023; Yang et al., 2025). Unfortunately, direct optimization over such spaces is hard because valid designs are sparsely populated in a combinatorial space and standard continuous optimizers have no useful gradients to follow (Moss et al., 2020). Latent-space Bayesian optimization (LSBO) addresses both challenges by training a generative model over the discrete space—thereby capturing the sparse structure of valid designs—and by performing BO in its continuous latent space, where gradients for acquisition optimization are readily available (Gómez-Bombarelli et al., 2018).
However, domain knowledge is harder to incorporate in an abstract latent space, while in data space, such knowledge can often be encoded directly through inductive biases such as domain-specific kernels (Rogers & Hahn, 2010). Furthermore, the latent space must also “do two jobs at once:” support faithful generation and provide a geometry in which the objective is easy to model by a surrogate. These goals need not align, which motivates many LSBO methods to adapt the latent representation during BO (Chu et al., 2024; Deshwal & Doppa, 2021; Lee et al., 2023; 2025; Maus et al., 2022; Tripp et al., 2020), despite the small-data regime in which such adaptation can overfit (Ober et al., 2021). Moreover, even a strong generative model only approximates the sparse set of valid designs, so acquisition optimization can move into poorly supported regions of latent space where decoding becomes unreliable (Bodin et al., 2025; Moss et al., 2025).
A natural strategy for avoiding these drawbacks is to decouple the two roles: use a strong pretrained generative model to capture the sparse structure of valid designs, while keeping the surrogate and
*Joint first author acquisition function in data space, so that domain knowledge and inductive biases can be included. To the best of our knowledge, COWBOYS (Moss et al., 2025) is the only prior BO method that follows this strategy, but it is tied to a VAE as the generative model and probability of improvement as the acquisition function.
In this paper, we propose acquisition function guided generation (AFGG), which replaces acquisition function maximization with sampling from a distribution that tilts a frozen pretrained generative model toward designs favored by the acquisition function. The construction is generic in both components: it requires only a generative model that supports guided sampling and any non-negative acquisition function that can be evaluated pointwise; the latter need neither be differentiable nor define a probability. Since the discrete, combinatorial design space makes direct sampling from the tilted distribution difficult, we embed it into a diffusion process over the generative model's continuous space. At each noise level, this yields a smooth posterior-averaged acquisition function that provides the gradients needed for guided sampling. The resulting gradients can then guide sampling in the same spirit as guidance in diffusion models (Dhariwal & Nichol, 2021; Ho & Salimans, 2022), which gives the method its name.
Our contributions are threefold:
• Acquisition function guided generation. We formulate the BO inner loop as sampling from an acquisition-tilted distribution that combines a frozen pretrained generative model with a surrogate defined directly in data space (Section 3.1). We show that this target can be recovered exactly in the generative model's continuous space and that the resulting guidance term reduces to replacing the model's posterior mean by its acquisition-weighted counterpart (Section 3.3).
• A unified construction for different generative models. We derive AFGG from a common diffusion-bridge construction and show how it applies to both categorical diffusion models and autoregressive normalizing flows (Section 3.4). The generator remains frozen throughout BO, while the surrogate and acquisition function stay in data space.
• State-of-the-art empirical performance. Across a broad suite of molecular design benchmarks under tight evaluation budgets, AFGG with the categorical diffusion model performs on par with leading BO methods. More strikingly, AFGG with the flow model achieves state-of-the-art performance on most benchmarks and remains highly competitive on the rest (Section 4).
2.1 BAYESIAN OPTIMIZATION OVER DISCRETE SPACES
We consider Bayesian optimization over discrete, structured design spaces. In particular, we focus on sequence-valued settings and denote the design space as , the set of length- sequences over a discrete vocabulary of size . We assume that valid or useful designs occupy a constrained and sparsely populated subset of the combinatorial space. This setting covers, for example, molecules represented as SELFIES strings (Krenn et al., 2020) and proteins represented as amino-acid sequences. We seek the maximizer of an expensive-to-evaluate and black-box objective , which provides no gradients and returns measurements that may be contaminated by Gaussian noise:
Bayesian optimization (BO) fits a probabilistic surrogate to the observations collected so far and uses its predictive uncertainty to choose the next design to evaluate (Garnett, 2023; Shahriari et al., 2016). Throughout this work, we use Gaussian processes (GPs) (Rasmussen & Williams, 2006), whose posterior mean and variance are available in closed form. However, our method is not tied to GPs and only requires a probabilistic surrogate from which an acquisition function can be computed or approximated.
Defining the surrogate directly on the discrete space allows domain knowledge to be incorporated through suitable inductive biases, such as domain-specific kernels. For example, in our molecular experiments we use the Tanimoto kernel (Ralaivola et al., 2005; Tripp et al., 2023) on binary Morgan fingerprints , where usually (Rogers & Hahn, 2010),
An acquisition function ranks candidate designs by balancing predicted performance against uncertainty. We consider two standard choices, probability of improvement (PI) and expected improvement (EI), relative to the incumbent :
where denotes the observations collected so far. Both are available in closed form under a GP (Ament et al., 2023). PI is a probability, whereas EI is non-negative but potentially unbounded; this distinction will matter for our method. Standard BO selects the next design by maximizing the acquisition function . For discrete, combinatorial , this inner optimization is generally hard, and gradient-based methods for continuous BO do not apply directly.
2.2 GENERATIVE MODELS OVER SEQUENCES
Our method requires a pretrained generative model over that supports guided sampling. We consider two well-suited model classes for discrete sequences: a categorical diffusion model and an autoregressive normalizing flow. Both connect the discrete design space to a continuous embedding space in the same way: an embedding table (learned by the model) with rows , maps a sequence to its embeddings, and a deterministic decode map clamps each position to the closest token in cosine similarity,
Continuous diffusion for categorical data (CDCD) (Dieleman et al., 2022) runs a variance-exploding diffusion (Karras et al., 2022) on the embeddings,
so that the forward kernel is . Samples are generated by integrating the reverse-time SDE or probability-flow ODE from to (Song et al., 2021), which requires the score of the noised marginal. Since is affine in , the score is the conditional score averaged over the denoising posterior, and in the discrete case, where each position of is one of 's embeddings, it has the form
The score therefore depends on the joint denoising posterior only through its per-position marginals (Dieleman et al., 2022), and these are what must be learned: a transformer, trained with categorical cross-entropy on noised embeddings, outputs L mass functions over V,
Substituting for p in Eq. (6) gives the learned score.
Autoregressive normalizing flow (SeqFlow) (Lee et al., 2025) draws a Gaussian latent variable , , and maps it through a diffeomorphism to a sequence of continuous token embeddings, , which decodes by Eq. (4). Because is a bijection and is deterministic, the resulting distribution over designs is exactly the pushforward of the latent Gaussian,
where the cells partition the latent space. We refer to Lee et al. (2025) for details of the architecture and training procedure.
3 ACQUISITION FUNCTION-GUIDED GENERATION
We now present AFGG, which steers a pretrained generative model toward designs with high acquisition values. We first define the acquisition-tilted target distribution and explain why it is hard to sample it directly in data space (Section 3.1). We then introduce a diffusion bridge that smooths this target and recovers informative gradients (Section 3.2). The resulting guidance term reduces to a difference of posterior means, which we estimate by sampling (Section 3.3). Finally, we show how the same construction applies to our two generative backbones, which differ only in how they provide the base score and posterior samples (Section 3.4).
3.1 THE SAMPLING PROBLEM
As described in Section 2, the generative model defines a density on the continuous embedding space together with a deterministic decoder . Each discrete design sequence corresponds to the region of embedding space that decodes to it,
These regions partition the embedding space, and the probability of a sequence is the mass that assigns to its corresponding region. Hence, the decoder pushes forward to a probability mass function over the discrete sequence space,
Definition 3.1 (Tilted target). Given the induced probability mass function over and a non-negative acquisition function , we define the tilted target distribution
The tilted distribution combines the two components of our approach: places mass on sequences supported by the pretrained generative model, while shifts this mass toward sequences favored by the surrogate. The requirement that be non-negative is mild, as a real-valued acquisition function can be turned into a positive tilt, for example through .
This product form also has a natural interpretation through entropy-regularized control (Uehara et al., 2024). Indeed, is the solution of
The first term rewards designs with high acquisition values, while the KL term keeps the resulting distribution close to the pretrained generative model. Equivalently, entropy-regularized control yields a target of the form , and our tilted distribution follows by taking .
While sampling from the generative model is easy, the acquisition tilt changes this distribution such that directly sampling from would require handling the combinatorial space , facing much the same difficulty as maximizing the acquisition function over . To sample from , we instead return to the continuous space of the generative model. Using Eq. (10), the corresponding tilted density is
Sampling and decoding yields exactly ; we prove this in Appendix A.1.
The main technical challenge is that is constant within each cell , so almost everywhere. LSBO avoids this difficulty by moving the surrogate to latent space, but in doing so inherits the limitations discussed above. The rest of this section shows how to recover informative gradients while keeping the surrogate in data space.
3.2 LIFTING THE TARGET TO A BRIDGE
We recover informative gradients by introducing a family of smoothed versions of , indexed by , with corresponding to the tilted target and to the noise distribution. Note that, although this smoothing construction is borrowed from diffusion models (Ho et al., 2020; Song et al., 2021), the generative model itself need not be a diffusion model; it only needs to support the guided sampling procedure developed below.
Definition 3.2 (Bridge marginals). Starting from the tilted density and the original generative density , we define their bridge marginals at noise level as
where
is a Gaussian noising kernel applied to the continuous variable x.
A key observation is that the acquisition tilt is preserved under this smoothing in a convenient form. Let
denote the posterior over the clean variable x under the original generative model.
Proposition 1 (Tilted marginal). The tilted marginal can be written as
where is the acquisition function averaged over the posterior uncertainty about the clean design sequence. Moreover, the corresponding tilted posterior satisfies
Proof. The proof is in Appendix A.2.
This factorization makes guidance convenient. To sample from by reversing the bridge, we need the score of the tilted marginal,
The first term is the score of the pretrained generative model at noise level t, while the second steers it toward regions favored by the acquisition function. This has the same form as guidance in diffusion models (Dhariwal & Nichol, 2021).
Importantly, is no longer the piecewise-constant function . Instead, it averages over the posterior , and can therefore vary smoothly with the continuous variable . Hence, can provide an informative guidance signal even though almost everywhere.
Evaluating Eq. (19) therefore requires two ingredients: (i) the untilted score and (ii) samples from the posterior . The next section shows how these ingredients yield the guidance term, while Section 3.4 explains how they are obtained for two generative backbones.
3.3 GUIDANCE IS A TILTED MEAN DIFFERENCE
The central object in Eq. (19) is the guidance term . For the Gaussian kernel Eq. (15), this term has a particularly simple form: it is proportional to the difference between the ordinary posterior mean and its acquisition-weighted counterpart.
Definition 3.3 (Tilted estimate). With as in Eq. (18), define
Thus, is the posterior mean under the pretrained generative model, whereas gives more weight to posterior samples whose decoded designs have high acquisition value.
Proposition 2 (Guidance score as tilted mean difference). Let the kernel of Definition 3.2 be the Gaussian kernel (15), with . Then
Substituting both expressions into Eq. (19) gives
Proof. The proof is in Appendix A.4.
The guided score therefore has exactly the same form as the original score, with the posterior mean being replaced by its acquisition-weighted counterpart . This tilted mean difference is a key simplification, as guidance does not require differentiating the acquisition function, but only estimating .
In general, is not available in closed form because need not factorize across sequence positions, so we estimate it from samples by self-normalized importance sampling. For samples, let
This estimator is consistent (Appendix A.5); guidance strength can further be controlled by a scale (see Eq. (45)) or a temperature on the importance weights (see Eq. (46)).
3.4 TWO BACKBONES, ONE BRIDGE
CDCD. CDCD's forward process in Eq. (5) is the kernel in Eq. (15) with the variance-exploding schedule , (Karras et al., 2022), so and lives in the embedding space of Eq. (4). The network provides both required quantities: the learned score Eq. (6) and the per-position posterior marginals Eq. (7), from which posterior draws are taken under a mean-field approximation (Appendix B). At sufficiently large , the added noise dominates both and the tilt,
so reversing the bridge with the PF-ODE or SDE driven by Eq. (19) yields , which decodes to .
SeqFlow. SeqFlow has no built-in noising process. Although is tractable, applying Eq. (15) in embedding space makes both the noised marginal and the posterior intractable. We therefore move the bridge to the flow latent , whose untilted law is exactly by Eq. (8). Since is a diffeomorphism, transporting the tilted density Eq. (13) to the latent carries the same Jacobian factor as transporting , so the factor cancels and only the tilt survives (Appendix A.3),
with for . As in Section 3.1, the tilt remains piecewise constant on the cells of Eq. (8), so we smooth it using
with the variance-preserving schedule . Gaussian conjugacy then gives both required quantities in closed form,
The posterior is exact and network-free; the flow enters only through the tilt, evaluated once per draw and never differentiated. Thus, Section 3.3 applies with x replaced by z, while CDCD operates in embedding space. Table 2 summarizes the correspondence between the two backbones.
3.5 TRUST REGION
Restricting search to a neighborhood of the incumbent, the best design observed so far, is a common strategy for improving the sample efficiency of high-dimensional BO (Eriksson et al., 2019). In AFGG, we implement this locality through the initialization of the guided sampling trajectories. Both backbones start sampling from a Gaussian, , with for CDCD (see Eq. (24)) and for SeqFlow. Instead, we wish to start closer to an anchor that represents the incumbent in the same space. However, sample quality deteriorates if the model must process an input that is unlikely under the -dimensional Gaussian it expects, which concentrates its mass on a shell of radius around the origin (Blum et al., 2020, Thm. 2.9). We therefore sample
where controls how tightly the trust region concentrates around : recovers the unconditional initialization and starts every trajectory at . Since , an anchor on the shell, , gives for every , so the initializations stay near the shell.
The complete AFGG optimization loop is described in Appendix D.
4 EXPERIMENTS
We evaluate AFGG on the 25 molecular optimization objectives of Gao et al. (2022) and González-Duque et al. (2024), following the small-data protocol of Moss et al. (2025). We consider both a sequential setting, with 10 initial observations followed by 300 oracle evaluations, one per BO iteration, and a batch setting, with 100 initial observations followed by 500 oracle evaluations in batches of five. We instantiate AFGG with two different generative backbones, SeqFlow (Lee et al., 2025) and CDCD (Dieleman et al., 2022), as described in Section 3.4, allowing us to test the same acquisition-guided construction with two substantially different generative models. For SeqFlow, we use the released GuacaMol-trained checkpoint; since no pretrained CDCD checkpoint was available, we train one on the same dataset (Appendix B.1).
We compare against five strong recent methods that are particularly relevant to our setting: CoBO (Lee et al., 2023), LOL-BO (Maus et al., 2022), COWBOYS (Moss et al., 2025), InvBO (Chu et al., 2024), and NFBO (Lee et al., 2025). These include both the closest prior approach, COWBOYS, and NFBO, which uses the same SeqFlow generative backbone as one of our AFGG variants. For the sequential setting, Appendix E.1 (Table 6) broadens the comparison to 11 baselines, additionally including CMA-ES, differential evolution (DE), genetic algorithms (GA), hill climbing (HC), RLBO (Kirschner et al., 2019), and TuRBO (Eriksson et al., 2019). Unless stated otherwise, AFGG uses EI with the temperature tilt of Eq. (46), which performs best in our ablations (Appendix E.3).
Fig. 1 shows the optimization trajectories on six representative objectives in the sequential setting. AFGG with SeqFlow makes particularly strong gains on several of these tasks, while the CDCD variant remains broadly competitive with the leading BO baselines. To verify that this pattern is not specific to the selected objectives, Table 1 reports the final performance on all 25 objectives against the five closest BO baselines.
Fig. 2 repeats the comparison in the batch setting on the same six representative objectives. The advantage of the SeqFlow variant persists when q = 5 candidates are selected per BO round. Appendix E.1 reports results on all 25 objectives for both uncoupled and coupled batch constructions.
Across both settings, the two AFGG backbones show a clear and consistent pattern. AFGG with CDCD performs on par with the strongest BO baselines, whereas AFGG with SeqFlow achieves the best result on most objectives and remains competitive on the others. The same ordering across the sequential and batch settings suggests that the stronger generative backbone translates into substantially stronger optimization performance. Taken together, these results demonstrate state-of-the-art performance for AFGG with SeqFlow across this benchmark suite: it achieves the best result on most objectives and remains close to the strongest baseline on the others.
Additional analyses in Appendix E.2 isolate the contribution of the generative backbone and relate optimization performance to the quality of its unconditional samples.

Oracle Calls
— AFGG (SeqFlow) — AFGG (CDCD) -- InvBO .... CoBO --- LOL-BO -- NFBO -- COWBOYS
Figure 1: Sequential setting. Optimization trajectories on six representative objectives, with 10 initial observations followed by 300 oracle evaluations, one per BO iteration. Curves show the median over 5 seeds.
| Objective | baselines | AFGG | |||||
|---|---|---|---|---|---|---|---|
| CoBO | InvBO | LOL-BO | NFBO | COWBOYS | CDCD | SeqFlow | |
| albu_sim | 0.593 ± 0.111 | 0.629 ± 0.079 | 0.509 ± 0.065 | 0.593 ± 0.119 | 0.448 ± 0.037 | 0.691 ± 0.073 | 0.975 ± 0.038 |
| amlo_mpo | 0.523 ± 0.012 | 0.538 ± 0.050 | 0.516 ± 0.022 | 0.563 ± 0.095 | 0.472 ± 0.038 | 0.546 ± 0.039 | 0.565 ± 0.045 |
| cele_red | 0.262 ± 0.041 | 0.286 ± 0.068 | 0.243 ± 0.035 | 0.455 ± 0.035 | 0.243 ± 0.020 | 0.392 ± 0.024 | 0.836 ± 0.125 |
| deco_hop | 0.565 ± 0.008 | 0.597 ± 0.019 | 0.560 ± 0.009 | 0.673 ± 0.147 | 0.559 ± 0.008 | 0.599 ± 0.010 | 0.803 ± 0.175 |
| drd2 | 0.510 ± 0.370 | 0.963 ± 0.037 | 0.626 ± 0.184 | 0.971 ± 0.066 | 0.796 ± 0.243 | 0.730 ± 0.226 | 1.000 ± 0.000 |
| fexo_mpo | 0.710 ± 0.034 | 0.734 ± 0.027 | 0.716 ± 0.021 | 0.723 ± 0.032 | 0.683 ± 0.031 | 0.763 ± 0.017 | 0.741 ± 0.016 |
| gsk3b | 0.362 ± 0.069 | 0.500 ± 0.042 | 0.336 ± 0.103 | 0.656 ± 0.174 | 0.418 ± 0.093 | 0.518 ± 0.088 | 0.950 ± 0.037 |
| iso_c7 | 0.875 ± 0.145 | 1.000 ± 0.000 | 0.760 ± 0.036 | 0.860 ± 0.092 | 0.919 ± 0.046 | 0.957 ± 0.049 | 0.981 ± 0.043 |
| iso_c9 | 0.577 ± 0.050 | 0.699 ± 0.147 | 0.630 ± 0.082 | 0.758 ± 0.024 | 0.834 ± 0.020 | 0.722 ± 0.079 | 0.809 ± 0.081 |
| jnk3 | 0.148 ± 0.031 | 0.206 ± 0.063 | 0.144 ± 0.035 | 0.412 ± 0.095 | 0.176 ± 0.032 | 0.216 ± 0.033 | 0.778 ± 0.038 |
| med_1 | 0.178 ± 0.025 | 0.253 ± 0.037 | 0.175 ± 0.023 | 0.203 ± 0.024 | 0.192 ± 0.024 | 0.346 ± 0.031 | 0.352 ± 0.045 |
| med_2 | 0.158 ± 0.011 | 0.186 ± 0.014 | 0.158 ± 0.011 | 0.207 ± 0.018 | 0.156 ± 0.012 | 0.225 ± 0.016 | 0.283 ± 0.024 |
| mest_sim | 0.421 ± 0.064 | 0.531 ± 0.054 | 0.384 ± 0.059 | 0.555 ± 0.125 | 0.404 ± 0.023 | 0.593 ± 0.051 | 0.658 ± 0.114 |
| osim_mpo | 0.761 ± 0.013 | 0.782 ± 0.024 | 0.767 ± 0.015 | 0.803 ± 0.019 | 0.749 ± 0.023 | 0.778 ± 0.023 | 0.789 ± 0.034 |
| peri_mpo | 0.487 ± 0.049 | 0.447 ± 0.054 | 0.416 ± 0.079 | 0.434 ± 0.015 | 0.344 ± 0.034 | 0.432 ± 0.031 | 0.502 ± 0.017 |
| rano_mpo | 0.688 ± 0.027 | 0.742 ± 0.033 | 0.684 ± 0.042 | 0.696 ± 0.053 | 0.708 ± 0.040 | 0.757 ± 0.034 | 0.785 ± 0.007 |
| logp | 65.866 ± 10.720 | 49.799 ± 19.126 | 34.741 ± 5.318 | 25.055 ± 8.705 | 15.443 ± 3.623 | 22.684 ± 2.667 | 35.734 ± 10.360 |
| qed | 0.928 ± 0.004 | 0.942 ± 0.006 | 0.934 ± 0.003 | 0.943 ± 0.008 | 0.898 ± 0.034 | 0.940 ± 0.006 | 0.945 ± 0.002 |
| sa | 9.001 ± 0.347 | 8.393 ± 0.543 | 8.214 ± 0.711 | 7.538 ± 0.452 | 8.020 ± 0.363 | 8.349 ± 0.606 | 8.560 ± 0.220 |
| scaf_hop | 0.441 ± 0.029 | 0.501 ± 0.030 | 0.430 ± 0.020 | 0.510 ± 0.062 | 0.442 ± 0.027 | 0.500 ± 0.028 | 0.583 ± 0.070 |
| sita_mpo | 0.255 ± 0.096 | 0.330 ± 0.032 | 0.228 ± 0.087 | 0.290 ± 0.030 | 0.352 ± 0.090 | 0.108 ± 0.092 | 0.295 ± 0.056 |
| thio_red | 0.270 ± 0.025 | 0.308 ± 0.017 | 0.255 ± 0.011 | 0.376 ± 0.053 | 0.261 ± 0.010 | 0.395 ± 0.051 | 0.475 ± 0.060 |
| trog_red | 0.205 ± 0.004 | 0.260 ± 0.010 | 0.218 ± 0.044 | 0.300 ± 0.044 | 0.210 ± 0.014 | 0.324 ± 0.043 | 0.380 ± 0.031 |
| vals_sma | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.015 ± 0.034 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 |
| zale_mpo | 0.404 ± 0.055 | 0.461 ± 0.047 | 0.348 ± 0.065 | 0.442 ± 0.042 | 0.378 ± 0.044 | 0.466 ± 0.037 | 0.480 ± 0.026 |
Table 1: Sequential benchmark (partial results). Final best score on all 25 PMO objectives after 300 oracle calls (10 initial points, 1 point per BO iteration), mean ± sample standard deviation over 5 seeds. For readability the table shows five of the eleven baselines; Table 6 gives the full comparison. AFGG is shown in two instantiations: CDCD and SeqFlow. Every cell is judged against the opposing group. Bold: the cell's mean exceeds every mean in the opposing group. Green, shaded : lead exceeds the cell's own sample standard deviation; bold without shading denotes a smaller lead. Objective abbreviations are defined in Table 5.
5 RELATED WORK
AFGG is related to inference-time alignment of pretrained generative models, which likewise samples from a distribution obtained by tilting a generative model toward a reward (Krishnamoorthy

— AFGG (SeqFlow) — AFGG (CDCD) -- InvBO …… CoBO --- LOL-BO -- NFBO -- COWBOYS
Figure 2: Batch setting, uncoupled generation. Optimization trajectories on the same six representative objectives, with 100 initial observations followed by 500 oracle evaluations in batches of five. Curves show the median over 5 seeds.
et al., 2023; Li et al., 2025; Uehara et al., 2024; 2025). The key difference is that inference-time alignment typically uses a fixed reward, whereas in Bayesian optimization the acquisition function changes after every new observation. AFGG therefore applies the same general idea of guided generation in a setting where the tilt is continually updated by the surrogate.
Another line of related work is active generation, where the generative model is adapted repeatedly as new data arrive, for example by conditioning or variationally fitting it to an acquisition-weighted target (Brookes et al., 2019; Oliveira et al., 2026; Steinberg et al., 2025; Yun et al., 2025); the same approach can also be applied to infilling problems, where the generated sequence has fixed length (Gruver et al., 2023; Stanton et al., 2022). AFGG takes a different route: the pretrained generator remains frozen, while only the surrogate and acquisition function are updated during BO. This allows strong pretrained generative models to be reused throughout optimization without repeated retraining or fine-tuning.
Most generative BO methods place the surrogate in the learned latent space (Chu et al., 2024; Lee et al., 2023; 2025; Maus et al., 2022; Tripp et al., 2020), which makes inductive biases defined naturally on the original designs harder to use directly. To the best of our knowledge, COWBOYS (Moss et al., 2025) is the only prior BO method that similarly combines a frozen generative model with a surrogate defined in data space. It is therefore the closest precursor to AFGG, but its construction is tied to a VAE and to probability of improvement. In contrast, AFGG only requires a generative model that supports guided sampling and a non-negative acquisition function that can be evaluated pointwise. The acquisition function need neither be differentiable nor define a probability, allowing, for example, EI to be used directly.
6 CONCLUSION
We introduced AFGG, which replaces acquisition-function maximization with sampling from an acquisition-tilted generative distribution. A diffusion bridge makes this target amenable to guided sampling while leaving the surrogate and acquisition function in data space. The generator remains frozen throughout BO, and the acquisition function only needs to be non-negative and evaluable pointwise. On the molecular benchmarks studied here, AFGG with CDCD is competitive with strong recent BO methods, while AFGG with SeqFlow achieves the best result on most objectives and remains close to the strongest baselines on the rest. The gap between the two variants further shows that the quality of the generative backbone matters directly for optimization performance. This makes stronger pretrained generators a natural next target for AFGG. In particular, protein foundation models (Abramson et al., 2024; Passaro et al., 2025; Watson et al., 2023) could potentially serve as frozen backbones. Applying AFGG to such models will mainly require efficient approximations to the posterior used for guidance.
7 AI Use Statement
Large language models were used as an assistive tool during the preparation of this work, under author supervision, in three roles:
• Writing. Copy-editing of author-written text for clarity and concision, and suggestions for reorganizing existing material. No section was drafted from scratch by a model; all technical claims, derivations and experimental conclusions are the authors'.
• Related work. Surfacing candidate references and drafting initial summaries of them. Every cited work was subsequently read by the authors, and all attributions and comparisons were verified against the primary sources.
• Code. Inspecting the released implementations of the baselines. Standardizing the implementation and evaluation protocol across methods required modifications to the original code, and an AI assistant was used to help locate and implement them. Every deviation from an original implementation is documented, with the corresponding line numbers.
The authors take full responsibility for the entire content of this paper, including any text, code or references produced with AI assistance.
8 REPRODUCIBILITY STATEMENT
An anonymized implementation is available at https://anonymous.4open.science/r/afgg. It covers the guided samplers of Algorithm 1 and Algorithm 2, the BO loop, and our modified baseline code, together with the configuration files and random seeds needed to reproduce every table and figure reported here. The guidance construction is stated in full in Section 3 and proved in Appendix A. Hyperparameters and training details for the CDCD generator are given in Table 4 and Appendix B.1; the SeqFlow backbone is the pretrained model of Lee et al. (2025), used without modification.
9 ACKNOWLEDGMENTS
This work was supported by the Austrian Science Fund (FWF) through the doc.funds “Biotech-Predict” (10.55776/DOC2686925) and the Cluster of Excellence “Bilateral AI” (10.55776/COE12). Additional support was provided by the TU Graz Leadprojekt “DigiBioTech” and Lancaster University’s Mathematics for AI in Real-world Systems E3 grant.
REFERENCES
Josh Abramson, Jonas Adler, Jack Dunger, Richard Evans, Tim Green, Alexander Pritzel, Olaf Ronneberger, Lindsay Willmore, Andrew J. Ballard, Joshua Bambrick, Sebastian W. Bodenstein, David A. Evans, Chia-Chun Hung, Michael O'Neill, David Reiman, Kathryn Tunyasuvunakool, Zachary Wu, Akvile Žemgulytė, Eirini Arvaniti, Charles Beattie, Ottavia Bertolli, Alex Bridgland, Alexey Cherepanov, Miles Congreve, Alexander I. Cowen-Rivers, Andrew Cowie, Michael Figurnov, Fabian B. Fuchs, Hannah Gladman, Rishub Jain, Yousuf A. Khan, Caroline M. R. Low, Kuba Perlin, Anna Potapenko, Pascal Savy, Sukhdeep Singh, Adrian Stecula, Ashok Thillaisundaram, Catherine Tong, Sergei Yakneen, Ellen D. Zhong, Michal Zielinski, Augustin Žídek, Victor Bapst, Pushmeet Kohli, Max Jaderberg, Demis Hassabis, and John M. Jumper. Accurate structure prediction of biomolecular interactions with AlphaFold 3. In Nature, volume 630, pp. 493–500. Nature Publishing Group, 2024.
Sebastian Ament, Samuel Daulton, David Eriksson, Maximilian Balandat, and Eytan Bakshy. Unexpected improvements to expected improvement for Bayesian optimization. In Advances in Neural Information Processing Systems, volume 36, 2023.
Avrim Blum, John Hopcroft, and Ravindran Kannan. Foundations of Data Science. Cambridge University Press, 2020.
Erik Bodin, Alexandru I. Stere, Dragos D Margineantu, Carl Henrik Ek, and Henry Moss. Linear combinations of latents in generative models: subspaces and beyond. In The Thirteenth International Conference on Learning Representations, 2025.
David H. Brookes, Hahnbeom Park, and Jennifer Listgarten. Conditioning by adaptive sampling for robust design. In International Conference on Machine Learning, 2019.
Jaewon Chu, Jinyoung Park, Seunghun Lee, and Hyunwoo J. Kim. Inversion-based latent Bayesian optimization. In Advances in Neural Information Processing Systems, volume 37, 2024.
Aryan Deshwal and Jana Doppa. Combining latent space and structured kernels for bayesian optimization over combinatorial spaces. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, 2021.
Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. In Advances in Neural Information Processing Systems, volume 34, 2021.
Sander Dieleman, Laurent Sartran, Arman Roshannai, Nikolay Savinov, Yaroslav Ganin, Pierre H. Richemond, Arnaud Doucet, Robin Strudel, Chris Dyer, Conor Durkan, Curtis Hawthorne, Rémi Leblond, Will Grathwohl, and Jonas Adler. Continuous diffusion for categorical data. arXiv preprint arXiv:2211.15089, 2022.
David Eriksson, Michael Pearce, Jacob R. Gardner, Ryan D. Turner, and Matthias Poloczek. Scalable global optimization via local Bayesian optimization. In Advances in Neural Information Processing Systems, volume 32, 2019.
Wenhao Gao, Tianfan Fu, Jimeng Sun, and Connor W. Coley. Sample efficiency matters: A benchmark for practical molecular optimization. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2022.
Roman Garnett. Bayesian Optimization. Cambridge University Press, 2023.
Rafael Gómez-Bombarelli, Jennifer N. Wei, David Duvenaud, José Miguel Hernández-Lobato, Benjamín Sánchez-Lengeling, Dennis Sheberla, Jorge Aguilera-Iparraguirre, Timothy D. Hirzel, Ryan P. Adams, and Alán Aspuru-Guzik. Automatic chemical design using a data-driven continuous representation of molecules. ACS Central Science, 4(2):268–276, 2018.
Miguel González-Duque, Richard Michael, Simon Bartels, Yevgen Zainchkovsky, Søren Hauberg, and Wouter Boomsma. A survey and benchmark of high-dimensional Bayesian optimization of discrete sequences. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2024.
Nate Gruver, Samuel Stanton, Nathan C. Frey, Tim G. J. Rudner, Isidro Hotzel, Julien Lafrance-Vanasse, Arvind Rajpal, Kyunghyun Cho, and Andrew Gordon Wilson. Protein design with guided discrete diffusion. In Advances in Neural Information Processing Systems, volume 36, 2023.
Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, 2020.
Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems, volume 35, 2022.
Johannes Kirschner, Mojmír Mutný, Nicole Hiller, Rasmus Ischebeck, and Andreas Krause. Adaptive and safe Bayesian optimization in high dimensions via one-dimensional subspaces. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 3429–3438. PMLR, 2019.
Mario Krenn, Florian Häse, AkshatKumar Nigam, Pascal Friederich, and Alán Aspuru-Guzik. Self-referencing embedded strings (SELFIES): A 100% robust molecular string representation. Machine Learning: Science and Technology, 1(4):045024, 2020.
Siddarth Krishnamoorthy, Satvik Mashkaria, and Aditya Grover. Diffusion models for black-box optimization. In Proceedings of the 40th International Conference on Machine Learning, ICML'23. JMLR.org, 2023.
Seunghun Lee, Jaewon Chu, Sihyeon Kim, Juyeon Ko, and Hyunwoo J. Kim. Advancing bayesian optimization via learning correlated latent space. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS '23. Curran Associates Inc., 2023.
Seunghun Lee, Jinyoung Park, Jaewon Chu, Minseo Yoon, and Hyunwoo J. Kim. Latent bayesian optimization via autoregressive normalizing flows. In The Thirteenth International Conference on Learning Representations, 2025.
Xiner Li, Yulai Zhao, Chenyu Wang, Gabriele Scalia, Gokcen Eraslan, Surag Nair, Tommaso Biancalani, Shuiwang Ji, Aviv Regev, Sergey Levine, and Masatoshi Uehara. Derivative-free guidance in continuous and discrete diffusion models with soft value-based decoding. In International Conference on Machine Learning, 2025.
Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(2):318–327, 2020.
Natalie Maus, Haydn T. Jones, Juston S. Moore, Matt J. Kusner, John Bradshaw, and Jacob R. Gardner. Local latent space Bayesian optimization over structured inputs. In Advances in Neural Information Processing Systems, volume 35, 2022.
Henry B. Moss, Daniel Beck, Javier González, David S. Leslie, and Paul Rayson. Boss: Bayesian optimization over string spaces. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS '20. Curran Associates Inc., 2020.
Henry B. Moss, Sebastian W. Ober, and Tom Diethe. Return of the latent space COWBOYS: Re-thinking the use of VAEs for Bayesian optimisation of structured spaces. In Proceedings of the 42nd International Conference on Machine Learning, Proceedings of Machine Learning Research, pp. 44956–44970. PMLR, 2025.
Sebastian W. Ober, Carl E. Rasmussen, and Mark van der Wilk. The promises and pitfalls of deep kernel learning. In Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence, volume 161 of Proceedings of Machine Learning Research, pp. 1206–1216. PMLR, 2021.
Rafael Oliveira, Daniel M. Steinberg, and Edwin V. Bonilla. Generative Bayesian optimization: Generative models as acquisition functions. In International Conference on Learning Representations, 2026.
Saro Passaro, Gabriele Corso, Jeremy Wohlwend, Mateo Reveiz, Stephan Thaler, Vignesh Ram Somnath, Noah Getz, Tally Portnoi, Julien Roy, Hannes Stärk, David Kwabi-Addo, Dominique Beaini, Tommi Jaakkola, and Regina Barzilay. Boltz-2: Towards accurate and efficient binding affinity prediction. In bioRxiv, 2025.
Liva Ralaivola, Sanjay J. Swamidass, Hiroto Saigo, and Pierre Baldi. Graph kernels for chemical informatics. Neural Networks, 18(8):1093–1110, 2005.
Carl E. Rasmussen and Christopher K. I. Williams. Gaussian Processes for Machine Learning. MIT Press, Cambridge, MA, 2006.
David Rogers and Mathew Hahn. Extended-connectivity fingerprints. Journal of Chemical Information and Modeling, 50(5):742–754, 2010.
Francesco Sacco. Mini continuous diffusion from categorical data. https://github.com/Francesco215/text-diffusion, 2024. GitHub repository.
Bobak Shahriari, Kevin Swersky, Ziyu Wang, Ryan P. Adams, and Nando de Freitas. Taking the human out of the loop: A review of Bayesian optimization. Proceedings of the IEEE, 104(1):148–175, 2016.
Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.
Samuel Stanton, Wesley Maddox, Nate Gruver, Phillip Maffettone, Emily Delaney, Peyton Greenside, and Andrew Gordon Wilson. Accelerating bayesian optimization for biological sequence design with denoising autoencoders. In International Conference on Machine Learning, 2022.
Daniel M. Steinberg, Rafael Oliveira, Cheng Soon Ong, and Edwin V. Bonilla. Variational search distributions. In International Conference on Learning Representations, 2025.
Austin Tripp, Erik Daxberger, and José Miguel Hernández-Lobato. Sample-efficient optimization in the latent space of deep generative models via weighted retraining. In Advances in Neural Information Processing Systems, volume 33, 2020.
Austin Tripp, Sergio Bacallado, Sukriti Singh, and José Miguel Hernández-Lobato. Tanimoto random features for scalable molecular machine learning. In Advances in Neural Information Processing Systems, volume 36, 2023.
Masatoshi Uehara, Yulai Zhao, Kevin Black, Ehsan Hajiramezanali, Gabriele Scalia, Nathaniel Lee Diamant, Alex M. Tseng, Tommaso Biancalani, and Sergey Levine. Fine-tuning of continuous-time diffusion models as entropy-regularized control. International Conference on Learning Representations, 2024.
Masatoshi Uehara, Yulai Zhao, Chenyu Wang, Xingyu Li, Aviv Regev, Sergey Levine, and Tommaso Biancalani. Reward-guided controlled generation for inference-time alignment in diffusion models: Tutorial and review. arXiv preprint arXiv:2501.09685, 2025.
Joseph L. Watson, David Juergens, Nathaniel R. Bennett, Brian L. Trippe, Jason Yim, Helen E. Eisenach, Woody Ahern, Andrew J. Borst, Robert J. Ragotte, Lukas F. Milles, Basile I. M. Wicky, Nikita Hanikel, Samuel J. Pellock, Alexis Courbet, William Sheffler, Jue Wang, Preetham Venkatesh, Isaac Sappington, Susana Vázquez Torres, Anna Lauko, Valentin De Bortoli, Emile Mathieu, Sergey Ovchinnikov, Regina Barzilay, Tommi S. Jaakkola, Frank DiMaio, Minkyung Baek, and David Baker. De novo design of protein structure and function with RFdiffusion. In Nature, volume 620, pp. 1089–1100. Nature Publishing Group, 2023.
Jason Yang, Ravi G. Lal, James C. Bowden, Raul Astudillo, Mikhail A. Hameedi, Sukhvinder Kaur, Matthew Hill, Yisong Yue, and Frances H. Arnold. Active learning-assisted directed evolution. Nature Communications, 2025. doi: 10.1038/s41467-025-55987-8.
Taeyoung Yun, Kiyoung Om, Jaewoo Lee, Jinkyoo Yun, and Jinkyoo Park. Posterior inference with diffusion models for high-dimensional black-box optimization. In International Conference on Machine Learning, 2025.
A PROOFS
A.1 TILTING COMMUTES WITH DECODING
Proposition 3 (Lifting). Let be the tilted density Eq. (13) and the tilted target of Definition 3.1. Then a draw returns .
Proof. Write for the normalizing constant of . On the cell the decode map is constant by definition, , so factors out of the integral:
The same decomposition identifies the constant. Since the cells partition ,
which is exactly the normalizing constant of in Eq. (11). Hence for .
Note that only the constancy of on cells was used; no property of and no regularity of beyond measurability is required. This is what licenses tilting in the continuous space and decoding afterwards, and for SeqFlow it is applied a second time with replaced by (Appendix A.3).
A.2 PROOF OF PROPOSITION 1
Statement. With , Proposition 1 asserts that the tilted marginal and the tilted posterior factor as
the first being Eq. (17).
Proof. Expand using Definition 3.1 and Definition 3.2:
By Bayes' rule, , so
with , which is Eq. (17).
For the second claim, apply Bayes' rule to the tilted pair and substitute both expansions above:
Since does not depend on , it is absorbed into the normalizing constant, giving , which is Eq. (18).
A.3 CHANGE OF VARIABLES TO THE FLOW LATENT
Section 3.4 runs SeqFlow in its latent rather than in . This requires two facts: the tilted target Eq. (13), pushed through , is again a Gaussian tilted by the acquisition, now composed with the decoder, Eq. (25); and decoding a draw of it recovers . Both follow from the change-of-variables formula, because the Jacobian of the flow enters the tilted and the untilted density in the same way.
Proposition 4 (Flow-latent tilt). Let be a diffeomorphism of such that implies , as in Eq. (8), and let , with the Jacobian determinant of at . Then
which is Eq. (25), and implies .
Proof. Since is a diffeomorphism, the change-of-variables formula applies to and to with the same Jacobian factor. Writing for the Jacobian determinant of at ,
the second because transports to , as in Eq. (8). Substituting from Eq. (13) into the first and recognizing the second,
which is Eq. (25): the Jacobian is common to both densities and cancels in the ratio . Finally, gives by the first identity of Eq. (34), so by Appendix A.1.
A.4 PROOF OF PROPOSITION 2
Statement. For the Gaussian kernel Eq. (15) with , and with as in Definition 3.3, Proposition 2 asserts
so that the guided score Eq. (19) is , i.e. Eq. (21) and Eq. (22).
Proof. We differentiate directly and exhibit the two means whose cancels. Write
By Bayes' rule, , so the definition of in Proposition 1 reads
and therefore
Since is the Gaussian kernel Eq. (15), , so by the log-derivative rule . Consequently
(39)
The second term of Eq. (38) follows from the same steps applied to . Now the denominator is itself, so dividing by it gives at once, and the second member carries in place of :
(40)
where ; this is Tweedie's formula for this kernel and is the untilted score quoted in Proposition 2.
Substituting Eq. (39) and Eq. (40) into Eq. (38), the terms — identical in both — cancel:
which is Eq. (21). Adding Eq. (40) back recovers Eq. (22).
A.5 ESTIMATING THE TILTED MEAN
By Proposition 2, the guidance term depends on the frozen model only through the tilted posterior mean of Definition 3.3. Its untilted counterpart comes with the score (i), but is a ratio of two expectations under with a black box, and has no closed form. This section gives the estimator used in Section 3.3, how its draws are obtained for each backbone, and the two parameters that set the strength of the tilt.
Proposition 5 (Self-normalized importance-sampling (SNIS) estimator). Draw N i.i.d. samples and write . Then
Proof. We start by rewriting Definition 3.3. By Eq. (18), , hence
the last step by the definition of in Proposition 1. Neither expectation admits a closed form: is a scalar function of the whole decoded object and does not factorize over the coordinates of , so numerator and denominator both couple all positions. Estimating the two expectations of Eq. (43) by Monte Carlo, using the same draws in both, gives
The estimator is a ratio of two unbiased estimators sharing the same draws, hence consistent but biased at finite , with bias ; the self-normalization in is what removes the unknown .
Two knobs, and they are not the same operation. In Eq. (11) the acquisition enters with unit exponent; in practice the strength of the tilt is a tuning parameter. It can be adjusted at two points of the estimator: after the tilted mean has been formed, or inside the weights. The first, , scales the guidance term of Eq. (19) after the tilted mean has been formed, :
Table 2: What each backbone supplies to the guided score Eq. (19). Quantities (i) and (ii) are backbone-specific; the guidance term is estimated from the draws of (ii) (Section 3.3).
| CDCD | SeqFlow | |
|---|---|---|
| noised variable | embedding | flow latent |
| schedule | ||
| (i) | learned Eq. (6) | |
| (ii) draws from | mean-field Eq. (49), one network pass | exact Gaussian Eq. (27), passes of |
| SNIS Eq. (42) or REIN-FORCE Eq. (50) | SNIS Eq. (42) | |
| noise end | ||
| anchor scale |
Algorithm 1 GUIDEDSAMPLE — CDCD. Instantiates Section 3.4 at . CDCD's code was never released, so we adapted a public reimplementation (Sacco, 2024).
Require: ; frozen and embedding table ;
1: 2: 3: Eq. (6) 4: Eq. (7) 5: Eq. (46) 6: Proposition 5 or Proposition 6 7: Eq. (45) 8: end for 9: return
This leaves the draws and the weights of Eq. (42) untouched and moves only the target, along the segment from to . Powering first and marginalizing second changes only the weights,
The target keeps the form of Eq. (22) and the weight vector is deformed instead: collapses onto the best sampled candidate, while flattens it to uniform and recovers the untilted .
B CDCD
Algorithm 1 covers the guided-sampling step when the backbone is a diffusion model.
Instantiation. CDCD's forward process Eq. (5) is the kernel Eq. (15) of Definition 3.2 at , so with . Proposition 2 then reads
whose first term is CDCD's own score Eq. (6): guidance replaces by and leaves the sampler otherwise untouched. The sampler integrates Eq. (47) by an Euler step (Algorithm 1, line 7), which carries a discretization error per step — a cost SeqFlow does not pay (Appendix C).
With , Definition 3.3 reads
Table 3: The mean-field approximation Eq. (49) against rollouts of the reverse process. is the number of inner denoising steps used to draw each of the SNIS samples: is the factorized draw from the per-position marginals Eq. (7), i.e. Eq. (49), and is what Algorithm 1 uses; replaces it by a -step ancestral rollout, which couples the positions through the network and resolves the joint. Final objective value after 300 BO epochs on six GuacaMol/TDC objectives, mean sd over 3 seeds; higher is better. is minus , and the last column expresses it in units of the pooled seed-to-seed sd. At — beyond the point where proposal fidelity saturates, and at the wall clock (8.77 against 0.36 h per arm) — no objective improves beyond the seed spread and one degrades.
| objective | ||||
|---|---|---|---|---|
| med2 | +0.0058 | +0.26 | ||
| osmb | -0.0039 | -0.07 | ||
| adip | +0.0148 | +0.70 | ||
| zale | -0.0969 | -1.23 | ||
| rano | -0.0416 | -0.87 | ||
| qed | +0.0114 | +0.30 |
Both sums range over , and neither decomposes: is a scalar function of the whole decoded molecule, , so it couples all positions. Note the contrast with , which is an expectation of a quantity that is additive across positions and is therefore determined by the marginals Eq. (7) alone; is not, and must be estimated by Proposition 5.
Sampling the denoising posterior. This is where CDCD incurs its one structural approximation, and it is worth being precise about whose approximation it is. Proposition 5 needs draws from . For a diffusion model, drawing from the true denoising posterior means running the reverse process from all the way to the data end, once per sample: at samples per guidance step and steps per trajectory, that is rollouts, which is prohibitive. What is available for free is Eq. (7), the per-position marginals, since they come from the same forward pass that already produced and drawing from a factorized categorical costs nothing. We therefore adopt the mean-field approximation
and sample positions independently.
Two things should be said about it. First, it is our approximation, introduced in the estimator, not an assumption CDCD makes: the model never represents the joint because the score does not require it, being determined by the marginals alone. Second, it is empirically benign — we compared Eq. (49) against exact rollouts of the reverse process and found no degradation in optimization performance, at a small fraction of the cost (Table 3). The SeqFlow version needs neither: its posterior Eq. (53) is exactly Gaussian and fully correlated, so a draw from it is a draw from the true posterior.
REINFORCE estimator. Proposition 5 estimates from draws of a posterior that is already available in closed form, so the conditional score is analytic and Monte Carlo is needed only for the sequence-level expectation of . That estimator works directly on Definition 3.3. A second, more direct route starts from the observation that Proposition 2 can be rearranged as . Since is available from the forward pass of the model, the only remaining obstacle is .
Proposition 6 (REINFORCE estimator). Given , its estimate may be written as
Algorithm 2 GUIDEDSAMPLE — SeqFlow. Instantiates Section 3.4 in the flow latent with the variance-preserving schedule Eq. (51).
Require: ; frozen flow and readout ; schedule ;
1:
2: for , the next level do
3: closed form; no network eval, Eq. (53)
4: , exact posterior
5: Eq. (46)
6: Proposition 5
7: ,
8: end for
9: return , decoded as
Proof. By Eq. (17), . Applying the log-derivative trick, i.e. multiplying and dividing by ,
This is again a ratio of two expectations under the same , with the same intractable denominator , so Monte Carlo applies as in Proposition 5:
Substituting into gives Eq. (50).
The per-sample score required by Eq. (50) is itself available in closed form.
Cost. Both and the categorical come from a single forward pass of , so the draws of Proposition 5 are sampled from an object already in hand and cost no additional network evaluations. Each step is therefore one network evaluation, decodes, and one GP prediction over molecules.
B.1 TRAINING CDCD
No pretrained diffusion model was available off the shelf, so we trained one from scratch. Table 4 lists the hyperparameter configuration we used. Dieleman et al. (2022) never released the original code, so we started from a public reimplementation (Sacco, 2024) and adapted it to our needs.
C SEQFLOW
Algorithm 2 covers the guided-sampling step when the backbone is a normalizing flow.
Instantiation. SeqFlow supplies no noising process of its own, so the kernel of Definition 3.2 is imposed rather than inherited. We work in the flow latent , whose law is exactly while the tilt is the pullback , Eq. (25). Set
Table 4: Hyperparameters of the CDCD generator.
| Hyperparameter | Value |
|---|---|
| Architecture | |
| Embedding dimension | 16 |
| Hidden dimension | 512 |
| Query/key/value dimension | 512 |
| Time embedding dimension | 16 |
| Layers | 8 |
| Attention heads | 8 |
| Conditioning | |
| Self-conditioning probability | 0.4 |
| Mask-conditioning probability | 0.1 |
| Masking probability | 1.0 |
| Loss | |
| Objective | Focal (Lin et al., 2020) |
| <top> token weight | 1.0 |
| <eos> token weight | 1.0 |
| <pad> token weight | 1.0 |
| Noise schedule | |
| Minimum time | 0.01 |
| Maximum time | 200.0 |
| Location | 3.0 |
| Scale | 2.0 |
| Height | 6.0 |
| Offset | -1.0 |
| Update frequency | 100 |
| Optimization | |
| Batch size | 512 |
| Learning rate | |
| Maximum epochs | 30 |
| Maximum steps | 450,000 |
| Gradient clipping | 1.0 |
| Gradient accumulation steps | 1 |
| Sequence and sampling | |
| Maximum sequence length | 110 |
| Integration steps | 200 |
i.e. in Eq. (26). Two closed forms follow. Since the latent law is , the untilted marginal is
so the bridge is variance preserving and every level carries the same law as the flow's own base; and by Gaussian conjugacy the posterior of Proposition 1 is exact,
which is Eq. (27) with . Neither requires a network evaluation. Proposition 2 then reads
Nothing about enters any of Eq. (52)–Eq. (54): the learned content of the flow is confined to the tilt, where it is evaluated pointwise by Proposition 5 and never differentiated. This is why no analogue of Proposition 6 is needed here — there is no learned posterior whose score would have to be estimated.
Why tilting the latent is legitimate. Definition 3.1 is stated over the object that scores, whereas Eq. (51) tilts . The two agree by the argument of Appendix A.1, applied with replaced by
Algorithm 3 AFGG: full BO loop
Require: frozen generator; acquisition ; temperature ; guidance scale ; inner samples ; batch size ; oracle budget ; initial dataset ; trust-region coefficient ; anchor scale
1:
2: for do
3: fit GP on ▷ in design space, Section 2.1
4: anchor from the incumbent
5: , ▷ Eq. (28)
6: ▷ Algorithm 1 (CDCD) or Algorithm 2 (SeqFlow)
7: (CDCD) or (SeqFlow), ▷ decode to design space
8: evaluate oracle on ,
9:
10: end for
11: return
the composite readout : writing for the distribution over molecules induced by of Eq. (25), and using that is constant on each cell of Eq. (8),
the intended target. Tilting the latent and decoding is therefore the same distribution over molecules as tilting the molecules directly; the constancy of on cells is what licenses pulling it out of the integral.
What remains approximate. Three things, none of them the posterior. First, the -sample estimate of in Proposition 5, which is common to both backbones. Second, Algorithm 2 substitutes the tilted posterior mean for a draw from , which is under-dispersed and mode-seeking; resampling a single with probability instead recovers a transition that is asymptotically exact in , at the cost of variance. Third, the rollout is initialized at rather than at , which by Proposition 1 differs from by the tilt ; the discrepancy vanishes as and is the price of not being samplable.
Cost. Each step draws latents from Eq. (53) and decodes each through and , so the flow is evaluated times per step. CDCD amortizes a single forward pass across all draws, since Eq. (7) is already available from it. This is the price of the exact posterior: the flow has no amortized categorical to sample from, and every draw must be pushed through the network to be scored. The decode is latency-bound rather than throughput-bound, however, so is nearly free and the step count is the binding constraint — the opposite of CDCD's economics.
C.1 TRAINING SEQFLOW
We used the pretrained model available in the authors' repository. For details of how it was trained and which hyperparameter configuration was used, we refer to Lee et al. (2025).
D AFGG ALGORITHM
Algorithm 3 summarizes the complete AFGG optimization loop. At each BO iteration, the surrogate is updated in data space, the guided sampler is initialized around the current incumbent using the trust region above, and the resulting candidate is decoded and evaluated. The overall procedure is shared across both generative backbones; they differ only in the continuous variable in which the bridge and guidance are applied. For CDCD, this variable is the token-embedding representation, whereas for SeqFlow it is the Gaussian flow latent. The complete guided samplers are given in Appendix B and Appendix C (Algorithm 1 and Algorithm 2), and Table 2 summarizes the correspondence between the two instantiations.
| Abbreviation | PMO objective | Abbreviation | PMO objective |
|---|---|---|---|
| albu_sim | albuterol_similarity | osim_mpo | osimertinib_mpo |
| amlo_mpo | amlodipine_mpo | peri_mpo | perindopril_mpo |
| cele_red | celecoxib_rediscovery | rano_mpo | ranolazine_mpo |
| deco_hop | deco_hop | logp | rdkit_logp |
| drd2 | drd2_docking | qed | rdkit_qed |
| fexo_mpo | fexofenadine_mpo | sa | sa_tdc |
| gsk3b | gsk3_beta | scaf_hop | scaffold_hop |
| iso_c7 | isomer_c7h8n2o2 | sita_mpo | sitagliptin_mpo |
| iso_c9 | isomer_c9h10n2o2pf2cl | thio_red | thiothixene_rediscovery |
| jnk3 | jnk3 | trog_red | troglitazone_rediscovery |
| med_1 | median_1 | vals_sma | valsartan_smarts |
| med_2 | median_2 | zale_mpo | zaleplon_mpo |
| mest_sim | mestranol_similarity |
Table 5: Abbreviations of the 25 PMO objectives, used in all tables.
| Objective | baselines | AFGG | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CoBO | InvBO | LOL-BO | NFBO | CMA-ES | COWBOYS | DE | GA | HC | RLBO | TuRBO | CDCD | SeqFlow | |
| albu_sim | 0.593 ± 0.111 | 0.629 ± 0.079 | 0.509 ± 0.065 | 0.593 ± 0.119 | 0.500 ± 0.030 | 0.448 ± 0.037 | 0.488 ± 0.035 | 0.385 ± 0.074 | 0.454 ± 0.070 | 0.483 ± 0.091 | 0.475 ± 0.047 | 0.691 ± 0.073 | 0.975 ± 0.038 |
| amlo_mpo | 0.523 ± 0.012 | 0.538 ± 0.050 | 0.516 ± 0.022 | 0.563 ± 0.095 | 0.459 ± 0.038 | 0.472 ± 0.038 | 0.438 ± 0.143 | 0.419 ± 0.082 | 0.460 ± 0.048 | 0.491 ± 0.030 | 0.475 ± 0.024 | 0.546 ± 0.039 | 0.565 ± 0.045 |
| cele_red | 0.262 ± 0.041 | 0.286 ± 0.068 | 0.243 ± 0.035 | 0.455 ± 0.035 | 0.227 ± 0.032 | 0.243 ± 0.020 | 0.216 ± 0.036 | 0.210 ± 0.040 | 0.228 ± 0.032 | 0.224 ± 0.031 | 0.221 ± 0.033 | 0.392 ± 0.024 | 0.836 ± 0.125 |
| deco_hop | 0.565 ± 0.008 | 0.597 ± 0.019 | 0.560 ± 0.009 | 0.673 ± 0.147 | 0.563 ± 0.010 | 0.559 ± 0.008 | 0.571 ± 0.018 | 0.549 ± 0.015 | 0.553 ± 0.012 | 0.556 ± 0.015 | 0.552 ± 0.012 | 0.599 ± 0.010 | 0.803 ± 0.175 |
| drd2 | 0.510 ± 0.370 | 0.963 ± 0.037 | 0.626 ± 0.184 | 0.971 ± 0.066 | 0.184 ± 0.068 | 0.796 ± 0.243 | 0.862 ± 0.156 | 0.154 ± 0.051 | 0.183 ± 0.045 | 0.380 ± 0.246 | 0.556 ± 0.337 | 0.730 ± 0.226 | 1.000 ± 0.000 |
| fexo_mpo | 0.710 ± 0.034 | 0.734 ± 0.027 | 0.716 ± 0.021 | 0.723 ± 0.032 | 0.672 ± 0.014 | 0.683 ± 0.031 | 0.724 ± 0.045 | 0.611 ± 0.063 | 0.680 ± 0.033 | 0.682 ± 0.034 | 0.688 ± 0.026 | 0.763 ± 0.017 | 0.741 ± 0.016 |
| gsk3b | 0.362 ± 0.069 | 0.500 ± 0.042 | 0.336 ± 0.103 | 0.656 ± 0.174 | 0.371 ± 0.042 | 0.418 ± 0.093 | 0.478 ± 0.108 | 0.248 ± 0.081 | 0.320 ± 0.047 | 0.343 ± 0.084 | 0.328 ± 0.047 | 0.518 ± 0.088 | 0.950 ± 0.037 |
| iso_c7 | 0.875 ± 0.145 | 1.000 ± 0.000 | 0.760 ± 0.036 | 0.860 ± 0.092 | 0.972 ± 0.051 | 0.919 ± 0.046 | 0.808 ± 0.051 | 0.808 ± 0.051 | 0.895 ± 0.090 | 0.898 ± 0.072 | 0.898 ± 0.072 | 0.957 ± 0.049 | 0.981 ± 0.043 |
| iso_c9 | 0.577 ± 0.050 | 0.699 ± 0.147 | 0.630 ± 0.082 | 0.758 ± 0.024 | 0.751 ± 0.074 | 0.834 ± 0.020 | 0.672 ± 0.146 | 0.643 ± 0.103 | 0.687 ± 0.106 | 0.714 ± 0.035 | 0.778 ± 0.049 | 0.722 ± 0.079 | 0.809 ± 0.081 |
| jnk3 | 0.148 ± 0.031 | 0.206 ± 0.063 | 0.144 ± 0.035 | 0.412 ± 0.095 | 0.150 ± 0.025 | 0.176 ± 0.032 | 0.190 ± 0.053 | 0.142 ± 0.029 | 0.144 ± 0.025 | 0.150 ± 0.049 | 0.158 ± 0.029 | 0.216 ± 0.033 | 0.778 ± 0.038 |
| med_1 | 0.178 ± 0.025 | 0.253 ± 0.037 | 0.175 ± 0.023 | 0.203 ± 0.024 | 0.146 ± 0.012 | 0.192 ± 0.024 | 0.179 ± 0.038 | 0.152 ± 0.042 | 0.154 ± 0.015 | 0.150 ± 0.023 | 0.181 ± 0.030 | 0.346 ± 0.031 | 0.352 ± 0.045 |
| med_2 | 0.158 ± 0.011 | 0.186 ± 0.014 | 0.158 ± 0.011 | 0.207 ± 0.018 | 0.155 ± 0.013 | 0.156 ± 0.012 | 0.168 ± 0.017 | 0.155 ± 0.013 | 0.155 ± 0.013 | 0.155 ± 0.013 | 0.155 ± 0.013 | 0.225 ± 0.016 | 0.283 ± 0.024 |
| mest_sim | 0.421 ± 0.064 | 0.531 ± 0.054 | 0.384 ± 0.059 | 0.555 ± 0.125 | 0.362 ± 0.062 | 0.404 ± 0.023 | 0.382 ± 0.104 | 0.280 ± 0.090 | 0.358 ± 0.058 | 0.372 ± 0.046 | 0.395 ± 0.057 | 0.593 ± 0.051 | 0.658 ± 0.114 |
| osim_mpo | 0.761 ± 0.013 | 0.782 ± 0.024 | 0.767 ± 0.015 | 0.803 ± 0.019 | 0.750 ± 0.020 | 0.749 ± 0.023 | 0.756 ± 0.067 | 0.724 ± 0.060 | 0.744 ± 0.028 | 0.749 ± 0.027 | 0.748 ± 0.022 | 0.778 ± 0.023 | 0.789 ± 0.034 |
| perl_mpo | 0.487 ± 0.049 | 0.447 ± 0.054 | 0.416 ± 0.079 | 0.434 ± 0.015 | 0.345 ± 0.053 | 0.344 ± 0.034 | 0.355 ± 0.067 | 0.332 ± 0.055 | 0.344 ± 0.034 | 0.356 ± 0.023 | 0.342 ± 0.038 | 0.432 ± 0.031 | 0.502 ± 0.017 |
| rano_mpo | 0.688 ± 0.027 | 0.742 ± 0.033 | 0.684 ± 0.042 | 0.696 ± 0.053 | 0.690 ± 0.071 | 0.708 ± 0.040 | 0.729 ± 0.068 | 0.484 ± 0.081 | 0.710 ± 0.043 | 0.672 ± 0.103 | 0.728 ± 0.025 | 0.757 ± 0.034 | 0.785 ± 0.007 |
| logp | 65.866 ± 10.720 | 49.799 ± 19.126 | 34.741 ± 5.318 | 25.055 ± 8.705 | 13.285 ± 1.014 | 15.443 ± 3.623 | 7.589 ± 3.102 | 6.138 ± 0.827 | 11.939 ± 1.801 | 10.491 ± 2.039 | 12.128 ± 1.918 | 22.684 ± 2.667 | 35.734 ± 10.360 |
| sa | 9.001 ± 0.347 | 8.393 ± 0.543 | 8.214 ± 0.711 | 7.538 ± 0.452 | 8.035 ± 0.069 | 8.020 ± 0.363 | 8.492 ± 0.742 | 8.853 ± 0.151 | 8.053 ± 0.225 | 8.035 ± 0.128 | 7.971 ± 0.035 | 8.349 ± 0.606 | 8.560 ± 0.220 |
| scaf_hop | 0.441 ± 0.029 | 0.501 ± 0.030 | 0.430 ± 0.020 | 0.510 ± 0.062 | 0.431 ± 0.008 | 0.442 ± 0.027 | 0.441 ± 0.027 | 0.407 ± 0.023 | 0.413 ± 0.018 | 0.417 ± 0.027 | 0.427 ± 0.029 | 0.500 ± 0.028 | 0.583 ± 0.070 |
| sit_mpo | 0.255 ± 0.096 | 0.330 ± 0.032 | 0.228 ± 0.087 | 0.290 ± 0.030 | 0.367 ± 0.037 | 0.352 ± 0.090 | 0.275 ± 0.095 | 0.094 ± 0.050 | 0.400 ± 0.101 | 0.319 ± 0.118 | 0.275 ± 0.063 | 0.108 ± 0.092 | 0.295 ± 0.056 |
| thio_red | 0.270 ± 0.025 | 0.308 ± 0.017 | 0.255 ± 0.011 | 0.376 ± 0.053 | 0.250 ± 0.015 | 0.261 ± 0.010 | 0.272 ± 0.039 | 0.240 ± 0.021 | 0.241 ± 0.019 | 0.245 ± 0.014 | 0.250 ± 0.014 | 0.395 ± 0.051 | 0.475 ± 0.060 |
| trog_red | 0.205 ± 0.004 | 0.260 ± 0.010 | 0.218 ± 0.044 | 0.300 ± 0.044 | 0.206 ± 0.017 | 0.210 ± 0.014 | 0.205 ± 0.033 | 0.182 ± 0.028 | 0.194 ± 0.016 | 0.196 ± 0.016 | 0.190 ± 0.017 | 0.324 ± 0.043 | 0.380 ± 0.031 |
| vals_sma | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.015 ± 0.034 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 |
| zale_mpo | 0.404 ± 0.055 | 0.461 ± 0.047 | 0.348 ± 0.065 | 0.442 ± 0.042 | 0.390 ± 0.037 | 0.378 ± 0.044 | 0.361 ± 0.123 | 0.191 ± 0.068 | 0.365 ± 0.037 | 0.357 ± 0.083 | 0.355 ± 0.041 | 0.466 ± 0.037 | 0.480 ± 0.026 |
Table 6: Final best score on all 25 PMO objectives after 300 oracle calls (10 initial points, 1 point per BO iteration), mean ± sample standard deviation over 5 seeds. AFGG is shown in two instantiations: CDCD and SeqFlow. Every cell is judged against the opposing group: an AFGG cell against the 11 baselines, a baseline cell against the two AFGG columns. Bold: the cell's mean exceeds every mean in the opposing group. Green : that lead is significant, exceeding the cell's own standard deviation; bold without green therefore means ahead but within noise.
E ADDITIONAL MATERIAL
E.1 ADDITIONAL RESULTS ON GUACAMOL
This section reports the full benchmark behind Section 4: all 25 PMO objectives, in the sequential regime and in both batch regimes, as final scores and as complete trajectories. Objective names are abbreviated as in Table 5.
All available generative-model checkpoints of the baselines were trained on GuacaMol; COWBOYS provides no checkpoint, so we retrain it on GuacaMol from the released code.
One accounting point applies throughout. CoBO (Lee et al., 2023) and LOL-BO (Maus et al., 2022) spend oracle calls realigning a latent with the molecule it decodes to, and their released code does not charge those calls to the budget. Following Chu et al. (2024) we modified both to count them, so every method below is compared at the same number of oracle evaluations.
Fig. 3 and Table 6 give the sequential regime (, 10 initial points, 300 oracle calls) against all eleven baselines, of which Table 1 in the main text shows five. Each cell is judged against the opposing group, so a bold AFGG cell beats every baseline on that objective and a bold baseline cell beats both AFGG columns; green marks a lead exceeding the cell's own standard deviation. Two objectives are worth reading separately from the rest. logp and sa are not scaled to be in [0, 1], and reward molecules that are large or synthetically implausible, so a high score there measures how far a method will leave the training distribution rather than how well it optimizes; the LSBO baselines lead on both.

Figure 3: Sequential setting: full trajectories on all 25 PMO objectives (10 initial points, 300 oracle calls, 1 point per BO iteration).
The batch regime (100 initial points, then 100 epochs of ) admits two ways of turning a per-candidate tilt into a batch, differing in where the interaction between members enters. Uncoupled generation guides each trajectory by its own and lets the points “meet” only at selection, where the points are chosen from the generated pool by joint qLogEI in design space. Coupled generation uses one joint tilt per batch, being qLogEI evaluated on the partial batch, so each member is generated aware of those already fixed. Coupled generation is the more faithful instantiation of batch BO — it is the one that targets the joint acquisition the batch is eventually scored by — but it is not the one that performs better here, so we report both. Fig. 4 and Table 7 give the uncoupled

Figure 4: Batch regime, uncoupled generation: 500 acquisitions (100 initial points, then 100 epochs of 5), all 25 objectives.
variant, the one used in Section 4; Fig. 5 and Table 8 the coupled one. The baseline columns are the same runs in both tables, since only the AFGG variants differ.
E.2 EFFECT OF THE GENERATIVE PRIOR
AFGG (CDCD) and AFGG (SeqFlow) share the same acquisition-guided machinery, but differ in the generative model being steered: Table 9 isolates that component: we draw 5000 unconditional samples from each model and score them against a 30k-molecule subset of GuacaMol. Validity, uniqueness and novelty do not separate the two models: all six values exceed 0.96 and the residual
| Objective | baselines | AFGG | |||||
|---|---|---|---|---|---|---|---|
| CoBO | InvBO | LOL-BO | NFBO | COWBOYS | CDCD | SeqFlow | |
| albu_sim | 0.692 ± 0.095 | 0.771 ± 0.057 | 0.579 ± 0.043 | 0.609 ± 0.073 | 0.551 ± 0.081 | 0.779 ± 0.073 | 0.960 ± 0.050 |
| amlo_mpo | 0.540 ± 0.021 | 0.569 ± 0.029 | 0.522 ± 0.026 | 0.582 ± 0.024 | 0.501 ± 0.021 | 0.565 ± 0.052 | 0.618 ± 0.075 |
| cele_red | 0.307 ± 0.035 | 0.366 ± 0.064 | 0.304 ± 0.036 | 0.452 ± 0.052 | 0.316 ± 0.052 | 0.457 ± 0.098 | 0.861 ± 0.135 |
| deco_hop | 0.588 ± 0.005 | 0.610 ± 0.007 | 0.586 ± 0.004 | 0.617 ± 0.018 | 0.583 ± 0.004 | 0.614 ± 0.019 | 0.878 ± 0.120 |
| drd2 | 0.930 ± 0.090 | 0.996 ± 0.006 | 0.728 ± 0.247 | 0.994 ± 0.012 | 0.774 ± 0.210 | 0.792 ± 0.288 | 1.000 ± 0.000 |
| fexo_mpo | 0.732 ± 0.025 | 0.789 ± 0.013 | 0.718 ± 0.010 | 0.771 ± 0.025 | 0.689 ± 0.017 | 0.768 ± 0.022 | 0.767 ± 0.028 |
| gsk3b | 0.516 ± 0.125 | 0.730 ± 0.174 | 0.512 ± 0.138 | 0.802 ± 0.120 | 0.558 ± 0.151 | 0.714 ± 0.073 | 0.968 ± 0.050 |
| iso_c7 | 0.880 ± 0.074 | 1.000 ± 0.000 | 0.880 ± 0.074 | 0.901 ± 0.107 | 0.935 ± 0.081 | 1.000 ± 0.000 | 1.000 ± 0.000 |
| iso_c9 | 0.718 ± 0.110 | 0.808 ± 0.100 | 0.758 ± 0.074 | 0.778 ± 0.104 | 0.843 ± 0.051 | 0.855 ± 0.097 | 0.820 ± 0.087 |
| jnk3 | 0.300 ± 0.161 | 0.524 ± 0.211 | 0.298 ± 0.161 | 0.652 ± 0.128 | 0.336 ± 0.248 | 0.536 ± 0.222 | 0.820 ± 0.091 |
| med_1 | 0.212 ± 0.026 | 0.291 ± 0.023 | 0.228 ± 0.022 | 0.265 ± 0.012 | 0.192 ± 0.020 | 0.367 ± 0.030 | 0.359 ± 0.038 |
| med_2 | 0.211 ± 0.024 | 0.241 ± 0.037 | 0.204 ± 0.028 | 0.241 ± 0.045 | 0.205 ± 0.034 | 0.258 ± 0.047 | 0.297 ± 0.032 |
| mest_sim | 0.439 ± 0.020 | 0.565 ± 0.068 | 0.428 ± 0.038 | 0.577 ± 0.052 | 0.443 ± 0.028 | 0.660 ± 0.077 | 0.844 ± 0.154 |
| osim_mpo | 0.786 ± 0.019 | 0.815 ± 0.009 | 0.768 ± 0.015 | 0.803 ± 0.027 | 0.762 ± 0.017 | 0.807 ± 0.016 | 0.832 ± 0.015 |
| peri_mpo | 0.509 ± 0.069 | 0.567 ± 0.041 | 0.499 ± 0.044 | 0.504 ± 0.012 | 0.427 ± 0.019 | 0.528 ± 0.010 | 0.555 ± 0.055 |
| rano_mpo | 0.763 ± 0.031 | 0.784 ± 0.025 | 0.732 ± 0.028 | 0.748 ± 0.051 | 0.740 ± 0.033 | 0.799 ± 0.014 | 0.788 ± 0.018 |
| logp | 52.790 ± 5.679 | 63.296 ± 16.073 | 53.962 ± 8.208 | 29.014 ± 8.537 | 13.554 ± 1.710 | 21.420 ± 1.219 | 42.342 ± 1.350 |
| qed | 0.934 ± 0.008 | 0.947 ± 0.002 | 0.934 ± 0.008 | 0.947 ± 0.001 | 0.921 ± 0.008 | 0.941 ± 0.008 | 0.948 ± 0.000 |
| sa | 8.952 ± 0.668 | 8.947 ± 0.581 | 8.590 ± 0.473 | 7.841 ± 0.310 | 8.066 ± 0.225 | 8.703 ± 0.557 | 8.752 ± 0.083 |
| scaf_hop | 0.479 ± 0.027 | 0.506 ± 0.021 | 0.463 ± 0.010 | 0.511 ± 0.020 | 0.459 ± 0.005 | 0.504 ± 0.018 | 0.557 ± 0.038 |
| sita_mpo | 0.310 ± 0.036 | 0.512 ± 0.216 | 0.319 ± 0.032 | 0.410 ± 0.121 | 0.360 ± 0.047 | 0.394 ± 0.183 | 0.327 ± 0.056 |
| thio_red | 0.327 ± 0.035 | 0.420 ± 0.053 | 0.311 ± 0.022 | 0.400 ± 0.030 | 0.313 ± 0.024 | 0.489 ± 0.036 | 0.599 ± 0.107 |
| trog_red | 0.250 ± 0.009 | 0.287 ± 0.028 | 0.237 ± 0.008 | 0.286 ± 0.009 | 0.232 ± 0.014 | 0.364 ± 0.024 | 0.443 ± 0.052 |
| vals_sma | 0.000 ± 0.000 | 0.001 ± 0.002 | 0.000 ± 0.000 | 0.053 ± 0.118 | 0.000 ± 0.000 | 0.000 ± 0.000 | 0.000 ± 0.000 |
| zale_mpo | 0.454 ± 0.083 | 0.455 ± 0.022 | 0.401 ± 0.027 | 0.457 ± 0.027 | 0.391 ± 0.036 | 0.472 ± 0.023 | 0.521 ± 0.025 |
Table 7: Batch regime, uncoupled generation. Final best score on all 25 PMO objectives after 500 acquisitions (100 initial points, then 100 epochs of 5), mean ± sample standard deviation over 5 seeds. AFGG generates each batch uncoupled here: every molecule is guided by its own acquisition value, and the batch only forms at selection. Every cell is judged against the opposing group: an AFGG cell against the five baselines, a baseline cell against the two AFGG columns. Bold: the cell's mean exceeds every mean in the opposing group. Green: that lead is significant, exceeding the cell's own standard deviation; bold without green therefore means ahead but within noise.
differences, below two points, are in CDCD's favor. FCD does separate them, by a factor of roughly 3.5: SeqFlow reaches 6.02 against CDCD's 20.99, i.e. its samples sit far closer to the reference distribution in ChemNet feature space. Guidance tilts the prior rather than extending its support, so what the acquisition function can propose is confined to the region the prior already covers, and a prior whose mass is better aligned with the data distribution gives the search a better-conditioned region to act on.
E.3 HYPERPARAMETER TUNING FOR CDCD
Every column reports the final best score after 300 oracle calls, mean ± sample standard deviation over 5 seeds. All ablations use the CDCD backbone in the sequential setting (10 initial points, 300 oracle calls, 1 point per epoch). Every objective is scored on [0, 1]; bold marks the best mean in each row (ties at the printed precision are all bolded), and Wins counts only rows with a unique winner.
Guidance on vs. off. By setting , it has been proven that the generative model is not the main driver for optimizing the function. Having an additional force, represented by the acquisition function, has a dramatic effect on performance (see Table 10 for full results).
Guidance estimator. SNIS and REINFORCE target the same quantity, (Proposition 6 and Proposition 5). SNIS forms it directly as a weighted average of the sampled embeddings, : a closed-form combination with no gradient involved Eq. (42). REINFORCE instead routes through Eq. (50), a score-function estimator — these are well known to carry substantially higher variance than a direct, closed-form average for a fixed sample budget, and at trajectories per epoch that variance shows: SNIS wins all seven objectives, several by a wide margin (zale_mpo: 0.420 vs. 0.250), Table 11 for full results.
Acquisition function. Table 12 shows AFGG's versatility: it can be applied with any acquisition function. As expected, EI yields higher performance than PI or UCB.

—AFGG (SeqFlow) —AFGG (CDCD) --- InvBO .... CoBO --- LOL-BO -- NFBO --- COWBOYS
Figure 5: Batch regime, coupled generation: 500 acquisitions (100 initial points, then 100 epochs of 5), all 25 objectives.
Candidate pool size. Moving from 1 to 10 trajectories captures essentially all the achievable gain (mean ); doubling again to 20 does not clearly help (mean 0.477, within a single row's typical standard deviation of the 10-trajectory result), while doubling the per-epoch generation cost. We fix 10 as the point where that curve has flattened, Table 13 for full results.
Where the temperature acts. Power tilt reshapes the SNIS weights, (see Eq. (46)) — always a convex combination of the sampled embeddings, so the guided target cannot leave their span. Scale drift instead rescales the drift after the tilted mean is formed (see Eq. (45)): at
| Objective | baselines | AFGG | |||||
|---|---|---|---|---|---|---|---|
| CoBO | InvBO | LOL-BO | NFBO | COWBOYS | CDCD | SeqFlow | |
| albu_sim | |||||||
| amlo_mpo | |||||||
| cele_red | |||||||
| deco_hop | |||||||
| drd2 | |||||||
| fexo_mpo | |||||||
| gsk3b | |||||||
| iso_c7 | |||||||
| iso_c9 | |||||||
| jnk3 | |||||||
| med_1 | |||||||
| med_2 | |||||||
| mest_sim | |||||||
| osim_mpo | |||||||
| peri_mpo | |||||||
| rano_mpo | |||||||
| logp | |||||||
| qed | |||||||
| sa | |||||||
| scaf_hop | |||||||
| sita_mpo | |||||||
| thio_red | |||||||
| trog_red | |||||||
| vals_sma | |||||||
| zale_mpo | |||||||
Table 8: Batch regime, coupled generation. Final best score on all 25 PMO objectives after 500 acquisitions (100 initial points, then 100 epochs of 5), mean ± sample standard deviation over 5 seeds. AFGG generates each batch coupled here: one joint qLogEI tilt per candidate batch, so its members are generated aware of each other. Every cell is judged against the opposing group: an AFGG cell against the five baselines, a baseline cell against the two AFGG columns. Bold: the cell's mean exceeds every mean in the opposing group. Green : that lead is significant, exceeding the cell's own standard deviation; bold without green therefore means ahead but within noise.
| Metric | CDCD | SeqFlow |
|---|---|---|
| Validity ↑ | 1.0000 | 0.9972 |
| Uniqueness ↑ | 0.9932 | 0.9862 |
| Novelty ↑ | 0.9956 | 0.9838 |
| FCD ↓ | 20.99 | 6.02 |
Table 9: Unconditional sample quality. 5000 molecules drawn from each generative model and scored against a 30k-molecule subset of GuacaMol.
this extrapolates past , pushing the implied target outside the convex hull of what was actually sampled and decoded — a region the frozen denoiser never saw in training. On this seven-objective slice the two mechanisms land close together (means 0.474–0.486, all within a row's typical standard deviation), so we are not claiming a large empirical gap here; the convex-hull argument, not this table, is why we default to power tilt at higher temperatures; Table 14 for full results.
| Objective | Guidance on vs off | |
|---|---|---|
| on | off () | |
| osim_mpo | ||
| med_2 | ||
| amlo_mpo | ||
| zale_mpo | ||
| rano_mpo | ||
| peri_mpo | ||
| trog_red | ||
| MEAN | ||
| Wins | ||
Table 10: Guidance on vs. off; off sets , flattening the SNIS weights to uniform so the tilted mean equals the untilted one.
| Objective | Guidance estimator | |
|---|---|---|
| SNIS (closed form) | REINFORCE | |
| osim_mpo | ||
| med_2 | ||
| amlo_mpo | ||
| zale_mpo | ||
| rano_mpo | ||
| peri_mpo | ||
| trog_red | ||
| MEAN | ||
| Wins | ||
Table 11: Guidance estimator: closed-form SNIS vs. REINFORCE (score-function estimator with a leave-one-out baseline) in place of the mean-swap identity.
| Objective | Acquisition function | ||
|---|---|---|---|
| EI | PI | UCB | |
| osim_mpo | |||
| med_2 | |||
| amlo_mpo | |||
| zale_mpo | |||
| rano_mpo | |||
| peri_mpo | |||
| trog_red | |||
| MEAN | |||
| Wins | |||
Table 12: Acquisition function driving both the guidance tilt and candidate selection; UCB uses .
| Objective | Candidate pool size | |||
|---|---|---|---|---|
| 1 | 5 | 10 | 20 | |
| osim_mpo | ||||
| med_2 | ||||
| amlo_mpo | ||||
| zale_mpo | ||||
| rano_mpo | ||||
| peri_mpo | ||||
| trog_red | ||||
| MEAN | ||||
| Wins | ||||
Table 13: Candidate pool size: guided trajectories rolled out per epoch, of which the best by acquisition value is evaluated.
| Objective | Where the temperature acts | |||
|---|---|---|---|---|
| power tilt | scale drift | scale drift | scale drift | |
| osim_mpo | ||||
| med_2 | ||||
| amlo_mpo | ||||
| zale_mpo | ||||
| rano_mpo | ||||
| peri_mpo | ||||
| trog_red | ||||
| MEAN | ||||
| Wins | ||||
Table 14: Different temperature parameters and how they affect the final generation process.