On Structured State-Space Duality
Jerry Yao-Chieh Hu, Xiwen Zhang, Ali ElSheikh, Weimin Wu, Han Liu
TL;DR
This work extends Structured State-Space Duality (SSD) beyond scalar-identity SSMs to general diagonal SSMs, showing that diagonal dynamics can be represented as sums of 1-SS masked-attention components while preserving the same $O(TN)$ training and inference complexity as prior SSD formulations. It provides a constructive, necessary-and-sufficient condition for when an SSM has a $1$-semiseparable masked-attention dual and proves that the SSD framework cannot extend to standard softmax attention due to rank explosion. The results broaden the theoretical link between recurrent SSMs and Transformer-like attention, offering new architectures that blend linear-time computation with richer dynamics, while clearly delineating the limits of SSD. Thorough numerical validations corroborate the diagonal SSM vs. sum-of-heads 1-SS attention equivalence, the rank-behavior of semiseparable kernels, and the non-extensibility to softmax.
Abstract
Structured State-Space Duality (SSD) [Dao & Gu, ICML 2024] is an equivalence between a simple Structured State-Space Model (SSM) and a masked attention mechanism. In particular, a state-space model with a scalar-times-identity state matrix is equivalent to a masked self-attention with a $1$-semiseparable causal mask. Consequently, the same sequence transformation (model) has two algorithmic realizations: as a linear-time $O(T)$ recurrence or as a quadratic-time $O(T^2)$ attention. In this note, we formalize and generalize this duality: (i) we extend SSD from the scalar-identity case to general diagonal SSMs (diagonal state matrices); (ii) we show that these diagonal SSMs match the scalar case's training complexity lower bounds while supporting richer dynamics; (iii) we establish a necessary and sufficient condition under which an SSM is equivalent to $1$-semiseparable masked attention; and (iv) we show that such duality fails to extend to standard softmax attention due to rank explosion. Together, these results tighten bridge between recurrent SSMs and Transformers, and widen the design space for expressive yet efficient sequence models.
