Where Should a Gate Look? Input vs. State Gating in Diagonal State Space Models
Riccardo Zattra, Giacomo Baggio, Leonardo De Marchi, Augusto Ferrante, Francesco Ticozzi, Marco Del Prà, Antonio Orvieto
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.
Create a lesson
Related papers
MambaPD: Bidirectional Selective State Space Model for Parkinson's Disease Detection from Resting-State EEG
Shared title terminology · Ayesha Zulfiqar
NANO: Unifying Missingness and Input Uncertainty in Tabular Learning
Shared title terminology · Kuangdai Leng, Maria Tsekhmistrenko, Matteo Bagagli et al.
State of Mind: Learning and Evaluating World Models of Naturalistic Brain Dynamics
Shared title terminology · Yuxiang Wei, Zundong Wu, Weiyu Sun et al.
Where Does Alignment Emerge and What Does It Mean? A Closer Look at the Platonic Representation Hypothesis
Shared title terminology · Julia Herbst, Simon Roschmann, Quentin Bouniot et al.
Do Time-Series Foundation Models Forecast Index-Futures Returns? A Preregistered Evaluation of Models, Metrics, and Input Representations
Shared title terminology · Rishabh Upadhyay
Translating KV Caches Between Hybrid-Attention Language Models: MLA Latents, Linear-Attention States and Sparse-Attention Indexers
Shared title terminology · Povilas Kvedaras, Tomas Rasymas