Training Large Language Models to Reason in a Continuous Latent Space
đ€ Upvotes: 25 | cs.CL Authors: Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, Yuandong Tian Title: Training Large Language Models to Reason in a Continuous Latent Space Arxiv: http://arxiv.org/abs/2412.06769v1 Abstract: 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.
You May Also Like

Real Ghost Stories Online
Real Ghost Stories Online | Paranormal, Supernatural & Horror Radio

La Terre au carré
France Inter

Vetenskapsradion Nyheter
Sveriges Radio

IQ - Wissenschaft und Forschung
Bayerischer Rundfunk

Cryptids Of The Corn
Cryptids of the Corn Podcast

Somewhere in the Skies
SpectreVision Radio

Choses Ă Savoir CERVEAU
Choses Ă Savoir

DEKODET
Kristian Hope / Thomas Torgersen BrÄttum

Vedanta Cast
Jonas Masetti

The Grave Talks | Haunted, Paranormal & Supernatural
Ghost Stores, Haunted, Paranormal & Supernatural Stories
Community discussion