Training Large Language Models to Reason in a Continuous Latent Space (Coconut)
Summary
Coconut (Chain of Continuous Thought) feeds last hidden state back as next input embedding, enabling latent BFS-like reasoning with fewer tokens; strong on ProsQA/ProntoQA planning tasks. Code: facebookresearch/coconut.
- Venue
- arXiv 2412.06769
- Publisher
- arXiv 2412.06769
- Source
- arxiv
- Access
- open arXiv + GitHub
- License
- arXiv non-exclusive; code per GH
- License family
- Other
- Purpose
- Replace token CoT with continuous hidden-state 'thoughts' for more efficient planning
- Scale
- Paper-scale LLM experiments; public GH code
- Domain
- latent reasoning; continuous thought; planning
- Used for
- Latent-space reasoning research; planning benchmarks
- Time period
- arXiv 2024-12; Discord LinkedIn mid 2024-12-25
- Author type
- industry research (Meta)
- Added
- Oct 2, 2026
- Found via
- #random-papers
From the source
- Published
- Dec 9, 2024
- Last revised
- Aug 23, 2026
- arXiv categories
- cs.CL
- Author comment
- Accepted to COLM 2025
- Citations
- 786 (151 influential)
- References
- 61
Abstract (from arXiv)
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.
Tags
Topics
latent reasoning; continuous thought; planning
Research notes
- Resolved from LinkedIn Meta Coconut post (Discord mid 1321330812041564162). Code https://github.com/facebookresearch/coconut.
Cites, within this collection
Cited by, within this collection
- Pretraining Latent Information Feedback Transformers with Teacher Supervision
- Not All LLM Reasoning is Visible in the Chain-of-Thought
- Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers
- Looped Diffusion Language Models
- Training-Free Looped Transformers
- Self-Policy Distillation via Capability-Selective Subspace Projection
- Probabilistic Tiny Recursive Model
- Generative Recursive Reasoning
- Reasoning Models Can Be Effective Without Thinking
- HRM-Text: Efficient Pretraining Beyond Scaling
- Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation
- Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It
- Ceiling of a Task: When Can a Transformer Succeed Without Its Chain of Thought?
- Decoding Looped Transformers Better for (Almost) Free
- Amortized Latent Steering: Low-Cost Alternative to Test-Time Optimization
- LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulation
Similar entries
- Paper Latent Reasoning in TRMs is Secretly a Policy Improvement Operator
- Paper Recursive Multi-Agent Systems (RecursiveMAS)
- Paper Looped Diffusion Transformer
- Paper SPICE: Self-Play In Corpus Environments Improves Reasoning
- Paper RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment
- Paper Continual Learning via Sparse Memory Finetuning