Hierarchical State Abstraction based on Structural Information Principles

Xianghua Zeng, Hao Peng, Angsheng Li, Chunyang Liu, Lifang He, Philip S. Yu

Abstract

State abstraction is a fundamental challenge in Reinforcement Learning (RL), particularly when agents must navigate environments with high-dimensional, noisy observations. Traditional abstraction methods often rely on manually defined similarity thresholds, while modern deep learning approaches can inadvertently discard critical task-relevant information. This paper presents SISA (Structural Information principles-based State Abstraction), a novel framework that utilizes structural entropy minimization to automatically generate hierarchical state abstractions. By treating the state space as a dynamic system and optimizing its structural complexity, SISA discovers natural hierarchies without manual parameter tuning. Our evaluation across the DeepMind Control Suite and Visual Gridworld benchmarks demonstrates that SISA significantly enhances sample efficiency (up to 44.44%) and final performance (up to 18.98%) compared to existing state-of-the-art methods.

Introduction

In Reinforcement Learning, the ability to map complex observations—such as raw camera feeds—into meaningful, compact representations is known as state abstraction. Effective abstraction allows an agent to group similar states together, simplifying the decision-making process and accelerating learning. However, researchers typically face a "Goldilocks" problem: manual thresholds for state similarity are often too rigid or brittle, while automated compression techniques often suffer from "essential information loss," where subtle but vital details regarding environment dynamics or rewards are filtered out as noise.

To address these challenges, we introduce the SISA framework. SISA leverages the Structural Information Principle to perform unsupervised, adaptive hierarchical clustering. By minimizing structural entropy, the framework identifies the optimal partitioning of the state space, balancing the need for data compression with the preservation of critical environmental structures.

The SISA Framework

The SISA framework operates through a three-stage pipeline designed to transform raw observations into a robust hierarchical representation.

1. Pretraining

The process begins with a standard encoder-decoder architecture. Raw, high-dimensional observations are mapped into a low-dimensional latent space. This initial step ensures that the subsequent graph-based operations are performed on manageable representations rather than raw pixel data.

2. Hierarchical Clustering via Structural Entropy

This stage represents the core innovation of SISA. The agent constructs a "state graph" where nodes represent individual states and edges represent the similarity between them. To refine this graph, SISA includes an automatic sparsification module that converts dense similarity matrices into k-nearest neighbor (k-NN) graphs by minimizing one-dimensional structural entropy.

Once the graph is established, SISA applies the Structural Entropy Minimization Principle to generate an encoding tree. This tree represents a multi-level hierarchy of the state space. Unlike traditional clustering, the hierarchy is determined by the inherent structural complexity of the graph itself, eliminating the need for researchers to manually define the number of clusters or similarity cut-offs.

3. Weighted Abstraction

Using the encoding tree, SISA aggregates states into abstract representations. Rather than employing simple averaging, SISA introduces a weighted aggregation function. Each child node’s influence on the parent abstract state is determined by its assigned structural entropy. Furthermore, to mitigate information loss caused by finite sampling in replay buffers, the framework utilizes a conditional structural entropy measure to reconstruct and preserve the relationships between original states within the abstract hierarchy.

Experimental Evaluation

We evaluated SISA against five state-of-the-art (SOTA) baselines, including CURL, DBC, and SAC-AE, across two primary environments:

  • Visual Gridworld: A 6x6 navigation task where discrete positions are represented by noisy images, providing a controlled environment for testing offline abstraction.
  • DeepMind Control Suite (DMControl): A suite of six continuous control tasks (e.g., cartpole-swingup, cheetah-run, walker-walk) used to measure online abstraction performance and sample efficiency.

Key Results and Insights

SISA consistently outperformed all baselines in both learning speed and final reward quality. Key findings include:

  • Enhanced Performance: SISA improved mean episode rewards by up to 18.98%, with the most significant gains observed in the cartpole-swingup task.
  • Superior Sample Efficiency: The framework reached target performance levels significantly faster than competitors, showing a sample efficiency improvement of 44.44% in the ball_in_cup task.
  • Stability and Reliability: SISA exhibited lower standard deviation in rewards across multiple random seeds. This suggests that the structural entropy approach provides a more stable abstraction than heuristic-based methods, which can be sensitive to initialization.
  • Geometric Fidelity: 2D visualizations revealed that SISA’s learned abstractions accurately reconstructed the underlying geometry of the environment (such as the physical grid structure in Gridworld) more effectively than baseline models.

Discussion and Future Work

The success of SISA highlights the utility of structural entropy as a guide for discovering natural hierarchies in RL environments. By treating the state space as a dynamic system, SISA finds partitions that minimize uncertainty about the system's structure. Additionally, the framework is "plug-and-play," meaning it can be integrated with existing methods like Markov Abstraction to further enhance their performance.

Despite these strengths, the computational cost of building and optimizing encoding trees on large state graphs remains a consideration. While sparsification mitigates this, future work will focus on scaling SISA to even larger, more complex environments and exploring its application in multi-agent reinforcement learning. Furthermore, we aim to investigate how the hierarchical encoding tree can be used directly to inform high-level planning and hierarchical policy design.

Summary updated

BibTeX
@inproceedings{zeng2023hierarchical,
  author = {Xianghua Zeng and Hao Peng and Angsheng Li and Chunyang Liu and Lifang He and Philip S. Yu},
  title = {{Hierarchical State Abstraction based on Structural Information Principles}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/506},
}
Figure