Abstract
Imitation learning from human demonstrations can teach robots complex manipulation skills, but is time-consuming and labor intensive. In contrast, Task and Motion Planning (TAMP) systems are automated and excel at solving long-horizon tasks, but they are difficult to apply to contact-rich tasks. In this paper, we present Human-in-the-Loop Task and Motion Planning (HITL-TAMP), a novel system that leverages the benefits of both approaches. The system employs a TAMP-gated control mechanism, which selectively gives and takes control to and from a human teleoperator. This enables the human teleoperator to manage a fleet of robots, maximizing data collection efficiency. The collected human data is then combined with an imitation learning framework to train a TAMP-gated policy, leading to superior performance compared to training on full task demonstrations. We compared HITL-TAMP to a conventional teleoperation system — users gathered more than 3x the number of demos given the same time budget. Furthermore, proficient agents (75%+ success) could be trained from just 10 minutes of non-expert teleoperation data. Finally, we collected 2.1K demos with HITL-TAMP across 12 contact-rich, long-horizon tasks and show that the system often produces near-perfect agents.
Introduction
Teaching robots complex, multi-step tasks like making coffee or assembling furniture typically relies on either Imitation Learning (IL) or Task and Motion Planning (TAMP). IL is effective for contact-rich tasks but is labor-intensive and difficult to scale for long-horizon sequences. TAMP systems excel at logical reasoning and free-space movement but struggle with the physical nuances of contact-rich interactions. HITL-TAMP addresses this scalability gap by combining the strengths of both: automating "easy" segments (like moving through free space) and enqueuing "hard" segments (like precise insertions) for a human teleoperator. This hybrid approach allows a single person to manage a fleet of robots, collecting high-quality demonstration data significantly faster than traditional methods.
The HITL-TAMP Framework
The core of the system is a TAMP-Gated Control mechanism. Using a PDDLStream planner, the system maps out the entire task and executes automated motion planning until it reaches a segment requiring human dexterity. At these points, control is handed off to a human teleoperator.
Constraint Learning and Asynchronous Queueing
To ensure seamless handoffs, the system learns "pre-conditions" or constraints from a small set of human demonstrations (~3 demos). It identifies the distribution of poses where a human typically begins a difficult action, allowing the TAMP system to plan a path directly to this "hand-off zone."
Efficiency is further maximized through Asynchronous Queueing. Because the robot automates travel time, the human operator does not need to monitor the robot continuously. Instead, the operator handles a queue of requests from multiple robots, performing only the critical manipulation segments. The collected data is then used to train a neural network (Behavioral Cloning) for these specific segments, which eventually replaces the human in the loop.
Experimental Evaluation
HITL-TAMP was evaluated across 12 contact-rich, long-horizon tasks in both simulation and real-world environments, including nut-on-peg assembly and coffee machine interaction.
Key Results
- Efficiency Boost: In a 15-user study, participants collected over 3x more successful demonstrations using HITL-TAMP compared to standard teleoperation within the same time budget.
- Superior Performance: Agents trained on just 10 minutes of HITL-TAMP data outperformed those trained on 150 minutes of standard teleoperation data. On the difficult "Tool Hang" task, HITL-TAMP achieved a 64% success rate, a massive improvement over the 3% achieved by prior imitation learning methods using 200 full demonstrations.
- Fleet Scaling: Analysis suggests a single human can manage a fleet of 3 to 8 robots simultaneously, depending on task complexity.
Conclusion
HITL-TAMP demonstrates that TAMP can serve as a powerful scaffold for imitation learning, focusing human effort on high-value data segments. While the system currently requires crude object models and predefined task descriptions, it significantly lowers the barrier to training proficient robotic agents for complex tasks. Future work will explore automatic uncertainty detection and scaling the framework to mobile manipulation environments.
Summary updated