[论文解读] Zeroth-Order Optimization Meets Human Feedback: Provable Learning via Ranking Oracles
本文提出 ZO-RankSGD,一种新颖的零阶优化算法,利用排名预言机(仅可获取函数值的相对比较)来优化黑箱目标函数。该方法通过基于排名的随机估计器实现收敛至驻点,并在对齐人工智能输出与人类偏好方面表现优异,例如仅通过人类排名即可提升扩散模型中的图像质量。
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.
研究动机与目标
- 解决在仅能获取人类评估者提供的排名反馈时,优化黑箱目标函数的挑战。
- 开发一种理论基础坚实的优化算法,在仅能获取有限、相对反馈而非精确函数值的约束下运行。
- 在仅能访问成对或前 k 名奖励排名的情况下,实现强化学习中有效策略优化。
- 仅通过人类排名的最小反馈,提升生成式 AI 输出质量,特别是扩散模型中的图像质量。
- 弥合实际的人机协同 AI 对齐与理论可靠的优化方法之间的差距。
提出的方法
- 提出一种新的 $(m,k)$-排名预言机模型,可返回在 $m$ 个查询点中函数值最小的 $k$ 个索引。
- 设计 ZO-RankSGD,一种基于零阶随机梯度下降的变体,利用预言机提供的排名信息构建下降方向。
- 引入一种新颖的基于排名的随机估计器,通过相对比较近似梯度,避免直接查询函数值。
- 集成带改进梯度记忆的线性搜索机制,以提升收敛性并保留迭代过程中的最佳表现点。
- 通过存储已找到的最佳点,并在性能停滞时重启梯度估计,将 ZO-RankSGD 与直接搜索启发式方法结合。
- 实现一个用户友好的人机交互界面,区分不同算法阶段中对前 $k$ 张最佳图像进行排名,或仅选择最佳图像。
实验结果
研究问题
- RQ1当仅能获取排名反馈而无法访问精确函数值时,零阶优化算法是否仍能收敛至驻点?
- RQ2如何有效利用排名预言机在高维黑箱优化问题中估计下降方向?
- RQ3ZO-RankSGD 在仅使用人类排名的情况下,能在多大程度上提升生成式 AI 输出质量(如 Stable Diffusion 生成的图像)?
- RQ4在人类反馈设置下,ZO-RankSGD 的性能与 CMA-ES 或 RLHF 基线等现有启发式方法相比如何?
- RQ5梯度记忆与重启策略等算法改进对收敛性与最终解质量有何影响?
主要发现
- 在 $(m,k)$-排名预言机假设下,ZO-RankSGD 实现了收敛至驻点,首次为该设定提供了理论保证。
- 在图像生成任务中,ZO-RankSGD 仅通过 10–20 轮人类排名反馈,显著提升了图像细节与质量。
- 在人类反馈与 CLIP 基准奖励评估设置下,ZO-RankSGD 均优于基线方法,且参数固定为 ($\eta=1$, $\mu=0.1$, $\gamma=0.5$)。
- 引入梯度记忆与重启逻辑的 ZO-RankSGD 改进版本,提升了收敛速度并保留了优化过程中找到的最佳解。
- 通过所提用户界面收集的人类反馈高效且有效,用户可在两阶段流程中直观完成图像排名。
- 该方法在不同文本提示下均表现出鲁棒性,并在多种图像生成场景中保持一致的性能提升。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。