techlist.io

Parameter Noise

1 posts

OpenAI2017-07-263 min readCurated summary

Better exploration with parameter noise

# Better Exploration with Parameter Noise Adding adaptive noise to the parameters of reinforcement learning policies, rather than to their actions, often improves performance. The method is simple to implement, rarely hurts results, and lets agents learn tasks much faster. On the HalfCheetah environment, a policy trained with parameter noise reached a score of about 3,000 after 20 episodes, while one trained with traditional action noise reached about 1,500. ## How Parameter Noise Differs from Action Noise - Traditional reinforcement learning explores by adding noise to the action space, which changes the probabilities of actions from one moment to the next. - Parameter noise instead perturbs the weights of the neural network policy, so the agent's decisions still depend fully on what it currently senses. - The approach sits between evolution strategies, which perturb parameters but not actions during rollouts, and methods like TRPO, DQN, and DDPG, which perturb actions but leave parameters untouched. - The authors believe the advantage comes from consistency: deliberate parameter perturbations produce exploration that persists across timesteps, while action noise produces erratic exploration unrelated to the agent's parameters. - Earlier work applied parameter noise to policy gradients, but this research extends it to deep neural network policies and to both on-policy and off-policy algorithms. ## Solving the Three Main Challenges - **Varying layer sensitivity:** Different layers respond differently to perturbations. Layer normalization keeps each perturbed layer's output within a similar distribution, so the next layer receives stable inputs. - **Shifting sensitivity over training:** The weights' sensitivity changes as training progresses, making behavior hard to predict. An adaptive scheme resizes the perturbations by measuring their effect on actions and comparing the resulting action-space noise level to a target. - **Choosing the noise scale:** Parameter noise is hard to interpret intuitively. The adaptive scheme moves the scale decision into action space, which is easier to reason about. ## Baselines and Benchmarks - The release includes baseline code for DQN, Double DQN, Dueling DQN, Dueling Double DQN, and DDPG with parameter noise. - Benchmarks compare DDQN with and without parameter noise on a subset of Atari games. - Benchmarks also compare three DDPG variants on a range of continuous control tasks in the MuJoCo simulator. ## Development Lessons - In early experiments, perturbing the DQN Q-function sometimes was so extreme that the agent repeated the same action. The team added a separate explicit policy head, as in DDPG, to work around this. - Later experiments showed the policy head was unnecessary. Changing how the noise was rescaled had likely fixed the underlying problem, so the simpler version performed comparably. - The authors note that reinforcement learning algorithms can fail silently and subtly, which can lead engineers to build workarounds around bugs they never noticed. ## Practical Takeaway Parameter noise is worth trying on any reinforcement learning problem. It is simple to add, rarely reduces performance, and can speed up learning considerably, especially when paired with layer normalization and adaptive scaling.