Abstract
Recurrent Neural Networks (RNNs) often struggle with vanishing and exploding gradients, which impede their ability to learn long-range dependencies. This paper introduces the Lipschitz RNN, a novel architecture that treats RNNs as continuous-time dynamical systems. By utilizing a specific functional form—a linear component combined with a Lipschitz nonlinearity—and a "symmetric-skew" matrix decomposition, the authors guarantee global exponential stability. This design effectively mitigates gradient issues while maintaining high expressivity, outperforming state-of-the-art models on benchmarks such as speech prediction and language modeling.
Introduction
The primary challenge in training RNNs is the vanishing and exploding gradient problem. Exploding gradients lead to training instability, while vanishing gradients prevent the network from capturing long-term dependencies. Previous attempts to address this, such as enforcing orthogonality or unitarity in weight matrices, often restrict the model's expressivity or only provide local stability. The Lipschitz RNN seeks to provide global stability—ensuring gradients remain bounded regardless of the network state—without sacrificing the ability to represent complex temporal patterns.
Methodology: Stability by Design
The authors formulate the hidden state $h$ of the RNN as the solution to an Ordinary Differential Equation (ODE): $$\dot{h} = A h + \sigma(W h + Ux + b)$$ where $\sigma$ is a Lipschitz nonlinearity (e.g., $\tanh$).
Symmetric-Skew Decomposition
The core innovation is the construction of the hidden-to-hidden matrices ($A$ and $W$) using a Symmetric-Skew Decomposition: $$S_{\beta, \gamma} = (1 - \beta)(M + M^T) + \beta(M - M^T) - \gamma I$$ Here, $\beta \in [0.5, 1]$ and $\gamma > 0$ are hyperparameters that control the system's dynamics:
- $\beta$ (Expressivity): When $\beta=1$, the matrix is skew-symmetric, leading to purely oscillatory behavior ideal for memory. Lowering $\beta$ introduces symmetric components, enabling more complex growth and decay dynamics.
- $\gamma$ (Stability): This parameter shifts eigenvalues to the left in the complex plane, ensuring the system remains stable.
Using the "Circle Criterion" from nonlinear systems theory, the authors prove that these constraints provide sufficient conditions for global exponential stability. To implement this in practice, the ODE is discretized using numerical integrators like the Forward Euler or the second-order Runge-Kutta (RK2) method.
Experimental Results
The Lipschitz RNN was evaluated across several standard benchmarks, including Pixel-by-pixel MNIST, TIMIT speech prediction, and Penn Tree Bank (PTB) language modeling.
Performance Benchmarks
- MNIST: The model achieved 99.4% accuracy on ordered pixels and 96.3% on permuted pixels, outperforming the Antisymmetric RNN and various unitary models.
- TIMIT: In speech prediction, the Lipschitz RNN reached a Mean Squared Error (MSE) of 2.76, nearly halving the error of the next best model (Exponential RNN at 5.48).
- Language Modeling: On the PTB character-level task, it achieved a state-of-the-art 1.43 bits-per-character (BPC).
Robustness to Noise
A key finding was the model's resilience to input perturbations. Analysis of the Hessian suggests that Lipschitz RNNs converge to "flatter" minima, which are typically associated with better generalization.
Conclusion
The Lipschitz RNN provides a mathematically grounded approach to the stability-expressivity trade-off in recurrent networks. By constraining the hidden state dynamics through a symmetric-skew decomposition, the model achieves global stability and state-of-the-art performance across diverse sequential tasks. Future work includes scaling this parameterization to convolutional layers for high-dimensional temporal data like video.
Summary updated