arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.04944cs.LGcs.CLcs.CVstat.ML
收藏

结构状态空间对偶性

On Structured State-Space Duality

Center for Foundation Models and Generative AI, Northwestern University(基础模型与生成式AI中心,西北大学);Department of Computer Science, Northwestern University(计算机科学系,西北大学);Ensemble AI;University of California, San Diego(加州大学圣地亚哥分校);Department of Statistics and Data Science, Northwestern University(统计与数据科学系,西北大学)

Jerry Yao-Chieh Hu, Xiwen Zhang, Ali ElSheikh, Weimin Wu, Han Liu

AI总结:

本文探讨了结构状态空间模型与掩码注意力机制之间的对偶性,扩展了其应用范围并揭示了其在不同注意力机制中的局限性。

摘要:

结构状态空间对偶性(SSD)[Dao & Gu, ICML 2024] 是一种等价关系,将简单的结构状态空间模型(SSM)与掩码注意力机制联系起来。具体而言,具有标量乘以单位矩阵状态矩阵的状态空间模型等价于具有$1$-semiseparable因果掩码的掩码自注意力机制。因此,相同的序列转换(模型)有两种算法实现:作为线性时间$O(T)$的递归或作为二次时间$O(T^2)$的注意力。在本注释中,我们正式并推广这种对偶性:(i) 我们将SSD从标量-单位矩阵情况扩展到一般对角SSM(对角状态矩阵);(ii) 我们显示这些对角SSM匹配标量情况的训练复杂度下限,同时支持更丰富的动态;(iii) 我们建立了一个必要且充分的条件,使得SSM等价于$1$-semiseparable掩码注意力;(iv) 我们显示这种对偶性无法扩展到标准softmax注意力,因为会出现秩爆炸。这些结果加强了循环SSM与Transformer之间的桥梁,并扩大了表达力强且高效的序列模型的设计空间。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