Skip to main content
QUICK REVIEW

[Paper Review] Zeroth-Order Optimization Meets Human Feedback: Provable Learning via Ranking Oracles

Zhiwei Tang, Д. С. Рыбин|arXiv (Cornell University)|Mar 7, 2023
Reinforcement Learning in RoboticsComputer Science3 citations
TL;DR

This paper proposes ZO-RankSGD, a novel zeroth-order optimization algorithm that uses ranking oracles—where only relative comparisons of function values are available—to optimize black-box objectives. The method leverages a rank-based random estimator to achieve convergence to a stationary point and demonstrates strong performance in aligning AI outputs with human preferences, such as improving image quality in diffusion models using only human rankings.

ABSTRACT

In this study, we delve into an emerging optimization challenge involving a black-box objective function that can only be gauged via a ranking oracle-a situation frequently encountered in real-world scenarios, especially when the function is evaluated by human judges. Such challenge is inspired from Reinforcement Learning with Human Feedback (RLHF), an approach recently employed to enhance the performance of Large Language Models (LLMs) using human guidance. We introduce ZO-RankSGD, an innovative zeroth-order optimization algorithm designed to tackle this optimization problem, accompanied by theoretical assurances. Our algorithm utilizes a novel rank-based random estimator to determine the descent direction and guarantees convergence to a stationary point. Moreover, ZO-RankSGD is readily applicable to policy optimization problems in Reinforcement Learning (RL), particularly when only ranking oracles for the episode reward are available. Last but not least, we demonstrate the effectiveness of ZO-RankSGD in a novel application: improving the quality of images generated by a diffusion generative model with human ranking feedback. Throughout experiments, we found that ZO-RankSGD can significantly enhance the detail of generated images with only a few rounds of human feedback. Overall, our work advances the field of zeroth-order optimization by addressing the problem of optimizing functions with only ranking feedback, and offers a new and effective approach for aligning Artificial Intelligence (AI) with human intentions.

Motivation & Objective

  • Address the challenge of optimizing black-box objective functions when only ranking feedback from human evaluators is available.
  • Develop a theoretically grounded optimization algorithm that operates under the constraint of limited, relative feedback instead of exact function values.
  • Enable effective policy optimization in reinforcement learning when only pairwise or top-k rankings of episode rewards are accessible.
  • Improve generative AI outputs—specifically image quality in diffusion models—using minimal human feedback via ranking.
  • Bridge the gap between practical human-in-the-loop AI alignment and theoretically sound optimization methods.

Proposed method

  • Propose a new $(m,k)$-ranking oracle model that returns the indices of the $k$ smallest function values among $m$ queried points.
  • Design ZO-RankSGD, a zeroth-order stochastic gradient descent variant that constructs a descent direction using only ranking information from the oracle.
  • Introduce a novel rank-based random estimator to approximate the gradient from relative comparisons, avoiding direct function value queries.
  • Integrate a line search mechanism with a modified gradient memory to improve convergence and preserve the best-performing point across iterations.
  • Combine ZO-RankSGD with direct search heuristics by storing the best point found and restarting gradient estimation when improvements stall.
  • Implement a user-friendly UI for human feedback, distinguishing between ranking $k$ best images and selecting only the best image in different algorithmic phases.

Experimental results

Research questions

  • RQ1Can a zeroth-order optimization algorithm converge to a stationary point when only ranking feedback is available, without access to exact function values?
  • RQ2How can ranking oracles be effectively leveraged to estimate descent directions in high-dimensional black-box optimization problems?
  • RQ3To what extent can ZO-RankSGD improve the quality of generative AI outputs—such as images from Stable Diffusion—using only human rankings?
  • RQ4How does the performance of ZO-RankSGD compare to existing heuristic methods like CMA-ES or RLHF baselines in human feedback settings?
  • RQ5What is the impact of algorithmic modifications such as gradient memory and restart strategies on convergence and final solution quality?

Key findings

  • ZO-RankSGD achieves convergence to a stationary point under the assumption of a $(m,k)$-ranking oracle, providing the first theoretical guarantees for such a setting.
  • In image generation tasks, ZO-RankSGD significantly improves image detail and quality using only 10–20 rounds of human ranking feedback.
  • The algorithm outperforms baseline methods in both human feedback and CLIP-based reward evaluation settings, with a fixed parameter set ($\eta=1$, $\mu=0.1$, $\gamma=0.5$).
  • The modified version of ZO-RankSGD with gradient memory and restart logic improves convergence and preserves the best solution found during optimization.
  • Human feedback collected via the proposed UI interface is effective and efficient, with users able to rank images intuitively in a two-stage process.
  • The method is robust across different text prompts and maintains consistent performance improvements in diverse image generation scenarios.

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.