HyperAIHyperAI

Command Palette

Search for a command to run...

Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers

Ying Fan Anej Svete Kangwook Lee

Abstract

Language models typically reason via explicit chain-of-thought (CoT), generating intermediate steps token-by-token. Latent CoT offers an alternative: it performs multi-step reasoning in the model's hidden states, replacing decoded tokens with continuous representations for greater efficiency. However, existing latent CoT methods underperform explicit CoT beyond 1B parameters, and the gap widens with scale. Looped, or recurrent-depth, Transformers, which reuse their weights to increase computation depth without adding parameters, are a natural fit for latent reasoning. We therefore ask whether looped Transformers can bridge this gap. We answer affirmatively with a simple recipe: a looped padded Transformer that processes K latent blocks in parallel for R iterations, with a cross-entropy loss on each latent position's gold CoT-step token, similar to explicit CoT supervision. We instantiate it as LOTUS (Looped Transformers with parallel supervision on latents). LOTUS is, to our knowledge, the first latent-CoT method to bridge the gap to explicit CoT at the 3B scale, while cutting thought-phase latency by 2.5×6.9×2.5 \times -6.9 \times2.5×6.9× from compact math expressions to natural language. Projecting LOTUS's post-loop latents through the base LM head recovers the gold reasoning steps and even surfaces alternative valid intermediate steps, evidence that its latent space is interpretable and CoT-aligned. Ablations confirm that both the looped backbone and the parallel supervision on gold CoT tokens are essential.

One-sentence Summary

Researchers from Microsoft Research, ETH Zürich, KRAFTON, and Ludo Robotics propose LOTUS, a looped padded Transformer that processes K latent blocks in parallel for R iterations with cross-entropy supervision on gold chain-of-thought step tokens, bridging the gap between latent and explicit reasoning at the 3B3B3B scale while cutting thought-phase latency by 2.5×6.9×2.5 \times -6.9 \times2.5×6.9× and producing interpretable, CoT-aligned latent representations.

Key Contributions

  • LOTUS is the first latent chain-of-thought method to close the performance gap to explicit chain-of-thought at the 3B scale, achieving this on Llama-3.2-3B-Instruct for GSM8K.
  • It reduces thought-phase latency by 2.5× to 6.9× compared to explicit chain-of-thought and surpasses the out-of-domain average on math benchmarks.
  • Post-loop latent states are interpretable: projecting them through the base language model head recovers gold reasoning steps and alternative valid chains, and ablations confirm the looped backbone and parallel gold-token supervision are essential.

Introduction

Scaling inference compute through chain-of-thought (CoT) reasoning has become a primary method for improving language model performance, but generating each reasoning token sequentially incurs high latency. Latent reasoning offers a more efficient alternative by performing intermediate computation in continuous hidden states instead of discrete tokens, condensing many steps into fewer model evaluations. Small-scale models benefit from this approach, yet past roughly 1B parameters no existing latent method matches explicit CoT accuracy on math tasks, and the gap widens with model size. The authors identify two common failures: prior methods generate latent thoughts autoregressively, which retains the expensive sequential bottleneck of CoT, and they lack direct, position-aligned CoT supervision, allowing latent representations to drift and destabilizing training. To overcome both, the authors present LOTUS, a looped padded Transformer that refines a fixed budget of latent token blocks over a small number of parallel passes and supervises these latents directly against gold CoT tokens via the base model’s own language modeling head. This parallel design eliminates the sequential dependency while ground-truth CoT alignment prevents latent drift. LOTUS is the first latent reasoning method to close the in-domain accuracy gap with explicit CoT on GSM8K at the 3B scale, exceeding CoT on out-of-domain math benchmarks and reducing thought-phase latency by up to 6.9 times on verbose natural-language reasoning.

Method

To transform a standard language model into an efficient latent reasoner, the authors propose LOTUS (Looped Transformers with parallel supervision on latents). The core design grounds latent computation directly in gold chain-of-thought (CoT) tokens using two main ingredients: a padded latent prefix processed by a looped transformer and parallel cross-entropy supervision on exact gold CoT tokens.

The input construction begins with a padded latent prefix. For a question QQQ, SSS CoT steps T1,,TST_1, \ldots, T_ST1,,TS, and an answer AAA, the model constructs an input sequence containing QQQ, a learnable beginning-of-thought token BoT\langle \mathrm{BoT} \rangleBoT, KKK blocks of ccc learnable latent tokens lat\langle \mathrm{lat} \ranglelat, an end-of-thought token EoT\langle \mathrm{EoT} \rangleEoT, and the answer AAA. The block budget KKK and per-block width ccc are fixed hyperparameters, ensuring the latent region can align with the CoT steps across examples.

