potentialpaper

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

JingChuan Guan, Tomoyuki Kubota, Yasuo Kuniyoshi, Kohei Nakajima

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. By expressing the gradients of SSMs as functions of the input, we theoretically clarify part of their learning mechanism and improve performance through a novel method that fixes the recurrent weights.

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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
16 Sep 2025ICLR 2026submittedICLR 2026Rejected—[1]
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 4 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Reviewers found the analysis of the submission mathematically careful and the fixed-recurrence conclusion interesting and potentially of practical value, but they converge on several concerns. The most substantive is questionable novelty relative to classical systems/control and adaptive-filter theory. An additional point is that the theoretical analysis is restricted to linear SSMs and leans on assumptions (notably uniformly random inputs, fixed A) whose necessity and rationale several reviewers found under-justified. Reviewers also raise that the empirical support is weaker than the claims. Finally, presentation is flagged as dense, with key theoretical results and the proposed algorithm not formalized and some notation left undefined. For the rebuttal I would prioritize (1) an explicit delineation of novelty over systems/control theory; (2) further justification of assumptions; and (3) a more calibrated account of which claims the empirical results actually support. Extending theory to nonlinear SSMs is desirable but need not be resolved in my opinion.

Final justification

This submission is borderline. The authors' rebuttal was substantive, addressing several of the reviewers' concerns regarding assumptions, empirical reporting, and presentation. The primary remaining reservation is novelty over classical systems/control theory. Since I do not find it decisive (linear-SSM theory is an active area of research, and the reservation on novelty was not substantiated in the discussion), I am cautiously recommending acceptance.

Area Chair af62 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Reviewers found the analysis of the submission mathematically careful and the fixed-recurrence conclusion interesting and potentially of practical value, but they converge on several concerns. The most substantive is questionable novelty relative to classical systems/control and adaptive-filter theory. An additional point is that the theoretical analysis is restricted to linear SSMs and leans on assumptions (notably uniformly random inputs, fixed A) whose necessity and rationale several reviewers found under-justified. Reviewers also raise that the empirical support is weaker than the claims. Finally, presentation is flagged as dense, with key theoretical results and the proposed algorithm not formalized and some notation left undefined. For the rebuttal I would prioritize (1) an explicit delineation of novelty over systems/control theory; (2) further justification of assumptions; and (3) a more calibrated account of which claims the empirical results actually support. Extending theory to nonlinear SSMs is desirable but need not be resolved in my opinion.

Final justification

This submission is borderline. The authors' rebuttal was substantive, addressing several of the reviewers' concerns regarding assumptions, empirical reporting, and presentation. The primary remaining reservation is novelty over classical systems/control theory. Since I do not find it decisive (linear-SSM theory is an active area of research, and the reservation on novelty was not substantiated in the discussion), I am cautiously recommending acceptance.

1 comment
Authors · CommentOpenReview ↗

Summary of Rebuttal

We thank the AC for the constructive summary and for identifying clear priorities for the rebuttal. We also appreciate the positive assessment of our mathematical analysis and the practical implications of the RC setting. The remaining concerns are addressed as follows. After the rebuttal, Reviewers Rz79, QoCW, and GEBC increased their overall evaluations, while Reviewer s7hz expressed increased confidence in the positive assessment. Moreover, Reviewers QoCW and GEBC indicated that most of their concerns had been resolved.

(1) Novelty relative to systems/control theory

As detailed in our response to Reviewer Rz79, it has been lacking an analysis of how the input memory acquired during the forward pass is used during backpropagation through time (BPTT). Our contribution is to provide such an analysis for the first time, by introducing the memory function (MF), a measure established in reservoir computing, which is independent of the state space model and control theory. The results of our work cannot be obtained from control theory alone. As concrete examples, we highlighted two main results in our response to Reviewer Rz79.

(2) Justification of assumptions (uniformly random inputs and fixed A)

Random inputs: As explained to Reviewers QoCW and s7hz, our theoretical analysis is not restricted to the uniformly random input distribution used in the numerical experiments. The theoretical results hold for arbitrary random input distributions. We further argue (with a derivation) how the theoretical analysis could extend to correlated inputs, though we acknowledge this extension is not yet rigorous and remains a limitation. In addition, we have already demonstrated the applicability of our theory to practical tasks through experiments using correlated inputs, including the LRA benchmark and language modeling.

Fixed A: As clarified to Reviewer GEBC, this assumption of fixed A is not required for any of our derivations. It was introduced only to define the scope of our theoretical analysis, namely models whose recurrent weights remain fixed during each forward pass. The weights may change from one forward pass to the next, but not within a forward pass, thereby excluding models with time-varying recurrent weights such as Mamba. We will therefore remove it as a formal assumption and instead present it as a scope restriction.

(3) Calibrating claims against empirical support

In response to Reviewer GEBC, we agreed to revise the statement "RC is effective across all LRA tasks" (line 271), as it could be misleading. Instead, we will state that "fixing the internal recurrent weights reduces the number of trainable parameters while maintaining similar performance across the LRA tasks". We also agreed to report the convergence-speed improvement more clearly by replacing the current figure with a more detailed one. In our response, we also included quantitative results to support this claim.

