SPIRE: Synergistic Planning, Imitation, and Reinforcement Learning for Long-Horizon Manipulation

Zihan Zhou, Animesh Garg, Dieter Fox, Caelan Reed Garrett, Ajay Mandlekar · DOI

Introduction

Robot manipulation remains a significant challenge in the field of robotics, particularly when tasks require both high-level logical sequencing and low-level physical dexterity. Traditional methods often struggle with "long-horizon" tasks—sequences of actions where a single failure at any point leads to overall task failure. SPIRE (Synergistic Planning, Imitation, and REinforcement) addresses this by combining the strengths of symbolic planning and deep learning to create a robust, data-efficient framework for complex manipulation.

The Problem: The "Triple Threat" of Manipulation

The paper identifies three primary hurdles that make long-horizon manipulation difficult for standard robotic systems:

  1. Long Horizons: Tasks like coffee preparation involve many steps in a specific sequence. A failure in the first step (e.g., picking up a pod) renders the rest of the sequence impossible.
  2. Contact-Rich Physics: Actions involving physical contact, such as inserting a pod or hanging a tool, are notoriously difficult to model mathematically, causing traditional planners to fail.
  3. The Learning Gap: Reinforcement Learning (RL) suffers from the "exploration problem," where it is unlikely to stumble upon a complex sequence of correct actions by chance. Conversely, Imitation Learning (IL) is limited by its dependence on large volumes of high-quality human demonstrations and often lacks the robustness to handle environmental variations.

The SPIRE Framework

SPIRE bridges the gap between planning and learning through a multi-stage pipeline that utilizes Task and Motion Planning (TAMP) to handle logic and RL to handle dexterity.

Decomposition via TAMP

The system uses a TAMP planner to break a complex task into two types of segments: "TAMP sections" (simple movements from point A to B) and "handoff sections" (complex, contact-rich skills). By isolating the difficult segments, the learning problem is reduced from a massive search space to a series of manageable sub-problems.

TAMP-Gated Imitation

Instead of requiring demonstrations for the entire task, humans provide teleoperated demonstrations only for the handoff sections. This data is used to train an initial policy via Behavior Cloning (BC). This "TAMP-gated" approach ensures that human effort is focused only on the parts of the task that require physical intuition.

RL Fine-Tuning with Constraints

To improve the initial BC policy, SPIRE employs RL (specifically DrQ-v2) with sparse rewards. To prevent the agent from failing during exploration, the researchers introduced two key constraints:

  • Warmstarting: The RL agent is initialized with the BC policy's weights.
  • KL-Divergence Penalty: This acts as an "anchor," preventing the RL agent from wandering too far from the human-like behavior during exploration. This ensures the agent stays within the "reward zone" while optimizing for efficiency.

Multi-Worker Scheduling

Because TAMP is computationally expensive, SPIRE uses a parallelized framework where multiple TAMP workers feed data to the learner simultaneously, preventing the RL agent from idling.

Experimental Setup and Results

The researchers evaluated SPIRE on nine simulated robot manipulation tasks using the Robosuite environment, including Square (nut-on-peg), Coffee (pod insertion), and Tool Hang (frame assembly). The most complex task, Coffee Preparation, featured a very long horizon with four distinct handoff sections.

Key Performance Metrics

  • Superior Success Rates: SPIRE reached an average success rate of 87.8%, vastly outperforming TAMP-gated IL (52.9%) and pure RL (37.6%).
  • Data Efficiency: SPIRE is 6 times more data-efficient than standard BC. It can train proficient agents with as few as 10–50 demonstrations, whereas BC often requires hundreds to reach similar success rates.
  • Operational Efficiency: SPIRE agents became more efficient than their human teachers, completing tasks using only 59% of the steps required by the original BC agents.
  • Robustness: In the "Tool Hang" task, SPIRE took a BC policy with a meager 10% success rate and fine-tuned it to a 94% success rate.

Discussion and Future Work

SPIRE demonstrates that the synergy between classical planning and modern reinforcement learning can overcome the limitations of each. Qualitatively, the authors found that SPIRE agents retain the "safety awareness" of human demonstrations—avoiding the dangerous, high-speed maneuvers often seen in pure RL agents—while achieving higher efficiency.

However, the framework currently has limitations. It focuses on rigid-body manipulation in tabletop settings and assumes high state observability (the robot can "see" the exact poses of objects). Future research may explore the use of history-based architectures (like Transformers) to handle non-Markovian tasks and extend the framework to deformable objects like cloth or liquids.

Summary updated

BibTeX
@inproceedings{zhou2024spire,
  author = {Zihan Zhou and Animesh Garg and Dieter Fox and Caelan Reed Garrett and Ajay Mandlekar},
  title = {{SPIRE: Synergistic Planning, Imitation, and Reinforcement Learning for Long-Horizon Manipulation}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=5A8LRgjraH},
}
Figure