Generalized Value Functions for Large Action Sets

Jason Pazis, Ronald ParrICML 2011

Introduction

In reinforcement learning (RL), agents typically rely on one of two value functions to make decisions: the state-value function ($V$) or the state-action value function ($Q$). While $V$-functions are space-efficient, they require a perfect model of the environment to evaluate the outcome of potential actions. Conversely, $Q$-functions are model-free but require the agent to exhaustively evaluate every possible action to find the optimal move.

This dichotomy presents a major obstacle for real-world applications. For systems with high-resolution controls or multiple joints—such as robotics—the action space becomes enormous. Evaluating every possible action in real-time is computationally intractable, yet building a perfect environmental model is often equally difficult.

To bridge this gap, researchers have introduced the H-value function, a novel representation that structures the action space as a hypercube. This approach allows agents to select optimal actions exponentially faster—in logarithmic time—without requiring a transition model of the environment.

The H-Value Function: A Unified View

The authors propose a unified framework where $V$ and $Q$ functions are simply the two extremes of a broader family of Generalized Value Functions. The core innovation is the H-value function (named for the Hypercube).

Hypercube Structuring and Action Selection

If an environment has $|A| = 2^d$ possible actions, the H-function maps them to the vertices of a $d$-dimensional hypercube. Instead of storing one distinct value per action, the H-function stores values for the "faces" of the hypercube.

For each dimension $i$, the actions are partitioned into two sets: those where the $i$-th bit is 0, and those where it is 1. To select the best action, the agent simply compares the value of the "0-half" versus the "1-half" for each dimension. This reduces the search complexity from $|A|$ exhaustive evaluations to just $\log_2 |A|$ comparisons.

Optimization and Robustness

The functions are learned using Approximate Linear Programming (ALP). To handle large feature sets and prevent overfitting, the authors utilize Regularized ALP (RALP) with an $L_1$ penalty.

To ensure robustness, the approach employs two clever tricks:

  1. Gray Coding: When discretizing continuous actions, Gray codes are used so that a single bit-error in the H-function calculation results in an action physically close to the target, preventing wildly erratic behavior.
  2. Tie-Breaking: A tiny random constant is added to rewards to ensure a unique optimal action exists with high probability, avoiding degenerate solutions where the hypercube logic might otherwise fail.

Experiments and Key Results

The approach was evaluated on three classic control benchmarks, modified to feature massive, discretized action spaces:

  1. Inverted Pendulum: Balancing a pole using 256 discrete actions.
  2. Double Integrator: Controlling a car's acceleration on a 1D track.
  3. Bicycle Balancing: A complex 4D state-space problem with a 2D action space (torque and rider displacement) discretized into a staggering 65,536 actions.
Learning curves across three control tasks comparing H-RALP, RALP, and baselines.

Logarithmic Scaling is King

The most significant takeaway is the exponential reduction in computational cost. In the bicycle task, a standard $Q$-learning approach would require 65,536 evaluations per step. The H-function reaches a decision in just 16 comparisons.

Despite this massive reduction in computational overhead, the H-function (H-RALP) achieved nearly the exact same total reward as the full state-action version (RALP) across all tests. The H-function-based controller successfully balanced the bicycle for the full 5-minute test duration after as few as 50 training episodes. Furthermore, experiments demonstrated that $L_1$ regularization was crucial for this performance, particularly when using many Radial Basis Functions (RBFs) to represent states.

Limitations and Future Work

While the H-function scales beautifully with the number of actions, its performance remains heavily dependent on the choice of state features. Manual feature selection becomes increasingly difficult as state dimensionality grows.

Additionally, this study focused on batch-mode learning from a fixed set of samples. How the H-function's unique structure could be leveraged to guide online exploration (e.g., identifying uncertainty along specific dimensions of the hypercube) remains an exciting open question. Finally, because each dimension of the hypercube is solved as an independent linear program, the learning process is highly parallelizable—a promising avenue for future speedups.

Summary updated

BibTeX
@inproceedings{pazis2011generalized,
  author = {Jason Pazis and Ronald Parr},
  title = {{Generalized Value Functions for Large Action Sets}},
  booktitle = {International Conference on Machine Learning},
  year = {2011},
  url = {https://openreview.net/forum?id=r1E1dsbdbB},
}
Figure