Faithful, Hidden, and Latent Reasoning › Latent Reasoning
Language AI HandbookAll chapters A continuous reasoning step updates a hidden vector without generating a vocabulary token at that step. The examples below contrast continuous updates with methods that use extra discrete token positions.
A discrete token commits to one symbol, while the hidden activations can retain additional information beyond that symbol. A continuous-state approach can propagate a vector without encoding it as a vocabulary token. Such a vector need not represent a probability distribution or retain every hypothesis.
Recurrent Depth
The simplest form of latent reasoning is recurrent depth. A standard transformer has a fixed number of layers. A recurrent model applies the same block multiple times:
where:
- : the hidden state after applications, with the initial state
- : the shared transformer block applied at every step
- : the input
- : the total number of recurrent steps
This model sketch reads the answer out from the state after T iterations. Universal Transformers provide a research example of recurrent refinement with shared parameters. Their adaptive computation mechanism is a separate design choice from simple fixed-step recurrence.
Repeating the shared block adds operations without increasing its parameter count, if no parameters are added elsewhere. The resulting trajectory can be studied if the relevant states are accessible.
Supplied Pause Tokens
Goyal et al. (2023) appended copies of a special learnable token before extracting the answer. These extra positions let the model compute additional contextual states. The token itself has no assigned natural-language meaning.
The paper reports performance gains on some evaluated tasks. Extra contextual states can carry information, while a gain on those tasks leaves open whether the model’s reasoning report faithfully describes its method.
Continuous Chain-of-Thought
Coconut uses a last hidden state as the next input embedding during a continuous reasoning segment. In a standard text CoT, the model generates a discrete token at each reasoning step:
where:
- : the discrete token generated at reasoning step
- : the previously generated thought tokens
- : the input
- : the next-token distribution over the vocabulary
In Coconut, the model feeds the last hidden state back as the next input, without decoding a token:
where:
- : the continuous hidden state at thought step
- : the next-state computation with the prompt and earlier reasoning positions available as context
Coconut uses a curriculum that gradually replaces portions of text reasoning with continuous steps and returns to token decoding for the answer. On the tested logical tasks, the authors interpret some latent behavior as preserving multiple alternatives during search. The recurrence does not implement an explicit breadth-first queue.
Continuous states leave no text for a reader to inspect at those steps. A probing classifier can test whether information is decodable from a latent state, subject to its training and evaluation. A logit lens projects an intermediate state into vocabulary scores. Activation patching intervenes on an activation and measures the effect on an output, testing a different claim about how the model uses the state.
Soft Thinking
Soft Thinking feeds a weighted mixture of token embeddings into subsequent reasoning steps. The weights come from the vocabulary distribution at that step. The mixture represents one input vector rather than independently executing a branch for each token.
Several candidate embeddings can contribute to the same input vector. The mixture alone does not identify which concepts or search paths the subsequent computation uses.
Discrete Comparison: Quiet-STaR
Quiet-STaR samples discrete text rationales at sequence positions to help predict future text. Goyal’s pause tokens are supplied to the model, while Quiet-STaR generates its own rationale tokens. Coconut and Soft Thinking instead pass continuous vectors into their reasoning steps. Quiet-STaR evaluates predictive usefulness, including the likelihood of future text.
In the paper’s non-myopic training objective, rationales receive a reward based on how well they help predict a sequence of upcoming tokens compared with alternative rationales. The training signal evaluates prediction of future text. A separate test would be needed to establish that a rationale faithfully describes how the model produces an answer.
Tradeoffs
Latent reasoning offers several potential benefits:
- Representation: continuous vectors can carry information without a discrete vocabulary selection at each reasoning step.
- Compute allocation: fewer emitted tokens do not establish lower latency, memory, or compute. Count the repeated operations and other resources.
- Adaptivity: a model can predict when to stop applying a shared block, as in the adaptive Universal Transformer.
- Avoiding verbalization: the model does not have to translate its computation into human language.
But it also creates costs:
- Interpretability: no text to read.
- Monitoring: a text-only monitor cannot inspect continuous reasoning operations directly.
- Evaluation: faithfulness tests designed for CoT do not directly apply.
- Training: modifying how the model processes intermediate states can require a matching training procedure. Coconut’s staged replacement of text steps is one example.
A text-only monitor can inspect the text a system exposes. When the intermediate states are unavailable, use controlled input changes to measure the model’s end-to-end response. Editing a generated output instead tests the response of a downstream consumer to that output.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!