← All entries
Paper2024#925

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

Fetched Oct 3, 2026 from arXiv, Semantic Scholar. These numbers change; the curated fields above do not come from here.

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

coconutlatent-reasoningcontinuous-thoughtmetaarxiv:2412.06769

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 1

Cited by, within this collection 16

Similar entries