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

UNDO Flip-Flop:一种用于状态空间模型中可逆语义状态管理的受控探针

The UNDO Flip-Flop: A Controlled Probe for Reversible Semantic State Management in State Space Model

Erasmus Mundus Language and Communication Technologies(伊拉斯谟世界语言与通信技术);Saarland University(萨尔大学)

Hongxu Zhou

AI总结:

本文提出UNDO Flip-Flop任务,通过扩展标准Flip-Flop任务,要求模型维护隐式有界栈并在非单调更新序列中恢复历史状态。实验显示,Mamba-2模型无法有效实现可逆回滚机制,反而采用局部切换启发式方法,结果表明理论表达性与梯度下降学习能力存在系统性差异。

摘要:

状态空间模型(SSMs)已被证明具有理论能力,可以建模无星连续任务和有界层次结构(Sarrof et al., 2024)。然而,形式表达性结果并不能保证基于梯度的优化方法能可靠地发现相应解。现有基准测试要么探测单调状态跟踪(如标准Flip-Flop任务),要么探测结构性嵌套(如Dyck语言),但两者都无法隔离可逆语义状态检索。我们引入UNDO Flip-Flop任务以填补这一空白。通过在标准Flip-Flop中加入UNDO,该任务要求模型维护隐式有界栈并在非单调更新序列中恢复历史状态。我们在此框架下评估了一层和两层Mamba-2模型。两种变体均无法获得可证明表达的基于栈的回滚机制,而是收敛到局部切换启发式方法,即翻转当前状态而非检索存储的历史。在训练长度分布内的对抗性回退压力测试中,两层模型准确率降至41.10%,低于随机猜测水平。结果证实了系统性而非偶然性失败。因果消融显示瓶颈在于检索,而非存储。这些结果在原则上区分了架构能表示什么和梯度下降能可靠学习什么,这一区别仅凭理论表达性分析无法捕捉。

英文摘要:

State space models (SSMs) have been shown to possess the theoretical capacity to model both star-free sequential tasks and bounded hierarchical structures Sarrof et al. (2024). However, formal expressivity results do not guarantee that gradient-based optimisation will reliably discover the corresponding solutions. Existing benchmarks probe either monotonic state tracking, as in the standard Flip-Flop task, or structural nesting, as in the Dyck languages, but neither isolates reversible semantic state retrieval. We introduce the UNDO Flip-Flop task to fill this gap. By extending the standard Flip-Flop with an UNDO, the task requires a model to maintain an implicit bounded stack and recover historical states under non-monotonic update sequences. We evaluate one-layer and two-layer Mamba-2 under this framework. Both variants fail to acquire the provably expressible stack-based rollback mechanism, converging instead on a local toggle heuristic that inverts the current state rather than retrieving stored history. Under an adversarial retraction pressure test held within the training length distribution, the two-layer model collapses to 41.10% accuracy, which is below random chance. The results confirm systematic rather than incidental failure. Causal ablation shows that the bottleneck lies in retrieval, not storage. These results draw a clear line between what an architecture can in principle represent and what gradient descent reliably learns, a distinction that theoretical expressivity analyses alone cannot capture.

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

↑