Target-Aware Bandit Allocation for Scalable Surrogate Optimization in Chemical Space
Summary
Introduces BoBa, a bandit-guided surrogate optimization framework that eliminates full-library inference by adaptively allocating computation across partitions of the action space, enabling efficient virtual screening of ultra-large chemical libraries.
View Cached Full Text
Cached at: 06/26/26, 05:21 AM
# Target-Aware Bandit Allocation for Scalable Surrogate Optimization in Chemical Space
Source: [https://arxiv.org/html/2606.26657](https://arxiv.org/html/2606.26657)
Yuvan ChaliAbhilash JayarajConstance KraayJoana ReisFelix Strieth\-KalthoffHaribabu Arthanari
###### Abstract
Identifying high\-utility candidates from massive discrete spaces under expensive evaluations is a recurring challenge across the sciences, with structure\-based drug discovery as a prominent example\. While surrogate\-based optimization can increase sample efficiency by reducing the number of expensive evaluations, modern molecular libraries have reached billions to trillions of compounds, making full\-library surrogate inference itself a major computational bottleneck\. We introduceBoBa, a bandit\-guided surrogate optimization framework that eliminates full\-library inference by adaptively allocating computation across partitions of the action space\. By treating partitions as arms in a multi\-armed bandit,BoBaconcentrates inference and evaluations on empirically promising partitions while maintaining principled exploration\. Experiments on real\-world synthesis\-on\-demand libraries demonstrate that optimism\-under\-uncertainty bandits, combined with meaningful action space partitioning, are essential for effective allocation of inference and evaluations\. Our findings reveal a tunable tradeoff between screening performance and surrogate inference cost, which supports practical optimization over current libraries, and establishes a viable route to ultra\-large library virtual screening\.
Machine Learning, ICML
## 1Introduction
The earliest stages of drug discovery are dominated by a large and resource\-intensive search problem: finding molecules that potently and selectively engage a biological target, and can be advanced into therapeutic leads\. This hit identification stage remains a major bottleneck in the drug discovery pipeline, both in terms of cost and time\. Computational approaches offer a fast and inexpensive route to exploring diverse sets of candidates, and recent advances in algorithms, computing, and ultra\-large compound libraries have renewed optimism about their impact\(Lyuet al\.,[2019](https://arxiv.org/html/2606.26657#bib.bib1); Gorgullaet al\.,[2020](https://arxiv.org/html/2606.26657#bib.bib32); Grygorenkoet al\.,[2020](https://arxiv.org/html/2606.26657#bib.bib45); Sadybekovet al\.,[2021](https://arxiv.org/html/2606.26657#bib.bib44); Eisenhuthet al\.,[2025](https://arxiv.org/html/2606.26657#bib.bib43)\)\. Importantly, costs increase sharply at each downstream stage of the drug discovery pipeline\(Morganet al\.,[2011](https://arxiv.org/html/2606.26657#bib.bib21)\), which makes the quality of early computational decisions disproportionately critical\.
Computational candidate selection in drug discovery is fundamentally a discrete, sequential decision\-making problem\. Although the space of possible molecules is astronomically large, with estimates ranging from106010^\{60\}–1020010^\{200\}\(Restrepo,[2022](https://arxiv.org/html/2606.26657#bib.bib18)\), only a small fraction can be practically synthesized from commercially available building blocks at reasonable cost\(Papidochaet al\.,[2026](https://arxiv.org/html/2606.26657#bib.bib19)\)\. In silico drug discovery therefore operates over large but finite libraries of synthetically accessible compounds\(Shoichet,[2004](https://arxiv.org/html/2606.26657#bib.bib20)\), framing hit identification as a search over a large but discrete action space under budget constraints\.
Active Learning\(Settles,[2012](https://arxiv.org/html/2606.26657#bib.bib38)\)and Bayesian Optimization\(Garnettet al\.,[2012](https://arxiv.org/html/2606.26657#bib.bib39),[2015](https://arxiv.org/html/2606.26657#bib.bib40); Jianget al\.,[2018](https://arxiv.org/html/2606.26657#bib.bib41); Garnett,[2023](https://arxiv.org/html/2606.26657#bib.bib35)\)have become central tools for navigating these settings\. While libraries have historically been evaluated exhaustively using molecular docking, a physics\-informed simulation that estimates binding affinity between a molecule and a biological target, this strategy became prohibitively expensive as library sizes grew to billions of molecules\. At the same time, recent studies have underscored the importance of screening larger and more structurally diverse libraries to increase true\-hit rates and potency\(Liuet al\.,[2025](https://arxiv.org/html/2606.26657#bib.bib48); Lyuet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib36); Gloriam,[2019](https://arxiv.org/html/2606.26657#bib.bib37)\)\. This need motivated surrogate\-based optimization techniques that evaluate only a small subset of candidates and use learned models to guide subsequent selection\(Reker and Schneider,[2015](https://arxiv.org/html/2606.26657#bib.bib22); Pyzer\-Knapp,[2018](https://arxiv.org/html/2606.26657#bib.bib33); Reker,[2019](https://arxiv.org/html/2606.26657#bib.bib23); Graffet al\.,[2021](https://arxiv.org/html/2606.26657#bib.bib2)\)\.
Recent years have witnessed yet another regime shift\. Advances in make\-on\-demand chemistry have expanded accessible libraries from billions to trillions of molecules\([Enamine Ltd\.,](https://arxiv.org/html/2606.26657#bib.bib24); Hoffmann and Gastreich,[2019](https://arxiv.org/html/2606.26657#bib.bib25); Warret al\.,[2022](https://arxiv.org/html/2606.26657#bib.bib26); Gorgullaet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib4)\), altering the computational cost structure\. At these scales, cost is no longer dominated solely by expensive physics\-informed evaluations\. Instead, inference over the candidate set itself becomes a bottleneck: even a single forward pass of a surrogate model over the full library can be prohibitively expensive\. This bottleneck violates a core assumption of standard active learning pipelines that surrogate inference is negligible relative to evaluation cost\(Frazier,[2018](https://arxiv.org/html/2606.26657#bib.bib34); Garnett,[2023](https://arxiv.org/html/2606.26657#bib.bib35)\)\.
This shift in the cost hierarchy reframes molecular discovery as a large\-scale discrete decision\-making problem under dual constraints on evaluation and inference\. To address this challenge, we introduceBoBa\(Bayesian Optimization with BAndits\), which explicitly accounts for inference cost by combining structure\-aware partitioning of the action space, bandit\-based allocation across partitions, and surrogate\-guided optimization within partitions\. By decoupling global and local search,BoBaenables efficient candidate selection without exhaustive inference over the action space\. Systematic benchmarks on real\-world drug discovery data demonstrate the critical importance of a\) bandit strategies which explicitly account for uncertainty, rather than relying randomized exploration, and b\) a chemically sensible partitioning of action space\. Our empirical results demonstrate a tunable tradeoff between optimization performance and inference cost, which allows the optimization efficiency of complete\-inference BO to be largely retained, at substantially reduced inference cost\. Scaling experiments up to approximately10810^\{8\}molecules show that this tradeoff becomes increasingly favorable as library size grows, and a simple theoretical analysis identifies the number of partitions as the key control parameter governing the balance between inference savings and bandit regret\. These results lay the foundation for scaling to virtual libraries that contain billions to trillions of candidates\.
## 2Preliminaries
This section introduces the optimization setting considered in this work and reviews relevant concepts from Bayesian optimization and multi\-armed bandits \(MAB\)\.
### 2\.1Virtual Screening as Large\-Scale Discrete Optimization
We consider the problem of computational candidate selection in virtual screening\. Let𝒳=\{x1,…,xN\}\\mathcal\{X\}=\\\{x\_\{1\},\\dots,x\_\{N\}\\\}denote a finite library of candidate molecules, whereNNmay range from millions to trillions\. Each moleculex∈𝒳x\\in\\mathcal\{X\}is associated with an unknown property of interestf\(x\)∈ℝf\(x\)\\in\\mathbb\{R\}, such as docking score, binding affinity, or experimental activity, which can only be accessed through an expensive evaluation \(e\.g\., docking or wet\-lab assay\)\.
The goal of virtual screening is to efficiently identify molecules with high values off\(x\)f\(x\)using as few evaluations as possible, framing virtual screening as a discrete optimization problem,
x∗=argmaxx∈𝒳f\(x\),x^\{\\ast\}=\\operatorname\*\{arg\\,max\}\_\{x\\in\\mathcal\{X\}\}f\(x\),under a limited evaluation budgetT≪\|𝒳\|T\\ll\|\\mathcal\{X\}\|\.
In addition to evaluation cost, we explicitly consider the computational cost of surrogate inference over𝒳\\mathcal\{X\}\. In modern make\-on\-demand settings,\|𝒳\|\|\\mathcal\{X\}\|is sufficiently large that exhaustive scoring of all candidates using a learned model is itself infeasible\. We therefore distinguish between: \(i\)*evaluation cost*, incurred when queryingf\(x\)f\(x\), and \(ii\)*inference cost*, incurred when computing surrogate predictions over subsets of𝒳\\mathcal\{X\}\. This distinction is central to the problem setting addressed in this work\.
### 2\.2Surrogate Modeling and Bayesian Optimization
Bayesian optimization \(BO\) addresses black\-box optimization by maintaining a probabilistic surrogate model overff\(Garnett,[2023](https://arxiv.org/html/2606.26657#bib.bib35)\)\. Given a dataset𝒟t=\{\(xi,yi\)\}i=1t\\mathcal\{D\}\_\{t\}=\\\{\(x\_\{i\},y\_\{i\}\)\\\}\_\{i=1\}^\{t\}withyi=f\(xi\)\+ϵiy\_\{i\}=f\(x\_\{i\}\)\+\\epsilon\_\{i\}, the surrogate defines a posterior predictive distribution
p\(f\(x\)∣𝒟t\),p\(f\(x\)\\mid\\mathcal\{D\}\_\{t\}\),which is used to construct an acquisition functionat\(x\)a\_\{t\}\(x\)that balances exploration and exploitation\.
In discrete settings, BO typically proceeds by selecting
xt\+1=argmaxx∈𝒳at\(x\)\.x\_\{t\+1\}=\\arg\\max\_\{x\\in\\mathcal\{X\}\}a\_\{t\}\(x\)\.Unless\|𝒳\|\|\\mathcal\{X\}\|is large, this step is commonly approximated by exhaustively evaluatingat\(x\)a\_\{t\}\(x\)over𝒳\\mathcal\{X\}\. However, this assumption becomes invalid for ultra\-large libraries, where surrogate inference over𝒳\\mathcal\{X\}constitutes a computational bottleneck\. This computational barrier motivates algorithmic strategies that avoid full\-library surrogate evaluations while retaining the benefits of Bayesian decision\-making\.
### 2\.3Multi\-Armed Bandits
Multi\-armed bandits \(MAB\)\(Robbins,[1952](https://arxiv.org/html/2606.26657#bib.bib42); Lattimore and Szepesvári,[2020](https://arxiv.org/html/2606.26657#bib.bib11)\)formalize sequential decision\-making under uncertainty when limited resources must be allocated among competing alternatives\. At each roundtt, an agent selects an armk∈\{1,…,K\}k\\in\\\{1,\\dots,K\\\}and observes a stochastic reward drawn from an unknown distribution associated with that arm\. Bandit algorithms adaptively trade off exploration and exploitation to identify high\-reward arms or to maximize cumulative reward\.
In this work, each arm corresponds to a subspace of chemical space, and the observed reward summarizes the utility of recent evaluations from that region\. For the following discussion of Bandit policies, letμ^k\\hat\{\\mu\}\_\{k\}be the empirical mean reward of armkk, andnkn\_\{k\}the number of times armkkhas been selected\.
##### ϵ\\epsilon\-Greedy
selects the empirically best arm with probability1−ϵ1\-\\epsilon, and explores by selecting an arm uniformly at random with probabilityϵ\\epsilon\. Although simple and computationally inexpensive,ϵ\\epsilon\-greedy does not explicitly account for uncertainty, which can lead to inefficient allocation when the number of arms is large\.
##### Softmax Sampling
selects arms stochastically in proportion to their empirical mean rewards,
P\(kt=k\)∝exp\(τμ^k,t−1\),P\(k\_\{t\}=k\)\\propto\\exp\(\\tau\\hat\{\\mu\}\_\{k,\\penalty 10000\\ t\-1\}\),whereτ\>0\\tau\>0is an inverse\-temperature parameter controlling how strongly the distribution concentrates on high\-reward arms\. Softmax provides a smooth tradeoff between exploration and exploitation, interpolating between uniform sampling and greedy selection\.
##### Upper Confidence Bound \(UCB1\)
selects arms optimistically based on both empirical performance and uncertainty\(Aueret al\.,[2002](https://arxiv.org/html/2606.26657#bib.bib10)\)\. At roundtt, UCB1 chooses the arm maximizing
μ^k,t−1\+c2logtnk,t−1,\\hat\{\\mu\}\_\{k,\\penalty 10000\\ t\-1\}\+c\\sqrt\{\\frac\{2\\log t\}\{n\_\{k,\\penalty 10000\\ t\-1\}\}\},wherec\>0c\>0controls the exploration–exploitation tradeoff\.
Formal definitions and implementation details are provided in Appendix[A\.3](https://arxiv.org/html/2606.26657#A1.SS3)\.
### 2\.4Partitioning Methods for Chemical Space
Let𝒳=\{x1,…,xN\}\\mathcal\{X\}=\\\{x\_\{1\},\\dots,x\_\{N\}\\\}denote a virtual library of moleculesxix\_\{i\}\. When partitioning such virtual libraries, we consider dividing𝒳\\mathcal\{X\}intoKKdisjoint subsets\{𝒳1,…,𝒳K\}\\\{\\mathcal\{X\}\_\{1\},\\dots,\\mathcal\{X\}\_\{K\}\\\}\. Typically, such partitioning is performed in a molecular feature space induced by a representationϕ\(x\)∈ℝd\\phi\(x\)\\in\\mathbb\{R\}^\{d\}, which can be either learned or engineered\.
#### 2\.4\.1Molecular Features
##### Topological features
encode molecular structure as graph\-derived patterns capturing atom connectivity and substructures \(e\.g\. paths, cycles, and local neighborhoods\)\. They often provide sparse, discrete representations \(?fingerprints?\) optimized for similarity search\.
##### Physicochemical descriptors
are engineered low\-dimensional features that summarize global molecular properties derived from the graph structure \(e\.g\. molecular weight, hydrogen bond donor count, polarity, or solubility\)\. They offer interpretable, physically meaningful signals, but may miss fine\-grained structural detail\. The full list of descriptors used in this work is provided in Appendix[B](https://arxiv.org/html/2606.26657#A2)\.
##### Foundation model embeddings
are dense, learned representations produced by deep neural networks pretrained on large molecular corpora using self\-supervised objectives\. Pre\-trained networks can include graph neural networks and language models operating on SMILES, a string\-based encoding of the molecular graph structure\. In this work, we focus on embeddings from the T5Chem model\(Christofidelliset al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib8)\), a chemistry\-specific variant of the T5 architecture\(Raffelet al\.,[2020](https://arxiv.org/html/2606.26657#bib.bib9)\)pretrained on large corpora of molecular structures and textual descriptions\. Prior work has shown that these embeddings capture rich chemical diversity and improve performance in molecular property prediction and active learning compared to traditional fingerprints\(Kristiadiet al\.,[2024](https://arxiv.org/html/2606.26657#bib.bib3)\)\.
#### 2\.4\.2Partitioning Techniques
##### Feature\-based stratification
deterministically partitions molecules using fixed intervals along a small number of hand\-crafted features, yielding axis\-aligned regions in feature space\. This approach has previously been used to partition ultra\-large chemical libraries into chemically coherent regions for virtual screening\(Gorgullaet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib4)\)\.
##### kk\-Means Clustering
groups data by assigning points to the nearest ofkklearned centroids in feature space, optimized by minimizing within\-cluster variance\.
∑k=1K∑x∈𝒳k‖ϕ\(x\)−μk‖22,\\sum\_\{k=1\}^\{K\}\\sum\_\{x\\in\\mathcal\{X\}\_\{k\}\}\\\|\\phi\(x\)\-\\mu\_\{k\}\\\|\_\{2\}^\{2\},
As a baseline, we construct unstructured subspaces by randomly permuting𝒳\\mathcal\{X\}and dividing it intoKKequally sized bins\. This randomization removes all chemical structure while preserving cluster sizes, isolating the effect of meaningful space decomposition\.
## 3Method
Building on the preliminaries, we formalize the problem of surrogate\-based discovery from ultra\-large molecular libraries, and introduce the algorithmic framework ofBoBa\. We also summarize related works relevant to the method proposed herein\.
### 3\.1Problem Setting
Given a large discrete library𝒳\\mathcal\{X\}, an unknown black\-box functionff\(e\.g\. a docking score\), and and a budgetTTon the number of function evaluations, we seek an algorithm that sequentially selects candidates𝒞=\{x1,…,xT\}⊂𝒳\\mathcal\{C\}=\\\{x\_\{1\},\\dots,x\_\{T\}\\\}\\subset\\mathcal\{X\}under these constraints\. At each time pointtt, we assume access to a molecular representationϕ\(x\)∈ℝd\\phi\(x\)\\in\\mathbb\{R\}^\{d\}, and a parametric or nonparametric surrogate model trained on all previous observations𝒟t=\{\(xi,f\(xi\)\)\}i=1t\\mathcal\{D\}\_\{t\}=\\\{\(x\_\{i\},f\(x\_\{i\}\)\)\\\}\_\{i=1\}^\{t\}\. Let𝒯m⊂𝒳\\mathcal\{T\}\_\{m\}\\subset\\mathcal\{X\}denote the set of elements corresponding to the largest values offf\.
In this scenario, a design strategy should select candidates such that
- a\)the number of top\-mmelements recovered \(i\.e\.,\|𝒞∩𝒯m\|\|\\penalty 10000\\ \\mathcal\{C\}\\cap\\mathcal\{T\}\_\{m\}\\penalty 10000\\ \|\) is maximized\.
- b\)the number of surrogate inferences is minimized\.
### 3\.2Formulation ofBoBa
BoBaintegrates surrogate\-based optimization with structured allocation of inference and evaluation budgets\. The fundamental concept entails decomposing𝒳\\mathcal\{X\}intoKKsubsets\{𝒳1,…,𝒳K\}\\\{\\mathcal\{X\}\_\{1\},\\dots,\\mathcal\{X\}\_\{K\}\\\}, each of which serves as an arm in a multi\-armed bandit problem\.
At each iteration, a bandit algorithm selects a subset𝒳k\\mathcal\{X\}\_\{k\}based on past observations\. Pulling armkktriggers a localized optimization procedure within𝒳k\\mathcal\{X\}\_\{k\}: surrogate inference is performed only on this subset, an acquisition function is evaluated locally, and a small batch ofBBcandidates is selected for expensive evaluation\. The newly observed data are then added to𝒟t\\mathcal\{D\}\_\{t\}, and the surrogate is updated\. Ultimately, the observed reward becomes an aggregate metric of the utility of recent evaluations from that subspace \(e\.g\., average docking score\) and is used to guide future allocation \(see Algorithm[1](https://arxiv.org/html/2606.26657#alg1)\)\.
Algorithm 1BoBa: Bayesian Optimization with Bandits over Clustered Subspaces0:Library
𝒳\\mathcal\{X\}; expensive oracle
f\(⋅\)f\(\\cdot\); featurizer
ϕ\(⋅\)\\phi\(\\cdot\); number of subspaces
KK; bandit algorithm
ℬ\\mathcal\{B\}; surrogate model class
ℳ\\mathcal\{M\}; acquisition function
a\(⋅\)a\(\\cdot\); rounds
TT; batch size
BB
1:Cluster
𝒳\\mathcal\{X\}into
KKdisjoint subspaces
\{𝒳1,…,𝒳K\}\\\{\\mathcal\{X\}\_\{1\},\\dots,\\mathcal\{X\}\_\{K\}\\\}using features
ϕ\(x\)\\phi\(x\)
2:Initialize dataset
𝒟0←∅\\mathcal\{D\}\_\{0\}\\leftarrow\\emptyset\(or a small seed set\)
3:Initialize bandit state for arms
k∈\{1,…,K\}k\\in\\\{1,\\dots,K\\\}in
ℬ\\mathcal\{B\}
4:for
t=1,…,Tt=1,\\dots,Tdo
5:Select an arm \(subspace\)
kt←ℬ\(history\)k\_\{t\}\\leftarrow\\mathcal\{B\}\(\\text\{history\}\)
6:Fit/update aglobalsurrogate
Mt∈ℳM\_\{t\}\\in\\mathcal\{M\}on
𝒟t−1\\mathcal\{D\}\_\{t\-1\}
7:Localized inference:compute acquisition scores
\{at\(x\)\}x∈𝒳kt\\\{a\_\{t\}\(x\)\\\}\_\{x\\in\\mathcal\{X\}\_\{k\_\{t\}\}\}using
MtM\_\{t\}
8:Select a batch:
𝒬t←Top\-Belements of𝒳ktbyat\(x\)\\mathcal\{Q\}\_\{t\}\\leftarrow\\text\{Top\-\}B\\ \\text\{elements of \}\\mathcal\{X\}\_\{k\_\{t\}\}\\text\{ by \}a\_\{t\}\(x\)
9:Evaluate oracle: obtain
yt\(x\)←f\(x\)y\_\{t\}\(x\)\\leftarrow f\(x\)for all
x∈𝒬tx\\in\\mathcal\{Q\}\_\{t\}
10:Update dataset:
𝒟t←𝒟t−1∪\{\(x,yt\(x\)\):x∈𝒬t\}\\mathcal\{D\}\_\{t\}\\leftarrow\\mathcal\{D\}\_\{t\-1\}\\cup\\\{\(x,y\_\{t\}\(x\)\):x\\in\\mathcal\{Q\}\_\{t\}\\\}
11:Compute arm reward \(batch average\):
rt←1B∑x∈𝒬tyt\(x\)r\_\{t\}\\leftarrow\\frac\{1\}\{B\}\\sum\_\{x\\in\\mathcal\{Q\}\_\{t\}\}y\_\{t\}\(x\)
12:Update bandit state:
ℬ←Update\(ℬ,kt,rt\)\\mathcal\{B\}\\leftarrow\\textsc\{Update\}\(\\mathcal\{B\},k\_\{t\},r\_\{t\}\)
13:endfor
14:Output:
argmax\(x,y\)∈𝒟T\(y\)\\arg\\max\_\{\(x,y\)\\in\\mathcal\{D\}\_\{T\}\}\(y\)
This perspective reframes large\-library screening as a hierarchical decision problem: rather than repeatedly scoring all candidates, the algorithm first decides*where*in chemical space to invest computational resources, and only then performs fine\-grained surrogate\-based selection within the chosen region\. When subspaces differ in their intrinsic concentration of high\-quality molecules, bandit algorithms provide a principled mechanism for identifying and exploiting promising regions while continuing to explore uncertain ones\. This formulation is central toBoBa, enabling adaptive, data\-driven control over inference and evaluation budgets without requiring exhaustive scans of the action space\.
Within this work we perform extensive experimental benchmarks ofBoBa: First, we evaluate different bandit algorithms and analyze their impact on optimization performance and sample efficiency\. Second, we systematically study the tradeoff between optimization performance and computational cost by varying the number and size of partitions, highlighting how granularity affects inference cost\. Third, we examine how different choices of featurization and partitioning strategy influence optimization performance, comparing structured clustering approaches to random partitions\.


Figure 1:Evaluation of Bandit algorithms, and observed tradeoff between performance and inference cost\. \(Left\) Optimization trajectories ofBoBawith different Bandit algorithms as a function of the number of costly black\-box evaluations\. BO with full\-library inference \(maroon\) is included as an upper boundary\. Performance is quantified by the number of retrieved molecules from the top\-100 candidates from the full library\. \(Right\) Computational cost of the respective optimization runs, measured by the number of surrogate model inferences\. All experiments are reported on the Enamine\-5M library docked against CKB\. Trajectories are shown as the mean over 5 independent runs from different seed populations\. The shaded area indicates the standard error of the mean\.
### 3\.3Related Work
Active learning strategies are widely used in large\-library virtual screening and have been reviewed extensively elsewhere\.\(Reker and Schneider,[2015](https://arxiv.org/html/2606.26657#bib.bib22)\)Here, we focus on prior work that combines active learning with explicit segmentation of large molecular libraries\. In general, virtual libraries are constructed by combinatorial enumeration from sets of synthetic precursors \(synthons\), and several approaches exploit this structure to improve search efficiency\. A common strategy is to perform search within this low\-dimensional discrete synthon space, which avoids explicit enumeration of the full library\. This setting has been addressed using active learning approaches\(Grigget al\.,[2025](https://arxiv.org/html/2606.26657#bib.bib27); Kozyrevet al\.,[2025](https://arxiv.org/html/2606.26657#bib.bib28)\), as well as multi\-armed bandit formulations\(Klarichet al\.,[2024](https://arxiv.org/html/2606.26657#bib.bib29); Zhaoet al\.,[2025](https://arxiv.org/html/2606.26657#bib.bib30)\)\. Relatedly, the synthon\-based structure of virtual libraries has also been exploited for hierarchical coarse\-to\-fine retrieval of candidate molecules\(Nazarovaet al\.,[2025](https://arxiv.org/html/2606.26657#bib.bib31)\)\.
Our work differs both in how structure is imposed on the search space and how this structure is exploited algorithmically\. Existing approaches typically operate over a fixed synthon\-defined hierarchical organization of the library\. In contrast,BoBauses explicit molecular\-structure\-aware partitioning, and combines it with bandit\-based methods for dynamic allocation of sampling effort across partitions, and surrogate\-based optimization for efficient candidate selection within each partition\. This combination allows the algorithm to adaptively balance exploration and exploitation across heterogeneous regions of the library, rather than committing to a predefined partitioning or a single level of resolution\. The resulting search strategy uses target feedback to allocate effort across learned molecular partitions, without requiring the fixed synthon\-level hierarchy assumed by fragment\-based search methods\.
## 4Benchmarking Experiments
We benchmarkBoBaon virtual libraries derived from ultra\-large chemical spaces, as complete ground\-truth docking scores are available for these libraries\. Specifically, we randomly selected 5 million compounds from an enumerated library of approximately 69 billion molecules fromEnamine REAL\([Enamine Ltd\.,](https://arxiv.org/html/2606.26657#bib.bib24); Gorgullaet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib4)\), which we refer to asEnamine\-5M\. In addition, we sampled an independent set of 3\.9 million compounds fromEnamine’s S\-class small\-molecule database\([Enamine Ltd\.,](https://arxiv.org/html/2606.26657#bib.bib24)\), which we refer to asEnamine\-S\-3\.9M\. Both libraries were exhaustively docked against the protein targets NEDD4\(PDB: 9HT9; Masperoet al\.,[2025](https://arxiv.org/html/2606.26657#bib.bib47)\), and CKB\(PDB: 3B6R; Bonget al\.,[2008](https://arxiv.org/html/2606.26657#bib.bib46)\)\. In addition, we use a virtual library of 2M molecules fromEnamine’s HTS database \(Enamine\-HTS\), which was docked against a Thymidylate Kinase \(TMK\) by\(Graffet al\.,[2021](https://arxiv.org/html/2606.26657#bib.bib2)\)\.
BoBauses a feedforward neural network surrogate operating on fixed molecular features, with uncertainties approximatedviaa Linearized Laplace approximation\(Daxbergeret al\.,[2021](https://arxiv.org/html/2606.26657#bib.bib12)\)\(see Appendix[A\.4](https://arxiv.org/html/2606.26657#A1.SS4)for more details\)\. We additionally evaluate alternative uncertainty estimators, including MC dropout\(Gal and Ghahramani,[2016](https://arxiv.org/html/2606.26657#bib.bib13)\)and SWAG\(Maddoxet al\.,[2019](https://arxiv.org/html/2606.26657#bib.bib14)\)\(see Appendix[A\.5](https://arxiv.org/html/2606.26657#A1.SS5)and Figure[7](https://arxiv.org/html/2606.26657#A1.F7)\); these experiments support the use of the Laplace approximation in all further experiments\.
After a single\-round initialization with randomly drawn samples from all partitions,BoBafollows the algorithm outlined in Algorithm[1](https://arxiv.org/html/2606.26657#alg1)\. From a bandit\-selected partition, all molecules are scored by the neural network surrogate, and a batch ofBBcandidates are selected using the Upper Confidence Bound as the acquisition function\. Across all methods, we runT=20T=20rounds of selection, with a batch size ofB=5,000B=5\{,\}000for a total ofTB=100,000TB=100\{,\}000oracle evaluations\. In the main text, we report optimization trajectories for the number of top\-100 molecules from the full library that were found by the algorithm, which is motivated by budget constraints on downstream experimental validation\. Trajectories for the top\-1000 and top\-10000 molecules are provided in the Appendix[C](https://arxiv.org/html/2606.26657#A3), specifically Figures[8](https://arxiv.org/html/2606.26657#A3.F8),[9](https://arxiv.org/html/2606.26657#A3.F9), and[10](https://arxiv.org/html/2606.26657#A3.F10)\.
### 4\.1Bandit Exploration Strongly Impacts Screening Performance
We first examine how the choice of bandit algorithm affects optimization performance\. Specifically, we evaluateϵ\\epsilon\-greedy, softmax sampling, and UCB1 bandits across different levels of exploration, and under variation of the granularity of library partitions\. The resulting optimization trajectories and inference cost estimates on the Enamine\-5M library, docked against CKB, are shown in Figure[1](https://arxiv.org/html/2606.26657#S3.F1)\. As an upper\-bound estimate of optimization performance, we compare against standard BO with full\-library inference\.
Empirically, we find thatϵ\\epsilon\-greedy and softmax exhibit substantial degradation of optimization performance as the number of library partitions increases\. We attribute this behavior to the lack of principled uncertainty\-guided exploration in these methods, which can lead to premature over\-exploitation of suboptimal partitions, or insufficient exploitation of optimal ones\. UCB1 instead assigns an optimism bonus to under\-sampled arms, so uncertain partitions remain eligible for selection even when their empirical rewards are initially modest\. Consistent with this mechanism, the per\-arm selection frequencies in Appendix[D](https://arxiv.org/html/2606.26657#A4), specifically Figure[11](https://arxiv.org/html/2606.26657#A4.F11), show that UCB1 continues to allocate evaluations across multiple partitions throughout optimization, without collapsing onto a single early winner\. Thus, UCB1 remains largely competitive with full\-inference BO even at large numbers of partitions, recovering nearly the same number of top\-100 ranked molecules at a substantially reduced inference cost\. Notably, the trends remain unchanged when considering the top\-1000 and top\-10000 candidate molecules from the full library \(see Appendix[C](https://arxiv.org/html/2606.26657#A3), specifically Figures[8](https://arxiv.org/html/2606.26657#A3.F8),[9](https://arxiv.org/html/2606.26657#A3.F9), and[10](https://arxiv.org/html/2606.26657#A3.F10)\)\.
These results indicate that, particularly in regimes with many arms, optimism\-based allocation is critical, which motivates the use of UCB1 in all subsequent experimental studies\. Remarkably, even this relatively simple algorithm achieves strong performance, suggesting that more advanced uncertainty\-aware bandit methods may offer additional benefits\. However, their analysis is beyond the scope of this study\.
Finally, even for the UCB1 algorithm, we observe a tradeoff between optimization performance and inference cost\. This trade\-off can be tuned by the user through the choice of partition granularity \(that is, the number of clusters\), depending on the requirements of a specific use case\. The role ofKKcan be understood through a simple cost–regret decomposition\. Partitioning reduces the cumulative surrogate inference cost from orderNTNTto approximatelyNT/KNT/K, but increasingKKalso makes the bandit allocation problem harder because the algorithm must identify promising regions among more arms\. Under a gap\-free UCB\-style regret term of order𝒪~\(KT\)\\tilde\{\\mathcal\{O\}\}\(\\sqrt\{KT\}\), minimizing a weighted objective of inference cost and allocation regret yields the heuristic scaling for choosingKKasK∗≍N2/3T1/3K^\{\\ast\}\\asymp N^\{2/3\}T^\{1/3\}\. This analysis, detailed in Appendix[E](https://arxiv.org/html/2606.26657#A5), formalizes why larger libraries can support finer partitions while still requiring a sublinear choice ofKK\.
### 4\.2Structured Subspaces are Critical
We next perform a systematic ablation to understand whether the gains ofBoBaarise merely from partitioning the library, a persistent partitioning scheme, or from the inherent library structure captured by clustering\.
#### 4\.2\.1StaticBoBavs\. Dynamic Partitioning
First, we compareBoBato an unstructured baseline in which, at each iteration, standard BO is applied to a uniformly random subset of the library whose size matches the average cluster size inBoBa\. Related subsampling strategies have been used in prior works to mitigate the cost of exhaustive surrogate inference\(Wang\-Hendersonet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib17)\)\.
Figure[2](https://arxiv.org/html/2606.26657#S4.F2)shows thatBoBasubstantially outperforms random subsampling across all settings\. While both methods reduce inference cost to the same degree, subsampling repeatedly reallocates computation to arbitrary regions of chemical space\. In contrast,BoBadefines persistent partitions and uses bandit feedback to adaptively concentrate evaluations in empirically promising regions\. These findings indicate thatBoBaachieves significant optimization performance gains by identifying persistent partitions of the action space, and adaptively allocating resources to these partitions\.
Figure 2:Influence of static vs\. dynamic partitioning\.Optimization trajectories ofBoBawith UCB1 usingKK\-Means\-based partitions, compared to setting in which a partition for inference is randomly selected at each iteration\. All experiments are reported on the Enamine\-5M library docked against CKB\. Trajectories are shown as the mean over 5 independent runs from different seed populations\. The shaded area indicates the standard error of the mean\.
#### 4\.2\.2Structured vs\. Randomly Assigned Partitions
Second, we investigate whether a static library partitioning alone is sufficient to maintain competitive optimization performance at reduced inference budget\. Therefore, we compareBoBausingKK\-means\-based molecular clusters to a variant in which molecules are randomly assigned once toKKequally sized, static subsets, which are then treated as arms by the same UCB1 algorithm\. Both approaches use identical surrogates, acquisition functions, batch sizes, and bandit rules; they differ only in how the partitions are initially defined\.
As shown in Figure[3](https://arxiv.org/html/2606.26657#S4.F3), replacing the structured partitions obtainedviaKK\-means clustering with random partitions leads to a substantial degradation in optimization performance\. Although both methods maintain persistent partitions and operate under identical inference budgets, only structured clustering yields arms that are systematically enriched for high\-quality candidates\. Analysis of the distribution of targets across partitions \(see Appendix[F](https://arxiv.org/html/2606.26657#A6), specifically Figures[12](https://arxiv.org/html/2606.26657#A6.F12),[13](https://arxiv.org/html/2606.26657#A6.F13), and[14](https://arxiv.org/html/2606.26657#A6.F14), for further details\) confirms the presence of significant inter\-partition variance in the case of clustering, which is a prerequisite for effective exploration–exploitation across arms\. These findings confirm that the effectiveness ofBoBadepends critically on the chemical coherence of the partitions, rather than on a static partition of the library alone\.
Figure 3:Influence of the partitioning scheme\.Optimization trajectories ofBoBawith UCB1 using eitherKK\-Means\-based partitions, or randomly assigned partitions\. All experiments are reported on the Enamine\-5M library docked against CKB\. Trajectories are shown as the mean over 5 independent runs from different seed populations\. The shaded area indicates the standard error of the mean\.
### 4\.3Effect of Feature Space
Having established the necessity of structured partitioning for achieving competitive optimization performance at reduced inference budget, we next evaluate how the molecular representation used to construct partitions impacts end\-to\-endBoBaperformance\. Therefore, we compare a feature space spanned by established physicochemical descriptors for drug discovery\(Gorgullaet al\.,[2020](https://arxiv.org/html/2606.26657#bib.bib32)\)without further refinement, with the embedding space of a domain\-specific language model \(T5Chem\)\.
Figure[4](https://arxiv.org/html/2606.26657#S4.F4)demonstrates that, across all values ofKK,BoBaconstructed in T5Chem embedding space consistently outperformsBoBaconstructed in unrefined physicochemical descriptor space, recovering substantially more top\-ranked molecules under identical budgets\. These findings suggest that clustering in T5Chem embedding space produces partitions that are more closely aligned with the optimization objective, allowing the bandit to allocate more effectively across regions, while improving local surrogate generalization\. In all experiments, the same molecular representation is used for both clustering and surrogate modeling\. This design choice ensures that the geometry used to define bandit arms is consistent with the geometry used for local acquisition, avoiding discrepancies between global partitioning and local optimization\. We therefore consider this the preferred default when the representation is sufficiently informative for the target task\. At the same time, this design also implies that biases from a poorly aligned representation are propagated into both stages, motivating the partion\-quality ablations discussed above\. These conclusions align well with the findings by\(Kristiadiet al\.,[2024](https://arxiv.org/html/2606.26657#bib.bib3)\), who reported that, even without task\-specific fine\-tuning, such embeddings provide an effective molecular representation across different tasks\.
Overall, these results indicate that the effectiveness ofBoBais tightly coupled to the representational geometry of chemical space\. While pre\-trained molecular foundation models provide a robust starting point, we anticipate that integrating domain expertise into task\-specific feature spaces can further improve or accelerate optimization withBoBa\.
Figure 4:Effect of feature space on end\-to\-endBoBaperformance\.Optimization trajectories ofBoBa, with partitions constructed using T5Chem language model embeddings, or using unrefined physicochemical descriptors\. All experiments are reported on the Enamine\-5M library docked against CKB\. Trajectories are shown as the mean over 5 independent runs from different seed populations\. The shaded area indicates the standard error of the mean\.
### 4\.4Robustness Across Targets and Difficulty Regimes
Finally, we study the optimization behavior ofBoBawith UCB1 on three additional tasks: theEnamine\-HTSlibrary docked against TMK\(Graffet al\.,[2021](https://arxiv.org/html/2606.26657#bib.bib2)\), and theEnamine\-S\-3\.9Mlibrary docked against CKB and NEDD4\. The corresponding optimization trajectories, compared to BO with full\-library inference as an upper\-bound estimate, are shown in Figure[5](https://arxiv.org/html/2606.26657#S4.F5)\.
Qualitatively, we find that the trends discussed in the previous sections are reproduced across tasks\. AsKKincreases, we observe a similar sublinear decay of optimization performance, indicating a feasible tradeoff between optimization performance and inference cost\. Notably, the absolute optimization scores on theEnamine\-S\-3\.9Mlibrary are substantially lower than those on theEnamine\-5M\(CKB\) benchmark, both for the upper\-bound estimate and, by extension, forBoBa\. This performance gap suggests that these tasks pose more challenging optimization problems\. Indeed, analysis of the underlying library revealed a larger chemical diversity in theEnamine\-S\-3\.9Mlibrary compared to theEnamine\-5Mlibrary, which provides a possible explanation for the observed differences in absolute performance\.
These results demonstrate thatBoBa’s performance–inference tradeoff and dependence on cluster granularity persist across targets and difficulty regimes, indicating that the framework generalizes beyond a single dataset or optimization landscape\.
Enamine\-S\-3\.9M\(CKB\)
Enamine\-S\-3\.9M\(NEDD4\)
Enamine\-HTS\(TMK\)
Figure 5:BoBaacross targets and difficulty regimes\.Optimization trajectories ofBoBaon different optimization problems\. Trajectories are shown as the mean over 5 independent runs from different seed populations\. The shaded area indicates the standard error of the mean\.
### 4\.5Scaling to Larger Libraries
The preceding experiments evaluateBoBain settings where exhaustive surrogate inference is still possible, which enables direct comparison against full\-library BO\. To test whether the observed tradeoff remains relevant at larger scale, we further evaluateBoBaon the ZINC library docked against AmpC\(Lyuet al\.,[2019](https://arxiv.org/html/2606.26657#bib.bib1)\)using nested libraries of approximately10510^\{5\},10610^\{6\},10710^\{7\}, and10810^\{8\}molecules\. For each library size, we compare the area under the top\-1000 retrieval curve forBoBaagainst the corresponding full\-library BO run, normalizing the BO performance to one\.
As shown in Figure[6](https://arxiv.org/html/2606.26657#S4.F6),BoBa’s relative performance does not deteriorate as the candidate library grows\. Instead, for several partition granularities, the normalized AUC approaches full\-library BO at the largest tested scale\. This trend is consistent with the core motivation ofBoBa: asNNincreases, full\-library inference becomes increasingly costly, while localized inference over a selected partition remains controlled by the cluster granularity\. The value ofKKtherefore acts as a user\-facing knob that trades inference cost against the statistical difficulty of selecting among more arms\. Appendix[A\.2](https://arxiv.org/html/2606.26657#A1.SS2)reports the corresponding wall\-clock breakdown\.
Figure 6:Scalability ofBoBawith library size\.Optimization performance ofBoBarelative to full\-library BO as the library size increases from approximately10510^\{5\}to10810^\{8\}molecules\. Performance is measured as the area under the top\-1000 retrieval curve and normalized by the AUC of the corresponding full\-library BO run\. All experiments use the ZINC library docked against AmpC, or subsets thereof\.
## 5Conclusion and Outlook
Ultra\-large make\-on\-demand libraries push surrogate\-based optimization into a regime where surrogate inference and acquisition over the full candidate set can become as limiting as the expensive oracle itself\. In this work, we introduceBoBa, a target\-aware framework that avoids full\-library inference by partitioning chemical space into persistent subspaces, and using a multi\-armed bandit to allocate inference and evaluation to regions that empirically yield high\-utility molecules\.
Benchmark experiments highlight the critical influence of both the bandit exploration strategy and the structure of the partitioning scheme\. Optimism\-under\-uncertainty bandits combined with clustering on foundation model embeddings consistently delivered robust performance across tasks, clearly outperforming clustering on unrefined physicochemical descriptors as well as unstructured baselines on randomized partitions\. Looking forward, we anticipate that advances in bandit algorithms, particularly improved uncertainty quantification and rotting bandits to accommodate non\-stationary partition rewards\(Levineet al\.,[2017](https://arxiv.org/html/2606.26657#bib.bib49)\), will further enhance optimization performance\. Coupling these methods with problem\-specific, expert\-refined molecular representations is a promising direction for further gains\.
Our findings further reveal a clear trade\-off between optimization performance and inference cost\. Empirical results across increasingly large libraries indicate that the decay in optimization performance with increasing numbers of partitions is sublinear, making it feasible for practitioners to select the number of partitions, and therefore the inference cost, according to problem\-specific constraints\. This behavior is supported by a simplified cost\-regret analysis, which identifies the number of clusters as a natural control parameter and predicts an optimal granularity that grows sublinearly with library size\. While partitioning very large libraries introduces additional computational cost, the employed algorithm scales as𝒪\(nkid\)\\mathcal\{O\}\(nkid\), dominated by the library sizenn, and constitutes a one\-time processing expense that can be reused across targets\. Assessing how broadly these results generalize across even larger libraries and more diverse targets remains the focus of ongoing work\. Overall, this study represents a step toward principled decision\-making at billion\- to trillion\-scale, in chemical discovery and other large discrete search problems, where both evaluation and inference are costly\.
## 6Limitations
The current implementation and empirical evaluation ofBoBaare restricted to settings in which the virtual library is explicitly enumerable, and in which featurization and clustering of the full library remain computationally tractable\. Conceptually, however, the proposed framework does not rely on explicit enumeration of candidate molecules\. The combination of library partitioning, bandit\-driven allocation of sampling effort across partitions, and surrogate modeling for candidate selection could instead be applied directly in synthon space\. This extension would avoid the need for full library enumeration and global featurization\. Instead, enumeration, featurization, and inference would be required only for global subsamples or small, tractable partitions\. We leave the implementation and systematic benchmarking of this synthon\-level formulation to future work\.
## Acknowledgements
The authors thank Dr\. Michael Emanuel for helpful discussions and Dr\. Christoph Gorgulla for providing the Enamine\-5M library\. Y\.C\. acknowledges support from the BCMP Scholars Summer Undergraduate Research Program at Harvard Medical School\. C\.K\. was supported by a Hertz Foundation Fellowship and previously by NIH/NIGMS Molecular Biophysics Training Grant T32 GM008313\. F\.S\.\-K\. acknowledges funding from the Deutsche Forschungsgemeinschaft \(DFG\) under the Priority Program 2363?Molecular Machine Learning?\(grant no\. 497260357\)\. H\.A\. acknowledges support from Pivotal Life Sciences and NIH grant R35 GM158220 \(NIGMS\)\.
## Impact Statement
This work aims to accelerate the identification of promising candidates from ultra\-large discrete libraries, motivated by applications in early\-stage drug discovery\. By improving the efficiency of computational candidate selection, such methods may reduce the cost and time required to identify therapeutic leads, with potential downstream benefits for global healthcare\. The proposed framework addresses a general class of large\-scale discrete optimization problems, and may therefore be applicable beyond drug discovery, e\. g\. in materials design, catalyst discovery, or related scientific settings\. The societal consequences of such applications depend on the specific use case, but could be relevant to areas like energy storage and conversion, sustainable materials development, or improved resource and materials cycles\.
At the same time, more efficient exploration of chemical space raises potential dual\-use concerns\. While the present approach is limited to computational prioritization and requires substantial expertise and experimental infrastructure to realize practical impact, responsible development and deployment are important considerations\.
## References
- P\. Auer, N\. Cesa\-Bianchi, and P\. Fischer \(2002\)Finite\-time analysis of the multiarmed bandit problem\.Machine Learning47\(2–3\),pp\. 235–256\.External Links:[Link](http://dx.doi.org/10.1023/A:1013689704352),[Document](https://dx.doi.org/10.1023/a%3A1013689704352)Cited by:[§A\.3\.1](https://arxiv.org/html/2606.26657#A1.SS3.SSS1.p1.3),[§2\.3](https://arxiv.org/html/2606.26657#S2.SS3.SSS0.Px3.p1.1)\.
- S\. M\. Bong, J\. H\. Moon, K\. H\. Nam, K\. S\. Lee, Y\. M\. Chi, and K\. Y\. Hwang \(2008\)Structural studies of human brain‐type creatine kinase complexed with the adp–mg2\+no3\-–creatine transition‐state analogue complex\.FEBS Letters582\(28\),pp\. 3959–3965\.External Links:[Link](http://dx.doi.org/10.1016/j.febslet.2008.10.039),[Document](https://dx.doi.org/10.1016/j.febslet.2008.10.039)Cited by:[Appendix G](https://arxiv.org/html/2606.26657#A7.p2.1),[§4](https://arxiv.org/html/2606.26657#S4.p1.1)\.
- D\. Christofidellis, G\. Giannone, J\. Born, O\. Winther, T\. Laino, and M\. Manica \(2023\)Unifying molecular and textual representations via multi\-task language modelling\.InProceedings of the 40th International Conference on Machine Learning \(ICML 2023\),pp\. 6140–6157\.External Links:[Link](http://dx.doi.org/10.48550/arXiv.2301.12586),[Document](https://dx.doi.org/10.48550/arXiv.2301.12586),[Link](https://proceedings.mlr.press/v202/christofidellis23a.html)Cited by:[§2\.4\.1](https://arxiv.org/html/2606.26657#S2.SS4.SSS1.Px3.p1.1)\.
- E\. Daxberger, A\. Kristiadi, A\. Immer, R\. Eschenhagen, M\. Bauer, and P\. Hennig \(2021\)Laplace redux – effortless bayesian deep learning\.InProceedings of the 35th International Conference on Neural Information Processing Systems \(NeurIPS 2021\),Red Hook, NY, USA,pp\. 20089 – 20103\.External Links:[Link](http://dx.doi.org/10.48550/arXiv.2106.14806),[Document](https://dx.doi.org/10.48550/arXiv.2106.14806)Cited by:[§A\.4\.1](https://arxiv.org/html/2606.26657#A1.SS4.SSS1.p1.2),[§A\.4\.3](https://arxiv.org/html/2606.26657#A1.SS4.SSS3.Px3.p1.1),[§4](https://arxiv.org/html/2606.26657#S4.p2.1)\.
- P\. Eisenhuth, F\. Liessmann, R\. Moretti, and J\. Meiler \(2025\)Ultra\-large library screening with an evolutionary algorithm in rosetta \(revold\)\.Communications Chemistry8\(1\)\.External Links:[Link](http://dx.doi.org/10.1038/s42004-025-01758-x),[Document](https://dx.doi.org/10.1038/s42004-025-01758-x)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p1.1)\.
- \[6\]Enamine Ltd\.Enamine REAL Database\.External Links:[Link](https://enamine.net/compound-collections/real-compounds/real-database)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p4.1),[§4](https://arxiv.org/html/2606.26657#S4.p1.1)\.
- P\. I\. Frazier \(2018\)A tutorial on bayesian optimization\.arXiv Preprint\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.1807.02811),[Link](https://arxiv.org/abs/1807.02811)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p4.1)\.
- Y\. Gal and Z\. Ghahramani \(2016\)Dropout as a bayesian approximation: representing model uncertainty in deep learning\.InProceedings of the 33rd International Conference on Machine Learning \(ICML 2016\),M\. F\. Balcan and K\. Q\. Weinberger \(Eds\.\),Vol\.48,New York, New York, USA,pp\. 1050–1059\.External Links:[Link](https://proceedings.mlr.press/v48/gal16.html),[Document](https://dx.doi.org/10.48550/arXiv.1506.02142)Cited by:[§A\.5](https://arxiv.org/html/2606.26657#A1.SS5.p1.1),[§4](https://arxiv.org/html/2606.26657#S4.p2.1)\.
- R\. Garnett, T\. Gärtner, M\. Vogt, and J\. Bajorath \(2015\)Introducing the ‘active search’ method for iterative virtual screening\.Journal of Computer\-Aided Molecular Design29\(4\),pp\. 305–314\.External Links:[Link](http://dx.doi.org/10.1007/s10822-015-9832-9),[Document](https://dx.doi.org/10.1007/s10822-015-9832-9)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- R\. Garnett, Y\. Krishnamurthy, X\. Xiong, J\. Schneider, and R\. Mann \(2012\)Bayesian optimal active search and surveying\.InProceedings of the 29th International Conference on Machine Learning \(ICML 2012\),Madison, WI, USA,pp\. 843–850\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.1206.6406),[Link](http://dx.doi.org/10.48550/arXiv.1206.6406)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- R\. Garnett \(2023\)Bayesian Optimization\.Cambridge University Press\.External Links:[Link](https://bayesoptbook.com/)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1),[§1](https://arxiv.org/html/2606.26657#S1.p4.1),[§2\.2](https://arxiv.org/html/2606.26657#S2.SS2.p1.3)\.
- D\. E\. Gloriam \(2019\)Bigger is better in virtual drug screens\.Nature566\(7743\),pp\. 193–194\.External Links:[Link](http://dx.doi.org/10.1038/d41586-019-00145-6),[Document](https://dx.doi.org/10.1038/d41586-019-00145-6)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- C\. Gorgulla, A\. Boeszoermenyi, Z\. Wang, P\. D\. Fischer, P\. W\. Coote, K\. M\. Padmanabha Das, Y\. S\. Malets, D\. S\. Radchenko, Y\. S\. Moroz, D\. A\. Scott, K\. Fackeldey, M\. Hoffmann, I\. Iavniuk, G\. Wagner, and H\. Arthanari \(2020\)An open\-source drug discovery platform enables ultra\-large virtual screens\.Nature580\(7805\),pp\. 663–668\.External Links:[Link](http://dx.doi.org/10.1038/s41586-020-2117-z),[Document](https://dx.doi.org/10.1038/s41586-020-2117-z)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p1.1),[§4\.3](https://arxiv.org/html/2606.26657#S4.SS3.p1.1)\.
- C\. Gorgulla, D\. Cecchini, A\. Nigam, M\. Tang, J\. Reis, M\. Koop, A\. Gottinger, C\. R\. Nicoll, A\. Jayaraj, S\. S\. Cinaroglu, R\. Torner, H\. Seo, S\. Dhe\-Paganon, C\. Secker, M\. Haddadnia, Y\. Malets, A\. Hasson, K\. Das, K\. Churion, J\. Kim, M\. Li, A\. Kumar, R\. Levin\-Konigsberg, E\. Choi, G\. Shapiro, H\. Cox, L\. Sebastian, C\. Braithwaite, P\. Bashyal, D\. S\. Radchenko, A\. Kumar, M\. Gehev, P\. Aquilanti, H\. Gabb, A\. Alhossary, G\. Wagner, A\. Aspuru\-Guzik, Y\. S\. Moroz, C\. G\. Kalodimos, K\. Fackeldey, A\. Mattevi, and H\. Arthanari \(2023\)AI\-enhanced adaptive virtual screening platform enabling exploration of 69 billion molecules discovers structurally validated fsp1 inhibitors\.bioRxiv Preprint\.External Links:[Link](http://dx.doi.org/10.1101/2023.04.25.537981),[Document](https://dx.doi.org/10.1101/2023.04.25.537981)Cited by:[Appendix B](https://arxiv.org/html/2606.26657#A2.p1.1),[Appendix G](https://arxiv.org/html/2606.26657#A7.p1.1),[§1](https://arxiv.org/html/2606.26657#S1.p4.1),[§2\.4\.2](https://arxiv.org/html/2606.26657#S2.SS4.SSS2.Px1.p1.1),[§4](https://arxiv.org/html/2606.26657#S4.p1.1)\.
- D\. E\. Graff, E\. I\. Shakhnovich, and C\. W\. Coley \(2021\)Accelerating high\-throughput virtual screening through molecular pool\-based active learning\.Chemical Science12\(22\),pp\. 7866–7881\.External Links:[Link](http://dx.doi.org/10.1039/D0SC06805E),[Document](https://dx.doi.org/10.1039/d0sc06805e)Cited by:[Appendix G](https://arxiv.org/html/2606.26657#A7.p3.1),[§1](https://arxiv.org/html/2606.26657#S1.p3.1),[§4\.4](https://arxiv.org/html/2606.26657#S4.SS4.p1.1),[§4](https://arxiv.org/html/2606.26657#S4.p1.1)\.
- T\. G\. Grigg, M\. Burlage, O\. B\. Scott, D\. Sydow, and L\. Wilbraham \(2025\)Active learning on synthons for molecular design\.InICLR 2025 Workshop on Generative and Experimental Perspectives for Biomolecular Design,External Links:[Link](https://openreview.net/forum?id=bLUw471nio)Cited by:[§3\.3](https://arxiv.org/html/2606.26657#S3.SS3.p1.1)\.
- O\. O\. Grygorenko, D\. S\. Radchenko, I\. Dziuba, A\. Chuprina, K\. E\. Gubina, and Y\. S\. Moroz \(2020\)Generating multibillion chemical space of readily accessible screening compounds\.iScience23\(11\),pp\. 101681\.External Links:[Link](http://dx.doi.org/10.1016/j.isci.2020.101681),[Document](https://dx.doi.org/10.1016/j.isci.2020.101681)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p1.1)\.
- T\. Hoffmann and M\. Gastreich \(2019\)The next level in chemical space navigation: going far beyond enumerable compound libraries\.Drug Discovery Today24\(5\),pp\. 1148–1156\.External Links:[Link](http://dx.doi.org/10.1016/j.drudis.2019.02.013),[Document](https://dx.doi.org/10.1016/j.drudis.2019.02.013)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p4.1)\.
- S\. Jiang, G\. Malkomes, B\. Moseley, and R\. Garnett \(2018\)Efficient nonmyopic active search with applications in drug and materials discovery\.arXiv\.External Links:[Document](https://dx.doi.org/10.48550/ARXIV.1811.08871),[Link](https://arxiv.org/abs/1811.08871)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- D\. P\. Kingma and J\. Ba \(2015\)Adam: A method for stochastic optimization\.In3rd International Conference on Learning Representations \(ICLR 2015\),External Links:[Link](http://dx.doi.org/10.48550/arXiv.1412.6980),[Document](https://dx.doi.org/10.48550/arXiv.1412.6980)Cited by:[§A\.4\.3](https://arxiv.org/html/2606.26657#A1.SS4.SSS3.Px2.p1.2)\.
- K\. Klarich, B\. Goldman, T\. Kramer, P\. Riley, and W\. P\. Walters \(2024\)Thompson sampling – an efficient method for searching ultralarge synthesis on demand databases\.Journal of Chemical Information and Modeling64\(4\),pp\. 1158–1171\.External Links:[Link](http://dx.doi.org/10.1021/acs.jcim.3c01790),[Document](https://dx.doi.org/10.1021/acs.jcim.3c01790)Cited by:[§3\.3](https://arxiv.org/html/2606.26657#S3.SS3.p1.1)\.
- V\. Kozyrev, F\. Sindt, and D\. Rognan \(2025\)Active learning to select the most suitable reagents and one\-step organic chemistry reactions for prioritizing target\-specific hits from ultralarge chemical spaces\.Journal of Chemical Information and Modeling65\(2\),pp\. 693–704\.External Links:[Link](http://dx.doi.org/10.1021/acs.jcim.4c02097),[Document](https://dx.doi.org/10.1021/acs.jcim.4c02097)Cited by:[§3\.3](https://arxiv.org/html/2606.26657#S3.SS3.p1.1)\.
- A\. Kristiadi, F\. Strieth\-Kalthoff, M\. Skreta, P\. Poupart, A\. Aspuru\-Guzik, and G\. Pleiss \(2024\)A sober look at llms for material discovery: are they actually good for bayesian optimization over molecules?\.InProceedings of the 41st International Conference on Machine Learning,ICML’24\.External Links:[Link](http://dx.doi.org/10.48550/arXiv.2402.05015),[Document](https://dx.doi.org/10.48550/arXiv.2402.05015)Cited by:[§2\.4\.1](https://arxiv.org/html/2606.26657#S2.SS4.SSS1.Px3.p1.1),[§4\.3](https://arxiv.org/html/2606.26657#S4.SS3.p2.1)\.
- G\. Landrum, P\. Tosco, B\. Kelley, R\. Rodriguez\-Schmidt, D\. Cosgrove, S\. Riniker, P\. Gedeck, R\. Vianello, N\. Schneider, E\. Kawashima, D\. N, G\. Jones, A\. Dalke, B\. Cole, M\. Swain, S\. Turk, A\. Savelyev, A\. Vaucher, M\. Wójcikowski, I\. Take, D\. Probst, K\. Ujihara, V\. F\. Scalfani, G\. Godin, J\. Lehtivarjo, A\. Pahl, R\. Walker, F\. Berenger, and J\. D\. Biggs \(2023\)RDKit \(release 2023\-03\-2\)\.Zenodo\.External Links:[Document](https://dx.doi.org/10.5281/ZENODO.8053810),[Link](https://zenodo.org/record/8053810)Cited by:[Appendix G](https://arxiv.org/html/2606.26657#A7.p1.1)\.
- T\. Lattimore and C\. Szepesvári \(2020\)Bandit algorithms\.Cambridge University Press\.External Links:[Link](http://dx.doi.org/10.1017/9781108571401),[Document](https://dx.doi.org/10.1017/9781108571401)Cited by:[§2\.3](https://arxiv.org/html/2606.26657#S2.SS3.p1.2)\.
- N\. Levine, K\. Crammer, and S\. Mannor \(2017\)Rotting bandits\.InProceedings of the 31st International Conference on Neural Information Processing Systems \(NeurIPS 2017\),Red Hook, NY, USA,pp\. 3077–3086\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.1702.07274),[Link](http://dx.doi.org/10.48550/arXiv.1702.07274)Cited by:[§5](https://arxiv.org/html/2606.26657#S5.p2.1)\.
- F\. Liu, O\. Mailhot, I\. S\. Glenn, S\. F\. Vigneron, V\. Bassim, X\. Xu, K\. Fonseca\-Valencia, M\. S\. Smith, D\. S\. Radchenko, J\. S\. Fraser, Y\. S\. Moroz, J\. J\. Irwin, and B\. K\. Shoichet \(2025\)The impact of library size and scale of testing on virtual screening\.Nature Chemical Biology21\(7\),pp\. 1039–1045\.External Links:[Link](http://dx.doi.org/10.1038/s41589-024-01797-w),[Document](https://dx.doi.org/10.1038/s41589-024-01797-w)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- I\. Loshchilov and F\. Hutter \(2017\)SGDR: stochastic gradient descent with warm restarts\.In5th International Conference on Learning Representations \(ICLR 2017\),External Links:[Document](https://dx.doi.org/10.48550/arXiv.1608.03983),[Link](http://dx.doi.org/10.48550/arXiv.1608.03983)Cited by:[§A\.4\.3](https://arxiv.org/html/2606.26657#A1.SS4.SSS3.Px2.p1.2)\.
- J\. Lyu, J\. J\. Irwin, and B\. K\. Shoichet \(2023\)Modeling the expansion of virtual screening libraries\.Nature Chemical Biology19\(6\),pp\. 712–718\.External Links:[Link](http://dx.doi.org/10.1038/s41589-022-01234-w),[Document](https://dx.doi.org/10.1038/s41589-022-01234-w)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- J\. Lyu, S\. Wang, T\. E\. Balius, I\. Singh, A\. Levit, Y\. S\. Moroz, M\. J\. O’Meara, T\. Che, E\. Algaa, K\. Tolmachova, A\. A\. Tolmachev, B\. K\. Shoichet, B\. L\. Roth, and J\. J\. Irwin \(2019\)Ultra\-large library docking for discovering new chemotypes\.Nature566\(7743\),pp\. 224–229\.External Links:[Link](http://dx.doi.org/10.1038/s41586-019-0917-9),[Document](https://dx.doi.org/10.1038/s41586-019-0917-9)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p1.1),[§4\.5](https://arxiv.org/html/2606.26657#S4.SS5.p1.4)\.
- W\. J\. Maddox, P\. Izmailov, T\. Garipov, D\. P\. Vetrov, and A\. G\. Wilson \(2019\)A simple baseline for Bayesian uncertainty in deep learning\.InProceedings of the 32nd International Conference on Neural Information Processing Systems \(NeurIPS 2019\),pp\. 13132–13143\.External Links:[Link](http://dx.doi.org/10.48550/arXiv.1902.02476),[Document](https://dx.doi.org/10.48550/arXiv.1902.02476)Cited by:[§A\.5](https://arxiv.org/html/2606.26657#A1.SS5.p1.1),[§4](https://arxiv.org/html/2606.26657#S4.p2.1)\.
- E\. Maspero, A\. Cappa, J\. Weber, P\. Trifirò, R\. Amici, A\. Bruno, G\. Fagà, V\. Cecatiello, R\. Fattori, B\. Leuzzi, V\. Taibi, G\. Meroni, M\. Pasi, A\. Romussi, L\. Sartori, M\. Villa, S\. Vultaggio, M\. Cirò, P\. Soffientini, L\. Lombardo, S\. Dahe, A\. Bachi, M\. Varasi, M\. Rossi, S\. Pasqualato, C\. Mercurio, and S\. Polo \(2025\)Structure\-based design of potent and selective inhibitors of the HECT ligase NEDD4\.Communications Chemistry8\(1\)\.External Links:[Link](http://dx.doi.org/10.1038/s42004-025-01557-4),[Document](https://dx.doi.org/10.1038/s42004-025-01557-4)Cited by:[Appendix G](https://arxiv.org/html/2606.26657#A7.p2.1),[§4](https://arxiv.org/html/2606.26657#S4.p1.1)\.
- S\. Morgan, P\. Grootendorst, J\. Lexchin, C\. Cunningham, and D\. Greyson \(2011\)The cost of drug development: a systematic review\.Health Policy100\(1\),pp\. 4–17\.External Links:[Link](http://dx.doi.org/10.1016/j.healthpol.2010.12.002),[Document](https://dx.doi.org/10.1016/j.healthpol.2010.12.002)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p1.1)\.
- M\. Naik, A\. Raichurkar, B\. S\. Bandodkar, B\. V\. Varun, S\. Bhat, R\. Kalkhambkar, K\. Murugan, R\. Menon, J\. Bhat, B\. Paul, H\. Iyer, S\. Hussein, J\. A\. Tucker, M\. Vogtherr, K\. J\. Embrey, H\. McMiken, S\. Prasad, A\. Gill, B\. G\. Ugarkar, J\. Venkatraman, J\. Read, and M\. Panda \(2015\)Structure guided lead generation for m\. tuberculosis thymidylate kinase \(mtb tmk\): discovery of 3\-cyanopyridone and 1,6\-naphthyridin\-2\-one as potent inhibitors\.Journal of Medicinal Chemistry58\(2\),pp\. 753–766\.External Links:[Document](https://dx.doi.org/10.1021/jm5012947),[Link](https://doi.org/10.1021/jm5012947)Cited by:[Appendix G](https://arxiv.org/html/2606.26657#A7.p3.1)\.
- A\. L\. Nazarova, A\. V\. Sadybekov, A\. A\. Sadybekov, M\. Protopopov, D\. S\. Radchenko, Y\. S\. Moroz, O\. O\. Tarkhanova, and V\. Katritch \(2025\)V\-synthes2 \- the next generation tool for structure\-based virtual screening of giga\-scale chemical spaces\.ResearchSquare Preprint\.External Links:[Link](http://dx.doi.org/10.21203/rs.3.rs-7782723/v1),[Document](https://dx.doi.org/10.21203/rs.3.rs-7782723/v1)Cited by:[§3\.3](https://arxiv.org/html/2606.26657#S3.SS3.p1.1)\.
- N\. M\. O’Boyle, M\. Banck, C\. A\. James, C\. Morley, T\. Vandermeersch, and G\. R\. Hutchison \(2011\)Open babel: an open chemical toolbox\.Journal of Cheminformatics3\(1\)\.External Links:[Link](http://dx.doi.org/10.1186/1758-2946-3-33),[Document](https://dx.doi.org/10.1186/1758-2946-3-33)Cited by:[Appendix G](https://arxiv.org/html/2606.26657#A7.p1.1)\.
- S\. M\. Papidocha, A\. Burger, V\. Bernales, and A\. Aspuru\-Guzik \(2026\)The elephant in the lab: synthesizability in generative small\-molecule design\.Current Opinion in Chemical Engineering51,pp\. 101217\.External Links:[Link](http://dx.doi.org/10.1016/j.coche.2025.101217),[Document](https://dx.doi.org/10.1016/j.coche.2025.101217)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p2.2)\.
- E\. O\. Pyzer\-Knapp \(2018\)Bayesian optimization for accelerated drug discovery\.IBM Journal of Research and Development62\(6\),pp\. 2:1–2:7\.External Links:[Link](http://dx.doi.org/10.1147/JRD.2018.2881731),[Document](https://dx.doi.org/10.1147/jrd.2018.2881731)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- C\. Raffel, N\. Shazeer, A\. Roberts, K\. Lee, S\. Narang, M\. Matena, Y\. Zhou, W\. Li, and P\. J\. Liu \(2020\)Exploring the limits of transfer learning with a unified text\-to\-text transformer\.Journal of Machine Learning Research21\(140\),pp\. 1–67\.External Links:[Link](http://jmlr.org/papers/v21/20-074.html),[Document](https://dx.doi.org/10.48550/arXiv.1910.10683)Cited by:[§2\.4\.1](https://arxiv.org/html/2606.26657#S2.SS4.SSS1.Px3.p1.1)\.
- D\. Reker and G\. Schneider \(2015\)Active\-learning strategies in computer\-assisted drug discovery\.Drug Discovery Today20\(4\),pp\. 458–465\.External Links:[Link](http://dx.doi.org/10.1016/j.drudis.2014.12.004),[Document](https://dx.doi.org/10.1016/j.drudis.2014.12.004)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1),[§3\.3](https://arxiv.org/html/2606.26657#S3.SS3.p1.1)\.
- D\. Reker \(2019\)Practical considerations for active machine learning in drug discovery\.Drug Discovery Today: Technologies32–33,pp\. 73–79\.External Links:[Link](http://dx.doi.org/10.1016/j.ddtec.2020.06.001),[Document](https://dx.doi.org/10.1016/j.ddtec.2020.06.001)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- G\. Restrepo \(2022\)Chemical space: limits, evolution and modelling of an object bigger than our universal library\.Digital Discovery1\(5\),pp\. 568–585\.External Links:[Link](http://dx.doi.org/10.1039/D2DD00030J),[Document](https://dx.doi.org/10.1039/d2dd00030j)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p2.2)\.
- H\. Robbins \(1952\)Some aspects of the sequential design of experiments\.Bulletin of the American Mathematical Society58\(5\),pp\. 527–535\.External Links:[Link](http://dx.doi.org/10.1090/S0002-9904-1952-09620-8),[Document](https://dx.doi.org/10.1090/s0002-9904-1952-09620-8)Cited by:[§2\.3](https://arxiv.org/html/2606.26657#S2.SS3.p1.2)\.
- A\. A\. Sadybekov, A\. V\. Sadybekov, Y\. Liu, C\. Iliopoulos\-Tsoutsouvas, X\. Huang, J\. Pickett, B\. Houser, N\. Patel, N\. K\. Tran, F\. Tong, N\. Zvonok, M\. K\. Jain, O\. Savych, D\. S\. Radchenko, S\. P\. Nikas, N\. A\. Petasis, Y\. S\. Moroz, B\. L\. Roth, A\. Makriyannis, and V\. Katritch \(2021\)Synthon\-based ligand discovery in virtual libraries of over 11 billion compounds\.Nature601\(7893\),pp\. 452–459\.External Links:[Link](http://dx.doi.org/10.1038/s41586-021-04220-9),[Document](https://dx.doi.org/10.1038/s41586-021-04220-9)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p1.1)\.
- B\. Settles \(2012\)Active learning\.Springer International Publishing\.External Links:[Link](http://dx.doi.org/10.1007/978-3-031-01560-1),[Document](https://dx.doi.org/10.1007/978-3-031-01560-1)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p3.1)\.
- B\. K\. Shoichet \(2004\)Virtual screening of chemical libraries\.Nature432\(7019\),pp\. 862–865\.External Links:[Link](http://dx.doi.org/10.1038/nature03197),[Document](https://dx.doi.org/10.1038/nature03197)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p2.2)\.
- M\. Wang\-Henderson, B\. Soyuer, P\. Kassraie, A\. Krause, and I\. Bogunovic \(2023\)Graph neural network powered bayesian optimization for large molecular spaces\.InICML 2023 Workshop on Structured Probabilistic Inference & Generative Modeling,External Links:[Link](https://openreview.net/forum?id=QIrgM7uybw)Cited by:[§4\.2\.1](https://arxiv.org/html/2606.26657#S4.SS2.SSS1.p1.1)\.
- W\. A\. Warr, M\. C\. Nicklaus, C\. A\. Nicolaou, and M\. Rarey \(2022\)Exploration of ultralarge compound collections for drug discovery\.Journal of Chemical Information and Modeling62\(9\),pp\. 2021–2034\.External Links:[Link](http://dx.doi.org/10.1021/acs.jcim.2c00224),[Document](https://dx.doi.org/10.1021/acs.jcim.2c00224)Cited by:[§1](https://arxiv.org/html/2606.26657#S1.p4.1)\.
- Y\. Yu, C\. Cai, J\. Wang, Z\. Bo, Z\. Zhu, and H\. Zheng \(2023\)Uni\-dock: gpu\-accelerated docking enables ultralarge virtual screening\.Journal of Chemical Theory and Computation19\(11\),pp\. 3336–3345\.External Links:[Link](http://dx.doi.org/10.1021/acs.jctc.2c01145),[Document](https://dx.doi.org/10.1021/acs.jctc.2c01145)Cited by:[Appendix G](https://arxiv.org/html/2606.26657#A7.p1.1)\.
- H\. Zhao, E\. Nittinger, M\. A\. Yu, S\. Gathiaka, W\. P\. Walters, and C\. Tyrchan \(2025\)Enhanced thompson sampling by roulette wheel selection for screening ultralarge combinatorial libraries\.Journal of Cheminformatics17\(1\)\.External Links:[Link](http://dx.doi.org/10.1186/s13321-025-01105-1),[Document](https://dx.doi.org/10.1186/s13321-025-01105-1)Cited by:[§3\.3](https://arxiv.org/html/2606.26657#S3.SS3.p1.1)\.
## Appendix AAdditional Implementation Details
### A\.1Fair Budgeting
Importantly, although clustering reduces the average search space per round fromNNto approximatelyN/KN/K, we do*not*reduce the batch size when usingBoBa\. One might consider evaluating onlyB/KB/Kmolecules per iteration within each subspace and increasing the number of rounds accordingly; however, this would equalize the total number of surrogate inferences betweenBoBaand standard BO, obscuring the regime we aim to study\.
Instead, we fix bothTTandBBacross all methods\. As a result,BoBaperforms approximatelyKK\-fold fewer surrogate inferences than standard BO, directly exposing the tradeoff between inference cost and optimization performance\.
### A\.2Runtime Breakdown
To complement the inference\-count analysis in the main text, Table[1](https://arxiv.org/html/2606.26657#A1.T1)reports wall\-clock measurements for preprocessing and optimization on the ZINC–AmpC scaling benchmark\. The measurements separate one\-time library preprocessing costs, namely embedding computation and clustering, from the repeated optimization loop\. Embedding computation dominates total runtime, but this cost is amortized across downstream targets because the same molecular representations and partitions can be reused\. Within a fixed optimization campaign, the dominant avoidable cost is surrogate inference, which is precisely the component reduced by restricting acquisition evaluation to the selected partition\.
Table 1:Wall\-clock runtime breakdown for the ZINC–AmpC scaling benchmark\.All values are reported in seconds\. “Emb\.” denotes embedding computation, the columns labeled byKKdenote clustering/tranching time for the corresponding number of partitions, and the final columns report optimization\-loop runtime for full\-library BO andBoBa\. Model training and inference were performed on an NVIDIA GH200 Grace Hopper chip\.
### A\.3Multi\-Armed Bandit Algorithms
In this work, each clustered subspace𝒳k\\mathcal\{X\}\_\{k\}is treated as an arm in a multi\-armed bandit \(MAB\) problem\. At iterationtt, selecting armkkyields a scalar rewardrk,tr\_\{k,t\}, defined as the average docking score of the batch evaluated from that subspace\. We maintain, for each armkk, the number of times it has been selectednk\(t\)n\_\{k\}\(t\)and its empirical mean reward
μ^k\(t\)=1nk\(t\)∑i=1nk\(t\)rk,i\.\\hat\{\\mu\}\_\{k\}\(t\)=\\frac\{1\}\{n\_\{k\}\(t\)\}\\sum\_\{i=1\}^\{n\_\{k\}\(t\)\}r\_\{k,i\}\.
##### Initialization\.
All algorithms use a single\-round initialization strategy: the initial batch is distributed across arms, withB/KB/Kmolecules seeded from each partition whenBBis divisible byKK\. This seeding strategy initializes every arm without spending one full optimization round per arm, which is important whenTTis small relative toKK\.
We consider the following bandit strategies\.
#### A\.3\.1UCB1
Upper Confidence Bound \(UCB1\) selects the arm that maximizes an optimism\-adjusted estimate of the mean reward\(Aueret al\.,[2002](https://arxiv.org/html/2606.26657#bib.bib10)\):
kt=argmaxk∈\{1,…,K\}\[μ^k\(t−1\)\+c2logtnk\(t−1\)\],k\_\{t\}=\\arg\\max\_\{k\\in\\\{1,\\dots,K\\\}\}\\left\[\\hat\{\\mu\}\_\{k\}\(t\-1\)\+c\\sqrt\{\\frac\{2\\log t\}\{n\_\{k\}\(t\-1\)\}\}\\right\],wherec\>0c\>0is a tunable exploration constant \(set toc=1c=1in all experiments unless otherwise stated\)\. Arms are initialized by the single\-round seeding strategy described above before the UCB1 rule is applied\.
#### A\.3\.2ϵ\\epsilon\-Greedy
Theϵ\\epsilon\-greedy strategy selects arms according to
kt=\{argmaxkμ^k\(t−1\),with probability1−ϵ,Uniform\(\{1,…,K\}\),with probabilityϵ,k\_\{t\}=\\begin\{cases\}\\arg\\max\_\{k\}\\hat\{\\mu\}\_\{k\}\(t\-1\),&\\text\{with probability \}1\-\\epsilon,\\\\ \\text\{Uniform\}\(\\\{1,\\dots,K\\\}\),&\\text\{with probability \}\\epsilon,\\end\{cases\}whereϵ∈\[0,1\]\\epsilon\\in\[0,1\]controls the exploration rate\. We report results for multiple values ofϵ\\epsilon\.
#### A\.3\.3Softmax Sampling
Softmax \(Boltzmann\) exploration samples arms stochastically according to their empirical mean rewards:
P\(kt=k\)=exp\(τμ^k\(t−1\)\)∑j=1Kexp\(τμ^j\(t−1\)\)\.P\(k\_\{t\}=k\)=\\frac\{\\exp\(\\tau\\,\\hat\{\\mu\}\_\{k\}\(t\-1\)\)\}\{\\sum\_\{j=1\}^\{K\}\\exp\(\\tau\\,\\hat\{\\mu\}\_\{j\}\(t\-1\)\)\}\.Hereτ\>0\\tau\>0is an inverse\-temperature parameter controlling the sharpness of the distribution\. Largerτ\\tauincreasingly concentrates probability mass on the empirically best arm, while smallerτ\\tauapproaches uniform sampling\. Note that we parameterize softmax usingexp\(τx\)\\exp\(\\tau x\)rather than the more commonexp\(x/τ\)\\exp\(x/\\tau\); under this convention, largerτ\\taucorresponds to lower stochasticity\.
### A\.4Bayesian Optimization
All screening methods in this work, including standard Bayesian optimization andBoBa, are built on a common surrogate modeling and acquisition framework\. This shared framework ensures that observed differences arise from the allocation strategy rather than from differences in modeling capacity\.
#### A\.4\.1Surrogate Model
We model the unknown objective functionf\(x\)f\(x\)using Bayesian neural networks \(BNNs\) trained on the growing dataset𝒟t=\{\(xi,yi\)\}i=1t\\mathcal\{D\}\_\{t\}=\\\{\(x\_\{i\},y\_\{i\}\)\\\}\_\{i=1\}^\{t\}\. Rather than performing fully Bayesian training, we adopt a post\-hoc Laplace approximation to the posterior over network weights\(Daxbergeret al\.,[2021](https://arxiv.org/html/2606.26657#bib.bib12)\), which has recently been shown to provide accurate and computationally efficient uncertainty estimates for deep models\.
Concretely, we first train a deterministic neural network by minimizing mean squared error on𝒟t\\mathcal\{D\}\_\{t\}, which learns to predict docking scores from some given representation spaceϕ\(x\)∈ℝd\\phi\(x\)\\in\\mathbb\{R\}^\{d\}\. Letθ^t\\hat\{\\theta\}\_\{t\}denote the resulting parameters\. We then approximate the posteriorp\(θ∣𝒟t\)p\(\\theta\\mid\\mathcal\{D\}\_\{t\}\)by a Gaussian centered atθ^t\\hat\{\\theta\}\_\{t\}with covariance given by the inverse Hessian of the negative log\-likelihood,
p\(θ∣𝒟t\)≈𝒩\(θ^t,Ht−1\),p\(\\theta\\mid\\mathcal\{D\}\_\{t\}\)\\approx\\mathcal\{N\}\(\\hat\{\\theta\}\_\{t\},H\_\{t\}^\{\-1\}\),whereHtH\_\{t\}is estimated using a block\-diagonal or Kronecker\-factored approximation\. This approximation yields a predictive distribution for each candidate molecule,
p\(f\(x\)∣𝒟t\)≈𝒩\(μt\(x\),σt2\(x\)\),p\(f\(x\)\\mid\\mathcal\{D\}\_\{t\}\)\\approx\\mathcal\{N\}\(\\mu\_\{t\}\(x\),\\sigma\_\{t\}^\{2\}\(x\)\),which provides both predictive means and calibrated epistemic uncertainties\.
Unless otherwise stated, the same surrogate architecture, training protocol, and Laplace approximation procedure are used across all experiments\.
#### A\.4\.2Acquisition Function
Candidate selection is driven by the Upper Confidence Bound \(UCB\) acquisition function,
at\(x\)=μt\(x\)\+βtσt\(x\),a\_\{t\}\(x\)=\\mu\_\{t\}\(x\)\+\\beta\_\{t\}\\,\\sigma\_\{t\}\(x\),whereμt\(x\)\\mu\_\{t\}\(x\)andσt\(x\)\\sigma\_\{t\}\(x\)denote the predictive mean and standard deviation of the surrogate model, andβt\>0\\beta\_\{t\}\>0controls the exploration–exploitation tradeoff\.
In standard Bayesian optimization,at\(x\)a\_\{t\}\(x\)is evaluated over the entire library\. InBoBa, the same acquisition function is used, but inference is restricted to the subspace selected by the bandit layer\. Thus, all methods share identical local decision rules; only the scope of inference and the global allocation of computation differ\.
#### A\.4\.3Training and Update Protocol
The surrogate model is retrained \(or warm\-started and updated\) at each iteration using all available observations in𝒟t\\mathcal\{D\}\_\{t\}\.
##### Model architecture\.
The surrogate model is a fully connected feedforward neural network with two hidden layers of sizes 512 and 128, respectively, and ReLU nonlinearities\. The network maps molecular feature vectors to a scalar prediction of docking score\.
##### Optimization\.
All networks are trained using the Adam optimizer\(Kingma and Ba,[2015](https://arxiv.org/html/2606.26657#bib.bib15)\)with learning rate1×10−31\\times 10^\{\-3\}and weight decay1×10−41\\times 10^\{\-4\}\. We employ a cosine annealing learning rate schedule\(Loshchilov and Hutter,[2017](https://arxiv.org/html/2606.26657#bib.bib16)\)over the course of training\. Each surrogate update consists of 500 training epochs with a batch size of 8192\.
##### Laplace approximation\.
After deterministic training, we construct a post\-hoc Bayesian neural network using a Laplace approximation over the final layer weights\. We use a last\-layer Laplace approximation\(Daxbergeret al\.,[2021](https://arxiv.org/html/2606.26657#bib.bib12)\)and refine the posterior for an additional 100 post\-hoc optimization epochs\. Predictive means and uncertainties are obtained from this approximate posterior and used to compute UCB acquisition values\.
### A\.5Uncertainty Estimation Ablation
Because the acquisition function depends directly on predictive uncertainty, we evaluated whether the conclusions are specific to the Laplace approximation used in the main experiments\. Figure[7](https://arxiv.org/html/2606.26657#A1.F7)compares the Laplace approximation against SWAG\(Maddoxet al\.,[2019](https://arxiv.org/html/2606.26657#bib.bib14)\)and MC dropout\(Gal and Ghahramani,[2016](https://arxiv.org/html/2606.26657#bib.bib13)\)for both full\-library BO andBoBaacross multiple libraries, targets, and values ofKK\. Across these settings, the Laplace approximation provides the strongest or most consistent retrieval trajectories, particularly for full\-library BO\. The same qualitative trend is retained inBoBa, although performance varies more strongly across libraries and cluster granularities\. These results support the use of the Laplace approximation as the default uncertainty estimator in the main benchmarks, while leaving more systematic uncertainty\-calibration studies as a promising direction for future work\.
Figure 7:Effect of uncertainty estimation on optimization performance\.Optimization trajectories for full\-library BO andBoBausing Laplace approximation, SWAG, and MC dropout uncertainty estimates\. Curves report retrieval of top\-ranked candidates as a function of the number of molecules explored acrossEnamine\-S\-3\.9Mdocked against NEDD4,Enamine\-S\-3\.9Mdocked against CKB, andEnamine\-5Mdocked against CKB\. Columns correspond to different values ofKK\.
## Appendix BPhysiochemical Descriptors
List of physiochemical properties used as heuristic features: aromatic proportion, aromatic ring count, atom count, bond count, chiral center count, doublebond stereoisomer count, electronegative atom count, formal charge, fraction of sp3carbon atoms, halogen atom count, hydrogen bond acceptor count, hydrogen bond donor count, heavy atom count, logD, logP, logS, molecular refractivity, molecular weight, negative charge count, nitrogen and oxygen atom count, positive charge count, Quantitative Estimate of Druglikeness \(QED\), ring count, rotatable bond count, sulfur atom count, Topological Polar Surface Area \(TPSA\)\. For the 5 million compounds, the properties were obtained from\(Gorgullaet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib4)\)\. The quantitative properties were selected from all properties calculated in\(Gorgullaet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib4)\)\.
## Appendix CAdditional Results


Figure 8:Trajectories of top\-1000 and top\-10000 molecules recovered for theEnamine\-5Mlibrary \(CKB\)\.

Figure 9:Trajectories of top\-1000 and top\-10000 molecules recovered for theEnamine\-S\-3\.9M\(CKB\) library

Figure 10:Trajectories of top\-1000 and top\-10000 molecules recovered for theEnamine\-S\-3\.9M\(NEDD4\) library
## Appendix DArm Selection Frequencies
To assess whether UCB1 collapses onto a small number of initially high\-reward partitions, we analyzed the fraction of selections assigned to each arm over the course of optimization\. Figure[11](https://arxiv.org/html/2606.26657#A4.F11)shows that UCB1 continues to distribute selections across multiple arms, even when the number of partitions is large\. This behavior is consistent with the optimism bonus in UCB1, which keeps under\-sampled partitions competitive until their empirical rewards are sufficiently well characterized\. In the tested optimization budgets, we do not observe strong evidence of a winner’s curse in which one early high\-performing arm monopolizes the campaign after its best candidates are depleted\.
Figure 11:Per\-arm selection frequencies forBoBawith UCB1\.Each panel reports the fraction of selections assigned to each arm over optimization iterations, with arms color\-coded by partition\. Experiments are shown forEnamine\-S\-3\.9Mdocked against NEDD4,Enamine\-S\-3\.9Mdocked against CKB, andEnamine\-5Mdocked against CKB, acrossK∈\{5,10,25,100\}K\\in\\\{5,10,25,100\\\}\.
## Appendix ECost–Regret Tradeoff Analysis
This section provides a simplified theoretical analysis of the central cost–performance tradeoff inBoBa\. The goal is not to fully model the molecular optimization problem, but to formalize the role of the number of clustersKKas a control parameter\.
##### Setup\.
Consider a library of sizeNNpartitioned intoKKapproximately equal clusters\. At each ofTToptimization rounds, full\-library BO performs surrogate inference over allNNcandidates, whereasBoBaperforms inference over approximatelyN/KN/Kcandidates after selecting one arm\. Thus, up to constants and batch\-size factors shared across methods, the cumulative inference cost ofBoBascales as
Cinf\(K\)≍NTK\.C\_\{\\mathrm\{inf\}\}\(K\)\\asymp\\frac\{NT\}\{K\}\.IncreasingKKtherefore reduces inference cost, but it also makes the bandit allocation problem harder because the algorithm must identify promising regions among more arms\.
##### Bandit term\.
Under a standard stochastic bandit abstraction, the regret of UCB\-type allocation overKKarms admits gap\-dependent logarithmic bounds and gap\-free bounds of order
Rbandit\(K,T\)=𝒪~\(KT\),R\_\{\\mathrm\{bandit\}\}\(K,T\)=\\tilde\{\\mathcal\{O\}\}\(\\sqrt\{KT\}\),where logarithmic factors are suppressed\. This term captures the loss from allocating rounds to suboptimal partitions before the bandit has confidently identified high\-yield regions\. The approximation ignores within\-partition surrogate error and the mild non\-stationarity induced by depletion of high\-scoring candidates, but it isolates the effect of partition granularity\.
##### Joint objective\.
Letλ\>0\\lambda\>0denote the relative importance of inference cost compared with allocation regret\. A simplified objective is
J\(K\)=λNTK\+KT\.J\(K\)=\\lambda\\frac\{NT\}\{K\}\+\\sqrt\{KT\}\.The first term decreases withKK, while the second increases withKK\.
TreatingKKas continuous, we can minimizeJJwith respect toKKby differentiation:
dJdK=−λNTK−2\+12TK−1/2\.\\frac\{dJ\}\{dK\}=\-\\lambda NTK^\{\-2\}\+\\frac\{1\}\{2\}\\sqrt\{T\}K^\{\-1/2\}\.Setting this derivative to zero yields
K3/2=2λNT,K^\{3/2\}=2\\lambda N\\sqrt\{T\},and therefore
K∗≍N2/3T1/3,K^\{\\ast\}\\asymp N^\{2/3\}T^\{1/3\},up to constants and logarithmic factors\.
##### Interpretation\.
This scaling law formalizes the empirical behavior observed in the main text\. Larger libraries justify finer partitions because the inference savings from reducing the queried fraction of the library grow withNN\. At the same time, the optimalKKgrows sublinearly, reflecting the increasing statistical burden of choosing among many arms\. In practice, the constant hidden in the scaling depends on hardware, surrogate architecture, batch size, cluster balance, target difficulty, and the quality of the molecular representation\. The analysis should therefore be interpreted as a design principle rather than a prescription for a single universal value ofKK\.
## Appendix FDistribution of Docking Scores
Figure 12:Distribution of docking scores for CKB\-5M inside each cluster for different values ofKK\. Outliers not shown\.Figure 13:Distribution of docking scores for CKB\-3\.9M inside each cluster for different values ofKK\. Outliers not shown\.Figure 14:Distribution of docking scores for NEDD4\-3\.9M inside each cluster for different values ofKK\. Outliers not shown\.
## Appendix GPhysics\-Based Docking
We randomly selected 5 million compounds from an enumerated library of 69 billion compounds fromEnamine\(Gorgullaet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib4)\)\. In addition, an independent set of 3\.9 million compounds was randomly sampled fromEnamine’s S\-class small\-molecule database, which comprises approximately 3\.9 billion unenumerated compounds, and retrieved in SMILES format\. Only one stereoisomer or one tautomer was retained for each SMILES string to preserve database diversity\. The compounds were then converted to three\-dimensional structures and energy\-minimized using RDKit\(Landrumet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib5)\)and Open Babel\(O’Boyleet al\.,[2011](https://arxiv.org/html/2606.26657#bib.bib6)\)\. The resulting library was subsequently docked against the target proteins with known active sites using the Uni\-Dock small\-molecule docking tool\(Yuet al\.,[2023](https://arxiv.org/html/2606.26657#bib.bib7)\)on NVIDIA RTX 4500 Ada Generation GPUs\.
Specifically, we docked the libraries against the proteins CKB and NEDD4\. CKB is a cytosolic phosphotransferase that buffers cellular energy by catalyzing the reversible transfer of a phosphate group between ATP and creatine, thereby helping maintain ATP levels during fluctuating energy demand\.\(Bonget al\.,[2008](https://arxiv.org/html/2606.26657#bib.bib46)\)NEDD4 is a HECT\-family E3 ubiquitin ligase that recognizes substrates via WW domains and catalyzes ubiquitin transfer to regulate protein stability, trafficking, and signaling\.\(Masperoet al\.,[2025](https://arxiv.org/html/2606.26657#bib.bib47)\)
We obtained docking scores against a Thymidylate Kinase \(TMK\) for the virtual library of 2M molecules fromEnamine’s HTS database \(Enamine\-HTS\) from\(Graffet al\.,[2021](https://arxiv.org/html/2606.26657#bib.bib2)\)\. TMK is a phosphotransferase that catalyzes the reversible transfer of a phosphate group from ATP to deoxythymidine monophosphate \(dTMP\), to form deoxythymidine diphosphate \(dTDP\) in the process of DNA synthesis\.\(Naiket al\.,[2015](https://arxiv.org/html/2606.26657#bib.bib50)\)Similar Articles
Compute Allocation in Evolutionary Search: From Depth-Breadth to Multi-Armed Bandits
This paper studies compute allocation in LLM-guided evolutionary search, identifies empirical regularities, and proposes BaSE, a multi-armed bandit algorithm that improves mean fitness and reliability across multiple models and tasks.
Agentic Bayesian Optimization through Surrogate-Augmented Autoresearch
This paper introduces agentic Bayesian optimization, where an LLM agent acts as the central decision-maker in the BO loop with a Bayesian backend, enabling online strategy revision and problem reframing. The authors instantiate this in Sara and lenz, demonstrating reliability and performance gains over standard BO and LLM-based baselines.
Range-Aware Bayesian Optimization for Discovering Diverse Designs within Target Property Windows
This paper presents a range-aware Bayesian optimization framework that directly scores the posterior probability that a candidate satisfies a target property range, enabling discovery of diverse valid designs across multiple specifications.
Rethinking Molecular OOD Generalization via Target-Aware Source Selection
This paper introduces SCOPE-Bench, a benchmark for evaluating molecular out-of-distribution generalization, and POMA, a framework using reinforcement learning to select source domains for domain adaptation, achieving significant error reductions on 3D molecular models.
Distributed Online Bandit Submodular Maximization with Bounded Sampling Violations
This paper presents a unified algorithmic framework for distributed online submodular maximization under partition matroid constraints, achieving sublinear (1-1/e)-regret guarantees for both full-information and bandit feedback. It also introduces a bounded stochastic pipage rounding scheme to ensure cumulative sampling violations remain sublinear.