paper-with-me

Papers

Training Large Language Models to Reason in a Continuous Latent Space

2024-12-09 · Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, Yuandong Tian

Large language models (LLMs) are restricted to reason in the "language space", where they typically express the reasoning process with a chain-of-thought (CoT) to solve a complex reasoning problem. However, we argue that language space may not always be optimal for reasoning. For example, most word tokens are primarily for textual coherence and not essential for reasoning, while some critical tokens require complex planning and pose huge challenges to LLMs. To explore the potential of LLM reasoning in an unrestricted latent space instead of using natural language, we introduce a new paradigm Coconut (Chain of Continuous Thought). We utilize the last hidden state of the LLM as a representation of the reasoning state (termed "continuous thought"). Rather than decoding this into a word token, we feed it back to the LLM as the subsequent input embedding directly in the continuous space. Experiments show that Coconut can effectively augment the LLM on several reasoning tasks. This novel latent reasoning paradigm leads to emergent advanced reasoning patterns: the continuous thought can encode multiple alternative next reasoning steps, allowing the model to perform a breadth-first search (BFS) to solve the problem, rather than prematurely committing to a single deterministic path like CoT. Coconut outperforms CoT in certain logical reasoning tasks that require substantial backtracking during planning, with fewer thinking tokens during inference. These findings demonstrate the promise of latent reasoning and offer valuable insights for future research.

📄 PDF Abstract BibTeX arXiv:2412.06769

Code (1)

facebookresearch/coconut 공식 구현 pytorch

Tasks

Logical Reasoning

Similar Papers 제목 키워드 기반

Why Struggle with Continuous Latents? Interpretable Discrete Latent Reasoning via Rendered Compression

2026-06-29 · Shuochen Chang, Qingyang Liu, Shaobo Wang, Bingjie Gao 외 arxiv

Large language models achieve high reasoning performance via explicit chain-of-thought and reinforcement learning, but require long output sequences and extended inference time. Latent reasoning reduces this cost by shif…

Reinforcement Learning

ReGuLaR: Relation-Grounded Latent Reasoning for Large Vision-Language Models

2026-05-28 · Zihu Wang, Karthik Somayaji N. S, Peng Li arxiv

Chain-of-thought (CoT) reasoning has significantly improved the reasoning ability of large vision-language models (LVLMs) by verbalizing intermediate reasoning steps in natural language. However, such discrete textual ra…

Parallel Continuous Chain-of-Thought with Jacobi Iteration

2025-06-23 · HaoYi Wu, Zhihao Teng, Kewei Tu

Continuous chain-of-thought has been shown to be effective in saving reasoning tokens for large language models. By reasoning with continuous latent thought tokens, continuous CoT is able to perform implicit reasoning in…

CODI: Compressing Chain-of-Thought into Continuous Space via Self-Distillation

2025-02-28 · Zhenyi Shen, Hanqi Yan, Linhai Zhang, Zhanghao Hu 외

Chain-of-Thought (CoT) reasoning enhances Large Language Models (LLMs) by encouraging step-by-step reasoning in natural language. However, leveraging a latent continuous space for reasoning may offer benefits in terms of…

GSM8K

Is continuous CoT better suited for multi-lingual reasoning?

2026-03-09 · Ali Hamza Bashir, Behzad Shomali, Markus Frey, Mehdi Ali 외 arxiv

We investigate whether performing reasoning in a continuous latent space leads to more robust multilingual capabilities. We compare Continuous Chain-of-Thought (using the CODI framework) against standard supervised fine-…