Parameter Space Noise for Exploration

Matthias Plappert, Rein Houthooft, Prafulla Dhariwal, Szymon Sidor, Richard Y. Chen, Xi Chen, Tamim Asfour, Pieter Abbeel, Marcin Andrychowicz

Overview

Deep reinforcement learning (RL) methods typically engage in exploratory behavior by injecting noise into the action space. However, this paper proposes an alternative: adding noise directly to the agent's neural network parameters (weights) at the start of each episode. This simple shift creates more consistent, state-dependent behaviors that allow agents to explore complex environments—especially those with sparse rewards—much more effectively than traditional methods. By combining parameter noise with traditional RL methods, the authors achieve the rich exploration of evolutionary strategies while maintaining the sample efficiency of gradient-based RL.

The Problem with Action-Space Noise

In RL, an agent must balance "exploiting" known strategies with "exploring" the environment to discover better ones. Traditionally, deep RL agents explore by injecting noise into the action space. For discrete actions (like in Atari games), this usually means using $\epsilon$-greedy exploration (picking a random action a certain percentage of the time). For continuous actions (like robotics), it involves adding Gaussian noise to the network's output.

The primary issue with action-space noise is that it is temporally uncorrelated. The agent might jitter randomly at every single step, which often cancels out over time and prevents the agent from following a consistent, purposeful path toward a distant goal. This limitation is particularly devastating in "sparse reward" environments, where an agent might need to execute a long, precise sequence of actions before receiving any feedback.

Methodology: Parameter-Space Noise

Instead of perturbing the output actions, the authors propose perturbing the network's weights ($\theta$) at the beginning of an episode: $$\tilde{\theta} = \theta + \mathcal{N}(0, \sigma^2 I)$$ The agent then uses these "noisy" weights for the entire duration of that episode.

Key technical contributions to make this work include:

  • Adaptive Noise Scaling: The most sensitive aspect of parameter noise is selecting the right scale ($\sigma$). A tiny change in weights might lead to a massive behavioral shift, or none at all. The authors introduce a heuristic that automatically adjusts $\sigma$ by measuring how much the noise alters the agent's behavior in "action space" (using metrics like KL divergence).
  • Integration with Layer Normalization: To ensure a single noise scale works across different layers of a deep network, the authors employ Layer Normalization. This re-scales activations and makes the network significantly more robust to parameter perturbations.
  • Algorithm Agnosticism: The method is highly versatile and can be plugged into both off-policy algorithms (like DQN and DDPG) and on-policy algorithms (like TRPO).

Experimental Evaluation

The researchers evaluated their approach across several domains:

  1. Arcade Learning Environment (ALE): 21 classic Atari games representing high-dimensional discrete control.
  2. OpenAI Gym (MuJoCo): Standard continuous control tasks such as HalfCheetah, Hopper, and Walker2d.
  3. Sparse Reward Variants: Modified versions of Gym tasks (e.g., SparseMountainCar, SparseCartpole) where the agent only receives a reward upon reaching the final goal, drastically increasing the exploration difficulty.
  4. Chain Environment: A toy "Chain" Markov Decision Process (MDP) specifically designed to test whether an agent can perform "deep exploration" to reach a distant reward.

Key Insights and Results

Consistency is King: Because the weights are fixed for the whole episode, the agent's exploration becomes state-dependent. If the agent encounters the same state twice in one episode, it will react the same way. This consistency allows the agent to "commit" to a direction, which is vital for escaping local optima.

Superior Exploration in Deep Chains: In the "Chain" environment, parameter noise DQN solved the task easily across varying chain lengths. In contrast, standard $\epsilon$-greedy DQN failed completely as the chain grew longer, demonstrating the severe limitations of temporally uncorrelated noise for deep exploration.

Performance on the Chain environment comparing Parameter space noise DQN, Bootstrapped DQN, and epsilon-greedy DQN.

Sparse Reward Success: In sparse reward continuous control tasks like SparseMountainCar and SparseCartpoleSwingup, parameter noise was often the only method capable of consistently finding the reward. Traditional action noise agents simply wandered around the starting area indefinitely.

Performance on sparse reward continuous control tasks. Adaptive parameter noise (blue) successfully learns in environments where action noise fails.

Sample Efficiency and Stability: When compared to Evolution Strategies (ES) on Atari, the parameter-noise-enhanced DQN was roughly 25 times more sample efficient, achieving better scores with 40 million frames than ES did with 1 billion frames. Furthermore, on continuous tasks like HalfCheetah, parameter noise helped DDPG avoid common local optima (such as the agent flipping onto its back and wiggling) that frequently trap agents using standard Gaussian action noise.

Limitations and Future Work

  • Not a Silver Bullet for Hard Exploration: While it significantly improves exploration, parameter noise alone cannot solve extremely hard exploration games like Montezuma's Revenge. Such environments likely require more advanced "intrinsic motivation" or "curiosity" modules.
  • Architecture Sensitivity: The success of the method relies heavily on Layer Normalization. Without it, the sensitivity of the weights can make the noise too unpredictable and destabilize training.
  • Heuristic Scaling: The adaptive scaling mechanism is fundamentally a heuristic. While effective in practice, developing a more theoretically grounded method to map parameter perturbations to behavioral changes remains an open area for future research.

Summary updated

BibTeX
@inproceedings{plappert2018parameter,
  author = {Matthias Plappert and Rein Houthooft and Prafulla Dhariwal and Szymon Sidor and Richard Y. Chen and Xi Chen and Tamim Asfour and Pieter Abbeel and Marcin Andrychowicz},
  title = {{Parameter Space Noise for Exploration}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=ByBAl2eAZ},
}
Figure