---
title: "Gating"
description: "1 posts about Gating, summarised, each linking to the original."
---

# Gating
> 1 posts about Gating, summarised, each linking to the original.

## Articles

### [On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models](https://yomu.fyi/post/on-the-importance-of-gating-memorization-vs-in-context-learning-in-sta.md)
- Company: [Apple](https://yomu.fyi/company/apple.md)
- Published: Nov 10, 2026
- Type: Explainer

State Space Models (SSMs) offer constant memory and linear compute as an alternative to Transformers but lag on in-context learning and precise retrieval tasks. This work shows that the gating mechanism, common in modern recurrent networks, explains both the success and failure of SSMs in these domains. Through theory and experiments, the authors demonstrate that gating causes SSMs to first learn an in-weights memorization solution while delaying or preventing convergence to a correct in-context learning solution. This occurs even when the architecture has no fundamental limitations in memory capacity. However, gating is often beneficial for improving generalization to long sequence lengths, illuminating its crucial role in shaping training dynamics and generalization.
