Learning Dynamics of RNNs in Closed-Loop Environments

Yoav Ger, Omri Barak
5/1/2025
4 citations

Official code: yoavger/closed_loop_rnn_learning_dynamics (3 stars).

Abstract

Recurrent neural networks (RNNs) trained on neuroscience-inspired tasks offer powerful models of brain computation. However, typical training paradigms rely on open-loop, supervised settings, whereas real-world learning unfolds in closed-loop environments.

Show full abstract

Here, we develop a mathematical theory describing the learning dynamics of linear RNNs trained in closed-loop contexts. We first demonstrate that two otherwise identical RNNs, trained in either closed- or open-loop modes, follow markedly different learning trajectories. To probe this divergence, we analytically characterize the closed-loop case, revealing distinct stages aligned with the evolution of the training loss. Specifically, we show that the learning dynamics of closed-loop RNNs, in contrast to open-loop ones, are governed by an interplay between two competing objectives: short-term policy improvement and long-term stability of the agent-environment interaction. Finally, we apply our framework to a realistic motor control task, highlighting its broader applicability. Taken together, our results underscore the importance of modeling closed-loop dynamics in a biologically plausible setting.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Learning Dynamics of RNNs in Closed-Loop Environments" by Yoav Ger & Omri Barak (2025)

30

Similar Papers

Cite this paper

@article{ger2025learning,
  title  = {Learning Dynamics of RNNs in Closed-Loop Environments},
  author = {Yoav Ger and Omri Barak},
  year   = {2025},
  eprint = {2505.13567},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.13567},
  url    = {https://doi.org/10.48550/arXiv.2505.13567},
  journal = {Neural Information Processing Systems}
}

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/2505.13567.svg)](https://codeofpaper.com/paper/2505.13567)

Discussion