← Latest papers
🤖 AI

OS-Pruner: Pruning Chains-of-Thought of Reasoning Models via Optimal Stopping

The paper introduces OS-Pruner, a lightweight plug-in framework that formulates chain-of-thought pruning as an optimal stopping problem to dynamically determine the most efficient termination point for reasoning chains, thereby reducing generation length by 20–60% with minimal accuracy loss.

Original authors: Mohammed Ehab, Aymane El Gadarri, Vivek F. Farias, Adam Jozefiak, Ciamac C. Moallemi

Published 2026-07-14
📖 4 min read☕ Coffee break read

Original authors: Mohammed Ehab, Aymane El Gadarri, Vivek F. Farias, Adam Jozefiak, Ciamac C. Moallemi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you're solving a tricky math puzzle. You start thinking out loud, writing down every step, checking your work, and maybe even re-checking it just to be sure. But then, you realize you've already found the answer! Yet, your brain (or in this case, a super-smart computer brain called a Large Language Model) keeps going. It writes more paragraphs, repeats old arguments, or does extra calculations that don't actually help. This is what the paper calls "computational overthinking." It's like a student who keeps writing on the test long after they've solved the problem, just burning time and paper without getting a better grade.

The paper introduces a new tool called OS-Pruner to fix this. Think of OS-Pruner as a super-smart "stop-watch" or a wise coach standing next to the computer. Its job is to watch the computer's thinking process step-by-step and ask a simple question after every paragraph: "Is it worth writing one more sentence, or should we just give the answer now?"

The "Stop or Go" Game

The authors realized that deciding when to stop isn't just about guessing if the answer is right. It's a balancing act.

  • The Cost: Every extra sentence the computer writes costs money (in "tokens") and time (latency).
  • The Reward: The only reason to keep writing is if there's a good chance the next sentence will make the final answer more accurate.

The paper argues that most current methods are like a strict teacher who says, "Stop after exactly 10 sentences!" or "Stop if you feel 90% confident!" The authors suggest these methods are too rigid. Instead, they frame the problem as an Optimal Stopping game. This means the computer learns to weigh the cost of writing more against the chance of getting a better answer. If the next step is unlikely to help much, the "coach" (OS-Pruner) says, "Stop! We're good!"

What They Rejected

The paper explicitly argues against a few common ideas:

  1. Fixed Budgets: They say simply forcing the model to stop after a set number of steps (like "think for exactly 5 minutes") doesn't work well because some problems are easy and need only a few steps, while others are hard and need many.
  2. Simple Confidence Checks: They show that just asking, "Are you confident enough?" isn't enough. Sometimes a model might be confident but still have a better path ahead, or it might be unsure but actually be done. The paper proves mathematically that a simple "confidence threshold" can miss out on huge improvements compared to their method.
  3. Retraining the Whole Brain: Many other methods try to retrain the entire computer model to be shorter. The authors say this is expensive and slow. OS-Pruner is a "plug-in," meaning it's a tiny add-on that doesn't need to rebuild the whole brain.

How They Tested It

The researchers didn't just guess; they ran serious experiments. They took several powerful reasoning models (like DeepSeek-R1-Distill-Qwen-7B, GPT-OSS-20B, and DRPO-7B) and tested them on math problems ranging from easy grade-school arithmetic to tough Olympiad-level challenges.

They found that by using OS-Pruner:

  • The models cut their thinking length by 20% to 60% on many tasks.
  • For example, on the GSM8K (easier math) dataset, the model DeepSeek-R1-Distill-Qwen-7B shortened its thinking by 59.3% while barely changing its accuracy (only a tiny drop of 0.7 percentage points).
  • On harder problems like AIME, the model was more careful, only cutting 6.9% of the length, because extra thinking was actually needed there.

The paper suggests that even models that were already trained to be short (like the DRPO-7B model) still suffered from overthinking, and OS-Pruner could make them even better.

The Bottom Line

The paper doesn't claim to have "solved" AI reasoning forever. Instead, it suggests that by treating the decision to stop as a smart trade-off between time and accuracy, we can make these powerful models much faster and cheaper to run without losing their smarts. It's like teaching a genius student to stop talking once they've made their point, saving everyone's time while still getting an A+.

The authors measured these results on specific datasets and found that OS-Pruner consistently sits on the "Pareto frontier"—a fancy way of saying it offers the best possible deal: the most accuracy for the least amount of writing. They even showed that you can control this trade-off with a single number (called λ\lambda), letting users decide if they want the model to be super fast (and maybe slightly less accurate) or super careful (and take a bit longer).

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →