Transformer过早停止思考,一个小LoRA修复了它
研究论文 · 2026/10/03
预训练Transformer在上下文中跟随引用时仅使用少量深度。十三个基础模型可靠地仅跟随1.4-3.6行,额外的预训练循环增加很少。在一个早期层上任务训练的秩8 LoRA扩展了这种计算,所有模型权重冻结。Qwen3-8B在24行链上的精确准确率从15.5%提升至99%;更长训练的LoRA达到50行。Ouro-1.4B在四次循环后达到60行,八次后至少160行。LoRA启动了一个中继:程序行通过中间层的一个短范围传递其链身份。冻结的头逐步读取链上更远的部分,移除父行注意力会停止中继。冻结模型测量在四个留出模型中的三个中将最后一个有用干预层定位在容差内。任务特定的LoRA也改善了MuSiQue。因此默认答案低估了通过微小编辑可访问的计算。代码和交互式演示可在 https://lunamos.github.io/stop-thinking-too-early/ 获取。
该研究揭示了一个简单而强大的方法,通过极小的LoRA编辑显著提升Transformer的长链推理能力,且无需微调全部权重,对理解和改进大模型推理有重要启示。
Pretrained transformers use little of their depth to follow references in context. Thirteen base models reliably follow only 1.4-3.6 lines, and extra pretrained loops add little. A task-trained rank-8 LoRA at one early layer extends this computation with all model weights frozen. Qwen3-8B improves from 15.5% to 99% exact accuracy on 24-line chains; a longer-trained LoRA reaches 50 lines. Ouro-1.4B reaches 60 lines after four loops and at least 160 after eight. The LoRA starts a relay: program lines pass on their chain identity through a short range of middle layers. Frozen heads read progressively further up the chain, and removing parent-line attention stops the relay. A frozen-model measurement locates the last useful intervention layer within tolerance in three of four held-out models. Task-specific LoRAs also improve MuSiQue. Default answers therefore understate the computation accessible through a tiny edit. Code and an interactive demo are available at https://lunamos.github.io/stop-thinking-too-early/