Multi-Fidelity Setting
This page details how fidelity is represented and propagated through each component of the framework. It assumes familiarity with the problem setting (see Home) and the execution loop (see Active Learning Loop).
In the multi-fidelity setting, the queries for the oracles are candidate-fidelity pairs \((x, m)\), where \(m \in \mathcal{M}\) determines both the cost \(c(x, m)\) and the confidence \(\kappa(m)\) of the query. An effective policy might use, for example, lower-fidelity approximations for wide exploration of the design space, reserving higher-fidelity evaluation for promising regions.
Oracle-Defined Fidelity Structure
The Oracle defines the multi-fidelity structure of the experiment. It specifies:
- The valid fidelity levels \(m \in \mathcal{M}\) and confidence \(\kappa(m)\) associated with each fidelity level.
- The cost \(c(x, m)\) associated with querying each candidate \(x\) at fidelity level \(m\).
Fidelity costs are required. Fidelity confidences are also generally required; a simple default is to scale them by relative cost, assigning the highest-cost fidelity \(\kappa(m) = 1.0\) and lower-fidelity levels confidence proportional to their cost. This heuristic is the default in AugmentedFunctionOracle when fidelity_confidences is omitted.
Fidelity Integration Across Components
Sampler
The Sampler interface is responsible for emitting explicit candidate-fidelity pairs \((x, m)\) rather than candidates alone. As an example, the built-in HypercubeSampler, fidelity assignment supports two strategies:
- Uniform fidelity sampling: fidelity levels are drawn uniformly over \(\mathcal{M}\).
- Cost-weighted fidelity sampling: fidelity levels are sampled inversely proportional to \(c(x, m)\), increasing the proportion of lower-fidelity proposals and preserving budget headroom for high-fidelity queries in later rounds.
Surrogate
Prior to loop execution, the Oracle passes fidelity confidences \(\kappa(m)\) to the Surrogate interface via set_fidelity_confidences(). In the built-in BoTorchGPSurrogate, these confidences condition the probabilistic model on fidelity level, producing a posterior that accounts for the reduced reliability of lower-fidelity observations.
Acquisition
The Acquisition interface is generic, but the built-in multi-fidelity behaviour is implemented by q-batch BoTorch classes such as QMultiFidelityKnowledgeGradient and QMultiFidelityLowerBoundMaxValueEntropy. These acquisition functions score candidate-fidelity pairs by expected utility per unit cost \(c(x, m)\), balancing information gain against the cost of obtaining it. This cost-normalisation ensures that lower-fidelity queries remain competitive when they provide sufficient information gain relative to their cost.
Selector and Budget
The Selector makes the final spending decision under the round budget \(B_k\), jointly considering:
- Acquisition values \(\alpha(x, m)\) over the proposed set \(\mathcal{P}\).
- Oracle query costs \(c(x, m)\).
- The round budget \(B_k\).
The Budget tracks the remaining global budget across rounds. In the active learning loop, it caps each round allocation at the currently available budget via get_round_budget(), then checks the total cost of the selected candidates with can_afford() before the oracle is queried, ensuring that only affordable selections are executed.
Lower-fidelity queries support cost-effective allocation: they can fit within the round budget while still improving the surrogate sufficiently to guide subsequent higher-fidelity queries. The accumulated oracle cost \(\sum_{i} c(x_i, m_i)\) across all executed queries is tracked and logged by the framework.
Fidelity in the Configuration
Multi-fidelity behaviour is activated by specifying a fidelity cost map (with an associated confidence map) consistently across the YAML blocks for the relevant concrete components, e.g., AugmentedFunctionOracle, HypercubeSampler, or CostAwareSelector. A sampler may use the cost map to weight its fidelity proposals; an acquisition function may use it to normalize utility scores; and the oracle uses it to compute query costs and derive default confidences from costs.
Single-fidelity is a special case of multi-fidelity with exactly one declared level (e.g. fidelity_costs: {1: 1.0}). The oracle's fidelity set is the single source of truth: at parse time, the config validator propagates it to the other components. The sampler's fidelity levels are filled in automatically from the oracle if left unset; if they are set explicitly, they must be a subset of the oracle's declared levels. The surrogate's fidelity metadata is likewise derived from the oracle, and a surrogate that does not support multi-fidelity will be rejected if the oracle declares more than one level.
For concrete configuration examples, see Runtime and Configuration and the Quickstart.
Single-Fidelity vs. Multi-Fidelity
| Dimension | Single-Fidelity | Multi-Fidelity |
|---|---|---|
| Fidelity set \(\mathcal{M}\) | One level (e.g. \(\mathcal{M} = \{1\}\)) | Two or more levels |
| Query action | Select \(x \in \mathcal{X}\) at the sole level | Select pair \((x, m)\) |
| Query cost | Uniform | \(c(x, m)\) varies by fidelity \(m \in \mathcal{M}\) |
| Surrogate scope | One observation regime | Objective across fidelity levels |
| Budget role | Constrains query costs | Constrains query costs considering allocation across fidelity levels |
Candidate.fidelity |
Integer fidelity id (e.g. 1) |
Integer fidelity id (e.g. 1, 2, or 3) |
For concrete configuration examples, see the Synthetic Function Examples tutorial, which walks through both settings side by side.