Introduction
One-Shot Imitation Learning (OSIL) represents a significant milestone in robotics, aiming to develop agents capable of performing a novel task after observing just a single demonstration. Traditionally, achieving this level of generalization requires massive datasets of paired demonstrations—multiple examples of the same semantic task (e.g., "picking up a red block") performed across varying environments. However, the creation of such datasets is hindered by a significant bottleneck: the labor-intensive process of human annotation and trajectory pairing.
While unlabeled robotic data—such as teleoperation logs, play data, or random exploration—is increasingly abundant, it lacks the semantic labels necessary to identify which trajectories correspond to the same task. This paper addresses this challenge by proposing a semi-supervised framework that leverages a small amount of labeled data to unlock the potential of large, unlabeled datasets, significantly reducing the supervision required for effective OSIL.
Methodology: The Teacher-Student Framework
The authors introduce a multi-stage student-teacher framework designed to bridge the gap between limited labeled data and vast unlabeled resources.
1. Training the Teacher
The process begins by training a "teacher" encoder-decoder model on a small, labeled dataset. The critical innovation here is the integration of a contrastive loss (InfoNCE). This loss function encourages the encoder to map trajectories belonging to the same semantic task close together in a latent embedding space while pushing trajectories of different tasks further apart. This ensures the latent space is structured based on task semantics rather than just visual or state-space similarity.
2. Pseudo-Labeling via k-Nearest Neighbors
Once the teacher has learned a structured embedding space, it is used to process the large, unlabeled dataset. Every unlabeled trajectory is embedded into the latent space. For each trajectory, the system identifies its $k$-nearest neighbors ($k$-NN). These neighbors are then treated as "pseudo-pairs," operating under the assumption that proximity in the teacher's embedding space implies semantic task equivalence.
3. Student Training and Iterative Refinement
A "student" model is then trained on a combined dataset consisting of the original high-quality labeled pairs and the newly generated, massive set of pseudo-paired trajectories. This process can be iterative: the trained student can serve as a more refined teacher for the next round of pseudo-labeling, progressively improving the quality of the clusters and the resulting policy.
Experimental Evaluation
The framework was evaluated on two distinct simulated environments designed to test different aspects of imitation learning:
- Semantic Goal Navigation: Utilizing a MuJoCo-based environment, a point-mass agent must navigate to a specific object defined by color and shape while ignoring distractors. The dataset comprised 8,000 trajectories across 100 semantic scenes.
- Sequential Goal Navigation (PinPad): This more complex task requires the agent to press two buttons in a specific sequence. Success in this environment demands temporal reasoning and an understanding of task progression, rather than just reaching a final goal state.
Key Insights and Results
The research yields several critical insights into the nature of semi-supervised imitation:
- Clustering vs. Acting: A core hypothesis of the paper is that learning to group similar tasks is inherently easier than learning the precise actions required to execute them. By focusing the teacher's objective on clustering (via contrastive loss), it provides a robust, albeit noisy, signal that the student can use to learn a policy.
- Data Efficiency: The results demonstrate remarkable efficiency. In the Semantic Goal Navigation task, the semi-supervised agent matched the performance of a fully supervised model using only 15% of the labels. In the Sequential PinPad task, the agent approached full-supervision performance with a mere 5% of the labeled data.
- Robust Retrieval: Trajectory Retrieval (TR) scores remained high across various values of $k$, indicating that the contrastive embedding space is highly effective at identifying task similarities even when the initial supervision is minimal.
Discussion and Future Work
While the proposed method drastically reduces the data burden for OSIL, several challenges remain. The current experiments were conducted in simulation; transitioning to real-world robotics involves navigating noisier data and more ambiguous semantic tasks. Furthermore, the success of the framework is dependent on the initial teacher being "good enough" to provide meaningful pseudo-labels. If the initial labeled set is too small or biased, the resulting noise may impede student learning.
Future research directions include scaling the framework with more complex architectures, such as large-scale Transformers, and validating the approach on physical robotic platforms where the cost of data labeling is most prohibitive. By demonstrating that we can achieve high-performance imitation with a fraction of the labels, this work paves the way for more scalable and accessible robotic learning.
Summary updated