Stabilizing RNN Gradients through Pre-training
Not on the map. Why?
Abstract (arXiv)
Numerous theories of learning propose to prevent the gradient from exponential growth with depth or time, to stabilize and improve training. Typically, these analyses are conducted on feed-forward fully-connected neural networks or simple single-layer recurrent neural networks, given their mathematical tractability. In contrast, this study demonstrates that pre-training the network to local stability can be effective whenever the architectures are too complex for an analytical initialization. Furthermore, we extend known stability theories to encompass a broader family of deep recurrent networks, requiring minimal assumptions on data and parameter distribution, a theory we call the Local Stability Condition (LSC). Our investigation reveals that the classical Glorot, He, and Orthogonal initialization schemes satisfy the LSC when applied to feed-forward fully-connected neural networks. However, analysing deep recurrent networks, we identify a new additive source of exponential explosion that emerges from counting gradient paths in a rectangular grid in depth and time. We propose a new approach to mitigate this issue, that consists on giving a weight of a half to the time and depth contributions to the gradient, instead of the classical weight of one. Our empirical results confirm that pre-training both feed-forward and recurrent networks, for differentiable, neuromorphic and state-space models to fulfill the LSC, often results in improved final performance. This study contributes to the field by providing a means to stabilize networks of any complexity. Our approach can be implemented as an additional step before pre-training on large augmented datasets, and as an alternative to finding stable initializations analytically.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 35 of its 88 references that are in the map. First posted on arXiv 23 Aug 2023.
Builds on
35 of 88 references.
References · 35
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016Layer Normalizationcited by 5,669
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2020Implicit Neural Representations with Periodic Activation Functionscited by 2,238
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2022Simplified State Space Layers for Sequence Modelingcited by 788
23 more
- 2013Exact solutions to the nonlinear dynamics of learning in deep linear neural networkscited by 763
- 2016Language Modeling with Gated Convolutional Networkscited by 702
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2019Lookahead Optimizer: k steps forward, 1 step backcited by 336
- 2015Unitary Evolution Recurrent Neural Networkscited by 294
- 2020AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradientscited by 283
- 2020Towards the Systematic Reporting of the Energy and Carbon Footprints of Machine Learningcited by 249
- 2017SuperSpike: Supervised learning in multi-layer spiking neural networkscited by 182
- 2018Long short-term memory and learning-to-learn in networks of spiking neuronscited by 181
- 2021The Principles of Deep Learning Theorycited by 173
- 2018Independently Recurrent Neural Network (IndRNN): Building A Longer and Deeper RNNcited by 143
- 2019The Heidelberg spiking datasets for the systematic evaluation of spiking neural networkscited by 137
- 2015A Simple Way to Initialize Recurrent Networks of Rectified Linear Unitscited by 130
- 2021Accurate and efficient time-domain classification with adaptive spiking recurrent neural networkscited by 115
- 2021Gradients are Not All You Needcited by 86
- 2019Orthogonal Deep Neural Networkscited by 72
- 2016Convolutional Networks for Fast, Energy-Efficient Neuromorphic Computingcited by 70
- 2015Gated Feedback Recurrent Neural Networkscited by 54
- 2016Recurrent Orthogonal Networks and Long-Memory Taskscited by 38
- 2018Benchmarking Keyword Spotting Efficiency on Neuromorphic Hardwarecited by 37
- 2019Non-normal Recurrent Neural Network (nnRNN): learning long time dependencies while improving expressivity with transient dynamicscited by 29
- 2019Beyond Folklore: A Scaling Calculus for the Design and Initialization of ReLU Networkscited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Recurrent neural networks: vanishing and exploding gradients are not the end of the story
- 2025Can Local Representation Alignment RNNs Solve Temporal Tasks?
- 2026Training instability in deep learning follows low-dimensional dynamical principles
- 2025Stable Gradients for Stable Learning at Scale in Deep Reinforcement Learning
- 2023Dynamic Analysis and an Eigen Initializer for Recurrent Neural Networks
- 2022Beyond the Edge of Stability via Two-step Gradient Updates
- 2026Balancing Stability and Plasticity in Sequentially Trained Early-Exiting Neural Networks
- 2025Fast Training of Recurrent Neural Networks with Stationary State Feedbacks