Thoughtbubbles: an Unsupervised Method for Parallel Thinking in Latent Space

LLM PTSAD Latent Reasoning
当前用于在Transformer模型中扩展推理阶段计算资源的方法,通常要求模型在输出最终答案之前,显式地生成一系列“思维链”(chain-of-thought)标记。尽管这类方法能力强大,但仍存在明显局限:其一,无法应用于预训练阶段;其二,完全依赖于串行生成的、以自然语言形式呈现的推理过程。本文提出一种新型Transformer变体——Thoughtbubbles(思维气泡),它原生支持在隐空间中并行地、自适应地分配计算资源,其核心机制是学习对残差流(residual streams)进行动态分叉(fork)或删除(delete)。由此,那些需要更多计算量的token可在网络中间层自发形成一个由克隆残差构成的“气泡”。尤为关键的是,这种行为仅通过标准的语言建模损失(language modeling loss)即可在预训练阶段端到端地习得,无需额外监督信号。在仅使用一半训练预算的情况下,Thoughtbubbles在困惑度(perplexity)和零样本评测(zero-shot evals)两方面,均显著优于标准解码器式语言模型(decoder LMs),也优于采用非自适应并行计算策略的模型。该优势在150M至1.9B不同参数规模的模型上均稳定成立。在GSM8K数学推理基准测试中,Thoughtbubbles仅消耗基线模型一半的token预算,即达到了具有竞争力的性能水平。由于本方法本质上是隐式的,模型得以从预训练伊始便逐步习得自适应计算能力,从而为实现训练阶段与推理阶段计算扩展行为的统一铺平了道路。
Current approaches for scaling inference-time compute in transformers train them to emit explicit chain-of-thought tokens before producing an answer. While these methods are powerful, they are limited because they cannot be applied during pretraining and rely solely on serially-generated, natural-language verbalization. In this work, we propose Thoughtbubbles, a transformer variant that natively performs parallel adaptive computation in latent space by learning to fork or delete residual streams. Thus, tokens requiring more computation can form a "bubble" of cloned residuals in the middle of the network. Crucially, this behavior is learned during pretraining with only language modeling loss. Using half of the training budget, Thoughtbubbles outperforms the perplexity and zero-shot evals of both standard decoder LMs and those using non-adaptive parallel computation approaches. These results hold across model sizes from 150M to 1.9B. Thoughtbubbles achieves competitive GSM8K results using half of the baseline's token budget. The implicit nature of our method enables models to begin learning adaptive computation at pretraining time, paving the way to unified train-time and test-time scaling behaviors.
许愿