Separately, in response to QoCW, we re-ran the S4 baseline over six seeds (rather than relying on a single reported max value) for a fairer comparison, and will report mean/std alongside min/max in the revised Table 1.

(a) Presentation (theorems/algorithm formalization, undefined notation)

Per our response to Reviewer GEBC, we will make the following revisions. First, we will introduce a clearer transition at the end of Section 3.2, explicitly stating that Section 3.2 presents the theoretical results and Section 3.3 provides their numerical validation. Second, we will revise Algorithms 1 and 2 in Appendix B to clearly state that the eigenvalue parameter λ\lambda is fixed at initialization and is not trainable. Third, we will clarify the definition of the time-average operator by linking its definition (line 117) directly to its first use (line 119).

(b) Extension to nonlinear SSMs

As noted in our responses to Reviewers QoCW and Rz79, our theory already extends to models with nonlinear readouts, such as S4D. We also show that our findings remain effective on the fully nonlinear model Mamba. Although this does not provide a complete theory for nonlinear SSMs, we believe it is a useful first step in that direction.

In the revised manuscript, we will substantially revise the paper to address the concerns raised by the reviewers.

Reviewer GEBCOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies the learning process of state space models. First, this paper expresses the error signals in the form of inputs and shows that the loss of supervisory information cannot be alleviated through training. Second, motivated by the first theoretical insights, this paper suggests that the recurrent weights of the state space model can be fixed during training and proposes a reservoir computing-style training strategy. Third, this paper supports the proposed method via experiments.

Strengths and weaknesses

Strengths

  1. The proposed reservoir computing-style training strategy is motivated by theoretical insights and verified in empirical experiments.

  2. To the best of my knowledge, the motivation and conclusions of this paper are novel.

Weaknesses

  1. There are many mathematical notations and operations in this paper, and some of them are not explicitly defined or explained, which makes the paper hard to understand for non-expert readers. For example, in line 119, the time average operator is used without a mathematical formulation. This makes the range of averaging ambiguous and may cause difficulty in understanding subsequent arguments.

  2. The experimental results may not fully support the claims of this paper.

  • In line 271, the authors claim that "our experiments show that the RC setting is effective across all LRA tasks when the eigenvalues are initialized with structured memory". However, as shown in Table 1, the RC setting does not work in the Listops and Pathfinder datasets. Thus, RC only works on 4 out of 6 datasets. Moreover, when RC works well, the enhancement brought by RC is quite small when compared to the reduction in the Listops and Pathfinder datasets. Thus, the empirical results do not suggest that RC can significantly improve the performance.

  • In line 277, the authors claim that "using structured eigenvalues, the test loss for Image, Retrieval, and PathX converged to lower values more rapidly in the RC setting, and the test accuracy for Retrieval and PathX also increased notably faster". However, as shown in the 1st and 3rd columns of Figure 2, RC has similar accuracy and only a slightly faster convergence rate when compared with the baselines in the Image and PathX datasets. Thus, the empirical results do not suggest that RC can significantly improve the performance.

  1. The presentation of this paper is a little bit messy. The main theoretical conclusions and the proposed reservoir computing-style training strategy are not highlighted in the paper. These central contributions are mixed with long descriptions and derivations, making it hard for readers to grasp the key ideas quickly. It is better to formalize the theoretical results as theorems (if possible) and present the training strategy in the form of an algorithm or pseudocode.
Questions
  1. In line 191, it is assumed that the recurrent weight matrix AA is fixed. Can the authors provide more explanations on the rationality and necessity of this assumption?

  2. In line 243, the authors refer to S4Dinv and S4Dlin as structural eigenvalues. Can the authors give more information on these two methods and why they are structural eigenvalues when compared with the others?

  3. In experiments, the authors find that the proposed reservoir computing-style training strategy works well for structural eigenvalues but does not perform well for other eigenvalues. Can the authors discuss why the reservoir computing-style training strategy is only suitable for structural eigenvalues?

Limitations

Yes.

Final justification

After reading the authors' rebuttal and other reviewers' comments, my questions about the assumptions and structural eigenvalues have been resolved. However, there are still several remaining issues as follows, which make this paper not good enough to be accepted.

  1. After reading the comments by Reviewer Rz79, I agree that the theoretical novelty of this paper may be limited.
  2. The experiments do not significantly support the effectiveness of RC since RC works only on 4 out of 6 datasets, and the enhancement on these 4 datasets is minor when compared to the reduction on the other 2 datasets.
  3. The theoretical organization and notation explanations of this paper are a little bit messy, including but not limited to the points mentioned in my review. I think further polishing and another round of review are necessary before publishing.
Formatting concerns

There are no formatting concerns.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank the reviewer for the time and effort devoted to reviewing our manuscript and for the constructive comments.

The time average operator is used without a mathematical formulation

