---
title: "Constrained Bayesian Optimization with Noisy Experiments (2018)"
description: "How noisy expected improvement guides constrained Bayesian optimization, with efficient integration and evidence from randomized experiments."
canonical: "https://research.elamur.ai/free/en/papers/letham-2018-constrained-bayesian-optimization-noisy-experiments/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/letham-2018-constrained-bayesian-optimization-noisy-experiments/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Constrained Bayesian Optimization with Noisy Experiments

# Constrained Bayesian Optimization with Noisy Experiments

Paper · 2018 · Benjamin Letham, Brian Karrer, Guilherme de Lima Ottoni et al.

**Authors:** [Benjamin Letham](https://md.research.elamur.ai/free/en/authors/benjamin-letham/), Brian Karrer, Guilherme de Lima Ottoni and Eytan Bakshy · **Year:** 2018 · **Venue:** Bayesian Analysis · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**307** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2646476955) · Bayesian Analysis · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [DOI 10.1214/18-ba1110](https://doi.org/10.1214/18-ba1110)
- [arXiv 1706.07094](https://arxiv.org/abs/1706.07094)
- [OpenAlex](https://openalex.org/W2646476955)

## Deep dive: Constrained Bayesian Optimization with Noisy Experiments

How noisy expected improvement guides constrained Bayesian optimization, with efficient integration and evidence from randomized experiments. · about 36 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Choosing a system’s settings through experiments becomes difficult when small gains are buried in measurement noise. A configuration may appear better because it received favorable traffic, while an apparently acceptable result on memory use or quality may hide a real violation. Running more experiments can clarify the picture, but experiments consume time and limited resources. This paper develops a way to choose promising configurations while accounting for uncertainty about both their performance and their acceptability. Its central contribution is noisy expected improvement, or NEI, an acquisition function for constrained Bayesian optimization: a rule for deciding which configuration should be tested next.

The starting point is expected improvement, which values a candidate according to how much it might improve on the best acceptable configuration already evaluated. That rule is straightforward when experimental outcomes are exact. Under noise, however, neither the best configuration’s true performance nor its feasibility is known. Earlier approaches described in the paper replace those uncertain quantities with estimates or probability thresholds. NEI instead averages improvement over possible underlying outcomes consistent with the observations. Each possible outcome gives a different account of which previous configurations are feasible and which is best. Averaging across these accounts preserves uncertainty that a single estimated incumbent would discard.

This calculation requires an integral whose dimension grows with the accumulated observations. The authors make it practical through quasi-Monte Carlo integration, using Sobol sequences to cover the integration domain more evenly than ordinary random sampling. They also organize the computation so that expensive preparation can be reused while searching for the next configuration. The same construction accommodates experiments that are still running: their unknown outcomes enter the averaging alongside uncertain outcomes from completed experiments. As a consequence, NEI supports both batches of experiments and asynchronous operation, where a new experiment can begin before the others finish.

The evidence combines controlled synthetic studies with production experiments. Across the synthetic constrained problems, NEI generally found better feasible solutions than the tested alternatives, while a comparison using otherwise matching machinery isolates the benefit of replacing noise heuristics. In the integration study, 16 quasi-Monte Carlo samples matched the optimizer-distance performance obtained with 50 ordinary Monte Carlo samples. At Facebook, the method improved a ranking system through a batch of 3 proposals following 31 initial configurations. It also guided compiler tuning, where the median estimated feasibility probability was 0.89 for NEI proposals and 0.77 during initialization. These findings support the method for expensive, noisy searches over continuous parameters. They do not establish a universal advantage: NEI assigns no benefit to exact repetitions, uses a short-horizon utility, and relies on assumptions about relationships among the measured outcomes.

### Ideas worth borrowing

Average over uncertain incumbents. A noisy search does not have a single reliably known best observation. Treating an estimated winner as certain can make later decisions depend heavily on accidental measurement error. The reusable idea is to evaluate a proposed action across plausible versions of the current evidence, allowing the identity and quality of the incumbent to change between them. This applies whenever a decision compares a new option with an uncertain existing choice. The paper’s contribution is especially useful when acceptability is also uncertain, because the incumbent may disappear entirely in some plausible realizations.

Define failure before optimizing improvement. The authors explicitly assign utility to the situation in which no acceptable configuration has been found. This prevents the search criterion from becoming undefined precisely when constraints make the problem difficult. It also makes the preference between finding feasibility and improving performance visible through a penalty parameter. Elsewhere, the same discipline can help with experimental design, engineering search, or resource allocation: specify the value of an acceptable result and the consequence of having none before choosing a numerical optimization rule. The value judgment remains a design choice, but it is exposed rather than buried inside a fallback.

Treat unfinished work as uncertainty to integrate. A running experiment already occupies resources and may soon produce a useful result. Selecting the next experiment without considering that pending information risks redundant proposals. NEI incorporates possible outcomes of unfinished experiments using the same machinery that handles uncertainty in completed ones. The broader lesson is that incomplete work need not force a workflow to stop. If its possible outcomes can be represented jointly with the existing evidence, decisions can account for what that work may contribute while continuing to use available capacity.

Improve integration before simplifying the decision. A difficult expectation often invites a convenient approximation to the underlying decision problem. Here, the authors retain the desired utility and improve the numerical calculation instead. Quasi-Monte Carlo points provide more even coverage than ordinary random samples, reducing the sampling effort needed to locate a useful maximizer of the acquisition function. This is transferable to other procedures that repeatedly optimize an expectation. The relevant question is whether a better integration design can preserve the intended decision criterion at an acceptable computational cost.

Cache what does not depend on the candidate. Sampling possible underlying outcomes and preparing conditional Gaussian processes are expensive, but these operations do not change as the candidate location moves during acquisition optimization. The implementation performs that preparation once and reuses it. This separation matters because selecting a single experiment can require many evaluations of the acquisition function. More generally, an apparently expensive decision rule may become practical when its calculation is divided into reusable preparation and inexpensive candidate-specific work.

Evaluate finding and choosing separately. A search can encounter a good configuration yet fail to recognize it from noisy measurements. Conversely, a conservative selection rule can identify an acceptable point while missing a better one that the search never tested. The paper therefore examines both the best feasible configuration actually encountered and the configuration selected from posterior estimates. This distinction is worth carrying into [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) for other adaptive systems. The search policy and the final recommendation solve related but different problems, and success at one does not automatically establish success at the other.

### How Mova uses it

For Mova, the small transparent language system written in Rust, the defensible connection is a possible approach to experimental tuning. There is no basis for claiming that Mova already implements NEI or that any Mova component has been optimized with it. The paper offers a design for choosing experiments around a system, instead of a language-processing mechanism that can simply be inserted into its core.

A concrete application would begin with a set of adjustable numeric settings and a repeatable evaluation process. An engineer would specify an outcome to improve and additional outcomes that must remain acceptable. For instance, a proposed evaluation could seek better task performance while limiting resource consumption. These are possible Mova experiments, not results reported for Mova. The connection to the paper becomes meaningful only if evaluations are expensive enough to justify adaptive selection and noisy enough that their uncertainty affects decisions.

The important requirement would be to preserve uncertainty in the evaluation record. A measurement should carry information about its error, rather than entering the optimizer as an exact score. The paper’s randomized experiments supply mean estimates together with standard errors, and its synthetic comparisons give every method the observation-noise variance. A Mova implementation inspired by this work would therefore need a clear account of how repeated evaluations or randomized experimental assignments produce uncertainty estimates. Without that account, adopting the acquisition formula alone would miss a central part of the method.

Transparency could come from retaining the decisions that define the optimization problem. An experimental record could state the objective, the constraints, the observations, their uncertainty estimates, the treatment of pending runs, and the rule used to choose the final configuration. Such a record would help distinguish a candidate selected for exploration from a configuration judged ready for use. It would also expose whether an apparent improvement depends on a permissive feasibility rule. These are proposed engineering practices motivated by the paper’s separation of search, uncertainty, and identification.

The method’s domain restrictions matter for Mova. Searching over continuous numeric settings is a closer fit than choosing among a small collection of unrelated symbolic alternatives. NEI gives no acquisition value to repeating an already evaluated point, which is a serious obstacle when the available choices are discrete or exact repetitions are needed to establish reliability. Rounding continuous proposals to integer settings, as the compiler experiment does, is possible, but that example does not establish a general solution for discrete language-system design.

The most useful borrowing may therefore be conceptual before it is computational: do not let an uncertain best score become a certainty inside the next decision. Mova could adopt that principle in an experimental tuning layer while keeping its language-processing behavior separate and inspectable. Whether the full Gaussian-process and quasi-Monte Carlo machinery is worthwhile would depend on the cost, noise, and structure of actual Mova evaluations. The paper supplies evidence for its own experimental settings, not a measured benefit for Mova.

### The problem and its context

#### Experiments as expensive function evaluations

The paper studies systems controlled by continuous parameters whose effects cannot be calculated reliably in advance. A parameter may govern how much content an indexer retrieves, when a compiler performs an optimization, or how a service allocates resources. Several settings can interact, so changing one in isolation may give a misleading picture of what works when the others also change. The practical goal is to identify a good joint configuration without exhaustively testing the entire space.

Randomized experiments make these configurations measurable. A system runs under different settings, and the experiment estimates the resulting outcomes. In an Internet service, this often takes the form of an A/B test. The difficulty is that an experiment takes time and consumes samples that could have supported other tests. Manual tuning therefore tends to explore only a limited portion of the available possibilities.

Bayesian optimization addresses this scarcity by using earlier evaluations to choose later ones. A Gaussian process represents a distribution over possible objective functions. After observing experimental results, its posterior supplies both an estimated outcome and uncertainty at each candidate configuration. An acquisition function then translates these predictions into a preference for the next experiment. High estimated performance encourages exploitation, while uncertainty can make exploration valuable.

The paper places this approach within the earlier development of expensive black-box optimization. Jones and colleagues introduced expected improvement for settings where evaluating the objective is costly but the returned value is exact. Later work used Bayesian optimization for hyper-parameter selection in [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/), where an evaluation involves fitting a predictive system and measuring its performance. The authors’ motivation is a different experimental regime, with substantial measurement error, operational constraints, and opportunities for parallel testing.

#### Why randomized experiments change the problem

The first difficulty is noise. An experiment estimates the effect of a configuration rather than revealing an exact function value. In the production setting described by the authors, uncertainty can be comparable to the effects being sought. The apparent winner may therefore reflect favorable noise, while a promising alternative may have received an unfavorable estimate.

Gaussian-process regression can accommodate noisy observations. The harder question is what expected improvement should use as its reference. With exact evaluations, the best observed value is known. With noisy evaluations, choosing the smallest recorded number can reward measurement error. Replacing it with the smallest posterior mean is more stable, but still treats an uncertain reference as though its value were settled.

The second difficulty is that performance has several dimensions. Improving one outcome can harm another. The paper illustrates this with image quality and data use, or application speed and reliability. A search that optimizes only its headline metric may produce a configuration that cannot be deployed. Constraints express these additional requirements, but their measured outcomes are noisy too. A promising configuration may be only probably feasible.

The third difficulty is parallelism. Multiple experiments can frequently run simultaneously, and wall time may be limited. A purely sequential procedure waits for each result before choosing the next test. A practical optimizer should instead propose a batch or fill an available experimental slot while other tests remain unfinished. That requires reasoning about information and improvements that pending experiments may deliver.

These difficulties interact. A noisy objective makes the incumbent uncertain; noisy constraints make its eligibility uncertain; pending experiments may change both before the next result arrives. The paper’s central aim is to handle these uncertainties within a common expected-utility calculation.

#### Earlier treatments of noisy improvement

The paper describes a plug-in approach that evaluates improvement against the minimum posterior mean. This keeps the familiar analytic expected-improvement formula available. Its attraction is computational simplicity, but the authors report that it can encourage clusters of proposals and insufficient exploration under substantial noise. They also cite earlier evidence of slow convergence for this strategy.

Augmented expected improvement modifies the acquisition value with a multiplier intended to discourage excessive exploitation. It also changes how the effective best solution is selected, using a quantile-based criterion. The paper treats this as a useful empirical adjustment, while emphasizing that the multiplier does not follow from a specified utility.

Quantile expected improvement provides another alternative. It substitutes a quantile for the incumbent’s mean and optimizes expected improvement in that quantile. According to the paper, this retains an analytic expression and has been applied to allocating computation under variable fidelity. These approaches address noisy objectives, but extending them to uncertain constraints requires additional decisions about feasibility and about how constraint uncertainty should affect the criterion.

For constrained optimization, earlier expected improvement multiplies ordinary improvement by the probability that the candidate meets every constraint. That construction is simple when the best previously feasible value is known. Under noisy constraints, however, the optimizer must decide which previous observations qualify as feasible before it can establish the reference value.

One earlier strategy requires each constraint to hold with a chosen posterior probability. If no point qualifies, the search temporarily maximizes feasibility probability alone. The authors explain why this can be problematic with large measurement error: repeated or nearby evaluations may be favored until a good-looking configuration crosses the required confidence threshold. The objective can cease to influence selection during that process.

#### Alternatives and the paper’s chosen route

The paper also discusses methods that seek information about the optimizer rather than direct improvement at the proposed point. Entropy-based approaches aim to reduce uncertainty about where the best configuration lies. Predictive entropy search had already been adapted to constraints and to batches, but the authors emphasize the complexity of the approximations required to calculate and optimize it.

Knowledge gradient values a measurement through its expected effect on a subsequent choice of the best point. It handles noisy observations naturally, and batch variants existed. The paper explains that adding uncertain constraints would require substantial changes to the internal best-point selection problem. Thompson sampling provides another route, selecting configurations by optimizing individual draws from a Gaussian-process posterior.

The authors choose to retain expected improvement and derive its noisy form from the utility it already implies. This preserves a comparatively direct interpretation: how much does testing this configuration increase the value of the best feasible tested configuration, on average? The innovation is to integrate uncertainty in the reference observations rather than replace it with a single heuristic estimate.

### The method, step by step

The method begins with a constrained search problem, gives a precise meaning to improvement, and then averages that improvement over uncertainty in previous experimental outcomes. Numerical integration makes the resulting rule computable. The implementation finally uses that rule to choose new experiments, either individually or while other evaluations remain pending.

Choosing experiments with noisy expected improvement The steps in order.

#### State the objective and constraints

The paper writes the search as a minimization problem:

```
minₓ f(x) subject to cⱼ(x) ≤ 0, j = 1, …, J
```

Here, x is a vector of adjustable parameters. The function f gives the objective to minimize. Each cⱼ is a constraint function, and J is the number of constraints. A configuration is feasible when every constraint value is at most zero. Both the objective and the constraints are black boxes: they are learned through evaluations rather than supplied as known analytic functions.

This form is a convention for describing the method. The ranking experiment seeks to increase its objective and imposes a lower bound on another metric, whereas the compiler experiment seeks to decrease CPU time without raising peak memory. The essential requirement is an explicit distinction between the outcome being optimized and the conditions that define acceptability.

The measured objective follows an additive-noise description:

```
yᵢ = f(xᵢ) + εᵢ, with εᵢ ∼ N(0, τᵢ²)
```

The symbol xᵢ identifies an evaluated configuration, yᵢ is its observed outcome, and f(xᵢ) is the underlying objective value. The error εᵢ has a normal distribution with mean zero and variance τᵢ². Different observations may have different variances, allowing heteroscedastic noise. Constraint observations are treated in the same general manner.

The objective data therefore include locations, measurements, and uncertainty estimates. A Gaussian process is fitted to these data, with corresponding processes for the constraints. At a candidate x, the objective posterior has mean μ_f(x) and variance σ_f²(x). The mean summarizes the estimated underlying value; the variance expresses remaining uncertainty about that value.

Observation uncertainty and posterior uncertainty play different roles. The first characterizes the experimental measurement. The second reflects what is known about the underlying function after combining measurements with the Gaussian-process assumptions. NEI needs the posterior distribution of true outcomes at previous locations, not simply another draw of their measurement errors.

#### Recover ordinary expected improvement

With exact observations, the best evaluated objective value is available:

```
f* = minᵢ f(xᵢ)
```

The symbol f* denotes the smallest objective among the evaluated configurations xᵢ. Since the task is minimization, a lower value is better. A candidate improves on this incumbent only if its outcome is smaller.

Expected improvement averages the possible positive gain:

```
α_EI(x | f*) = E[max(0, f* − y) | y ∼ g(x | D_f)]
```

The acquisition value α_EI measures the expected improvement from testing x. The variable y ranges over objective outcomes distributed according to g, the Gaussian-process posterior at x. The data D_f contain the objective observations. The maximum makes improvement zero whenever the candidate fails to beat f*.

For a normally distributed posterior, this expectation has an analytic form:

```
α_EI(x | f*) = σ_f(x) z Φ(z) + σ_f(x) φ(z)
```

Here, σ_f(x) is the posterior standard deviation. The function Φ is the standard normal cumulative distribution function, and φ is its density. The standardized quantity z compares the incumbent with the candidate’s estimated objective:

```
z = (f* − μ_f(x)) / σ_f(x)
```

The numerator is the improvement suggested by the posterior mean, while the denominator scales it by uncertainty. Together, these expressions explain why expected improvement can favor a point whose mean is not currently best: uncertainty leaves room for a sufficiently favorable outcome.

Under noisy observations, the difficulty is no longer the normal expectation at a candidate alone. The reference f* is also uncertain. Using a posterior mean in its place simplifies the calculation, but removes uncertainty and relationships between the candidate and the reference. NEI retains that information by considering their joint posterior structure.

#### Include feasibility in the utility

For exact constraint observations, define the indices of feasible evaluated points:

```
S = {i : cⱼ(xᵢ) ≤ 0 for every j}
```

The set S contains an index i only when configuration xᵢ meets all constraints. The set may be empty. That possibility matters because improvement relative to a best feasible point has no ordinary reference until an acceptable configuration has been found.

The authors make the underlying utility explicit:

```
u(n) = −minᵢ∈S f(xᵢ) if |S| > 0; otherwise u(n) = −M
```

The quantity u(n) is the utility after n evaluations. The notation |S| denotes the number of feasible observations. When at least one exists, utility is the negative of the best feasible objective, so better minimization results have higher utility. When none exists, utility takes the penalty value −M.

The parameter M determines how undesirable it is to finish without an acceptable configuration. The paper recommends making it sufficiently large that finding feasibility is preferred. Its suggested construction places M above the largest Gaussian-process objective estimate in the search region. The parameter affects the acquisition only in realizations where no previous feasible point exists.

Improvement is the change in this utility:

```
I(xₙ₊₁) = u(n + 1) − u(n)
```

The symbol xₙ₊₁ is the proposed next configuration, and I is its utility gain. An infeasible candidate contributes no gain. If it supplies the first feasible result, its improvement is determined by the penalty and its objective. If feasible observations already exist, it contributes only when it beats their best objective.

The complete case distinction is:

```
I(xₙ₊₁) = 0 if infeasible; M − f(xₙ₊₁) if feasible and Sₙ is empty; max(0, f_c* − f(xₙ₊₁)) otherwise
```

The set Sₙ refers to feasibility among the first n evaluations. The symbol f_c* is the best objective among those feasible points. The expression connects the initial search for acceptability with later performance improvement through a single utility.

Assuming independence between the objective and constraint processes, the candidate’s feasibility probability is:

```
P_feas(x) = ∏ⱼ₌₁ᴶ Φ(−μ_cⱼ(x) / σ_cⱼ(x))
```

The quantity P_feas is the probability that x satisfies every constraint under the posterior. For constraint j, μ_cⱼ(x) and σ_cⱼ(x) are its posterior mean and standard deviation. Each normal cumulative probability measures whether that constraint lies below its zero boundary; the product uses independence among the constraints.

When a feasible incumbent exists, constrained expected improvement becomes:

```
α_EIC(x | f_c*) = α_EI(x | f_c*) P_feas(x)
```

The symbol α_EIC denotes constrained expected improvement. Its objective-improvement term is multiplied by the probability that the candidate is eligible to provide that improvement. A configuration with a very attractive objective but little chance of meeting the constraints can consequently receive low acquisition value.

Without a feasible incumbent, the corresponding acquisition is:

```
α_EIx(x) = (M − μ_f(x)) P_feas(x)
```

Here α_EIx denotes the extension that covers the initially infeasible situation. The objective estimate still influences the preference among candidates. Increasing M makes feasibility dominate; a finite M allows better estimated objectives to distinguish candidates with equal feasibility probability.

This explicit treatment avoids a disconnected fallback that simply ignores the objective whenever no configuration clears a confidence threshold. It also reveals exactly where the designer’s valuation of feasibility enters the procedure.

#### Average over unknown underlying outcomes

Under noise, previous evaluations do not reveal their true objective and constraint values. Let fⁿ collect the true objective values at the n evaluated configurations. Let cⱼⁿ collect the corresponding true values for constraint j. Gaussian-process inference supplies joint distributions over these vectors:

```
fⁿ | D_f ∼ N(μ_f, Σ_f)
```

The vector μ_f and matrix Σ_f are the posterior mean and covariance of the underlying objective values at the observed locations. The conditioning data D_f contain the noisy objective measurements. The covariance is essential: plausible values at nearby or otherwise strongly related locations do not vary independently.

Each constraint has a corresponding posterior:

```
cⱼⁿ | D_cⱼ ∼ N(μ_cⱼ, Σ_cⱼ)
```

The data D_cⱼ are the noisy observations of constraint j. The vector μ_cⱼ and covariance matrix Σ_cⱼ describe uncertainty about that constraint’s true values at previous configurations. The collection cⁿ includes the vectors for all constraints.

NEI averages the exact-observation acquisition over these distributions:

```
α_NEI(x | D) = ∫∫ α_EIx(x | fⁿ, cⁿ) p(fⁿ | D_f) ∏ⱼ₌₁ᴶ p(cⱼⁿ | D_cⱼ) dcⁿ dfⁿ
```

The full data D include objective and constraint measurements. The density p(fⁿ | D_f) describes plausible objective histories, and each p(cⱼⁿ | D_cⱼ) describes a plausible constraint history. For every history, α_EIx computes improvement as if those underlying values were known. The integral averages those acquisition values.

A useful interpretation is to imagine several internally consistent accounts of what the completed experiments really achieved. In one account, a promising configuration may satisfy every constraint and become the incumbent. In another, it may be infeasible, leaving a different reference point. In yet another, no evaluated configuration may qualify. NEI evaluates the next candidate across all these possibilities rather than committing prematurely to one account.

The conditioning matters as much as the averaging. Each sampled history defines a noiseless conditional Gaussian process for evaluating candidates. If a candidate is strongly related to the incumbent, their values move together across the posterior. This can reduce the value of testing it compared with a point having the same marginal prediction but less dependence on the incumbent.

When observation noise disappears, the uncertain histories collapse to the known outcomes, and NEI becomes ordinary expected improvement. At an already evaluated location, the true outcome is already present within every sampled history. Re-evaluating that identical location cannot improve the history’s best tested result, so its NEI is zero. This property follows from the utility, with important consequences for replication.

#### Extend the same calculation to pending experiments

Suppose some proposed configurations are still being evaluated. Their true objective values and the values at completed configurations have a joint normal posterior. The method enlarges the integration to include the pending values, with a corresponding enlargement for the constraints.

In the noiseless batch construction discussed by the paper, the acquisition for another candidate is:

```
α_EIB(x | f*) = ∫ α_EI(x | min(f*, fᵇ)) p(fᵇ | D_f) dfᵇ
```

The vector fᵇ contains the objective values of pending candidates. The symbol α_EIB denotes the batch-aware acquisition. Within each possible pending outcome, improvement is measured against whichever is best: the current incumbent or the pending results. Averaging prevents the next choice from acting as if those earlier proposals did not exist.

NEI uses the same principle while also integrating uncertainty about completed experiments. For each additional proposal, it conditions on possible underlying outcomes of both groups. This produces a greedy batch procedure: candidates are selected successively, with earlier members treated as pending. It does not jointly optimize an entire batch in a single decision.

Asynchronous use follows naturally. When a slot becomes available, the optimizer accounts for experiments still running elsewhere, proposes a new configuration, and later updates its data when outcomes arrive. Noise and parallelism therefore use the same probabilistic construction rather than separate corrective rules.

#### Transform the integral for quasi-Monte Carlo sampling

The NEI expectation lacks an analytic solution in the form used here. Ordinary Monte Carlo would approximate it using random posterior draws. Because the integral includes all previous underlying outcomes, its dimension can become much larger than that of a batch-only expectation.

Quasi-Monte Carlo starts from integration over a unit cube:

```
∫_[0,1]ᵈ h(u) du ≈ (1/N) ∑ₖ₌₁ᴺ h(tₖ)
```

The function h is the integrand, u is a d-dimensional coordinate, and N is the number of evaluation points. The points tₖ lie inside the unit cube. Ordinary Monte Carlo selects them randomly. Quasi-Monte Carlo instead uses a sequence designed to cover the domain evenly.

The paper uses Sobol sequences. Their role is to reduce the clumping that can make random samples inefficient for integration. The authors discuss the usual Monte Carlo convergence order and a theoretical quasi-Monte Carlo rate, while also noting that practical behavior depends on the integrand. The useful claim for NEI is supported empirically: fewer quasi-Monte Carlo evaluations can provide an equally useful acquisition optimizer.

To apply this method, normal posterior variables must be obtained from cube coordinates:

```
y = A Φ⁻¹(u) + μ, with Σ = AAᵀ
```

The vector u lies in the unit cube, and Φ⁻¹ applies the inverse standard normal cumulative distribution function to its coordinates. The vector μ is the desired normal mean, while Σ is its covariance matrix. The matrix A is a factor of that covariance; the paper notes that a Cholesky factor can be used. The transformed vector y has the required multivariate normal distribution when u is uniform.

For NEI, the mean vector stacks the objective and constraint posterior means. The covariance is block diagonal under the assumed independence across functions. Applying the transformation produces a possible true objective history f̃ⁿ and constraint history c̃ⁿ. The tilde marks the values generated from an integration point.

The resulting approximation is:

```
α_NEI(x | D) ≈ (1/N) ∑ₖ₌₁ᴺ α_EIx(x | f̃ⁿ(tₖ), c̃ⁿ(tₖ))
```

Each tₖ is a Sobol integration point. The transformed histories f̃ⁿ(tₖ) and c̃ⁿ(tₖ) define one conditional exact-observation problem. The acquisition is the average of its improvement values across these histories.

#### Organize the computation for repeated candidate evaluation

A search for the acquisition maximizer evaluates many candidate locations. Reconstructing every conditional process at every location would waste substantial work. The authors therefore separate preparation from evaluation.

Preparation infers the kernel settings, obtains the relevant posterior distributions, generates the quasi-Monte Carlo histories, and constructs the conditional noiseless Gaussian processes. These conditional processes reuse the inferred kernel settings. Their covariance calculations remain computationally substantial, but they are independent of the candidate being scored.

Candidate evaluation then predicts at x using the cached conditional processes, calculates the appropriate constrained improvement in each, and averages. The analytic gradients of the conditional improvement expressions provide a gradient for the approximation. Standard nonlinear optimization can therefore search the acquisition surface.

In the reported experiments, the Gaussian processes use a Matérn 5/2 kernel. The authors infer posterior distributions for kernel hyper-parameters with NUTS, then use the posterior mean hyper-parameter values for predictions. They maximize NEI through repeated starts of the Scipy SLSQP optimizer. These choices describe the implemented procedure; NEI’s Bayesian averaging over function outcomes does not mean every source of uncertainty is integrated throughout every calculation.

The full loop alternates between preparing the acquisition from the current evidence, choosing configurations, running experiments, and updating the observations. Experimental mean estimates and standard errors supply the measurements and their uncertainty. The acquisition determines where to gather evidence next; a separate identification rule determines which tested configuration should ultimately be selected.

### Experiments and results

#### Controlled constrained searches

The synthetic experiments use objective and constraint functions whose true values are available to the researchers. This allows the authors to add measurement noise while retaining a reference for actual feasibility and objective quality. Unlike a production experiment, the simulation can reveal whether a configuration selected as acceptable really meets its constraints.

The test problems cover several constrained landscapes. The Gramacy problem has two parameters and two constraints. The constrained Hartmann 6 problem has six parameters and one constraint. The constrained Branin and Gardner problems each have two parameters and one constraint. The authors add normally distributed noise to objective and constraint evaluations, with the problem-specific noise variances specified in the supplement.

All compared procedures receive the actual observation-noise variance. This is a useful control because the experiment concerns how optimization handles known measurement uncertainty, rather than which procedure estimates noise most accurately. It also resembles the authors’ randomized experiments, where an estimated mean arrives with its standard error.

The optimization comparisons include NEI, an EI+heuristics implementation, Spearmint EI, and Spearmint PESC. EI+heuristics supplies the most direct comparison because it shares NEI’s Gaussian-process fitting and optimization routines. Its acquisition instead uses the best posterior mean among points feasible in expectation, with a separate noisy batch treatment. The paper states that these implementations coincide when there is no observation noise.

Spearmint EI provides a broader package-level baseline. Besides its treatment of the incumbent, it differs in inference, optimization, and techniques such as input warping. Spearmint PESC uses constrained predictive entropy search. These comparisons therefore assess complete working procedures, while the matched EI+heuristics comparison more narrowly addresses the effect of handling noise through integration.

Each run begins with the same 5 Sobol configurations. The search then proceeds through 9 batches, each containing 5 proposals, reaching 50 evaluations. Outcomes from a batch are incorporated before the next batch is selected. Each problem is repeated 100 times with independently generated observation noise.

The main search metric is the true objective of the best feasible configuration encountered by each stage. NEI performs most strongly overall, finding better solutions earlier than EI+heuristics. PESC matches NEI on the Gardner problem but trails EI+heuristics on the other problems. The plotted summaries report averages across runs and uncertainty through two standard errors.

Exact endpoint objective values are not stated in the text, so a numerical ranking of final objective scores cannot be reconstructed responsibly. The supported result is the reported pattern across the optimization trajectories. The computational cost is also relevant: the methods take approximately 10s per iteration, indicating that the more extensive NEI integral does not create a prohibitive runtime disadvantage in these experiments.

#### Accuracy and usefulness of integration

A separate study isolates the numerical approximation. The authors condition on 5 completed quasirandom locations and include another 5 as pending. They evaluate NEI with ordinary Monte Carlo and quasi-Monte Carlo over a range of sampling budgets. A calculation using 10^4 ordinary Monte Carlo samples supplies the reference approximation.

For the Gramacy problem, quasi-Monte Carlo needs approximately half the samples for comparable integration error. The reported integration-error curves aggregate 500 replicates. This tests whether the acquisition value itself is approximated accurately, but a search algorithm ultimately needs a good maximizer rather than a perfectly calibrated acquisition value everywhere.

The authors therefore optimize the approximated acquisition over 100 replicates and measure the Euclidean distance from the reference optimizer. This distance is expressed relative to the largest distance in the search space. The stated comparison is that 16 quasi-Monte Carlo samples perform comparably to 50 ordinary Monte Carlo samples on this optimizer-distance criterion.

Gramacy NEI approximation, samples for comparable optimizer distance Quasi-Monte Carlo reaches comparable optimizer-location accuracy with fewer samples.

**The numbers**

| System or setting | integration samples |
| --- | --- |
| Ordinary Monte Carlo | 50 |
| Quasi-Monte Carlo (this paper) | 16 |

The chart compares sampling effort under the stated equal-performance condition; its values are not objective improvements. Similar integration and optimizer-location findings appear for the other synthetic problems. Together, these studies support the practical role of quasi-Monte Carlo: it helps make the intended acquisition rule affordable without replacing that rule with a different utility.

#### Identifying a configuration after the search

The authors also examine the point recommended from the fitted posterior after each batch. One identification rule combines predicted objective improvement over a reference with feasibility probability. Another chooses the best estimated objective among configurations exceeding a feasibility threshold.

For Hartmann6, both NEI and EI+heuristics eventually identify configurations that are feasible, but NEI’s recommendations have better objective values. The corresponding analyses for the remaining problems appear in the supplement. This addresses a possible defense of the more clustered heuristic proposals: concentrating measurements might improve confidence enough to produce better final decisions. In these comparisons, that concentration does not overcome NEI’s advantage in locating better candidates.

The distinction remains important. The best feasible point visited uses knowledge of the synthetic truth. The recommended point uses only the posterior available to the procedure. Reporting both prevents a strong exploration result from being mistaken for automatic success at final selection.

#### Ranking-system experimentation

The ranking case concerns an indexer that collects items from multiple sources before a subsequent ranking stage. Its parameters influence which material reaches the ranker. The authors tune a 6-dimensional parameter space, aiming to improve an objective while maintaining a lower bound on a separate constraint metric.

The initialization tests 31 configurations generated through a scrambled Sobol sequence. NEI then proposes a batch of 3 configurations. The reported posterior results place the proposals near the feasibility boundary, where the performance tradeoff makes the constraint particularly consequential.

A feasible NEI proposal improves on both the baseline and the initial configurations. The experiment therefore demonstrates that a small adaptive batch can add value after quasirandom exploration in a live, noisy setting. It does not establish how much better NEI would have performed than another adaptive method, because no such live comparison is reported.

The objective and constraint axes are scaled by the largest effect. Accordingly, the figure establishes comparative improvement without disclosing an absolute production gain. The named metrics themselves are not specified. This limits business-level interpretation, while still illustrating the intended optimization setting: interacting numeric parameters, several simultaneous tests, substantial uncertainty, and an operational constraint.

#### Compiler tuning through randomized benchmarks

The server experiment tunes HHVM’s just-in-time compiler. The paper describes interacting decisions about inlining and code layout. Inlining can remove function-call overhead while increasing code size, and layout decisions affect instruction-cache behavior. Improving CPU performance must therefore be balanced against memory use.

Experiments run through Perflab. Separate machine groups use different configurations, and representative recorded traffic is replayed under high load. The measurements include CPU time and memory, with uncertainty estimates for comparison. Individual experiments take several hours, and the available machines typically support 3 evaluations in parallel.

The search adjusts 7 numeric runtime compiler flags. Some are integer-valued and are rounded after the continuous proposal is generated. The objective is lower CPU time, with peak memory constrained not to exceed the baseline.

Initialization uses 30 scrambled-Sobol configurations. NEI subsequently selects 70 additional traffic experiments. The authors identify experiment 83 as the configuration producing the strongest CPU reduction while also respecting the memory condition. They report that the resulting settings were incorporated into the open-source HHVM implementation.

The median posterior feasibility probability increases from 0.77 among initialization configurations to 0.89 among NEI proposals.

HHVM tuning, median posterior probability of feasibility NEI proposals have a higher median estimated chance of meeting the memory constraint.

**The numbers**

| System or setting | median probability of feasibility |
| --- | --- |
| Scrambled Sobol initialization | 0.77 |
| NEI proposals (this paper) | 0.89 |

Almost all NEI proposals also reduce CPU time relative to baseline. The paper scales CPU changes by the largest observed difference, so it does not provide an absolute CPU-time saving in the text. The feasibility chart likewise reports posterior probabilities, rather than an observed pass rate or a guarantee for every proposal. These qualifications preserve the useful conclusion: the adaptive phase concentrated experiments on configurations that looked better on both performance and acceptability.

### What the ablations show

The paper offers controlled comparisons and diagnostic analyses rather than a broad component-removal ablation study. Its strongest explanatory evidence comes from matching the implementation around NEI and EI+heuristics, separately testing the integration method, and examining the configurations and final recommendations produced by the search.

#### Isolating the acquisition’s treatment of noise

The NEI versus EI+heuristics comparison holds the Gaussian-process fitting and acquisition-optimization machinery constant. The key change is whether uncertainty about underlying previous outcomes is integrated or replaced with heuristics. Because the methods become identical without observation noise, the advantage in the noisy simulations is evidence for the importance of the acquisition’s uncertainty treatment.

This does not isolate every element of NEI independently. The experiment does not remove covariance while preserving all other calculations, or separately vary the uncertainty of the objective and each constraint. It establishes the value of the complete integrated treatment relative to the selected heuristic, under the tested noise conditions.

The observed proposal patterns help interpret that result. EI+heuristics tends to place candidates in clusters around locations with attractive objectives and unresolved feasibility. Such concentration can reflect the incumbent-selection rule: a point looks promising enough to revisit, but its acceptability remains uncertain. NEI distributes value according to possible underlying histories, including their correlations, rather than repeatedly acting on a single estimated incumbent.

#### Separating numerical approximation from search quality

The Monte Carlo comparison asks whether quasi-Monte Carlo is merely more accurate at estimating a number or actually more useful when maximizing the acquisition. The authors measure both. Lower integration error is accompanied by a more accurate acquisition optimizer for the same broad sampling effort.

That connection matters because optimization can tolerate some numerical error if it preserves the important shape of the acquisition surface. Conversely, a small average integration error could still be harmful if it creates a misleading local peak. Measuring optimizer distance therefore provides evidence closer to the operational purpose of the approximation.

The comparison does not establish a universal sample budget. The necessary integration effort can depend on the accumulated data, the constraint structure, and the acquisition surface. The reported sample counts are an experimental finding for the tested condition, instead of a general prescription for every application.

#### Checking the explanation based on identification

A heuristic that explores less might still be useful if its concentrated evaluations make the final recommendation more reliable. The paper directly tests this possibility through posterior-based identification.

The Hartmann6 results show that both methods eventually recommend feasible configurations, while the NEI recommendations retain better objectives. Therefore, the observed advantage is not limited to visiting a good configuration that the procedure cannot recognize. Similar supplementary analyses support that interpretation on the other problems.

The alternative identification criterion also matters. A search method should not appear successful only because the final selection rule happens to align with its behavior. Evaluating both a utility-based recommendation and a feasibility-threshold recommendation broadens the evidence, although it does not exhaust the decisions that a production team might make.

#### Explaining the gap between heuristic implementations

Spearmint EI and EI+heuristics both use heuristics, yet their results differ. The paper identifies an important distinction in how they define an eligible incumbent. EI+heuristics accepts feasibility in expectation. Spearmint EI requires posterior feasibility of at least 0.99 for each constraint.

With noisy measurements, that stricter condition often leaves no incumbent. Spearmint EI then selects candidates for feasibility probability without considering their objective. The resulting behavior can consume experiments establishing confidence instead of improving performance.

This analysis demonstrates sensitivity to a practical implementation choice. It does not prove that every threshold is inferior or that a threshold can never reflect a legitimate application requirement. It shows that using a threshold inside the acquisition can substantially change search behavior, providing motivation for integrating uncertainty there while retaining a separate final acceptance rule.

#### Interpreting the entropy-search comparison cautiously

The authors discuss why PESC may struggle in these noisy batch settings, but they do not establish a single causal explanation. They contrast their conditions with earlier studies using less noise or sequential evaluation and note the complexity of the approximations involved.

As a result, the result is best read as a comparison under the reported experimental regime. It supports NEI’s effectiveness for those noisy constrained batches. It does not demonstrate that entropy-based acquisition is intrinsically worse across noise levels, batch sizes, or implementations.

### Limitations

#### Author-stated limitation: exact replication has no value

NEI assigns zero acquisition value to a configuration already evaluated. Within each sampled underlying history, that location’s true outcome is already known, so testing it again cannot improve the best tested outcome. The utility does not reward the information a repeated noisy measurement might provide.

The authors explicitly identify this as a barrier to discrete optimization. When only a finite set of configurations is available, repeated measurements can be essential, and continually choosing a new nearby location may be impossible. The same issue can matter in continuous domains when replication reduces uncertainty more effectively than moving elsewhere.

In the reported experiments, nearby evaluations provide enough information around the optimum. That empirical adequacy should not be treated as a theorem about all continuous systems. The paper points to replication-aware design as future work, acknowledging that a different acquisition utility may be needed to value additional measurements at existing locations.

The compiler experiment does not remove this limitation. Rounding some continuously proposed parameters shows a practical accommodation of integer-valued flags, but it does not establish a general method for categorical choices or for systematic repetition after rounding.

#### Author-stated limitation: the utility is short-sighted

NEI values the direct improvement supplied by the proposed configuration. A truly infeasible configuration contributes no improvement, even if measuring it would clarify a boundary or improve predictions elsewhere. Such information could enable a better feasible decision later, but it is outside the immediate utility.

The authors discuss less myopic alternatives that value changes to the broader posterior. Knowledge gradient and integrated expected conditional improvement are examples in their account. Incorporating comparable informational value into NEI could improve its behavior, especially where useful learning requires experiments that are unlikely to become final choices.

This also limits the interpretation of parallel selection. Integrating pending outcomes makes a new proposal aware of unfinished experiments, but the batch is assembled greedily. The method does not claim to solve the full multi-stage planning problem over every future experiment and final deployment decision.

#### Author-stated limitation: independence assumptions

The implementation assumes independence among constraint functions and between the objective and constraints. Independence among constraints makes joint feasibility a product of individual probabilities. The authors explain that this part could be replaced with a multitask Gaussian process and sampling from a full covariance structure.

Dependence between the objective and constraints is more difficult. Their independence is needed for the analytic inner expected-improvement calculation. Extending that calculation to correlated outcomes remains an open problem in the paper.

This distinction is especially relevant to the production examples. An objective and a constraint may vary together across configurations, yet the acquisition’s probabilistic factorization still uses separate function processes. Observed association across settings should not be mistaken for an implemented joint posterior treatment of objective–constraint dependence.

#### Author-stated qualification: integration succeeds partly through structure

The NEI integral grows with the data, and quasi-Monte Carlo does not eliminate that growth. The authors suggest that its practical success comes in part from low effective dimensionality: nearby configurations and plausible incumbents matter more than distant points unlikely to be best.

That explanation is plausible and consistent with the reported results, but it is presented as an interpretation rather than a proven characterization of every NEI problem. A search in which many observations remain influential may behave differently.

The paper also argues that a sampled positive improvement corresponds to genuine positive expected improvement. This supports the usefulness of the sampling construction, but it should not be expanded into an unrestricted convergence guarantee for the complete constrained noisy procedure. Numerical optimization, finite integration, and the chosen function assumptions still influence which experiment is proposed.

#### Careful-reader limit: evidence about scale is bounded

The synthetic searches cover the stated low-dimensional constrained problems, while the production examples involve the reported ranking and compiler parameter spaces. These experiments demonstrate useful behavior within that range. They do not establish performance for arbitrarily large parameter vectors, very many constraints, or extremely long accumulated experimental histories.

The approximately similar iteration times are encouraging for the comparisons performed. They do not remove the cost of inference, conditional covariance calculations, or acquisition optimization as the data grow. Caching reduces repeated work but does not make the preparation cost independent of the number of observations.

Likewise, the integration sample comparison is conditional on the tested posterior and performance criterion. It cannot be converted into a general speedup factor for all deployments, and the paper does not supply a universal rule for choosing the integration budget.

#### Careful-reader limit: uncertainty information is favorable

The synthetic methods receive the actual noise variance, and the production experiments provide measurement uncertainty. This is an appropriate setup for studying acquisition under noisy observations, but it leaves another practical problem less explored: what happens when noise estimates are poor or the assumed observation distribution is unsuitable.

The Gaussian observation description and kernel assumptions shape the posterior histories over which NEI averages. Integrating those histories correctly does not establish that they represent every real source of uncertainty. Similarly, the implementation uses posterior mean kernel hyper-parameters for predictions, so uncertainty in those settings is not fully propagated through the reported procedure.

These are limits on the scope of the evidence, not demonstrations that the method fails under imperfect uncertainty estimates. The paper’s experiments isolate a useful question by supplying the uncertainty information that the acquisition needs.

#### Careful-reader limit: production gains are incompletely quantified

The case studies show successful applications, but they do not provide a controlled comparison with competing adaptive optimizers in the same live experiments. The compiler search compares its initialization and adaptive phases within a developing search history. The ranking study reports a successful NEI batch after initialization. Neither design independently measures the causal advantage of NEI over every alternative production workflow.

The reported production objective axes are scaled. Absolute CPU savings and the numerical size of the ranking improvement therefore cannot be recovered from the text. The evidence supports the existence and direction of useful improvements, not an independently specified operational gain.

The ranking description also contains a sign inconsistency: it characterizes the objective–constraint relationship as negative while giving ρ = 0.78. A careful reading should retain that inconsistency rather than silently change the coefficient or infer a missing sign. The clear substantive point is that the experiment involved a consequential tradeoff near the constraint boundary.

#### Careful-reader limit: search is not a safety guarantee

Feasibility probability is a decision quantity, not a guarantee that every experiment respects every constraint. NEI may test configurations that are uncertain or ultimately infeasible because its purpose is to discover an improved acceptable setting.

Final selection remains a distinct responsibility. The authors note that teams may prefer a manual choice informed by their understanding of objectives, uncertainty, and tradeoffs. Their automatic identification criteria are alternatives for settings requiring a fixed rule. The paper does not establish a universal acceptance threshold or replace application-specific judgment about deploying a configuration.

### What came after

No subsequent citing studies are identified here, so there is no supported account of later methods adopting NEI or improving on its results. The developments that can be described are the research directions the authors themselves leave open. Those directions should be read as proposals, without implying that the paper reports their completion.

One direction is replication-aware utility. NEI’s treatment of uncertain underlying outcomes is useful, but its current utility cannot reward measuring the same configuration again. Combining posterior integration with an explicit value for uncertainty reduction could address the tension between discovering new settings and confirming promising existing ones.

Another direction is broader information value. Experiments outside the feasible region may teach the optimizer how to find better acceptable settings later. A less myopic formulation would need to account for that future benefit instead of valuing only the proposed configuration’s direct contribution.

The authors also suggest using results about truncated multivariate normal distributions as an alternative route to the required expectations. Extending dependence across constraints is comparatively direct in their account, whereas joint dependence between objectives and constraints remains harder because it changes the analytic inner calculation.

Finally, the quasi-Monte Carlo construction has an application beyond noisy experiments within the paper’s own argument: it could accelerate the earlier batch expected-improvement procedure even when observations are exact. The lasting research question is therefore broader than a single acquisition formula—how to preserve a well-defined experimental utility while making its uncertainty-aware calculation practical.

## Cite

Cite as Benjamin Letham, Brian Karrer, Guilherme de Lima Ottoni and Eytan Bakshy. 2018. Constrained Bayesian Optimization with Noisy Experiments. Bayesian Analysis.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1214/18-ba1110](https://doi.org/10.1214/18-ba1110) · [arXiv 1706.07094](https://arxiv.org/abs/1706.07094)

```bibtex
@inproceedings{letham2018constrained,
  title = {{Constrained Bayesian Optimization with Noisy Experiments}},
  author = {Benjamin Letham, Brian Karrer, Guilherme {de Lima Ottoni} and Eytan Bakshy},
  booktitle = {Bayesian Analysis},
  year = {2018},
  doi = {10.1214/18-ba1110},
  eprint = {1706.07094},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1214/18-ba1110}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
