- Rating
- 4
- Clarity
- 2
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper analyzes SSMs from a theoretical / mechanistic perspective. In particular, the authors examine the gating mechanism in SSMs within in-context learning and retrieval. In particular, they show that under certain conditions, the model will converge to a "memorization solution", but on the other hand, it will do better with long context lengths. Their results are backed up both theoretically and empirically.
Strengths and weaknesses
Strengths
- The paper formulates a set of sensible hypotheses and is able to show their validity both theoretically and empirically, although the model studied is simplified.
- The authors test a variety of different experimental setups to validate their idea of how gating affects in-context learning and retrieval.
- The authors do not only consider "toy" problems, but also other important tasks such as naturalistic tool-calling.
Weaknesses
- I think that the thing I missed the most about this paper is the local exploration around just in-context learning and retrieval. When I first read the title "On the Importance of Gating", I thought that the authors would share experimental evidence around why some of the early SSM designs, such as S4 did not properly work in the case of language. In particular, plots I have seen from pretraining runs suggest that LSTMs and Transformers were pretty much matched in terms of performance (although Transformers won later on because of scalability), but the more simplistic S4 lagged severely behind, and this was not able to be solved until Mamba re-introduced the gating mechanism. The original authors of S4 and Mamba (Albert Gu) has suggested in talks that this is because language is a more "compressible" modality, compared to continuous signals like audio, but I have never seen any convincing arguments made in this direction. I appreciate that the authors did a good job by taking a look at retrieval and in-context learning, but I wish that this analysis was extended to more generally understand the importance of gating in language modelling.
- I also feel like the paper reads in a way in which the main points are repeated over and over, without each section introducing some new concept or idea.
Questions
- "While SSMs excel in certain settings like length generalization" - I thought that SSMs did not generalize well to longer sequence lengths than trained on?
- I think that gating might be quite related to the ideas of sequence mixing and sharp heads presented in (Barbero et. al 2025). Could the authors perhaps discuss that? Maybe this can be related to the representational collapse result of (Barbero et. al. 2024).
- Do the authors have any thoughts on why it might be that gating is essential in the context of language modelling for, and can they produce some preliminary analyses of this during the review period, given the time constraints?
Barbero, Federico, et al. "Transformers need glasses! information over-squashing in language tasks." Advances in Neural Information Processing Systems 37 (2024): 98111-98142.
Barbero, Federico, et al. "Why do LLMs attend to the first token?." COLM (2025).
Limitations
Yes
Paper formatting concerns
None
Final justification
The authors did a good job answering my questions, but I still feel like the paper is somewhat borderline and could explore other areas in more detail. I maintain my score.
Thanks for the support and suggestions! Responding to your specific points and questions below:
Thanks for raising this comparison. Our paper studies one concrete role of gating: how decay controls the competition between in-weights memorization and in-context retrieval, and how the same decay trades distant retrieval against long-context interference. We do not provide a comprehensive explanation of the language-modeling gap between S4 and Mamba, though our results may gesture towards one plausible component of the broader answer. Language is highly nonstationary and predominantly local: information that was useful many tokens ago often becomes irrelevant, while recent tokens are typically more predictive of the next token. A gate gives a recurrent model a mechanism to discard stale information, prevent unbounded accumulation of unrelated features in a fixed-size state, and focus its effective capacity on a more local window. This is precisely the benefit visible in our long-context analysis when the relevant item remains near the query.
There are, however, likely many other aspects of Mamba's language-modeling success. Mamba also introduces input-dependent selectivity, learned projections, multiplicative interactions, and a full nonlinear architecture, and these may be crucial for deciding what to retain rather than merely how quickly to forget. These are very interesting questions to consider for future iterations of this work, and we thank you for raising them.
Thanks for the candid feedback. We intended each section to be readable in isolation and easy to skim, but doing so required us to repeat many details about the framing and key ideas between sections. We will consider streamlining the exposition to concentrate the framing and key ideas in the introduction and discussion, and reorganize the theory and experiments into a more progressive narrative.
Thanks for the opportunity to sharpen this statement. Both observations are true, depending on the task. SSMs can exhibit excellent sequence-length extrapolation when the desired computation is implementable by a stable recurrent rule and the relevant information remains within the model's effective memory (see for instance the original Mamba paper or more recently Malach et al. 2026). They can nevertheless fail on arbitrary long-range copying or retrieval, because a fixed-size state and decaying dynamics cannot preserve every item indefinitely.
Our results are intended to reconcile these cases rather than assert universal length generalization. Stronger gating can make the recurrent computation stable as the total sequence grows by preventing irrelevant history from accumulating, but it simultaneously imposes locality and makes distant retrieval harder. We will replace the broad sentence with a more qualified statement: SSMs show strong length extrapolation in several recurrent or locality-compatible settings, while long-range retrieval remains a central limitation.
Thanks for the interesting connections. At a high level, both lines of work concern how information from many positions is compressed and mixed into a limited representation. In our weak-gating regime, contributions from many context tokens persist in the same fixed-size recurrent state. This improves access to distant positions, but also increases superposition and distractor variance, which seems to be spiritually related to information over-squashing. Stronger gating makes the temporal weighting sharper and reduces this mixing, but does so by preferentially retaining recent information.
There are also important differences. The "first-token" or primacy behavior studied for Transformers arises from the structure of attention and special-token sinks, whereas the scalar decay in our SSM analysis produces a monotonic recency bias. Moreover, our short-context result is about optimization competition between a memorized solution and a retrieval solution, rather than representational collapse alone.
As we noted above, our intuition is that gating is valuable for language modeling because it provides adaptive forgetting: it limits interference from stale context, prevents the recurrent state from becoming an indiscriminate mixture of the entire prefix, and allocates finite state capacity toward information useful at the current position. Natural language may often be compatible with this system, favoring strong local dependencies with the occasionally long-range dependency. These intuitions resonate with our findings about in-context retrieval and long-context generalization, and we look forward to more deeply exploring a connection to natural language in future iterations of this work.