The explicit definition of the notation used in line 119 is given in line 117 as 1T∑t=1T(⋅)\frac{1}{T}\sum_{t=1}^T(\cdot). We appreciate the reviewer pointing out that, since these two lines are separated, it is not immediately clear that they refer to the same definition.

We intended to explicitly state the definition of every notation used in this work. If the reviewer notices any other instances where our presentation could be improved, we would be grateful if they could kindly point them out.

"RC effective across all LRA tasks" (line 271) contradicted by Listops/Pathfinder

We thank the reviewer for pointing out this potentially misleading description. Following the reviewer's suggestion, we will revise the manuscript accordingly.

``As shown in Table 3 in the Appendix, fixing the internal recurrent weights reduces the number of trainable parameters, while the performance does not degrade substantially across all of the LRA tasks. These results suggest that the RC setting is effective.''

In the revised version, we will also provide a clear pointer to the supplementary material, where the exact reduction in the number of trainable parameters is described.

Convergence speed on Image/PathX (line 277)

We thank the reviewer for pointing out that the improvement in convergence speed with the RC setting was not sufficiently clear. We could quantify this effect by evaluating the number of training epochs required to reach the same performance level. For example, on Image task, the average accuracy exceeds 0.70 after 4 epochs with RC, whereas 7 epochs are required without RC. Similarly, on PathX, the average accuracy of S4Dlin exceeds 0.80 after 8 epochs with RC, whereas 10 epochs are required without RC. In the revised version, we will include a detailed figure that more clearly demonstrates this notably faster convergence.

Central theoretical conclusions and the proposed RC training strategy are mixed with long descriptions; better to formalize as theorems and present the strategy as an algorithm/pseudocode>

We thank the reviewer for this helpful suggestion. Following the reviewer's suggestion, we will revise the manuscript to make the presentation clearer.

Specifically, we will add the following sentence at the end of Section 3.2:

``The theoretical analysis in this section establishes the predictions, while Section 3.3 focuses on the corresponding numerical results.''

In addition, we already provide references throughout Section 3.2 to the corresponding theoretical results in the appendix. If the reviewer has any further suggestions for improving the organization or presentation, we would be very grateful to hear them.

We will also revise Algorithms 1 and 2 in Appendix B to explicitly state that λ\lambda is fixed at initialization and is excluded from the set of trainable parameters, thereby fully specifying the RC training procedure. Since Algorithms 1 and 2 describe the overall processing flow of the model, we believe that making this point explicit there will help avoid ambiguity. In addition, we will add a clear pointer in the main text directing readers to these algorithms.

It is assumed that the recurrent weight matrix is fixed. Can the authors provide more explanations on the rationality and necessity of this assumption?

We thank the reviewer for this important question. We agree that the original presentation of this assumption was unclear. This assumption was introduced only to clarify the scope of our analysis by excluding models with time-varying recurrent weights, such as the model described in Eq. (2). It is not required for any of our theoretical derivations. Since the recurrent weight matrix remains fixed throughout training in our setting, removing this assumption has no effect on our analysis or conclusions.

To avoid confusion, we will remove this assumption and instead explicitly state that our analysis considers models with fixed recurrent weights during training and does not cover models with time-varying recurrent weights, such as Mamba.

Can the authors give more information on why these are structural eigenvalues compared to the others?>

Previous work [13] refers to them as "structured" because they are the eigenvalues of the HiPPO matrix [11], which was designed to maximize memory length from the perspective of the Lebesgue measure. For completeness, we note that these eigenvalues are not derived analytically but are instead obtained numerically, following the approach of prior work [14]. In contrast, "random," "linear," and "step" are generic eigenvalue distributions without such a theoretical derivation.

Why does RC only work well for structured eigenvalues?

As discussed in Section 3.2 and Theorem D.6, the RC setting is expected to be effective only when the fixed initialization already provides sufficiently long memory to capture the memory required by the task through the teacher signal in the gradient. As shown in Fig. 1, the structured eigenvalues provide substantially longer memory than the random, linear, and step initializations, making this condition more likely to be satisfied. In contrast, if the available memory is too short, the required memory may not be represented at all, causing optimization to rely on shorter, incorrect memory instead. Allowing the internal recurrent weights to be trained provides a mechanism to remove such inappropriate memory. Although RC does not have this flexibility, it also avoids the potentially unstable memory manipulation discussed in lines 363–367. We will explicitly discuss this point in the discussion of the results in the revised manuscript.

The citation numbers follow those used in the manuscript.

Reviewer GEBC · CommentOpenReview ↗

Thank you for the detailed responses and explanations. Since most of my concerns are resolved, I will update my rating accordingly.

Authors · CommentOpenReview ↗

We sincerely appreciate the reviewer’s acknowledgment that our responses addressed most of the concerns and the updated rating.

Reviewer s7hzOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
3/4
Significance
4/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work focuses on understanding the learning mechanism in state-space models, followed by empirical experiments to confirm the hypothesis.

Strengths and weaknesses

Strengths:

  • Overall, very high-quality writing in the introduction, the author motivated the problem very well (I learned a lot from it).
  • The analysis led to somewhat interesting (and surprising) conclusions about fixing the weights (Section 3.3).
  • Carefully designed analysis with well-executed empirical results to support the hypothesis.

