Rectifying Latent Dynamics inside Looped Transformers

Jizhihui Liu, Mingyue Guo, Jinpeng Wang, Lu Wang, Yaowei WangarXiv 2026

TL;DR

Instead of forcing AI models to write out thousands of words to "think," Looped Transformers reason silently by passing hidden token representations through the same layers repeatedly. Unfortunately, letting them loop too long causes "overthinking"—their performance peaks and then crashes. This paper diagnoses the chaotic hidden-space physics behind that crash and introduces a lightweight, 5-million-parameter "steering wheel" that keeps looped models stable, accurate, and capable of scaling to depths they were never even trained on.

What Problem Does This Paper Address?

Standard Large Language Models (LLMs) do their heavy reasoning out loud via Chain-of-Thought, generating long strings of text before arriving at an answer. Looped Transformers offer a fascinating alternative: latent reasoning. By decoupling parameter count from computation depth, they pass a token's internal representation through a shared block of layers over and over, refining the thought silently in embedding space.

The catch? Test-time scaling is broken. If you let a looped transformer run for extra iterations at inference time to solve a harder problem, it suffers from overthinking: accuracy rises, hits a ceiling, and then plummets. Furthermore, every task has a different "sweet spot" for loop count, so you can't just hardcode a single magic number.

By visualizing how tokens move through hidden space across loops, the authors uncovered two distinct failure modes:

  1. The "Wrong $\rightarrow$ Wrong" Leap (P1): On the very first loop, the model takes a massive, aggressive step. If it lands in the wrong region of the embedding space, subsequent tiny updates can't rescue it.
  2. Late-Stage Drift ("Correct $\rightarrow$ Wrong", P2): Even when a token lands in the right neighborhood early on, persistent, noisy nudges in deeper loops eventually push it right back out into error territory.
Two failure paths in latent space: an overly aggressive first leap (P1) and stochastic late-stage drift pushing tokens out of the correct region (P2).

Methods

Think of token updates across loops like gradient descent steps in an optimizer—except vanilla looped models use a fixed, blind update rule at every step. To tame these trajectories without wiping out the base model's knowledge, the authors freeze the pretrained transformer completely and attach Rectifying Latent Dynamics (RLD), a tiny regulatory system (<5M trainable parameters) trained via standard Supervised Fine-Tuning (SFT):

  • Recurrent Depth Modulator (RDM): A parallel encoder-decoder module that tracks a dedicated "depth state" alongside the token states. It acts like an adaptive learning-rate scheduler, outputting a scalar gate $\eta_t \in (0, 2)$ that scales each token's update magnitude based on both how many loops have passed and how difficult the token is.
  • Latent Residual Rectifier (LRR): A tiny 3-layer MLP placed outside the entire loop block as a residual connection. Instead of fine-tuning every internal layer, LRR acts as a course-corrector on the block's output delta, smoothing out accumulated directional errors that cause late-stage drift.
  • Update Clipping: Directly inspired by gradient clipping in deep learning optimizers, this caps the $L_2$ norm of any single token update. It physically prevents the model from trying to solve everything in one giant, reckless leap, forcing slower, multi-step latent reasoning.

Datasets

No new benchmarks were introduced; instead, the authors tested generalization by training on narrow domains and evaluating broadly across 18 language and vision-language benchmarks.

  • Training: Language models (Ouro-1.4B/2.6B) were trained only on math problems (MetaMathQA-400k). Vision-language models (LoopVL-1B) used 80k samples combining DocVQA and MetaMathQA.
  • Evaluation: Text benchmarks spanned math/reasoning (GSM8k, MATH-500, MMLU, ARC-C), QA/reading (CoQA, TriviaQA, XQuAD), and commonsense (WinoGrande). Multimodal tasks covered science/diagrams (AI2D, ScienceQA-Image), OCR/charts (InfoVQA, ChartQA, TextVQA), real-world understanding (VMCBench, RealWorldQA), and hallucination (POPE, MME).

Key Insights and Ideas

  • Vanilla looped models think backward: Intuitively, a model should take slow, careful steps on hard math problems and quick leaps on easy trivia. t-SNE visualizations revealed the exact opposite! On hard math (GSM8k), vanilla models burn almost their entire update budget on Loop 1 ("in-one-go" thinking), whereas on simple factual recall (TriviaQA), they hesitate and wander endlessly in later loops.
Figure 2. Trajectory Visualization of Different Tasks. We plot the trace of tokens from various tasks using t-SNE [40]. The number of loops is set to 16. More examples can be found in Appendix 9.2.
  • RLD flips the reasoning schedule: Visualizing RDM's learned step sizes ($\eta_t$) shows it naturally learns to assign larger, sustained weights to competition math (MATH) for deep, thoughtful reasoning, while rapidly decaying updates on simple algebra (MAWPS) for fast convergence.
  • Fix the dynamics, not the knowledge: Because RLD only regulates how tokens move while keeping the base model frozen, training strictly on math problems generalizes effortlessly to commonsense, trivia, and out-of-domain real-world images without catastrophic forgetting.

Key Results

RLD turns fragile looped models into depth-robust systems with negligible inference overhead (~0.02 GiB extra VRAM and <4% prefill latency):

  • Preventing Multimodal Collapse: When LoopVL-1B is pushed to $2\times$ its default inference depth (H4L3), vanilla ChartQA accuracy collapses by 80.7% (from 76.3 down to 14.7). With RLD, it holds steady at 72.6—preserving 95.2% of its peak default score. Visually, while vanilla attention maps scatter into background noise at deeper loops, RLD keeps visual attention locked onto prompt-relevant objects.
  • Zero-Shot Depth Extrapolation: Trained on loop depths up to 16, standard LoRA SFT suffers a 77.2% crash on GSM8k when tested at unseen depths (up to 32 loops). RLD loses just 0.8% from its peak score, and outperforms SFT by 54.6% on ChartQA at extreme unseen depths (H6L3).
Performance at seen and unseen depths showing RLD maintaining accuracy where Base Models, SFT, and DeepSupervision collapse.
  • Update Clipping Boosts Hard Math: Forcing the model to "think slowly" via update clipping yields a 27.6% relative accuracy boost on the challenging MATH-500 benchmark at deeper loop counts.
  • Faster Training: On LoopVL, RLD uses 70% fewer trainable parameters (4.9M vs. 16.5M) and cuts wall-clock training time by 45.2% compared to LoRA SFT.

Limitations and Future Work

Not explicitly discussed in a dedicated section by the authors. However, two practical constraints are apparent from the methodology:

  • Manual Hyperparameter Tuning: The update clipping threshold $c$ is not learned dynamically; it must be manually calibrated per model architecture (set to 20, 24, and 80 across their three tested models) so that roughly 10% of tokens are clipped.
  • Stabilization vs. Perpetual Improvement: While RLD occasionally boosts test-time scores above the default depth (e.g., MME rising from 1272 to 1322), its primary triumph is preventing collapse after the peak rather than guaranteeing monotonic accuracy gains as loops approach infinity.

Summary updated

BibTeX
@misc{liu2026rectifying,
  author = {Jizhihui Liu and Mingyue Guo and Jinpeng Wang and Lu Wang and Yaowei Wang},
  title = {{Rectifying Latent Dynamics inside Looped Transformers}},
  year = {2026},
  eprint = {2611.37814},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37814},
}
Figure