AISTATS 2026 Batch • Paper 4
15 minute read
Published: July 2026

Spherical Linear Gaussian Process for High-Dimensional Bayesian Optimization

Hamidreza Hashempoor • Institute for AI, University of Stuttgart

Bayesian optimization (BO) shines when you have a handful of expensive evaluations and a surrogate that turns them into good next-query decisions. In high dimensions with few data, though, the usual surrogates get fragile: flexible nonlinear kernels are starved for data, and the simplest fix — a linear kernel — has a subtle geometric defect that drags every query to the boundary of the box. This post follows the method of Spherical Linear Gaussian Process for High-Dimensional Bayesian Optimization, which keeps the low-capacity linear model but reshapes its geometry with an inverse-stereographic projection so that every point has the same prior variance. We rederive the theory, then verify its three core claims on a $D=100$ sparse-sine problem, reproduced end-to-end by the companion notebook.

The idea: a low-capacity surrogate with the right geometry

We want to maximize an expensive black box over a box,

$$ x^\star=\arg\max_{x\in\mathcal X} f(x),\qquad \mathcal X=[-1,1]^D, $$

in the regime that makes high-dimensional BO hard: many dimensions, little data,

$$ D\gg 1,\qquad N\approx D \quad\text{or even}\quad N

The BO loop is standard — fit a Gaussian-process surrogate to the data so far, maximize an acquisition function (UCB or expected improvement), evaluate the chosen point, repeat. The surrogate exists to make good decisions, not to approximate $f$ everywhere. That reframing is what licenses a deliberately low-capacity model. The paper's argument is a chain:

  • Nonlinear kernels (RBF/Matérn) are data-hungry and their Euclidean geometry degenerates in high dimension;
  • a Bayesian linear model is the natural low-capacity alternative — zero curvature, the smoothest non-constant family — but its kernel is boundary-seeking;
  • projecting inputs onto a sphere before the linear kernel removes that pathology while keeping the model cheap and stable.

Why RBF geometry degenerates in high dimension

The RBF kernel

$$ k_{\mathrm{RBF}}(x,x')=\exp\!\left(-\frac{\lVert x-x'\rVert^2}{2\ell^2}\right) $$

depends only on Euclidean distance, and for random points in $[-1,1]^D$ that distance concentrates:

$$ \mathbb E\lVert x-x'\rVert^2\approx \frac{2D}{3}. $$

No single lengthscale is safe: $\ell=O(1)$ makes $k\to 0$ (every point looks unrelated), $\ell=O(D)$ makes $k\to 1$ (a near-constant prior), and even the balanced $\ell=O(\sqrt D)$ leaves distances dominated by irrelevant coordinates. Concretely, take $f(x)=\sin(3x_1)$ on $[-1,1]^{100}$ and three points $x=(0.5,0,\dots)$, $x'=(0.52,r_2,\dots)$, $x''=(-0.5,r_2,\dots)$ with the same random tail $r_i\sim\mathrm{Unif}[-1,1]$. Functionally $x\!\approx\! x'$ (first coordinates close) and $x\!\not\approx\! x''$ — but the full-distance RBF at $\ell=\sqrt{100}=10$ barely notices:

$$ k(x,x')\approx e^{-33/200}\approx 0.85,\qquad k(x,x'')\approx e^{-34/200}\approx 0.84. $$

The 97 distractor dimensions swamp the one that matters. This is the fragility a lower-capacity surrogate is meant to sidestep.

The linear GP: attractive, but boundary-seeking

A Bayesian linear model $f(x)=w^\top x+b$ with a Gaussian prior on $w$ is a GP with the linear kernel

$$ k_{\mathrm{lin}}(x,x')=x^\top x',\qquad \nabla^2 f(x)=0. $$

Zero curvature is exactly the kind of strong, cheap prior that suits high-dimensional low-data BO. The trouble is the prior variance it induces:

$$ k_{\mathrm{lin}}(x,x)=\lVert x\rVert^2. $$

On $[-1,1]^D$ this ranges from $0$ at the origin to $D$ at a corner (e.g. $k=100$ at $(1,\dots,1)$ in $D=100$). Any acquisition function that increases in posterior variance — UCB, EI — is therefore pulled toward high-norm points. The paper makes this exact: for such acquisitions the linear-GP optimum always lands on the boundary,

$$ x_{t+1}=\arg\max_{x\in[-1,1]^D}\alpha_t(x)\;\Longrightarrow\;\lVert x_{t+1}\rVert_\infty=1. $$

At least one coordinate is pinned to $\pm 1$, regardless of the objective. That is the boundary-seeking pathology.

The spherical linear kernel

The fix keeps the linear model but maps inputs onto a unit hypersphere first, so the magnitude geometry disappears. The kernel is

$$ k_{\mathrm{sph}}(x,x')=b_0+b_1\,P(z)^\top P(z'),\qquad b_0,b_1>0,\;\; b_0+b_1=1, $$

on scaled inputs $z_i=x_i/(a\,\ell_i)$, where $a>0$ is a global lengthscale (initialized $O(\sqrt D)$) and $\ell_i>0$ are per-dimension (ARD) lengthscales. The map $P$ is the inverse stereographic projection

$$ P(z)=\frac{1}{\lVert z\rVert^2+1}\bigl[\,2z_1,\dots,2z_D,\;\lVert z\rVert^2-1\,\bigr], \qquad P:\mathbb R^D\to\mathbb S^D\subset\mathbb R^{D+1}. $$

Its defining property is that everything lands on the unit sphere, $\lVert P(z)\rVert=1$, which collapses the prior variance to a constant:

$$ k_{\mathrm{sph}}(x,x)=b_0+b_1=1\quad\text{for every }x. $$

No point gets an artificial uncertainty bonus for being near a corner — the boundary bias is gone. Yet the model is not a constant prior, because cross-terms still vary: since both projected points sit on the sphere,

$$ P(z)^\top P(z')=\cos\theta, $$

the angle between them, so similarity is measured by direction rather than magnitude. A useful identity for implementation and testing rewrites this without forming $P$ explicitly:

$$ P(z)^\top P(z')=1-\frac{2\lVert z-z'\rVert^2}{(1+\lVert z\rVert^2)(1+\lVert z'\rVert^2)}. $$

The model is linear in the spherical features, $f(x)=w^\top P(z)+c$, hence a compact rational nonlinear family in the original coordinates while staying only $D\!+\!1$-dimensional in feature space. One caveat the paper is careful about: the projection alone fixes variance geometry, not relevance. Distinguishing active from inactive dimensions still needs the per-dimension $\ell_i$ (ARD) — the sphere does not identify the active subspace by itself.

The one-line summary. The spherical linear GP combines a low-capacity, smooth global model with a normalized prior variance. It removes the boundary-seeking pathology of the ordinary linear kernel and reduces reliance on fragile high-dimensional Euclidean distance — making it a better acquisition surrogate in high-dimensional low-data BO, not a universally better function approximator.

The minimal experiment

A high-dimensional objective with a known, tiny active subspace makes every claim checkable. Only the first three of $100$ coordinates matter:

$$ f(x)=\sin(3x_1)+0.5\cos(4x_2)+0.25\,x_3,\qquad x\in[-1,1]^{100}. $$

Three surrogates run the same BO loop with UCB, $\alpha(x)=\mu(x)+\beta\,\sigma(x)$, maximized by random search over a shared candidate pool: an RBF GP (global lengthscale), the standard linear GP, and the spherical linear GP. To probe the theory cleanly, the spherical kernel uses oracle ARD — short lengthscales ($\ell=1$) on the three active dimensions, long ones ($\ell=100$) on the rest — with global scale $a=\sqrt{D}$ and mixture weights $b_0=0.1,\,b_1=0.9$. The exact configuration:

SettingValueSettingValue
dimension $D$100active dims$\{0,1,2\}$
init design $N_{\text{init}}$10BO iterations $N_{\text{iter}}$40
acquisitionUCB, $\beta=2$candidate pool20,000 (random search)
RBF lengthscale $\ell$10.0observation noise$10^{-6}$ (noiseless)
spherical $a$$\sqrt{D}=10$spherical $(b_0,b_1)$$(0.1,\,0.9)$
oracle ARD (active)$\ell_i=1$oracle ARD (inactive)$\ell_i=100$
seed0RNG per modelre-seeded (shared init & pools)

Re-seeding the RNG per surrogate means all three see the identical initial design and identical candidate pools, so any difference is attributable to the kernel alone.

Results

The experiment splits into two questions: does the kernel geometry behave as the theory predicts, and does that translate into better BO behavior?

Kernel geometry — verifying the theory

Left: prior standard deviation versus norm of x for the three kernels; the linear kernel rises linearly while RBF and spherical stay flat. Right: kernel response as one coordinate is perturbed, showing the spherical kernel reacts to an active dimension but not an inactive one, while RBF treats both identically.
Figure 1. (A) Prior std $\sqrt{k(x,x)}$ vs. $\lVert x\rVert$: the standard linear kernel grows straight up with the norm (boundary-seeking), while RBF and spherical are flat — spherical exactly at $1$. (B) Kernel response as a single coordinate is perturbed: with oracle ARD the spherical kernel drops sharply along an active dimension (solid green) but is unmoved along an inactive one (dashed green at $1$); the RBF curves for active and inactive dimensions essentially overlap.

The direct kernel diagnostics put numbers on all three claims:

DiagnosticQuantityValueVerdict
Claim 1 · linear variance corr$\bigl(k_{\mathrm{lin}}(x,x),\,\lVert x\rVert\bigr)$0.9995 variance ∝ norm
variance range (min → max)23.83 → 46.80grows to boundary
Claim 2 · spherical variance $\max_x\lvert k_{\mathrm{sph}}(x,x)-1\rvert$$4.4\times10^{-16}$ constant $\equiv 1$
RBF concentration mean $\lVert x-x'\rVert^2$ (expect $2D/3=66.7$)66.45 distances concentrate
Claim 3 · active-dim sanity RBF: $k(x,x')$ vs $k(x,x'')$0.8435 vs 0.8393 cannot distinguish
spherical: $k(x,x')$ vs $k(x,x'')$0.9900 vs 0.9722 distinguishes

$x'$ differs from $x$ only slightly on the active coordinate ($0.50\to0.52$); $x''$ flips it ($0.50\to-0.5$) but shares $x'$'s random tail. The spherical kernel with ARD rates $x'$ as more similar than $x''$; the RBF kernel rates them essentially equal.

Bayesian optimization behavior

Left: best objective found so far versus BO iteration for the three surrogates. Right: mean boundary fraction as bars and mean norm of selected points as diamonds, for each surrogate.
Figure 2. (C) Best objective vs. iteration. Spherical linear improves earliest (climbing by iteration 6) and plateaus stably; RBF reaches the highest value late; standard linear lags until a boundary point finally pays off. (D) Boundary-seeking of the selected points: spherical linear has both the lowest boundary fraction (0.057) and the smallest mean $\lVert x\rVert$ (5.90) — the opposite corner of the plot from the standard linear surrogate (0.085, 6.41).
Surrogatebest $y$mean $\lVert x\rVert$mean $\lVert x\rVert_\infty$boundary fraction
RBF1.71296.04650.99070.0635
Standard linear1.54976.41200.99380.0850
Spherical linear (ours)1.56745.89650.99070.0570

Best value per column highlighted. Boundary fraction = mean share of coordinates with $\lvert x_i\rvert>0.95$ among the selected points.

Reading the results honestly. This is a minimal sanity experiment, not a claim that spherical linear GPs beat RBF everywhere. Two things do hold cleanly. First, the geometry behaves exactly as derived: linear variance tracks $\lVert x\rVert$ with correlation $0.9995$, spherical variance is constant to machine precision, and only the spherical kernel (with ARD) separates active-coordinate changes from the high-dimensional noise. Second, spherical linear is the least boundary-seeking surrogate — lowest boundary fraction and smallest mean $\lVert x\rVert$ — precisely the pathology it targets. On raw best_y the RBF wins here, which is unsurprising: the objective is smooth and low-frequency, the friendliest possible case for RBF, and the setup uses oracle ARD rather than learned lengthscales. The value of the spherical construction is the fixed variance geometry it buys at essentially linear-model cost.

Reproduce it

The companion notebook re-runs the whole experiment from scratch using only numpy, scipy, and matplotlib. It implements the three kernels (including the inverse-stereographic projection with a $\lVert P(z)\rVert=1$ check), an exact Cholesky GP posterior, UCB with random-search acquisition, and the per-model BO loop, then recomputes the summary table and the kernel diagnostics and regenerates both figures. Re-seeding the RNG per model reproduces the reference run exactly — the summary statistics match to $0$ (bit-for-bit) and the diagnostics to floating-point noise.