Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughts
Yeskendir Koishekenov, Aldo Lipani, Nicola Cancedda
TL;DR
Encode–Think–Decode (ETD) presents a mid-training technique that amplifies latent-space reasoning by iterating over a targeted subset of layers, forming a latent encoder–thinking block–latent decoder structure without adding parameters or data. By identifying reasoning-critical layers via angular-distance analysis and knee-point detection, ETD achieves substantial improvements across 17 reasoning benchmarks, including +28.4% on GSM8K and +36% on MATH for the OLMo-2 1B base, and supports adaptive test-time depth for token-specific computation. The work demonstrates that recursive latent reasoning can enhance reasoning performance on open-source LLMs with realistic training practices, offering a practical and scalable path to stronger LLM reasoning. The adaptive-depth variant further allocates compute where needed, balancing accuracy with efficiency and expanding the applicability of latent reasoning in real-world tasks.
Abstract
Most efforts to improve the reasoning capabilities of large language models (LLMs) involve either scaling the number of parameters and the size of training data, or scaling inference computation by letting models generate complex chains of thought. Motivated by interpretability studies showing that the crucial computation required for reasoning tasks is concentrated in a limited range of layers, we introduce Encode-Think-Decode (ETD), a method that enhances the reasoning capabilities of a base model by training it to iterate over a small subset of reasoning-relevant layers during the mid-training stage. ETD amplifies latent reasoning while preserving the original architecture, parameter count, hyperparameters, and training data composition. When iterating on the selected layers at inference time, ETD models yield substantial gains on 17 reasoning benchmarks, including +28.4% relative accuracy improvement on GSM8K and +36% on MATH with the OLMo-2 1B Base model. We also explore an adaptive depth strategy that adjusts the computation per input token. Our results show that recursive latent reasoning offers a simple and effective path to stronger LLM reasoning.
