Value Function Spaces: Skill-Centric State Abstractions for Long-Horizon Reasoning

Dhruv Shah, Peng Xu, Yao Lu, Ted Xiao, Alexander Toshev, Sergey Levine, Brian Ichter

Reinforcement Learning (RL) has demonstrated remarkable success in training policies for complex tasks. However, as tasks stretch over longer horizons—requiring an agent to execute hundreds of small actions to reach a single goal—standard RL methods often falter. Hierarchical Reinforcement Learning (HRL) attempts to bridge this gap by breaking tasks down into reusable "skills" (e.g., "pick up block," "open drawer"). Yet, even with a robust library of skills, agents still struggle to process high-dimensional sensory data effectively.

To address this, researchers propose Value Function Spaces (VFS): a novel state abstraction built directly from the value functions of an agent's available skills. By representing the world through the lens of actionable affordances, VFS allows agents to ignore irrelevant visual distractors and reason over significantly longer horizons.

The Problem with Task-Agnostic Representations

In standard HRL, the high-level policy must decide which low-level skill to execute based on the current state, which is often derived from raw camera images. Traditional methods for compressing these images, such as Autoencoders or Contrastive Learning, are typically "task-agnostic." They might meticulously preserve the texture of a wall or the color of a background object—details that are entirely irrelevant to the task—while discarding tiny but critical features, like a key resting on the floor.

The core argument behind VFS is that a "good" state representation for a high-level policy should not be based on visual reconstruction, but rather inextricably linked to the capabilities of the agent's low-level skills.

The Value Function Space (VFS) Approach

Instead of learning general-purpose visual representations, VFS creates a state abstraction based on what the agent can do right now.

Imagine an agent equipped with a library of $k$ pre-trained skills. Each skill has a corresponding value function—a critic that estimates the expected reward (or success probability) of executing that specific skill from the current state. Rather than using compressed image pixels, VFS stacks these $k$ value estimates into a single vector. This vector becomes the agent's "abstract state."

  • Standard approach: State = [Compressed Image Pixels]
  • VFS approach: State = [V_skill1(s), V_skill2(s), ..., V_skillk(s)]
The VFS representation in action: the state is defined by a vector of value estimates for available skills, which dynamically updates as the environment changes.

This representation is inherently skill-centric. Value functions act as "affordance maps." By using them as the state, the high-level planner does not need to learn what a door looks like from scratch; it simply observes a high value for the "Unlock Door" skill and recognizes it as a viable path forward.

Key Advantages of VFS

By shifting the state representation from visual features to skill affordances, VFS unlocks several critical advantages:

  • Functional Equivalence: VFS naturally groups visually distinct scenes into the same representation if they offer the same affordances. If a robot's arm is in a different pose but can still reach the same block with the same probability of success, VFS treats those states as identical.
  • Robustness to Distractors: Because the representation is built exclusively from skill values, it is effectively "blind" to anything that does not impact those skills. Changes in lighting, background colors, or decorative objects are automatically filtered out.
  • Zero-Shot Generalization: VFS focuses on "what is possible" rather than "what things look like." Consequently, a policy trained in one environment layout can often be deployed in a completely new one without further training, provided the same underlying skills remain applicable.

Empirical Validation

The researchers evaluated VFS on two primary benchmarks: a high-fidelity 8-DoF robotic manipulation task and the MiniGrid 2D navigation environment.

In the Robotic Manipulation task (semantic rearrangement of up to 10 objects), VFS achieved an 80% success rate. This nearly matched the "Oracle State" baseline (85%), which had access to perfect, underlying simulator data. In contrast, standard image-based representations struggled to break a 40% success rate.

Long-horizon navigation in the MiniGrid environment, where VFS enables the agent to chain multiple skills to reach distant goals.

The results were similarly striking in MiniGrid, which tests long-horizon logic and sparse rewards across multiple rooms. In the most difficult 10-room navigation task, VFS achieved a 77% success rate, vastly outperforming the best baseline (CURL, a contrastive learning method) at 43%, and standard HRL using raw observations at 29%.

Furthermore, VFS demonstrated exceptional generalization. When trained on a "KeyCorridor" task and tested zero-shot on a different "MultiRoom" task, VFS maintained an 87% success rate, whereas all other representation learning methods plummeted below 50%.

Limitations and Future Directions

While highly effective, the most significant limitation of VFS is that it assumes the low-level skills are already provided. It does not address how to discover or learn these skills from scratch. If the provided skills are poorly trained or fail to cover the necessary actions for a task, the resulting VFS representation will be inherently incomplete.

Future work may explore jointly learning the skills alongside the VFS representation. Additionally, extending VFS to accommodate continuous skill spaces—where there might be infinitely many parameterized variations of a single "reach" skill—remains an exciting open challenge for the field.

Summary updated

BibTeX
@inproceedings{shah2022value,
  author = {Dhruv Shah and Peng Xu and Yao Lu and Ted Xiao and Alexander Toshev and Sergey Levine and Brian Ichter},
  title = {{Value Function Spaces: Skill-Centric State Abstractions for Long-Horizon Reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=9hATJDsGwN},
}
Figure