Limitations:

  • I'm a bit conflicted about this. Some of the assumptions seem somewhat strong, but it's hard for me to judge them decisively (e.g., uniformly random inputs).
  • The technical sections are somewhat dense. The reviewer acknowledges a lack of domain expertise to evaluate them properly.
  • Somewhat limited scale of experiments, but I would not hold this against the authors.

Questions:

  • Is the MSE loss an exact characterization of training, or is it a (somewhat well-justified) simplification?
Questions

See above.

Limitations

Yes.

Final justification

Thanks to the authors for clarifying my questions. I also took a look at other reviews and comments, and maintain a favorable rating with increased confidence.

Formatting concerns

NA.

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank the reviewer for the time and effort devoted to reviewing our manuscript and for the constructive comments. We also greatly appreciate the reviewer's positive assessment of the novelty and significance of our work.

Uniform random input assumptions.

Thank you for this valuable comment. Although our experiments are conducted using uniformly random inputs, our theoretical analysis is not restricted to this particular input distribution. Instead, it applies to any uncorrelated input.

We nevertheless agree that the assumption on the input distribution remains an important limitation of our study. To assess the practical relevance of our theory beyond this assumption, we conducted extensive numerical experiments on tasks with naturally correlated inputs, including the LRA benchmark and language modeling.

Furthermore, from a theoretical perspective, our analysis also suggests a possible extension to correlated inputs, as outlined below. The remaining limitation is that the standard definition of the memory function (MF), M[ut−τ]=Uτ⊤X(X⊤X)−1X⊤Uτ/(Uτ⊤Uτ)M[u_{t-\tau}] = U_{\tau}^{\top}X(X^{\top}X)^{-1}X^{\top}U_{\tau}/(U_{\tau}^{\top} U_{\tau}) is not defined for correlated inputs. However, this formula can be computed for correlated inputs as well, suggesting how well inputs can be reconstructed from states time series. Although this extension is beyond the scope of the present paper, Eq. (10) can also be written for arbitrary inputs as

G(y)=2TX⊤(Xθ−∑k=0T−1αkX(X⊤X)−1X⊤Uk)G(y) = \frac{2}{T} X^{\top}(X\theta - \sum_{k=0}^{T-1} \alpha_k X(X^{\top}X)^{-1}X^{\top} U_k)

=2TX⊤(Xθ−∑k=0T−1αkX(X⊤X)−1X⊤Uk)= \frac{2}{T} X^{\top}(X\theta - \sum_{k=0}^{T-1} \alpha_k X(X^{\top}X)^{-1}X^{\top} U_k)

Because X⊤=QV⊤U^X^{\top}=QV^{\top}\hat{U} and U^=(UT−1,⋯ ,U0)\hat{U} = (U_{T-1}, \cdots, U_{0}),

G(y)=2T(X⊤Xθ−∑k=0T−1αkQV⊤U^X(X⊤X)−1X⊤Uk).G(y) = \frac{2}{T} ( X^{\top}X\theta - \sum_{k=0}^{T-1} \alpha_k QV^{\top}\hat{U} X(X^{\top}X)^{-1}X^{\top} U_k).

The term U^X(X⊤X)−1X⊤Uk\hat{U} X(X^{\top}X)^{-1}X^{\top} U_k contains the same term that appears in the definition of the MF. This suggests that, once the MF is appropriately extended to correlated inputs, a similar analysis may also be possible in that setting. We acknowledge that a rigorous analysis of the effects of input correlations requires further theoretical development. Nevertheless, we believe that our formulation provides a foundation for such future research. Although this does not eliminate the limitation of the input assumption, we believe this helps clarify the importance of our theoretical results.

Is MSE loss an exact characterization of training, or a simplification?

We thank the reviewer for this insightful question. The use of the MSE loss is indeed a simplification. However, our theoretical results are not limited to MSE and can be extended to a broader class of loss functions. As an example, we explain below how our analysis relates to the cross-entropy loss, which is also used in our experiments.

MSE=1T∑i=1T(y^i−yi)2=⟨y^i2⟩−2T∑i=1Ty^iyi+⟨yi2⟩\mathrm{MSE} = \frac{1}{T}\sum_{i=1}^{T}\left(\hat{y}_i - y_i\right)^2 = \langle\hat{y}_i^2\rangle - \frac{2}{T}\sum_{i=1}^{T}\hat{y}_iy_i + \langle y_i^2\rangle

As we show that our theoretical results still hold even when a point-wise nonlinear function ff is present at the readout (line 197-198, Appendices D.1 and D.4), we can write y^i=f(θ⊤xi)\hat{y}_i = f(\theta^\top x_i).

If we take f=log⁡f = \log, then

MSE=⟨y^i2⟩+2T∑i=1T(−yilog⁡(θ⊤xi))+⟨yi2⟩,\mathrm{MSE} = \langle\hat{y}_i^2\rangle + \frac{2}{T}\sum_{i=1}^{T}\left(-y_i\log(\theta^\top x_i)\right) + \langle y_i^2\rangle,

