HackerTube 中文?
← Hacker Paper

HACKER PAPER · 2024 · arXiv preprint

Training Large Language Models to Reason in a Continuous Latent Space

Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, Yuandong Tian

16 HN accounts mentioned it1 explicitly recommended itRead HN comments ↓

What question does this paper answer?

Coconut lets a model perform intermediate reasoning without first translating each state into words: it feeds the last hidden state directly into the next input embedding and later resumes text output. Training begins with demonstrations containing textual steps and progressively replaces some steps with continuous states. Experiments on math questions and synthetic logic tasks show particular trade-offs between accuracy and reasoning cost. The method provides another computational representation; it does not establish that hidden states amount to human thought.

What it contributes

  1. 01

    Feeding back continuous states changes the representation and input path of intermediate steps. It is not merely asking a model to hide its chain of thought, and requires corresponding training.

  2. 02

    In the GPT-2 experiments, Coconut outperforms textual CoT on the two tested logic tasks with less step overhead, but does not surpass full textual CoT accuracy on GSM8k. The tasks do not support a single claim of universal superiority.

  3. 03

    The multistage curriculum matters: an ablation trained directly on question-answer pairs performs poorly. Probing on the logic task supports an interpretation involving multiple candidate paths, rather than proving correctness of a general search algorithm.

Check the original passages

Pages count from the first page of the PDF file. Page jumps depend on the source viewer; section names and short quotes provide another way to find the passage.

the last hidden state as the next input embedding.
§ 3 Coconut: Chain of Continuous Thought · PDF p. 4 · arXiv v4 · updated 2026Open this page ↗
the models trained this way do not perform any better than no-CoT.
§ 5.3 Results and Discussion · PDF p. 11 · arXiv v4 · updated 2026Open this page ↗

Guide source: arXiv v4 · updated 2026 ↗

Read this paper alongside other sources

These readings connect the paper with specific arguments from talks and other sources.

Hacker News comments 17

Verified mentions linking to this paper, newest first. This is not the complete comment tree of any one submission. Recommendations, references, and criticism are labeled separately; comments remain in their original language.

supriyo-biswasReferenceOriginal comment ↗
Is there a more technical source that tells what is being done? I assume it's about reasoning in latent space e.g. the coconut paper[1]?

I disagree with the "experts" there, as if latent-space reasoning will only cause proper interpretability research rather than taking the CoT as gospel[2].

Give me that any day over the constant "you will be abolished to the permanent underclass!" talk coming from billionaires.

Edit: (A better discussion is apparently here[3])

[1] https://arxiv.org/pdf/2412.06769

[2] https://thezvi.substack.com/p/the-most-forbidden-technique

[3] https://news.ycombinator.com/item?id=49553321
entropeRecommendationOriginal comment ↗
"Latent" means it (the space) is there all the time but usually not exposed or apparent. Latent space is a high-dimensional space that is not legible to humans, so normally reasoning gets constrained to progress in tokens instead so that it can be evaluated.

I think https://arxiv.org/abs/2412.06769 is a good description of the premise of reasoning in latent space, although https://arxiv.org/abs/2604.15726 argues it's already what really happens.
Read 13 more comments
krackersReferenceOriginal comment ↗
> extra attention head were added that queried the KV data from lower layers

Isn't this sort of similar to latent looping? E.g. [1]. But actually as [2] argues, even that wasn't a good experiment because it used the very last hidden state, which is too close to the logits and loses most of the rich embedding structure. Perhaps you don't even need access to the state of anything except the penultimate hidden layer, since based on my vague reading of [3] the residual stream doesn't "lose information" as it passes deeper down the attention layers, so each block maybe manipulates a different subspace of the residual stream.

[1] https://arxiv.org/abs/2412.06769

[2] https://snimu.github.io/2025/03/30/multi-layer-language-head...

[3] https://news.ycombinator.com/item?id=45758093
vonneumannstanReferenceOriginal comment ↗
Unfortunately I think the competitive pressures to improve model performance makes this kind of monitor-ability is short-lived. It's just not likely that textual reasoning in english ismost optimal.

Researchers are already pushing in this direction:

https://arxiv.org/abs/2502.05171

"We study a novel language model architecture that is capable of scaling test-time computation by implicitly reasoning in latent space. Our model works by iterating a recurrent block, thereby unrolling to arbitrary depth at test-time. This stands in contrast to mainstream reasoning models that scale up compute by producing more tokens. Unlike approaches based on chain-of-thought, our approach does not require any specialized training data, can work with small context windows, and can capture types of reasoning that are not easily represented in words. We scale a proof-of-concept model to 3.5 billion parameters and 800 billion tokens. We show that the resulting model can improve its performance on reasoning benchmarks, sometimes dramatically, up to a computation load equivalent to 50 billion parameters."

https://arxiv.org/abs/2412.06769

Can't monitor the chain of thought if it's no longer in a human legible format.
voxgenReferenceOriginal comment ↗
> It's interesting that there are no reasoning models yet

This may be merely a naming distinction, leaving the name open for a future release based on their recent research such as coconut[1]. They did RL post-training, and when fed logic problems it appears to do significant amounts of step-by-step thinking[2]. It seems it just doesn't wrap it in <thinking> tags.

[1] https://arxiv.org/abs/2412.06769 "Training Large Language Models to Reason in a Continuous Latent Space" [2] https://www.youtube.com/watch?v=12lAM-xPvu8 (skip through this - it's recorded in real time)
avodonosovReferenceOriginal comment ↗
Explicit <eot> is only used in training.

At inference time, the paper says:

> A challenge lies in determining when to switch between latent and language modes. As we focus on the problem-solving setting, we insert a <bot> token immediately following the question tokens. For <eot>, we consider two potential strategies: a) train a binary classifier on latent thoughts to enable the model to autonomously decide when to terminate the latent reasoning, or b) always pad the latent thoughts to a constant length. We found that both approaches work comparably well. Therefore, we use the second option in our experiment for simplicity, unless specified otherwise.

(the bottom of the page 4 in the paper pdf, which can be downloaded from https://arxiv.org/abs/2412.06769)

Why this point in you summary caught my eye, because the article specifically emphasises non-verbal nature or aspect of reasoning. Internal representaions used by a thinking human are largely not words, and the COCONUT approach tries to model that.

Also note, that a whole reasoning step in training data - easily a sentence or more of natural language - can be replaced by a single "Thought" element. (How many Thought elements replace a reasonong step is controlled by a hyperparameter ‘c’; the illustrations are made for ‘c=1’).

BTW, one observation: the aipapersacademy.com article in the subject calls the Thought elements "thought tokens", but the original paper never calls them "tokens", just "Thoughts" or "latent thoughts". I suppose the paper carefully avoids that to prevent confusion, as "token" mainly means a linguistic unit in LLMs.
verdvermReferenceOriginal comment ↗
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...

https://arxiv.org/pdf/2412.06769
Direct submissions and discussions (2)Training Large Language Models to Reason in a Continuous Latent Space [pdf] · 1 points · 2026-04-29 ↗Training LLMs to Reason in a Continuous Latent Space · 283 points · 2024-12-10 ↗