Explicit Gradient Learning

Mor Sinay, Elad Sarafian, Yoram Louzoun, Noa Agmon, Sarit KrausarXiv 2020

Researchers from Bar-Ilan University have introduced Explicit Gradient Learning (EGL), a novel approach to Black-Box Optimization (BBO). Unlike traditional methods that attempt to model an unknown objective function, EGL directly learns its gradient. By averaging numerical derivatives over small local volumes to create a "mean-gradient," EGL provides a smoother, more reliable signal for optimization, allowing it to outperform state-of-the-art methods like CMA-ES in high-dimensional, non-convex landscapes.

The Challenge of Black-Box Optimization

Black-Box Optimization is essential in scenarios where a mathematical formula for the objective function is unavailable, such as tuning a robot's gait in a physics simulator or optimizing hyperparameters for complex machine learning models.

Traditional BBO methods often struggle as dimensionality increases. Derivative-free methods, such as evolutionary strategies, can be slow to converge. Alternatively, Indirect Gradient Learning (IGL) attempts to fit a neural network (NN) to the function's outputs and then compute the gradient of that model. However, NNs—particularly those using ReLU activations—often produce "jagged" or piecewise linear surfaces. This results in highly noisy and erratic gradients, causing optimizers to stall or diverge in complex landscapes.

Explicit Gradient Learning (EGL)

The core innovation of EGL is the direct estimation of the mean-gradient $g_\epsilon(x)$ rather than fitting the function values $f(x)$.

Comparison of function fitting (IGL) vs. direct gradient learning (EGL). EGL provides a smoother, more accurate gradient estimate (red line) compared to the noisy analytical gradient of a fitted model (blue line).

Key Methodological Components

  1. The Mean-Gradient: Defined as the vector that minimizes the mean-square error of directional derivative approximations within a radius $\epsilon$. This integration acts as a smoothing operator, filtering out high-frequency noise and making the gradient robust even for non-differentiable functions.
  2. Spline Embeddings: To enhance expressive power, the authors introduced a novel architecture using learnable Spline functions to transform input data before it reaches the main network.
  3. Dynamic Mappings: EGL employs "double dynamic mappings," using Trust Regions to focus on promising areas and Output Scaling to maintain stable neural network training as the optimizer moves.
  4. Controllable Smoothing: The radius $\epsilon$ serves as a "smoothness knob." A large $\epsilon$ allows the optimizer to ignore local local minima and follow the general trend of the landscape, while shrinking $\epsilon$ enables fine-tuned convergence.

Benchmarking and Results

The authors evaluated EGL against several benchmarks, including the COCO (Comparing Continuous Optimizers) test suite (2D to 40D), a high-dimensional 784D variant, and a real-world CelebA latent space search using BigGAN.

Optimization trajectories comparing EGL with different smoothing radii and against Indirect Gradient Learning (IGL). EGL (red) demonstrates significantly more stable and direct convergence toward the global minimum compared to the erratic paths of IGL (purple).

Key Findings

  • Superior Success Rates: On the COCO benchmark, EGL outperformed eight major baselines, including CMA-ES, BFGS, and Nelder-Mead. The performance gap widened significantly as dimensionality increased.
  • Efficiency in High Dimensions: In 784D tasks, EGL achieved lower error rates than Conjugate Gradient (CG) or CMA-ES within the same query budget.
  • Real-World Application: In GAN latent search, EGL successfully generated realistic faces matching complex criteria, whereas standard methods often converged to "adversarial" solutions that failed to resemble human faces.

Conclusion and Future Work

EGL demonstrates that a model can be a near-perfect fit for a function's values while providing a useless gradient for optimization. By learning the gradient explicitly, EGL bypasses this pitfall. While the scheduling of the smoothing radius $\epsilon$ and the computational cost of training a network at each step remain areas for refinement, EGL offers a powerful new tool for expensive black-box problems. Future research may extend EGL to Reinforcement Learning to stabilize policy gradients by directly learning the gradient of the Q-function.

Summary updated

BibTeX
@misc{sinay2020explicit,
  author = {Mor Sinay and Elad Sarafian and Yoram Louzoun and Noa Agmon and Sarit Kraus},
  title = {{Explicit Gradient Learning}},
  year = {2020},
  eprint = {2006.08711},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.08711},
}
Figure