During the looped latent computation, the base causal language model fθf_{\theta}fθ first processes the prefix [Q,BoT][Q, \langle \mathrm{BoT} \rangle][Q,BoT⟩] to populate a key-value cache Cpre\mathcal{C}_{\mathrm{pre}}Cpre. The model then iterates RRR times over the latent embeddings ERKc×d\boldsymbol{E} \in \mathbb{R}^{Kc \times d}ERKc×d. The hidden states at the latent positions after iteration ttt are computed as:

h(0)=fθ(ECpre),h(t)=fθ(E+h(t1)Cpre),t=1,,R.\begin{array}{l} \boldsymbol{h}^{(0)} = f_{\boldsymbol{\theta}}(\boldsymbol{E} \mid \mathcal{C}_{\mathrm{pre}}), \\ \boldsymbol{h}^{(t)} = f_{\boldsymbol{\theta}}\left(\boldsymbol{E} + \boldsymbol{h}^{(t-1)} \mid \mathcal{C}_{\text{pre}}\right), \quad t = 1, \dots, R. \end{array}h(0)=fθ(ECpre),h(t)=fθ(E+h(t1)Cpre),t=1,,R.

This finite-unroll recurrence allows the model to refine the latent embeddings jointly over the padded workspace while attending to the cached question context.

As shown in the figure below:

The training objective combines step-aligned CoT supervision and answer supervision. After RRR iterations, the step CoT supervision loss Lstep\mathcal{L}_{\text{step}}Lstep aligns each latent position (i,j)(i,j)(i,j) in the grid with the corresponding CoT step token Ti,jT_{i,j}Ti,j using a single batched cross-entropy through the base model's LM head fheadf_{\text{head}}fhead:

Lstep=1Nstepi=1Kj=1cCE(fhead(hi,j(R)),Ti,j),\mathcal{L}_{\text{step}} = \frac{1}{N_{\text{step}}} \sum_{i=1}^{K} \sum_{j=1}^{c} \mathrm{CE}\left(f_{\text{head}}\left(\boldsymbol{h}_{i,j}^{(R)}\right), T_{i,j}\right),Lstep=Nstep1i=1Kj=1cCE(fhead(hi,j(R)),Ti,j),

where NstepN_{\text{step}}Nstep is the total number of supervised CoT tokens. The answer supervision loss Lans\mathcal{L}_{\text{ans}}Lans is computed in a separate final forward pass that reuses the prefix cache and inserts the post-loop latent hidden states h(R)\boldsymbol{h}^{(R)}h(R). The model predicts the answer suffix AAA autoregressively:

Lans=1Am=0A1CE(fhead(zm),Am+1),\mathcal{L}_{\text{ans}} = \frac{1}{|A|} \sum_{m=0}^{|A|-1} \mathrm{CE}(f_{\text{head}}(\boldsymbol{z}_m), A_{m+1}),Lans=A1m=0A1CE(fhead(zm),Am+1),

where zm\boldsymbol{z}_mzm represents the hidden states at the answer-suffix positions. The full objective is L=Lans+λstepLstep\mathcal{L} = \mathcal{L}_{\text{ans}} + \lambda_{\text{step}} \mathcal{L}_{\text{step}}L=Lans+λstepLstep. This parallel chain likelihood approach ensures coverage of gold tokens at each position, while the answer loss provides global selection pressure for jointly computed hidden states.

To explore autoregressive chain likelihood, the authors also introduce LOTUS-aux, which routes CoT supervision through an auxiliary decoder gϕg_{\phi}gϕ instead of the base LM head.

The auxiliary decoder variant is illustrated in the following diagram:

In LOTUS-aux, at each loop iteration ttt, the auxiliary decoder reads the latent block ht(t)\boldsymbol{h}_{t}^{(t)}ht(t) as a prefix and predicts the gold CoT step TtT_tTt under teacher forcing. The output hidden states z~(t)\widetilde{\boldsymbol{z}}^{(t)}z(t) are generated by:

z~(t)=gϕ([ht,c(t),Tt,1,,Tt,Tt1]ht,1(t),,ht,c1(t)).\widetilde{\boldsymbol{z}}^{(t)} = g_{\phi}\left([\boldsymbol{h}_{t,c}^{(t)}, T_{t,1}, \dots, T_{t,|T_t|-1}] \mid \boldsymbol{h}_{t,1}^{(t)}, \dots, \boldsymbol{h}_{t,c-1}^{(t)}\right).z(t)=gϕ([ht,c(t),Tt,1,,Tt,Tt1]ht,1(t),,ht,c1(t)).

The step loss for this variant is computed as:

Lstepaux=1Nstept=1Km=0Tt1CE(ghead(z~m(t)),Tt,m+1).\mathcal{L}_{\text{step}}^{\text{aux}} = \frac{1}{N_{\text{step}}} \sum_{t=1}^{K} \sum_{m=0}^{|T_t|-1} \mathrm{CE}\left(g_{\text{head}}(\tilde{\boldsymbol{z}}_m^{(t)}), T_{t,m+1}\right).Lstepaux=Nstep1t=1Km=0Tt1CE(ghead(z~m(t)),Tt,m+1).

