TL;DR
Instead of generating extra tokens to "think," recurrent-depth Transformers iterate computations within latent space. This paper uncovers a two-scale geometry governing these loops: representations trace tight, spiral-like local refinements inside looped blocks, interspersed with coarse drift between distinct blocks. Exploiting this geometry, the authors introduce a decoding-free, second-order "acceleration" early-exit rule that slashes latency while matching the output quality of expensive probability-based stopping criteria.
What Problem Does This Paper Address?
Scaling test-time compute (TTC) usually involves generating longer chains of thought in natural language. However, this rapidly inflates context size, slows down generation, and consumes heavy memory bandwidth. An emerging alternative is latent-space reasoning—repeatedly running intermediate representations through recurrent Transformer layers before projecting to vocabulary tokens.
While recent work demonstrates that recurrent depth improves reasoning, two fundamental questions remained open:
- What geometric structure actually emerges in latent space when a Transformer layer is looped?
- How can the model decide on the fly when it has "thought enough" and exit the loop without wasting compute?
Existing halting mechanisms either rely on simple first-order step norms (which struggle with rotational dynamics) or compute Kullback–Leibler (KL) divergence over vocabulary logits (which requires an expensive un-embedding projection at every loop step).
Methods
The authors train a GPT-2–style decoder-only Transformer (12 layers, hidden dimension $d = 768$) where specific block groups are recurrent: layer 4 (self-loop), layers 5–6 (paired loop), and layer 7 (self-loop).
To analyze and leverage latent trajectories, the authors propose:
- Iterate Diagnostics: Tracking step updates $\Delta^{(k)}_g = x^{(k+1)}_g - x^{(k)}_g$, their norms $\|\Delta^{(k)}_g\|_2$, and consecutive-step cosine angles $\cos \angle(\Delta^{(k)}_g, \Delta^{(k-1)}_g)$.
- Drift-to-Loop Ratio (DLR): A metric measuring the magnitude of state changes across block hand-offs relative to the average update step within loops.
- Second-Order "Acceleration" Early Exit (Novel): Instead of monitoring update magnitude or vocabulary probabilities, the model tracks the change of updates: $$a^{(k)} := \|\Delta^{(k)} - \Delta^{(k-1)}\|_2$$ The model halts when $a^{(k)} < \tau$ for two consecutive steps ("two-hit check") to prevent false alarms from temporary dips. A bounded normalized variant $\hat{a}^{(k)} \in [0, 2]$ is also provided for scale invariance.
Unlike KL-divergence halting—which costs $\mathcal{O}(V)$ operations over vocabulary size $V$—acceleration is decoding-free and runs in $\mathcal{O}(d)$ per token-step.
Datasets
- Pretraining & Evaluation: The model was trained from scratch up to 60,000 iterations (300M tokens) on the FineWeb web-text dataset using identical budgets across runs.
- Evaluation: Performed on held-out FineWeb text, assessing token perplexity (PPL), cross-entropy (CE), and per-token generation latency.
- No new benchmark datasets were introduced.
Key Insights and Ideas
- Two-Scale Separation: Within a looped block, representations perform local refinements that trace a tight arc/spiral around a target state. Across blocks, representations undergo a coarser drift ($\text{DLR} \gg 1$).
- Increasing Orthogonality Over Training: As models train, consecutive loop steps become increasingly orthogonal ($\cos \angle$ settles between $0.5$ and $0.65$). The updates do not push monotonically along a single direction; they sweep around a stable-curvature trajectory.
- Why First-Order Norms Fail: Because the representation rotates along an arc, the update norm $\|\Delta^{(k)}\|_2$ plateaus at a small non-zero speed even when the trajectory has stabilized. A pure step-norm threshold either overthinks or exits prematurely.
- Why Acceleration Works: Tracking the second-order difference $\|\Delta^{(k)} - \Delta^{(k-1)}\|_2$ captures curvature stabilization. It detects when the spiral reaches steady state without needing to decode tokens.
Key Results
- Superior Latency-Quality Frontier: Under aggressive thresholds ($\tau = 10^{-5} \to 10^{-2}$), acceleration reduced generation latency from $\sim 580$ to $\sim 360$ ms/token.
- Robustness Against Quality Cliffs: While the baseline step-norm method suffered sharp degradation in perplexity and cross-entropy at higher thresholds ($\tau \ge 10^{-3}$), the acceleration-based exit maintained completely flat PPL and CE across all tested thresholds.
- Outperforming KL Exits: Acceleration achieved the same quality preservation as the KL-divergence criterion while running significantly faster, bypassing the costly vocabulary softmax at every recurrent step.
Limitations and Future Work
- Scale: Experiments were conducted on a single 124M-scale GPT-2 model trained on 300M tokens; validating whether these spiral dynamics persist in multi-billion parameter models remains open.
- Observational Nature: The findings are empirical and geometric (visualized via 2D PCA) rather than a formal mechanistic proof of latent computation.
- Fixed Architecture: Experiments evaluated one specific grouping pattern (layers 4, 5–6, 7).
- Future Directions: The authors suggest learning per-block adaptive exit thresholds, exploring dynamic-depth schedules, and combining latent acceleration exits with token-level test-time compute allocations.
Summary updated