Let's Let's Let's Let's... Understand Looping in Reasoning Models

Charilaos Pipis, Shivam Garg, Vasilis Kontonis, Vaishnavi Shrivastava, Akshay Krishnamurthy, Dimitris PapailiopoulosOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Reasoning models like DeepSeek-R1 often get stuck in "infinite loops," repeating the same text during long chains of thought. This paper identifies two primary causes—hardness of learning and temporally correlated errors—and demonstrates that while increasing temperature masks these symptoms, it often fails to fix the underlying reasoning gap.

What Problem Does This Paper Address?

The recent "reasoning" revolution in LLMs (e.g., OpenAI’s o1, DeepSeek-R1) relies on scaling inference-time compute: letting models "think" longer to solve harder problems. However, these models suffer from a frustrating failure mode: looping. At low temperatures or during greedy decoding, they often repeat the same phrases or logical steps indefinitely.

While practitioners usually "fix" this by turning up the temperature (adding randomness), this is a double-edged sword that can lead to error accumulation. This paper seeks to move beyond the "stopgap" of temperature to understand the fundamental mechanics of why these models get stuck in the first place.

Methods

The authors employ a three-pronged approach:

  1. Empirical Evaluation: They test several open-source reasoning models (DeepSeek-distilled Qwen, OpenThinker 3, Phi-4, Llama-3.1) on high-school math competition problems (AIME).
  2. Theoretical Modeling: They propose a mathematical framework (Proposition 1) to explain how "maximum log-likelihood" training can inadvertently favor easy cyclic actions over hard progress-making ones.
  3. Controlled Synthetic Experiments: They use a "Star Graph" traversal task. In this setup, a model must find a path through a graph. They introduce a "reset" action (going back to the start) to mimic backtracking in reasoning. This allows them to isolate how "hardness" and "repetition bias" trigger loops.

Datasets

  • AIME 2024 & 2025: Problems from the American Invitational Mathematics Examination were used to evaluate real-world reasoning and looping behavior.
  • Star Graph $G(n, \ell)$: A synthetic dataset where models are trained to find paths in a directed graph with $n$ spokes of length $\ell$.
  • OpenThoughts: Used to source prompts and chains for analyzing the QwQ-32B model.

Key Insights and Ideas

  • The Distillation Gap: One of the most striking findings is that distilled "student" models loop significantly more than their "teacher" models. If a student perfectly learned the teacher, their looping rates should be similar. The gap suggests that looping is a symptom of imperfect learning—the student fails to capture the nuances of the teacher's decision-making.
  • The "Hardness" Trap: If the correct next step in a proof is "hard" (meaning the model confuses it with many other similar-looking steps), the model's probability mass gets diffused across all those options. If there is an "easy" cyclic action available (like saying "Let's try again"), that easy action retains its probability mass. Under greedy decoding, the "easy" loop wins every time.
  • Temporally Correlated Errors: Transformers have an inductive bias toward repetition. If a model makes a small error at a decision point, that error tends to persist. When the model reaches a similar decision point later in the chain, it is likely to re-select the same (wrong) action, creating a loop.
  • Temperature is a Band-Aid, Not a Cure: For "hard" problems, increasing temperature helps the model stumble onto the right path eventually, but it doesn't fix the fact that the model assigned the correct path a low probability. This results in chains of thought that are much longer than they need to be.

Key Results

  • Model Size Matters: Within the same family, larger models loop less. For example, in the Qwen 2.5 family, the 1.5B model loops far more than the 32B model.
  • Looping Statistics: OpenThinker3-1.5B was found to loop in 26% of its responses under greedy decoding, whereas its teacher (QwQ-32B) showed negligible looping.
  • Graph Accuracy: In the Star Graph experiments, models at $T=0$ (greedy) often had near-zero accuracy because they were trapped in loops between the "root" and "start" nodes. Increasing temperature improved accuracy but resulted in response lengths 4x longer than a perfect learner would produce.

Limitations and Future Work

The authors acknowledge that their controlled graph demonstrations are intentionally simplified to isolate specific mechanisms. Real-world reasoning is far more complex, involving semantic nuances that a graph doesn't capture.

Future Directions: * Targeted Data Augmentation: Instead of just more data, models might need "hints" at the specific points where they find learning difficult (high-loss tokens). * Adaptive Temperature: Rather than a global setting, models could use higher randomness only at "hard" decision points to smooth out errors without risking total divergence. * Architectural Fixes: Exploring newer architectures that might be less prone to the "repetition bias" inherent in standard Transformers.

Summary updated

BibTeX
@misc{pipis2026let,
  author = {Charilaos Pipis and Shivam Garg and Vasilis Kontonis and Vaishnavi Shrivastava and Akshay Krishnamurthy and Dimitris Papailiopoulos},
  title = {{Let's Let's Let's Let's... Understand Looping in Reasoning Models}},
  year = {2026},
  url = {https://openreview.net/forum?id=lPwsHTEPQ9},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure