Learning Options via Compression

Yiding Jiang, Evan Zheran Liu, Benjamin Eysenbach, J Zico Kolter, Chelsea Finn

TL;DR

Skill learning in reinforcement learning (RL) often struggles because standard maximum likelihood objectives are "underspecified," frequently leading to useless, degenerate skills. This paper introduces LOVE (Learning Options Via comprEssion), which utilizes a compression-based objective to force the model to identify common, reusable temporal structures. The result is a set of semantically meaningful skills that significantly accelerate learning on new tasks, even when dealing with high-dimensional 3D image observations.

The Challenge of Underspecification

In multi-task RL, agents attempt to extract "skills" (or options) from a dataset of prior experiences. The ultimate goal is to use these skills as building blocks to solve new tasks faster than learning from scratch.

The standard approach to skill extraction is maximizing the likelihood of the observed data—essentially asking the model to "reconstruct" the trajectories it has seen. However, the authors highlight a major flaw in this approach: maximum likelihood is underspecified. A model can perfectly reconstruct data using "degenerate" solutions that offer no real utility for future tasks. For example, it might:

  1. Learn skills that are too long: Treating an entire trajectory as a single, inflexible skill.
  2. Learn skills that are too short: Treating every single primitive action as its own "skill."

Neither of these extremes helps an agent solve a new task. To be genuinely useful, skills need to capture the "middle ground"—reusable sub-routines like "open the door" or "navigate to the tree."

Comparison of skill segmentation: arbitrary vs. object-oriented.

LOVE: Learning Options Via Compression

To address this underspecification, the authors propose a new framework called LOVE (Learning Options Via comprEssion). It builds upon a graphical model known as Variational Temporal Abstraction (VTA) but introduces a critical modification to the objective function.

Instead of relying solely on maximizing likelihood, LOVE incorporates the Minimum Description Length (MDL) principle. In information theory, the most effective way to compress data is to identify and extract repeating patterns. LOVE applies this concept to RL by adding a penalty on the "description length" of the skills used to represent the data.

Key Technical Components: * The Objective: LOVE frames skill learning as a constrained optimization problem that maximizes the likelihood of the data while simultaneously minimizing the number of bits required to describe the sequence of skills. * Latent Variables: The model utilizes discrete latent variables to represent the skills ($z$) and "boundary" variables ($m$) that dictate when one skill ends and another begins. * Optimization: To make this process differentiable for neural networks, the authors employ the Gumbel-softmax trick for discrete variables and solve the constrained problem using dual gradient descent. * Closed-Loop Skills: Unlike some prior compression methods that produce "open-loop" sequences (fixed, blind sets of actions), LOVE learns "closed-loop" skills that dynamically react to the current state of the environment.

Experimental Setup and Key Insights

The researchers evaluated LOVE across three distinct settings to test its boundary detection, sample efficiency, and scalability:

  1. Didactic Frame Prediction: Two synthetic datasets (Simple Colors and Conditional Colors) were used to test if the model could correctly identify boundaries between repeating patterns in image sequences.
  2. 2D Multi-task Gridworld: A 10x10 environment where an agent must navigate around walls to pick up specific objects in a designated order.
  3. 3D Visual Multi-task Domain: A challenging 3D environment where the agent receives high-dimensional, egocentric panoramic RGB image observations (400x60x3) and must perform object-collection tasks.

Compression as a Proxy for Reusability

The core insight of the paper is that a "good" skill is one that appears frequently across different tasks. Because frequent patterns are easier to compress, a compression objective naturally incentivizes the model to find the most reusable behaviors. Maximum likelihood alone cannot distinguish between a skill that lasts one step and one that lasts twenty; compression acts as the crucial "tie-breaker" that favors temporal structure.

Key Results

  • Superior Boundary Detection: In the didactic tests, LOVE achieved an impressive 0.99 precision in identifying pattern boundaries. In contrast, standard VTA (likelihood-only) struggled significantly with boundaries that broke up patterns or spanned multiple ones.
  • Sample Efficiency in Sparse Rewards: In the 2D gridworld, LOVE solved tasks requiring significantly fewer environment interactions. In the most difficult "sparse reward" setting (where the agent only receives a point after completing an entire sequence of actions), LOVE was often the only method capable of achieving high returns.
  • Scaling to Pixels: Hierarchical RL often struggles with raw image inputs because the latent space becomes overwhelmingly complex. By focusing on the underlying temporal structure through compression, LOVE successfully scaled to the 3D visual tasks. It learned skills that navigated to and picked up objects from raw pixels, achieving near-optimal returns where competing methods like DDO (Discovery of Deep Options) or standard VTA performed poorly or failed entirely.

Limitations and Future Work

While LOVE represents a significant step forward for skill discovery, the authors note a few areas for future improvement:

  • Local Optima: The model can still get stuck in local optima during training. To mitigate this in the current study, the authors had to enforce a "minimum skill length" (e.g., 3 steps) during the initial training phase.
  • Model Complexity: The current objective focuses on "message length" (compressing the sequence of skills) but does not explicitly penalize "model length" (the complexity of the neural networks themselves). Incorporating full MDL—minimizing both—is a target for future research.
  • Noisy Data: The experiments primarily utilized relatively clean demonstrations. Testing how robust LOVE is when handling "noisy" or suboptimal offline data remains an important next step for real-world applications.

Summary updated

BibTeX
@inproceedings{jiang2022learning,
  author = {Yiding Jiang and Evan Zheran Liu and Benjamin Eysenbach and J Zico Kolter and Chelsea Finn},
  title = {{Learning Options via Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=D4fuQ1MveDM},
}
Figure