Recursive Construction of Stable Assemblies of Recurrent Neural Networks

Leo Kozachkov, Michaela M Ennis, Jean-Jacques Slotine

TL;DR

This paper introduces a novel framework for building stable "networks of networks" of Recurrent Neural Networks (RNNs) by leveraging principles from nonlinear control theory. This approach allows for massive feedback connections between RNN modules while guaranteeing overall system stability, leading to state-of-the-art performance on challenging sequential processing tasks.

What Problem Does This Paper Address?

Neuroscience increasingly studies the brain as a complex system of interacting specialized areas. While individual RNNs are well-understood, extending this to networks of interacting RNNs presents a significant theoretical challenge. Specifically, simply connecting stable modules doesn't guarantee overall stability, especially given the brain's dense feedback connections. This paper addresses the crucial question of how to construct stable, modular RNN architectures that can handle complex, distributed processing, mirroring biological systems.

Methods

The authors employ contraction analysis, a powerful tool from nonlinear control theory, to ensure dynamical stability. They introduce a novel parameterization for negative feedback connections between contracting RNNs, which is amenable to gradient-based optimization. This allows them to build stable "networks of networks" recursively. They also derive several new contraction conditions for individual RNNs, providing theoretical guarantees for their stability. The core idea is to build complex, stable systems from simpler, stable building blocks, ensuring stability is preserved at each level of combination.

Datasets

The paper uses standard benchmark datasets for sequential image classification:

  • MNIST: A handwritten digits classification task.
  • Permuted seqMNIST: A variation of MNIST where pixels are presented in a fixed, random order.
  • CIFAR10: A dataset of color images with 10 classes.

Key Insights and Ideas

  • Modularity and Stability are Linked: The paper demonstrates that by ensuring individual RNN modules are "contracting" (a strong form of stability), we can construct larger, stable networks even with dense feedback.
  • Negative Feedback as a Stability Primitive: They show that carefully designed negative feedback connections are crucial for preserving stability when combining contracting RNNs.
  • Recursive Construction: The framework allows for building arbitrarily deep hierarchies of stable RNNs, mirroring the hierarchical organization seen in biological systems.
  • Sparsity Enhances Stability and Performance: Surprisingly, increasing sparsity in the RNN weights not only maintained stability but also significantly boosted performance on the tested tasks.

Key Results

The proposed "Sparse Combo Net" architecture achieved state-of-the-art (SOTA) performance on permuted seqMNIST (96.94% accuracy) and seqCIFAR10 (65.72% accuracy), outperforming previous stable RNN models. Notably, these results were achieved with a relatively small number of trainable parameters, suggesting that stability does not come at the cost of expressivity. The authors also demonstrated that removing the stability constraint on inter-subnetwork connections drastically reduced performance, highlighting the importance of their approach.

Limitations and Future Work

The authors acknowledge that their current approach relies on parameterizing weight matrices in specific ways to guarantee stability, which can increase the number of parameters and potentially slow down training. They also currently only consider constant metrics for contraction, while more general state-dependent and time-varying metrics exist. Future work includes exploring more biologically plausible weight update rules, incorporating anatomical knowledge into network construction, and testing the architectures on a wider range of tasks, including reinforcement learning and multimodal processing. They also plan to investigate the impact of sparsity on the feedback connections themselves and test the models at larger scales.

Summary updated

Abstract

Advanced applications of modern machine learning will likely involve combinations of trained networks, as are already used in spectacular systems such as DeepMind's AlphaGo. Recursively building such combinations in an effective and stable fashion while also allowing for continual refinement of the individual networks - as nature does for biological networks - will require new analysis tools. This paper takes a step in this direction by establishing contraction properties of broad classes of nonlinear recurrent networks and neural ODEs, and showing how these quantified properties allow in turn to recursively construct stable networks of networks in a systematic fashion. The results can also be used to stably combine recurrent networks and physical systems with quantified contraction properties. Similarly, they may be applied to modular computational models of cognition. We perform experiments with these combined networks on benchmark sequential tasks (e.g permuted sequential MNIST) to demonstrate their capacity for processing information across a long timescale in a provably stable manner.
BibTeX
@inproceedings{kozachkov2022recursive,
  author = {Leo Kozachkov and Michaela M Ennis and Jean-Jacques Slotine},
  title = {{Recursive Construction of Stable Assemblies of Recurrent Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=at-uERJi1p},
}
Figure