arXiv:2412.19350cs.LGcs.AI2024-12AAAI被引 13

提出新型状态空间模型,实现单层完美长度泛化

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

  • 用密集转移矩阵字典+软选机制构建新模型
  • 单层结构在多种正则语言任务上实现100%长度泛化
  • 适合研究模型表达能力与泛化性的研究人员

选择性状态空间模型(SSMs)是Transformer的新兴替代方案,具有并行训练和序列推理的优势。尽管在多个任务中表现良好,其形式表达能力和长度泛化性质仍不明确。本文通过分析其在正则语言任务(即有限状态自动机模拟)上的表现,深入理解选择性SSM的工作机制。针对现有架构的局限性,提出首个实现完美长度泛化的单层选择性密集状态空间模型(SD-SSM),该模型采用密集转移矩阵字典、每步通过softmax选择生成凸组合,并使用层归一化加线性映射作为读出。进一步评估对角选择性SSM在交换与非交换自动机上的表现,结合理论解释实验结果。代码已开源。

原文摘要 · Abstract (English)

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.

状态空间模型长度泛化正则语言

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。