arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.17534cs.LG
收藏

SMR:面向长序列建模的状态记忆回放

SMR: State Memory Replay for Long Sequence Modeling

Harbin Institute of Technology(哈尔滨工业大学);Tsinghua University(清华大学)

Biqing Qi, Junqi Gao, Kaiyan Zhang, Dong Li, Jianxing Liu, Ligang Wu, Bowen Zhou

AI总结:

针对状态空间模型在非均匀采样下因递归结构难以并行卷积计算及隐藏状态发散的问题,本文提出即插即用的状态记忆回放机制SMR,利用可学习记忆调整状态,实现采样步长自适应,并在多个长程建模任务上验证其有效性。

摘要:

尽管状态空间模型(SSMs)在长序列建模中表现出良好性能,但仍存在局限性。先进的SSMs如S5和S6(Mamba)在处理非均匀采样时,其递归结构阻碍了通过卷积进行高效的SSM计算。为克服并行卷积计算中的兼容性限制,本文提出了一种新颖的非递归非均匀样本处理策略。通过事件触发控制(ETC)理论视角对SSMs进行理论分析,揭示了非稳定状态(NSS)问题,即偏离采样点要求会导致误差传递和累积,从而引起SSM隐藏状态发散。我们的分析进一步表明,利用早期记忆调整输入序列可以缓解NSS问题,实现采样步长自适应(SSA)。基于这一见解,我们引入了一种简单而有效的即插即用机制——状态记忆回放(SMR),该机制利用可学习记忆结合多步信息调整当前状态,以在与训练数据不同的采样点上实现泛化。这使SSMs能够稳定地对变化的采样点进行建模。在自回归语言建模和Long Range Arena中的长程建模任务上的实验表明,SMR机制对一系列SSM模型具有普遍有效性。

英文摘要:

Despite the promising performance of state space models (SSMs) in long sequence modeling, limitations still exist. Advanced SSMs like S5 and S6 (Mamba) in addressing non-uniform sampling, their recursive structures impede efficient SSM computation via convolution. To overcome compatibility limitations in parallel convolutional computation, this paper proposes a novel non-recursive non-uniform sample processing strategy. Theoretical analysis of SSMs through the lens of Event-Triggered Control (ETC) theory reveals the Non-Stable State (NSS) problem, where deviations from sampling point requirements lead to error transmission and accumulation, causing the divergence of the SSM's hidden state. Our analysis further reveals that adjustments of input sequences with early memories can mitigate the NSS problem, achieving Sampling Step Adaptation (SSA). Building on this insight, we introduce a simple yet effective plug-and-play mechanism, State Memory Replay (SMR), which utilizes learnable memories to adjust the current state with multi-step information for generalization at sampling points different from those in the training data. This enables SSMs to stably model varying sampling points. Experiments on long-range modeling tasks in autoregressive language modeling and Long Range Arena demonstrate the general effectiveness of the SMR mechanism for a series of SSM models.

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

↑