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

This paper provides a rigorous mathematical foundation for a common practice in Deep Reinforcement Learning (RL): the use of auxiliary tasks. While researchers have long known that forcing an agent to predict extra information—like future pixels or transition models—helps it learn better features, the choice of these tasks has largely been ad-hoc.

Bellemare et al. bridge this gap by viewing representation learning through the lens of geometry, specifically the "shape" of the space of all possible value functions.

TL;DR

The authors prove that an optimal representation for RL is one that can accurately approximate the value functions of all possible policies. They show that this reduces to predicting a specific set of "Adversarial Value Functions" (AVFs), providing a formal geometric justification for why auxiliary tasks improve RL performance.

What Problem Does This Paper Address?

In Deep RL, we usually split an agent into two parts: a representation (the neural network layers that turn raw observations into a vector) and a linear head (which predicts the value of the current state).

The "Representation Learning Problem" (RLP) asks: What makes a representation $\phi$ good?

Architecture and geometric projection of value functions

Ideally, a representation shouldn't just be good for the current policy the agent is following; it should be robust enough to describe the value of any policy the agent might encounter during learning or transfer. However, there are an infinite number of policies. The authors tackle the challenge of identifying which specific value functions are the most important to "cover" so that the representation is truly optimal.

Methods

The paper introduces several key concepts to formalize this problem:

  1. The Value Polytope: The authors build on previous work showing that the set of all possible value functions for a given Markov Decision Process (MDP) forms a geometric shape called a polytope.
  2. Minimax Optimization: They define an optimal representation as one that minimizes the maximum approximation error across this entire polytope. In other words, the representation should be able to handle the "worst-case" value function.
  3. Adversarial Value Functions (AVFs): They prove that the "worst-case" value functions are the extremal vertices of the value polytope. They call these AVFs. Geometrically, if your representation is a low-dimensional subspace, the AVFs are the points furthest away from that subspace.
  4. Auxiliary Task Relaxation: Since finding the absolute worst-case is computationally NP-hard, they show that minimizing the average error over a distribution of value functions is a valid relaxation. This relaxation perfectly mirrors the auxiliary task losses used in modern deep learning.

Datasets and Environments

The primary evaluation environment is the Four-Room Domain.

  • Description: A grid-world MDP where an agent must navigate through four rooms connected by narrow openings (doorways).
  • Why it matters: This is a classic benchmark for representation learning because the doorways act as topological bottlenecks. A good representation should naturally identify these bottlenecks as important features.

Key Insights and Ideas

  • Value Functions as Basis Vectors: The paper suggests that value functions themselves are the ideal building blocks for a representation. If you can predict the value functions of diverse policies, you have captured the essential "physics" and "logic" of the environment.
  • The "Interest Function" $\delta$: AVFs are generated by maximizing a weighted sum of values across states. This weight vector, $\delta$, acts as an "interest function." If $\delta$ is positive in one area and negative in another, the resulting AVF forces the representation to distinguish between those two regions.
Visualizing the interest function, network flow, adversarial value function, and policy in the four-room domain
  • AVFs vs. Random Policies: The authors show that predicting the value functions of random policies is a poor auxiliary task. Random policies rarely reach interesting parts of the state space. AVFs, by contrast, are "adversarial"—they purposefully seek out the edges of the value polytope, forcing the representation to be much richer.
  • Connection to Spectral Methods: They show that the famous "Proto-Value Functions" (which use the eigenvectors of the graph Laplacian) are actually a special case of their framework where the auxiliary tasks are focused on reaching specific states.

Key Results

  • Visualizing Features: In the four-room domain, representations learned via AVF auxiliary tasks clearly highlighted the structure of the rooms and the importance of the doorways. Representations learned from random policies or just the main task's value function were blurry and lacked structural detail.
  • Control Performance: When using these learned representations to solve a navigation task (using SARSA), the AVF-based representation significantly outperformed naive value-based representations.
  • Efficiency: AVF representations performed comparably to Proto-Value Functions (PVFs) but are theoretically easier to integrate into standard deep learning pipelines using gradient descent.

Limitations and Future Work

  • Computational Cost: Finding the exact AVFs requires solving a policy optimization problem for every interest function $\delta$ sampled. This is expensive for complex environments.
  • Scaling to Pixels: While the theory is general, the experiments were conducted in a tabular grid-world. Applying this to high-dimensional visual inputs (like Atari or robotics) requires a way to parameterize and learn these "adversarial" policies on the fly.
  • The "Deadly Triad": The authors note that learning auxiliary value functions off-policy (which is necessary for this method) can lead to instability, a well-known hurdle in RL.

In summary, this paper moves auxiliary tasks from "heuristics that happen to work" to "principled components of a geometric optimization problem," providing a clearer map for researchers designing the next generation of RL agents.

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