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

状态空间模型中状态的错觉

The Illusion of State in State-Space Models

New York University(纽约大学);Allen Institute for AI(艾伦人工智能研究所)

William Merrill, Jackson Petty, Ashish Sabharwal

AI总结:

研究表明,尽管状态空间模型(SSMs)架构类似RNN,但其表达能力与transformers同样受限,无法表达复杂类$\mathsf{TC}^0$之外的计算,在状态追踪任务上存在根本性缺陷。

摘要:

与此前无处不在的transformer架构相比,状态空间模型(SSMs)已成为构建大型语言模型(LLMs)的一种潜在替代架构。transformers的一个理论弱点是它们无法表达某些类型的顺序计算和状态追踪(Merrill & Sabharwal, 2023),而SSMs则通过其与循环神经网络(RNNs)密切的架构相似性被明确设计来解决这一问题。但是,在状态追踪的表达能力方面,SSMs是否真的(比transformers)具有优势呢?令人惊讶的是,答案是否定的。我们的分析表明,SSMs的表达能力限制与transformers非常相似:SSMs无法表达复杂类 $\mathsf{TC}^0$ 之外的计算。具体而言,这意味着它们无法解决诸如排列组合等简单的状态追踪问题。由此可知,可证明SSMs无法准确追踪特定记法的国际象棋走子、评估代码或追踪长篇叙事中的实体。作为形式化分析的补充,我们报告的实验表明,Mamba风格的SSMs确实在状态追踪上存在困难。因此,尽管SSMs采用了循环的表述形式,其所谓的“状态”只是一种错觉:SSMs与transformers等非循环模型具有相似的表达能力限制,这可能从根本上限制了它们解决现实世界状态追踪问题的能力。

英文摘要:

State-space models (SSMs) have emerged as a potential alternative architecture for building large language models (LLMs) compared to the previously ubiquitous transformer architecture. One theoretical weakness of transformers is that they cannot express certain kinds of sequential computation and state tracking (Merrill & Sabharwal, 2023), which SSMs are explicitly designed to address via their close architectural similarity to recurrent neural networks (RNNs). But do SSMs truly have an advantage (over transformers) in expressive power for state tracking? Surprisingly, the answer is no. Our analysis reveals that the expressive power of SSMs is limited very similarly to transformers: SSMs cannot express computation outside the complexity class $\mathsf{TC}^0$. In particular, this means they cannot solve simple state-tracking problems like permutation composition. It follows that SSMs are provably unable to accurately track chess moves with certain notation, evaluate code, or track entities in a long narrative. To supplement our formal analysis, we report experiments showing that Mamba-style SSMs indeed struggle with state tracking. Thus, despite its recurrent formulation, the "state" in an SSM is an illusion: SSMs have similar expressiveness limitations to non-recurrent models like transformers, which may fundamentally limit their ability to solve real-world state-tracking problems.

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

↑