arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.01870cs.AIcond-mat.dis-nnmath-phmath.MPmath.NT
收藏

在根树的算术序列上测试Transformer的可学习性

Testing Transformer Learnability on the Arithmetic Sequence of Rooted Trees

University of Bologna(博洛尼亚大学);University of Florence(佛罗伦萨大学);UCL(伦敦大学学院)

Alessandro Breccia, Federica Gerace, Marco Lippi, Gabriele Sicuro, Pierluigi Contucci

AI总结:

该研究探讨了Transformer模型在根树算术序列上的学习能力,发现模型能部分捕捉序列的内部规律和相关性,表明可学习性可能延伸至算术结构本身。

摘要:

我们研究大型语言模型是否能学习由自然数的迭代质因数分解生成的确定性树序列。每个整数被映射到一个根平面树,所得到的序列$\mathbb{N}\mathcal{T}$定义了一个具有可测量统计结构的算术文本。一个变换器网络(GPT-2架构)从头开始训练于前$10^{11}$个元素,随后在下一个词和掩码词预测任务中测试其预测能力。我们的结果表明,模型部分学习了$\mathbb{N}\mathcal{T}$的内部语法,捕捉到非平凡的规律和相关性。这表明可学习性可能超越经验数据,延伸到算术的非常结构。

英文摘要:

We study whether a transformer network can learn the deterministic sequence of trees generated by the iterated prime factorization of the natural numbers. Each integer is mapped into a rooted planar tree and the resulting sequence $\mathbb{N}\mathscr{T}$ defines an arithmetic text with measurable statistical structure. A transformer network (the GPT-2 architecture) is trained from scratch on the first $10^{11}$ elements and evaluated on next-token prediction and masked-token prediction tasks, with a Hidden Markov Model as baseline and a scaling analysis over context window, dataset size, vocabulary size and model size. The model reaches a word accuracy of about $0.4$, well above the baseline, and its performance remains stable on test blocks located at $10^{13}$-$10^{15}$, far beyond the training interval. Moreover, the likelihood assigned by the trained model separates the arithmetic text from two controls: synthetic token sequences that preserve the marginal token frequencies but not their order, with a separation that widens with the context, and sequences containing more than three consecutive square-free integers, a configuration that arithmetic forbids. These results indicate that the transformer captures regularities of the arithmetic text that go beyond its frequency profile.

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

↑