Sequential design, optimization, and set estimation¶
Sequential procedures repeatedly update a GP model and choose new evaluation points. A sequential procedure runs these operations:
Store the current observations.
Select or update GP parameters.
Compute posterior means and variances on candidates or particles.
Evaluate a criterion.
Add one or more new observations.
The implemented procedures cover optimization, excursion-set estimation, and inverse-image estimation.
Base objects¶
SequentialPrediction stores observations and a model container. It updates
parameters and predictions as observations are added. Strategy classes add a
candidate set or particle set and a criterion for selecting new points.
SequentialStrategyGridSearch evaluates every point in a fixed candidate
set. It is deterministic when the candidate set can be enumerated.
SequentialStrategySMC and SequentialStrategyBSS use particles when a
fixed grid would require too many candidate points or would poorly represent
the target event.
Predictive quantities used by criteria¶
At a candidate point \(x\), the current model provides
where \(\mathcal{D}_n\) denotes the current observations. The sequential
criteria in gpmp-contrib are functions of \(\mu_n(x)\) and
\(s_n^2(x)\).
Expected improvement¶
For minimization, the examples call the maximization-form EI criterion on the
negated response. If z_best is the current observed minimum, the evaluated
criterion is
EI is the classical criterion used in efficient global optimization [4].
The implemented primitive expected_improvement(t, zpm, zpv) is written for
maximization. For \(Z(x)\sim\mathcal{N}(\mu,s^2)\) and threshold
\(t\),
when \(s>0\). The deterministic limit is \(\max(0,\mu-t)\) when \(s=0\).
Use cases:
fixed-grid EI for one or two dimensions, or for a prescribed candidate set.
SMC EI when the search domain is higher-dimensional and a grid would be inefficient.
Examples:
Example 10: expected improvement on a fixed grid for fixed-grid EI.
Example 11: expected improvement with SMC search for SMC EI.
Excursion sets¶
For a threshold u, the excursion set is
The posterior excursion probability is
with the deterministic zero-variance convention used by the code. The misclassification probability is
ExcursionSetGridSearch evaluates excursion probabilities and a weighted MSE
criterion on a fixed candidate set. The criterion is large near uncertain
threshold crossings, where a new observation can change the estimated excursion
set.
The implemented weighted criterion is
ExcursionSetBSS uses intermediate thresholds
and moves particles toward the target event. This follows the Bayesian subset simulation idea of using a sequence of intermediate targets and SMC particles [1].
Examples:
Example 30: excursion set on a fixed grid for fixed-grid excursion estimation.
Example 31: excursion set with BSS-style SMC search for BSS-style excursion estimation.
Set inversion¶
For an output-space box B, set inversion targets
For independent scalar output models and a box \(B=[a_1,b_1]\times\cdots\times[a_q,b_q]\), the implemented box probability is
The associated misclassification term is
\(\tau_B(x)=\min\{p_B(x),1-p_B(x)\}\). box_wMSE combines this term
with posterior variances and sums the per-output contributions.
SetInversionGridSearch computes posterior box-membership probabilities and a
box weighted MSE criterion on a fixed candidate set. SetInversionBSS uses a
particle set and moves from an initial box to a target box. Constrained and
multi-objective Bayesian optimization with SMC criteria is discussed by
Feliot et al. [3].
Examples:
Example 40: set inversion on a fixed grid for fixed-grid set inversion.
Example 41: set inversion with BSS-style particles for BSS-style set inversion.
SMC and BSS particles¶
SMC/BSS strategies maintain a particle population. Each update reweights particles with the change in target density, resamples when needed, and moves particles with a Markov kernel. The particle cloud is a numerical search object. It is not a posterior sample of GP covariance parameters.
For an event \(A_\lambda\) controlled by a threshold, a box, or an interpolation parameter, the particle target is proportional to an event probability inside the input domain:
Changing \(\lambda\) defines the sequence of intermediate targets used by BSS-style strategies.
Which strategy to use¶
Use a fixed grid when the candidate set is small enough to enumerate and when a regular candidate set represents the region that can be evaluated. Use an SMC strategy when the input dimension or target geometry makes a grid inefficient. Use BSS-style strategies when the target event is reached more reliably through intermediate thresholds or boxes.