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

使用 Transformers 学习初等元胞自动机

Learning Elementary Cellular Automata with Transformers

London Institute for Mathematical Sciences(伦敦数学科学学院);Royal Institution(英国皇家研究院)

Mikhail Burtsev

AI总结:

本文训练 Transformers 从随机初始状态序列中学习初等元胞自动机规则,发现其可抽象固定元数 Boolean 规则,但长程多步规划受限;未来状态或规则预测损失及增加深度可显著改善性能。

摘要:

大型语言模型展现出卓越的数学能力,但同时在抽象推理和规划方面存在困难。在本研究中,我们探究 Transformers 能否学习抽象并推广支配初等元胞自动机的规则。通过在由随机初始条件和局部规则生成的状态序列上训练 Transformers,我们表明它们能够在固定元数的不同 Boolean 函数之间进行泛化,从而有效抽象出底层规则。尽管这些模型在下一状态预测中达到很高准确率,但在没有中间上下文的多步规划任务中,其性能会急剧下降。我们的分析表明,在训练损失中纳入未来状态或规则预测,可增强模型形成规则内部表征的能力,从而改善更长规划时域和自回归生成中的性能。此外,我们确认,增加模型深度对于复杂推理任务所需的扩展顺序计算起着关键作用。这凸显了通过在损失函数中纳入更长时域,以及结合递归和自适应计算时间来动态控制模型深度,从而改进 LLM 的潜力。

英文摘要:

Large Language Models demonstrate remarkable mathematical capabilities but at the same time struggle with abstract reasoning and planning. In this study, we explore whether Transformers can learn to abstract and generalize the rules governing Elementary Cellular Automata. By training Transformers on state sequences generated with random initial conditions and local rules, we show that they can generalize across different Boolean functions of fixed arity, effectively abstracting the underlying rules. While the models achieve high accuracy in next-state prediction, their performance declines sharply in multi-step planning tasks without intermediate context. Our analysis reveals that including future states or rule prediction in the training loss enhances the models' ability to form internal representations of the rules, leading to improved performance in longer planning horizons and autoregressive generation. Furthermore, we confirm that increasing the model's depth plays a crucial role in extended sequential computations required for complex reasoning tasks. This highlights the potential to improve LLM with inclusion of longer horizons in loss function, as well as incorporating recurrence and adaptive computation time for dynamic control of model depth.

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

↑