paper-with-me

홈 › Papers

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

2026-06-05 · Mujtaba Farhan, Maheep Chaudhary arxiv

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

📄 PDF Abstract BibTeX arXiv:2606.07720

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Residual Stream Analysis with Multi-Layer SAEs

2024-09-06 · Tim Lawson, Lucy Farnik, Conor Houghton, Laurence Aitchison

Sparse autoencoders (SAEs) are a promising approach to interpreting the internal representations of transformer language models. However, SAEs are usually trained separately on each transformer layer, making it difficult…

Do Value Vectors in Deep Layers Need Context from the Residual Stream?

2026-06-01 · Muyu He, Yuchen Liu, Qingya Huang, Li Zhang arxiv

The success of the transformer architecture as the backbone of modern LLMs is in large part due to its use of attention layers. An attention layer follows the standard neural network paradigm: it takes the residual strea…

Scaling Adaptive Depth with Norm-Agnostic Residual Networks

2026-06-15 · Tomás Figliolia, Beren Millidge arxiv

Residual architectures are ubiquitous in deep learning, but they suffer from a subtle structural limitation: the norm of the residual stream can grow rapidly with depth. As a result, updates from later layers become smal…

What Layers When: Learning to Skip Compute in LLMs with Residual Gates

2025-10-13 · Filipe Laitenberger, Dawid Kopiczko, Cees G. M. Snoek, Yuki M. Asano arxiv

We introduce GateSkip, a simple residual-stream gating mechanism that enables token-wise layer skipping in decoder-only LMs. Each Attention/MLP branch is equipped with a sigmoid-linear gate that condenses the branch's ou…

From Concept-Aligned Tokens to Vulnerable Features: Mechanistic Localization of Jailbreaks

2026-04-25 · Nilanjana Das, Mathew Dawit, Aman Chadha, Manas Gaur arxiv

Jailbreak attacks expose a persistent failure mode in safety-aligned LLMs: models can be pushed into harmful behavior, but the internal representations enabling this shift remain poorly localized. Recent mechanistic safe…