arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.07720cs.AIcs.CLcs.LG
收藏

为什么将残差流限制在层而不是令牌?用于连续潜在推理的持久记忆

Why Limit the Residual Stream to Layers and Not Tokens? Persistent Memory for Continuous Latent Reasoning

University of Cambridge(剑桥大学)

Mujtaba Farhan, Maheep Chaudhary

AI总结:

针对CoCoNuT在潜在空间推理中因中间隐藏状态被覆盖导致概念瓶颈的问题,提出AGCLR模型,通过门控概念流持久记忆机制,在GSM8K、HotpotQA和ProsQA上取得一致提升。

摘要:

大型语言模型(LLMs)在数学和多跳规划任务上展现了卓越的推理能力。CoCoNuT(连续思维链)范式通过使模型能够在潜在空间中进行推理,同时探索多个推理路径,而不是早期就承诺单一链条,从而扩展了这一能力。然而,我们识别出一个我们称之为\textbf{概念瓶颈}的限制。在每次推理过程中,中间隐藏状态被覆盖,导致模型随着推理深度增加而丢失早期步骤中计算出的关键事实。我们在经验上观察到了这一点。在HotpotQA上,原始CoCoNuT(10.4% EM)未能超过CoT基线(11.0% EM),并且在GSM8K上随着课程深度增加性能下降。为了解决这个问题,我们提出了\textbf{AGCLR}(自适应门控连续潜在推理),它通过一个\textit{门控概念流}增强了CoCoNuT。一个跨所有推理过程保持的持久残差记忆,由三个学习到的门控制:一个将中间事实提交到记忆的\textit{写入}门,一个检索相关先前状态的\textit{读取}门,以及一个修剪不相关上下文的\textit{遗忘}门。在使用GPT-2作为基础模型在GSM8K、HotpotQA和ProsQA上进行评估时,AGCLR在所有类型的数据集上实现了一致的改进。随着课程深度的增加,性能差距进一步扩大,直接解决了概念瓶颈。代码可在https://anonymous.4open.science/r/JJJJ/README.md获取。

英文摘要:

Large language models (LLMs) have demonstrated remarkable reasoning abilities on mathematical and multi-hop planning tasks. The CoCoNuT (Chain of Continuous Thought) paradigm~\cite{hao2024coconut} extends this by enabling models to reason in latent space, exploring multiple reasoning paths simultaneously rather than committing to a single chain early on. However, we identify a limitation we term the \textbf{concept bottleneck}. At each reasoning pass, intermediate hidden states are overwritten, causing the model to lose critical facts computed in earlier steps as reasoning depth increases. We observe this empirically. On HotpotQA, vanilla CoCoNuT (10.4\% EM) fails to improve over the CoT baseline (11.0\% EM), and performance degrades with curriculum depth on GSM8K. To address this, we propose \textbf{AGCLR} (Adaptive Gated Continuous Latent Reasoning), which augments CoCoNuT with a \textit{Gated Concept Stream}. A persistent residual memory maintained across all reasoning passes, controlled by three learned gates: a \textit{write} gate that commits intermediate facts to memory, a \textit{read} gate that retrieves relevant prior states, and a \textit{forget} gate that prunes irrelevant context. Evaluated on GSM8K, HotpotQA, and ProsQA using GPT-2 as our base model, AGCLR achieves consistent improvements across all types of datasets. With the performance gap compounding as curriculum depth increases, directly resolving the concept bottleneck. Code available at https://anonymous.4open.science/r/JJJJ/README.md

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