Pooling cheap and expensive runs under shared weights collapses target uncertainty
When forty approximate simulations and four accurate runs share one feature weight vector, the cheap data shrinks posterior variance across the whole domain even where the approximation is biased.
Combining dozens of fast approximate simulations with a handful of expensive high-fidelity runs is a standard multi-fidelity setup. A common baseline pools both sources into one Bayesian linear regression with shared weights w and a scalar offset for the cheap solver: y_high = phi(x)^T w and y_low = phi(x)^T w + b_low.
The problem is posterior uncertainty. Because the cheap solver supplies most of the data, those 40 points pin the covariance of w across the entire domain. When the cheap solver has a slope or curvature bias rather than a flat shift, the model becomes falsely certain around the wrong curve even in wide gaps with no high-fidelity data. Giving the cheap solver its own regularized discrepancy weights w_low (y_low = phi(x)^T (w + w_low)) lets cheap runs inform the coarse trend while keeping an honest uncertainty floor wherever high-fidelity data is scarce.
w with a scalar offset collapses the 90% credible band around the biased curve. Right: adding a regularized discrepancy vector w_low keeps the band tight near high-fidelity runs and widens it across the unmeasured gap from 0.42 to 0.88.Minimal example
import numpy as np
rng = np.random.default_rng(7)
f_high = lambda x: np.sin(1.6 * np.pi * x) + 0.35 * x
f_low = lambda x: (
f_high(x) + 0.45 * np.cos(1.3 * np.pi * x) - 0.55 * x + 0.25
)
centers = np.linspace(-0.1, 1.1, 12)
def phi(x, ell=0.22):
d = (x[:, None] - centers[None, :]) / ell
return np.hstack([np.ones((len(x), 1)), np.exp(-0.5 * d ** 2)])
x_low = np.linspace(0.02, 0.98, 40)
x_high = np.array([0.08, 0.24, 0.42, 0.88])
sigma = 0.05
y_low = f_low(x_low) + rng.normal(0.0, sigma, size=len(x_low))
y_high = f_high(x_high) + rng.normal(0.0, sigma, size=len(x_high))
Phi_l, Phi_h = phi(x_low), phi(x_high)
p, y = Phi_l.shape[1], np.concatenate([y_high, y_low])
def fit_predict(X, prior_var, X_test):
prec = np.diag(1.0 / prior_var) + (X.T @ X) / (sigma ** 2)
cov = np.linalg.inv(prec)
mean_w = cov @ (X.T @ y) / (sigma ** 2)
# posterior predictive standard deviation
sd = np.sqrt(np.einsum("ij,jk,ik->i", X_test, cov, X_test))
return X_test @ mean_w, sd
x_grid = np.linspace(0.0, 1.0, 200)
y_true, Phi_g = f_high(x_grid), phi(x_grid)
# Model A: shared weights w + scalar offset b_low
X_a = np.vstack([
np.hstack([Phi_h, np.zeros((len(x_high), 1))]),
np.hstack([Phi_l, np.ones((len(x_low), 1))]),
])
X_ga = np.hstack([Phi_g, np.zeros((len(x_grid), 1))])
mu_a, sd_a = fit_predict(X_a, np.ones(p + 1), X_ga)
# Model B: shared weights w + regularized discrepancy weights w_low
X_b = np.vstack([
np.hstack([Phi_h, np.zeros_like(Phi_h)]),
np.hstack([Phi_l, Phi_l]),
])
prior_b = np.concatenate([np.ones(p), np.full(p, 0.35 ** 2)])
X_gb = np.hstack([Phi_g, np.zeros_like(Phi_g)])
mu_b, sd_b = fit_predict(X_b, prior_b, X_gb)
z90 = 1.6448536269514722
for label, mu, sd in [
("shared w + offset", mu_a, sd_a),
("w + w_low", mu_b, sd_b),
]:
cov = np.mean(np.abs(y_true - mu) <= z90 * sd) * 100
width = np.mean(2 * z90 * sd)
rmse = np.sqrt(np.mean((y_true - mu) ** 2))
print(
f"{label:18s} cov90={cov:5.1f}%"
f" width={width:.3f} rmse={rmse:.3f}"
)
Verification
Python 3.14.7, NumPy 2.4.3, 40 low-fidelity and 4 high-fidelity observations (σ = 0.05, 12 RBF features, lengthscale 0.22), evaluated on a 200-point held-out grid on [0, 1]. Letting w_low absorb the systematic shape bias cuts RMSE from 0.491 to 0.050 while widening the band across the unmeasured [0.42, 0.88] gap so coverage holds:
| Model | 90% coverage | Mean width | Held-out RMSE |
|---|---|---|---|
| Shared w + scalar offset (baseline) | 4.0% | 0.104 | 0.491 |
| Shared w + discrepancy w_low | 100.0% | 0.272 | 0.050 |
Caveat
The prior variance on w_low sets how closely you trust the approximate solver’s shape: too small reproduces the overconfidence bug, too large discards cross-fidelity correlation and reduces to fitting only the high-fidelity points.