Non-local Policy Optimization via Diversity-regularized Collaborative Exploration

Zhenghao Peng, Hao Sun, Bolei ZhouarXiv 2020

Abstract

Conventional Reinforcement Learning (RL) algorithms usually have one single agent learning to solve the task independently. As a result, the agent can only explore a limited part of the state-action space while the learned behavior is highly correlated to the agent's previous experience, making the training prone to a local minimum. In this work, we empower RL with the capability of teamwork and propose a novel non-local policy optimization framework called Diversity-regularized Collaborative Exploration (DiCE). DiCE utilizes a group of heterogeneous agents to explore the environment simultaneously and share the collected experiences. A regularization mechanism is further designed to maintain the diversity of the team and modulate the exploration. We implement the framework in both on-policy and off-policy settings and the experimental results show that DiCE can achieve substantial improvement over the baselines in the MuJoCo locomotion tasks.

Introduction

Most Reinforcement Learning (RL) algorithms rely on a single agent (or multiple identical replicas) to explore the environment. This leads to local exploration: the agent’s future experiences are heavily biased by its past successes, causing it to circle around a limited region of the state-action space. Even distributed methods like A3C or IMPALA, which use many actors, typically use homogeneous agents that eventually converge to the same behavior, failing to explore truly novel strategies.

To overcome these limitations, we propose non-local exploration. The challenge lies in coordinating a team of agents such that they do not merely replicate each other but instead "divide and conquer" the environment while still learning from one another's discoveries.

Conceptual illustration of non-local exploration in DiCE.

Methodology

DiCE introduces two main components to enable effective teamwork:

  1. Collaborative Exploration (CE): Instead of one agent, DiCE employs a team of $K$ heterogeneous agents. Each agent interacts with its own copy of the environment. Crucially, the transitions collected by all agents are pooled into a Shared Training Batch. Every agent then updates its own unique policy using this collective data. This allows an agent to learn from regions of the state space it hasn't personally visited yet.
  2. Diversity Regularization (DR): To prevent the agents from eventually becoming identical (which would collapse the system back into local exploration), we introduce a diversity reward. This reward is based on the Mean Square Error (MSE) between the action distributions of different agents.
  3. Gradient Fusion via Feasible Direction Method (FDM): Rather than simply adding a diversity loss to the task loss, DiCE treats this as a multi-objective optimization problem. It calculates a "Task Gradient" and a "Diversity Gradient" and finds a final update direction—the angular bisector—that improves both objectives simultaneously.
Comparison of conventional RL and the proposed DiCE framework.

To stabilize training, we also implemented a Two-side Clip Loss (TSC) for on-policy settings to handle the high variance of shared data and Delayed Update Targets to keep the diversity metric consistent.

Experiments and Results

The framework was evaluated on two main benchmarks: MuJoCo Locomotion Tasks (e.g., HalfCheetah-v3, Ant-v3) and MiniGrid (discrete, sparse-reward environments). DiCE demonstrated significant performance gains over strong baselines like PPO and SAC.

Performance Comparison

In MuJoCo, on-policy DiCE outperformed PPO and A2C in almost all tasks. Notably, in Hopper-v3, where PPO often collapses after long training periods, DiCE remained stable and reached higher scores. In the Humanoid-v3 task, off-policy DiCE (DiCE-SAC) achieved much faster convergence and higher final rewards than standard SAC.

Method Ant-v3 HalfCheetah-v3 Humanoid-v3 Walker2d-v3
PPO (Baseline) 1230.82 1216.41 453.09 2670.99
DiCE (Ours) 2517.65 2860.45 566.88 3537.80

Discussion

  • Teamwork as a Regularizer: Sharing data acts as a form of regularization. An agent might receive an "advantage" signal from a peer's experience in a region it doesn't know well. Accepting these updates helps the agent stay robust and reduces the variance of the policy gradient.
  • The Diversity Sweet Spot: We found that there is an optimal team size (around $K=7$ for locomotion). If the team is too small, exploration is limited; if it's too large, the pressure to be diverse can force some agents into "weak" behaviors just to stay different, which can drag down the collective learning.

Conclusion

While DiCE shows significant promise, limitations remain in high-dimensional spaces with loose action constraints. Additionally, training $K$ agents increases computational cost, though this is mitigated by parallelization. Future work could explore the synergy between behavioral diversity and intrinsic rewards to solve even more complex, sparse-reward puzzles.

Summary updated

BibTeX
@misc{peng2020non,
  author = {Zhenghao Peng and Hao Sun and Bolei Zhou},
  title = {{Non-local Policy Optimization via Diversity-regularized Collaborative Exploration}},
  year = {2020},
  eprint = {2006.07781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.07781},
}
Figure