跳到正文
arXiv (AI + Vision + Imaging)· Tianyi Zhang, Feiying Chen·· 7 天前AI 评分20

Baton 系列循环 Transformer 如何在逐 token 训练下完成潜在两跳推理

Latent Fact Composition under Next-Token Training

AI 导读

针对逐 token 训练的模型能否回答中间实体未在训练样本中出现的两跳问题,研究构建了可精确计算损失各项的合成语料,发现循环 Transformer、标准 Transformer 与 DiscoLoop 几乎全部答错。

正文 · 原文

arXiv:2611.21921v1 Announce Type: new Abstract: Controlled studies of latent two-hop reasoning train transformers to predict only the answer, whereas language models are trained to predict every token. We ask whether a model trained on every token learns to answer two-hop questions whose intermediate entity appears in no two-hop training example. We build a synthetic corpus with such questions. On this corpus every term of the loss can be computed exactly. A looped transformer, a standard transformer and DiscoLoop answer almost none of these questions. We therefore introduce the Baton family of looped transformers. They pass the intermediate entity to the second loop as a token embedding. When trained to predict only the answer, two of its three variants answer these questions almost perfectly. We then relate the success and failure of each model to three design conditions. Experiments that change one condition at a time agree with this hypothesis. When Baton is trained on every token, however, its accuracy on these questions rises and then declines. We further split the gradient of the next-token loss into three terms. Removing the two terms that depend on the particular training set raises the peak accuracy but does not remove the decline. The decline arises in the second hop while the model still recalls both facts.

来源:arXiv (AI + Vision + Imaging) · arxiv.org