Mamba Can Learn Low-Dimensional Targets In-Context via Test-Time Feature Learning
Junsoo Oh, Wei Huang, Taiji Suzuki
NeurIPS 2026
TL;DR. We study in-context learning of Mamba on single-index models
Abstract. Mamba, a recently proposed linear-time sequence model, has attracted significant attention for its computational efficiency and strong empirical performance. However, a rigorous theoretical understanding of its underlying mechanisms remains limited. In this work, we provide a theoretical analysis of Mamba's in-context learning (ICL) capability by focusing on tasks defined by low-dimensional nonlinear target functions. Specifically, we study in-context learning of a single-index model , which depends on only a single relevant direction , referred to as feature. We prove that Mamba, pretrained by gradient-based methods, can achieve efficient ICL via test-time feature learning, extracting the relevant direction directly from context examples. Consequently, we establish a test-time sample complexity that improves upon linear Transformers---analyzed to behave like kernel methods---and is comparable to nonlinear Transformers, which have been shown to surpass the Correlational Statistical Query (CSQ) lower bound and achieve near information-theoretically optimal rate in previous works. Our analysis reveals the crucial role of the nonlinear gating mechanism in Mamba for feature extraction, highlighting it as the fundamental driver behind Mamba’s ability to achieve both computational efficiency and high performance.
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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The reviewers find the theoretical study of Mamba’s in-context feature learning interesting and potentially significant. However, concerns were raised about the correctness of several steps in the main proof: the sign of the gating bias, the spherical moment calculation underlying the test-time feature-learning result, and the use of high-probability bounds in the generalization argument. The authors should address these technical points carefully in the rebuttal. Furthermore, authors should also clarify the justification and implications of the substantial architectural and training simplifications, the role of the MLP, the relation to closely related Transformer analyses, and whether the claimed pretraining-sample advantage is fundamental.
Final justification
During the discussion, the authors clarified the architectural simplifications, the role of the MLP, and the relation to prior Transformer analyses. A reviewer identified valid proof issues, including an incorrect spherical-moment calculation. The authors proposed a detailed repair, but the corrected theorem requires an additional growth condition on the intrinsic dimension and no longer covers the fixed-dimensional regime used in the experiments. Overall, I believe the corrected result remains a meaningful theoretical contribution and I recommend acceptance. The revised paper should incorporate all proof corrections, clearly narrow the claims, and distinguish the analyzed simplified model from standard Mamba.
Read meta-review
Meta-review
The reviewers find the theoretical study of Mamba’s in-context feature learning interesting and potentially significant. However, concerns were raised about the correctness of several steps in the main proof: the sign of the gating bias, the spherical moment calculation underlying the test-time feature-learning result, and the use of high-probability bounds in the generalization argument. The authors should address these technical points carefully in the rebuttal. Furthermore, authors should also clarify the justification and implications of the substantial architectural and training simplifications, the role of the MLP, the relation to closely related Transformer analyses, and whether the claimed pretraining-sample advantage is fundamental.
Final justification
During the discussion, the authors clarified the architectural simplifications, the role of the MLP, and the relation to prior Transformer analyses. A reviewer identified valid proof issues, including an incorrect spherical-moment calculation. The authors proposed a detailed repair, but the corrected theorem requires an additional growth condition on the intrinsic dimension and no longer covers the fixed-dimensional regime used in the experiments. Overall, I believe the corrected result remains a meaningful theoretical contribution and I recommend acceptance. The revised paper should incorporate all proof corrections, clearly narrow the claims, and distinguish the analyzed simplified model from standard Mamba.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 1/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper attempts to investigate whether Mamba can, like nonlinear Transformers, extract hidden features of the current task from a small number of samples during in-context learning. They try to prove that Mamba's nonlinear gating can apply a nonlinear transformation to the label signal, making higher-order feature signals invisible to linear methods become visible.
Strengths and weaknesses
The motivation is sound. On the problem setup, I cannot determine whether it is deliberately aligned with Nishikawa's existing derivation path[1], but the two are indeed quite close in substance, which somewhat weakens my assessment of the paper's theoretical contribution. It puts forward an insightful mechanistic hypothesis for Mamba practice. Experimentally, it validates some trend-level predictions, but does not design experiments specifically for Proposition 4.1, which I consider a relatively important result, nor does it perform some simple manipulations on the gating to confirm its role. Overall, this is an impressive paper. Although there are still some issues that are not fully addressed, I believe the authors can resolve them during the rebuttal period—because they are not complicated.
Specific Issues in the Proof
However, regarding the proof itself, I found several issues that make me less confident in the correctness of the main theorem as currently written.
-
In the theorem statement, is set to , suggesting a large positive bias. However, parts of the proof seem to require a large negative bias, or equivalently a gate of the form involving , so that the sigmoid gate is small and the subsequent estimates scale as intended. This discrepancy is not merely cosmetic, since the sign of directly changes the behavior of the gating and forgetting factors.
-
I am concerned about the moment calculation involving the feature vector . The proof appears to use simplifications that would be valid if the squared coordinates of behaved like deterministic quantities. However, for a vector uniformly distributed on the sphere, the fourth moments introduce additional terms, such as coordinate-wise quadratic components, which do not seem to reduce to a function only of . This seems particularly relevant to Proposition 4.1 / Proposition C.5, where the Mamba output is claimed to be approximated by a function of . As far as I can tell, the extra terms are not obviously negligible and may be of the same order as the claimed signal in the even-link case.
-
In the generalization argument based on Rademacher complexity, the proof seems to pass from a high-probability bound on the normalized Mamba output to a bound on its second moment or expectation. A high-probability bound alone does not automatically imply the required expectation bound without an additional tail estimate, truncation argument, or moment control. I could not find such an argument in the current manuscript.
I examined the relevant steps related to these issues, but they do not seem to be explained by the paper itself. I would appreciate clarification from the authors on whether these are typographical mistakes, omitted arguments, or genuine gaps in the proof. In particular, the second issue seems potentially important for the validity of the stated test-time feature learning proposition.
[1]: Nishikawa, N., Song, Y., Oko, K., Wu, D. and Suzuki, T., 2025, October. Nonlinear transformers can perform inference-time feature learning. In Forty-second International Conference on Machine Learning.
Questions
-
As mentioned in the weaknesses, I would like the authors to verify the theoretical derivations and provide the corresponding explanations.
-
Could the authors design experiments related to Proposition 4.1, or perform simple interventions on the gating mechanism to verify its role? If the authors believe such experiments are unnecessary, I would also appreciate an explanation of why.
-
As an open question, do the authors believe that it is possible to go beyond single-index ICL and study a broader class of phenomena? What would be the main technical bottlenecks?
Limitations
yes.
Final justification
The repaired theorem has a materially narrower scope than the original claim in the submitted version: it excludes the fixed- regime used in the experiments and only covers settings in which the intrinsic dimension grows sufficiently with . After the theorem was revised by introducing a new constraint on , the experiments in the original paper became substantially misaligned with the theory. In particular, the fixed values of used in the experiments do not satisfy the requirements of the revised theorem. Although the conceptual advance over the closely related nonlinear-Transformer analysis is meaningful, it is still incremental overall. This is a fragile score of 3: if the incorrect proof in the original submission is taken into account, I would strongly oppose accepting the paper in its current form.
Formatting concerns
No paper formatting concerns.
12 comments
Sorry, I may not have fully understood your response to Q2. By the “growth condition,” do you mean that is assigned as a function of ? In other words, is not arbitrary, but required to grow with ? Is my understanding correct?
Thank you for the follow-up. Your understanding is correct (we assume this refers to the growth condition in our response to Issue 2).
By the growth condition we mean : is not arbitrary, but is required to grow with . This is what makes the residual negligible relative to the leading term, since it is controlled only when is large enough to beat the polylogarithmic factors in the error bounds.
To be clear, this is an additional assumption that was not stated in the submitted version. It asks to be at least , which still covers the regime of interest , and our results hold for in this range.
We would also be happy to hear if you have any additional questions and thoughts.
Best regards,
Authors
- Rating
- 6/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the ICL ability of the Mamba architecture using single-index models by characterizing the sample complexity in pretraining and testing. The theoretical results indicate that because of the nonlinear gating, Mamba can implement test-time feature learning. The authors also make a comparison between the sample complexity of Mamba and that of linear Transformers and softmax Transformers.
Strengths and weaknesses
Strengths:
-
The theoretical analysis is solid and impressive.
-
Extending single-index models to the Mamba architecture is novel and techinically challenging.
Weaknesses:
-
As a theoretical paper, although I can understand that it is not easy to make the presentation easy to follow. I still hope that the writing and clarity can be improved. For example, the authors can consider provide some figures to illustrate some key points of these paper, such as the considered Mamba model, the proof idea, etc.
-
I am not very satisfied with the assumptions in this work for studying Mamba. The is simplified to a diagonoal matrix, although it is trainable. The nonlinear gating is fixed, while most of the learning parameters are from the MLP layer. It gives me a feeling that as a paper to study Mamba, this work emphasizes too much on the MLP layer, which is outside the Mamba layer, although the authors finally show that MLP plus Mamba indeed improves the sample complexity than Transformers.
Questions
-
What is the practical insight of this work? Does the theoretical result indicate any direction to improve the empirical study?
-
I think it is very interesting that the improved sample complexity is because of the MLP layer by line 269. Can you provide any intuitive explanation of how we can understand this, especially why softmax attention plus MLP cannot achieve such a small sample complexity?
-
Algorithm 1 needs two-stage training, which is more complicated than practical training. Why do you consider two-stage training? Can your theoretical framework be extended to joint training of all parameters? Or can you empirically compare the performance or the properties between joint training and two-stage training?
Limitations
Yes. The limitations are discussed in Appendix A, but that part can be discussed more precisely. The authors say the details are in Section 2. I feel there are too many jumps from the Conclusion to Appendix A, and then to Section 2, and it is not easy to locate each component. It is better to summarize the limitations again in Appendix A, so that one can get all of them on a single page.
Final justification
After the rebuttal, the authors have further illustrated the effect of the MLP layer in the problem setting and rigorously clarified the difference from the existing works. Since the problem is highly complicated, I agree that making assumptions or simplifications in the analysis is necessary. The only thing is to clearly explain the reasons and motivations of these formulations. Regarding the practical insights and further comparison between Mamba and softmax Transformers, I think the discussion is valuable. I believe this paper is an important supplement and extension to the existing, albeit limited, theoretical analyses of Mamba.
Formatting concerns
N/A
4 comments
Rebuttal
We express our gratitude for your valuable comments. In the following, we address the points raised by the reviewer.
W1 Clarity
We thank the reviewer for the suggestion. While we have already put considerable effort into the writing and clarity, we agree there is room to improve and will refine it further in the next revision. In particular, we find the suggestion to add figures especially helpful, and we will include figures illustrating the problem setting and the proof idea so that readers can follow the paper more easily.
W2, Q3 Problem setting
We address the concerns about our problem setting together. Our design choices are meant to keep the analysis tractable while preserving the key insight, since a fully practical choice of parameters and training algorithm would make the analysis intractable. Our theorem can thus be viewed as a capability result for an analyzable subclass of Mamba, with the standard end-to-end Mamba experiments providing complementary evidence beyond this parameterization.
Our pretraining uses a layerwise two-stage scheme with re-initialization, a standard convention in the feature-learning theory literature (e.g., Damian et al. [6]) adopted to make the analysis tractable: Stage I applies a one-step gradient update to the Mamba layer, and Stage II fits the outer MLP, which makes Stage II a convex problem and yields clean generalization bounds, while the re-initialization simplifies the per-stage analysis.
On the concern that the MLP is over-emphasized: learning a single-index model requires two complementary and equally essential roles. The token mixer (here Mamba) must extract the feature vector from the in-context examples, while the MLP must estimate the link function . These roles naturally call for different parameter counts. Approximating an arbitrary link function requires an expressive MLP with more parameters, whereas the mixer needs only a few: we restrict to a trainable diagonal matrix (a single vector ) and fix the gating weight, which already suffices to extract the feature well. So the larger parameter count of the MLP reflects its different job, not greater importance: neither part dominates, and in our two-stage view Stage I is where the Mamba layer performs the feature extraction (reducing the information exponent to the generative exponent) while Stage II is where the MLP fits .
Importantly, as stated in the paper, all our experiments use standard end-to-end training (not Algorithm 1), and the predictions of our analysis (test-time feature extraction, -scaling, and improved pretraining sample complexity) are all confirmed under this realistic training. We do not claim that the two-stage scheme is better than standard end-to-end training; it is only an analysis tool. For the setting we study it is already sufficient, whereas for more complex settings standard end-to-end training would likely be preferable. Extending the analysis to fully joint training would require tracking coupled cross-layer dynamics, which we believe would require new technical tools.
Q1 Practical insight
A practical insight from our analysis is that the nonlinear gating, rather than the linear recurrence alone, is the key driver of performance in linear-recurrence models. This is consistent with a growing line of empirical work in which improving the gating substantially boosts linear-recurrence and linear-attention architectures, such as GLA [1], Mamba-2 [2], Gated DeltaNet [3], KDA [4], and Gated DeltaNet-2 [5]. Our theory offers an explanation for this success: the gating enables test-time feature learning, and test-time efficiency scales with the intrinsic dimension rather than the ambient dimension , so Mamba is especially favorable for tasks with low-dimensional structure and long contexts. We will include this discussion in the next revision.
Q2 Improved pretraining sample complexity
We would like to clarify that what we establish is an improved pretraining sample complexity for Mamba compared to the result of Nishikawa et al. [7]; this is not a proof that a softmax Transformer cannot achieve the same improvement, since both our bound and that of Nishikawa et al. [7] are sufficiency results, not lower bounds. Below, we explain the intuition for how a different proof technique leads to this improvement.
Intuitively, the improved pretraining sample complexity comes from the MLP's nonlinearity (see the "Improved Pretraining Sample Complexity" paragraph, lines 305–318). During pretraining, the gradient signal that lets the Mamba layer pick up the feature direction would essentially vanish for hard targets (those with a high information exponent), because our input embedding uses only up-to-second-order terms (line 293). The MLP's nonlinearity prevents this: it makes the relevant gradient term sensitive to higher-order structure in the labels, effectively lowering the information exponent that governs the pretraining sample complexity (lines 309–311), so that far fewer pretraining samples are needed. A softmax Transformer with an MLP does not benefit in the same way: in the proof of Nishikawa et al. [7], the softmax places the model in a regime where the ReLU indicator is 1 with high probability, so effectively only the linear part of the MLP appears and its nonlinearity plays no role. This is sufficient in their case because the softmax already produces the necessary higher-order functions of the input, whereas our analysis uses only up-to-second-order functions (lines 312–316). This difference is thus a product of the proof technique.
However, our experiments show that Mamba needs fewer pretraining samples than the Transformer (Figure 1c), which leads us to expect that the gap is not merely an artifact of the proof technique but rather reflects a fundamental difference. To explain this experimental gap, we can offer a tentative candidate explanation for why it may persist beyond our specific setting. A softmax Transformer retains the entire set of context tokens and must learn during pretraining how to attend over all of them, whereas Mamba is constrained to compress the context into a fixed-size recurrent state. This bottleneck imposes a stronger inductive bias toward aggregating the task-relevant low-dimensional statistic, which may make pretraining optimization easier and hence require fewer pretraining samples. We emphasize that this is only a possible explanation, not something we prove; the part we actually prove is the mechanism described above.
Limitations
We thank the reviewer for the suggestion. In the next revision, we will organize these limitations more clearly and include a single, self-contained summary of them in Appendix A, covering the data distribution, the simplified architecture, the two-stage training, and the degree-2 embedding.
We hope our response helps to resolve any concerns.
Best regards,
Authors
References.
[1] Yang et al. Gated Linear Attention Transformers with Hardware-Efficient Training. ICML 2024.
[2] Dao and Gu. Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality. ICML 2024.
[3] Yang et al. Gated Delta Networks: Improving Mamba2 with Delta Rule. ICLR 2025.
[4] Kimi Team. Kimi Linear: An Expressive, Efficient Attention Architecture. arXiv, 2025.
[5] Hatamizadeh et al. Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention. arXiv, 2026.
[6] Damian et al. Neural networks can learn representations with gradient descent. COLT 2022.
[7] Nishikawa et al. Nonlinear transformers can perform inference-time feature learning. ICML 2025.
Dear Reviewer LeTr
Thank you for your time and effort in reviewing our work. We greatly appreciate your valuable and constructive feedback. Given your busy schedule, we would be grateful if you could review our responses to ensure we've adequately addressed your concerns. If you have any further questions or suggestions, please let us know, and we'll be happy to address them.
Thank you again for your valuable contribution to our research.
Best regards,
Authors
Thank you for your response. The theoretical contribution of this work is impressive. The authors further illustrate the effect of the MLP layer in the problem setting and rigorously clarify the difference from the existing works. Since the problem is highly complicated, I think making assumptions or simplifications in the analysis is necessary. The only thing is to clearly explain the reasons and motivations of these formulations. Regarding the practical insights and further comparison between Mamba and softmax Transformers, I think the discussion is valuable. I hope the authors can incorporate the above discussion into the updated version. Since the authors have addressed my concerns well, I have raised my rating accordingly. I believe this paper is an important supplement and extension to the existing, albeit limited, theoretical analyses of Mamba.
Thank you for your response. We are glad to hear that our rebuttal addressed your concerns. We also appreciate your suggestions for improvement and plan to incorporate them into our next revision.
Best regards,
Authors
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposed a framwork based on a single-index model to theoretically analyze Mamba’s in-context learning capabilities. Through analysis, it demonstrates that Mamba’s gating mechanism performs test-time feature learning in a manner distinct from the Transformer’s softmax attention, proving that Mamba’s test-time sample complexity is determined by the generative exponent rather than the information exponent. Furthermore, this study demonstrates that, through a two-stage pretraining process utilizing the nonlinearity of MLPs, Mamba can achieve the same test-time sample complexity as the Transformer while theoretically requiring lower pretraining sample complexity.
Strengths and weaknesses
Strengths
- It's strong motivation that provides an analysis of Mamba's mechanism theoretically addition of ICL.
- Overall, the paper is well-organized and easy to follow as it explains the gating mechanism enables featrue elarning through iterative calculations.
Weaknesses
- The theroretical analysis in this paper heavily based on an existing attention-based ICL analysis framwork. I believe additional discussion on whether it is theoretically valid to apply the analytical techniques used in Attention directly to Mamba, and on the impact of these assumptions on the results, specifically the simplification of Mamba model.
- I understand that this is a theoretical paper, the study’s persuasiveness would be enhanced if there were verification in actual in-context learning benchmarks.
Questions
-
As mentioned in the weaknesses, the paper adopts several simplifications of the Mamba model. Could the authors clarify whether these simplifications are theoretically justified for Mamba, as they are for attention-based models?
-
The paper suggests that Mamba may require fewer pretraining samples than Transformers. Since the presented bound is a sufficient condition, do the authors believe this improvement is fundamental, or could tighter analyses lead to similar bounds for Transformers as well?
Limitations
yes.
Final justification
The clarification by the authors addressed concerns.
Formatting concerns
N/A
4 comments
Rebuttal
We express our gratitude for your valuable comments. In the following, we address the points raised by the reviewer.
W1, Q1 Simplification of the Mamba model
Our analysis builds on the single-index ICL setting of Transformer analyses [1, 2], but it is not a direct transfer of their arguments: Mamba's nonlinearity is the gating, not the softmax, so the key step, namely that this nonlinearity reduces the information exponent to the generative exponent, cannot be inherited from [1] and requires arguments specific to the sigmoid gate (Proposition C.5, Lemmas B.3–B.4). Relatedly, whereas the softmax in [1] internally generates the higher-order functions of the input needed for feature learning, Mamba's linear attention does not, so our analysis instead relies on a higher-order (up to degree-2) input embedding that we construct so that the higher-order features can be extracted.
We introduce several simplifications to the Mamba layer to keep the analysis tractable, and we explain the role of each below. Our result can thus be viewed as a capability result for an analyzable subclass of Mamba rather than for the full architecture, with the end-to-end experiments below providing complementary evidence beyond this theoretical parameterization. We rewrite the Mamba layer as nonlinear gating combined with linear attention, and each simplification is either standard in the ICL literature or, we expect, can be relaxed.
(i) We merge into a single matrix and take it diagonal (a vector ), which suffices to learn the target; merging the two selection matrices is the direct analogue of merging in the linear-attention ICL literature [3, 4, 5, 6], and in the original Mamba formulation it corresponds to fixing the output selection weight to the identity and taking the input selection weight diagonal with only its diagonal entries trainable. This can be relaxed by keeping and as separate diagonal matrices without merging, with a more general initialization, at the cost of more involved calculations, though we have not carried out this more general case in full.
(ii) We fix the gating weight : only its coordinate acting on the label matters, since the essential role of the gate is the nonlinear transformation of the context labels. The analysis in fact holds as long as is sufficiently small, exactly as under a standard (small random) initialization; we set the remaining (-dimensional, input) coordinates to zero only to avoid the unnecessary calculations involved in tracking those small terms, and we expect the same argument to go through when they are nonzero but small.
(iii) For the input embedding, we use containing the 1st- and 2nd-order (Hermite) bases of . For (the non-even case, which already includes arbitrarily high-degree targets), the standard linear embedding suffices; the 2nd-order basis is needed only for the (even-link) case, where a 2nd-order function of must be available at the input. This is a mild construction: it can be realized by a practical mechanism such as a simple Gated Linear Unit (GLU), and we believe that any embedding containing the 1st- and 2nd-order functions of the input works equally well, so in a more realistic model these features could instead be produced by a preceding nonlinear layer.
These simplifications are meant to preserve the essential mechanism, namely the interaction between the nonlinear gating and the linear recurrence that reduces the information exponent to the generative exponent, and are the Mamba counterpart of parameterizations already accepted in the Transformer ICL literature [3–6]. Moreover, all our experiments train a standard Mamba end-to-end (not the simplified model or Algorithm 1), and the predicted behaviors (test-time feature extraction, -scaling, improved pretraining sample complexity) all appear empirically. We will make each correspondence to the standard Mamba formulation explicit in the next version.
W2 Experiments on ICL benchmarks
We appreciate the reviewer's suggestion of evaluating on ICL benchmarks. However, to study Mamba's in-context feature learning, we believe it is preferable to focus on a simple, controlled task. Studying ICL on simple, controlled function classes is a well-established approach (in the spirit of Garg et al. [7] and Park et al. [8]; we note that these study simple function classes, not the single-index model). We adopt the single-index model because it isolates the ability to extract low-dimensional information, which is the focus of our theory, and because it lets us cleanly vary the ambient dimension and the intrinsic dimension , which would be difficult to isolate in real-world data. We also note that only the task is synthetic: the rest of the experimental setup is practical and standard (standard Mamba vs. a comparable GPT-2, trained end-to-end), not the simplified model or Algorithm 1 of our analysis. Within this testbed, in the paper we conduct experiments that vary and the pretraining context length , and both predictions hold: test-time complexity is governed by (comparable to Transformers), and Mamba needs fewer pretraining samples.
Q2 The pretraining sample complexity gap
As we discuss in the paper, a theoretical gap remains: our pretraining sample-complexity bound is only a sufficient condition. Under the same framework, the improvement is structural, since the MLP nonlinearity reduces the information exponent for Mamba but does not play this role in the proof of Nishikawa et al. [1] for the softmax Transformer. Whether a tighter analysis could instead obtain a comparable bound for Transformers, as the reviewer suggests, is an interesting question. However, from our experimental observations, where the Transformer consistently needs more pretraining samples, we expect this gap to be fundamental, though a formal proof remains open.
We hope our response helps to address your questions and resolve any concerns.
Best regards,
Authors
References.
[1] Nishikawa et al. Nonlinear transformers can perform inference-time feature learning. ICML 2025.
[2] Oko et al. Pretrained Transformer efficiently learns low-dimensional target functions in-context. NeurIPS 2024.
[3] Ahn et al. Transformers learn to implement preconditioned gradient descent for in-context learning. NeurIPS 2023.
[4] Zhang et al. Trained transformers learn linear models in-context. JMLR 2024.
[5] Mahankali et al. One step of gradient descent is provably the optimal in-context learner with one layer of linear self-attention. ICLR 2024.
[6] Kim and Suzuki. Transformers learn nonlinear features in context: nonconvex mean-field dynamics on the attention landscape. ICML 2024.
[7] Garg et al. What can transformers learn in-context? A case study of simple function classes. NeurIPS 2022.
[8] Park et al. Can Mamba learn how to learn? A comparative study on in-context learning tasks. ICML 2024.
Dear Reviewer itrf
Thank you for taking the time to review our work and for providing such insightful and constructive feedback. We understand that you may have a busy schedule, but we wanted to follow up to ensure that our responses have sufficiently addressed your concerns. If you have any further questions or comments, we would be glad to hear them.
Thank you again for your valuable contribution to our research.
Best regards,
Authors
Thank you for the response. Since detailed clarification addressed all of my concerns, I have raised my score.
Thank you for your response. We are glad to hear that our response was helpful and resolved your concerns. If you have any further questions, please feel free to ask.
Best regards,
Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We express our gratitude for your valuable comments. In the following, we address the points raised by the reviewer.
W, Q1. Issues in the proof
We thank the reviewer for the careful reading, and the reviewer is right on these points. Fortunately, they can be corrected cleanly, and under an additional growth condition on r the feature-learning mechanism and the stated sample-complexity results are preserved. Since the submission cannot be revised now, we explain each correction directly below, and we will incorporate them in the next version. In our own careful re-examination, the points the reviewer raised turned out to be exactly the major issues; we have addressed all of them, and we additionally fixed a few minor errors that we found in the process.
Issue 1. Sign of the gating bias
We thank the reviewer for catching this. Indeed, the bias in Theorem 3.3 should read b=−Cblogd (the current version Cblogd is a typo): a large negative b makes the gate σ(w⊤z+b) small (Θ(d−Cb)) and the "forgetting" effect negligible, and all downstream estimates (Lemma B.1 / C.1, Proposition C.5) then scale as intended. With this sign corrected, the rest of the argument goes through as before, so the mechanism and result are unaffected; we have also fixed a few typos of this kind throughout the manuscript.
Issue 2. Spherical moment calculation
We thank the reviewer for pointing this out, and we acknowledge that this is the most significant issue; we have corrected it as follows. Concretely, the step is the computation of ψ(β,a)⊤(c⊙ϕ(x)) in the proof of Proposition C.5, at line 805 of the submission. There, the degree-2 block was evaluated as
This step is incorrect, since it ignores the variance of β′ and treats each β′[i]2 as the deterministic value 1/r. Using the exact spherical moments of β′, it should instead be
Collecting the constant and quadratic coefficients, with P1′=a02b0 and P2′=2(r+2)a22b2r, this can be written compactly as
where the residual is
Compared with the printed identity, both P1′ and P2′ differ from the printed constants P1 and P2 only by O(1) factors and are absorbed. The residual Q is genuinely not a function of ⟨β,x⟩. Using ∑iβ[i]4=O(1/r) for β uniform on the sphere, Var(∑iβ[i]2x[i]2)=2∑iβ[i]4=O(1/r), so ∑iβ[i]2x[i]2−1=O(r−1/2), and hence Q=O(P2′,r−5/2) with high probability.
To absorb this residual, we add to Theorem 3.3 the growth condition that r=ω((logd)Cr) for a sufficiently large constant Cr, and in the corresponding error bound we also loosen the tolerance in Lemma D.1,
This second change only loosens the tolerance in the error bound, and this looser tolerance is itself obtained by a tighter analysis in the generalization-error argument of Appendix E.2. Specifically, to obtain line 881 we do not simply apply the bound of Proposition C.5 (which the manuscript there mistakenly cites as Lemma B.1); instead we carry out a tighter analysis of this step, which shows that the coarser tolerance o(P2,r−ge(g\*)⋅polylog) still suffices for the same generalization guarantee. This is what lets the added condition on r absorb Q throughout. With both changes, Q is absorbed into the o(⋅) error of Proposition C.5, so the leading (⟨β,x⟩/r)ge(g\*) term, and hence the feature-learning mechanism and the stated sample-complexity results, are preserved.
Issue 3. From high-probability to expectation bound
We agree that this step needed justification, and we supply the missing argument here. Since the gating factors satisfy Gj,⋅(Z)∈[0,1], the output is bounded by ∣N−1Mamba∣≤∣γ∗∣∞∣ϕ(x)∣⋅N−1∑j∣yj∣,∣ϕ(xj)∣. Here ∣γ∗∣∞ is a fixed, well-bounded factor, while ϕ(x), ϕ(xj), and the labels yj are fixed-degree polynomials of Gaussian quantities: ϕ collects Hermite polynomials of degree at most two in the input, and each yj=g\*(⟨β,xj⟩)+ζj is a fixed-degree polynomial of a Gaussian plus additive noise with bounded moments. By standard Gaussian moment bounds, such polynomials have all moments finite, and the norms ∣ϕ(x)∣ and ∣ϕ(xj)∣ grow at most polynomially in d since ϕ has O(d2) coordinates; applying Hölder's inequality across the factors then bounds the fourth moment of the product, giving E[(N−1Mamba)4]≤poly(d). With E the high-probability event of Proposition C.5, E[N−2Mamba2]≤O~(1)+(E[N−4Mamba4])1/2P[E∁]1/2≤O~(1)+poly(d),d−Cwhp/2=O~(1), by Cauchy–Schwarz and P[E∁]≤d−Cwhp. This is exactly the tail and moment control that turns the high-probability bound into the required expectation bound, and we will add it. The conclusion is unchanged.
W. Comparison to Nishikawa et al. (2025)
We agree that our problem setting shares structure with Nishikawa et al. [1], namely a sequence model followed by an MLP together with layerwise pretraining. However, the first stage of our analysis requires genuinely different techniques, because the source of nonlinearity in Mamba is the gating rather than the softmax, which makes their analysis inapplicable to our setting. First, since the two nonlinearities are different, it is nontrivial to prove that the gating also reduces the information exponent to the generative exponent, and this requires arguments specific to the sigmoid gate in Proposition C.5. Second, the MLP plays a fundamentally different role in our Stage-I analysis: its nonlinearity is essential, since our input embedding uses only up-to-second-order terms and without the MLP nonlinearity the relevant Stage-I update vanishes when ie(g\*)>2, whereas the analysis of [1] operates in a regime where the MLP nonlinearity plays no role, because the softmax already generates the necessary higher-order functions of the input. We therefore handle the MLP nonlinearity with independent arguments in Lemmas B.3 and B.4, and this is exactly what yields our improved pretraining sample complexity over [1]. Thus, although the high-level setup is shared, the key technical steps are new and specific to Mamba.
Q2. Experiments for Proposition 4.1
We thank the reviewer for the suggestion. We ran this experiment with linear attention, a gating-free recurrence model, under the same setting as the base configuration in the paper.
Table. Test squared error vs. the number of in-context examples.
Without gating, the error is consistently higher than gated Mamba at every context length. Its loss also converges more slowly and plateaus well above gated Mamba, instead of continuing to decrease as Mamba does. This supports the prediction that nonlinear gating is important for the test-time feature learning of Proposition 4.1.
Q3. Beyond single-index models
We believe a broader class of tasks and data distributions can be studied. The most natural next step is the multi-index model, where the target depends on a few relevant directions rather than a single one, that is, y≈g(⟨β1,x⟩,…,⟨βk,x⟩). The main bottleneck is that the established theoretical tools differ from task to task: the information- and generative-exponent theory we rely on is specific to the single-index setting, so a different task would call for a different set of tools and, accordingly, different proof techniques.
We thank the reviewer for these points, which have improved the rigor of the paper. We hope that our response clarifies your concerns, and we would appreciate it if you could consider reassessing our submission.
Best regards,
Authors
References.
[1] Nishikawa et al. Nonlinear transformers can perform inference-time feature learning. ICML, 2025.
[2] Damian et al. Neural networks can learn representations with gradient descent. COLT, 2022.
[3] Oko et al. Pretrained Transformer efficiently learns low-dimensional target functions in-context. NeurIPS, 2024.