Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Mechanical Dreams

Mechanical Dreams artwork

Why Do Reasoning Models Loop

Feb 18, 202617 minAudio
ShareXLinkedInFacebookWhatsAppEmail

In this episode: • Introduction: The Infinite Loop: Professor Norris and Linda introduce the episode's topic: the phenomenon of reasoning models getting stuck in repetitive loops. Norris jokes about his own lectures looping, while Linda introduces the paper 'Wait, Wait, Wait... Why Do Reasoning Models Loop?' and the context of Chain-of-Thought reasoning. • The Distillation Mystery: Linda presents the paper's empirical findings, highlighting that 'student' models (distilled) loop significantly more than their 'teacher' models. Norris is skeptical that a student could be worse than the teacher if trained properly, leading to a discussion on 'errors in learning.' • Mechanism 1: Risk Aversion and Hard Steps: The hosts dive into the first theoretical mechanism: Risk Aversion due to Hardness of Learning. Linda uses the 'Star Graph' analogy to explain how models prefer easy, cyclic actions (like resetting) over hard, progress-making steps when they are uncertain. • Mechanism 2: Deja Vu and Correlated Errors: They discuss the second mechanism: Inductive Bias for Temporally Correlated Errors. Norris learns why models don't just guess randomly when confused but instead make the *same* mistake repeatedly, leading to the 'Groundhog Day' effect in reasoning traces. • Temperature: A Cure or a Band-Aid?: Linda explains why turning up the 'temperature' (randomness) helps break loops but is ultimately just a stopgap that masks the underlying learning errors. They conclude with a look at how loops become self-reinforcing catalysts.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show.

## Introduction: The Infinite Loop

Linda: Welcome back to another episode of Mechanical Dreams! I'm your host, Linda, here as always with Professor Norris. Norris: Hello, everyone. And Linda, I have to ask... did we already record this intro? I have the strangest sense of deja vu. Linda: We definitely haven't, Professor. But that feeling is actually perfect for today's topic. We are diving into a paper titled "Wait, Wait, Wait... Why Do Reasoning Models Loop?" Norris: Wait, wait, wait... is that really the title? It sounds like me trying to find my glasses when they're on my head. Linda: It is! It's a new preprint from researchers at MIT, Microsoft Research, and the University of Wisconsin-Madison. And it tackles a very specific, very annoying problem with the new generation of "reasoning" models, like DeepSeek-R1 or the o1-series. Norris: Ah, yes. The models that "think" before they speak. They generate that hidden "Chain of Thought" to solve complex math problems or write code. I assume the "looping" refers to them running in circles? Linda: Exactly. Instead of solving the problem, they sometimes get stuck repeating the same few sentences over and over again. They might say, "Let me double check that," perform a calculation, say "Wait, that seems wrong," and then restart the exact same calculation. Indefinitely. Norris: Like a student who forgot to study for the final and just keeps re-writing the question on the exam paper hoping the answer will magically appear? Linda: Precisely. And it's worse when you use "greedy decoding"—that is, when you set the model's temperature to zero to make it deterministic. You'd think being deterministic would be good for math, right? Norris: In theory, yes. If I ask for the square root of 144, I don't want a "creative" answer. I want 12. But you're saying these models fall apart without a little randomness? Linda: They do. In fact, most model providers explicitly tell you to run these reasoning models at a higher temperature—adding randomness—just to stop them from getting stuck in these loops. The paper asks a fundamental question: Is randomness actually necessary for reasoning? Or is high temperature just a band-aid? Norris: I see. So we're asking if the model is actually thinking, or if we're just shaking the vending machine until the snack falls out. Linda: That is... a surprisingly accurate analogy, actually. The authors, led by Charilaos Pipis and Shivam Garg, argue that temperature is largely a stopgap. The root cause is something they call "errors in learning." Norris: Errors in learning? That sounds suspiciously like "it wasn't trained well enough." Which, to be fair, is usually the answer in deep learning. "Just add more data, Linda!" Linda: It's a bit more nuanced than that. It has to do with the specific way these models are trained, often using distillation—where a smaller student model tries to mimic a smarter teacher model. Norris: Distillation? I prefer my distillation in a glass, usually around 5 PM. But go on. Linda: We're talking about knowledge distillation, Professor. And the paper found something fascinating: the student models loop significantly more than the teachers they learned from. If the student is just copying the teacher, why does the student get stuck in a loop while the teacher moves on? Norris: Now that is interesting. If I teach a student to solve a differential equation, and I don't loop, they shouldn't loop either. Unless... they didn't actually understand *why* I took the next step. Linda: Bingo. And that brings us to the first big mystery of the episode.

