Papers
Topics
Authors
Recent
Search
2000 character limit reached

Constrained Expected Improvement in Bayesian Optimization

Updated 12 July 2026
  • Constrained Expected Improvement is a family of acquisition functions that extends traditional expected improvement by incorporating feasibility constraints into black-box optimization.
  • It models both objective and constraint functions with Gaussian processes, combining objective improvement estimates with probabilities of feasibility to guide sample selection.
  • Recent advancements include rigorous convergence analyses, extensions with bivariate Gaussian processes, and robust numerical approaches like LogCEI and particle methods.

Constrained expected improvement (CEI) denotes a family of acquisition functions that extend expected improvement from unconstrained Bayesian optimization to black-box optimization with constraints. In the canonical formulation, one seeks

minxXf(x)s.t.c(x)0,\min_{x \in \mathcal{X}} f(x)\quad \text{s.t.}\quad c(x)\le 0,

models the objective and constraint with Gaussian processes, defines the incumbent as the best feasible observation so far, and scores a candidate by the posterior expectation of feasible improvement. Under conditional independence of the objective and constraint posteriors, this yields the familiar product of objective EI and probability of feasibility; in more general settings, the same idea appears as expected hyper-volume improvement under an extended domination rule, as a chance-constrained criterion over uncertain inputs, or as a cost-gated modification of EI for cumulative-regret control (Wang et al., 16 May 2025, Feliot et al., 2015, Hu et al., 2022).

1. Canonical CEI in constrained Bayesian optimization

The standard CEI construction begins with a constrained Bayesian optimization problem

minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}

where f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R} and c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R} are expensive black-box functions and XRd\mathcal{X}\subset \mathbb{R}^d is compact. CEI models ff and cc with separate Gaussian processes,

f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),

and defines the best feasible incumbent by

ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.

The unconstrained improvement is

Itf(x)=max{ftf(x),0},I_t^f(x)=\max\{f_t-f(x),0\},

while constrained improvement introduces the feasibility indicator

minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}0

Under conditional independence of the objective and constraint posteriors, the CEI acquisition becomes

minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}1

with

minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}2

The next evaluation is chosen by

minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}3

For multiple independent constraints minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}4, the same construction yields

minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}5

so CEI explicitly trades off potential objective improvement against posterior feasibility (Wang et al., 16 May 2025).

2. Feasibility structures: extended domination and chance constraints

A more general formulation embeds objectives and constraints into a single ordered space. In BMOO, objective values minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}6 and constraint values minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}7 are mapped through

minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}8

and the extended domination rule is defined by

minxXf(x) s.t.c(x)0,\begin{aligned} \min_{x \in \mathcal{X}} &\quad f(x) \ \text{s.t.} &\quad c(x) \le 0, \end{aligned}9

where f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}0 is ordinary Pareto domination. This construction ensures that feasible points always dominate infeasible points, feasible points are compared by objectives only, and infeasible points are compared by constraint violations. The corresponding expected hyper-volume improvement is

f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}1

with f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}2 the current non-dominated region in joint objective–constraint space. When at least one feasible point is available, the infeasible component vanishes and the criterion reduces, up to a multiplicative constant, to the usual constrained EI or constrained EHVI; when no feasible point is known, the criterion remains well defined and directs the search toward reduced constraint violation rather than collapsing to a degenerate rule (Feliot et al., 2015).

A different generalization arises in chance-constrained optimization with uncertain inputs. Here controlled variables f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}3 and uncontrolled random inputs f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}4 define the problem

f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}5

The paper reformulates this as a deterministic constrained problem in the design space using

f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}6

With Gaussian-process models on the joint f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}7-space, the resulting expected feasible improvement is

f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}8

where f ⁣:RdRf\colon \mathbb{R}^d \to \mathbb{R}9 is EI for the GP of the mean objective c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}0, and c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}1 is the chance-constraint surrogate. The same work then uses a Stepwise Uncertainty Reduction criterion to choose the uncontrolled input at which the expensive simulator should be queried, thereby separating selection of the design point c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}2 from selection of the uncertainty realization c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}3 (Amri et al., 2021).

