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

Richard Cornelius Suwandi, Feng YinarXiv 2026

TL;DR

GRAPE (Gradient Refinement and Progress-Aware Exploitation) is a novel two-stage local Bayesian Optimization framework designed for high-dimensional black-box optimization problems. By shifting the focus from merely maximizing the probability of finding a descending path to maximizing the expected magnitude of progress conditional on descent, GRAPE avoids overly conservative steps and achieves up to a 5.4× query speedup over state-of-the-art baselines.

What Problem Does This Paper Address?

Bayesian Optimization (BO) is the gold standard for optimizing expensive black-box functions where gradients are unavailable (e.g., hyperparameter tuning, neural architecture search). However, standard BO struggles in high-dimensional spaces due to the curse of dimensionality.

To combat this, recent "gradient-aware" local BO methods use function evaluations to infer a joint Gaussian belief over the local gradient. Unfortunately, these methods suffer from scale blindness: they prioritize the probability of descent over the magnitude of progress. This means the algorithm will repeatedly choose a "safe" direction that is 99% certain to yield a tiny improvement, while ignoring a slightly less certain direction that could lead to a massive drop in the objective function. This leads to overly conservative steps and wasted query budgets.

Methods

The authors introduce GRAPE, a two-stage local BO framework that fixes scale blindness by balancing certainty with step magnitude.

Figure 1: One outer iteration of GRAPE. (a) Nearby queries sharpen a wide prior descent belief into a narrower posterior (Theorem 1). (b) Candidate directions are ranked by their expected progress.
  1. Stage 1: Gradient Refinement (Exploration) Before taking a step, GRAPE allocates a small budget of auxiliary queries ($\tau_{\text{explore}}$) to sharpen its local gradient estimate. It uses a novel, closed-form acquisition function ($\alpha_{\text{ref}}$) that greedily minimizes total gradient uncertainty without requiring expensive Monte Carlo sampling.

  2. Stage 2: Progress-Aware Exploitation (Exploitation) Instead of choosing the direction most likely to descend, GRAPE ranks candidate unit directions by their expected decrease conditional on descent. This progress-aware exploitation score ($\mathcal{P}(v)$) naturally recovers the true steepest descent direction as the gradient posterior sharpens. The optimal direction is found efficiently using projected gradient ascent.

Datasets

The authors evaluated GRAPE on two distinct high-dimensional, gradient-free benchmarks:

  • Black-Box Adversarial Attacks: Generating norm-constrained ($\ell_\infty$) image perturbations to fool deep neural networks on MNIST ($d=784$) and CIFAR-10 ($d=1024$).
  • LLM Prompt Optimization: Optimizing text prompts for mathematical reasoning using the BoLT benchmark. Prompts were evaluated on MATH-500 accuracy under Qwen3-14B and embedded using EmbeddingGemma across four Matryoshka truncation dimensions ($d \in \{128, 256, 512, 768\}$).

Key Insights and Ideas

  • Conditioning on Descent Matters: Traditional Expected Improvement (EI) can favor directions that are likely to ascend if their variance is massive. By explicitly conditioning the expectation on the directional derivative being negative ($\nabla_v f(x) < 0$), GRAPE ensures it only counts progress in directions that actually descend.
  • First-Order Scaling Beats Second-Order: While second-order local methods (like NEST-BO) attempt to model the $d \times d$ Hessian matrix, they quickly become data-hungry and computationally expensive as dimension $d$ grows. GRAPE shows that tracking first-order gradient uncertainty scales much more favorably in very high dimensions.
  • Closed-Form Efficiency: The gradient refinement acquisition function collapses into a deterministic formula, making the exploration phase computationally cheap compared to the black-box function evaluations it guides.

Key Results

GRAPE demonstrated substantial query efficiency gains across all tasks:

  • Adversarial Attacks: GRAPE achieved an average 5.4× speedup in query efficiency over global and local baselines. On CIFAR-10, the closest local competitor (NEST-BO) required 3.3× more queries to find a successful adversarial perturbation.
  • Prompt Optimization: As the embedding dimension scaled up to $d=768$, GRAPE outperformed the second-best method by a massive 3.8 log-units in final average regret, proving highly effective at navigating high-dimensional discrete search spaces.

Limitations and Future Work

  • Sensitivity to Initialization: As a purely local optimization method, GRAPE can get trapped in suboptimal local minima if started from a poor initial point. Integrating it with global trust-region restarts or local-global switching schemes remains an open extension.
  • Linearization Assumptions: The progress-aware score assumes that a local linear approximation holds over the chosen step size. In regions of extreme curvature, this truncated-Gaussian approximation might misestimate the true function decrease.
  • Computational Bottleneck: Exact Gaussian Process inference scales cubically ($\mathcal{O}(|D|^3)$) with the number of observations, which could become a bottleneck for exceptionally large query budgets. Incorporating sparse or rank-one GP updates is suggested for future work.

Summary updated

BibTeX
@misc{suwandi2026grape,
  author = {Richard Cornelius Suwandi and Feng Yin},
  title = {{GRAPE: Gradient Refinement and Progress-Aware Exploitation for Query-Efficient High-Dimensional Bayesian Optimization}},
  year = {2026},
  eprint = {2608.25116},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.25116},
}
Figure