arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.14027cs.LGcs.AI
收藏

基于上下文的选择性状态空间模型:反馈就是一切

Context-Selective State Space Models: Feedback is All You Need

Department of Information Engineering University of Padova(信息工程系帕多瓦大学)

Riccardo Zattra, Giacomo Baggio, Umberto Casti, Augusto Ferrante, Francesco Ticozzi

AI总结:

COFFEE通过引入状态反馈机制,实现基于上下文的选择性状态空间模型,显著提升了长距离依赖捕捉能力,参数效率高,适用于序列建模任务。

摘要:

Transformer模型凭借注意力机制成为大多数基础模型的骨干,但它们存在二次复杂度且难以处理输入序列中的长距离依赖关系。最近的研究表明,状态空间模型(SSMs)提供了一个有前途的替代方案。在本文中,我们引入了COFFEE(COntext From FEEdback)模型,一种新颖的时间变化SSM,它通过引入状态反馈来实现上下文依赖的选择性,同时仍允许并行实现。这一想法使模型能够根据内部状态描述的上下文来调节其动态,这体现了输入历史的紧凑表示。状态反馈使COFFEE能够提高其捕捉长距离依赖关系的能力:在归纳头部任务中,它在参数和训练序列数量上比S6(Mamba的SSM)减少两个数量级的情况下仍能实现接近完美的准确性。在MNIST数据集上,COFFEE在相同架构下大幅超越S6,仅使用3585个参数即可达到97%的准确率。这些结果展示了状态反馈作为构建可扩展和高效序列模型的关键机制的作用。

英文摘要:

Transformers, powered by the attention mechanism, are the backbone of most foundation models, yet they suffer from quadratic complexity and difficulties in dealing with long-range dependencies in the input sequence. Recent work has shown that state space models (SSMs) provide a promising alternative. In this paper, we introduce the COFFEE (COntext From FEEdback) model, a novel time-varying SSM that incorporates state feedback to enable context-dependent selectivity, while still allowing for parallel implementation. This idea allows the model to regulate its dynamics based on the context described by the internal state, which embodies a compact representation of the input history. State feedback allows COFFEE to improve its ability to capture long-range dependencies: on the induction head task, it achieves near-perfect accuracy with two orders of magnitude fewer parameters and training sequences compared to S6 (the SSM of Mamba). On MNIST, COFFEE largely outperforms S6 within the same architecture, reaching 97% accuracy with only 3585 parameters. These results showcase the role of state feedback as a key mechanism for building scalable and efficient sequence models.

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

↑