A Geometric Perspective on Optimal Representations for Reinforcement Learning

Marc G. Bellemare, Will Dabney, Robert Dadashi, Adrien Ali Taïga, Pablo Samuel Castro, Nicolas Le Roux, Dale Schuurmans, Tor Lattimore, Clare Lyle

Abstract

In deep reinforcement learning (RL), the quality of an agent's state representation is critical for performance. While auxiliary tasks are commonly used to improve these representations, their selection remains largely heuristic. This paper proposes a formal geometric framework for representation learning, defining the optimal representation as one that minimizes the worst-case approximation error across the set of all possible value functions, known as the value polytope. We identify "Adversarial Value Functions" (AVFs) as the extremal points of this polytope and demonstrate that training agents to predict these functions as auxiliary tasks leads to superior feature discovery and control performance in structured environments.

Introduction

The success of deep RL agents often hinges on their ability to map high-dimensional sensory inputs into compact, informative features. To facilitate this, researchers frequently employ auxiliary tasks—secondary objectives like predicting rewards or future states. Despite their empirical success, the choice of these tasks is often ad-hoc. This work addresses the fundamental question: what constitutes a mathematically optimal representation for a given environment, and how can we systematically derive auxiliary tasks to achieve it?

Theoretical Framework: The Value Polytope

We frame representation learning as an optimization problem: finding a low-dimensional mapping $\phi(x)$ that minimizes the maximum error when approximating any possible value function $V^\pi$ within a function class.

Geometric framework for representation learning showing the neural network architecture (left) and the value polytope $\mathcal{V}$ with approximation error (right).

A key insight is that the set of all value functions for stationary policies in a Markov Decision Process (MDP) forms a convex polytope $\mathcal{V} \subset \mathbb{R}^n$. The "worst-case" approximation errors for a given representation occur at the vertices of this polytope. We define these extremal value functions as Adversarial Value Functions (AVFs). By learning to approximate these AVFs, a representation naturally captures the essential geometric structure of the environment's value space.

Methodology

To generate AVFs, we introduce an interest function ($\delta$), which assigns weights to different states. AVFs are found by maximizing a weighted sum of values across the state space, effectively focusing the agent on specific "purposes" or regions.

Our proposed algorithm samples random interest functions and utilizes policy gradient methods to identify the corresponding AVFs. These functions then serve as targets for auxiliary tasks, training the neural network to predict a diverse set of "basis" value functions that span the value polytope.

Experimental Evaluation

We evaluated our approach in the Four-room domain, a benchmark grid-world environment characterized by four rooms connected by narrow hallways. This environment provides a clear topological structure where bottlenecks (doorways) are critical for navigation.

Visualization of a learned Adversarial Value Function (left) and its corresponding policy $\pi$ (right) in the four-room domain.

As shown in Figure 5, AVFs act as "flows" through the state space, either drawing the agent toward specific regions or pushing it away from corners. This "flow" perspective allows the representation to capture long-range dependencies and paths that are often missed by representations trained on random policies or single-task value functions.

Key Results and Insights

  • Visual Richness: Representations learned via AVFs clearly distinguish between different rooms and highlight doorways. In contrast, standard value-based features are often too coarse to capture these critical environmental features.
  • Superior Control: When used for downstream control tasks (e.g., using SARSA), AVF-based features significantly outperformed standard baselines.
  • Task Alignment: Unlike Proto-Value Functions (PVFs), which rely solely on the graph structure of states, AVFs incorporate transition dynamics and potential rewards, making them a more "task-aligned" generalization of spectral methods.

Conclusion and Future Work

This work provides a rigorous foundation for the design of auxiliary tasks in RL. By identifying AVFs as the optimal targets for representation learning, we move closer to principled feature engineering. Future research will focus on the computational challenges of finding AVFs in high-dimensional spaces and exploring adaptive interest functions that can dynamically guide feature discovery during the learning process.

Summary updated

BibTeX
@inproceedings{bellemare2019geometric,
  author = {Marc G. Bellemare and Will Dabney and Robert Dadashi and Adrien Ali Taïga and Pablo Samuel Castro and Nicolas Le Roux and Dale Schuurmans and Tor Lattimore and Clare Lyle},
  title = {{A Geometric Perspective on Optimal Representations for Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=SfqTNAeimZX},
}
Figure