Sequentially Teaching Sequential Tasks ( ST ) 2 : Teaching Robots Long-Horizon Manipulation Skills

Zlatan Ajanović, Ravi Prakash, Leandro de Souza Rosa, Jens Kober · DOI

Abstract

Learning from demonstration (LfD) has proved useful for teaching robots complex skills with high sample efficiency. However, teaching long-horizon tasks with multiple skills is challenging as deviations tend to accumulate, the distributional shift becomes more evident, and human teachers become fatigued over time, thereby increasing the likelihood of failure. To address these challenges, we introduce $(ST)^2$, a sequential method for learning long-horizon manipulation tasks that allows users to control teaching flow by specifying keypoints, enabling structured and incremental demonstrations. Using this framework, we study how users respond to two teaching paradigms: 1) a traditional monolithic approach in which users demonstrate the entire task trajectory at once, and 2) a sequential approach, in which the task is segmented and demonstrated step by step. We conducted an extensive user study on the restocking task with 16 participants in a realistic retail store environment, evaluating the user preferences and effectiveness of the methods. A user-level analysis showed superior performance for the sequential approach in most cases (10 users), compared with the monolithic approach (five users), with one tie. Our subjective results indicate that some teachers prefer sequential teaching—as it allows them to teach complicated tasks iteratively—or others prefer teaching in one go due to its simplicity.

Introduction: The Challenge of Long-Horizon Manipulation

Learning from Demonstration (LfD) is a highly sample-efficient way to teach robots new skills, often through "kinesthetic teaching," where a human physically guides the robot's arm. While effective for short, discrete actions, this paradigm struggles with long-horizon tasks—such as restocking a supermarket shelf—which require a complex sequence of picking, placing, and re-grasping.

Kinesthetic teaching of a robot arm in a retail environment.

When a human attempts to teach a long task in one continuous, uninterrupted motion (a "monolithic" approach), several issues arise. Small deviations early in the trajectory compound over time, leading to significant error accumulation. Furthermore, crossing the same spatial path multiple times can create ambiguity for the underlying policy. Finally, the physical and mental effort required to guide a heavy robot arm through a long, precise sequence often leads to teacher fatigue, further degrading demonstration quality.

The $(ST)^2$ Framework

To address these issues, we propose $(ST)^2$ (Sequentially Teaching Sequential Tasks), an interactive teaching framework that allows users to break down complex tasks into manageable segments.

The system is built upon SIMPLe (Safe Interactive Movement Primitive Learning), a Gaussian Process (GP)-based policy that encodes trajectories and estimates uncertainty. If the robot encounters high uncertainty during execution, it safely stalls, allowing the human to intervene and provide local corrections. $(ST)^2$ enhances this by introducing user-driven segmentation. Using high-level commands, a teacher can:

  • Provide a demonstration for a specific segment.
  • Insert "key-points" on the fly to define the end of one segment and the start of the next.
  • Execute the task autonomously up to the next key-point.
  • Correct only the specific segment that failed, rather than re-demonstrating the entire task.

Experimental Setup: Supermarket Restocking

We evaluated $(ST)^2$ through a real-world user study involving 16 participants with varying levels of robotics experience. The benchmark task was a supermarket restocking scenario: a robotic arm must pick a carton from a box (Location A), place it on a table (Location B), re-grasp it from the side to accommodate shelf constraints, and finally place it on a shelf (Location C).

Overview of the restocking task setup and the $(ST)^2$ teaching flow across locations A, B, and C.

This task was designed using Failure Mode and Effects Analysis (FMEA) to ensure sufficient complexity and potential failure points to rigorously test both the sequential and monolithic teaching paradigms.

Key Insights and Results

Our study revealed several critical advantages of the sequential approach:

  • Semantic Alignment: While automatic segmentation often relies on spatial proximity, user-defined key-points align the robot's sub-policies with human semantic intuition (e.g., "picking" vs. "placing"). This makes corrections significantly more intuitive.
  • Efficiency in Correction: Users in the monolithic group often fell into a "correction trap," spending excessive time trying to fix a single, long block of movement. In contrast, $(ST)^2$ significantly decreased temporal demand because localized corrections were faster and more targeted.
  • Performance and Trajectory Quality: While overall success rates were comparable (65.5% for $(ST)^2$ vs. 51.1% for monolithic), a user-level analysis showed that 10 out of 16 users performed better with the sequential approach. Furthermore, $(ST)^2$ produced significantly smoother robot movements; trajectory jerk was lower ($8.91 \times 10^4$ vs $10.5 \times 10^4$), and torque jerk was drastically reduced ($7.54 \times 10^{10}$ vs $21.1 \times 10^{10}$).
  • User Preferences: Preferences were split, reflecting a trade-off between simplicity and control. Eight users preferred $(ST)^2$ for its iterative nature, while six preferred the monolithic approach for its perceived simplicity.

Conclusion and Future Work

$(ST)^2$ demonstrates that allowing users to control the flow of teaching through sequential segmentation improves both robot performance and the human teaching experience for long-horizon tasks. Future work will explore incorporating visual perception to move beyond kinesthetic state data and testing the framework on a broader variety of unstructured tasks. We also aim to study how human teaching strategies evolve over long-term interactions with the system.

Summary updated

BibTeX
@article{ajanovic2026sequentially,
  author = {Zlatan Ajanović and Ravi Prakash and Leandro de Souza Rosa and Jens Kober},
  title = {{Sequentially Teaching Sequential Tasks ( <i>ST</i> ) <sup>2</sup> : Teaching Robots Long-Horizon Manipulation Skills}},
  journal = {IEEE Robotics \& Automation Magazine},
  year = {2026},
  doi = {10.1109/mra.2026.3650853},
}
Figure