On Structured State-Space Duality
Abstract
Lay Summary
Modern AI models often process sequences, such as text, audio, and time series. Two common designs do this in different ways. Recurrent models carry a small memory from one step to the next. Attention models compare positions across a sequence. The first design is efficient. The second design is expressive, but often more costly. This paper studies when these two designs compute the same rule. We extend a known equivalence from a simple state-space model to a richer diagonal state-space model. This richer model can track several time scales at once. It also keeps the same main efficiency as the simpler model. We further give an exact condition for when a recurrent model has a masked-attention form. We also show a sharp limit. Standard softmax attention usually cannot be rewritten exactly as a finite recurrent model. These results clarify the relation between state-space models and attention. They also suggest how to design sequence models that are both expressive and efficient.