Table of Contents
Fetching ...

Normalization and effective learning rates in reinforcement learning

Clare Lyle, Zeyu Zheng, Khimya Khetarpal, James Martens, Hado van Hasselt, Razvan Pascanu, Will Dabney

TL;DR

The paper tackles plasticity loss in nonstationary reinforcement learning by showing that normalization induces an implicit decay in the effective learning rate due to parameter-norm growth. It introduces Normalize-and-Project (NaP), a simple protocol that pairs normalization before nonlinearities with periodic weight projections to keep parameter norms fixed, thereby keeping the effective learning rate stable. Through theoretical analysis and extensive experiments across vision, language, and deep RL domains, NaP improves robustness to nonstationarity while preserving or enhancing performance on stationary benchmarks. The findings suggest that explicit control of the effective learning rate via NaP can unlock more reliable learning in nonstationary settings and SPA-compatible architectures like ResNets and Transformers.

Abstract

Normalization layers have recently experienced a renaissance in the deep reinforcement learning and continual learning literature, with several works highlighting diverse benefits such as improving loss landscape conditioning and combatting overestimation bias. However, normalization brings with it a subtle but important side effect: an equivalence between growth in the norm of the network parameters and decay in the effective learning rate. This becomes problematic in continual learning settings, where the resulting effective learning rate schedule may decay to near zero too quickly relative to the timescale of the learning problem. We propose to make the learning rate schedule explicit with a simple re-parameterization which we call Normalize-and-Project (NaP), which couples the insertion of normalization layers with weight projection, ensuring that the effective learning rate remains constant throughout training. This technique reveals itself as a powerful analytical tool to better understand learning rate schedules in deep reinforcement learning, and as a means of improving robustness to nonstationarity in synthetic plasticity loss benchmarks along with both the single-task and sequential variants of the Arcade Learning Environment. We also show that our approach can be easily applied to popular architectures such as ResNets and transformers while recovering and in some cases even slightly improving the performance of the base model in common stationary benchmarks.

Normalization and effective learning rates in reinforcement learning

TL;DR

The paper tackles plasticity loss in nonstationary reinforcement learning by showing that normalization induces an implicit decay in the effective learning rate due to parameter-norm growth. It introduces Normalize-and-Project (NaP), a simple protocol that pairs normalization before nonlinearities with periodic weight projections to keep parameter norms fixed, thereby keeping the effective learning rate stable. Through theoretical analysis and extensive experiments across vision, language, and deep RL domains, NaP improves robustness to nonstationarity while preserving or enhancing performance on stationary benchmarks. The findings suggest that explicit control of the effective learning rate via NaP can unlock more reliable learning in nonstationary settings and SPA-compatible architectures like ResNets and Transformers.

Abstract

Normalization layers have recently experienced a renaissance in the deep reinforcement learning and continual learning literature, with several works highlighting diverse benefits such as improving loss landscape conditioning and combatting overestimation bias. However, normalization brings with it a subtle but important side effect: an equivalence between growth in the norm of the network parameters and decay in the effective learning rate. This becomes problematic in continual learning settings, where the resulting effective learning rate schedule may decay to near zero too quickly relative to the timescale of the learning problem. We propose to make the learning rate schedule explicit with a simple re-parameterization which we call Normalize-and-Project (NaP), which couples the insertion of normalization layers with weight projection, ensuring that the effective learning rate remains constant throughout training. This technique reveals itself as a powerful analytical tool to better understand learning rate schedules in deep reinforcement learning, and as a means of improving robustness to nonstationarity in synthetic plasticity loss benchmarks along with both the single-task and sequential variants of the Arcade Learning Environment. We also show that our approach can be easily applied to popular architectures such as ResNets and transformers while recovering and in some cases even slightly improving the performance of the base model in common stationary benchmarks.
Paper Structure (37 sections, 2 theorems, 19 equations, 12 figures, 3 tables, 2 algorithms)

This paper contains 37 sections, 2 theorems, 19 equations, 12 figures, 3 tables, 2 algorithms.

Key Result

Proposition 1

Consider two indices $i$ and $j$ of a feature embedding $\phi(f_{\mathrm{RMS}}(h))$ such that $\phi'(f_{\mathrm{RMS}}(h)_j) \neq 0$, and $h_i, h_j \neq 0$. Then we have In contrast, for post-activation normalization the gradient is zero whenever $\phi'(h_i)=0$, taking the form ${\partial_{h_i} f_{\mathrm{RMS}}(\phi(h))_j=-\phi'(h_i)\frac{1}{\|\phi(h)\|^{3}} \phi(h_i) \phi(h_j)}$.

Figures (12)

  • Figure 1: Continual random-labels CIFAR training: simple feedforward network architecture (No Norm) exhibits rapid growth in its parameter norm and the norm of its gradients, whereas the otherwise-identical network with layer normalization sees parameter norm growth coupled with a reduction in the norm of its gradients and reduced performance on later tasks. Constraining the parameter norm of this network maintains the performance of a random initialization.
  • Figure 2: We run a 'coupled networks' experiment as described in the text. All networks exhibit similar learning curves, as seen by the rightmost subplot, however there is small but visible gap between the learning curves obtained by NaP and an unconstrained network with fixed learning rates. Using a global learning rate schedule almost entirely closes this gap, but does not induce a precise equivalence in the dynamics as obtained by layer-wise rescaling (leftmost).
  • Figure 3: Without an explicit learning rate schedule, a Rainbow trained with NaP may fail to make any performance improvement; while the implicit schedule induced by the parameter norm is clearly important to performance, in several games this is significantly outperformed by a simple linear schedule terminating halfway through training. Intriguingly, we see a characteristic sharp improvement near the end of the decay schedule in several (though not all, e.g. fishing derby) games.
  • Figure 4: Robustness to nonstationarity: we see that without NaP, there is a wide spread in the effectiveness of various plasticity-preserving methods across two architectures. Once we incorporate NaP, however, the gaps between these methods shrink significantly and almost uniformly improves over the unconstrained baseline.
  • Figure 5: Left: We visualize the learning curves of continual atari agents on sequential ALE training (i.e. 200M frames). Each game is played for 20M frames, and agents pass sequentially from one to another, repeating all ten games twice for a total of 400M training frames. Solid lines indicate performance on the second visit to each game, and dotted lines indicate performance of a randomly initialized network on the game. Even in its second visit to each game, NaP performs comparably the randomly initialized networks, whereas the standard rainbow agent exhibits poor performance on all games in the sequential training regime. Right: aggregate effects of normalization on single-task atari, computed via the approach of agarwal2021deep. Bars indicate 95% confidence intervals over 4 seeds and 57 environments.
  • ...and 7 more figures

Theorems & Definitions (4)

  • Definition 1: Effective learning rate
  • Proposition 1
  • Proposition 2
  • proof