3. Dependence between objective and constraints

The canonical CEI factorization

c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}4

depends on independence between the objective and constraint models. A recent extension replaces independent Gaussian processes by a bivariate Gaussian process with a shared spatial correlation function c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}5 and constant cross-correlation parameter c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}6, so that

c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}7

Under this model, c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}8 is bivariate normal, and the constrained expected improvement

c ⁣:RdRc\colon \mathbb{R}^d \to \mathbb{R}9

no longer factorizes. Instead, Proposition 1 gives the closed form

XRd\mathcal{X}\subset \mathbb{R}^d0

where XRd\mathcal{X}\subset \mathbb{R}^d1 is the joint probability that XRd\mathcal{X}\subset \mathbb{R}^d2 and XRd\mathcal{X}\subset \mathbb{R}^d3, expressed using the bivariate normal cdf XRd\mathcal{X}\subset \mathbb{R}^d4, and XRd\mathcal{X}\subset \mathbb{R}^d5 is the associated conditional expected improvement derived from truncated bivariate normal moments. In this formulation, feasibility and improvement are coupled by XRd\mathcal{X}\subset \mathbb{R}^d6; positive or negative dependence alters both the joint event probability and the conditional magnitude of improvement.

The same paper reports a cure-process optimization case study with decision vector XRd\mathcal{X}\subset \mathbb{R}^d7, deformation as objective, and degree of cure as constraint with threshold XRd\mathcal{X}\subset \mathbb{R}^d8. In that application, the bivariate-GP CEI and the independent-GP CEI exhibit similar convergence, the final optima are very close, and the bivariate model is about three times more expensive computationally. The authors interpret this outcome as evidence that a separable covariance with a single global XRd\mathcal{X}\subset \mathbb{R}^d9 may be too restrictive for that application, even though the correlated CEI is theoretically the correct expression under dependence (Li et al., 30 May 2025).

4. Convergence theory and asymptotics

A central recent development is the first rigorous convergence-rate analysis of CEI. For the noise-free constrained problem with compact ff0, separate objective and constraint GPs, and at least one initial feasible sample, the simple regret

ff1

admits explicit upper bounds in both RKHS and GP-sampling settings. Under RKHS assumptions ff2, ff3, bounded kernels, and bounded RKHS norms, CEI satisfies

ff4

and

ff5

Under GP priors for ff6 and ff7, the same rates hold with probability at least ff8. The proof strategy combines posterior mean error bounds, lower bounds on feasibility probability at the true optimum, and information-gain control of posterior variance decay. The same analysis extends to multiple independent constraints by replacing ff9 with cc0; the rate in cc1 is unchanged, while the constants absorb the feasibility-probability factors (Wang et al., 16 May 2025).

A separate RKHS-based theory for unconstrained EI provides a useful comparison point. For fixed Gaussian-process priors and noiseless observations cc2 on a compact domain cc3, EI converges on any function in the associated RKHS, with worst-case loss

cc4

An cc5-greedy modification recovers essentially minimax rates for all finite cc6, and standard empirical-Bayes shrinkage

cc7

can cause EI to miss the true minimum with positive probability, whereas the alternative

cc8

recovers the fixed-prior rates in probability. The same source presents these results as informative for CEI design rather than as a direct CEI theorem. This suggests that explicit exploration and conservative uncertainty calibration may be as important for CEI as they are for EI, especially when feasibility regions are small or disconnected (Bull, 2011).

5. Acquisition optimization and numerical pathologies

The mathematical definition of CEI is often simpler than its numerical optimization. A recent analysis shows that analytic EI and its constrained, noisy, and parallel variants can vanish numerically in large regions of the search space. The difficulty increases as the number of observations, dimensionality of the search space, or number of constraints grow, because both acquisition values and gradients can underflow to zero. For classical CEI with independent outputs,

cc9

