HACKER PAPER · 2024 · arXiv preprint
Training Large Language Models to Reason in a Continuous Latent Space
这篇论文在回答什么?
Coconut尝试让模型在中间推理时不必先把状态翻译成文字:把最后一层隐状态直接作为下一位置的输入嵌入,再在需要时恢复文字输出。训练从有文字步骤的示范开始,逐阶段把部分步骤换成连续状态。论文在数学题和合成逻辑任务上检验这种做法,显示特定的准确率与推理成本取舍;它提供了另一种计算表示,并未证明隐状态已经等同于人的思考。
怎样理解它的贡献
- 01
连续状态回馈改变了中间步骤的表示和输入路径,不是简单要求模型把思维链隐藏起来;模型需要相应训练。
- 02
GPT-2实验中,Coconut在两个受测逻辑任务上优于文字CoT并减少步骤开销,但在GSM8k准确率上没有超过完整文字CoT;不同任务不能共用一个“全面胜出”的结论。
- 03
多阶段训练课程对学习这种能力很重要;直接从问答训练连续推理的消融组表现较弱。作者对逻辑任务的探针分析支持保留多个候选路径的解释,但不构成通用搜索算法的正确性证明。
回到原文核对
页码按 PDF 文件从第 1 页计算。跳页是否生效取决于原站阅读器;也可以按章节和短引查找。
the last hidden state as the next input embedding.the models trained this way do not perform
any better than no-CoT.把论文放进一个更大的问题
这些主题把论文与视频中的具体论点放在一起阅读。
Hacker News 评论 17
这里展示已核验、带论文链接的提及,按时间倒序排列,并非某个投稿下的全部评论。推荐、引用与批评分开标注;保留评论原文。
e: While the actual CoT in neuralese paper is Facebook's Coconut https://arxiv.org/abs/2412.06769 - not sure if any production models use that one.
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
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.
EDIT:
They link to a Meta paper from 2024/2025 though: https://arxiv.org/pdf/2412.06769/.
查看其余 13 条评论
refs: https://arxiv.org/abs/2412.17819 https://arxiv.org/abs/2412.06769
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
Given that anthropic’s interpretability work finds that CoT does not reliably predict the model’s internal reasoning process, I think approaches like the one above are more likely to succeed.
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.
That's essentially the core idea in Coconut[1][2], to keep the reasoning traces in a continuous space.
[1]: https://arxiv.org/abs/2412.06769
[2]: https://github.com/facebookresearch/coconut
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)
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
[1] https://arxiv.org/abs/2412.06769
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.
I can find "Coconut" 54 times in the PDF. The movie does not look made up.
https://arxiv.org/pdf/2412.06769
I’ve done research myself adjacent to this (mapping parts of a latent space onto a manifold), but this is a bit eerie, even to me.
From what I can see, presuming o3 is a progression of o1 and has good level of accountabiltiy bubbling up during 'inference' (i.e. "Thinking about ___") then I'd say it's just using up millions of old-school tokens (the 44 million tokens that are referenced). So not latent thinking per se.
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 ↗