# Memory Determines Learning Direction: A Theory of Gradient-Based Optimization in State Space Models

*JingChuan Guan, Tomoyuki Kubota, Yasuo Kuniyoshi, Kohei Nakajima*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154952) · [OpenReview](https://openreview.net/forum?id=9hVb8yc7Jr) · [Open on the map](../papers.html#p154952)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [State Space Models](../pgroup/552.md) · Type: theory · Keywords: state space models, gradient-based optimization, teacher information, memory decay, initialization, RNN

Areas: [Memory](../areas/memory.md) › Memory mechanisms › State-Space Memory; [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › State Space Models

## Summary
The paper theoretically shows that memory in state space models determines learning direction, proving that teacher information loss cannot be mitigated by training and that appropriate initialization can fix the recurrence for stable training.

## Explained to a 5-year-old
Some computer programs called state space models try to learn like brains. They have a memory that remembers what they learned before. The paper shows that this memory does not get smaller as they keep learning. It also says that if you start the program with the right settings, it works better and doesn't need to change its memory much. This helps make smarter computer models that can remember things more reliably.

## Explained to a 5-year-old, longer
Some computer programs called state space models try to learn like brains. They are used to understand sequences of information, like words in a sentence. The paper looks at how these programs remember what they have learned. It finds that the memory they keep does not shrink away as they keep practicing. This means that the information they learned at the start stays around. The researchers show that even if you keep training the program, you cannot fix a problem where the memory gets lost. They also discover that the way you set up the program at the beginning is very important. By choosing the right starting values, you can make the program stable and it works better. This suggests that you might not need to change the core part of the program during training. The authors test their ideas on simple and more complex versions of these models. They also try the ideas on language tasks, like predicting the next word. The results show that the new understanding helps create more reliable and higher-performing models.

## For a technical reader
The paper analyzes how error signals propagate in state space models (SSMs) and shows that the conventional vanishing-gradient explanation does not fully capture information loss. By expressing error signals explicitly as functions of inputs, the authors prove that the memory of teacher information remains stable and cannot be recovered through training. They demonstrate that the initial weight configuration of the recurrent layer is critical, and that fixing the recurrence via appropriate initialization yields more stable training. Experiments on linear and nonlinear SSMs, including language-modeling tasks, confirm the theoretical predictions and exhibit superior performance over standard training. The work provides design guidelines for building RNN-based models, emphasizing initialization strategies to preserve learned information.

## Problem
Understanding how parameter updates in state space models preserve teacher information and under what conditions successful learning occurs remains unclear, especially given the vanishing gradient problem in recurrent networks.

## Method
The authors analytically represent error signals as functions of inputs, derive that teacher information memory does not decay exponentially, and prove that training cannot alleviate information loss. They also conduct experiments on linear and nonlinear SSMs, including language modeling tasks, to validate the theory.

## Results
The approach shows that proper initialization yields more stable training and superior performance compared to conventional training on both linear and nonlinear SSMs.

## Contributions
It provides a theoretical analysis revealing that teacher information loss is inherent and cannot be mitigated by training, and it demonstrates that fixing the recurrence via initialization improves training stability and performance.

## Practical relevance
The findings guide the design of more stable RNN-based models and suggest initialization strategies for better training.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154952)
