Variational Temporal Abstraction

Taesup Kim, Sungjin Ahn, Yoshua Bengio

Introduction

The Variational Temporal Abstraction (VTA) framework introduces a hierarchical state-space model designed to automatically discover the "rhythm" of sequential data without human supervision. By learning to group individual frames into logical subsequences, VTA enables AI agents to perform "jumpy imagination"—planning long-term futures by skipping over redundant details. This capability significantly improves the efficiency and accuracy of goal-oriented navigation tasks.

The Problem: Flat vs. Hierarchical Time

In sequence modeling and reinforcement learning (RL), most models operate at a "flat" temporal scale, meaning they process every single frame or time step sequentially. However, human planning works differently. If you imagine driving from your office to your home, you don't visualize every second of the trip. Instead, you think in high-level abstractions: "get to the highway," "exit at Main St," and "park in the driveway."

Existing AI models struggle to replicate this natural abstraction. Deterministic models, like the Hierarchical Multiscale RNN (HM-RNN), can find structure but fail to capture the stochastic (uncertain) nature of the real world. Conversely, probabilistic models can handle uncertainty but usually require their temporal structure to be hard-coded by developers. The VTA framework addresses this gap by creating a model that is both probabilistic and capable of automatically discovering latent temporal structures.

Methods: The HRSSM Architecture

To achieve this, the authors propose the Hierarchical Recurrent State Space Model (HRSSM). Its architecture is built on three main pillars:

  1. Binary Subsequence Indicators ($m_t$): Instead of trying to predict the exact length of a segment—a mathematically difficult task—the model uses a binary "boundary indicator." At each time step, the model decides whether to end the current subsequence ($m_t=1$) or continue it ($m_t=0$).
  2. Hierarchical Transitions: The model maintains two distinct levels of latent states:
  3. Temporal Abstractions ($z$): Higher-level states that only update when a boundary is detected. If no boundary is found, the state is simply "copied" to the next step.
  4. Observation Abstractions ($s$): Lower-level states that handle the fine-grained details and dynamics of each individual frame.
  5. Variational Inference with Gumbel-Softmax: To train this architecture through backpropagation despite the discrete nature of the boundary indicators, the authors employ the Gumbel-softmax reparameterization trick. They also utilize a Convolutional Neural Network (CNN) to analyze the entire sequence and propose where boundaries should logically occur (Sequence Decomposition).
Graphical representation of the Hierarchical Recurrent State Space Model (HRSSM), showing how binary indicators ($m$) control the updating of high-level states ($z$).

Experimental Setup and Datasets

The model was evaluated on two primary synthetic environments to test its ability to discover structure and plan:

  • Bouncing Balls (2D): A sequence of two colored balls bouncing inside a box. The balls change color upon hitting a wall, providing a clear visual cue for a "subsequence" boundary.
  • 3D Maze Navigation: A first-person perspective dataset where an agent moves through a maze of hallways. This environment tests the model's ability to handle complex visual data and its utility for long-horizon planning.

Key Insights and Results

The Advantage of "Jumpy Imagination"

The most significant insight from the paper is that "jumpy imagination"—predicting only the high-level states ($z$) at the ends of subsequences—is far more efficient than "flat" imagination. It drastically reduces the accumulation of errors that typically plagues models trying to predict every single frame in a long rollout.

Unsupervised Discovery and The Power of "Copy"

The model successfully learns what constitutes a "meaningful" segment entirely from raw pixels, without any manual labels. By forcing the high-level state to remain constant (COPY mode) during a subsequence, the model creates an informational "bottleneck." This encourages the lower-level states to handle local dynamics while the high-level state captures the broader context.

Performance Gains

  • Interpretability: In the Bouncing Balls task, the HRSSM successfully learned to trigger boundaries exactly when balls hit walls or changed colors.
  • Navigation Efficiency: In the 3D Maze task, the HRSSM was used as an "imagination module" for a goal-seeking agent. The agent performed rollouts in its "mind" to find the best path, successfully grouping repetitive frames (like moving down a long corridor) into single abstract steps.
  • Quantitative Superiority: HRSSM significantly outperformed the standard Recurrent State Space Model (RSSM) in goal-oriented navigation. As the "imagination length" (how far into the future the agent looked) increased, the HRSSM maintained high rewards, whereas the standard model's performance degraded due to compounding prediction errors.
Temporal abstraction in the 3D Maze environment. The model automatically groups sequences of frames (e.g., moving forward down a hallway) into single, high-level abstract steps.

Limitations and Future Work

While promising, the VTA framework has limitations.

  • Hyperparameter Sensitivity: The model relies on predefined constraints, such as the maximum number of subsequences ($N_{max}$) and the maximum length of a subsequence ($l_{max}$). If these are set poorly, the model might fail to converge or produce nonsensical segments.
  • Real-World Complexity: While successful on 2D balls and 3D mazes, the paper does not fully explore how this scaling handles the messy, high-entropy dynamics of real-world video (e.g., driving in traffic or complex human movement).

Future Directions: The authors suggest that this hierarchical structure could be extended to even more levels of abstraction. This could potentially lead to models capable of planning across vast timescales—minutes or even hours—directly from raw sensory input.

Summary updated

BibTeX
@inproceedings{kim2019variational,
  author = {Taesup Kim and Sungjin Ahn and Yoshua Bengio},
  title = {{Variational Temporal Abstraction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=HtIbrQJLBe9},
}
Figure