arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.19350cs.LGcs.AIcs.CL
收藏

选择性状态空间模型在正则语言上的表达力与长度泛化性研究

On the Expressiveness and Length Generalization of Selective State-Space Models on Regular Languages

Aleksandar Terzić, Michael Hersche, Giacomo Camposampiero, Thomas Hofmann, Abu Sebastian, Abbas Rahimi

AI总结:

本文提出选择性稠密状态空间模型(SD-SSM),通过稠密转移矩阵字典和softmax选择机制,首次实现单层选择性SSM在多种正则语言任务上的完美长度泛化,并系统评估了对角选择性SSM变体在交换与非交换自动机上的表现。

摘要:

选择性状态空间模型(SSMs)是Transformer的一种新兴替代方案,具有并行训练和顺序推理的独特优势。尽管这些模型在多种任务上表现出良好性能,但其形式化表达力和长度泛化性质仍未得到充分探索。本文通过分析选择性SSM在正则语言任务(即有限状态自动机(FSA)仿真)上的表达力和长度泛化性能,深入揭示其工作机制。我们针对现代基于SSM架构的某些局限性,提出了选择性稠密状态空间模型(SD-SSM),这是首个在多种正则语言任务上使用单层即可实现完美长度泛化的选择性SSM。该模型采用稠密转移矩阵字典、在每个时间步通过softmax选择机制生成字典矩阵的凸组合,以及由层归一化和线性映射组成的读出层。随后,我们通过考察对角选择性SSM变体在交换与非交换自动机上的经验性能进行评估,并结合理论分析解释实验结果。代码可在 https://github.com/IBM/selective-dense-state-space-model 获取。

英文摘要:

Selective state-space models (SSMs) are an emerging alternative to the Transformer, offering the unique advantage of parallel training and sequential inference. Although these models have shown promising performance on a variety of tasks, their formal expressiveness and length generalization properties remain underexplored. In this work, we provide insight into the workings of selective SSMs by analyzing their expressiveness and length generalization performance on regular language tasks, i.e., finite-state automaton (FSA) emulation. We address certain limitations of modern SSM-based architectures by introducing the Selective Dense State-Space Model (SD-SSM), the first selective SSM that exhibits perfect length generalization on a set of various regular language tasks using a single layer. It utilizes a dictionary of dense transition matrices, a softmax selection mechanism that creates a convex combination of dictionary matrices at each time step, and a readout consisting of layer normalization followed by a linear map. We then proceed to evaluate variants of diagonal selective SSMs by considering their empirical performance on commutative and non-commutative automata. We explain the experimental results with theoretical considerations. Our code is available at https://github.com/IBM/selective-dense-state-space-model.

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

↑