Continual Robot Learning Using Self-Supervised Task Inference

Muhammad Burhan Hafez, Stefan Wermter

TL;DR

This paper introduces SSTRL (Self-Supervised Task Representation Learning), a framework that allows robots to learn a growing repertoire of skills throughout their "lifetime" without manual task labels. By using a hierarchical self-organizing architecture and contrastive learning, the robot can infer the intended task even from incomplete or "noisy" visual demonstrations and successfully execute it using reinforcement learning.

What Problem Does This Paper Address?

Most robot learning falls into two traps: it either focuses on mastering a single task in isolation or assumes a fixed, pre-defined set of tasks with perfect labels. In the real world, robots need continual learning—the ability to add new skills over time without forgetting old ones or requiring a total system reboot.

Furthermore, current "learning from observation" methods usually assume the robot sees a perfect, start-to-finish demonstration. In reality, data is messy: cameras get occluded, sensors drop frames, or the robot might only catch the tail end of a movement. This paper tackles the challenge of task inference: how a robot can watch a partial, unlabeled video of a behavior and figure out both what the goal is and how to achieve it.

Methods

The authors propose a multi-layered approach to bridge the gap between seeing a demonstration and performing the task:

  1. Hierarchical Self-Organization: Instead of a static database, the system uses Grow When Required (GWR) networks. These networks "grow" new nodes as the robot encounters novel behaviors.
  2. Action Net: Learns embeddings for movements (the "how").
  3. Intention Net: Learns embeddings for effects/final states (the "what").
  4. Behavior Net: A higher-level network that combines action and intention into a single "behavior embedding."
  5. TINet (Task Inference Network): This is the "brain" that maps a raw video demonstration to the behavior embeddings. It is trained with two specific losses:
  6. Behavior-matching loss: Forces the network to map a demo to its closest known behavior in the GWR network.
  7. Contrastive loss: This is the secret sauce for handling incomplete data. It trains the network to produce the same task embedding whether it sees a full video or just a randomly cropped snippet of it.
  8. Reinforcement Learning (DDPG): Once the task is inferred as a vector ($z$), it’s fed into a standard Deep Deterministic Policy Gradient (DDPG) agent that learns the motor controls to complete the task.

Datasets

The researchers evaluated their approach using the NICO (Neuro-Inspired COmpanion) humanoid robot, both in the CoppeliaSim simulator and on physical hardware.

  • Training Tasks: Four primary visuomotor tasks involving grasping a red glass and pushing boxes (green and white) toward specific targets.
  • Demonstrations: 1,000 visual demonstrations per task, each roughly 30 frames long.
  • Generalization Set: Three "held-out" tasks (e.g., grasping a novel object like a can) to test one-shot learning capabilities.

Key Insights and Ideas

  • Separating "How" from "What": By splitting embeddings into Action and Intention, the robot can still identify a task even if the "Action" part of a video is corrupted, provided the "Intention" (the final state) is visible.
  • The Power of Growth: Using GWR networks allows the robot’s "knowledge base" to expand naturally. This prevents the "catastrophic forgetting" common in fixed-size neural networks where new information overwrites the old.
  • Robustness to "Broken" Data: The contrastive learning objective effectively teaches the robot that a partial glimpse of a task is semantically the same as the full task. This mimics how humans can infer a goal even if they only see someone halfway through an action.

Key Results

  • Superior Continual Learning: In a sequential learning setup (Task 1 $\rightarrow$ Task 2 $\rightarrow$ Task 3 $\rightarrow$ Task 4), SSTRL maintained an average reward of over 0.8, significantly outperforming baselines like Plan2Explore and Progress&Compress, which struggled with task interference and instability.
  • Incomplete Demos: When given only partial videos, SSTRL achieved nearly 3x the reward of the closest baseline (BGPO), which failed to make any significant progress on incomplete data.
  • One-Shot Generalization: The robot could perform entirely new tasks (like grasping a can it had never seen before) with a 55-61% success rate after seeing just a single demonstration.
  • Real-World Transfer: The policy trained in simulation was deployed directly onto a physical NICO robot, achieving success rates between 60% and 75% across the four tasks without additional fine-tuning.

Limitations and Future Work

  • Computational Overhead: Growing self-organizing networks adds a layer of computational complexity during the training phase, though the authors note it scales linearly with the number of demonstrations.
  • First-Person Bias: Currently, the model relies on "first-person" demonstrations (the robot's perspective). The authors aim to adapt the system to handle "third-person" demonstrations, such as watching a human teacher.
  • Multimodal Expansion: Future iterations could incorporate natural language descriptions alongside visual demonstrations to make task inference even more robust.

Summary updated

BibTeX
@article{hafez2024continual,
  author = {Muhammad Burhan Hafez and Stefan Wermter},
  title = {{Continual Robot Learning Using Self-Supervised Task Inference}},
  journal = {IEEE Trans. Cogn. Dev. Syst.},
  year = {2024},
  url = {https://openreview.net/forum?id=W6On0DfTDE},
}
Figure