The auxiliary decoder is used exclusively during training to model the chain autoregressively, while inference for both LOTUS and LOTUS-aux relies solely on the post-loop latents to decode the final answer, preserving the efficiency gains of parallel latent reasoning.

Experiment

The evaluation investigates LOTUS, a latent reasoning model, across accuracy, efficiency, design choices, and interpretability using GPT-2 and LLAMA backbones on GSM8K and out-of-domain math benchmarks. LOTUS matches explicit chain-of-thought accuracy at scale while prior latent methods fall behind, and it achieves a 2.5x to 6.9x speedup in the thought phase by compressing reasoning into parallel latent iterations. Ablations show that both the looped backbone and latent supervision are beneficial, with accuracy saturating at moderate latent widths and loop depths, and that inference-time adjustments to width or depth are robust without retraining. Analysis of the latent representations confirms they carry readable chain-of-thought signal, place nontrivial mass on unseen valid reasoning chains, and rely on complementary roles of step and answer supervision to form coherent reasoning states.

LOTUS nearly matches explicit chain-of-thought in-domain accuracy at all tested scales and leads the out-of-domain average at the largest scale, while prior latent methods like CODI+SIM-CoT and KaVa see their accuracy gaps widen with model size. It achieves this with a 2.5× faster thought phase than explicit CoT, compressing reasoning into parallel latent iterations, and the speedup grows to 6.9× on natural-language traces. LOTUS stays within roughly 1.5 points of explicit CoT on GSM8K at every scale and surpasses explicit CoT on the out-of-domain average at the 3B scale, whereas CODI+SIM-CoT falls 9.2 points behind at 3B. LOTUS is 2.5× faster than explicit CoT in the thought phase, with speedup increasing to 6.9× on natural-language CoT traces while maintaining accuracy on par with explicit CoT.

LOTUS achieves substantially lower thought-phase latency than explicit chain-of-thought by compressing reasoning into parallel latent iterations, while maintaining competitive accuracy. The thought phase dominates the overall latency difference, with LOTUS being 2.5 times faster than explicit CoT and 1.2 times faster than SIM-CoT in this phase. CODI is faster in the thought phase due to decoding only a single latent per step, but this comes at the cost of reduced accuracy. LOTUS thought-phase latency is 133.0 ms, compared to 338.8 ms for explicit CoT and 162.7 ms for SIM-CoT. CODI achieves the lowest thought latency at 88.2 ms but sacrifices accuracy relative to LOTUS and explicit CoT. Total inference latency per example is 181.2 ms for LOTUS versus 384.2 ms for explicit CoT, a speedup of over 2 times. Query prefill and answer phases contribute relatively small and similar latency across methods, making the thought phase the primary differentiator.

LOTUS matches explicit chain-of-thought accuracy on a natural-language GSM8K stress test with a 3B-parameter model, while reducing thought-phase latency by 6.9 times. It far exceeds other latent reasoning methods, outscoring the next best baseline by over 8 percentage points. LOTUS cuts thought-phase latency from 963.6 ms to 140.8 ms (a 6.9× speedup) while staying within 0.3 points of explicit chain-of-thought accuracy. It outperforms all other latent reasoning baselines, with the best prior method, KaVa, trailing by 8.1 percentage points (60.0% vs. 68.13%).

Post-loop supervision of the final latent state through the main language model head achieves the highest test accuracy at 70.0%, outperforming per-iteration supervision and auxiliary decoder variants. Any form of LOTUS latent supervision yields a large gain over the answer-loss-only baseline (63.3%) and the CODI-only model (64.4%). Post-loop supervision of h(R) via the main LM head achieves 70.0% accuracy, higher than per-iteration supervision's 68.2%. LOTUS-aux with per-iteration supervision through an auxiliary decoder reaches 69.9%, nearly matching the best configuration. Both answer-loss-only (63.3%) and CODI-only (64.4%) baselines fall far short of any LOTUS variant.

Increasing the number of looped refinement iterations R consistently improves accuracy on GSM8K, with steep gains from R=2 to R=5 and near saturation at R=6. The model benefits from deeper sequential refinement of the latent prefix before readout. Accuracy rises sharply from 14.6% at R=2 to 68.1% at R=5, then plateaus near 70.0% at R=6. Gains continue through R=5 before nearly saturating, indicating that additional refinement iterations beyond five provide diminishing returns.

LOTUS, a latent reasoning method that compresses chain-of-thought into parallel iterative refinement, is evaluated on GSM8K and out-of-domain tasks against explicit chain-of-thought and prior latent approaches. It matches explicit chain-of-thought accuracy while achieving up to 6.9× faster thought-phase latency, and it substantially outperforms earlier latent methods whose accuracy gaps widen with scale. Ablations show that post-loop supervision of the final latent state and increasing refinement iterations (with diminishing returns beyond five) are critical to its performance.


Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing

HyperAI Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp