Optimistic Gradient Learning with Hessian Corrections for High-Dimensional Black-Box Optimization

Yedidya Kfir, Elad Sarafian, Sarit Kraus, Yoram Louzoun · DOI

Abstract

Black-box optimization (BBO) is essential for complex real-world tasks where system dynamics are unknown. However, traditional methods struggle with the curse of dimensionality and local minima traps. We present EvoGrad², a novel BBO algorithm that unifies evolutionary search with neural gradient learning. By employing evolutionary-weighted sampling and second-order Hessian corrections, EvoGrad² significantly improves gradient estimation accuracy and global search capabilities. Our evaluation across synthetic benchmarks and high-dimensional adversarial attacks demonstrates that EvoGrad² maintains high success rates even as dimensions scale to 640, outperforming existing evolutionary and gradient-based baselines.

Introduction

Black-box optimization involves finding optimal inputs for a system based solely on observed outputs. This is critical for tuning robotic controllers, optimizing large language models (LLMs), and generating adversarial attacks. Two primary challenges hinder current approaches: the "curse of dimensionality," where evolutionary methods like CMA-ES fail to scale, and the "myopia of local search," where explicit gradient learning (EGL) methods become trapped in local minima due to a lack of global perspective.

Methodology

EvoGrad² addresses these challenges through two integrated techniques:

Evolutionary Weighting (EvoGrad)

Instead of uniform sampling, EvoGrad utilizes statistical insights from the CMA-ES algorithm to weight local samples. By assigning higher importance to directions that align with globally promising regions, the learned gradient is biased toward the global optimum, effectively looking past local traps.

Hessian Corrections (HGrad)

Standard gradient learners typically rely on first-order Taylor approximations, which suffer from $O(\epsilon)$ error. HGrad incorporates second-order information by calculating the Jacobian of the learned gradient network. This reduces approximation error to $O(\epsilon^2)$. To maintain efficiency, the Jacobian is "detached" from the computation graph, avoiding the high overhead of double backpropagation.

Key Insights

The core innovation lies in using evolutionary strategies as "smart samplers" rather than primary optimizers. This allows the algorithm to combine the speed of gradient descent with the global intuition of evolutionary search. Furthermore, leveraging the Jacobian of the surrogate model provides second-order benefits without the prohibitive computational cost of traditional Hessian-based methods.

Optimization trajectories of EvoGrad vs. EGL on non-convex landscapes.

Experimental Evaluation

The performance of EvoGrad² was evaluated across three domains:

  1. COCO Test Suite: Standard synthetic optimization functions ranging from 2 to 640 dimensions.
  2. ImageNet Adversarial Attacks: High-dimensional tasks involving over 30,000 parameters to perturb ResNet and ViT models.
  3. Code Generation: Optimizing LLM-generated Python code for runtime efficiency.

Results

EvoGrad² demonstrates significant improvements over baseline methods. On the COCO benchmark, it achieved a 94.9% success rate, compared to 82.1% for EGL and 61.2% for CMA-ES. Notably, its performance remains robust as dimensionality increases.

Success rates of various optimization algorithms across problem dimensions up to 640.

In real-world applications, a hybrid CMA + EvoGrad approach successfully generated adversarial perturbations in half the time required by pure gradient learning (3 hours vs. 6-7 hours) while maintaining significantly lower image distortion (MSE of 0.001 vs 0.05). In code optimization tasks, the algorithm effectively transformed naive code into high-performance implementations.

Conclusion and Future Work

EvoGrad² bridges the gap between evolutionary search and gradient learning, providing a scalable and robust solution for high-dimensional BBO. While the surrogate training introduces some overhead, the gains in success rate and precision are substantial. Future work includes applying these techniques to Reinforcement Learning from Human Feedback (RLHF) and integrating them into generative modeling frameworks like diffusion models to reduce iterative evaluation costs.

Summary updated

BibTeX
@misc{kfir2025optimistic,
  author = {Yedidya Kfir and Elad Sarafian and Sarit Kraus and Yoram Louzoun},
  title = {{Optimistic Gradient Learning with Hessian Corrections for High-Dimensional Black-Box Optimization}},
  year = {2025},
  eprint = {2502.04829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.04829},
}
Figure