Exploration by Distributional Reinforcement Learning

Yunhao Tang, Shipra Agrawal

Introduction

Standard Deep Reinforcement Learning (RL) algorithms, such as Deep Q-Networks (DQN), often struggle in environments where rewards are sparse or deceptive. These algorithms typically rely on "myopic" exploration strategies like $\epsilon$-greedy, which involve taking random actions at fixed intervals. While effective for simple tasks, this "local wiggle" in the action space is insufficient for complex scenarios where a specific, long sequence of actions is required to receive any feedback.

This paper introduces a framework that unifies several state-of-the-art exploration techniques by combining Distributional Reinforcement Learning with Bayesian parameter updates. The authors propose a practical algorithm, Gauss Exploration (GE), which models the full distribution of future returns and treats neural network weights as random variables to achieve principled, "deep" exploration.

Methodology: The Gauss Exploration Framework

The proposed framework rests on two theoretical pillars:

  1. Distributional RL: Instead of learning only the expected value (the mean) of future rewards—the standard $Q(s,a)$—the agent learns the entire return distribution ($Z(s,a)$). This approach captures the inherent randomness and risk of the environment, providing a richer signal for decision-making.
  2. Bayesian Parameter Uncertainty: Rather than treating neural network weights ($\theta$) as fixed point estimates, they are treated as a distribution $q_\phi(\theta)$. This allows the agent to maintain a "hypothesis" about the optimal policy.

The Gauss Exploration (GE) Algorithm

The authors derive a practical implementation called Gauss Exploration (GE). Under this variant, the return $Z$ is assumed to follow a Gaussian distribution with a mean predicted by the neural network. The training objective minimizes a loss function that combines the Bellman error (prediction accuracy) with an entropy bonus. This bonus is crucial; it prevents the parameter distribution from collapsing prematurely, ensuring the agent remains "curious" and continues to explore diverse policies.

During execution, the agent samples a set of weights from the distribution at the start of an episode and follows the resulting policy greedily for the duration of that episode. This "consistent exploration" is a form of Thompson Sampling, allowing the agent to pursue distant goals without changing its strategy at every time step.

Experimental Evaluation

The authors evaluated GE against baselines like standard DQN and NoisyNet on benchmarks specifically designed to test exploration capabilities.

Chain MDP

The Chain MDP is a classic "trap" environment. As illustrated below, it consists of $N$ states. To reach the substantial reward ($r=1$) at the end of the chain ($s_N$), the agent must move "right" $N$ times. Conversely, moving "left" or staying at the start ($s_1$) provides a tiny, immediate reward ($r=1/1000$).

The Chain MDP environment: a sequence of N states where the agent must resist a small immediate reward at the start to reach a large reward at the end.

As $N$ increases, the probability of a random agent reaching the end becomes astronomically small ($1/2^{N-2}$), making it an ideal test for systematic exploration.

Sparse Reward Benchmarks

The authors also utilized modified versions of OpenAI Gym and MuJoCo tasks (e.g., MountainCar, Acrobot). In these "sparse" variants, the agent receives zero reward until the task is fully completed, removing the incremental feedback standard RL agents rely on.

Key Results and Insights

The experimental results demonstrate that GE significantly outperforms traditional exploration methods as task complexity scales.

Performance comparison on Chain MDP for N=10, 50, and 100, alongside state visit frequency analysis.
  • Scaling to Large State Spaces: In the $N=100$ state Chain MDP, both DQN and NoisyNet failed to find the optimal reward, remaining stuck at the beginning of the chain. In contrast, the GE algorithm solved it consistently.
  • Deep Exploration: The state visit frequency plots (Figure d above) show that GE covers a much wider area of the state space early in training compared to DQN, which fails to explore beyond the first few states.
  • Conceptual Unification: A major theoretical contribution of the paper is showing that existing methods like NoisyNet and BBQ Networks are specific instances or approximations of this broader distributional framework.

Conclusion and Future Work

By modeling the return distribution rather than just the expected value, the GE framework provides a more fundamental way to handle uncertainty. While the current Gaussian assumption is a practical simplification, it may struggle in highly multi-modal environments. Future research directions include exploring non-parametric return distributions and investigating how this distributional approach can be combined with model-based RL for even greater sample efficiency.

Summary updated

BibTeX
@inproceedings{tang2018exploration,
  author = {Yunhao Tang and Shipra Agrawal},
  title = {{Exploration by Distributional Reinforcement Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/376},
}
Figure