potentialpaper

On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models

Import NeurIPS 2026 submission XsNfjnUeWl: 8 notes

@openreview[bot] · 2026-11-22 17:57 UTC · df42ed7b8bf9

Evidence

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,28 @@
+{
+ "layout": 5,
+ "identifiers": [
+ {
+ "scheme": "openreview",
+ "value": "XsNfjnUeWl"
+ }
+ ],
+ "title": "On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models",
+ "authors": [
+ "William Lingxiao Tong",
+ "Aryo Lotfi",
+ "Emmanuel Abbe",
+ "Konstantinos Vaggelakos",
+ "Vishnu Banna",
+ "Etai Littwin",
+ "Joshua M. Susskind",
+ "Eran Malach"
+ ],
+ "abstract": "State Space Models (SSMs) have emerged as a compelling alternative to Transformers, enabling sequence modeling with constant memory and linear compute. While SSMs excel in certain settings like length generalization, they continue to lag behind Transformers on tasks that require in-context learning and precise retrieval, slowing their adoption for large-scale language modeling. In this work, we demonstrate that both the success and failure of SSMs in these domains can be explained by studying the role of the gating mechanism, a prevalent component in modern recurrent networks. Specifically, we show through theory and experiments that this gating mechanism causes SSMs to first learn an in-weights ``memorization'' solution, while delaying, or even preventing, convergence to a correct in-context learning solution. Importantly, this happens even in cases where there are no fundamental limitations due to the architecture or its memory capacity. On the other hand, we find that gating is often beneficial for improving generalization to long sequence lengths. Our results illuminate the crucial role of the gating mechanism in shaping both the training dynamics and generalization of SSMs, and provide a basis for understanding and improving linear-time models.",
+ "year": 2026,
+ "venue": "NeurIPS 2026",
+ "source": "openreview",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,36 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

reviews/openreview/xsnfjnuewl/forms.json added

+++ b/reviews/openreview/xsnfjnuewl/forms.json
@@ -0,0 +1,227 @@
+{
+ "schema": "forms/1",
+ "forms": {
+ "Meta_Review": {
+ "label": "Meta-review",
+ "fields": [
+ {
+ "key": "metareview",
+ "label": "Meta-review",
+ "type": "text"
+ }
+ ]
+ },
+ "Decision": {
+ "label": "Decision",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "hidden": true
+ },
+ {
+ "key": "decision",
+ "label": "Decision",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ },
+ {
+ "key": "metareview",
+ "label": "Meta-review",
+ "type": "text"
+ },
+ {
+ "key": "final_justification",
+ "label": "Final justification",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Comment": {
+ "label": "Comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Public_Comment": {
+ "label": "Public comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Withdrawal": {
+ "label": "Withdrawal",
+ "fields": [
+ {
+ "key": "withdrawal_confirmation",
+ "label": "Confirmation",
+ "hidden": true
+ }
+ ]
+ },
+ "Desk_Rejection": {
+ "label": "Desk rejection",
+ "fields": [
+ {
+ "key": "desk_reject_comments",
+ "label": "Reason",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Review": {
+ "label": "Official review",
+ "summary": [
+ "rating",
+ "confidence",
+ "quality",
+ "clarity",
+ "significance",
+ "originality"
+ ],
+ "fields": [
+ {
+ "key": "rating",
+ "label": "Rating",
+ "type": "score",
+ "min": 1,
+ "max": 6
+ },
+ {
+ "key": "confidence",
+ "label": "Confidence",
+ "type": "score",
+ "min": 1,
+ "max": 5
+ },
+ {
+ "key": "quality",
+ "label": "Quality",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "clarity",
+ "label": "Clarity",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "significance",
+ "label": "Significance",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "originality",
+ "label": "Originality",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "contribution_type",
+ "label": "Contribution type",
+ "type": "choice"
+ },
+ {
+ "key": "summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "strengths_and_weaknesses",
+ "label": "Strengths and weaknesses",
+ "type": "text"
+ },
+ {
+ "key": "questions",
+ "label": "Questions",
+ "type": "text"
+ },
+ {
+ "key": "limitations",
+ "label": "Limitations",
+ "type": "text"
+ },
+ {
+ "key": "final_justification",
+ "label": "Final justification",
+ "type": "text"
+ },
+ {
+ "key": "paper_formatting_concerns",
+ "label": "Formatting concerns",
+ "type": "text"
+ },
+ {
+ "key": "ethical_concerns",
+ "label": "Ethical concerns",
+ "type": "choice"
+ },
+ {
+ "key": "code_of_conduct_acknowledgement",
+ "label": "Code of conduct",
+ "hidden": true
+ },
+ {
+ "key": "responsible_reviewing_acknowledgement",
+ "label": "Responsible reviewing",
+ "hidden": true
+ }
+ ]
+ },
+ "Rebuttal": {
+ "label": "Rebuttal",
+ "fields": [
+ {
+ "key": "rebuttal",
+ "label": "Rebuttal",
+ "type": "text"
+ }
+ ]
+ },
+ "Ethics_Review": {
+ "label": "Ethics review",
+ "fields": [
+ {
+ "key": "scope_of_ethics_concerns",
+ "label": "Scope",
+ "type": "choice"
+ },
+ {
+ "key": "ethics_review",
+ "label": "Ethics review",
+ "type": "text"
+ }
+ ]
+ }
+ },
+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/notes/6myzjuauar.json added

+++ b/reviews/openreview/xsnfjnuewl/notes/6myzjuauar.json
@@ -0,0 +1,32 @@
+{
+ "schema": "review/1",
+ "id": "6MYzJUaUaR",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer JC2H",
+ "content": {
+ "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.",
+ "contribution_type": "general",
+ "strengths_and_weaknesses": "Strengths\n\n- 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.\n- The authors test a variety of different experimental setups to validate their idea of how gating affects in-context learning and retrieval.\n- The authors do not only consider \"toy\" problems, but also other important tasks such as naturalistic tool-calling.\n\nWeaknesses\n\n- 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.\n- 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.",
+ "quality": 3,
+ "clarity": 2,
+ "significance": 3,
+ "originality": 3,
+ "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?\n- 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).\n- 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? \n\n\nBarbero, Federico, et al. \"Transformers need glasses! information over-squashing in language tasks.\" Advances in Neural Information Processing Systems 37 (2024): 98111-98142.\n\nBarbero, Federico, et al. \"Why do LLMs attend to the first token?.\" COLM (2025).",
+ "limitations": "Yes",
+ "rating": 4,
+ "confidence": 3,
+ "ethical_concerns": [
+ "NO or VERY MINOR ethics concerns only"
+ ],
+ "paper_formatting_concerns": "None",
+ "code_of_conduct_acknowledgement": "Yes",
+ "responsible_reviewing_acknowledgement": "Yes",
+ "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."
+ },
+ "createdAt": "2026-06-24T05:53:01.375Z",
+ "modifiedAt": "2026-11-18T13:44:43.272Z",
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl&noteId=6MYzJUaUaR",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/notes/6tvlnashq2.json added

+++ b/reviews/openreview/xsnfjnuewl/notes/6tvlnashq2.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "6TvlNaSHq2",
+ "replyTo": "i79iGJ77ft",
+ "kind": "comment",
+ "invitation": "Rebuttal",
+ "signature": "Authors",
+ "content": {
+ "rebuttal": "Thanks for the notes and suggestions! Responding to your specific points below:\n\n>The SSM model considered is very simplistic.\n\nIn our theoretical analysis, our SSM model is indeed a simplification of a full Mamba implementation, but retains the critical features under study (gating, memorization, in-context retrieval). Importantly, our theory reflects the same interactions between gating, memorization, and in-context retrieval observed in our series of experimental settings of increasing realism, suggesting that our simple model remains informative for understanding real outcomes. The simplifications are necessary to permit theoretical study, and carefully chosen to retain the particular phenomenology we study in this work. We look forward to pursuing future iterations that relax our assumptions and target other questions.\n\n>Main text does not contain a discussion of related work\n\n>Clarity of the main text is poor because so many of the key details are in the appendix. The authors could find a better balance of distributing the details across the main text and appendix. E.g. move some of the experimental details to appendix instead?\n\nThanks for this critique. Our Related Works is currently in Appendix A due to space constraints, but we will certainly move it back to the main text and make space for it by reorganizing the experimental sections to relegate more of the noncritical details to the appendix.\n\n\n> For the task in 2.1, is it the same points all the time, and is resampled for every instance?\n\nThe global set of P points is fixed through the duration of the task, but each example contains a fresh subset of these points. We clarify our exposition to make this setup more clear.\n\n>What is the assumed training dynamics in proposition 4?\n\nThe reduced dynamics are described in Appendix B (Lemma 3 and equations 2,3), in our detailed exposition of the theoretical analysis. We will link this reference in our informal statement of proposition 4 to make the statement clearer. The reduced dynamics are a leading-order simplification of our dynamics, and permit us to characterize the time to escape the memorization plateau to leading order in the gating factor $\\alpha$."
+ },
+ "createdAt": "2026-07-27T15:39:30.208Z",
+ "modifiedAt": "2026-11-18T17:20:42.696Z",
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl&noteId=6TvlNaSHq2",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/notes/avelxqpgn0.json added

+++ b/reviews/openreview/xsnfjnuewl/notes/avelxqpgn0.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "aVeLxqpGN0",
+ "replyTo": null,
+ "kind": "meta_review",
+ "invitation": "Meta_Review",
+ "signature": "Area Chair GTHr",
+ "content": {
+ "metareview": "This paper studies how gating in state-space models governs the tradeoff between in-weights memorization, in-context retrieval, and length generalization, combining theoretical analysis of a simplified model with experiments ranging from synthetic retrieval to tool calling. The paper is currently borderline and leaning toward acceptance, but the reviewers identify several issues that should be addressed in the rebuttal. Most importantly, the authors should clarify how conclusions derived under a single-layer, single-head model with a global scalar gate and orthogonal representations transfer to full selective SSMs (see Reviewer 3x1A Weakness 1 and Reviewer vBWv Weakness 1). They should also connect the short-context optimization analysis to the long-context experiments by reporting whether the imposed ordering of gating strengths persists after training and explaining how the fixed-gate theory accounts for post-training behavior (see Reviewer 3x1A Weakness 2 and Question 3). Finally, the response should clarify the BFCL gate intervention and Transformer baseline, justify the use of different optimizers, and address the underspecified theoretical and experimental details (see Reviewer 3x1A Questions 1, 2, and 4; Reviewer vBWv Questions 1 and 2). Improvements to exposition—including bringing essential details and related-work discussion into the main text—would also strengthen the paper (see Reviewer vBWv Weaknesses 2–3 and Reviewer JC2H Weakness 2). A convincing response to the central questions about theoretical transfer and learned gate behavior would increase confidence in acceptance."
+ },
+ "createdAt": "2026-07-21T18:33:46.773Z",
+ "modifiedAt": "2026-11-18T15:25:14.791Z",
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl&noteId=aVeLxqpGN0",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/notes/czwytfzrgw.json added

+++ b/reviews/openreview/xsnfjnuewl/notes/czwytfzrgw.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "czwYtfzrgw",
+ "replyTo": "W5EUwBj2kU",
+ "kind": "comment",
+ "invitation": "Rebuttal",
+ "signature": "Authors",
+ "content": {
+ "rebuttal": "Thanks for the kind words and many suggestions! We’re glad you liked the paper. Responding to your specific points and questions below:\n\n>The theoretical analysis is still quite simplified.... The exact-orthonormality assumption on the token representations is also quite strong.\n\n> The short-context theory also relies on an orthogonal-token approximation, which makes the memorization/retrieval margin decomposition clean but may not reflect the correlated token representations encountered in realistic pretrained models.\n\nThanks for raising these critiques. Our theoretical SSM model is indeed a simplification of a full Mamba implementation, but retains the critical features under study (gating, memorization, in-context retrieval). Importantly, our theory reflects the same interactions between gating, memorization, and in-context retrieval observed across our several experimental settings which do employ full-scale Mamba models, suggesting that our simple model remains informative for understanding real outcomes. The simplifications are necessary to permit theoretical study, and carefully chosen to retain the particular phenomenology we study in this work. Introducing additional complexity like multiple heads, multiple layers, and nonlinear blocks seemed unnecessary to answer the specific questions we posed in this study, but we look forward to pursuing future iterations that relax some of our assumptions and target other questions.\n\nRegarding our assumption on independent or orthogonal token embeddings, individual tokens in our theoretical setting represent the entities over which a model must retrieve. In our experiments, the analogous entities aren’t individual tokens, but entire tool definitions, Horn clauses, or key-value pairs. One tool definition in the context might be about checking the weather, whereas another tool definition might be about scheduling an Uber ride, and so the blocks of tokens over which the model retrieves may not necessarily be related. Hence, assuming independence among the entities over which we’re retrieving was a convenient simplification that permitted a crisp analysis without being wholly unrealistic. Of course, as you note, tool definitions and other retrieved entities often still exhibit significant correlations. Incorporating more significant correlations between inputs is certainly an interesting avenue for future study, and one we look forward to developing further in future work.\n\n>The connection between the short-context training-dynamics theory and the long-context generalization claim is not fully established. The short-context theory analyzes how the initial gating value affects optimization process during training, and the long-context theory analyzes a fixed gating strength at inference time. However, the length-generalization experiments intervene on the gate values before training or SFT. Since the gates remain trainable, it is unclear whether the initialized or scaled ordering of gating strengths is preserved after optimization, and therefore how directly the fixed-gating long-context analysis explains the observed post-training extrapolation behavior.\n\nGreat question. While gating certainly evolves over training, initialization plays a crucial role. From our expression for the gating prefactor $\\alpha$ (Appendix B, equation 3), we observe that the gradient on $\\alpha$ is vanishingly small both when gating is very strong ($\\alpha \\approx 0$) and when gating is very weak ($\\alpha \\approx 1$), so gating tends to remain close to its initialization in these limits. We would therefore expect a strong gating model to continue performing well at length generalization, and a weak gating model to continue performing poorly. \n\nIn practice, we observe that gating changes minimally throughout the course of training in our long-context experiments. Below, we’ve instrumented a run in the setting of the length generalization illustrated in Figure 3d, measuring the gating parameter value before and after training (taking the median across heads), and summarize changes to $\\alpha$ and the corresponding effective length scale $\\tau = -1/\\log\\alpha$. We observe that, indeed, $\\tau$ and $\\alpha$ change little throughout the course of training compared to their relative scales. Furthermore, we see that the ordering between models by gating strength is perfectly preserved. Hence, initialization appears to remain a good proxy for gating strength after training, and our theoretical observations on long contexts may remain relevant for a trained model.\n\n| Initial gate (median $\\tau$, tokens) | Median $\\tau$ after 200k steps | Prefactor drift $\\lvert\\Delta\\alpha\\rvert$ |\n|----------------------------------------------|---------------------------------------------|--------------------------------------------|\n| $2.1\\times10^{4}$ (weakest) | $1.2\\times10^{4}$ | $4\\times10^{-5}$ |\n| $297$ | $315$ | $1\\times10^{-3}$ |\n| $17$ | $14$ | $0.024$|\n| $2.8$ | $3.0$ | $0.083$|\n| $1.4$ | $1.4$ | $0.067$|\n| $0.8$ | $0.7$ | $0.053$|\n| $0.2$ (strongest) | $0.2$ | $7\\times10^{-3}$ |\n\nWe will clarify these intuitions further in the manuscript and add a more comprehensive set of direct measurements of the gating distributions before and after training. \n\n>Why does the Transformer baseline show much worse pool-size generalization than the Mamba-based models in the BFCL experiment?\n\nStandard Transformers with commonly used explicit positional encodings, including RoPE, often degrade when evaluated beyond their training lengths (see for instance [Kazemnejad et al. 2023](https://arxiv.org/abs/2305.19466)). Our experiments are consistent with these observations, and also show a rapid deterioration in performance when the Transformer is exposed to out-of-distribution lengths. The Transformer has been parameter-matched to the Mamba model across experiments, and specific details on model configurations are in Appendix C. The Transformer uses rotational positional encodings (RoPE), and its training pipeline is identical to that of the Mamba models across all settings. We’ll ensure the appendix is comprehensive with details regarding the Transformer’s configuration and training.\n\n>In the BFCL experiments, what exactly is the gating scaling factor applied to? Is the scaling applied to the same log-space gating parameter as in the Section 3.1 offset intervention?\n\nThe scaling for the BFCL experiment is applied directly to the parameter, not in log space (the two configurations are equivalent: additively shifting the gating parameter in log-space is equivalent to scaling the parameter directly by a factor). We’ll adjust our notation to uniformly describe changes to the gating parameter.\n\n>Is there a specific reason for using different optimizers (SGD/Adam/Muon) across different tasks? Could optimizer choice affect the memorization-to-retrieval transition or the observed sensitivity to gating initialization?\n\nGreat questions. The small theoretical-validation model uses SGD because it most directly matches the gradient-flow analysis. The deep multi-token Mamba-2 experiments and the large-scale pretraining/BFCL experiments use AdamW, which is the standard and stable optimizer in those settings. For the logical-rules task, we found that Muon was substantially more reliable at learning the task in-distribution for both the Mamba and Transformer architectures, and for unclear reasons our models failed to train consistently using AdamW even after extensive hyperparameter sweeps. \n\nThe choice of optimizer may change the quantitative timing of the transition, though the same qualitative relationship between stronger gating, slower retrieval learning, and improved length extrapolation appears across tasks trained with SGD, AdamW, and Muon. This cross-optimizer consistency suggests that the phenomenon is not an artifact of one particular optimizer, although a controlled study of how preconditioning alters the plateau and escape time would be a valuable direction for future work. We will add this rationale and limitation to the experimental details.\n\n\n>How does gating strength affect \"lost-in-the-middle\" behavior? For example, does stronger gating turn the U-shaped long-context retrieval performance curve into a more monotonic recency-biased curve, or is there an intermediate gating regime that improves retrieval from middle positions?\n\nThanks for raising an interesting question. In the scalar-decay model analyzed in our theory, positional weighting is monotonic: earlier states are exponentially attenuated, so the model has an intrinsic recency bias rather than the U-shaped primacy-and-recency profile often observed in Transformers. Strengthening the gate steepens this recency bias; weakening it flattens the positional weighting and improves access to middle or early tokens, but eventually permits too much distractor variance to accumulate.\nThus, an intermediate gate can provide the best accuracy at a particular middle distance by balancing attenuation against interference, but it does not produce a Transformer-like U-shape in our analysis. Our Proposition 8 makes this tradeoff explicit through an effective retrieval radius of order $\\tau\\log(d/\\tau)$. A full position-by-position analysis in pretrained Mamba models would be very interesting, but is beyond what our current experiments establish."
+ },
+ "createdAt": "2026-07-27T15:51:47.785Z",
+ "modifiedAt": "2026-11-18T17:20:44.210Z",
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl&noteId=czwYtfzrgw",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/notes/i79igj77ft.json added

+++ b/reviews/openreview/xsnfjnuewl/notes/i79igj77ft.json
@@ -0,0 +1,32 @@
+{
+ "schema": "review/1",
+ "id": "i79iGJ77ft",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer vBWv",
+ "content": {
+ "summary": "In this paper, the authors study the importance of gating in linear recurrent networks. They derive results for short and long context cases and show that for short context, strong gating can delay in-context retrieval in favour of memorisation, while for long context weak gating accumulates excessive variance. They test out their theoretical predictions on various tasks.",
+ "contribution_type": "theory",
+ "strengths_and_weaknesses": "## Strengths\n\n1. Gives a comprehensive view of the role of gating in memorisation vs in-context retrieval\n2. the theoretical predictions are supported by empirical results\n3. Cases to real world are studied.\n\n## Weaknesses\n\n1. The SSM model considered is very simplistic.\n2. Main text does not contain a discussion of related work\n3. Clarity of the main text is poor because so many of the key details are in the appendix. The authors could find a better balance of distributing the details across the main text and appendix. E.g. move some of the experimental details to appendix instead?\n\n## Minor\n\n- l.111: $\\eta$ is not defined in the main text.",
+ "quality": 3,
+ "clarity": 3,
+ "significance": 3,
+ "originality": 3,
+ "questions": "1. For the task in 2.1, is it the same points all the time, and is $\\epsilon$ resampled for every instance?\n2. What is the assumed training dynamics in proposition 4?",
+ "limitations": "yes",
+ "rating": 5,
+ "confidence": 3,
+ "ethical_concerns": [
+ "NO or VERY MINOR ethics concerns only"
+ ],
+ "paper_formatting_concerns": "none",
+ "code_of_conduct_acknowledgement": "Yes",
+ "responsible_reviewing_acknowledgement": "Yes",
+ "final_justification": "The authors response addressed most of my concerns. I am now convinced that this is worth accepting and have upgraded by score accordingly."
+ },
+ "createdAt": "2026-06-28T17:21:52.476Z",
+ "modifiedAt": "2026-11-18T13:44:41.013Z",
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl&noteId=i79iGJ77ft",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/notes/qzx5dmw30s.json added

+++ b/reviews/openreview/xsnfjnuewl/notes/qzx5dmw30s.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "qzx5dmw30s",
+ "replyTo": "6MYzJUaUaR",
+ "kind": "comment",
+ "invitation": "Rebuttal",
+ "signature": "Authors",
+ "content": {
+ "rebuttal": "Thanks for the support and suggestions! Responding to your specific points and questions below:\n\n>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.\n\nThanks 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.\n\nThere 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.\n\n>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.\n\nThanks 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. \n\n\n>\"While SSMs excel in certain settings like length generalization\" - I thought that SSMs did not generalize well to longer sequence lengths than trained on?\n\nThanks 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](https://arxiv.org/abs/2312.00752) or more recently [Malach et al. 2026](https://arxiv.org/abs/2510.14826)). They can nevertheless fail on arbitrary long-range copying or retrieval, because a fixed-size state and decaying dynamics cannot preserve every item indefinitely.\n\nOur 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.\n\n>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).\n\nThanks 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.\n\nThere 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.\n\n>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?\n\nAs 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."
+ },
+ "createdAt": "2026-07-27T15:56:38.516Z",
+ "modifiedAt": "2026-11-18T17:20:43.926Z",
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl&noteId=qzx5dmw30s",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/notes/w5euwbj2ku.json added

+++ b/reviews/openreview/xsnfjnuewl/notes/w5euwbj2ku.json
@@ -0,0 +1,32 @@
+{
+ "schema": "review/1",
+ "id": "W5EUwBj2kU",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer 3x1A",
+ "content": {
+ "summary": "This paper studies how gating mechanisms in State Space Models shape the tradeoff between in-context learning and in-weights memorization, as well as their downstream effect on length generalization. The authors develop a simplified theoretical model showing that strong gating can bias training toward memorization shortcuts and delay convergence to the correct retrieval-based in-context learning solution, while also helping control in-context noise accumulation and improve generalization to longer sequences. They validate these insights across synthetic retrieval tasks, multi-token key-value retrieval, logical rule retrieval, and a BFCL-style tool-calling benchmark, finding that weaker gating tends to improve in-context retrieval and reduce tool hallucination, whereas stronger gating can improve long-context extrapolation in settings where relevant information remains local. Overall, the paper contributes a theoretical and empirical explanation of why gated SSMs may struggle with retrieval-heavy in-context learning despite having sufficient capacity, while also clarifying why gating remains useful for length generalization.",
+ "contribution_type": "general",
+ "strengths_and_weaknesses": "**Strengths**\n\n- The paper studies an important and timely question: why gated SSMs such as Mamba can show strong length generalization while still struggling with retrieval-heavy in-context learning, especially on how learnable gating parameter's initialization is effecting training dynamics. The framing of gating as a mechanism that can both help and hurt is interesting and useful.\n\n- The sythetic retrieval task with label perturbation is smart and well-designed with controlled in-context noise distractor. This provides a clean framework for analyzing gradient flow and for decomposing the prediction margin into memorization and retrieval components. The resulting theory that shows how strong initial gating can suppress the retrieval signal and create a long memorization plateau even when an ICL solution is reachable, is useful and insightful.\n\n- The empirical validation is coherent and progressively scaled. The paper tests the proposed mechanism on synthetic retrieval, logical rule retrieval, and a more realistic BFCL-style tool-calling setting with large-scale pretrained models. Across these settings the results generally support the paper's central tradeoff, and the authors sensibly adapt both the model and the means of controlling gating strength accordingly.\n\n**Weaknesses**\n\n- The theoretical analysis is still quite simplified. It uses a single-layer, single-head setup with a global scalar gate and identity-like projections. This makes the analysis clean, but leaves uncertainty about how directly the conclusions transfer to full Mamba architectures with input-dependent gates, multiple heads and nonlinear blocks. The exact-orthonormality assumption on the token representations is also quite strong.\n\n- The connection between the short-context training-dynamics theory and the long-context generalization claim is not fully established. The short-context theory analyzes how the initial gating value affects optimization process during training, and the long-context theory analyzes a fixed gating strength at inference time. However, the length-generalization experiments intervene on the gate values before training or SFT. Since the gates remain trainable, it is unclear whether the initialized or scaled ordering of gating strengths is preserved after optimization, and therefore how directly the fixed-gating long-context analysis explains the observed post-training extrapolation behavior.",
+ "quality": 4,
+ "clarity": 4,
+ "significance": 3,
+ "originality": 4,
+ "questions": "1. Why does the Transformer baseline show much worse pool-size generalization than the Mamba-based models in the BFCL experiment? Is this primarily due to the architectural difference between Transformers and SSMs, or could it also reflect differences in the base model ability? It would be helpful if the authors provide more details about the Transformer baseline including its parameter count, positional encoding scheme, and how closely its training setup matches the Nemotron models.\n\n2. In the BFCL experiments, what exactly is the gating scaling factor applied to? Is the scaling applied to the same log-space gating parameter as in the Section 3.1 offset intervention?\n\n3. Since the gating parameters are trainable, do the models preserve the initialized or pre-SFT ordering of gating strengths after training/SFT? More generally, to what extent do the final learned gate distributions reflect the intended weak-to-strong gating scale imposed at initialization or before SFT?\n\n4. Is there a specific reason for using different optimizers (SGD/Adam/Muon) across different tasks? Could optimizer choice affect the memorization-to-retrieval transition or the observed sensitivity to gating initialization?\n\n5. How does gating strength affect \"lost-in-the-middle\" behavior? For example, does stronger gating turn the U-shaped long-context retrieval performance curve into a more monotonic recency-biased curve, or is there an intermediate gating regime that improves retrieval from middle positions?",
+ "limitations": "The main analysis uses a highly simplified single-layer, single-head Mamba-like model with a global scalar gate and identity projections, rather than a full Mamba architecture with input-dependent selective gating, multiple heads, and nonlinear blocks. \n\nThe short-context theory also relies on an orthogonal-token approximation, which makes the memorization/retrieval margin decomposition clean but may not reflect the correlated token representations encountered in realistic pretrained models. \n\nA clearer discussion of how these assumptions may affect the transfer of the theory to full-scale SSMs would strengthen the paper.",
+ "rating": 5,
+ "confidence": 3,
+ "ethical_concerns": [
+ "NO or VERY MINOR ethics concerns only"
+ ],
+ "paper_formatting_concerns": "I did not notice obvious violations.",
+ "code_of_conduct_acknowledgement": "Yes",
+ "responsible_reviewing_acknowledgement": "Yes",
+ "final_justification": "The authors’ rebuttal has addressed most of my concerns, and I have decided to raise my score accordingly."
+ },
+ "createdAt": "2026-06-26T11:15:06.866Z",
+ "modifiedAt": "2026-11-18T13:44:41.862Z",
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl&noteId=W5EUwBj2kU",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/notes/zkei6razg9.json added

+++ b/reviews/openreview/xsnfjnuewl/notes/zkei6razg9.json
@@ -0,0 +1,19 @@
+{
+ "schema": "review/1",
+ "id": "zKEI6rAzg9",
+ "replyTo": null,
+ "kind": "decision",
+ "invitation": "Decision",
+ "signature": "Program Chairs",
+ "content": {
+ "title": "Paper Decision",
+ "decision": "Accept (poster)",
+ "comment": "",
+ "metareview": "This paper studies how gating in state-space models governs the tradeoff between in-weights memorization, in-context retrieval, and length generalization, combining theoretical analysis of a simplified model with experiments ranging from synthetic retrieval to tool calling. The paper is currently borderline and leaning toward acceptance, but the reviewers identify several issues that should be addressed in the rebuttal. Most importantly, the authors should clarify how conclusions derived under a single-layer, single-head model with a global scalar gate and orthogonal representations transfer to full selective SSMs (see Reviewer 3x1A Weakness 1 and Reviewer vBWv Weakness 1). They should also connect the short-context optimization analysis to the long-context experiments by reporting whether the imposed ordering of gating strengths persists after training and explaining how the fixed-gate theory accounts for post-training behavior (see Reviewer 3x1A Weakness 2 and Question 3). Finally, the response should clarify the BFCL gate intervention and Transformer baseline, justify the use of different optimizers, and address the underspecified theoretical and experimental details (see Reviewer 3x1A Questions 1, 2, and 4; Reviewer vBWv Questions 1 and 2). Improvements to exposition—including bringing essential details and related-work discussion into the main text—would also strengthen the paper (see Reviewer vBWv Weaknesses 2–3 and Reviewer JC2H Weakness 2). A convincing response to the central questions about theoretical transfer and learned gate behavior would increase confidence in acceptance.",
+ "final_justification": "Taking into account the reviews, author response, and reviewer discussion, I recommend **Accept (Spotlight)**. The rebuttal adequately addressed the principal concerns identified in the initial meta-review. In particular, the authors provided direct measurements showing that the imposed weak-to-strong ordering of gate values is preserved after training, thereby strengthening the connection between the fixed-gate theory and the long-context experiments. They also clarified how the simplified analysis captures the relevant mechanism and supported its transfer through consistent causal interventions across increasingly realistic settings, including deep multi-head Mamba models and pretrained models for tool use. The remaining questions regarding the BFCL intervention, Transformer baseline, optimizer choices, experimental setup, and exposition were also satisfactorily addressed, with appropriate revisions committed for the final manuscript. Two reviewers consequently increased their scores to Accept, while the remaining reviewer found the responses satisfactory but retained a borderline-positive score primarily because they desired a broader investigation of gating in language modeling, which is beyond the paper’s stated scope. Overall, the paper offers a timely and insightful theoretical-mechanistic account of the dual role of gating—hindering retrieval learning while controlling long-context interference—supported by unusually broad and coherent empirical validation. The clarity of this central insight and its relevance to understanding modern SSMs justify Spotlight consideration."
+ },
+ "createdAt": "2026-09-24T11:27:18.423Z",
+ "modifiedAt": "2026-11-18T14:59:12.000Z",
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl&noteId=zKEI6rAzg9",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/xsnfjnuewl/submission.json added

+++ b/reviews/openreview/xsnfjnuewl/submission.json
@@ -0,0 +1,12 @@
+{
+ "schema": "submission/1",
+ "id": "XsNfjnUeWl",
+ "venue": {
+ "id": "NeurIPS.cc/2026/Conference",
+ "name": "NeurIPS 2026",
+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference"
+ },
+ "number": 30819,
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl",
+ "license": "CC-BY-4.0"
+}

versions/v_jpp33ux9.json added

+++ b/versions/v_jpp33ux9.json
@@ -0,0 +1,22 @@
+{
+ "date": "2026-05-05",
+ "kind": "submitted",
+ "label": "NeurIPS 2026",
+ "submissions": [
+ {
+ "venue": "NeurIPS 2026",
+ "status": "accepted",
+ "decision": "Accept (poster)",
+ "number": 30819,
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl",
+ "reviews": "openreview/xsnfjnuewl",
+ "evidence": [
+ "https://openreview.net/forum?id=XsNfjnUeWl"
+ ]
+ }
+ ],
+ "url": "https://openreview.net/forum?id=XsNfjnUeWl",
+ "evidence": [
+ "https://openreview.net/forum?id=XsNfjnUeWl"
+ ]
+}