## The Distillation Mystery

Linda: So, let's look at the data. The researchers tested a whole suite of open reasoning models—DeepSeek's distilled Qwen models, the OpenThinker family, and Phi-4. They threw them at the American Invitational Mathematics Examination, or AIME. Norris: AIME? High school math contests. Nasty stuff. I still have nightmares about combinatorics problems involving red and blue balls in urns. Linda: You and me both. Now, here is the kicker. They compared the 'student' models—the smaller ones trained by distilling the reasoning traces of a larger 'teacher'—against the teachers themselves. Norris: Right. Standard practice. You take a massive model like QwQ-32B, generate a bunch of smart solutions, and train a tiny 1.5 billion parameter model to predict those tokens. It's like copying off the smart kid in class. Linda: Exactly. But when they ran the student model, specifically OpenThinker-1.5B, using greedy decoding—so, no randomness—it looped in 30% of its responses. Norris: 30%? That is... shockingly high. One in three times it just starts babbling the same sentence forever? What about the teacher? Linda: The teacher, QwQ-32B, barely looped at all on the same problems. Maybe 1 or 2 percent. Norris: Okay, hold on. This doesn't make sense. If I am sitting next to the smartest kid in class, and I am copying his answers word-for-word, I might not understand *why* the answer is 42, but I should definitely write down '42'. I shouldn't write '42, wait, 42, wait, 42' until the bell rings. Linda: That's the mystery! If the student perfectly learned the teacher's distribution, it wouldn't loop. The fact that it does loop implies there is a systematic mismatch. The paper calls this 'errors in learning.' Norris: "Errors in learning." That sounds like a polite way of saying the model is too small to contain the teacher's brilliance. Like trying to fit the Encyclopedia Britannica into a fortune cookie. Linda: That's part of it—capacity is definitely a factor. They found that larger students loop less than smaller students. But it's not just capacity. It's about *what* happens when the model faces a hard step it can't quite replicate. Norris: So it's not just forgetting facts; it's getting confused at decision points? Linda: Yes. And crucially, they found that harder problems induce significantly more looping. When the path forward is clear, the student copies fine. But when the reasoning gets tricky—say, a complex proof step where the teacher had to make a subtle logical leap—the student stumbles. Norris: I see. The teacher makes a leap of intuition based on its massive training. The student sees the leap, tries to learn it, but the connection is too faint. It's like cargo cult reasoning. It mimics the form but misses the substance. Linda: And when it misses the substance, it defaults to something safer. Or simpler. And that, Professor, leads us directly into *why* these errors turn into infinite loops instead of just wrong answers. Norris: Right. Being wrong is one thing. Being repetitive is just annoying. Why not just guess and fail? Linda: Because of risk aversion. Or at least, a mathematical version of it.

## Mechanism 1: Risk Aversion and Hard Steps

