arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.29069cs.LGcs.AI
收藏

关于长距离依赖的幻象,及其在整数乘法中的应用

On the Mirage of Long-Range Dependency, with an Application to Integer Multiplication

Saarland University(萨尔大学)

Zichao Wei

AI总结:

本文指出整数乘法的困难并非源于长距离依赖,而是由计算时空的选择产生。通过2D外积网格表示,证明长乘法可局部化,且神经元细胞自动机在仅321个参数下实现长度泛化。

摘要:

整数乘法长期以来被认为对神经网络困难,其难度常归因于由进位链引起的O(n)长距离依赖。本文认为这一诊断错误:长距离依赖并非乘法的固有属性,而是由计算时空的选择产生的幻象。我们正式化了幻象的概念,并提供构造性证明:当两个n位二进制整数以2D外积网格布局时,长乘法的每一步都坍缩为一个3×3的局部邻域操作。在该表示下,仅需321个可学习参数的神经元细胞自动机可实现完美长度泛化,达到训练范围的683倍。五种替代架构,包括Transformer(6,625参数)、Transformer+RoPE和Mamba,均在相同表示下失败。我们进一步分析了部分成功如何将社区锁定在错误的诊断中,并论证任何被诊断为需要长距离依赖的任务,首先应检查该依赖是否固有于任务本身,还是由计算时空引起。

英文摘要:

Integer multiplication has long been considered a hard problem for neural networks, with the difficulty widely attributed to the O(n) long-range dependency induced by carry chains. We argue that this diagnosis is wrong: long-range dependency is not an intrinsic property of multiplication, but a mirage produced by the choice of computational spacetime. We formalize the notion of mirage and provide a constructive proof: when two n-bit binary integers are laid out as a 2D outer-product grid, every step of long multiplication collapses into a $3 \times 3$ local neighborhood operation. Under this representation, a neural cellular automaton with only 321 learnable parameters achieves perfect length generalization up to $683\times$ the training range. Five alternative architectures -- including Transformer (6,625 params), Transformer+RoPE, and Mamba -- all fail under the same representation. We further analyze how partial successes locked the community into an incorrect diagnosis, and argue that any task diagnosed as requiring long-range dependency should first be examined for whether the dependency is intrinsic to the task or induced by the computational spacetime.

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

↑