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

Transformer 何时能够使用抽象符号进行推理?

When can transformers reason with abstract symbols?

Apple(苹果公司);MIT(麻省理工学院);EPFL(洛桑联邦理工学院)

Enric Boix-Adsera, Omid Saremi, Emmanuel Abbe, Samy Bengio, Etai Littwin, Joshua Susskind

AI总结:

本文证明在充足数据和梯度下降训练下,transformer 可对抽象关系实现分布外泛化,并提出每头仅增加两个可训练参数的架构改进以提升推理学习的数据效率。

摘要:

我们研究了 transformer 模型在关系推理任务上的能力。在这些任务中,模型先在一组编码抽象关系的字符串上接受训练,随后在分布外数据上进行测试,这些数据包含训练数据集中未曾出现的符号。我们证明,对于一大族任务中的任意关系推理任务,当使用足够大量的训练数据通过梯度下降进行训练时,transformer 能够学习抽象关系并泛化到测试集。这与经典的全连接网络形成对比,我们证明后者无法学会推理。我们的结果启发了对 transformer 架构的修改:每个注意力头仅增加两个可训练参数,并且我们通过实验证明,这种修改提高了学习推理的数据效率。

英文摘要:

We investigate the capabilities of transformer models on relational reasoning tasks. In these tasks, models are trained on a set of strings encoding abstract relations, and are then tested out-of-distribution on data that contains symbols that did not appear in the training dataset. We prove that for any relational reasoning task in a large family of tasks, transformers learn the abstract relations and generalize to the test set when trained by gradient descent on sufficiently large quantities of training data. This is in contrast to classical fully-connected networks, which we prove fail to learn to reason. Our results inspire modifications of the transformer architecture that add only two trainable parameters per head, and that we empirically demonstrate improve data efficiency for learning to reason.

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

↑