=⟨y^i2⟩+2TCE(yi,θ⊤xi)+⟨yi2⟩,= \langle\hat{y}_i^2\rangle + \frac{2}{T} \mathrm{CE}\left(y_i, \theta^\top x_i \right) + \langle y_i^2\rangle,

where CE(yi,y^i)=−yilog⁡y^i\mathrm{CE}(y_i,\hat{y}_i) = -y_i\log\hat{y}_i is the standard cross-entropy term, which is a widely used error function and is also the one adopted in our study. Here, the term ⟨yi2⟩\langle y_i^2\rangle can be dropped as it is irrelevant: it does not depend on θ\theta, and thus vanishes when taking the derivative with respect to the parameters θ\theta being optimized.

Thus, the effective loss is

⟨y^i2⟩+2TCE(yi,θ⊤xi).\langle\hat{y}_i^2\rangle + \frac{2}{T} \mathrm{CE}\left(y_i, \theta^\top x_i \right).

In this way, our theoretical results based on the MSE loss can be shown to express a special case (or generalization) of the cross-entropy loss when a logarithmic nonlinearity is applied at the readout. In particular, in cases where the scale of ⟨y^i2⟩\langle\hat{y}_i^2\rangle is already sufficiently small, this becomes exactly equivalent to the cross-entropy loss. We hope this analysis addresses the reviewer's concern.

Authors · CommentOpenReview ↗

Corrected response with properly rendered equations

We apologize for the formatting issue. It appears that some of the equations in our response to the following question were not rendered correctly on OpenReview. To avoid any confusion, we are resubmitting the response below with equations that we have confirmed are displayed correctly.

Is MSE loss an exact characterization of training, or a simplification?

We thank the reviewer for this insightful question. The use of the MSE loss is indeed a simplification. However, our theoretical results are not limited to MSE and can be extended to a broader class of loss functions. As an example, we explain below how our analysis relates to the cross-entropy loss, which is also used in our experiments. Following the definitions in our manuscript,

MSE=1T∑i=1T(y^i−yi)2MSE = \frac{1}{T}\sum_{i=1}^{T}(\hat{y}_i - y_i)^2

=⟨y^i2⟩=\langle\hat{y}_i^2\rangle

−2T∑i=1Ty^iyi+⟨yi2⟩-\frac{2}{T}\sum_{i=1}^{T}\hat{y}_iy_i + \langle y_i^2\rangle.

As we show that our theoretical results still hold even when a point-wise nonlinear function ff is present at the readout (line 197-198, Appendices D.1 and D.4), we can write y^i=f(θ⊤xi)\hat{y}_i = f(\theta^\top x_i).

If we take f=log⁡f = \log, then

MSE=⟨y^i2⟩MSE = \langle\hat{y}_i^2\rangle

$ + \frac{2}{T}\sum_{i=1}^{T}(-y_i\log(\theta^\top x_i)) + \langle y_i^2\rangle$

=⟨y^i2⟩+2TCE(yi,θ⊤xi)+⟨yi2⟩,= \langle\hat{y}_i^2\rangle + \frac{2}{T} CE(y_i, \theta^\top x_i) + \langle y_i^2\rangle,

where

$CE(y_i,\hat{y}_i) $

=∑i=1T−yilog⁡(y^i)= \sum_{i=1}^{T} -y_i\log(\hat{y}_i)

is the standard cross-entropy term, which is a widely used error function. Here, the term ⟨yi2⟩\langle y_i^2\rangle can be dropped as it is irrelevant: it does not depend on θ\theta, and thus vanishes when taking the derivative with respect to the parameters θ\theta being optimized. Thus, the effective loss is ⟨y^i2⟩+2TCE(yi,θ⊤xi).\langle\hat{y}_i^2\rangle + \frac{2}{T} CE(y_i, \theta^\top x_i).

In this way, our theoretical results based on the MSE loss can be shown to express a special case of the cross-entropy loss when a logarithmic nonlinearity is applied at the readout. In particular, in cases where the scale of ⟨y^i2⟩\langle\hat{y}_i^2\rangle is already sufficiently small, this becomes exactly equivalent to the cross-entropy loss. We hope this analysis addresses the reviewer's concern.

Reviewer s7hz · CommentOpenReview ↗

Thanks

Thanks to the authors for the response! I maintain my favorable rating will increase confidence.

Authors · CommentOpenReview ↗

We sincerely thank the reviewer for maintaining a favorable assessment and increasing confidence in our work.

Reviewer QoCWOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper theoretically analyzes linear SSMs via memory function (MF) and the eigenvalues of the recurrent matrix AA. It justifies this viewpoint by arguing that, for the MF-based analysis of linear SSMs, the relevant memory behavior is determined by the eigenvalues of AA. The paper explores how different eigenvalue realizations of AA affect training, performance and memory, additionally arguing that a realization that provides sufficient memory length is necessary at initialization in order to effectively use long-range information during training of linear SSMs.

