Divide & Conquer Imitation Learning

Alexandre Chenu, Nicolas Perrin-Gilbert, Olivier Sigaud · DOI

TL;DR

This paper introduces Divide & Conquer Imitation Learning (DCIL), a novel algorithm that tackles complex, long-horizon robotic tasks using only a single expert demonstration. DCIL breaks down these tasks into smaller, manageable skills that are learned sequentially by a goal-conditioned policy, achieving impressive sample efficiency and outperforming existing methods.

What Problem Does This Paper Address?

Deep Reinforcement Learning (DRL) excels at many tasks, but struggles with long-horizon problems that have sparse reward signals. Imitation Learning (IL) offers a way to bootstrap DRL by learning from expert demonstrations. However, most IL methods require a large number of demonstrations, which are often difficult and expensive to obtain, especially for complex robotic tasks. This paper focuses on the challenging scenario of learning from a single expert demonstration, aiming to make IL more practical and efficient in data-scarce situations.

Methods

DCIL employs a "divide and conquer" strategy by decomposing a complex task into a sequence of smaller, goal-conditioned skills. The core of the method is a Goal-Conditioned Policy (GCP) that learns to execute these individual skills.

Key innovations include:

  • Skill Extraction: The expert's single trajectory is divided into segments, each representing a skill with a defined goal.
  • Goal-Conditioned Policy (GCP): A single policy is trained to achieve different goals, allowing it to learn multiple skills.
  • Overshoot Mechanism: When a skill is successfully completed, the agent immediately attempts to start the next skill from its current state. This helps the GCP learn to transition between skills even from states not explicitly seen in the original demonstration.
  • Chaining Reward Bonus: A crucial component that encourages the agent to reach states that are compatible with the next skill. This bonus is derived from the value function of the subsequent skill, effectively making skills "aware" of each other and improving their chainability. This is particularly important when the goal space is a low-dimensional projection of the state space, meaning achieving a goal doesn't fully specify the state for the next skill.

DCIL relies on a few key assumptions: the ability to reset the agent to specific states from the demonstration, the absence of expert actions (learning solely from states), and a defined goal space.

Datasets

The paper evaluates DCIL on two environments:

  • Dubins Maze: A custom environment designed to test non-holonomic navigation. The state includes the car's 2D position and orientation, while the goal space is restricted to 2D positions.
  • Fetch Environment: A standard simulated robotic manipulation task where a robot arm must grasp an object and place it in a drawer. This environment features a high-dimensional state space (604 dimensions) and a lower-dimensional goal space (end-effector position and grasp status).

Key Insights and Ideas

  • Decomposition is Key: Breaking down complex, long-horizon tasks into smaller skills is a highly effective strategy for imitation learning, especially when data is limited.
  • Chaining is Hard, but Solvable: The primary challenge in skill chaining is ensuring that the end state of one skill is a suitable start state for the next. DCIL's chaining reward bonus directly addresses this by incentivizing states that facilitate future skill execution.
  • Overshoot for Robustness: The overshoot mechanism allows the agent to learn transitions from a wider range of states, making the learned skills more robust and adaptable.
  • Single Demonstration Power: The success of DCIL with just one demonstration highlights the potential for efficient learning in scenarios where expert data is scarce.

Key Results

  • Dubins Maze: DCIL achieved a 100% success rate in solving the maze, significantly outperforming baselines like Backplay and PWIL, which did not solve the maze within the same training budget. The chaining reward bonus was found to be critical for success, and the overshoot mechanism accelerated learning.
  • Fetch Environment: DCIL solved the Fetch task three orders of magnitude faster than Backplay, demonstrating its scalability to complex, high-dimensional robotic manipulation tasks.
  • Sample Efficiency: DCIL consistently showed superior sample efficiency compared to baselines, requiring far fewer training interactions to achieve high performance.

Limitations and Future Work

  • Reset Assumption: DCIL currently relies on the ability to reset the agent to specific states from the expert demonstration. The authors suggest future work could explore learning how to "return to interesting states" or even learning reversible skills that don't require resets at all, which would be beneficial for physical robots.
  • Potential for Critic Divergence: In the Fetch environment, the authors noted that in about 10% of runs, the critic networks used in SAC diverged, leading to failed runs. Only successful runs were reported.
  • Generalizing to Physical Robots: While successful in simulation, applying DCIL to physical robots would require addressing the reset assumption and potentially learning reversible skills.

The paper concludes by emphasizing the potential of DCIL for efficient imitation learning in data-scarce, long-horizon robotic tasks, paving the way for more practical applications of AI in robotics.

Summary updated

BibTeX
@inproceedings{chenu2022divide,
  author = {Alexandre Chenu and Nicolas Perrin-Gilbert and Olivier Sigaud},
  title = {{Divide \& Conquer Imitation Learning}},
  booktitle = {HAL},
  year = {2022},
  doi = {10.1109/iros47612.2022.9982020},
}
Figure