arXiv:2608.25116cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25116

GRAPE: Gradient Refinement and Progress-Aware Exploitation for Query-Efficient High-Dimensional Bayesian Optimization

Richard Cornelius Suwandi, Feng Yin

ABSTRACT

Optimizing expensive, high-dimensional black-box functions remains a central challenge in modern machine learning and scientific discovery. While local Bayesian optimization mitigates the curse of dimensionality, existing techniques often prioritize the probability of descent over the magnitude of progress. This leads to overly conservative steps that yield negligible improvement, wasting queries on directions that are nearly certain to descend but offer little decrease. We introduce Gradient Refinement and Progress-Aware Exploitation (GRAPE), a two-stage framework that first sharpens the local gradient posterior via a closed-form acquisition function, then selects update directions by maximizing the expected decrease conditional on descent. Theoretical analysis proves that this gradient refinement stage monotonically minimizes local uncertainty and that the progress-aware direction converges to true steepest descent as the posterior sharpens. Empirically, GRAPE demonstrates superior query efficiency across high-dimensional tasks: in black-box adversarial attacks, it achieves an average 5.4×5.4\times speedup over baselines, and on large language model prompt optimization tasks, it outperforms the second best method by a reduction of 3.8 log-units in the final average regret.

Keywords Bayesian optimization · Gaussian processes · high-dimensional black-box optimization · gradient-aware optimization · sample efficiency

1 Introduction

Bayesian optimization (BO) is a sample-efficient framework for optimizing expensive black-box objectives whose gradients are unavailable and whose evaluations may be noisy (Shahriari et al., 2016; Frazier, 2018; Garnett, 2023). It maintains a probabilistic surrogate of the objective, typically using a Gaussian process (GP), and selects successive queries by maximizing an acquisition function that balances exploration and exploitation (Jones et al., 1998; Močkus, 1978). This design makes BO particularly attractive whenever each evaluation is costly, as fewer queries translate directly into reduced experimental or computational expense. Consequently, BO has been applied across a broad range of domains, including hyperparameter tuning (Snoek et al., 2012; Arango et al., 2021), neural architecture search (White et al., 2021), safe controller configuration (Berkenkamp et al., 2016), chemical reaction and materials design (Shields et al., 2021; Wang and Dowling, 2022), black-box adversarial attacks (Ru et al., 2020; Shu et al., 2023), and more recently, prompt optimization for large language models (Zhou et al., 2023; Chew et al., 2026). In each of these settings, the underlying objective is expensive to evaluate, whether because it requires training a neural network, running a physical experiment, or querying a large language model, making query efficiency the primary performance metric.

∗^{*}Corresponding author.

Preprint. Under review.

Despite this sample efficiency, standard BO often degrades as the input dimension grows. A limited evaluation budget leaves most of the domain unexplored, a surrogate becomes uncertain over wide regions, and optimizing a global acquisition function becomes increasingly difficult (Doumont et al., 2026). The fundamental issue is that the volume of the search space grows exponentially with dimension, so a fixed evaluation budget covers a vanishingly small fraction of the domain. To solve these challenges, recent works have shown that an appropriate choice of GP kernel function and its hyperparameters can make standard BO surprisingly competitive in some high-dimensional problems (Hvarfner et al., 2024; Xu et al., 2025; Suwandi et al., 2025), although this behavior is sensitive to problem structure and GP hyperparameter initialization (Papenmeier et al., 2025). Existing high-dimensional BO methods commonly address this problem by assuming low-dimensional structures or restricting search to local regions. Yet, structural assumptions often fail when the objective is poorly understood, whereas local strategies trade global guarantees for sample-efficient improvement near a promising evaluation point.

Gradient-aware local BO offers a particularly direct local strategy by leveraging a key property of Gaussian processes (GPs): a belief over the objective naturally induces a joint Gaussian belief over its gradient (Rasmussen and Williams, 2006). As a result, even in the absence of explicit gradient observations, function-value evaluations can be used to refine the posterior over gradients. This is especially valuable in high dimensions, where the cost of exploring the full input space is prohibitive but local gradient information can guide efficient descent. For example, GIBO (Müller et al., 2021) first reduces gradient uncertainty before proceeding along the posterior mean gradient, while MPD (Nguyen et al., 2022) selects the direction with the highest posterior probability of descent. In contrast, MINUCB (Fan et al., 2024) exploits a local upper confidence bound. These approaches differ in how they leverage posterior information to guide local steps, but all share the insight that refining the gradient belief before moving can yield more productive queries than global exploration.

In this work, we specifically revisit the notion of descent probability. While descent probability quantifies the certainty that a given direction descends, it does not capture the magnitude of improvement when descent occurs. A direction may be almost certain to descend while yielding only negligible progress, whereas another, less certain direction could result in substantially greater improvement when successful. Simply maximizing descent probability therefore favors safe, but potentially unproductive directions and can overlook opportunities for more significant progress. We address this limitation with Gradient Refinement and Progress-Aware Exploitation (GRAPE). Our main contributions are:

• We propose a two-stage local BO framework that first sharpens the local gradient posterior via a closed-form acquisition, then selects update directions by maximizing the expected decrease conditional on descent.

• We prove that gradient refinement monotonically minimizes local uncertainty and that the progress-aware direction converges to true steepest descent as the posterior sharpens.

• Empirically, GRAPE achieves an average 5.4×5.4\times speedup on black-box adversarial attacks and outperforms the second-best method by 3.8 log-units on LLM prompt optimization.

References (50)