Divide-and-Conquer Reinforcement Learning

Dibya Ghosh, Avi Singh, Aravind Rajeswaran, Vikash Kumar, Sergey Levine

TL;DR

Divide-and-Conquer (DnC) RL tackles the "high-variance" problem in reinforcement learning by partitioning a complex task with diverse starting conditions into simpler "slices." By training an ensemble of local policies and gradually distilling them into a single global policy, the algorithm solves challenging robotic manipulation and locomotion tasks that leave standard methods spinning their wheels.

What Problem Does This Paper Address?

In the real world, an agent rarely starts from the exact same position every time. A robot arm might need to pick up a block from anywhere on a table, or a bipedal robot might need to climb stairs of varying heights.

Standard model-free Reinforcement Learning (RL) algorithms struggle with this diversity. When the distribution of initial states or goals is "wide," the gradient estimates used to update the policy become extremely noisy (high variance). Imagine trying to learn a single "swing" in golf if the ball's position, the club's weight, and the wind direction changed drastically every single time you practiced. You’d likely fail to find a consistent strategy. This paper addresses the challenge of learning robust policies in highly stochastic and diverse environments where monolithic RL approaches fail to converge.

Methods

The authors propose Divide-and-Conquer Reinforcement Learning (DnC RL). The core idea is to break a single difficult MDP (Markov Decision Process) into a set of simpler, context-restricted MDPs.

  1. Divide: The algorithm first samples initial states from the environment and uses k-means clustering to partition the state space into $n$ "slices" or contexts.
  2. Conquer: It trains an ensemble of local policies, one for each slice. To ensure these policies don't drift too far apart, the authors introduce a pairwise KL-divergence penalty into the objective function. This encourages local policies to stay "compatible" with one another.
  3. Unify (Distillation): Periodically, the local policies are merged into a single central (global) policy using supervised distillation (maximum likelihood).
  4. Reset: The local policies are then re-initialized to this central policy. This "reset" helps local policies escape local optima by bootstrapping from the progress made across the entire ensemble.

The base RL algorithm used is Trust Region Policy Optimization (TRPO), chosen for its stability in continuous control tasks.

Datasets

The researchers evaluated their method using the MuJoCo physics engine on several custom-designed, high-difficulty benchmarks:

Robotic manipulation environment
  • Robotic Manipulation:
    • Picking: Lifting a block from randomized positions on a table.
  • Lobbing: Flicking a block into a target box at a distance.
  • Catching: Catching a ball thrown with randomized initial positions and velocities.
  • Locomotion:
    • Ant Position: A quadruped "ant" must reach a random point on a 5m radius circle.
  • Stairs: A 2D bipedal robot must climb stairs with randomized heights and lengths.

These tasks were specifically designed to be more representatively challenging than standard OpenAI Gym benchmarks, which often lack significant initial state variety.

Key Insights and Ideas

  • Learning Dynamics vs. Representational Capacity: The authors argue that even if a neural network is powerful enough to represent a complex global policy, the path to learning it via standard RL is often too noisy. Slicing the problem creates a smoother learning gradient.
  • The Power of the Ensemble: By training on slices, the agent can master "easier" parts of the state space first. Through the KL-divergence constraints, this knowledge "leaks" into the harder slices, helping those local policies converge faster.
  • Distillation as a Regularizer: The periodic distillation into a central policy followed by a reset acts as a powerful regularizer. It prevents local policies from over-specializing in ways that wouldn't generalize to the rest of the task.
  • No Context Needed at Test Time: Unlike some multi-task methods, the final output of DnC is a single global policy that operates on raw states without needing to know which "slice" it is currently in.

Key Results

DnC RL significantly outperformed standard TRPO and other ensemble-based baselines like Distral:

Learning curves across various tasks comparing DnC to baselines
  • Success Rates: In the Picking task, DnC achieved a 55.3% success rate, while standard TRPO essentially failed with 0.5%.
  • Sample Efficiency: In the Ant Position task, DnC variants solved the problem using roughly 1/10th the samples required by TRPO.
  • Qualitative Mastery: In the Stairs task, DnC learned distinct, functional gaits (like jumping for tall stairs and striding for short ones) and unified them, whereas other methods produced brittle motions that caused the robot to trip.
  • Robustness: The algorithm proved robust to the number of slices, performing well with anywhere from 2 to 8 contexts, though 4 was often the "sweet spot" for the tested tasks.

Limitations and Future Work

  • Clustering Sensitivity: The method relies on k-means clustering of the initial state. While effective here, more complex or high-dimensional stochasticity might require more sophisticated partitioning techniques.
  • Computational Cost: Training an ensemble of policies increases the computational overhead per iteration, even if it reduces the total number of environment interactions needed.
  • Hyperparameter Tuning: The "distillation period" ($R$) and the number of contexts are additional knobs that need to be tuned for different environments.
  • Future Directions: The authors suggest exploring more explicit ways to share representations between the local and global components to further improve efficiency.

Summary updated

BibTeX
@inproceedings{ghosh2018divide,
  author = {Dibya Ghosh and Avi Singh and Aravind Rajeswaran and Vikash Kumar and Sergey Levine},
  title = {{Divide-and-Conquer Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=rJwelMbR-},
}
Figure