arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.14826cs.LG
收藏

至无限与超越:工具使用解锁状态空间模型中的长度泛化

To Infinity and Beyond: Tool-Use Unlocks Length Generalization in State Space Models

Apple(苹果公司)

Eran Malach, Omid Saremi, Sinead Williamson, Arwen Bradley, Aryo Lotfi, Emmanuel Abbe, Josh Susskind, Etai Littwin

AI总结:

本研究证明状态空间模型在长形式生成上存在理论局限,但通过交互式工具访问和问题相关训练数据,可学习解决任意可处理问题并实现长度泛化,在算术、推理和编码任务上表现优异。

摘要:

状态空间模型(SSMs)已成为序列建模中Transformer的主要替代方案。其主要优势在于通过固定大小的记忆和计算复杂度的线性扩展,在长上下文和长形式生成中实现高效性。我们首先展示一个简单的理论结果,指出SSMs无法准确解决任何“真正长形式”的生成问题(我们对此进行了正式定义),这削弱了其主要的竞争优势。然而,我们表明这种限制可以通过允许SSMs交互式访问外部工具来缓解。事实上,我们证明,在正确的工具访问选择和问题相关的训练数据下,SSMs可以学习解决任何可处理的问题,并泛化到任意长度/复杂度的问题(即实现长度泛化)。基于我们的理论发现,我们展示了工具增强的SSMs在各种算术、推理和编码任务上实现了显著的长度泛化。这些发现凸显了SSMs在基于交互式工具和智能体环境中作为Transformer的潜在高效替代方案。

英文摘要:

State Space Models (SSMs) have become the leading alternative to Transformers for sequence modeling. Their primary advantage is efficiency in long-context and long-form generation, enabled by fixed-size memory and linear scaling of computational complexity. We begin this work by showing a simple theoretical result stating that SSMs cannot accurately solve any ``truly long-form'' generation problem (in a sense we formally define), undermining their main competitive advantage. However, we show that this limitation can be mitigated by allowing SSMs interactive access to external tools. In fact, we show that given the right choice of tool access and problem-dependent training data, SSMs can learn to solve any tractable problem and generalize to arbitrary problem length/complexity (i.e., achieve length generalization). Following our theoretical finding, we demonstrate that tool-augmented SSMs achieve remarkable length generalization on a variety of arithmetic, reasoning, and coding tasks. These findings highlight SSMs as a potential efficient alternative to Transformers in interactive tool-based and agentic settings.

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

↑