Memory and Information Processing in Recurrent Neural Networks

Alireza Goudarzi, Sarah Marzen, Peter Banda, Guy Feldman, Christof Teuscher, Darko StefanovicarXiv 2016

Abstract

Understanding the relationship between the internal structure of Recurrent Neural Networks (RNNs) and their information processing capabilities has long relied on empirical simulations or restrictive approximations. This work presents an exact analytical framework for calculating the memory capacity and task performance of linear RNNs under arbitrary connectivity and correlated input signals. By leveraging spectral analysis of the network's weight matrix, we demonstrate that memory capacity can significantly exceed the number of nodes when inputs are redundant. Furthermore, we find that regular network architectures often outperform random ones in standard benchmarks.

Introduction

Recurrent Neural Networks, particularly within the Reservoir Computing (RC) framework, are powerful tools for temporal data processing. Their efficacy stems from "short-term memory" provided by internal recurrent dynamics. However, a precise mathematical link between a specific weight matrix and its resulting performance has been elusive. Previous theories often assumed "annealed" approximations—where connections are reshuffled at each step—or were limited to uncorrelated white noise inputs. This paper bridges this gap by providing a framework applicable to arbitrary network structures and correlated inputs.

Methodology: Spectral Analysis and Error Bounding

The core innovation lies in the use of the eigendecomposition of the network's weight matrix and the power spectral density of input and target signals. This allows for:

  • Exact Covariance Derivation: Closed-form expressions for state-covariance ($XX^\top$) and state-target cross-covariance ($XY^\top$).
  • Frequency Domain Transformation: Accounting for the interaction between internal "echoes" and input correlation structures.
  • Worst-Case Error Bounds: Establishing distribution-independent upper bounds on squared error using Markov’s inequality, offering a theoretical safety margin for engineering applications.
Performance on temporal tasks. (a) Time-series tracking showing target vs. predicted output. (b) Empirical error distribution compared to theoretical bounds.

Memory Capacity and Input Correlation

A significant finding is the impact of input correlation on memory. While a network of $N$ nodes is often thought to have a memory capacity of at most $N$, real-world correlated data allows the network to exploit redundancy, pushing capacity beyond this limit. Decreasing the decay exponent $\alpha$ of the input (making it more correlated) exponentially increases the total memory capacity of the system.

Analytical vs. empirical memory capacity. (a) Memory function decay $m(\tau)$ for various spectral radii $\lambda$. (b) Impact of input correlation ($\alpha$) on total memory capacity normalized by $N$.

Key Results

The analytical formulas for memory capacity were validated against empirical results across various spectral radii ($\lambda$), showing perfect alignment.

  • Structure vs. Performance: Regular architectures (e.g., ring topologies) consistently outperformed random ones in tasks like NARMA10 and Mackey-Glass. For example, in the NARMA10 task, error increased sharply as the "randomness" of the network increased.
  • The "Irregularity Dip": Introducing small amounts of randomness to a regular network initially degrades performance, though it partially recovers as irregularity increases.
  • Tight Bounds: The derived theoretical bounds for the worst-case error were shown to be "tight," closely tracking empirical observations in simulations.

Conclusion and Future Directions

This work provides a rigorous foundation for designing RNNs based on structural properties. While currently focused on linear reservoirs, the spectral framework offers a path toward analyzing nonlinear systems where memory scaling is more complex (often cited as $\sqrt{N}$). Future research will explore extending these insights to saturating nonlinearities and the automated design of optimal physical reservoirs for specialized signal-processing tasks.

Summary updated

BibTeX
@misc{goudarzi2016memory,
  author = {Alireza Goudarzi and Sarah Marzen and Peter Banda and Guy Feldman and Christof Teuscher and Darko Stefanovic},
  title = {{Memory and Information Processing in Recurrent Neural Networks}},
  year = {2016},
  eprint = {1604.06929},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1604.06929},
}
Figure