图灵等价性与通过连续思维Softmax变换器刻画P类问题
Turing Equivalence and Characterizing P with Chain of Continuous Thought Softmax Transformers
AI总结:
本文研究连续思维链(Coconut)变换器的推理表达能力,证明其可模拟任意图灵机,带多项式反馈截止期时可识别P类语言,无截止期时可识别RE类语言。
摘要:
语言模型通常通过逐个生成token产生思维链。连续思维链(Chain of Continuous Thought, Coconut)是一种在连续隐空间中执行中间推理步骤的潜在推理架构,它在每一步将整个最终层隐向量直接输入下一步,使模型在生成答案前能在连续向量中存储和更新中间结果。在需要寻找证明的逻辑推理任务上,Coconut的准确率高于显式思维链。理论研究也探讨了连续反馈如何解决图可达性等问题。本文研究Coconut的推理表达能力:仅带连续反馈的普通因果Softmax解码器变换器(transformer)能否模拟任意图灵机?这类变换器在多项式多个反馈步骤下可识别哪些语言?我们研究固定宽度、深度、固定有理参数的变换器,以处理任意长度的二进制输入,隐向量的精度随输入长度和序列位置呈多项式增长。评估两种配置:一种使用几何共模位置编码,另一种省略位置编码。在两种设置中,对每个确定性图灵机,我们构造一个固定变换器,使其在所有二进制输入上模拟该图灵机。给定固定接受间隙,两种设置下可识别的语言类均为带多项式反馈截止期的P类问题,无截止期时则为RE类问题。
英文摘要:
Language models typically produce a chain of thought by generating one token at a time. Chain of Continuous Thought (Coconut) is a latent reasoning architecture that carries out intermediate reasoning steps in a continuous hidden space. It feeds the entire final-layer hidden vector at each step directly into the next step, allowing the model to store and update intermediate results in continuous vectors before generating an answer. On logical reasoning tasks that require searching for a proof, Coconut achieved higher accuracy than the explicit chain of thought. Theoretical work has also studied how continuous feedback can solve problems such as graph reachability. In this paper, we investigate the reasoning expressive power of Coconut: Can an ordinary causal softmax decoder only transformer (abbr. transformer) with continuous feedback simulate any Turing machine? Which languages can such transformers recognize with polynomially many feedback steps? We study transformers of fixed width and depth, with fixed rational parameters, to handle binary inputs of arbitrary length. The precision of the hidden vectors grows polynomially with input length and sequence position. Two configurations are evaluated: one uses geometric common-mode positional encoding, and the other omits positional encoding. In both settings, for every deterministic Turing machine, we construct a fixed transformer that simulates it on every binary input. Given a fixed acceptance gap, the class of languages recognized in either setting is exactly P with a polynomial feedback deadline and exactly RE with no deadline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。