Abstract
Deep Reinforcement Learning (RL) performance is often hindered by the wide range of reward scales across different environments. Traditional solutions like reward clipping stabilize learning but discard crucial information about reward magnitudes. We present Pop-Art (Preserving Outputs Precisely, while Adaptively Rescaling Targets), an algorithm that adaptively normalizes regression targets. Pop-Art ensures that network outputs remain consistent even as normalization parameters change, allowing for stable learning from unclipped rewards. Our evaluation on the Atari 2600 benchmark demonstrates that Pop-Art significantly outperforms standard clipped methods, particularly in games where reward magnitudes carry vital strategic information.
Introduction
In the landscape of Deep RL, the scale of target values—often representing cumulative rewards—can vary by several orders of magnitude. This variance poses a significant challenge for Stochastic Gradient Descent (SGD), which typically requires carefully tuned hyperparameters for specific target ranges. When targets are too large, gradients can explode; when too small, learning becomes prohibitively slow. Historically, researchers bypassed this by "clipping" rewards to a fixed range (e.g., $[-1, 1]$). While effective for stability, clipping fundamentally alters the agent's objective, making it indifferent to the relative value of different positive outcomes.
The Challenge of Scale
The difficulty stems from two primary sources: task variance and non-stationarity. In multi-task settings like the Atari suite, different games have vastly different scoring systems. Furthermore, as an agent improves, the expected value of states naturally increases, creating a "moving goalpost" for the neural network. Reward clipping addresses these by force, but at the cost of "value blindness." For instance, in Ms. Pac-Man, an agent using clipped rewards cannot distinguish between the high value of eating a ghost and the low value of eating a pellet, potentially leading to sub-optimal strategies.
The Pop-Art Algorithm
Pop-Art introduces a principled approach to normalization through two components:
- Adaptive Rescaling Targets (ART): The algorithm tracks the running mean ($\mu$) and variance ($\sigma^2$) of the targets to normalize them for the loss function.
- Preserving Outputs Precisely (POP): To prevent sudden shifts in normalization from destabilizing the network, Pop-Art updates the weights and biases of the final linear layer in tandem with $\mu$ and $\sigma$. This ensures the unnormalized output remains invariant to changes in the normalization statistics.
As shown in the figure above, Pop-Art effectively stabilizes the gradient norm across many orders of magnitude. Unlike unclipped targets, which lead to exploding gradients, or clipped targets, which can lose information, Pop-Art maintains a consistent gradient scale and minimizes error spikes during shifts in target magnitude.
Empirical Results
The effectiveness of Pop-Art was demonstrated on the 57 games of the Atari 2600 suite. By enabling the use of unclipped rewards, Pop-Art allowed agents to develop more sophisticated behaviors. In Ms. Pac-Man, the agent prioritized high-value targets like ghosts, a behavior absent in clipped agents.
Quantitatively, Double DQN equipped with Pop-Art outperformed its clipped counterpart on 32 out of 57 games. While the median improvement was modest (0.4%), the mean improvement reached 34%, largely due to dramatic performance increases in games like Centipede, Gopher, and Zaxxon (see Figure above).
Conclusion and Limitations
Pop-Art provides a robust solution to the scaling problem in deep regression and RL. By adaptively normalizing targets without disrupting network outputs, it removes the need for heuristic reward clipping and allows agents to optimize for the true objective. However, limitations remain: agents still rely on discount factors that limit long-term planning, and the algorithm does not directly address the "sparse reward" problem. Future work may explore applying similar normalization techniques to internal layers of deep networks to further enhance stability and convergence rates.
Summary updated