Tree Based Discretization for Continuous State Space Reinforcement Learning

William T. B. Uther, Manuela M. VelosoAAAI 1998

Abstract

Reinforcement learning (RL) is a powerful framework for learning policies in stochastic environments, but its efficiency often suffers from the "curse of dimensionality." In many large or continuous state spaces, significant regions are irrelevant to the agent's goal and can be aggregated into fewer states. We present the Continuous U Tree algorithm, which extends tree-based state discretization to continuous domains. By adapting regression tree techniques, Continuous U Tree identifies relevant state "chunks" without requiring a pre-defined grid. Experimental results in a continuous corridor task and a multi-agent soccer domain demonstrate that the algorithm effectively handles large state spaces through selective perception.

Introduction

Traditional RL algorithms, such as Q-learning, scale poorly as the state space grows. In continuous environments, where the number of states is technically infinite, standard tabular methods fail. While function approximation can help, it often requires manual feature engineering. Continuous U Tree addresses this by automatically discovering a useful discretization of the state space, focusing resolution only where it is needed to predict future rewards.

Methodology: The Continuous U Tree Algorithm

The algorithm represents the environment using a binary state tree where leaf nodes correspond to discrete states in a Markov Decision Process (MDP).

State Representation and Data Collection

The agent distinguishes between raw sensory input and the abstracted states (leaf nodes). As the agent interacts with the environment, it records "experience triples": the current sensory input, the action taken, the reward received, and the subsequent sensory input.

Recursive Splitting

Periodically, the algorithm evaluates whether a leaf node should be split. It tests various sensory attributes to see if dividing the state would lead to significantly different expected rewards (Q-values). Two primary splitting criteria were evaluated:

  1. Kolmogorov-Smirnov (K-S) Test: A non-parametric statistical test used to determine if two distributions of values are significantly different.
  2. Sum-Squared Error (SSE): A regression technique that minimizes variance within the resulting state groups.
Visualization of state space splits and the resulting learned policy.

Once the tree is updated, the agent treats the new set of leaves as states in a standard MDP and computes an optimal policy using Prioritized Sweeping.

Experimental Evaluation

The algorithm was tested in two distinct environments to evaluate its generalization and discretization capabilities.

The Corridor Domain

In this 2D environment, a robot navigates a hallway with one continuous dimension: temperature. The robot's movement efficiency depends on the temperature, but these ranges are unknown to the agent. Continuous U Tree successfully reduced this infinite space into just 32 discrete states, identifying critical temperature thresholds (e.g., 30° and 70°) and learning to manage its internal heater/cooler.

Hexagonal Soccer (Hexcer)

Hexcer is a 7D environment involving two players and a ball on a hexagonal grid. Although the underlying grid is discrete, the state space is large (8,268 states), making it a challenge for standard RL. Continuous U Tree was compared against Prioritized Sweeping.

Performance comparison between Prioritized Sweeping and Continuous U Tree in the Hexcer domain.

As shown in the results table, the tree-based agent significantly outperformed the baseline, winning 63% of matches. The agent autonomously learned relevant abstractions, such as the importance of the opponent's relative position.

Discussion and Conclusion

Continuous U Tree demonstrates that selective perception—increasing resolution only where it predicts reward—is a viable strategy for overcoming the curse of dimensionality. By aggregating irrelevant regions, the agent learns more efficiently from fewer world experiences. While the approach introduces computational overhead due to the need for constant re-evaluation of splits, it provides a robust path toward automated state abstraction in continuous domains.

Summary updated

BibTeX
@inproceedings{uther1998tree,
  author = {William T. B. Uther and Manuela M. Veloso},
  title = {{Tree Based Discretization for Continuous State Space Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {1998},
  url = {https://openreview.net/forum?id=BJZLwyW_ZB},
}
Figure