Zeroth-Order Supervised Policy Improvement

Hao Sun, Ziping Xu, Yuhang Song, Meng Fang, Jiechao Xiong, Bo Dai, Zhengyou Zhang, Bolei ZhouarXiv 2020

Abstract: Policy gradient (PG) algorithms have been widely used in reinforcement learning (RL). However, PG algorithms rely on exploiting the value function being learned with the first-order update locally, which results in limited sample efficiency. In this work, we propose an alternative method called Zeroth-Order Supervised Policy Improvement (ZOSPI). ZOSPI exploits the estimated value function $Q$ globally while preserving the local exploitation of the PG methods based on zeroth-order policy optimization. This learning paradigm follows Q-learning but overcomes the difficulty of efficiently operating argmax in continuous action space. It finds max-valued action within a small number of samples. The policy learning of ZOSPI has two steps: First, it samples actions and evaluates those actions with a learned value estimator, and then it learns to perform the action with the highest value through supervised learning. We further demonstrate such a supervised learning framework can learn multi-modal policies. Experiments show that ZOSPI achieves competitive results on the continuous control benchmarks with a remarkable sample efficiency.

Introduction

In continuous control Reinforcement Learning (RL), Actor-Critic methods like DDPG, TD3, and SAC are the standard. They improve their policy (the actor) by following the gradient of the learned value function (the critic). However, learned Q-functions are notoriously non-convex—they are full of "bumpy" local optima.

Because standard policy gradient methods rely on first-order updates (gradients), they only explore locally. If the policy initializes near a sub-optimal peak in the Q-function landscape, the gradient will pull it to the top of that specific peak, completely missing a much higher peak further away. This local exploitation leads to poor sample efficiency and sub-optimal final policies.

Methods: Zeroth-Order Supervised Policy Improvement

The authors propose ZOSPI, which replaces the standard policy gradient update with a hybrid zeroth-order search and supervised learning framework. Instead of calculating gradients, ZOSPI searches the action space globally to find the highest Q-value and directly trains the policy to output that action.

Comparison of Policy Gradient and ZOSPI on a non-convex Q-function landscape.

The ZOSPI update consists of three main components:

  1. Global and Local Sampling (Zeroth-Order Search): ZOSPI samples a small set of actions (e.g., 50 actions) for a given state. Some are sampled uniformly across the entire action space (global exploration), and some are sampled from a Gaussian distribution around the policy's current prediction (local exploitation).
  2. Supervised Policy Improvement: The algorithm evaluates all sampled actions using the learned Q-network and identifies the action with the highest Q-value ($a^+$). The global policy network is then updated using standard supervised learning (Mean Squared Error) to make its output closer to $a^+$.
  3. Perturbation Network: To fine-tune the coarse prediction of the global policy, ZOSPI uses a secondary "perturbation network." This network outputs a very small adjustment (capped at 5% of the max action value) and is trained using standard first-order policy gradients.

Multi-modal Policy Learning

Because ZOSPI frames policy improvement as a supervised regression task, it can easily be combined with Mixture Density Networks (MDNs). This allows the policy to output a mixture of distinct actions (multi-modal policies) rather than a single deterministic action or a simple Gaussian.

ZOSPI with Mixture Density Networks capturing multiple peaks in the action-value distribution.

In many real-world tasks, there are multiple distinct ways to succeed (e.g., dodging an obstacle by going left or right). Standard PG methods average these out, often resulting in a catastrophic middle path. ZOSPI + MDNs successfully learns to maintain multiple distinct optimal strategies by capturing the various peaks in the Q-function landscape.

Experimental Results

The authors evaluate ZOSPI on standard continuous control benchmarks (MuJoCo) and a custom Four-Solution-Maze (FSM).

  • Sample Efficiency: On 4 out of 5 MuJoCo tasks, ZOSPI achieves performance comparable to the asymptotic performance of TD3 and SAC using only half the environment interactions (0.5M vs 1M steps).
  • Asymptotic Performance: Given the full 1M steps, ZOSPI consistently outperforms baselines. For example, on Ant-v2, ZOSPI achieves a score of 5006, compared to TD3's 4868 and SAC's 3051.
  • Solving the FSM: In the Four-Solution-Maze, standard methods (TD3, SAC, PPO) get trapped moving toward just one or two of the reward regions. ZOSPI successfully learns a policy that can navigate to all four optimal solutions.

Conclusion

ZOSPI demonstrates that supervised learning is a powerful alternative to policy gradients in continuous control. By decoupling the search for the best action from the neural network update, ZOSPI avoids the trap of following misleading local gradients in a non-convex Q-landscape. While it introduces some computational overhead due to multiple Q-network evaluations per step, the gains in sample efficiency and the ability to learn multi-modal policies make it a compelling framework for complex RL tasks.

Summary updated

BibTeX
@misc{sun2020zeroth,
  author = {Hao Sun and Ziping Xu and Yuhang Song and Meng Fang and Jiechao Xiong and Bo Dai and Zhengyou Zhang and Bolei Zhou},
  title = {{Zeroth-Order Supervised Policy Improvement}},
  year = {2020},
  eprint = {2006.06600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.06600},
}
Figure