Linda: So, let's talk about 'Risk Aversion due to Hardness of Learning.' It sounds complicated, but the authors use a really elegant synthetic task to demonstrate it: a star graph. Norris: A star graph? Like a hub and spoke model? I assume we start in the middle? Linda: Exactly. Imagine a central root node with, say, five different paths branching out. Each path leads to a leaf node. One of those leaves is the goal. The others are dead ends. Norris: Okay, simple enough. I'm standing in the middle of a roundabout with five exits. I need to pick the right one to get home. Linda: Right. Now, imagine a 'teacher' who knows exactly which exit to take. It takes the correct exit 70% of the time. But sometimes, 30% of the time, it just decides to reset and stay in the center for a moment, maybe to rethink. Norris: A reset action. Like saying, 'Wait, let me double check that' in a chain of thought. Linda: Exactly. Now, we train a student model on this teacher's behavior. The problem is, learning *which* specific exit is the correct one is hard. To the student, all five exits look identical. Norris: Ah, I see where this is going. If the student can't distinguish the correct exit from the four wrong ones, it gets confused. Linda: Right. The teacher puts 70% probability on the *one* correct exit. But the student, unable to figure out which one that is, has to hedge its bets. It smears that 70% probability across all five exits. Norris: So each exit gets... what, 14%? That's not much confidence. Linda: Exactly! 14% for each exit. But remember the reset action? The 'Wait, let me think' action? Norris: That one is easy to learn. It's just 'stay here.' It doesn't require distinguishing between five different identical-looking roads. Linda: Precisely. The student learns the reset action perfectly. It assigns it the full 30% probability the teacher did. Norris: Oh, dear. I see the trap. The correct action—taking the right exit—now has only 14% probability because the student is confused. But the reset action has 30% probability because it's easy. Linda: And since we are using greedy decoding... Norris: The model picks the highest probability action! It picks the 30% reset. It says, 'Wait, let me think.' Then it's back in the center. It looks at the options again. It's still confused. The probabilities are still 14% versus 30%. So it picks 'Wait, let me think' again. Linda: And again. And again. It's an infinite loop. Norris: That is fascinating. The model isn't broken, per se. It's just... rationally risk-averse? It's choosing the 'safest' bet because the 'correct' bet is too hard to distinguish from the wrong ones. Linda: The authors call this 'Risk Aversion.' The hardness of learning the correct action dilutes its probability mass, leaving the easy, cyclic action as the winner by default. Norris: So when I see a model saying 'Let me re-read the problem' ten times in a row, it's basically saying, 'I know how to read, but I have absolutely no idea how to solve this, so I'll just keep reading because that's the only thing I'm sure about.' Linda: That is a perfect summary. It clings to the cyclic action because it's the only distinct signal it successfully learned amidst the noise. Norris: So, simply making the model bigger helps because a bigger brain can distinguish the exits better? Linda: Yes, exactly. A larger capacity model might be able to spot the subtle clue that makes Exit 3 the right one, restoring its probability to 70%. But for the smaller student, it's just a blur. Norris: But wait, Linda. You mentioned there was a *second* mechanism. Surely sometimes the model *does* guess an exit? It can't just be risk aversion every time. Linda: You're right. Sometimes there is no hard step. Sometimes the model is just guessing. But even then, it doesn't guess randomly. It guesses... predictably.

## Mechanism 2: Deja Vu and Correlated Errors

Linda: So, we've covered risk aversion—where the model plays it safe because the right answer is too hard to find. But the authors found a second mechanism that's even more insidious. It happens even when the task isn't hard at all. Norris: Even when it's easy? If the answer is obvious, why would the model loop? That's like forgetting how to open a door you've walked through a thousand times. Linda: Well, imagine our Star Graph again. But this time, let's say there is no 'correct' exit. The teacher just explores. It picks one of the five exits completely at random—20% probability for each. Norris: Okay, a random walk. A coin flip, essentially. The student should just learn to flip a coin. Linda: Ideally, yes. It should learn a perfect 20% probability for every exit. But neural networks aren't perfect. They have small estimation errors. Maybe the student learns 20.5% for Exit A, and 19.5% for Exit B. Norris: That's a negligible difference. Who cares about half a percent? Linda: Under greedy decoding, that half a percent is everything. If the model is at the center, and Exit A is 20.5%, it picks Exit A. Every. Single. Time. Norris: I see. It picks Exit A, walks down the hall, finds a dead end, and comes back to the center. And since its brain hasn't changed, Exit A still looks like the best option. Linda: Exactly! The authors call this 'Inductive Bias for Temporally Correlated Errors.' The errors aren't random noise that cancels out. They are fixed biases in the model's weights. So, the model makes the same mistake, in the same context, over and over again. Norris: It's literally Groundhog Day. The model steps in the puddle, ruins its shoes, goes to sleep, wakes up, and steps in the exact same puddle because it thinks, 'Hey, that looks like a nice dry spot.' Linda: And we see this in real reasoning traces, too! The paper shows examples where a model tries a math proof, makes a subtle logical error, hits a contradiction later on, and backtracks. It says, 'Wait, that didn't work, let me try again.' But then it proceeds to make the exact same logical error. Norris: Because to the model, that error still looks like the most probable next token. It doesn't have a working memory of 'I just tried this and failed' unless it explicitly wrote that down in the context. Linda: And even if it *is* in the context, this inductive bias can be so strong that it overrides the context. The model trusts its weights more than its own history. Norris: This explains why temperature helps, doesn't it? If you turn up the heat, you shake the model out of that 20.5% rut. Linda: Yes, but is that really a solution? Or are we just getting lucky?

