How Many Initial Points Does Bayesian Optimization Need?

Mujin Cheon, James Odgers, Dong-Yeun Koh, Calvin TsayarXiv 2026

TL;DR

How many initial random points should you sample before letting Bayesian Optimization (BO) take over? This paper reveals that the total optimization cost is sharply U-shaped: pick too few or too many initial points, and you waste precious budget. The authors trace this to a "boundary pathology" where variance-driven BO gets myopically stuck exploring the corners of the search space if it isn't properly initialized.

What Problem Does This Paper Address?

Bayesian Optimization (BO) is a powerful strategy for optimizing expensive black-box functions, widely used in fields ranging from molecular design to hyperparameter tuning. Standard practice dictates a two-phase protocol: first, evaluate a batch of $n_0$ initial points uniformly at random (or via space-filling designs), and second, use an acquisition function (like Expected Improvement) to guide the sequential search.

However, choosing the size of this initial batch ($n_0$) has historically been driven by arbitrary rules of thumb (e.g., always use 5 points, or set $n_0 = 10d$ where $d$ is the dimension). This paper addresses the lack of systematic analysis regarding how $n_0$ impacts the total experimental cost—defined as the number of initial points plus the subsequent BO iterations needed to find the global optimum.

Methods

The authors empirically evaluate the total expected cost $C(n_0) = n_0 + \mathbb{E}[\tau(n_0)]$, where $\tau(n_0)$ is the number of BO iterations required to hit the global optimum. They test this across several standard configurations:

  • Surrogate Hyperparameter Regimes: Oracle (where the exact generative kernel parameters are known), Maximum Likelihood Estimation (MLE), and Bayesian MCMC.
  • Acquisition Functions: Expected Improvement (EI), Upper Confidence Bound (UCB), Probability of Improvement (PI), and Thompson Sampling (TS).
  • Initialization Schemes: Pure random sampling versus space-filling designs like Latin Hypercube Sampling (LHS) and Sobol sequences.
  • Lookahead Strategies: Comparing standard single-step acquisition functions against a two-step lookahead strategy to see if non-myopic decision-making mitigates initialization sensitivity.

Datasets

The methods were evaluated on synthetic but challenging optimization benchmarks:

  1. Oracle 3D Grid: A fixed function sampled from a Gaussian Process with a Matérn-5/2 kernel on a discrete grid.
  2. Ackley 4D: A classic multimodal optimization benchmark evaluated on a discrete grid of 6,561 points.
  3. Continuous 3D Benchmark: Functions drawn using random Fourier features to validate the findings outside of discrete grids.

Key Insights and Ideas

  • The U-Shaped Cost Curve: For variance-driven acquisition functions (EI, UCB, PI), the total cost curve is sharply U-shaped. If $n_0$ is too small, BO takes a long time to converge. If $n_0$ is too large, you waste budget on uninformed random points.
  • The Boundary Exploration Pathology: Why do too few initial points hurt so badly? In the low-data regime, a Gaussian Process's posterior variance peaks at the boundaries and corners of a box-shaped domain. Variance-driven acquisition functions get myopically trapped into querying these extreme corners one by one before finally exploring the interior. A larger $n_0$ acts as a shortcut, scattering points to damp down boundary variance up front.
  • The Thompson Sampling Exception: Thompson Sampling (TS) is completely immune to this U-shape; its cost curve is flat ($n_0$-agnostic). Because TS samples from the posterior rather than maximizing variance, it naturally prefers the interior over geometric extremes. However, this independence comes at the price of a higher absolute total cost.
  • Asymmetry of the Tradeoff: The U-shape is highly asymmetric. The cost of undershooting $n_0$ is much higher than overshooting it. Too few points trigger the worst-case boundary pathology, whereas too many points simply add a linear overhead without breaking the BO trajectory.

Key Results

  • On the Ackley 4D benchmark using an MLE-fitted surrogate, the optimal number of initial points was found to be $n_0^* \approx 3$.
Figure 1: (E2) MLE-fitted RBF on Ackley 4D. Total cost C(n0) over 5,000 episodes (mean ± std). This is our starting observation: the initialization tradeoff appears strongly in the most widely deployed BO setting.
  • Accounting for hyperparameter uncertainty via Bayesian MCMC collapses the performance gap between EI, UCB, and PI, but the structural U-shape remains intact.
Figure 2: (E2) Bayesian MCMC RBF on Ackley 4D. Same setup as Figure 1 but with full kernel hyperparameter posterior. The performance gap among EI, UCB, PI collapses, but the U-shape itself stays. TS remains n0-flat, at a higher cost in this setting.
  • Using space-filling initializations (Sobol or LHS) lowered the absolute total cost by roughly 1.4 to 2 iterations compared to random sampling, but it did not shift the optimal location ($n_0^* \approx 3$ remained constant).
  • Implementing a two-step lookahead acquisition function significantly flattened the U-shape and reduced the optimal $n_0$ from 16 down to 11 on the 3D Oracle grid, proving that looking ahead helps the algorithm realize that boundary-querying is myopically wasteful.

Limitations and Future Work

  • Geometry and Dimensionality: The non-oracle experiments primarily focused on a coarse, multimodal grid (Ackley 4D). The authors note that a systematic comparison across different geometries (like simple unimodal landscapes) and higher dimensions is needed to see how the optimal $n_0$ scales.
  • Theoretical Proofs: The paper provides strong empirical evidence and a clear conceptual framework (the boundary itinerary) but stops short of formally proving these trends mathematically.

Summary updated

BibTeX
@misc{cheon2026how,
  author = {Mujin Cheon and James Odgers and Dong-Yeun Koh and Calvin Tsay},
  title = {{How Many Initial Points Does Bayesian Optimization Need?}},
  year = {2026},
  eprint = {2607.04356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.04356},
}
Figure