I came across an interesting ICML paper on Bayesian Algorithm Execution that treats expensive black-box problems through the output of an algorithm, including a top-k example based on candidate material formulations [2]. The framework only needs a probabilistic surrogate for the unknown property and an algorithm that maps each sampled property landscape to the output we care about. That generality made me read the top-k example as a drug-discovery problem, with drug candidates replacing material formulations and the output becoming a top-k or selective compound set.
In that translation, imagine a library of 10,000 compounds and enough assay budget for only a few dozen. The goal is not to learn every binding affinity perfectly. It may be much smaller, such as finding the five best binders or the compounds that clear an affinity and selectivity threshold. A full ranking requires assaying everything, but the decision only depends on a small part of that unknown landscape. The next question is how to value one assay by how much it clarifies that final decision.
One bit, two ways to count it
Shannon's information theory gives us that value. To choose an informative assay, we need to connect uncertainty in a measurement with uncertainty in the final decision. Mutual information does exactly that, and its symmetry is the useful part for BAX. The simplest place to see this is a binary screen. We can begin with entropy, which measures uncertainty in a probability distribution [1]. If \(O\) is the unknown output we care about, such as the identity of the top five molecules, its entropy under the current data \(D\) is
\[ H(O \mid D) = -\sum_o p(o \mid D)\log_2 p(o \mid D). \]Entropy is measured in bits when the logarithm uses base two. If four binding classes are equally likely, then \(H(O)=2\) bits. A binary screen at 10 micromolar reports hit or no hit. Suppose strong and moderate binders are hits while weak and inactive compounds are not. The screen cannot identify the exact class, but it cuts four possibilities down to two. That single assay gives one bit of information.
| Binding class \(O\) | Affinity | \(P(O)\) | 10 µM screen \(y\) |
|---|---|---|---|
| Strong | nM | \(1/4\) | Hit |
| Moderate | µM | \(1/4\) | Hit |
| Weak | mM | \(1/4\) | No hit |
| None | Not applicable | \(1/4\) | No hit |
What does the screen tell us about the binding class?
First yes-no question
Is the compound a hit at 10 µM?
Remaining yes-no question
If it is a hit, is the class strong? If it is not a hit, is the class weak?
What does the binding class tell us about the screen?
The class fixes whether the screen is a hit, so there is no screen uncertainty left after the class is known.
Both columns give the same answer. We can ask how much the screen tells us about the binding class, or how much knowing the class tells us about the screen. Either direction gives one bit. That symmetry becomes important later because the entropy of a combinatorial output set is difficult to compute, while the entropy of one scalar assay readout is much easier.
The symmetry survives assay noise, but the one-bit value does not. The toy calculation assumes that the screen result is completely determined once the binding class is known, so \(H(y\mid O)=0\). A real assay has false positives, false negatives, and measurement variation. If a binary result is flipped with probability \(\epsilon\), then the remaining uncertainty is the binary entropy
\[ h_2(\epsilon) = -\epsilon\log_2\epsilon -(1-\epsilon)\log_2(1-\epsilon), \]and the information from a balanced screen becomes
\[ I(O;y)=1-h_2(\epsilon)\text{ bits}. \]With no noise, \(\epsilon=0\) and the assay gives the full one bit. At a 10 percent error rate it gives about 0.53 bits. At \(\epsilon=0.5\), the result is random and gives no information. This loss is aleatoric uncertainty, meaning noise inherent to the observations rather than uncertainty about the model [4]. It comes from the assay process itself and cannot be removed simply by fitting a better surrogate.
The same correction carries into continuous assays as observation noise in the likelihood. The predictive distribution for \(y_x\) contains both uncertainty about the latent function and irreducible assay variance. This is not just a theoretical nuisance. Another paper looked at more than 7,600 ChEMBL measurements and found an average difference of 0.44 pKi, with a standard deviation of 0.54. BAX integrates over that noisy predictive distribution, so a noisy assay produces a smaller expected reduction in output entropy [2]. Replicates can help when their errors are independent, and a heteroscedastic model can represent compounds whose assay variance differs, but the acquisition function should not treat aleatoric noise as learnable model uncertainty. With the information measure defined for a realistic assay, we can now turn it into an experimental policy.
Learning everything is a waste of assays
Bayesian Algorithm Execution turns that information measure into a rule for choosing the next experiment. It starts with an expensive black-box function \(f\), a probabilistic surrogate for that function, and an algorithm \(\mathcal{A}\) whose output we want to know [2]. In drug discovery, \(x\) can be a molecule, \(f(x)\) can be an assay readout, and \(\mathcal{A}\) can rank the library and return the top \(k\) molecules.
The next experiment is chosen by the mutual information between an unseen assay \(y_x\) and the algorithm output \(O_{\mathcal{A}}\)
\[ x_t = \arg\max_x I\!\left(O_{\mathcal{A}}; y_x \mid D_t\right). \] \[ I\!\left(O_{\mathcal{A}}; y_x \mid D_t\right) = H\!\left(O_{\mathcal{A}} \mid D_t\right) - \mathbb{E}_{y_x}\!\left[ H\!\left(O_{\mathcal{A}} \mid D_t \cup \{(x,y_x)\}\right) \right]. \]This is expected information gain. A useful assay is one that is expected to change our belief about the final output. Ordinary uncertainty sampling instead queries where the model itself is least certain [6]. A compound can therefore have a very uncertain predicted affinity and still be irrelevant if it almost never appears in the top set. Targeting a decision rather than the whole function has precedent in entropy search, which asks which evaluation will reduce uncertainty about the optimizer [7]. BAX extends that idea by letting \(\mathcal{A}\) define the output we care about. The objective is conceptually clean, but evaluating entropy over many possible output sets is the next obstacle.
Nice objective, but can we compute it?
This is where the symmetry from the binary-screen example does real computational work. The output may be a set of molecules, and the entropy of that set usually has no closed form. The symmetric form moves the calculation back to the scalar assay value
\[ I(O_{\mathcal{A}};y_x \mid D) = H(y_x \mid D) - \mathbb{E}_{O_{\mathcal{A}}}\!\left[H(y_x \mid O_{\mathcal{A}},D)\right]. \]Now the entropy is over one scalar assay value rather than a combinatorial set. InfoBAX estimates this with Monte Carlo samples. Draw several functions from the surrogate posterior, run \(\mathcal{A}\) on each function, keep the output locations and values, then ask how much conditioning on those outputs would reduce predictive variance at every candidate.
With a Gaussian predictive distribution, the constants in Gaussian entropy cancel and the practical score has a simple form
\[ \alpha(x) \approx \frac{1}{2}\log \sigma_t^2(x) - \frac{1}{2\ell}\sum_{j=1}^{\ell}\log \sigma_{t,j}^2(x). \]This is the Monte Carlo form of the output-value acquisition in Eq. 9 of the original paper [2]. Here \(\sigma_t^2(x)\) is current predictive variance and \(\sigma_{t,j}^2(x)\) is the variance after conditioning on the output values from posterior sample \(j\), using the standard GP posterior covariance update [8]. If likely outputs never affect a candidate, its variance barely changes and its score stays low. I find that interpretation useful. InfoBAX is measuring relevant uncertainty rather than uncertainty by itself.
Why uncertainty sampling sucks here
Eq. 9 gives us a concrete way to answer that question. For each candidate, it compares current predictive variance with the variance left after conditioning on output values from sampled worlds. If learning about a candidate helps distinguish the possible top-five sets, that conditioning changes its variance and the score is high. If the candidate is mostly unrelated to those sets, almost nothing changes and the score stays low.
The twelve-candidate example below shows the full chain. The first panel shows what the surrogate currently believes. M3 has the widest predictive interval, so ordinary uncertainty sampling would choose it. The second panel runs the top-five algorithm across 400 posterior samples. M3 appears in the output only 3 percent of the time. Since likely output sets rarely involve M3, conditioning on their values tells us almost nothing about it. The third panel therefore gives M3 a near-bottom Eq. 9 score despite its large uncertainty.
What we believe now
M3 has the widest interval
Run top five on 400 sampled worlds
M3 enters the top five in only 3%
What Eq. 9 scores
M6 is informative about the selected set
The same problem appears in a road-map example from the paper. The twelve-candidate example above is its drug-discovery version. There, road costs are unknown and expensive to query. Dijkstra's algorithm would need the full graph, but identifying the shortest route depends on only a fraction of its edges. The same relevance filter applies. Uncertainty sampling spreads queries across uncertain roads, while InfoBAX concentrates them around candidate routes because those measurements can change the final answer.
Limitations
1. Assays come in batches
InfoBAX is written as a sequential loop that chooses one query per round. A greedy batch of \(q\) compounds requires repeating that selection process \(q\) times. That is awkward for drug discovery because assays are usually run in plates of 48 or 96 rather than one compound at a time.
A follow-up NeurIPS 2024 paper introduced PS-BAX, which gives a cleaner batch construction [3]. Draw \(q\) posterior function samples, run \(\mathcal{A}\) on each one, and obtain \(q\) sampled output sets. Within each set, choose the point with the largest posterior uncertainty. Each posterior sample proposes one well, so the whole batch can be assembled in parallel without scoring every candidate under every sample.
The second step may look like ordinary uncertainty sampling, but the search space is different. Uncertainty sampling chooses the compound with the largest predictive uncertainty across the entire library. PS-BAX first draws one plausible function and runs the target algorithm on it to create a plausible output set. It then chooses the most uncertain compound only within that set. The sampled output set acts as a relevance filter. A compound can have the largest uncertainty in the library and still be skipped if it is outside the output we currently care about, as the lower panel in Fig. 6 shows.
PS-BAX uses one posterior sample per round
| InfoBAX | PS-BAX | |
|---|---|---|
| Samples per round | \(\ell\) | 1 |
| Candidates scored | Every candidate | Only the output set |
| Batch of \(q\) | \(q\) greedy passes | \(q\) samples |
| Runtime per iteration | 1× | 6 to 600 times faster |
| Accuracy | Not reported | Better on 5 of 8 and similar on 3 |
2. Everything rests on the surrogate being well calibrated
Eq. 9 only knows what the surrogate tells it. The model draws plausible affinity landscapes, decides which compounds enter each sampled top set, and estimates how much an assay would reduce uncertainty. If its intervals are too wide, too many compounds look relevant and the method explores more than it needs to. If they are too narrow, a potent compound that the model underrates may never appear in a sampled top set. It then gets a low score, is never assayed, and the model never gets a chance to discover its mistake.
This is easy to miss with molecular data. A random split can put close analogues in both training and test data, while scaffold-aware uncertainty tests [9] and time-based validation [10] expose harder shifts. Public affinity data also mix laboratories and assay formats with different noise levels [5].
3. Can we use a model other than a GP?
Yes, but the practical version of Eq. 9 asks the surrogate to do three things. It must draw one coherent landscape across the whole library, update its uncertainty cheaply after pretending that a sampled output set was measured, and make entropy easy to calculate. A GP handles all three. With its hyperparameters fixed, each pretend update is linear algebra rather than another model fit, and Gaussian entropy reduces to the log-variance ratio in Eq. 9. Any replacement has to recover these same conveniences [2].
A deep ensemble handles the first requirement by treating each member as one coherent landscape, but the other two are harder [11]. Pretending that new points have been measured usually means updating every member for every sampled set. With M ensemble members and ℓ sampled output sets, the number of neural-network updates scales as O(Mℓ) per acquisition round, rather than one GP matrix update for each sampled set. The ensemble's entropy also has no simple formula. A GP head on learned neural features [12] or a last-layer Laplace approximation [13] keeps the neural representation while restoring Gaussian updates. PS-BAX takes a different route. It skips the pretend updates and entropy calculation, so an ensemble only needs coherent samples and a useful uncertainty estimate [3].
Potency is not enough
A real drug-discovery campaign rarely has one objective. We may want strong on-target binding, weak off-target binding, good solubility, low toxicity, and a novel scaffold. Collapsing all of that into one weighted score forces us to choose the trade-offs in advance. A cleaner target is the Pareto set, which contains the compounds for which no other compound is better on every objective.
BAX can target that set by changing what \(\mathcal{A}\) returns. A multi-output surrogate predicts a vector of properties for each molecule. We draw a joint plausible landscape across both compounds and properties, run \(\mathcal{A}\) on each draw, and keep the resulting Pareto set. Hard requirements can come first, such as removing compounds that fail a toxicity or solubility cutoff. The acquisition function then asks which assay would tell us the most about membership in the remaining Pareto set.
The query can also be more specific than choosing a compound. If one experiment measures one property, we can choose a compound-property pair and rank it by information gained per unit cost. A cheap solubility measurement may be more useful than another expensive affinity assay if it decides whether a compound stays on the Pareto front. If one panel returns several properties at once, the Gaussian entropy calculation becomes multivariate. The log variance in Eq. 9 is replaced by the log determinant of the predictive covariance matrix.
The important technical detail is that the property samples must be joint. Independent models would miss correlations such as the trade-off between potency and off-target activity. Pool-based active learning has already been tested at the scale of a 100-million-molecule virtual screen [14], and DiscoBAX has used BAX to target diverse genomic intervention sets [15]. A prospective multiobjective compound campaign would be the next test.
The Shannon connection stays the same. The best next experiment is the one expected to remove the most uncertainty about the feasible Pareto set, not necessarily the compound or property we currently understand least.