## Temperature: A Cure or a Band-Aid?

Linda: So, we are left with the big question: Does turning up the temperature—adding randomness—actually fix these problems? The short answer is: sort of, but not really. Norris: Well, it stops the looping, doesn't it? If I'm stuck repeatedly choosing that 20.5% wrong exit, randomness forces me to eventually try the 19.5% exit next to it. Linda: It does break the loop, yes. But the paper argues it’s a stopgap, not a cure. Think about it: raising the temperature doesn't teach the model the correct path. It just forces it to stumble around blindly until it gets lucky. Norris: Ah, I see. It's the difference between knowing the way home and just driving randomly at high speed until you recognize your driveway. Linda: Exactly. And the data proves this. Even when high temperature fixes the looping, the student models produce reasoning chains that are significantly longer than the teacher's. Norris: Because they are wandering. The teacher takes the direct route. The student takes the scenic route through every wrong answer first. Linda: Right. So while randomness is a useful tool for exploration, relying on it to fix broken reasoning is inefficient. Ideally, we want models that know when to explore and when to execute, not models we have to shake just to keep them moving. Norris: Is there any danger to just letting them loop a little? Maybe they figure it out eventually? Linda: Actually, there is a danger. The researchers found something they call a 'catalyst for looping.' As the model repeats itself, it actually becomes *more* confident in the repetition. Norris: Oh, that is tragic. It's self-reinforcing delusion. "I said it three times, so it must be true." Linda: Precisely. They looked at the probability of the repeating tokens. At the start of a loop, the probabilities look normal. But after a few repetitions, the probability of the looping text shoots up toward 100%. Norris: It digs its own grave. The longer it stays in the loop, the steeper the walls become. Linda: Which makes it nearly impossible to escape without that external jolt of high temperature. So, the takeaway from the paper is clear: we can't just rely on inference-time hacks. We need better training. Norris: Better teachers, or perhaps smarter students. Or at least, students who know when to raise their hand and say, 'I'm stuck,' instead of pretending to read the textbook over and over. Linda: Exactly. The authors suggest things like targeted data augmentation—giving the student hints at those specific hard decision points so they don't default to the easy cyclic actions. Norris: Well, frankly, I'm just relieved to know that my occasional tendency to repeat stories at dinner parties isn't a sign of age, but merely a 'temporally correlated error' in my neural weights. Linda: I'll be sure to tell the department head that, Professor. That's all for this week on Mechanical Dreams. We'll see you next time—assuming we don't get stuck in a loop ourselves. Norris: See you next time! See you next time! See you... just kidding. Goodbye, everyone.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. You don’t need long context

    Nov 12, 202620 minAudio

    In this episode: • The Context Window Arms Race: Professor Norris and Linda introduce the episode and discuss a new NVIDIA paper challenging the necessity of massive context windows, highlighting the hidden...

    Credit the people on this episode

  2. Scaling Hierarchical Networks

    Nov 11, 202621 minAudio

    In this episode: • Intro and The Bitter Lesson: Introducing the podcast and the Cartesia paper on Hierarchical Networks. • Scaling Ladders and The BPE Comparison: Discussing the compute efficiency gains of 1-stage...

    Credit the people on this episode

  3. Perturbing Inputs Improves Pretraining Distillation

    Nov 10, 202621 minAudio

    In this episode: • Introduction and Standard Distillation: Professor Norris and Linda introduce the podcast and set the baseline for standard knowledge distillation in language models. • The Core Idea of Perturbed...

    Credit the people on this episode

  4. Why is AI-generated language so hard to understand

    Nov 9, 202620 minAudio

    In this episode: • Introduction: The Reader-Patience Budget: Professor Norris and Linda introduce the episode's topic, discussing the growing sentiment that AI-generated text is becoming overly convoluted. • The...

    Credit the people on this episode

  5. Muse Glimmer 30B

    Nov 8, 202622 minAudio

    In this episode: • Introduction & Paper Overview: Professor Norris and Linda introduce the episode and the Muse Glimmer 30B paper, outlining its goal of bringing agentic capabilities to consumer hardware. • Architecture...

    Credit the people on this episode