Abstract
Recent advances in robot learning have enabled robots to become increasingly better at mastering a predefined set of tasks. On the other hand, as humans, we have the ability to learn a growing set of tasks over our lifetime. Continual robot learning is an emerging research direction with the goal of endowing robots with this ability. In order to learn new tasks over time, the robot first needs to infer the task at hand. Task inference, however, has received little attention in the multi-task learning literature. In this paper, we propose a novel approach to continual learning of robotic control tasks. Our approach performs unsupervised learning of behavior embeddings by incrementally self-organizing demonstrated behaviors. Task inference is made by finding the nearest behavior embedding to a demonstrated behavior, which is used together with the environment state as input to a multi-task policy trained with reinforcement learning to optimize performance over tasks. Unlike previous approaches, our approach makes no assumptions about task distribution and requires no task exploration to infer tasks. We evaluate our approach in experiments with concurrently and sequentially presented tasks and show that it outperforms other multi-task learning approaches in terms of generalization performance and convergence speed, particularly in the continual learning setting.
Introduction
In traditional robot learning, agents are typically trained on a fixed, predefined set of tasks. However, real-world applications require robots to acquire new skills over their lifetime without forgetting previously mastered ones—a paradigm known as "continual learning." A major bottleneck in this field is task inference: determining which task the robot is supposed to perform at any given moment.
Most current methods either assume a task label is provided or require the robot to "explore" the environment to figure out the task through trial and error. This is inefficient and contrasts with human learning, where we can often infer a goal simply by watching a single demonstration. This paper introduces Behavior-Guided Policy Optimization (BGPO), a framework that organizes visual demonstrations unsupervised and uses that organization to guide reinforcement learning (RL), enabling instant task inference without a separate exploration phase.
Methodology
The BGPO pipeline transforms raw video demonstrations into a functional control policy through a multi-stage process:
- Visual Feature Extraction: A Variational Autoencoder (VAE) compresses camera frames into low-dimensional vectors. To ensure these vectors capture task-relevant information rather than background noise, the VAE is jointly trained with an inverse model that predicts the action taken between two frames.
- Temporal Encoding: Since a "behavior" is a sequence of actions over time, an LSTM Autoencoder (LAE) processes these visual vectors to create a single fixed-length embedding ($\phi$) representing the entire trajectory.
- Behavior Self-Organization (GWR-B): The core innovation is the use of a Grow When Required (GWR) network to cluster these temporal embeddings. Unlike fixed-size maps, GWR adds new nodes whenever it encounters a behavior sufficiently different from its existing library. This allows the robot’s internal representation of tasks to grow dynamically over time.
- Policy Optimization: The robot uses Deep Deterministic Policy Gradient (DDPG) to learn a control policy. The policy takes both the current state and the behavior embedding from the GWR as input. Additionally, an intrinsic reward is introduced based on how closely the robot's generated trajectory matches the target behavior embedding.
Experimental Setup
The researchers evaluated the approach using the NICO (Neuro-Inspired COmpanion) robot in the CoppeliaSim simulator. The evaluation focused on three visuomotor tasks: grasping a red glass, pushing a green box toward the red glass, and pushing a green box toward a white box. The dataset consisted of 1,200 first-person demonstrations per task with randomized object positions to train the VAE, LAE, and GWR-B models.
Key Results
BGPO demonstrated significant advantages over standard meta-learning (MAML) and distillation (Dist-NLL) baselines:
- Superior Convergence: In concurrent learning scenarios, BGPO reached an 80% success rate significantly faster and more stably than the baselines.
- Continual Learning Resilience: When tasks were introduced sequentially, BGPO maintained high performance on old tasks while quickly adapting to new ones. In contrast, MAML's performance plummeted with each new task due to gradient interference and catastrophic forgetting.
- Efficiency: The behavior-matching intrinsic reward provided a denser signal for the RL agent, allowing it to learn more efficiently than by relying on sparse external rewards alone.
Discussion and Future Work
By matching embeddings in a "behavior space" rather than copying exact motor movements, the robot focuses on the outcome or intent of a demonstration. This goal-directed imitation, combined with the self-organizing map, allows the robot to add new task representations without corrupting existing parameters.
While the current system relies on first-person demonstrations, future work aims to incorporate "context translation" to allow learning from third-person perspectives (e.g., watching a human). Additionally, the authors suggest exploring how this self-organization can support hierarchical skills, where complex tasks are built from simpler, previously learned behaviors.
Summary updated