Learning Compound Tasks without Task-specific Knowledge via Imitation and Self-supervised Learning

Sang-Hyun Lee, Seung-Woo SeoICML 2020

Introduction

This paper introduces a novel imitation learning framework designed to master "compound tasks"—complex activities composed of multiple sub-steps—without requiring manual labels or prior knowledge about the task structure. By combining a self-supervised Task Transition Model with information-bottleneck regularization, the agent learns to autonomously identify sub-tasks and switch between them, outperforming existing methods on complex robotics benchmarks.

The Challenge of Compound Tasks

Most real-world tasks are not single, continuous motions; they are "compound tasks" consisting of several distinct sub-tasks. For example, making coffee involves picking up a mug, placing it under the machine, and pressing a button.

Standard Imitation Learning (IL) algorithms, such as Generative Adversarial Imitation Learning (GAIL), struggle in these scenarios because they treat entire demonstrations as single, flat sequences. To overcome this, previous approaches typically relied on "task-specific knowledge," requiring researchers to manually segment videos, label sub-tasks, or define exact transition points. This manual overhead severely limits the scalability of imitation learning for complex, real-world environments. The central question this paper addresses is: Can an agent learn the hierarchical structure of a task entirely on its own from unsegmented, unlabeled demonstrations?

Proposed Methodology

To solve the hierarchy problem, the authors propose a two-part architecture that models both the policy and the transitions between sub-tasks.

Architecture Overview
  1. The Task Transition Model ($T$): Unlike previous models that use fixed or random latent variables to represent sub-tasks, this method actively learns a transition model. It takes the previous sub-task and the current state to predict the current sub-task. This mechanism allows the agent to maintain a "memory" of its current objective.
  2. Self-supervised Sub-task Identification: The system employs a posterior network ($Q$) to extract sub-task labels directly from expert demonstrations. These extracted labels then serve as the ground truth to train the Task Transition Model in a self-supervised loop.
  3. Task-Agnostic Regularization: A common failure mode in hierarchical learning is "high-frequency switching," where the agent jitters rapidly between sub-tasks. To mitigate this, the authors apply an Information Bottleneck constraint. This forces the transition model to ignore irrelevant environmental noise and only switch sub-tasks when the state changes in a meaningful way.

Experimental Insights

The researchers evaluated their method across several environments, including standard MuJoCo benchmarks (to ensure no performance drop on simple tasks), a high-dimensional robotics task (FetchPickAndPlace-v1), and custom variants of the classic OpenAI Gym "Mountain Car" task (MountainToyCar & MountainToyCarContinuous).

A key innovation is the use of continuous latent variables. While most prior work uses discrete "slots" for sub-tasks (e.g., Task 1, Task 2), continuous variables eliminate the need to pre-define the number of sub-tasks, allowing for smoother transitions. Furthermore, by making sub-task transitions dependent on the physical state ($s_t$), the agent learns that specific areas of the environment act as "trigger points" for switching behaviors.

Mountain Car Sub-task Segmentation

The MountainToyCar environment provided a significant "Aha" moment. In these variants, the agent's state only includes position, not velocity. Traditional IL fails because the agent observes the same position and cannot determine whether to build momentum by going left or to climb the hill by going right. The proposed method successfully segments the task into distinct sub-policies based on the latent sub-task variable, effectively recovering the missing velocity information through its learned hierarchy.

Key Results

  • Superior Success Rates: On the MountainToyCar tasks, the proposed method achieved a 100% success rate, whereas standard GAIL and Behavior Cloning (BC) failed completely (0%).
  • Robotics Performance: In the complex FetchPickAndPlace environment, the method achieved a 98% success rate. A comparable hierarchical baseline (CVAE+T2M) only managed 31%, demonstrating that the specific regularization and transition modeling are crucial for high-dimensional tasks.
  • No "Primitive" Penalty: The method performed just as well as GAIL on simple tasks like HalfCheetah, proving that adding hierarchical complexity does not degrade performance on tasks that do not require it.

Limitations and Future Work

While the results are highly promising, the authors identify a few areas for future development:

  • Sample Efficiency: Similar to most adversarial imitation learning methods, this approach requires a significant amount of environmental interaction during training.
  • Visual Inputs: Current experiments rely on low-dimensional state vectors (e.g., coordinates, joint angles). Extending the framework to learn directly from raw pixels for image-based compound tasks is a logical next step.
  • Long-term Dependencies: Future work will test the model on even longer sequences of sub-tasks to evaluate the limits of the transition model's memory.

Summary updated

BibTeX
@inproceedings{lee2020learning,
  author = {Sang-Hyun Lee and Seung-Woo Seo},
  title = {{Learning Compound Tasks without Task-specific Knowledge via Imitation and Self-supervised Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure