---
title: Chain of Continuous Thought (Coconut)
url: https://www.emergentmind.com/topics/chain-of-continuous-thought-coconut-e37fcc52-ab1f-4679-8690-f2f37d772666
type: topic
---

# Chain of Continuous Thought (Coconut)

A Chain of Continuous Thought (Coconut) is a paradigm in large language models (LLMs) and vision-language models that replaces explicit, autoregressive reasoning steps in the vocabulary space (“discrete chain-of-thought,” CoT) with a compact sequence of continuous latent vectors—“continuous thought tokens.” This approach supports implicit parallelism, improves the efficiency of multi-step reasoning, and has theoretical and empirical advantages in tasks requiring search, planning, or inference beyond language modality.

## 1. Definition and Foundational Mechanism

Chain of Continuous Thought (Coconut) refers to a reasoning architecture in which the LLM executes intermediate computation via latent “thought” states in the model’s continuous embedding space, instead of generating stepwise natural-language tokens. Given an input $x = (x_1, \ldots, x_n)$, Coconut appends a trainable begin-of-thought token <bot> and sequentially evolves $c$ continuous latent thought vectors, denoted $h_{n+1}, \ldots, h_{n+c}$:
\[
h_{n+1} = f([E_{x_1}; \ldots; E_{x_n}; E_{<bot>}])
\]
\[
h_{n+i+1} = f([E_{x_1}; \ldots; E_{x_n}; h_{n+1};\ldots; h_{n+i}])\,, \quad i=1\ldots c
\]
where $f(\cdot)$ is the transformer body up to but not including the LM head, and $E_{x_j}\in \mathbb{R}^d$ are learned embeddings. After constructing the latent chain, an <eot> token is appended, and answer tokens are generated autoregressively with the last hidden state as context [2506.18582], [2412.06769].

By never mapping intermediate states back to the vocabulary, Coconut enables the model to internally represent complex, multi-path, or parallel reasoning steps within a low number of continuous tokens, eliminating the inefficiency and information loss inherent in discrete CoT [2505.23648].

## 2. Theoretical Properties and Superposition

The principal theoretical advance of Coconut is that each continuous thought vector can encode a superposition over many possible next-step hypotheses, enabling implicit parallel search. In directed graph reachability, this superposition allows a two-layer transformer to solve the problem in $O(D)$ continuous steps—where $D$ is the graph diameter—whereas discrete CoT requires $O(n^2)$ steps for $n$ vertices [2505.12514].

Concretely, for a reasoning frontier $V_c$ (all vertices reachable in $\leq c$ hops), the latent token at step $c$ is
\[
[t^c] = \frac{1}{\sqrt{|V_c|}} \sum_{v\in V_c}u_v
\]
where $u_v$ are orthonormal content embeddings. This vector encodes all candidate frontiers, supporting implicit parallel BFS. Empirical probes show that trained Coconut models realize such superpositional encodings without explicit supervision: inner products $\langle [t^c], u_v\rangle$ are highest for nodes at the current search frontier, with a hierarchy for nodes on optimal or merely reachable paths [2505.12514], [2509.23365].

## 3. Training Regimes, Optimization, and Variants

Coconut is typically instantiated via a staged curriculum: start with standard CoT supervised fine-tuning, then progressively replace language CoT steps with continuous thoughts, masking the loss on the question and latent steps, and computing cross-entropy only over remaining answer tokens. This ensures stable training and allows the model to bootstrap from explicit traces [2412.06769], [2506.18582].

Alternatively, self-distillation approaches such as CODI align the hidden state associated with a special token (e.g., colon before the answer) between an explicit CoT (teacher) and the continuous CoT (student), using an L1 loss in feature space across layers. This achieves compression ratios up to $7.8\times$—as continuous CoT requires only $K\ll L_{\mathrm{CoT}}$ steps—while preserving accuracy and improving robustness on both in-distribution and OOD benchmarks [2502.21074].

Further, SoftCoT++ extends continuous CoT by learning diversified latent reasoning chains at test-time: by using specialized initial tokens and a contrastive loss, SoftCoT++ simulates the diversity of self-consistency in discrete CoT, outperforming both single-sample and test-time scaled variants [2505.11484].

## 4. Parallelization: Jacobi Iteration and Efficiency

