NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient-based Sample Selection for Faster Bayesian Optimization

Qiyu Wei, Haowei Wang, Zirui Cao, Songhao Wang, Richard Allmendinger, Mauricio A. ÁlvarezarXiv 2025 · DOI

Abstract

Bayesian Optimization (BO) is a powerful tool for black-box optimization, but it traditionally struggles with large budgets because Gaussian Process (GP) surrogates scale cubically with the number of samples. This paper introduces GSSBO (Gradient-based Sample Selection BO), which uses gradient information to prune redundant data and maintain a small, diverse subset of "high-value" samples. The result is a massive reduction in computational overhead—up to 90% faster than standard methods—while maintaining near-identical optimization performance and theoretical regret bounds.

The Challenge of Scaling Bayesian Optimization

Bayesian Optimization is the gold standard for tuning expensive black-box functions, such as hyperparameter optimization in machine learning or mineral exploration. However, its reliance on Gaussian Processes is a double-edged sword. While GPs provide excellent uncertainty estimates, fitting them requires inverting a covariance matrix, an operation with $O(n^3)$ complexity.

As the number of samples ($n$) grows, the computational cost of updating the surrogate model starts to exceed the cost of the actual function evaluations. Existing solutions like Sparse GPs or kernel approximations often introduce significant complexity or sacrifice predictive accuracy. GSSBO seeks a simpler, "out-of-the-box" way to scale BO to large-budget scenarios without losing the representative nature of the dataset.

Gradient-based Sample Selection (GSS)

The core innovation is Gradient-based Sample Selection (GSS). Instead of using every historical data point to update the GP, the algorithm maintains a fixed-size "buffer" of the most informative samples.

  • Gradient Information: The algorithm calculates the gradient of the log-likelihood with respect to the observed outputs ($y$). This measures how "sensitive" the model fit is to each specific data point, serving as a proxy for importance.
  • Geometric Diversity: Rather than just picking points with the largest gradients, GSSBO selects a subset that maximizes the variance of gradient directions. This ensures the subset is diverse and represents the entire optimization landscape, bridging the gap between intuitive data pruning and established low-rank matrix approximation theory.
  • Dynamic Buffer Management: To avoid premature pruning, selection only begins once the iteration's computation time exceeds a user-defined threshold. Furthermore, the most recently acquired sample is always preserved to ensure the model incorporates the newest information and avoids local optima.

Experimental Results

The authors evaluated GSSBO against a wide array of benchmarks, including synthetic functions (e.g., Levy20, Powell50) and real-world tasks like Neural Architecture Search (NAS).

Cumulative regret on the Neural Architecture Search (NAS) benchmark, comparing GSSBO against various baselines.

Key Findings

  • Efficiency: By iteration 1000, GSSBO's cumulative runtime was only about 10% of the standard GP-UCB.
  • Performance Parity: Despite using a fraction of the data, GSSBO matched the cumulative regret of full-data GPs and significantly outperformed random subset selection (RSSBO).
  • Robustness: RMSE analysis showed that the GP fitted on the gradient-selected subset was nearly as accurate as the GP fitted on the full dataset.
Cumulative regret on the Levy20 synthetic benchmark. GSSBO maintains performance while significantly reducing data requirements.

Conclusion

GSSBO demonstrates that it is possible to achieve sublinear regret bounds similar to full-data GP-UCB while discarding a large portion of the data. By using gradients as importance proxies and ensuring geometric diversity, GSSBO provides a scalable and theoretically grounded approach to Bayesian Optimization for large-budget problems. Future work includes extending this principle to non-GP surrogates like Bayesian Neural Networks.

Summary updated

BibTeX
@misc{wei2025gradient,
  author = {Qiyu Wei and Haowei Wang and Zirui Cao and Songhao Wang and Richard Allmendinger and Mauricio A. Álvarez},
  title = {{Gradient-based Sample Selection for Faster Bayesian Optimization}},
  year = {2025},
  eprint = {2504.07742},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.07742},
}
Figure