Learning Discrete State Abstractions With Deep Variational Inference

Ondrej Biza, Robert Platt, Jan-Willem van de Meent, Lawson L. S. Wong

TL;DR

This paper introduces a deep variational information bottleneck (VIB) method to learn discrete state abstractions (approximate bisimulations) from high-dimensional continuous environments. By using an action-conditioned Hidden Markov Model (HMM) as a structured prior, the system learns a compact, discrete abstract MDP end-to-end, which can then be used to efficiently plan for entirely new goals without requiring further training.

What Problem Does This Paper Address?

In deep reinforcement learning (RL), agents often operate in high-dimensional state spaces like raw pixels. However, the actual information needed to make a good decision is usually much smaller. "State abstraction" compresses these massive state spaces by discarding irrelevant details.

Example of state abstraction: mapping a grid world to a compact 3-state discrete MDP.

A mathematically principled way to do this is through bisimulation—grouping states together if they share the same transition dynamics and rewards. Unfortunately, finding exact, maximally compressed bisimulations is NP-hard. While approximate methods exist, they usually only help transfer existing policies to similar states. They fail when you want to plan for new tasks (multi-goal RL). Previous deep learning approaches to state abstraction either didn't yield a discrete Markov Decision Process (MDP) you could actually use for planning, or they required complex heuristics to extract one.

Methods

The authors frame bisimulation as a deep Variational Information Bottleneck (VIB) problem. The goal is to compress the state into a bottleneck representation that retains only the information necessary to predict a target variable, discarding the rest.

Architecture of the deep VIB model for learning discrete state abstractions.
  • The Encoder & Decoder: A Convolutional Neural Network (CNN) maps a high-dimensional state (like an image) into a continuous latent embedding. A linear decoder then predicts the Q-values (state-action values) from this embedding.
  • Structured Priors: Instead of a standard Gaussian prior, the authors introduce two structured priors: a Gaussian Mixture Model (GMM) and an action-conditioned Hidden Markov Model (HMM).
  • The "Aha" Mechanism: The HMM prior is the star of the show. It forces the continuous embeddings to cluster into discrete abstract states and learns the transition probabilities between them.
  • Planning: Once trained end-to-end, the learned parameters of the HMM prior literally become the transition matrix of a new, tiny, discrete abstract MDP. You can run standard Value Iteration on this tiny MDP to solve new tasks zero-shot.

Datasets

  • Column World: A simple 30x3 discrete grid world used to benchmark abstraction purity and sample efficiency.
  • Shapes World: A custom 4x4 grid environment with simulated 64x64 depth images where the agent picks and places objects.
  • MinAtar: Simplified Atari games used to test the method on environments with longer time horizons.
  • Building World: A more complex version of Shapes World for advanced transfer testing.

Key Insights and Ideas

  • Predicting Q-values prevents collapse: By predicting Q-values rather than expert actions, the latent space is forced to capture the underlying dynamics and expected returns, providing richer supervision.
  • HMM > GMM for dynamics: The HMM prior clusters states that are dynamically similar, capturing the temporal flow of the MDP. This is what makes the resulting abstraction a true bisimulation.
  • Zero-shot planning via offline data: Because the model learns a true abstract MDP, you can swap out the reward function to target a new goal and plan a successful policy without any new gradient updates.

Key Results

  • Sample Efficiency: In Column World, the VIB method found a highly pure, compact abstraction much faster than traditional model-based approximate bisimulation baselines.
  • High Purity & Transfer: On Shapes World, the HMM prior achieved 96-100% abstraction purity. Models trained on simple tasks successfully planned for unseen tasks with >90% success rates.
  • Robustness through Compression: In MinAtar's Breakout, compressing a standard DQN policy into the discrete abstraction actually outperformed the base DQN, likely by reducing the variance of returns between episodes.

Limitations and Future Work

  • Goal Awareness: The model can only plan for new goals if those goal states were present in the original training dataset.
  • Symmetries: Bisimulation does not leverage state-action symmetries; the authors suggest exploring MDP homomorphisms in future work.
  • Temporal Horizons: The approach struggles with very long temporal horizons as errors in the abstract transition model compound. Hierarchical RL is proposed as a potential solution.

Summary updated

BibTeX
@inproceedings{biza2020learning,
  author = {Ondrej Biza and Robert Platt and Jan-Willem van de Meent and Lawson L. S. Wong},
  title = {{Learning Discrete State Abstractions With Deep Variational Inference}},
  booktitle = {AABI},
  year = {2020},
  url = {https://openreview.net/forum?id=oU7dRDX8SNA},
}
Figure