Gradient Flossing: Improving Gradient Descent through Dynamic Control of Jacobians
Not on the map. Why?
Abstract (arXiv)
Training recurrent neural networks (RNNs) remains a challenge due to the instability of gradients across long time horizons, which can lead to exploding and vanishing gradients. Recent research has linked these problems to the values of Lyapunov exponents for the forward-dynamics, which describe the growth or shrinkage of infinitesimal perturbations. Here, we propose gradient flossing, a novel approach to tackling gradient instability by pushing Lyapunov exponents of the forward dynamics toward zero during learning. We achieve this by regularizing Lyapunov exponents through backpropagation using differentiable linear algebra. This enables us to "floss" the gradients, stabilizing them and thus improving network training. We demonstrate that gradient flossing controls not only the gradient norm but also the condition number of the long-term Jacobian, facilitating multidimensional error feedback propagation. We find that applying gradient flossing prior to training enhances both the success rate and convergence speed for tasks involving long time horizons. For challenging tasks, we show that gradient flossing during training can further increase the time horizon that can be bridged by backpropagation through time. Moreover, we demonstrate the effectiveness of our approach on various RNN architectures and tasks of variable temporal complexity. Additionally, we provide a simple implementation of our gradient flossing algorithm that can be used in practice. Our results indicate that gradient flossing via regularizing Lyapunov exponents can significantly enhance the effectiveness of RNN training and mitigate the exploding and vanishing gradient problem.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 35 of its 75 references that are in the map. First posted on arXiv 28 Dec 2023.
Builds on
35 of 75 references.
References · 35
- 2017Attention Is All You Needcited by 59,932
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2013Exact solutions to the nonlinear dynamics of learning in deep linear neural networkscited by 748
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
- 2015Unitary Evolution Recurrent Neural Networkscited by 291
- 2016Exponential expressivity in deep neural networks through transient chaoscited by 260
- 2020ReZero is All You Need: Fast Convergence at Large Depthcited by 260
- 2019Fixup Initialization: Residual Learning Without Normalizationcited by 194
- 2015Training Very Deep Networkscited by 172
23 more
- 2017Resurrecting the sigmoid in deep learning through dynamical isometry: theory and practicecited by 132
- 2019AntisymmetricRNN: A Dynamical System View on Recurrent Neural Networkscited by 112
- 2018How to Start Training: The Effect of Initialization and Architecturecited by 109
- 2020Lipschitz Recurrent Neural Networkscited by 88
- 2017Orthogonal Recurrent Neural Networks with Scaled Cayley Transformcited by 82
- 2020Coupled Oscillatory Recurrent Neural Network (coRNN): An accurate and (gradient) stable architecture for learning long time dependenciescited by 81
- 2018The Emergence of Spectral Universality in Deep Networkscited by 74
- 2021On the difficulty of learning chaotic dynamics with RNNscited by 64
- 2018Products of Many Large Random Matrices and Gradients in Deep Neural Networkscited by 49
- 2018Dynamical Isometry and a Mean Field Theory of RNNs: Gating Enables Signal Propagation in Recurrent Neural Networkscited by 44
- 2019A Unified Framework of Online Learning Algorithms for Training Recurrent Neural Networkscited by 37
- 2020Lyapunov spectra of chaotic recurrent neural networkscited by 37
- 2016Recurrent Highway Networkscited by 36
- 2020On Lyapunov Exponents for RNNs: Understanding Information Propagation Using Dynamical Systems Toolscited by 31
- 2020Theory of gating in recurrent neural networkscited by 19
- 2019Dynamical Isometry and a Mean Field Theory of LSTMs and GRUscited by 17
- 2021Critical Initialization of Wide and Deep Neural Networks through Partial Jacobians: General Theory and Applicationscited by 8
- 2018Information Geometry of Orthogonal Initializations and Trainingcited by 7
- 2020Gating creates slow modes and controls phase-space complexity in GRUs and LSTMscited by 7
- 2023Persistent learning signals and working memory without continuous attractorscited by 6
- 2016Functional methods for disordered neural networkscited by 4
- 2022Input correlations impede suppression of chaos and learning in balanced rate networkscited by 3
- 2022AutoInit: Automatic Initialization via Jacobian Tuningcited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 2.
5 papers.
- 2025Neural ODE Transformers: Analyzing Internal Dynamics and Adaptive Fine-tuningcited by 12
- 2024A scalable generative model for dynamical system reconstruction from neuroimaging datacited by 9
- 2025Predictability Enables Parallelization of Nonlinear State Space Modelscited by 7
- 2026Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topologycited by 5
- 2026Tracking Finite-Time Lyapunov Exponents to Robustify Neural ODEscited by 1
- 2026Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topology14 May 2026
- 2026Tracking Finite-Time Lyapunov Exponents to Robustify Neural ODEs10 Feb 2026
- 2025Predictability Enables Parallelization of Nonlinear State Space Models22 Aug 2025
- 2025Neural ODE Transformers: Analyzing Internal Dynamics and Adaptive Fine-tuning3 Mar 2025
- 2024A scalable generative model for dynamical system reconstruction from neuroimaging data5 Nov 2024