A Distributional Analogue to the Successor Representation

Harley Wiltzer, Jesse Farebrother, Arthur Gretton, Yunhao Tang, Andre Barreto, Will Dabney, Marc G Bellemare, Mark Rowland

Introduction

In Reinforcement Learning (RL), two powerful paradigms have emerged to handle complex environments: Distributional RL and the Successor Representation (SR). Distributional RL goes beyond predicting the expected (average) return of a policy by learning the entire probability distribution of possible returns. This is crucial for risk-aware decision-making, such as avoiding rare but catastrophic failures. Meanwhile, the Successor Representation separates the learning of environment dynamics (where the agent will go) from the rewards (what the agent gets). This decoupling allows for zero-shot transfer: if the reward function changes, an SR agent can instantly calculate its new expected return without retraining.

However, these two paradigms have historically been at odds. Standard distributional RL requires the reward function to be known during training; if the reward changes, the return distribution must be relearned from scratch. Conversely, SR only predicts the expected return, discarding the variance and risk information that distributional RL provides.

This paper bridges this gap by introducing the Distributional Successor Measure (DSM), a novel framework that enables zero-shot prediction of full return distributions for unseen reward functions.

Comparison of the standard Successor Representation and the Distributional Successor Measure.

The Distributional Successor Measure (DSM)

To achieve zero-shot transfer for full return distributions, the authors propose modeling the random occupancy measure. While standard SR computes the expected discounted time spent in future states, the DSM learns a "distribution over distributions." For any given starting state, it captures the distribution of all possible future state-visitation distributions a policy might experience.

The $\delta$-model and Training

Because representing a distribution over continuous distributions is mathematically intractable, the authors approximate it using an equally-weighted ensemble of generative models, termed a $\delta$-model. Each "atom" in this ensemble acts as a generative network that predicts one possible future state occupancy.

The $\delta$-model is trained using a two-level Maximum Mean Discrepancy (MMD) loss to match distributional Bellman targets. To ensure stable training, the authors introduce two crucial practical techniques:

  1. $n$-step bootstrapping: Relying on 1-step targets in generative models causes noisy gradients. Bootstrapping over longer horizons (e.g., $n=5$) dramatically improves the signal-to-noise ratio.
  2. Adaptive Adversarial Kernels: Because the target distributions are constantly evolving during training, standard fixed distance metrics fail. The authors use an invertible neural network (iResNet) to dynamically learn the kernel used in the MMD loss.

Key Insights

  • A Reward-Agnostic Operator: The DSM acts as a mathematical operator. Once trained, you can plug any deterministic reward function into it, and it will instantly output the full distribution of returns for that reward.
  • Bypassing Compounding Errors: The naive way to perform zero-shot distributional RL is to learn a forward transition model and simulate thousands of rollouts. However, forward models suffer from compounding errors over long horizons. The DSM avoids this by directly modeling the discounted occupancies, leading to vastly superior long-horizon predictions.
  • Aleatoric vs. Epistemic Uncertainty: While standard ensembles of models capture epistemic uncertainty (the model's lack of knowledge), the coupled $\delta$-model explicitly captures aleatoric uncertainty (the inherent randomness of the environment and policy). This allows it to accurately predict the true spread of returns.

Results and Zero-Shot Transfer

The authors evaluated the DSM on continuous-state environments, including a Windy Gridworld and the classic Pendulum task. The models were trained entirely without rewards. Evaluation was then performed zero-shot on several held-out reward functions.

Density plots comparing DSM zero-shot return predictions against ground-truth Monte Carlo returns on various Pendulum tasks.

The DSM substantially outperformed baselines—including rollouts from learned transition models and standard $\gamma$-model ensembles—in estimating zero-shot return distributions, achieving much lower Cramér and Wasserstein distances to the ground-truth Monte Carlo distributions.

Crucially, the DSM enables risk-sensitive policy ranking on entirely new tasks. On a held-out task, the authors used the DSM to evaluate two different policies zero-shot. The DSM correctly identified that one policy was better if optimizing for the Mean return, but the other was superior if optimizing for the 0.4-CVaR (Conditional Value at Risk, a metric for worst-case scenarios). No other existing method can perform this kind of risk-sensitive evaluation zero-shot.

Limitations and Future Work

While powerful, the DSM framework currently requires deterministic rewards; if the environment has stochastic rewards (where the exact same state yields randomly different rewards), the mathematical factorization breaks down in most MDPs. Additionally, training an ensemble of generative models and computing pairwise MMDs scales quadratically, making it computationally expensive.

Future work will look toward scaling the DSM to high-dimensional pixel inputs and applying the practical techniques introduced here (like $n$-step bootstrapping for generative models) to broader long-horizon prediction tasks.

Summary updated

BibTeX
@inproceedings{wiltzer2024distributional,
  author = {Harley Wiltzer and Jesse Farebrother and Arthur Gretton and Yunhao Tang and Andre Barreto and Will Dabney and Marc G Bellemare and Mark Rowland},
  title = {{A Distributional Analogue to the Successor Representation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=zajsXCxMgW},
}
Figure