A major computational bottleneck of basic Coconut is its sequential decoding of latent thought vectors, which prohibits parallel training or inference. Parallel Continuous CoT (PCCoT) circumvents this by jointly updating all $c$ latent tokens using Jacobi iteration:
\[
H^{(t+1)} = \Phi\bigl( H^{(t)}; x \bigr)
\]
where $H^{(t)} = (h^{(t)}_{n+1},\ldots,h^{(t)}_{n+c+1})$ and $\Phi$ is the transformer applied to the input and the current block of latent tokens. Empirically, $T\approx 3$ Jacobi iterations suffice to match or exceed sequential Coconut’s accuracy while nearly halving training and inference time (e.g., 13.7h vs. 24.9h for GSM8K-Aug, and 49.5% PCCoT vs. 48.2% sequential Coconut accuracy), with improved stability and lower run-to-run variance [2506.18582].

### Table: Computational Cost and Accuracy (GSM8K-Aug, GPT-2.Small)

| Method                  | Train Time (h) | Inference Time (s/batch) | Accuracy (%) |
|-------------------------|:--------------:|:------------------------:|:------------:|
| Discrete CoT            |     —          |        —                 |   44.1       |
| Continuous CoT (c=24)   |    24.9        |      0.443               |   48.2       |
| PCCoT (c=24, T=3)       |    13.7        |      0.199               |   49.5       |

## 5. Causal Analysis and Limitations

Recent adversarial and causal studies challenge the assumption that latent tokens always capture explicit multi-step reasoning [2512.21711], [2602.08783]. Steering (causal) interventions—perturbing or swapping latent tokens—have minimal effect on the final answer compared to explicit CoT, with perturbation success rates (PSR) of 0–10% for Coconut versus up to 50–60% for discrete CoT. Shortcut tests (inducing option bias or spurious context) show that Coconut-trained models can exploit dataset artifacts, inflating benchmark performance without performing genuine stepwise reasoning.

Causal-structure studies using step-wise do-interventions reveal that only a subset of latent steps are causally necessary, with influence routing non-locally; often, early steps directly affect the final answer, creating “skip links” instead of uniform depth. Latent chains also preserve a superposition of competing answer modes up to the final step—output-level commitment can occur earlier than representational commitment [2602.08783].

## 6. Extensions: Markov, Multimodal, and Policy-Optimized Architectures

MarCos generalizes Coconut by integrating a hidden Markov chain structure: latent thoughts $\mathbf{z}_t$ transition via learned stochastic dynamics, with explicit emissions as observable rationales. This decouples token-level emission from “deep thought” evolution, enabling step-level control of randomness and up to $15.7\times$ inference speedup, matching or surpassing discrete CoT accuracy on GSM8K (+4.7%) [2509.25020].

In vision-language models, the MCOUT framework enables iterative reasoning in a multimodal latent space by updating a continuous thought vector via multimodal attention. This approach achieves significant gains on MMMU, ScienceQA, and MMStar (up to +8.23% accuracy; +8.27% BLEU), outperforming larger discrete CoT-based VLMs on these benchmarks, and is robust to open-ended and multi-step inference requirements [2508.12587].

Continuous CoT can further be enhanced by direct continuous supervision and policy optimization strategies (CoT2): by matching intermediate continuous outputs to the token-distribution of top-$B$ target traces, and using sampling schemes (MTS, Dirichlet), models achieve provable parallelism, superior sample efficiency (each CoT2-MTS rollout equals $K$ discrete rollouts), and accuracy improvements for tasks with substantial combinatorial search [2505.23648].

## 7. Broader Implications and Open Questions

Coconut and its extensions suggest that continuous latent chains enable LLMs to represent and explore multiple reasoning hypotheses in parallel, obviating the inefficiency of discrete token-generation for long chains or for multi-modal reasoning [2505.12514], [2506.18582], [2508.12587]. However, pseudo-reasoning and shortcut exploitation remain risks; diagnostic protocols integrating causal intervention and mode-conditional stability analyses are advocated to assess interpretability and faithful reasoning [2512.21711], [2602.08783].

Open problems include designing supervision and bottleneck strategies to guarantee that latent chains encode truly multi-step logical computation, extending continuous CoT to open-domain and multi-agent planning tasks, and developing robust mechanisms for dynamic allocation of reasoning depth and parallelism within the latent space [2412.06769], [2509.25020], [2505.23648].

In summary, Chain of Continuous Thought marks a class of frameworks in which LLMs reason via low-bandwidth, expressive latent trajectories, theoretically supporting superposition, parallelism, and efficient policy optimization. As both theoretical and empirical investigations advance, understanding the causal and representational dynamics within such chains remains a critical frontier for trustworthy, scalable reasoning in foundation models.

Source: https://www.emergentmind.com/topics/chain-of-continuous-thought-coconut-e37fcc52-ab1f-4679-8690-f2f37d772666