Generative System Dynamics in Recurrent Neural Networks
Michele Casoni, Tommaso Guidi, Alessandro Betti, Stefano Melacci, Marco Gori
TL;DR
This work analyzes continuous-time RNN dynamics, showing that skew-symmetric weight matrices $A$ combined with odd, bounded activations (notably $\tanh$) sustain perpetual oscillations without converging to fixed points. By constructing energy-like invariants and applying a Lyapunov-style argument, it demonstrates that limit cycles persist in nonlinear RNNs and can be characterized in both 2D and higher dimensions via invariant functions. Numerical simulations corroborate the theory, revealing that nonlinear activations can enhance numerical stability of forward Euler integration and that non-odd activations disrupt closed orbits, guiding architectural choices for robust temporal modeling. Overall, the results provide principled design insights for building RNNs capable of long-term memory and stable, oscillatory dynamics in continuous-time regimes.
Abstract
In this study, we investigate the continuous time dynamics of Recurrent Neural Networks (RNNs), focusing on systems with nonlinear activation functions. The objective of this work is to identify conditions under which RNNs exhibit perpetual oscillatory behavior, without converging to static fixed points. We establish that skew-symmetric weight matrices are fundamental to enable stable limit cycles in both linear and nonlinear configurations. We further demonstrate that hyperbolic tangent-like activation functions (odd, bounded, and continuous) preserve these oscillatory dynamics by ensuring motion invariants in state space. Numerical simulations showcase how nonlinear activation functions not only maintain limit cycles, but also enhance the numerical stability of the system integration process, mitigating those instabilities that are commonly associated with the forward Euler method. The experimental results of this analysis highlight practical considerations for designing neural architectures capable of capturing complex temporal dependencies, i.e., strategies for enhancing memorization skills in recurrent models.
