Skip to main content
QUICK REVIEW

[Paper Review] Compositional Imitation Learning: Explaining and executing one task at a time

Thomas Kipf, Yujia Li|arXiv (Cornell University)|Dec 4, 2018
Topic ModelingComputer Science9 references7 citations
TL;DR

CompILE proposes a compositional imitation learning framework that uses an unsupervised, differentiable sequence segmentation module to discover reusable, variable-length behavioral segments from demonstration data. Trained via autoencoding, it enables hierarchical execution of novel tasks with sparse rewards, outperforming non-hierarchical agents by learning task-specific policies from learned latent codes.

ABSTRACT

We introduce a framework for Compositional Imitation Learning and Execution (CompILE) of hierarchically-structured behavior. CompILE learns reusable, variable-length segments of behavior from demonstration data using a novel unsupervised, fully-differentiable sequence segmentation module. These learned behaviors can then be re-composed and executed to perform new tasks. At training time, CompILE auto-encodes observed behavior into a sequence of latent codes, each corresponding to a variable-length segment in the input sequence. Once trained, our model generalizes to sequences of longer length and from environment instances not seen during training. We evaluate our model in a challenging 2D multi-task environment and show that CompILE can find correct task boundaries and event encodings in an unsupervised manner without requiring annotated demonstration data. Latent codes and associated behavior policies discovered by CompILE can be used by a hierarchical agent, where the high-level policy selects actions in the latent code space, and the low-level, task-specific policies are simply the learned decoders. We found that our agent could learn given only sparse rewards, where agents without task-specific policies struggle.

Motivation & Objective

  • To enable hierarchical imitation learning without task annotations by discovering reusable behavioral segments from raw demonstration sequences.
  • To develop a fully differentiable, unsupervised sequence segmentation module that identifies variable-length behavioral segments in demonstration data.
  • To enable generalization to longer sequences and unseen environments through learned latent code representations.
  • To support hierarchical decision-making by using learned latent codes as high-level actions and decoders as low-level policies.
  • To improve sample efficiency in sparse-reward settings by leveraging task-specific policies derived from learned behaviors.

Proposed method

  • A sequence autoencoder architecture is used to encode demonstration sequences into a sequence of latent codes, each representing a variable-length behavioral segment.
  • The sequence segmentation is performed via a novel, fully differentiable module that learns to partition sequences into meaningful behavioral units without supervision.
  • Each latent code is associated with a decoder policy that maps the code to a low-level action sequence, enabling execution of learned behaviors.
  • The high-level policy operates in the latent code space, selecting codes to compose new task sequences.
  • The model is trained end-to-end using reconstruction loss to preserve input sequence fidelity while learning disentangled, reusable behaviors.
  • Generalization to longer sequences and unseen environments is achieved through the compositional nature of the learned latent codes and their associated policies.

Experimental results

Research questions

  • RQ1Can an unsupervised, differentiable sequence segmentation module discover meaningful, reusable behavioral segments from unstructured demonstration sequences?
  • RQ2Can the learned latent codes and associated policies enable effective hierarchical execution of novel, longer, or unseen tasks?
  • RQ3Does the hierarchical agent architecture with learned decoders improve sample efficiency in sparse-reward environments?
  • RQ4How well does the model identify correct task boundaries and event encodings without annotated data?
  • RQ5To what extent can the model generalize to environments and sequence lengths not seen during training?

Key findings

  • CompILE successfully discovers task boundaries and event encodings in an unsupervised manner without requiring annotated demonstration data.
  • The model generalizes to sequences of longer length than seen during training, demonstrating compositional generalization.
  • The hierarchical agent with learned decoders achieves better performance in sparse-reward settings compared to agents without task-specific policies.
  • The learned latent codes represent reusable, variable-length behavioral segments that can be recombined to form new task sequences.
  • The fully differentiable segmentation module enables end-to-end training and stable discovery of behavioral components from raw sequences.
  • The framework enables effective zero-shot transfer to unseen environments by composing learned behaviors through the latent code space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.