思维链与压缩循环Transformer:记忆预算分离
Chain-of-Thought and Compressed Looped Transformers: A Memory-Budget Separation
AI总结:
本文通过比较三种记忆机制(压缩潜在循环、全序列状态循环和思维链暂存区),证明压缩循环Transformer的记忆预算限制其推理能力,而思维链通过扩展上下文实现更强的问题求解。
摘要:
思维链提示和循环Transformer都赋予固定模型更多的测试时计算,但它们在记忆内容上有所不同。思维链将中间状态存储在生成的标记中,这些标记保留在上下文中,而循环Transformer通过循环隐藏激活传递状态。我们认为这种持久可变记忆是测试时推理的核心资源。我们比较了三种记忆机制:压缩潜在循环、全序列状态循环和思维链暂存区。我们的主要结果表明,压缩循环受其循环状态大小的限制。运行更长时间的循环增加了计算量,但本身不会创建增长的暂存区,因此即使运行多个步骤,具有小循环状态的循环仍然是小空间推理器。在标准复杂性假设下,这样的循环无法解决在logspace归约下P-complete的问题,而多项式长度的思维链可以。这种分离是压缩循环特有的,因为全序列状态循环在每个输入位置携带状态,并处于更接近显式暂存区的记忆丰富状态。受控的指针追逐和关联回忆扫描说明了这种记忆预算观点,其性能对持久状态预算是否匹配任务的工作记忆需求敏感。
英文摘要:
Chain-of-thought prompting and looped Transformers both give a fixed model more test-time computation, but they differ in what they remember. Chain-of-thought stores intermediate state in generated tokens that remain in the context, whereas a looped Transformer carries state through recurrent hidden activations. We argue that this persistent mutable memory is a central resource for test-time reasoning. We compare three memory regimes, the compressed latent loop, the full sequence-state loop, and the chain-of-thought scratchpad. Our main result shows that a compressed loop is limited by the size of its recurrent state. Running the loop longer adds computation but does not by itself create a growing scratchpad, so a loop with a small recurrent state remains a small-space reasoner even when run for many steps. Under a standard complexity assumption, such loops cannot decide problems that are P-complete under logspace reductions, whereas polynomial-length chain-of-thought can. The separation is specific to compressed loops, as full sequence-state loops carry state at every input position and live in a memory-rich regime closer to explicit scratchpads. Controlled pointer-chasing and associative-recall sweeps illustrate this memory-budget view, with performance sensitive to whether the persistent-state budget matches the task's working-memory demand.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。