arXiv:2509.22284cs.AIcs.LG2025-09NeurIPS被引 14

提出稀疏结构化转移矩阵,让状态空间模型高效追踪有限状态自动机。

Structured Sparse Transition Matrices to Enable State Tracking in State-Space Models

  • 用P和D矩阵乘积构造稀疏结构化转移矩阵,计算开销近似对角SSM。
  • 单层即可模拟任意N状态有限状态自动机,理论保证最优表达能力。
  • 适用于需要精准状态追踪的任务,如自然语言编码的复杂状态机。

现代状态空间模型(SSMs)通常使用转移矩阵实现高效计算,但限制了模型表达能力,尤其在模拟有限状态自动机(FSA)方面。无结构的转移矩阵虽具最佳表达力,但中等状态规模下计算与内存成本过高。本文提出一种结构化稀疏参数化方法——PD-SSM,将转移矩阵表示为列一热矩阵(P)与复数对角矩阵(D)的乘积,使并行扫描的计算开销随状态规模线性增长。理论上,该模型具备BIBO稳定性,可仅用一层维度为N、线性读出为N×N的网络模拟任意N状态FSA,显著优于现有结构化SSM的理论上限。实验表明,其在多种FSA状态追踪任务中显著超越多个现代SSM变体;在多分类时间序列任务上表现媲美神经控制微分方程。进一步将PD-SSM融入混合Transformer-SSM架构,成功实现了对由可变长度英文句子编码的复杂FSA的状态追踪。代码已开源。

原文摘要 · Abstract (English)

Modern state-space models (SSMs) often utilize transition matrices which enable efficient computation but pose restrictions on the model's expressivity, as measured in terms of the ability to emulate finite-state automata (FSA). While unstructured transition matrices are optimal in terms of expressivity, they come at a prohibitively high compute and memory cost even for moderate state sizes. We propose a structured sparse parametrization of transition matrices in SSMs that enables FSA state tracking with optimal state size and depth, while keeping the computational cost of the recurrence comparable to that of diagonal SSMs. Our method, PD-SSM, parametrizes the transition matrix as the product of a column one-hot matrix ($P$) and a complex-valued diagonal matrix ($D$). Consequently, the computational cost of parallel scans scales linearly with the state size. Theoretically, the model is BIBO-stable and can emulate any $N$-state FSA with one layer of dimension $N$ and a linear readout of size $N \times N$, significantly improving on all current structured SSM guarantees. Experimentally, the model significantly outperforms a wide collection of modern SSM variants on various FSA state tracking tasks. On multiclass time-series classification, the performance is comparable to that of neural controlled differential equations, a paradigm explicitly built for time-series analysis. Finally, we integrate PD-SSM into a hybrid Transformer-SSM architecture and demonstrate that the model can effectively track the states of a complex FSA in which transitions are encoded as a set of variable-length English sentences. The code is available at https://github.com/IBM/expressive-sparse-state-space-model

状态空间模型有限状态机稀疏结构高效计算

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