Fading memory as inductive bias in residual recurrent networks
Igor Dubinin, Felix Effenberger
TL;DR
The paper investigates how architectural inductive biases from residual connections shape fading memory and learning dynamics in recurrent nets. It introduces weakly coupled residual recurrent networks (WCRNNs) that possess well-defined Lyapunov exponents, enabling explicit control over memory timescales; for linear residuals, the network-wide Lyapunov spectrum approximates the log-eigenvalues of the residual matrix, $LE_{net} \approx \log\lambda_{residual}$, with subcritical, critical, and supercritical regimes. The authors show that near the edge of chaos offers the best trade-off between learning efficiency and stability, and demonstrate that different residual forms—rotational, heterogeneous, and non-linear—provide dataset-informed inductive biases that enhance practical expressivity across benchmarks such as sMNIST, psMNIST, ADD, and sCIFAR10; they also extend findings to non-linear residuals and propose a weakly coupled residual initialization for Elman RNNs. These results suggest principled design principles for memory-focused RNNs, enabling improved performance on long-range sequence tasks without constraining weight matrices. The work has potential implications for both artificial systems and neuroscience-inspired models, where operating near criticality with controlled memory is advantageous for learning and generalization.
Abstract
Residual connections have been proposed as an architecture-based inductive bias to mitigate the problem of exploding and vanishing gradients and increased task performance in both feed-forward and recurrent networks (RNNs) when trained with the backpropagation algorithm. Yet, little is known about how residual connections in RNNs influence their dynamics and fading memory properties. Here, we introduce weakly coupled residual recurrent networks (WCRNNs) in which residual connections result in well-defined Lyapunov exponents and allow for studying properties of fading memory. We investigate how the residual connections of WCRNNs influence their performance, network dynamics, and memory properties on a set of benchmark tasks. We show that several distinct forms of residual connections yield effective inductive biases that result in increased network expressivity. In particular, those are residual connections that (i) result in network dynamics at the proximity of the edge of chaos, (ii) allow networks to capitalize on characteristic spectral properties of the data, and (iii) result in heterogeneous memory properties. In addition, we demonstrate how our results can be extended to non-linear residuals and introduce a weakly coupled residual initialization scheme that can be used for Elman RNNs.
