Flash PD-SSM:内存优化的结构化稀疏状态空间模型
Flash PD-SSM: Memory-Optimized Structured Sparse State-Space Models
PD-SSM 是一种结构化稀疏状态空间模型(SSM),通过维护一组可训练的结构化稀疏矩阵并在每个时间步离散选择其一,在保持与常用结构化 SSM 相当吞吐量的同时获得接近无结构矩阵的有限状态自动机(FSA)表达能力。
arXiv:2605.19150v2 Announce Type: replace Abstract: 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org