One-Step Distributional Reinforcement Learning

Mastane Achab, Réda Alami, Yasser Abdelaziz Dahou Djilali, Kirill Fedyanin, Eric Moulines · DOI

Abstract

Distributional Reinforcement Learning (DistrRL) has achieved state-of-the-art performance in various domains by modeling the full distribution of future returns. However, its application to optimal control tasks is hindered by a lack of convergence guarantees, as the standard Bellman optimality operator in DistrRL is generally not a contraction. This paper introduces One-Step Distributional Reinforcement Learning (OS-DistrRL), which models only the randomness of the immediate next state and reward. We prove that the resulting operator is a $\gamma$-contraction, providing the first unified convergence guarantees for both policy evaluation and control. Empirical results on toy environments and Atari games demonstrate that OS-DistrRL provides a stable and efficient path to optimal policies.

Introduction

In traditional Reinforcement Learning (RL), agents optimize for the expected long-term reward. DistrRL extends this by modeling the entire probability distribution of future returns, which has led to significant gains in complex environments like AlphaZero. Despite its empirical success, DistrRL faces a theoretical challenge: while policy evaluation is stable, the control task—finding the optimal policy—is mathematically unstable. The standard Bellman optimality operator for distributions often fails to be a contraction, potentially causing algorithms to oscillate or diverge. OS-DistrRL addresses this by simplifying the modeled randomness to ensure mathematical stability.

Methodology

The proposed OS-DistrRL framework simplifies distributional modeling by focusing on the immediate one-step transition.

  1. The One-Step Shift: Instead of modeling the cumulative randomness of all future steps, OS-DistrRL captures only the randomness induced by the environment's immediate dynamics (the next state and reward). For all subsequent steps, it utilizes the expected value.
  2. Contractive Operators: By restricting the distributional focus to the first step, the authors prove that the new Bellman optimality operator is a $\gamma$-contraction. This theoretical breakthrough guarantees convergence to a unique fixed point, solving the instability issue in environments with multiple optimal policies.
  3. Algorithmic Implementations:
    • Tabular OS-CDRL: Designed for finite state-action spaces.
  4. OS-C51: A deep learning variant building on the Categorical RL (C51) architecture, utilizing a one-step target for enhanced stability and efficiency.
  5. Cramér Projection: To maintain computational tractability, a mathematical projection maps learned distributions onto a fixed set of "atoms" (bins).

Experimental Setup

The framework was evaluated across three distinct environments:

  • Toy MDP: A two-state environment specifically constructed to trigger instability in standard DistrRL algorithms.
  • Frozen Lake: A classic grid-world task for testing tabular convergence.
  • Atari 2600 Games: High-dimensional environments (Beamrider, Breakout, Pong) used to evaluate the deep learning implementation (OS-C51).
Figure 1: A two-state Toy MDP designed to induce instability in standard distributional RL algorithms.

Results

The primary finding is the resolution of the instability inherent in standard DistrRL control.

  • Convergence and Stability: In the Toy MDP, standard Categorical DistrRL (CDRL) failed to converge, exhibiting persistent oscillations in its probability estimates. In contrast, OS-CDRL converged perfectly to the fixed point, as shown in the comparative plots.
  • Performance in Complex Tasks: In Atari games, OS-C51 achieved performance comparable to the full C51 algorithm. Notably, it reached these results using significantly fewer atoms (e.g., $K=4$ vs. $K=51$), suggesting that capturing local one-step randomness is a primary driver of DistrRL's success.
  • Computational Efficiency: The one-step target calculation is faster, reducing time complexity from $O(K \log K)$ to $O(\log K)$ per update.
Figure 2: Comparison of standard CDRL and OS-CDRL. Note the oscillations in (a) and (d) for CDRL, while OS-CDRL converges in (b) and (e).

Discussion and Conclusion

OS-DistrRL provides a unified theoretical framework for both policy evaluation and optimal control in distributional RL. By prioritizing stability over the complexity of modeling the full return distribution, it achieves "almost sure" convergence while maintaining competitive performance.

A limitation of this approach is the potential loss of information regarding long-term risk, as it averages out randomness beyond the first step. Future work could investigate Multi-Step (n-step) Distributional RL, allowing for a tunable balance between the stability of one-step modeling and the richness of full distributional representations.

Summary updated

BibTeX
@article{achab2023one,
  author = {Mastane Achab and Réda Alami and Yasser Abdelaziz Dahou Djilali and Kirill Fedyanin and Eric Moulines},
  title = {{One-Step Distributional Reinforcement Learning}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=ZPMf53vE1L},
}
Figure