# Training Large Language Models to Reason in a Continuous Latent Space (Coconut)

- **ID:** 925
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2412.06769
- **Authors:** Shibo Hao, Sainbayar Sukhbaatar, DiJia (Andy) Su, Xian Li, Zhiting Hu, Jason Weston, Yuandong Tian
- **Venue:** arXiv 2412.06769
- **Publisher:** arXiv 2412.06769
- **Published:** 2024
- **Source:** arxiv
- **Access:** open arXiv + GitHub
- **License:** arXiv non-exclusive; code per GH
- **License family:** Other (auto-classified)
- **Tags:** coconut, latent-reasoning, continuous-thought, meta, arxiv:2412.06769
- **Topics:** latent reasoning; continuous thought; planning
- **Added:** 2026-10-02
- **Page:** https://papers.projxon.ai/entries/925

## 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.

## Attributes

- **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)

## From the source (fetched 2026-10-03)

- **Published:** Dec 9, 2024 (arXiv)
- **Last revised:** Aug 23, 2026 (arXiv)
- **arXiv categories:** cs.CL (arXiv)
- **Author comment:** Accepted to COLM 2025 (arXiv)
- **Citations:** 786 (151 influential) (Semantic Scholar)
- **References:** 61 (Semantic Scholar)

## 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.

## Research notes

- Resolved from LinkedIn Meta Coconut post (Discord mid 1321330812041564162). Code https://github.com/facebookresearch/coconut.

## Cites, within this collection

- [Stream of Search (SoS): Learning to Search in Language](https://papers.projxon.ai/entries/907) (paper 2024, #907)

## Cited by, within this collection

- [Pretraining Latent Information Feedback Transformers with Teacher Supervision](https://papers.projxon.ai/entries/845) (paper 2026, #845)
- [Not All LLM Reasoning is Visible in the Chain-of-Thought](https://papers.projxon.ai/entries/463) (paper 2026, #463)
- [Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers](https://papers.projxon.ai/entries/476) (paper 2026, #476)
- [Looped Diffusion Language Models](https://papers.projxon.ai/entries/504) (paper 2026, #504)
- [Training-Free Looped Transformers](https://papers.projxon.ai/entries/510) (paper 2026, #510)
- [Self-Policy Distillation via Capability-Selective Subspace Projection](https://papers.projxon.ai/entries/516) (paper 2026, #516)
- [Probabilistic Tiny Recursive Model](https://papers.projxon.ai/entries/520) (paper 2026, #520)
- [Generative Recursive Reasoning](https://papers.projxon.ai/entries/521) (paper 2026, #521)
- [Reasoning Models Can Be Effective Without Thinking](https://papers.projxon.ai/entries/551) (paper 2025, #551)
- [HRM-Text: Efficient Pretraining Beyond Scaling](https://papers.projxon.ai/entries/619) (paper 2026, #619)
- [Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation](https://papers.projxon.ai/entries/735) (paper 2025, #735)
- [Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It](https://papers.projxon.ai/entries/826) (paper 2026, #826)
- [Ceiling of a Task: When Can a Transformer Succeed Without Its Chain of Thought?](https://papers.projxon.ai/entries/846) (paper 2026, #846)
- [Decoding Looped Transformers Better for (Almost) Free](https://papers.projxon.ai/entries/857) (paper 2026, #857)
- [Amortized Latent Steering: Low-Cost Alternative to Test-Time Optimization](https://papers.projxon.ai/entries/941) (paper 2025, #941)
- [LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulation](https://papers.projxon.ai/entries/1078) (paper 2026, #1078)

## Similar entries

- [Latent Reasoning in TRMs is Secretly a Policy Improvement Operator](https://papers.projxon.ai/entries/488) (paper, #488)
- [Recursive Multi-Agent Systems (RecursiveMAS)](https://papers.projxon.ai/entries/780) (paper, #780)
- [Looped Diffusion Transformer](https://papers.projxon.ai/entries/1242) (paper, #1242)
- [SPICE: Self-Play In Corpus Environments Improves Reasoning](https://papers.projxon.ai/entries/538) (paper, #538)
- [RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment](https://papers.projxon.ai/entries/989) (paper, #989)
- [Continual Learning via Sparse Memory Finetuning](https://papers.projxon.ai/entries/540) (paper, #540)
