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

Flash PD-SSM: 一种内存优化的结构稀疏状态空间模型

Flash PD-SSM: Memory-Optimized Structured Sparse State-Space Models

IBM Research – Zurich(IBM瑞士研究中心);Department of Computer Science, ETH Zürich(苏黎世联邦理工学院计算机科学系)

Aleksandar Terzić, Francesco Carzaniga, Nicolas Menet, Yannick Biehl, Michael Hersche, Thomas Hofmann, Abbas Rahimi

AI总结:

本文提出Flash PD-SSM,一种内存优化的结构稀疏状态空间模型,通过在保持高效的同时提升表达能力,实现了与传统结构化状态空间模型相当的吞吐量,并在多个任务中展示了更高的准确性和效率。

摘要:

状态空间模型(SSMs)面临效率与表达能力之间的根本权衡,这主要由模型转移矩阵的结构决定。无结构的转移矩阵具有最大的表达能力,但计算和内存成本过高。相比之下,大多数结构化转移矩阵形式在运行时间和内存消耗上都非常高效,但表达能力有限。基于最近关于结构稀疏SSMs的研究,我们提出了Flash PD-SSM,一种新的SSM,其吞吐量与广泛使用的结构化SSMs相当,但具有显著更好的表达性保证。Flash PD-SSM维护一个可训练的结构稀疏矩阵集合,在每个时间步选择其中一个进行离散选择,从而在保持大规模训练所需的效率的同时,实现了与无结构矩阵相当的FSA表达能力。首先,我们在合成机制和状态跟踪任务上验证了Flash PD-SSM,发现其理论表达能力在实践中得以实现。其次,在涉及超过17000长度序列的多变量时间序列任务中,我们发现Flash PD-SSM在竞争性的SSM方法中定义了新的最先进的(SoTA)准确性。最后,我们展示了Flash PD-SSM是混合LLMs的有效替代品,在自然语言状态跟踪和常见语言建模场景中均取得改进。该模型相比前沿语言模型广泛使用的SSMs表现出更高的吞吐量和更低的内存消耗。

英文摘要:

State-space models (SSMs) face a fundamental trade-off between efficiency and expressivity that is mainly dictated by the structure of the model's transition matrix. Unstructured transition matrices enable maximal expressivity, as measured by their ability to model finite-state automaton (FSA) transitions, but come at a prohibitively high compute and memory cost. In contrast, most structured transition matrix forms are highly efficient both in runtime and memory consumption, but suffer from limited expressivity. Building on recent work on structured sparse SSMs, we propose PD-SSM, a novel SSM that achieves comparable throughput to widely-used structured SSMs with significantly better expressivity guarantees. PD-SSM maintains a trainable set of structured sparse matrices, a single one of which is discretely selected at each time-step, enabling FSA expressiveness at the level of unstructured matrices while maintaining the efficiency required for training models at scale. First, we validate PD-SSM against a suite of alternative models on synthetic mechanistic and state-tracking tasks, finding that its theoretical expressivity is achieved in practice. Second, on multivariate time-series tasks involving sequences of length over 17,000, we find that PD-SSM defines a new state-of-the-art (SoTA) accuracy among competing SSM methods. Finally, we demonstrate that PD-SSM is an effective drop-in replacement for hybrid LLMs, yielding improvements both in natural language state-tracking and in common language modeling scenarios. Up to 3B parameters, its training speed matches that of widely used SSMs, with less memory than DeltaNet and Gated DeltaNet. Code is available at https://github.com/IBM/flash-pdssm.

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

↑