On Scrambling Phenomena for Randomly Initialized Recurrent Networks

Vaggos Chatziafratis, Ioannis Panageas, Clayton Sanford, Stelios Andrew Stavroulakis
10/11/2022
cs.LGcs.AI

Official code: steliostavroulakis/Chaos_RNNs (2 stars, Jupyter Notebook, last commit 2022-10-10).

Abstract

Recurrent Neural Networks (RNNs) frequently exhibit complicated dynamics, and their sensitivity to the initialization process often renders them notoriously hard to train. Recent works have shed light on such phenomena analyzing when exploding or vanishing gradients may occur, either of which is detrimental for training dynamics.

Show full abstract

In this paper, we point to a formal connection between RNNs and chaotic dynamical systems and prove a qualitatively stronger phenomenon about RNNs than what exploding gradients seem to suggest. Our main result proves that under standard initialization (e.g., He, Xavier etc.), RNNs will exhibit \textit{Li-Yorke chaos} with \textit{constant} probability \textit{independent} of the network's width. This explains the experimentally observed phenomenon of \textit{scrambling}, under which trajectories of nearby points may appear to be arbitrarily close during some timesteps, yet will be far away in future timesteps. In stark contrast to their feedforward counterparts, we show that chaotic behavior in RNNs is preserved under small perturbations and that their expressive power remains exponential in the number of feedback iterations. Our technical arguments rely on viewing RNNs as random walks under non-linear activations, and studying the existence of certain types of higher-order fixed points called \textit{periodic points} that lead to phase transitions from order to chaos.

View on arXivView PDF

Code Implementations(1)

Theoretical findings that empirically explain the observed chaotic behavior of RNNs during initialization

21Jupyter NotebookJan 23, 20224 years ago
chaos-theorydeep-learningjupyter-notebookrecurrent-neural-networks

Similar Papers

Cite this paper

@article{chatziafratis2022scrambling,
  title  = {On Scrambling Phenomena for Randomly Initialized Recurrent Networks},
  author = {Vaggos Chatziafratis and Ioannis Panageas and Clayton Sanford and Stelios Andrew Stavroulakis},
  year   = {2022},
  eprint = {2210.05212},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.05212}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.05212.svg)](https://codeofpaper.com/paper/2210.05212)

Discussion