[Paper Review] Contracting Implicit Recurrent Neural Networks: Stable Models with Improved Trainability
This paper proposes Contracting Implicit Recurrent Neural Networks (ci-RNNs), a novel RNN architecture that ensures model stability through convex contraction-based constraints, enabling faster training and improved generalization. By leveraging contraction analysis and a structured initialization scheme, ci-RNNs achieve superior performance over vanilla RNNs and stable RNNs (s-RNNs), with faster convergence and fewer unstable training trajectories, particularly in long-sequence tasks like human gait prediction.
Stability of recurrent models is closely linked with trainability, generalizability and in some applications, safety. Methods that train stable recurrent neural networks, however, do so at a significant cost to expressibility. We propose an implicit model structure that allows for a convex parametrization of stable models using contraction analysis of non-linear systems. Using these stability conditions we propose a new approach to model initialization and then provide a number of empirical results comparing the performance of our proposed model set to previous stable RNNs and vanilla RNNs. By carefully controlling stability in the model, we observe a significant increase in the speed of training and model performance.
Motivation & Objective
- To address the instability and poor trainability of recurrent neural networks (RNNs), especially in safety-critical applications.
- To develop a convex parametrization of stable RNNs using contraction analysis, avoiding the need for non-convex constraints like spectral norm projection.
- To improve training speed and model performance by designing an initialization scheme that enforces stability while preserving expressivity.
- To demonstrate that stable RNNs can be trained more efficiently without sacrificing generalization, using empirical benchmarks on system identification and gait prediction.
- To show that contraction-based stability constraints do not hinder training, unlike spectral norm constraints, which severely slow convergence.
Proposed method
- Proposes an implicit RNN structure where the hidden state dynamics are defined by a fixed-point equation: $ x = \text{ReLU}(E x + W u) $, with $ E $ and $ W $ as learnable matrices.
- Imposes a convex stability condition using contraction theory: $ \Sigma \succ 0 $, where $ \Sigma = \text{diag}(\sigma_i) $, ensuring exponential convergence of nearby trajectories.
- Derives a convex parametrization of the stability constraint via the condition $ \Sigma \succ 0 $, enabling efficient optimization and stable training.
- Introduces a novel initialization scheme that sets $ E $ to be a stable matrix satisfying the contraction condition, with $ W $ initialized randomly but scaled appropriately.
- Uses a redundant parametrization to allow for more expressive dynamics while maintaining stability, avoiding the need for spectral norm projection.
- Employs contraction metrics to ensure incremental stability independent of equilibrium or input, guaranteeing bounded input-bounded output and robustness to input perturbations.
Experimental results
Research questions
- RQ1Can a convex parametrization of stable RNNs be derived using contraction analysis to improve trainability and generalization?
- RQ2Does enforcing contraction stability via a convex constraint lead to faster training compared to unconstrained or spectral-norm-constrained RNNs?
- RQ3Can the proposed initialization scheme significantly reduce training time while maintaining or improving model performance on sequential tasks?
- RQ4How does the performance of ci-RNNs compare to vanilla RNNs and s-RNNs in terms of test error and stability across multiple participants in a gait prediction task?
- RQ5Does the contraction constraint hinder training speed, or does it enable faster convergence compared to spectral norm constraints?
Key findings
- ci-RNNs achieve significantly faster training convergence than both vanilla RNNs and s-RNNs, as shown by training error curves on simulated data.
- The proposed initialization scheme reduces training time by over 50% compared to standard initialization in implicit models, with no loss in stability or performance.
- In the gait prediction task, ci-RNNs outperform both RNNs and s-RNNs across all participants and model depths, with lower normalized simulation error (NSE) on test sets.
- All ci-RNNs trained outperform their corresponding s-RNN counterparts, with 100% of 3-layer models showing better test NSE, and no unstable models observed.
- Unlike spectral norm constraints that severely slow training (as seen in RNNs with projection), the contraction constraint does not impede optimization, enabling faster convergence.
- The implicit model structure with contraction constraints generalizes better, as evidenced by lower test NSE and absence of unbounded error trajectories in the gait prediction task.
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.