Depth and nonlinearity induce implicit exploration for RL

Justas Dauparas, Ryota Tomioka, Katja HofmannarXiv 2018

Abstract

Reinforcement learning (RL) typically relies on explicit stochasticity, such as $\epsilon$-greedy policies, to balance exploration and exploitation. This paper demonstrates that the inherent structure of deep, nonlinear neural networks—specifically their depth and activation functions—can induce "implicit exploration." Through experiments on classic OpenAI Gym benchmarks, we show that purely greedy agents can solve these tasks as effectively as traditional methods, suggesting that explicit randomness may not always be necessary in Deep RL.

Introduction

The "Exploration-Exploitation" trade-off is fundamental to RL. Traditionally, agents are forced to explore via "dithering" strategies like $\epsilon$-greedy, where random actions are taken with probability $\epsilon$. However, this paper investigates whether the complex, high-dimensional nature of deep neural networks provides sufficient noise and optimism at initialization to drive exploration naturally, a phenomenon termed "implicit exploration."

Methodology

The study utilizes Double Deep Q-Learning (DDQN) across various architectures, including linear models, shallow models (1 hidden layer), and deep models (2 hidden layers). These are tested on three benchmarks: MountainCar-v0, CartPole-v0, and Acrobot-v1. The primary comparison is between explicit exploration (decaying $\epsilon$-greedy) and implicit exploration (purely greedy, $\epsilon=0$).

Experimental Results

The results indicate that purely greedy agents ($\epsilon=0$) perform comparably to, and sometimes better than, agents with explicit exploration.

Figure 1: Comparison of greedy ($\epsilon=0$) vs. $\epsilon$-greedy policies on CartPole-v0 and Acrobot-v1. The greedy agents (a, c) achieve similar rewards to the $\epsilon$-greedy baselines (b, d).

In tasks like CartPole and Acrobot, the greedy agent matches the performance of the $\epsilon$-greedy baseline (see Figure 1). For the more challenging MountainCar-v0 task, which features sparse rewards, the greedy agent successfully reaches the goal, whereas linear greedy agents fail completely.

Figure 2: Performance on MountainCar-v0 across different exploration schedules. The purely greedy agent (a) learns effectively, matching or exceeding the performance of agents with explicit $\epsilon$ decay (b, c).

Key Insights

  • Nonlinearity as an Engine: Nonlinear activations (ReLU/Tanh) allow the network to maintain "optimism" about unexplored regions. Because the network is flexible, it avoids overgeneralizing negative results from one area to the entire state space.
  • Depth and Stability: While single hidden layers can solve these tasks, increasing network depth makes the learning process more robust and less susceptible to noise.
  • The Inverse Damper Effect: From a control theory perspective, initial random weights in deep networks often act as an "inverse damper," destabilizing the system and pushing the agent to explore the environment through movement.

Conclusion

This research suggests that architectural choices in Deep RL—specifically depth and nonlinearity—can provide a functional form of implicit exploration. While further study is needed to determine how this scales to high-dimensional environments like Atari or robotics, these findings challenge the standard reliance on explicit dithering in reinforcement learning.

Summary updated

BibTeX
@misc{dauparas2018depth,
  author = {Justas Dauparas and Ryota Tomioka and Katja Hofmann},
  title = {{Depth and nonlinearity induce implicit exploration for RL}},
  year = {2018},
  eprint = {1805.11711},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.11711},
}
Figure