HackerTube English?
← 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 账号提及1 个账号明确推荐阅读 HN 评论 ↓

这篇论文在回答什么?

Coconut尝试让模型在中间推理时不必先把状态翻译成文字:把最后一层隐状态直接作为下一位置的输入嵌入,再在需要时恢复文字输出。训练从有文字步骤的示范开始,逐阶段把部分步骤换成连续状态。论文在数学题和合成逻辑任务上检验这种做法,显示特定的准确率与推理成本取舍;它提供了另一种计算表示,并未证明隐状态已经等同于人的思考。

怎样理解它的贡献

  1. 01

    连续状态回馈改变了中间步骤的表示和输入路径,不是简单要求模型把思维链隐藏起来;模型需要相应训练。

  2. 02

    GPT-2实验中,Coconut在两个受测逻辑任务上优于文字CoT并减少步骤开销,但在GSM8k准确率上没有超过完整文字CoT;不同任务不能共用一个“全面胜出”的结论。

  3. 03

    多阶段训练课程对学习这种能力很重要;直接从问答训练连续推理的消融组表现较弱。作者对逻辑任务的探针分析支持保留多个候选路径的解释,但不构成通用搜索算法的正确性证明。

回到原文核对

页码按 PDF 文件从第 1 页计算。跳页是否生效取决于原站阅读器;也可以按章节和短引查找。

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

导读依据: arXiv v4 · updated 2026 ↗

把论文放进一个更大的问题

这些主题把论文与视频中的具体论点放在一起阅读。

Hacker News 评论 17

这里展示已核验、带论文链接的提及,按时间倒序排列,并非某个投稿下的全部评论。推荐、引用与批评分开标注;保留评论原文。

supriyo-biswas引用原评论 ↗
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
entrope推荐原评论 ↗
"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.
查看其余 13 条评论
krackers引用原评论 ↗
> 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
vonneumannstan引用原评论 ↗
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.
voxgen引用原评论 ↗
> 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)
eightysixfour引用原评论 ↗
> I suppose that raises another questions: Do LLMs "think" in language? Or do they think in a more abstract space, then translate it to language later? My money is on the latter.

The processing happens in latent space and then is converted to tokens/token space. There is research into reasoning models which can spend extra compute in latent space instead of in token space: https://arxiv.org/abs/2412.06769
avodonosov引用原评论 ↗
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.
verdverm引用原评论 ↗
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
直接投稿与讨论(2)Training Large Language Models to Reason in a Continuous Latent Space [pdf] · 1 分 · 2026-04-29 ↗Training LLMs to Reason in a Continuous Latent Space · 283 分 · 2024-12-10 ↗