[2412.06769] Training Large Language Models to Reason in a Continuous Latent Space
Abstract:Large language models (LLMs) are typically constrained to reason in the language space, where they express the reasoning process through a chain-of-thought (CoT) to solve complex problems. However, the language space may not always be optimal for reasoning. Most word tokens primarily ensure textual coherence and are not essential for reasoning, while some critical tokens require complex planning and pose challenges to LLMs. To explore the potential of reasoning beyond language, we introduce a new paradigm called Coconut (Chain of Continuous Thought). Coconut utilizes the last hidden state of the LLM as a representation of the reasoning state, termed "continuous thought." Instead of decoding this state into words, we feed it back to the model as the next input embedding directly in the continuous space. This latent reasoning paradigm enables an advanced reasoning pattern, where continuous thoughts can encode multiple alternative next steps, allowing the model to perform a breadth-first search (BFS) rather than committing prematurely to a single deterministic path as in CoT. Coconut outperforms CoT on logical reasoning tasks that require substantial search during planning and achieves a better trade-off between accuracy and efficiency.
[2412.06769] Training Large Language Models to Reason in a Continuous Latent Space Skip to main content arXiv is now an independent nonprofit! Learn more × Search arXiv Press Enter to search · Advanced search --> Computer Science > Computation and Language arXiv:2412.06769 (cs) [Submitted on 9 Dec 2024 ( v1 ), last revised 3 Nov 2025 (this version, v3)] Title: Training Large Language Models to Reason in a Continuous Latent Space Authors: Shibo Hao , Sainbayar Sukhbaatar , DiJia Su , Xian Li , Zhiting Hu , Jason Weston , Yuandong Tian View a PDF of the paper titled Training Large L
Explore this link on the map →related reading
- Training Large Language Models to Reason in a Continuous Latent Spacearxiv.org
- [2507.06203] A Survey on Latent Reasoningarxiv.org
- Unlocking the Working Memory of Large Language Models for Latent Reasoningarxiv.org
- Worries about latent reasoning in LLMs — EA Forumforum.effectivealtruism.org
- [2504.10615] Beyond Chains of Thought: Benchmarking Latent-Space Reasoning Abilities in Large Language Modelsarxiv.org
- Tracing the thoughts of a large language model \ Anthropicanthropic.com
- DeepSeek-R1arxiv.org
- [2201.11903] Chain of Thought Prompting Elicits Reasoning in Large Language Modelsarxiv.org
- the-illusion-of-thinking.pdfml-site.cdn-apple.com
- Explore | alphaXivalphaxiv.org
- [2502.19402] General Reasoning Requires Learning to Reason from the Get-goar5iv.labs.arxiv.org
- [2405.18915] Towards Faithful Chain-of-Thought: Large Language Models are Bridging Reasonersar5iv.labs.arxiv.org