# Where Should a Gate Look? Input vs. State Gating in Diagonal State Space Models

DevFeed: [Where Should a Gate Look? Input vs. State Gating in Diagonal State Space Models](<https://devfeed.tech/articles/where-should-a-gate-look-input-vs-state-gating-in-diagonal-state-space-models-125362.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.11336>)

Author: Riccardo Zattra, Giacomo Baggio, Leonardo De Marchi, Augusto Ferrante, Francesco Ticozzi, Marco Del Pr\\\`a, Antonio Orvieto

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Mamba](<https://devfeed.tech/topics/mamba.md>), [Model Development](<https://devfeed.tech/topics/model-development.md>)

Tags: [context](<https://devfeed.tech/tags/context.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [gate](<https://devfeed.tech/tags/gate.md>), [induction](<https://devfeed.tech/tags/induction.md>), [input](<https://devfeed.tech/tags/input.md>), [linear](<https://devfeed.tech/tags/linear.md>), [memory](<https://devfeed.tech/tags/memory.md>), [networks](<https://devfeed.tech/tags/networks.md>), [neural-networks](<https://devfeed.tech/tags/neural-networks.md>), [performance](<https://devfeed.tech/tags/performance.md>), [recurrent](<https://devfeed.tech/tags/recurrent.md>), [recurrent-neural-networks](<https://devfeed.tech/tags/recurrent-neural-networks.md>), [results](<https://devfeed.tech/tags/results.md>), [scalar](<https://devfeed.tech/tags/scalar.md>), [sequence](<https://devfeed.tech/tags/sequence.md>), [state](<https://devfeed.tech/tags/state.md>), [state-space-models](<https://devfeed.tech/tags/state-space-models.md>), [tasks](<https://devfeed.tech/tags/tasks.md>)

## AI overview

The paper compares memory-update gates driven by current input, recurrent state, or both in diagonal state-space models. For scalar models, it establishes that state gating solves induction-head tasks for arbitrary vocabulary sizes and sequence lengths, while input gating fails on a finite instance under standard stability assumptions on the state transition matrix. Experiments in higher-dimensional models retain state gating's advantage on induction tasks, while input gating performs better on selective copying. The results indicate complementary strengths, with the strongest overall performance when both gate types are combined.

## Source excerpt

arXiv:2611.11336v1 Announce Type: new Abstract: Modern state-space models owe much of their computational efficiency to their linear, often diagonal, dynamics. Classical recurrent neural networks instead allow nonlinear state-to-state interactions, which can be beneficial when memory updates need to depend on the past context. In this paper, we ask whether state feedback through a simple gate regulating memory updates can enhance the expressivity of diagonal state-space models. To investigate this question, we compare gates that depend on the current input, the recurrent state, or both. We establish a strict expressivity separation: for scalar models, state gating solves induction-head tasks for arbitrary vocabulary size and sequence length, whereas input gating fails on a finite instance under standard stability assumptions on the state transition matrix. Experiments show that state gating retains its advantage on induction-head tasks in higher-dimensional models, whereas input gating performs better on selective copying tasks. Together, our results show that even a simple, diagonal form of state-feedback gating can unlock capabilities unavailable to input-controlled models, while input and state gating offer complementary strengths and achieve the strongest overall performance when combined.