Skip to main content
QUICK REVIEW

[Paper Review] Learning to Learn by Zeroth-Order Oracle

Yangjun Ruan, Yuanhao Xiong|arXiv (Cornell University)|Apr 30, 2020
Adversarial Robustness in Machine LearningComputer Science22 references4 citations
TL;DR

This paper proposes a zeroth-order (ZO) optimization framework that learns to learn using a recurrent neural network (RNN) to approximate gradients via ZO estimators and dynamically guide sampling directions. The method outperforms hand-designed algorithms in convergence speed and solution quality on ZO tasks, including black-box adversarial attacks.

ABSTRACT

In the learning to learn (L2L) framework, we cast the design of optimization algorithms as a machine learning problem and use deep neural networks to learn the update rules. In this paper, we extend the L2L framework to zeroth-order (ZO) optimization setting, where no explicit gradient information is available. Our learned optimizer, modeled as recurrent neural network (RNN), first approximates gradient by ZO gradient estimator and then produces parameter update utilizing the knowledge of previous iterations. To reduce high variance effect due to ZO gradient estimator, we further introduce another RNN to learn the Gaussian sampling rule and dynamically guide the query direction sampling. Our learned optimizer outperforms hand-designed algorithms in terms of convergence rate and final solution on both synthetic and practical ZO optimization tasks (in particular, the black-box adversarial attack task, which is one of the most widely used tasks of ZO optimization). We finally conduct extensive analytical experiments to demonstrate the effectiveness of our proposed optimizer.

Motivation & Objective

  • To address the challenge of learning optimization algorithms in zeroth-order settings where gradients are unavailable.
  • To improve convergence and solution quality in ZO optimization by learning adaptive update rules.
  • To reduce high variance in ZO gradient estimators through learned sampling strategies.
  • To extend the learning-to-learn paradigm to black-box optimization scenarios, such as adversarial attacks.

Proposed method

  • A primary RNN is trained to learn parameter update rules using ZO gradient estimators as surrogate gradients.
  • The ZO gradient estimator approximates gradients using finite differences with random perturbations.
  • A secondary RNN is introduced to learn and adapt the Gaussian sampling rule for query directions, reducing variance.
  • The two RNNs are jointly trained to improve update accuracy and convergence stability.
  • The framework is applied end-to-end to ZO optimization tasks, including black-box adversarial attacks.
  • The model leverages memory from previous iterations to inform current updates, enabling temporal generalization.

Experimental results

Research questions

  • RQ1Can a learned optimizer based on ZO gradients outperform hand-designed algorithms in convergence and solution quality?
  • RQ2How effective is the proposed method in reducing variance from ZO gradient estimation?
  • RQ3Can the learned sampling strategy improve performance on black-box optimization tasks like adversarial attacks?
  • RQ4How well does the RNN-based optimizer generalize across diverse ZO optimization tasks?

Key findings

  • The proposed optimizer achieves faster convergence rates compared to standard ZO algorithms on synthetic and real-world ZO tasks.
  • The method attains superior final solution quality, particularly in black-box adversarial attack scenarios.
  • The learned sampling rule significantly reduces variance in ZO gradient estimation, improving training stability.
  • The joint use of two RNNs—first for update rule learning and second for sampling guidance—leads to more robust optimization performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.