To complement the theoretical results, the paper supports its claims and assumptions (mainly that the main learning analysis assumes AA, or its eigenvalues, are fixed) through empirical experiments, showing that freezing the eigenvalues of AA (also called reservoir computing (RC) setting) can lead to faster convergence and comparable or better accuracy in settings where the initialization of AA provides the model with sufficiently long memory .

In addition to experiments with linear SSMs, a Mamba-based model is also tested and is shown to achieve better results in the RC setting on a language modeling task.

Strengths and weaknesses

Strengths:

• The theoretical parts of the paper are well reasoned.

• The paper incorporates multiple types of experiments (both linear and non-linear SSMs).

• There seems to be potential for immediate practical takeaways in terms of SSM training.

Weaknesses:

• The paper is lacking a comprehensive related work section (although some comparisons to related papers are scattered across the introduction, conclusion, and appendix). I find it difficult to understand how it is situated in relation to other papers in the area.

• Table 1 only contains min/max results on 6 seeds for each eigenvalue initialization, as opposed to mean.

• Table 1 seems to compare the best result on 6 seeds for each eigenvalue initialization to results found in the S4 repository, but there is no mention of the number of seeds used to obtain the S4 results. do they also use 6 seeds to obtain their results?

• The theoretical analysis is limited to linear SSMs, and assumes the input is randomly sampled from a uniform distribution (for the learning analysis)

Questions

Why are only the minimum and maximum accuracies over the six seeds reported in Table 1? Could the authors also report the mean accuracy and standard deviation, or confidence intervals, across seeds?

The S4 baseline in Table 1 appears to be taken from the official S4 repository rather than rerun under the same six-seed protocol. Could the authors clarify how this baseline should be interpreted relative to the other results? In particular, is it possible to rerun the S4 repository experiments with multiple seeds under the same evaluation protocol, and would such results be statistically comparable to the current reported experiments?

I would be open to raising my rating if the authors provide a convincing justification for the current presentation of these experiments, or if they include more complete statistical information, such as mean accuracy and standard deviation or confidence intervals across seeds.

Limitations

Yes

Final justification

I find most that of the issues I mentioned with regards to the empirical evaluation were resolved, although the discrepancies with the s4 repository results could remain an issue. I have raised my score accordingly.

Formatting concerns

No

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We are sincerely grateful to the reviewer for taking the time to carefully review our manuscript and for providing constructive comments.

On the related work section.

We agree that the current related work material is scattered across the introduction, conclusion, and appendix. We will consolidate these discussions into a single, dedicated related work section that clearly situates our contribution relative to prior work on vanishing gradients [5, 8], learning dynamics in linear RNNs and SSMs [16, 17, 18], and the memory function / information processing capacity literature [12, 15, 21, 24, 25].

On Table 1 reporting only min/max.

We thank the reviewer for this helpful suggestion. We will revise Table 1 to report the mean and standard deviation across the six random seeds as shown below. Although Figure 2 and Appendix E.1 already present the overall training dynamics, including the mean and standard deviation across random seeds throughout training, we agree that reporting only the minimum and maximum values makes it difficult to assess the statistical reliability of the results.

Eigenvalues Listops Text Retrieval Image Pathfinder PathX
S4Dinv 0.592 (0.002) 0.845 (0.005) 0.812 (0.037) 0.861 (0.002) 0.897 (0.013) 0.909 (0.007)
S4Dlin 0.591 (0.004) 0.839 (0.006) 0.803 (0.031) 0.866 (0.003) 0.886 (0.011) 0.918 (0.006)
random 0.531 (0.026) 0.845 (0.008) 0.902 (0.002) 0.818 (0.002) 0.860 (0.007) 0.855 (0.012)
linear 0.512 (0.020) 0.829 (0.009) 0.897 (0.002) 0.773 (0.004) 0.780 (0.014) 0.684 (0.119)
step 0.586 (0.010) 0.858 (0.003) 0.863 (0.015) 0.782 (0.003) 0.844 (0.013) 0.832 (0.005)
RC S4Dinv 0.576 (0.005) 0.853 (0.004) 0.904 (0.002) 0.868 (0.003) 0.893 (0.004) 0.926 (0.003)
RC S4Dlin 0.582 (0.006) 0.845 (0.003) 0.902 (0.002) 0.873 (0.002) 0.884 (0.008) 0.929 (0.004)
RC random 0.510 (0.019) 0.834 (0.010) 0.899 (0.002) 0.713 (0.012) 0.802 (0.016) 0.797 (0.016)
RC linear 0.495 (0.035) 0.807 (0.005) 0.892 (0.002) 0.665 (0.017) 0.668 (0.115) 0.567 (0.057)
RC step 0.530 (0.021) 0.838 (0.004) 0.900 (0.002) 0.742 (0.001) 0.810 (0.013) 0.739 (0.107)

Do the S4 baseline also use 6 seeds to obtain their results?>

