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

展望未来:用于Transformer的潜在前瞻训练

Thinking into the Future: Latent Lookahead Training for Transformers

Apple(苹果公司)

Lorenzo Noci, Gregor Bachmann, Seyed-Mohsen Moosavi-Dezfooli, Moin Nabi

AI总结:

本文提出潜在前瞻训练方法,使模型在生成前进行多步前瞻,提升规划任务表现。

摘要:

自回归语言模型通过预测下一个标记生成文本,但此目标迫使模型在每一步都做出决定,限制了探索和反思多个可能延续的能力。此外,计算分配均匀,每个标记基于单一前向传递生成,可能限制模型在困难标记需要更多计算时的表达能力。为此,我们引入潜在前瞻训练策略,使模型在生成前进行多步前瞻:在选定位置,模型在确定下一个标记前,通过递归将隐藏状态反馈到上下文进行τ步,投入更多计算预测该标记。这产生τ个潜在预测,监督于下一个τ个真实标记,鼓励模型前瞻并优化预测。我们展示潜在前瞻在迷宫解决、数独和ProsQA等规划任务中显著优于自回归和非自回归基线。

英文摘要:

Autoregressive language models trained with next-token prediction generate text by sampling one discrete token at a time. Although very scalable, this objective forces the model to commit at every step, preventing it from exploring or reflecting upon multiple plausible continuations. Furthermore, the compute allocation across tokens is uniform; every token is formed based on a single forward-pass, potentially limiting the model's expressiveness in cases where difficult tokens require inherently more compute. Towards addressing these limitations, we introduce latent lookahead, a training strategy that enables models to "think" before generating: at selected positions in the sequence, before committing to the next token, the model performs a multi-step lookahead in latent space. More precisely, instead of sampling future tokens, we leverage the network's latent space by recursively feeding its hidden states back into the context for $τ$ steps, investing more compute on predicting that token. This produces $τ$ latent predictions that are supervised against the next $τ$ ground-truth tokens, encouraging the model to "lookahead" and refine its prediction. We show that latent lookahead substantially outperforms both autoregressive and non-autoregressive baselines on planning tasks such as maze solving, Sudoku, and ProsQA, where foresight is essential.

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

↑