[Paper Review] RNNs of RNNs: Recursive Construction of Stable Assemblies of Recurrent Neural Networks
This paper introduces a principled framework for constructing stable, modular recurrent neural network (RNN) assemblies—'RNNs of RNNs'—using contraction theory to ensure global stability despite massive feedback between modules. By parameterizing subnetwork weights to enforce contractive dynamics and deriving stability conditions via nonlinear control theory, the authors enable gradient-based optimization of stable 'networks of networks' that achieve strong performance on sequential tasks like seqCIFAR10 and permuted MNIST.
Recurrent neural networks (RNNs) are widely used throughout neuroscience as models of local neural activity. Many properties of single RNNs are well characterized theoretically, but experimental neuroscience has moved in the direction of studying multiple interacting areas, and RNN theory needs to be likewise extended. We take a constructive approach towards this problem, leveraging tools from nonlinear control theory and machine learning to characterize when combinations of stable RNNs will themselves be stable. Importantly, we derive conditions which allow for massive feedback connections between interacting RNNs. We parameterize these conditions for easy optimization using gradient-based techniques, and show that stability-constrained "networks of networks" can perform well on challenging sequential-processing benchmark tasks. Altogether, our results provide a principled approach towards understanding distributed, modular function in the brain.
Motivation & Objective
- Address the lack of theoretical tools for analyzing stability in interconnected RNNs, especially with extensive feedback between modules.
- Extend RNN theory beyond single-network models to support multi-area, distributed neural computation as seen in modern neuroscience experiments.
- Develop a constructive, optimization-friendly method to combine stable RNN modules into larger, globally stable systems.
- Enable rapid reconfiguration of neural assemblies while preserving stability, relevant to dynamic brain function and evolutionary facilitation.
- Provide a formal, verifiable stability certificate for complex RNN architectures using contraction analysis and metric-based conditions.
Proposed method
- Use contraction analysis to define a strong form of dynamical stability that ensures exponential forgetting of initial conditions.
- Parameterize individual RNN subnetworks using a modified SVD-based weight structure: $\mathbf{W}_i = \mathbf{\Phi}_i^{-1}\mathbf{U}_i\mathbf{\Sigma}_i\mathbf{V}_i^T\mathbf{\Phi}_i$, with $\Sigma_{ii} \in [0, g^{-1})$, $\Phi_i$ diagonal and nonsingular, and $U_i, V_i$ orthogonal.
- Enforce orthogonality of $\mathbf{U}_i$ and $\mathbf{V}_i$ via matrix exponentials of skew-symmetric matrices during training.
- Derive a global stability certificate for the full network using a block-diagonal metric $\tilde{\mathbf{M}} = \text{BlockDiag}(\mathbf{\Phi}_1^2, \dots, \mathbf{\Phi}_p^2)$, ensuring the entire system remains contracting.
- Apply gradient-based optimization to train the network while maintaining stability constraints via differentiable parameterization.
- Validate the approach on sequential benchmark tasks (e.g., seqCIFAR10, permuted MNIST) with controlled hyperparameter tuning and repeatability testing.
Experimental results
Research questions
- RQ1Under what conditions can multiple stable RNN modules be interconnected into a larger, globally stable system, even with extensive feedback?
- RQ2Can contraction theory be used to construct a verifiable, differentiable stability certificate for modular RNN architectures?
- RQ3How does enforcing contractive dynamics in subnetworks affect the performance and generalization of larger 'networks of networks' on sequential tasks?
- RQ4To what extent can stability be preserved when inter-module connections are not constrained, and how does this compare to fully constrained designs?
- RQ5Can this framework support rapid reconfiguration of neural assemblies, mimicking biological modularity and facilitated variation in evolution?
Key findings
- The SVD Combo Net achieved a mean test accuracy of 64.72% on the seqCIFAR10 task across 10 trials, with a variance of 0.406, demonstrating high repeatability.
- The Sparse Combo Net reached 65.72% test accuracy on seqCIFAR10 after 200 epochs with learning rate decay at epochs 90 and 140, outperforming baseline configurations.
- In the SVD Combo Net control experiment, removing inter-module stability constraints reduced test accuracy only slightly—from 94.9% to 94.56% on permuted MNIST, indicating robustness to inter-module instability.
- The framework successfully enabled training of stable, large-scale RNNs with massive feedback connections, which are typically destabilizing in standard RNNs.
- The method supports modular, hierarchical construction of RNNs with guaranteed stability, enabling efficient optimization and dynamic reconfiguration.
- Theoretical stability conditions derived via contraction analysis were empirically validated through consistent performance across multiple trials and hyperparameter settings.
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.