The original S4 paper does not report statistics across multiple random seeds. As this information is unavailable, we assumed that the reported value corresponded to the maximum accuracy. We thank the reviewer for pointing out that this assumption does not ensure a fair comparison with our results, which are evaluated over six random seeds. To address this concern, we re-run the S4 baseline, consistent with the evaluation protocol adopted for the other models in our study. The experiments on PathX are still in progress. For the completed tasks, the mean and standard deviation over six random seeds are shown below.

Eigenvalues Listops Text Retrieval Image Pathfinder PathX
s4 0.556 (0.015) 0.667 (0.011) 0.864 (0.007) 0.866 (0.004) 0.807 (0.012) -

In the revised manuscript, we will include the completed PathX results as well as the minimum and maximum accuracies in addition to the mean and standard deviation. We also note that our current implementation achieves lower performance than reported in the original S4 paper on some tasks. We are currently investigating the cause of these discrepancies. Before submitting the revised manuscript, we will complete this investigation and, if necessary, conduct additional experiments to ensure a fair comparison.

The theoretical analysis is limited to linear SSMs.

We agree that this represents one of the most important limitations of the present study. As additional evidence, we would like to point out that our work is not limited solely to the analysis of linear systems.

  • First, all of our theoretical results also extend to systems with nonlinear readouts, such as S4D [14]. Therefore, our theoretical framework is not confined to purely linear systems (lines 197–198 and Appendices D.1 and D.4).
  • Second, we apply the proposed MF-based theoretical analysis to the nonlinear model Mamba [1], showing that the internal recurrent weights can remain fixed. This result can be partially explained by the proposed MF analysis (Section 3.4 and Appendix E.2).

We fully acknowledge that these results do not yet constitute a complete theoretical extension to general nonlinear systems, as pointed out by the reviewer. Nevertheless, we believe that they provide a useful first step toward the theoretical analysis of nonlinear state space models and may contribute to future work in this direction.

Uniform random input assumptions.

Thank you for this valuable comment. Although our experiments are conducted using uniformly random inputs, our theoretical analysis is not restricted to this particular input distribution. Instead, it applies to any uncorrelated input.

We nevertheless agree that the assumption on the input distribution remains an important limitation of our study. To assess the practical relevance of our theory beyond this assumption, we conducted extensive numerical experiments on tasks with naturally correlated inputs, including the LRA benchmark and language modeling.

Furthermore, from a theoretical perspective, our analysis also suggests a possible extension to correlated inputs, as outlined below.The remaining limitation is that the standard definition of the memory function (MF),

M[ut−τ]=Uτ⊤X(X⊤X)−1X⊤Uτ/(Uτ⊤Uτ)M[u_{t-\tau}] = U_{\tau}^{\top}X(X^{\top}X)^{-1}X^{\top}U_{\tau}/(U_{\tau}^{\top} U_{\tau})

is not defined for correlated inputs. However, this formula can be computed for correlated inputs as well, suggesting how well inputs can be reconstructed from states time series. Although this extension is beyond the scope of the present paper, Eq. (10) can also be written for arbitrary inputs as

G(y)=2TX⊤(Xθ−∑k=0T−1αkX(X⊤X)−1X⊤Uk)G(\boldsymbol{y}) = \frac{2}{T} \boldsymbol{X}^{\top}(\boldsymbol{X}\boldsymbol{\theta} - \sum_{k=0}^{T-1} \alpha_k \boldsymbol{X}(\boldsymbol{X}^{\top}\boldsymbol{X})^{-1}\boldsymbol{X}^{\top} \boldsymbol{U}_k)

=2TX⊤(Xθ−∑k=0T−1αkX(X⊤X)−1X⊤Uk)= \frac{2}{T} \boldsymbol{X}^{\top}(\boldsymbol{X}\boldsymbol{\theta} - \sum_{k=0}^{T-1} \alpha_k \boldsymbol{X}(\boldsymbol{X}^{\top}\boldsymbol{X})^{-1}\boldsymbol{X}^{\top} \boldsymbol{U}_k)

Because X⊤=QV⊤U^\boldsymbol{X}^{\top}=\boldsymbol{Q}\boldsymbol{V}^{\top}\boldsymbol{\hat{U}} and U^=(UT−1,…,U0)\boldsymbol{\hat{U}} = (\boldsymbol{U}_{T-1}, \dots, \boldsymbol{U}_{0}),

G(y)=2T(X⊤Xθ−∑k=0T−1αkQV⊤U^X(X⊤X)−1X⊤Uk).G(\boldsymbol{y}) = \frac{2}{T} ( \boldsymbol{X}^{\top}\boldsymbol{X}\boldsymbol{\theta} - \sum_{k=0}^{T-1} \alpha_k \boldsymbol{Q}\boldsymbol{V}^{\top}\boldsymbol{\hat{U}} \boldsymbol{X}(\boldsymbol{X}^{\top}\boldsymbol{X})^{-1}\boldsymbol{X}^{\top} \boldsymbol{U}_k).

