metaai·lightalo unofficial · independent
Universe / Language & LLMs / Coconut
Language & LLMs · 2024

Coconut

Coconut (Chain of Continuous Thought)

Reasoning in latent space instead of words

open source research code trained on GPT-2 (124M) params

Latest: Coconut (Dec 2024, code released)

FAIR research letting LLMs reason in latent space instead of words: the model's hidden state is fed back as the next input embedding, so 'thoughts' never get flattened into tokens. Coconut can encode multiple candidate next steps simultaneously — an emergent breadth-first search — beating chain-of-thought on logic tasks that require planning and backtracking, with fewer thinking tokens.

Why it matters

Coconut showed LLMs can reason in latent space instead of words: feeding the hidden state back as the next input lets a model hold several candidate reasoning branches at once, an emergent breadth-first search. It beat chain-of-thought on planning-heavy logic tasks with fewer thinking tokens, opening the latent-reasoning research line.

Facts

Try it yourself

Sources

More in Language & LLMs

Llama 3 / 3.1 / 3.2 / 3.3Large Concept ModelsByte Latent TransformerLlama StackMulti-token predictionMemory Layers at Scale

Read the Language & LLMs story on the sky →

✦ Open on the map Explore Language & LLMs Quiz me