Apple Study Examines Why Gated State Space Models Struggle to Learn in Context

A paper published by Apple examines how gating affects State Space Models, finding that it can steer them toward memorization in model weights and delay or prevent correct in-context learning. The researchers also find that gating can improve generalization to longer sequences.
- Apple published a NeurIPS paper on gating in State Space Models.
- The study finds gating can favor in-weights memorization before in-context learning.
- Gating may delay or prevent correct in-context learning even without architectural memory limits.
- The mechanism can also improve generalization to long sequence lengths.
- The findings aim to support improvements to linear-time models.
Gating shapes how SSMs learn
The paper, titled On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models, studies why State Space Models, or SSMs, continue to trail Transformers on tasks involving in-context learning and precise retrieval. Apple published the research in November 2026 under its Methods and Algorithms and Speech and Natural Language Processing research areas. It was presented at NeurIPS.
SSMs are used for sequence modeling and offer constant memory and linear compute, according to the paper. Those characteristics make them a compelling alternative to Transformers, but their weaker performance on some language tasks has slowed their adoption for large-scale language modeling.
The authors focus on gating, a mechanism commonly used in modern recurrent networks. Through theory and experiments, they report that gating leads SSMs to first learn an in-weights memorization solution. This can delay, or in some cases prevent, convergence to a correct in-context learning solution.
The problem is not always architecture or memory
The researchers say this behavior appears even when the model architecture and its memory capacity do not create a fundamental barrier to solving the task. That finding shifts attention from the basic capacity of SSMs to the way gating influences their training dynamics.
In practical terms, the distinction concerns how a model uses information. A memorization solution stores an answer in the model's weights during training, while an in-context learning solution uses information supplied within the sequence. The paper's results suggest that a gated SSM may favor the first route before reaching the second, even when the second is possible in principle.
Apple's researchers describe the findings as a way to explain both the successes and failures of SSMs in settings that require retrieval and learning from context. The author list includes William L. Tong, Aryo Lotfi, Emmanuel Abbe, Kostas Vaggelakos, Vishnu Banna, Etai Littwin, Josh Susskind, Cengiz Pehlevan and Eran Malach. The paper identifies Harvard University for Tong and Pehlevan, and notes that Tong's work was completed while at Apple.
A trade-off for long-sequence generalization
Gating is not presented as purely harmful. The study finds that it is often beneficial for generalization to long sequence lengths. This creates a trade-off: the same mechanism that may make it harder for an SSM to converge on an in-context learning solution can also help it handle longer sequences beyond those seen during training.
The authors say their results clarify the role of gating in both training and generalization, providing a basis for understanding and improving linear-time models. For researchers developing alternatives to Transformers, the work points to gating as a design and optimization factor that can affect retrieval, in-context learning and long-sequence behavior. The paper does not announce a product or a model release, but offers theoretical and experimental findings that could guide future work on SSMs.


