[Paper Review] On the difficulty of learning chaotic dynamics with RNNs
This paper establishes a fundamental theoretical link between the exploding gradient problem in RNNs and chaotic dynamics, proving that RNNs generating chaotic orbits inherently suffer from diverging gradients during backpropagation. It proposes sparsely forced Back-Propagation Through Time (BPTT) as a practical solution that leverages the system's predictability time to truncate gradients, enabling stable training on chaotic time series despite the intrinsic instability.
Recurrent neural networks (RNNs) are wide-spread machine learning tools for modeling sequential and time series data. They are notoriously hard to train because their loss gradients backpropagated in time tend to saturate or diverge during training. This is known as the exploding and vanishing gradient problem. Previous solutions to this issue either built on rather complicated, purpose-engineered architectures with gated memory buffers, or - more recently - imposed constraints that ensure convergence to a fixed point or restrict (the eigenspectrum of) the recurrence matrix. Such constraints, however, convey severe limitations on the expressivity of the RNN. Essential intrinsic dynamics such as multistability or chaos are disabled. This is inherently at disaccord with the chaotic nature of many, if not most, time series encountered in nature and society. It is particularly problematic in scientific applications where one aims to reconstruct the underlying dynamical system. Here we offer a comprehensive theoretical treatment of this problem by relating the loss gradients during RNN training to the Lyapunov spectrum of RNN-generated orbits. We mathematically prove that RNNs producing stable equilibrium or cyclic behavior have bounded gradients, whereas the gradients of RNNs with chaotic dynamics always diverge. Based on these analyses and insights we suggest ways of how to optimize the training process on chaotic data according to the system's Lyapunov spectrum, regardless of the employed RNN architecture.
Motivation & Objective
- To understand why RNNs struggle to learn chaotic time series due to exploding gradients.
- To formally link the behavior of training gradients to the Lyapunov spectrum of RNN-generated dynamics.
- To identify that standard RNN training fails on chaotic systems due to inherent gradient divergence.
- To propose a training strategy that respects the intrinsic dynamics of chaotic systems rather than suppressing them.
- To demonstrate that architectural constraints limiting expressivity (e.g., orthogonal weights) are incompatible with modeling true chaotic phenomena.
Proposed method
- Theoretical analysis connects the loss gradient during RNN training to the largest Lyapunov exponent of the RNN’s generated orbits.
- Mathematical proof shows that gradients remain bounded only for stable fixed points or cycles, but always diverge for chaotic dynamics.
- The predictability time τ_pred, derived from the maximal Lyapunov exponent, is used as a natural truncation point for backpropagation.
- Sparsely forced BPTT is introduced, where the network is periodically reset to ground-truth states at intervals aligned with τ_pred.
- The method implicitly truncates the gradient computation path by breaking hidden-to-hidden connections at forcing points, preventing unbounded accumulation.
- Empirical validation is performed on simulated chaotic systems (Lorenz, Rössler) and real EEG data, comparing performance across RNN architectures and training strategies.
Experimental results
Research questions
- RQ1Why do standard RNN training algorithms fail on chaotic time series despite architectural improvements?
- RQ2What is the mathematical relationship between the Lyapunov spectrum of an RNN’s dynamics and the behavior of its backpropagated gradients?
- RQ3Can the intrinsic predictability time of a chaotic system be used to design a stable training procedure for RNNs?
- RQ4Does sparsely forced BPTT outperform standard gradient clipping and other regularization techniques on chaotic data?
- RQ5To what extent do architectural constraints that prevent chaos (e.g., orthogonal weights) limit the expressivity of RNNs in scientific modeling?
Key findings
- RNNs producing chaotic dynamics always exhibit diverging gradients during backpropagation, which is a fundamental limitation, not a training issue.
- In contrast, RNNs with stable fixed points or cyclic behavior have bounded gradients, making them easier to train.
- The maximal Lyapunov exponent determines the predictability time τ_pred = 40.77 for the EEG data, which serves as an optimal interval for sparsely forced BPTT.
- Sparsely forced BPTT with forcing intervals matching τ_pred achieves superior reconstruction quality and lower attractor overlap error compared to standard BPTT with gradient clipping.
- Vanilla RNNs trained with sparsely forced BPTT can successfully learn chaotic dynamics, though they are harder to train than gated architectures.
- The performance of teacher forcing degrades with increasing jitter around the optimal interval τ_pred, indicating that precise alignment with τ_pred is crucial for stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.