Manuscript Offprint

arXiv:2609.00420

How Temporal Correlations Shape Memory in Linear Recurrent Neural Networks

Arnol Manuel Fokam, Fasseu Sieyondji Akpevwoghene, Edem Fiifi Dawson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The linear recurrent neural network (LRNN) is a simple model for studying how much memory a network builds up as it trains. For uncorrelated inputs, earlier work found that training itself settles the network between keeping the past and reacting only to the present. Real sequences are correlated, and we solve the learning dynamics exactly for correlated inputs. In the solution, keeping the past carries a cost. The whole effect of correlation lands on that cost. This cost reduces to the earlier one when inputs are uncorrelated and grows once they are positively correlated. Three findings follow. (1) Correlation reshapes the course of learning, not only its end. Memory builds, overshoots, and is partly removed, and the settled network keeps less of the past. (2) Memory switches off at a threshold set by one number, how much each input resembles the one just before it. Neither sequence length nor longer-range correlation moves this threshold. Memory is worth keeping only when the task needs the previous input more than the current input already supplies it through correlation with the past. (3) The best network changes too. Zero error demands a feedthrough, a path that passes the current input straight to the network's output and remembers nothing, and training builds it unprompted when given one spare hidden dimension. Our work turns one property of the input into a prediction of whether a network learns memory and explains why correlated data turns recurrent networks into change detectors.

Introduction

Recurrent neural networks (RNNs) appear across machine learning and neuroscience, as models that solve tasks with temporal structure and as models of neural dynamics themselves. Recent theory has begun to describe how training shapes them (Saxe, McClelland, and Ganguli 2014; Proca et al. 2025), but no tractable account yet says how a network decides what to remember when its inputs are correlated.

A key limitation of existing theoretical frameworks is their reliance on temporally independent inputs (Smékal et al. 2024; Proca et al. 2025; Bordelon et al. 2025). Yet real-world data are rarely independent, instead exhibiting temporal correlations across domains such as language, physics, and neuroscience. By assuming temporally independent inputs, existing theory cannot account for the interaction between input predictability and memory formation. As input predictability increases, the benefit of retaining past information diminishes, suggesting an inherent trade-off between external statistical structure and internally stored memory. A quantitative theory describing this trade-off is still lacking.

To overcome this challenge, we consider linear RNNs as an analytically tractable model of recurrent computation. Although simplified, linear RNNs retain the essential mechanisms governing temporal information propagation while admitting exact mathematical analysis. Their close relationship to modern state-space models (SSMs), such as S4 (Gu, Goel, and Re 2022) and Mamba (Gu and Dao 2023), further makes them an appropriate framework for developing theoretical insights applicable to contemporary sequence modeling.

The linear RNN framework of Proca et al. (2025) showed that for temporally independent inputs training itself sets a memory dial, settling the network between keeping the past and reacting only to the present. In this work we extend that framework to temporally correlated inputs and derive an exact theory of how input predictability shapes the memory a network learns.

References (26)