Learning Plannable Representations with Causal InfoGAN

Thanard Kurutach, Aviv Tamar, Ge Yang, Stuart Russell, Pieter Abbeel

TL;DR

Causal InfoGAN is a framework that learns low-dimensional, "plannable" representations of dynamical systems directly from high-dimensional data like images. By combining deep generative models with classical search algorithms, it allows an agent to "imagine" a sequence of visual waypoints—a walkthrough—that transitions a system from a starting state to a goal, such as manipulating a rope into a specific shape.

What Problem Does This Paper Address?

For robots to operate in the real world, they need to plan long-term actions. Traditionally, this is done via two main paths: AI Planning, which uses abstract symbols (like "cup on table") but struggles to define these symbols for complex objects like ropes; and Reinforcement Learning (RL), which learns from raw pixels but often fails to generalize to new tasks and struggles with long-term reasoning.

The challenge lies in the representation. If you plan in pixel space, it's computationally nightmarish and prone to error. If you plan in an unstructured latent space (like a standard VAE or GAN), the "distance" between points doesn't necessarily correspond to how easy it is to move between them in the real world. This paper bridges the gap by learning a latent space that is explicitly structured for efficient planning.

Methods

The authors introduce Causal InfoGAN, which builds on the InfoGAN architecture. The core idea is to learn a generative model where the transitions in a low-dimensional "planning model" ($M$) induce the transitions in the high-dimensional observations ($o$).

Key components include:

  • Structured Latent Space: Unlike standard GANs that use unstructured noise, the generator here takes a pair of consecutive abstract states $(s, s')$ from a latent planning model.
  • Causal Objective: The model maximizes the mutual information between the generated observation pairs and the latent transitions that produced them. This forces the latent states to capture the "causal nature" of the data—i.e., what transitions are actually possible.
  • Disentangled Posterior: To ensure that a sequence of latent states makes sense, they use a posterior $Q(s|o)$ that maps observations back to states consistently. This allows them to "roll out" a plan in the abstract space and then decode it into images.
  • Planning Paradigms: The framework supports different latent models:
  • Discrete: Using one-hot or binary vectors, compatible with graph search algorithms like Dijkstra.
  • Continuous: Where planning is performed via linear interpolation between states.
Figure 1: The Causal InfoGAN framework. (a) Generative model (cf. Section 3). First, an abstract state s is sampled from a prior PM(s). Given s, the next state s′ is sampled using the transition model TM(s′|s). The states s, s′ are fed, together with a random noise sample z, into the generator which outputs o, o′. The discriminator D maps an observation pair to the probability of the pair being real. Finally, the approximate posterior Q maps from each observation to the distribution of the state it associates with. The causal InfoGAN loss function in Equation (5) encourages Q to predict each state accurately from each observation. (b) Planning paradigm (cf. Section 4). Given start and goal observations, we first map them to abstract states, and then we apply planning algorithms using the model M to search for a path from sstart to sgoal. Finally, from the plan in abstract states, we generate back a sequence of observations.

Datasets

The researchers evaluated their method on:

  1. 2D Navigation Tasks: Synthetic environments (Tunnels and Door-key) where a particle moves around obstacles. These were designed to test if the model could learn reachability (e.g., knowing a wall is impassable even if two points are visually close).
  2. Rope Manipulation: A real-world dataset of a robot randomly poking a rope. This involves high-dimensional (64x64) image observations and complex, deformable dynamics.

Key Insights and Ideas

  • Reachability over Geometry: Standard state-aggregation methods like K-means rely on Euclidean distance. In a "tunnel" environment, two points on opposite sides of a thin wall are close in Euclidean space but far in "dynamical" space. Causal InfoGAN learns to separate these states because it focuses on the transitions possible in the data.
  • Plannability as a Constraint: By structuring the latent space to be compatible with Dijkstra or linear interpolation, the authors ensure that the learned representation isn't just a good compression, but a useful map for navigation.
  • Visual Walkthroughs: The model generates a "walkthrough"—a sequence of images showing the intermediate steps to reach a goal. This breaks a difficult long-horizon planning problem into a series of easier, short-horizon execution steps for a lower-level controller.

Key Results

  • Superior Planning in Toy Tasks: In the "Tunnel" navigation task, Causal InfoGAN achieved 98% feasibility in its plans, while baselines like K-means and Spectral Clustering hovered between 7% and 12%. The baselines failed because they clustered states across walls, leading to "teleportation" plans.
  • Realistic Rope Planning: For rope manipulation, Causal InfoGAN generated smooth, plausible visual plans. Quantitatively, the authors used a "trajectory score" (a separate classifier trained to detect if image pairs are sequential). Causal InfoGAN significantly outperformed standard InfoGAN and DCGAN, achieving a score of ~0.95 compared to ~0.7 and ~0.65 respectively.

Limitations and Future Work

  • Encoding Real Images: The authors noted that the learned posterior $Q$ sometimes overfitted to generated images. For high-dimensional rope images, they had to perform a search over the latent space to map real observations to states, rather than using the network directly.
  • Single-Object Focus: The current experiments focus on systems with relatively simple global state (one particle or one rope). Scaling this to multi-object environments (like a robot setting a dinner table) would likely require more complex, object-oriented latent models.
  • Execution: The paper focuses on imagining the plan. The next step is integrating these visual walkthroughs with robust low-level controllers to execute the imagined actions in real-time.

Summary updated

BibTeX
@inproceedings{kurutach2018learning,
  author = {Thanard Kurutach and Aviv Tamar and Ge Yang and Stuart Russell and Pieter Abbeel},
  title = {{Learning Plannable Representations with Causal InfoGAN}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=r1W-MOWO-B},
}
Figure