将思维链内化到循环Transformer中
Internalizing Chain-of-thought into Looped Transformers
AI总结:
该研究构建了介于思维链(CoT)与潜在思维之间的恒定比特大小循环Transformer,可将图灵机模拟的上下文窗口和生成标记资源减少$L$倍,且适用于恒定比特大小的softmax注意力场景。
摘要:
思维链(CoT)通过生成的标记使恒定比特大小的Transformer能够执行通用计算(Li和Wang,2025a),而循环Transformer则通过隐藏状态中的循环(潜在思维)执行相同计算。我们构建了一系列恒定比特大小的循环Transformer,在CoT与潜在思维之间进行插值。对于规定的循环次数$L=L(n)$和满足$s(n)^{1/k}=\boldsymbol{\text{Ω}}(L)$的固定整数$k\boldsymbol{\text{≥}}1$,我们的Transformer使用大小为$O(s(n)/L)$的上下文窗口和$O(t(n)s(n)^{1/k}/L)$的生成标记来模拟时间$t(n)$、空间$s(n)$的图灵机,与相应的非循环队列机模拟相比,将两种资源都减少了$L$倍。该结构在恒定比特大小的softmax注意力下也成立,且基于本文指定的有限精度内核。
英文摘要:
Chain-of-thought (CoT) enables constant-bit-size transformers to perform general-purpose computation through generated tokens (Li and Wang, 2025a), whereas looped transformers carry out the same computation by recurrence in hidden states (latent thought). We construct a family of constant-bit-size looped transformers that interpolates between CoT and latent thought. For a prescribed loop count $L=L(n)$ and a fixed integer $k\ge1$ satisfying $s(n)^{1/k}=Ω(L)$, our transformer simulates a time-$t(n)$, space-$s(n)$ Turing machine using a context window of $O(s(n)/L)$ and $O(t(n)s(n)^{1/k}/L)$ generated tokens, reducing both resources by a factor of $L$ relative to the corresponding unlooped queue-machine simulation. The construction also holds with softmax attention at constant bit-size, under the finite-precision kernel specified in this paper.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。