is commonly implemented as EI multiplied by feasibility probabilities, and the product of several small terms is especially prone to numerical collapse. LogEI and LogCEI address this by moving to log-space; in the sequential constrained case, the simplest LogCEI representation is

f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),0

so products of feasibility probabilities become sums of log-probabilities. The constrained experiments in that work show that LogCEI outperforms the naive CEI implementation and converges faster than SCBO, with gains that increase with dimensionality and the number of constraints (Ament et al., 2023).

A different strategy is to approximate and optimize the acquisition by particle methods. BMOO estimates

f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),1

with particles approximately uniform on the non-dominated region f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),2, updated by a Remove–Resample–Move scheme closely analogous to subset simulation. A second SMC population is then used in the input domain to concentrate candidate points where the probability of improvement is high. This particle formulation does not remove the acquisition-optimization problem, but it replaces fragile direct quadrature and naive global search by sequential importance sampling and MCMC moves adapted to the changing geometry of the dominated region (Feliot et al., 2015).

The phrase “constrained expected improvement” is sometimes used more broadly than feasibility-constrained black-box optimization. In noisy Bayesian optimization for maximizing an unknown function under cumulative-regret evaluation, the Expected Improvement-Cost algorithm constrains EI by an evaluation-cost inequality rather than by feasibility. With incumbent

f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),3

the evaluation cost is

f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),4

and only points satisfying

f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),5

are eligible. If no candidate satisfies the inequality, the current best sampled point is resampled. This is a risk- or regret-gated version of EI rather than a feasibility-constrained EI, but it preserves the same “expected gain under a constraint” structure and yields a high-probability cumulative-regret bound

f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),6

comparable to GP-TS and within a logarithmic factor of GP-UCB (Hu et al., 2022).

A second broadening places constrained EI inside Bayesian optimization of composite functions f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),7. In that setting, f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),8 is expensive and vector-valued, f(x)dataN(μtf(x),(σtf(x))2),c(x)dataN(μtc(x),(σtc(x))2),f(x)\mid \text{data}\sim \mathcal{N}(\mu_t^f(x),(\sigma_t^f(x))^2),\qquad c(x)\mid \text{data}\sim \mathcal{N}(\mu_t^c(x),(\sigma_t^c(x))^2),9 is cheap, and the acquisition is

ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.0

Constrained optimization is recovered by taking ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.1 as objective, ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.2 for ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.3 as constraints, and

ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.4

The same source states that, when specialized in this way, ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.5 is equivalent to the constrained EI proposed by Schönlau and Gardner. Because ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.6 is generally non-Gaussian under the posterior of ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.7, the paper develops Monte Carlo evaluation and an unbiased stochastic gradient estimator for differentiable ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.8, thereby reframing CEI as one instance of EI over transformed multi-output Gaussian-process posteriors (Astudillo et al., 2019).

A third, non-BO usage appears in reinforcement learning. In f-divergence constrained policy improvement, the policy-update step solves

ft=min{f(xi):c(xi)0, i=1,,t}.f_t=\min\{f(x_i): c(x_i)\le 0,\ i=1,\dots,t\}.9

The objective is the expected advantage under the new policy, and the constraint is an information-theoretic trust region. The paper explicitly interprets this as a constrained expected improvement problem: maximize expected improvement, measured by advantage, subject to a divergence constraint controlling the size and geometry of the update. Different Itf(x)=max{ftf(x),0},I_t^f(x)=\max\{f_t-f(x),0\},0-divergences, and in particular the Itf(x)=max{ftf(x),0},I_t^f(x)=\max\{f_t-f(x),0\},1-divergence family, alter the reweighting of actions, the exploration–exploitation profile, and the compatible critic objective (Belousov et al., 2017).

Across these formulations, the common structure is stable: an expected gain term is maximized under an auxiliary restriction that prevents unboundedly aggressive updates. What changes from one setting to another is the meaning of the restriction—feasibility, chance reliability, computational or regret cost, or information-theoretic distance—and the corresponding geometry of the admissible search step.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Constrained Expected Improvement.