The term U^X(X⊤X)−1X⊤Uk\boldsymbol{\hat{U}} \boldsymbol{X}(\boldsymbol{X}^{\top}\boldsymbol{X})^{-1}\boldsymbol{X}^{\top} \boldsymbol{U}_k contains the same term that appears in the definition of the MF. This suggests that, once the MF is appropriately extended to correlated inputs, a similar analysis may also be possible in that setting. We acknowledge that a rigorous analysis of the effects of input correlations requires further theoretical development. Nevertheless, we believe that our formulation provides a foundation for such future research. Although this does not eliminate the limitation of the input assumption, we believe this helps clarify the importance of our theoretical results.

Reviewer QoCW · CommentOpenReview ↗

Rebuttle Response by Reviewer QoCW

I find most that of the issues I mentioned with regards to the empirical evaluation were resolved, although the discrepancies with the s4 repository results could remain an issue. I will raise my score accordingly.

Authors · CommentOpenReview ↗

Thank you very much for your positive reassessment and for raising your score. We are currently conducting additional experiments to reproduce the results reported in the original S4 paper. In the revised manuscript, we will ensure that all models are compared under the same experimental protocol and provide a careful discussion of the results.

Reviewer Rz79OpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper tackles the vanishing gradient problem in state space models. The authors showed that the information processing capacity (IPC), a.k.a. memory function (MF), is the key of the problem and that the vanishing is inevitable in the framework since the memory length and the precision are a trade-off. They proposed to consider the initialization of A, the transition matrix of state space models, instead.

Strengths and weaknesses

Strengths: The analysis seems to be mathematically rigorous. It explicitly derives the gradient in state space models and discusses its property. Weaknesses: State space models have been studied in the systems theory, including the modern control theory and the adaptive filter theory. Since the paper mainly discusses the linear cases, the results shown in the paper are known (or can easily be derived) in the systems theory community [1].

[1] S. Haykin, Adaptive Filter Theory, 3rd Ed., Prentice Hall, 1995.

Questions

Describe the novelty of the work compared to the systems theory explicitly if it exists.

Limitations

The authors claim that the framework works even for nonlinear state space models, however, the details are not included in the paper.

Final justification

The paper tackles the vanishing gradient problem in state space models. The authors showed that the information processing capacity (IPC), a.k.a. memory function (MF), is the key of the problem and that the vanishing is inevitable in the framework since the memory length and the precision are a trade-off. They proposed to consider the initialization of A, the transition matrix of state space models, instead. The analysis seems to be mathematically rigorous. It explicitly derives the gradient in state space models and discusses its properties that the common characterization that memory decays exponentially during backpropagation is not accurate and that MF explains theoretically why memory length is more important than memory precision. Although these properties have not been stated in the systems theory, the properties of linear systems are completely understood within the linear algebra and thus the paper is not so novel as to be accepted.

Formatting concerns

None.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the insightful comments and for taking the time to review our manuscript. We also appreciate the reviewer for pointing out that we did not explicitly discuss the relationship with control theory. In the revised manuscript, we will address this point carefully and in detail.

We are aware that theoretical analyses of linear systems have been extensively studied in control theory. In addition, we carefully reviewed the Haykin's book (1995). We found that it does not discuss backpropagation through time (BPTT). We also examined the book written by the same author (Haykin, 2009), which includes BPTT. However, we did not find any analysis or explanation of how the input memory acquired during the forward pass is utilized during BPTT. A theoretical understanding of memory with respect to the input during BPTT has been lacking.

Our work provides such a theoretical analysis for the first time. We made this possible by introducing the memory function (MF), a measure originally established in the reservoir computing literature. This perspective cannot be obtained from conventional control theory alone. For linear systems, our main contributions are as follows.

  1. The common characterization that memory decays exponentially during backpropagation [5, 8] is not accurate (Figure 1).

  2. MF explains theoretically why memory length is more important than memory precision.

Furthermore, MF can evaluate linear memory even in nonlinear systems. Therefore, our analysis also provides insights into nonlinear models. Indeed, our numerical experiments show that our findings remain effective for nonlinear models (Figures 4 and 19) such as Mamba [1]. This perspective also opens a path toward future theoretical analysis of nonlinear systems through the information processing capacity (IPC) [15], which extends MF to nonlinear memory. We believe that these are possible because of the new MF-based perspective introduced from the RC literature. For nonlinear systems, our main contributions are as follows.

  1. The analysis developed for linear systems also extends to systems with nonlinear readouts, such as S4D [14]. Therefore, our theoretical framework is not limited to purely linear systems (lines 197–198 and Appendices D.1 and D.4).

  2. We further apply the MF-based theoretical analysis to practical models including a nonlinear one, suggesting that the internal recurrent weights can remain fixed. We confirm this empirically using both S4D and Mamba.

Finally, although we are not aware of any analysis about the input memory during BPTT based on control theory, some studies [24,25] have discussed the relationship between MF and control theory. We will also clarify the differences between our work and existing studies on the relationship between MF and control theory in the revised manuscript.

The citation numbers follow those used in the manuscript.

Reviewer Rz79 · CommentOpenReview ↗

Thank you for your explanation. I raised my rates a little bit.

Authors · CommentOpenReview ↗

Thank you very much for taking the time to reevaluate our work. We sincerely appreciate your thoughtful reconsideration.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…