Memory Determines Learning Direction: A Theory of Gradient-Based Optimization in State Space Models
Abstract
State space models (SSMs) have shown strong potential to outperform Transformers, but their learning mechanisms remain poorly understood, particularly the conditions for successful parameter updates that preserve supervisory information. Prior work attributes the difficulty of such updates to the vanishing gradient problem during backpropagation through time, in which error signals decay exponentially through repeated gradient multiplication. In this work, by expressing error signals explicitly as functions of inputs, we show that the conventional vanishing gradient framework is insufficient to explain a loss of supervisory information. Using this representation of error, we reveal that the memory of the input encoded in supervisory information does not necessarily decay exponentially, and we analytically demonstrate that the loss of supervisory information cannot be alleviated through training. This result theoretically confirms the importance of the initial weights of SSMs and suggests that the recurrent layer does not require training. By performing experiments on both linear SSMs and a representative nonlinear SSM, including language modeling tasks, we confirm that appropriate initialization allows the recurrent parameters to remain fixed during training, leading to more stable training of the entire network and higher performance than the conventional training scheme. Our results partially elucidate the learning mechanisms of SSMs and are expected to contribute to the development of improved recurrent neural network models.