Manuscript Offprint

arXiv:2610.11472

From Chain-of-Thought to Loops: Non-Autoregressive Latent Reasoning via Looped Transformers

Gerard Grau García, Arnau Padrés Masdemont, Niccolò Grillo, Jordi Ros-Giralt, Arash Behboodi, Victor Conchello Vendrell

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Chain-of-thought (CoT) reasoning often improves language-model performance by giving models additional computation before answering. However, explicit CoT expresses this computation as a sequence of autoregressively generated tokens. Latent reasoning replaces these tokens with compact continuous states, but most autoregressive latent-reasoning methods retain a left-to-right dependency among latent vectors. We introduce LLoCoT: a looped latent-reasoning framework that replaces left-to-right latent generation with iterative refinement of a compact latent workspace. A shared transformer is reapplied for a small number of refinement iterations, jointly updating the latent slots based on the prompt and the evolving workspace state. Using the refined state, a probabilistic head predicts a distribution from which latent tokens are sampled in parallel and used to condition an autoregressive decoder for answer generation. Training uses continuous representations derived from explicit CoT together with a final-answer prediction loss and likelihood-based supervision of the latent states. Across HumanEval and MBPP, LLoCoT achieves the highest mean among the evaluated methods, performing on par in accuracy with Reasoning SFT, our explicit-CoT baseline, while outperforming the base model, answer-only SFT and NF-CoT. Relative to Reasoning SFT, LLoCoT reduces time to the first answer token by approximately 36×36\times and reasoning-phase latency by approximately 42×42\times, while increasing end-to-end throughput by 9.2%. This design replaces serial thought generation with parallel latent-slot refinement while retaining probabilistic latent modeling and autoregressive answer decoding.

1 INTRODUCTION

Test-time computation has become an important means of improving the reasoning capabilities of language models. Rather than producing an answer immediately, a model can devote additional computation to decomposing a problem, developing intermediate conclusions, and revising its solution. Chain-of-thought (CoT) reasoning realizes this process by generating an explicit sequence of reasoning tokens before the final answer. However, CoT ties reasoning computation to autoregressive language generation, as every intermediate thought must be expressed in natural language and generated after all preceding tokens. Increasing the amount of reasoning therefore requires extending a strictly sequential trace, even when the intermediate computation is needed only internally and does not need to be communicated to the user.

Continuous latent reasoning relaxes the requirement that intermediate computation be represented as text. A reasoning trace can be encoded into a compact collection of continuous vectors that act as learned aggregators of information from the complete trace. These vectors need not correspond to individual words, sentences, or human-interpretable steps. However, most existing latent-reasoning approaches generate their latent states autoregressively. LLoCoT, our architecture, is motivated by the intuition that latent thoughts summarizing a complete reasoning trace need not follow a fixed

*Correspondence to: vconchellovendrell@g.harvard.edu, apadres@qti.qualcomm.com and gerardg@mit.edu. Work done while at Qualcomm AI Research.

linguistic order. Instead of forming a sequence that is extended from left to right, they can constitute a shared workspace that is repeatedly refined through parameter-shared computation, in the spirit of TRM (Jolicoeur-Martineau, 2025).

We instantiate this idea using continuous latent targets derived from NF-CoT (Tu et al., 2026). LLoCoT initializes a fixed set of learned hidden-state slots and repeatedly refines them with a shared transformer. At each non-final iteration, the predicted latent means are projected back into the workspace to guide the next refinement step. After the final iteration, all latent thoughts are sampled jointly from the predicted Gaussian distribution and used to condition autoregressive answer generation. The model is trained with a likelihood objective on the final latent predictions, auxiliary supervision that aligns intermediate predictions with the same complete-trace target, and a cross-entropy objective for answer generation. A frozen VAE and a conditional flow construct these continuous training targets, but neither is required at inference time.

Across several coding benchmarks, we find that LLoCoT performs on par with reasoning SFT while outperforming the base model, answer-only supervised fine-tuning, and NF-CoT on aggregate. In particular, LLoCoT consistently improves over NF-CoT, indicating that iterative refinement of a shared latent space provides an effective alternative to autoregressive latent-thought generation. In terms of efficiency, LLoCoT substantially shortens the reasoning phase relative to both textual chain-of-thought and autoregressive latent reasoning. Its parallelizable refinement process brings the time to the first answer token close to that of direct answer generation and yields the lowest end-to-end latency among the evaluated methods.

We summarize our contributions as follows:

• We introduce LLoCoT, an architecture that replaces autoregressive latent-thought generation with recurrent refinement of a fixed-size latent workspace.

• We show that LLoCoT performs on par with Reasoning SFT while outperforming the base model, answer-only supervised fine-tuning and NF-CoT.

• We show that LLoCoT substantially reduces reasoning latency relative to both textual and autoregressive latent reasoning, yielding the lowest end-to-end latency among the evaluated methods.

Figure

Figure 1: Overview of the LLoCoT architecture. A shared transformer repeatedly refines K loop hidden states, with each non-final Gaussian mean providing feedback to the next loop. The final Gaussian head generates all final latent thoughts jointly for autoregressive answer decoding; VAE-derived targets and auxiliary intermediate supervision are used only during training.

References (30)