Skip to main content
QUICK REVIEW

[Paper Review] Learning Self-Imitating Diverse Policies

Tanmay Gangwani, Qiang Liu|arXiv (Cornell University)|May 25, 2018
Reinforcement Learning in RoboticsComputer Science49 references26 citations
TL;DR

This paper proposes a self-imitation learning algorithm that improves deep reinforcement learning in sparse and episodic reward environments by minimizing Jensen-Shannon divergence between a policy’s state-action visitation and high-return trajectories from its own experience replay. The method shapes dense rewards from self-generated demonstrations, enabling efficient credit assignment; further, it integrates Stein variational policy gradient with a JS-kernel to learn diverse policies, significantly outperforming baselines on challenging MuJoCo locomotion tasks with sparse rewards.

ABSTRACT

The success of popular algorithms for deep reinforcement learning, such as policy-gradients and Q-learning, relies heavily on the availability of an informative reward signal at each timestep of the sequential decision-making process. When rewards are only sparsely available during an episode, or a rewarding feedback is provided only after episode termination, these algorithms perform sub-optimally due to the difficultly in credit assignment. Alternatively, trajectory-based policy optimization methods, such as cross-entropy method and evolution strategies, do not require per-timestep rewards, but have been found to suffer from high sample complexity by completing forgoing the temporal nature of the problem. Improving the efficiency of RL algorithms in real-world problems with sparse or episodic rewards is therefore a pressing need. In this work, we introduce a self-imitation learning algorithm that exploits and explores well in the sparse and episodic reward settings. We view each policy as a state-action visitation distribution and formulate policy optimization as a divergence minimization problem. We show that with Jensen-Shannon divergence, this divergence minimization problem can be reduced into a policy-gradient algorithm with shaped rewards learned from experience replays. Experimental results indicate that our algorithm works comparable to existing algorithms in environments with dense rewards, and significantly better in environments with sparse and episodic rewards. We then discuss limitations of self-imitation learning, and propose to solve them by using Stein variational policy gradient descent with the Jensen-Shannon kernel to learn multiple diverse policies. We demonstrate its effectiveness on a challenging variant of continuous-control MuJoCo locomotion tasks.

Motivation & Objective

  • To address the challenge of poor sample efficiency and credit assignment in deep reinforcement learning when rewards are sparse or episodic.
  • To improve policy gradient methods in sparse-reward settings by leveraging self-generated high-return trajectories as implicit demonstrations.
  • To overcome the limitation of single-policy self-imitation by promoting diversity among policies to enhance exploration and avoid local optima.
  • To develop a scalable, population-based method that combines self-imitation with diversity regularization for continuous-control tasks.

Proposed method

  • Formulates policy optimization as a Jensen-Shannon divergence minimization between the current policy’s state-action visitation and that of high-return experience replay trajectories.
  • Reduces the divergence minimization problem to a policy-gradient update with shaped, dense rewards derived from self-generated expert trajectories.
  • Introduces a self-imitation mechanism where the agent imitates its own past high-performing rollouts, effectively creating intrinsic dense supervision.
  • Employs Stein variational policy gradient (SVPG) with a Jensen-Shannon kernel to explicitly encourage diversity among multiple policies in the ensemble.
  • Uses a repulsion term based on JS divergence between policy visitation distributions to promote exploration across distinct behaviors.
  • Applies the method in a multi-agent ensemble setting, where each agent learns from the collective experience and diversity of the group.

Experimental results

Research questions

  • RQ1Can self-imitation using self-generated high-return trajectories improve sample efficiency in deep reinforcement learning with sparse rewards?
  • RQ2How does self-imitation with shaped rewards compare to standard policy gradient methods in dense and sparse reward environments?
  • RQ3Can diversity among policies be effectively induced using a kernel-based repulsion term in the policy space?
  • RQ4Does the combination of self-imitation and diversity learning lead to faster convergence and better performance on challenging exploration tasks?

Key findings

  • The proposed self-imitation algorithm achieves performance comparable to standard policy gradient methods in dense-reward environments, while significantly outperforming them in sparse and episodic settings.
  • In the Maze environment, SI-interact-JS enables multiple agents to explore and reach the high-reward green zone, while SI-independent and PPO-independent agents fail to discover the goal.
  • On SparseHopper and SparseHalfCheetah, SI-interact-JS discovers hopping and forward motion behaviors much faster than SI-independent, which relies only on action-space noise and fails to explore effectively.
  • The use of the JS-kernel in SI-interact-JS leads to significantly more diverse policies, as shown by lighter kernel matrix cells indicating higher JS divergence between policy pairs.
  • SI-interact-RBF, using an RBF kernel instead of the JS-kernel, underperforms, indicating the JS-kernel is better suited for promoting meaningful diversity in policy visitation distributions.
  • PPO-independent agents get stuck in local optima, such as standing still to avoid energy penalties, while SI-interact-JS avoids this by actively exploring diverse behaviors.

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.