OS-Pruner: Pruning Chains-of-Thought of Reasoning Models via Optimal Stopping
Mohammed Ehab, Aymane El Gadarri, Vivek Farias, Adam Jozefiak, Ciamac C Moallemi
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Reasoning, Memory & RAG › Efficient Chain-of-Thought Optimization · Type: new method · Keywords: chain-of-thought pruning, optimal stopping, reasoning efficiency, LLM inference optimization, computational cost reduction
Areas: LLM Reasoning › Efficient Reasoning › Efficient Reasoning
Summary
OS-Pruner is a lightweight plug-in that formulates chain-of-thought pruning as an optimal stopping problem, reducing reasoning length by 20-60% while preserving accuracy.
Explained to a 5-year-old
Big computer brains think step by step to answer questions. Sometimes they keep thinking too long, which makes them slow and uses a lot of energy. We made a small helper that decides when to stop thinking so it doesn't waste time. It looks at how sure the answer is and stops when it is good enough. This helps the brain answer faster without making mistakes.
Explained to a 5-year-old, longer
Big computer brains, like the ones we talk to on phones, sometimes think about problems by writing down each step. This is called chain-of-thought, and it helps them get the right answer. However, they can keep writing steps even after they already know the answer, which makes them slow and uses a lot of electricity. We wanted a way to stop them from thinking too much without hurting the answer quality. So we created a tiny tool that watches how the thinking is going and decides if more steps are needed. It looks at how confident the brain is and how long the steps have been. If it thinks the answer is already good enough, it tells the brain to stop early. This makes the brain finish faster and use less power. The tool works with many different brain models and can be added easily. It gives people control over how much thinking they want versus how fast they want the answer. In tests, the brain answered just as well while using much less time. This helps developers make smarter, cheaper AI assistants for everyone.
For a technical reader
Large language models often generate step-by-step reasoning to answer complex questions, but they can keep reasoning longer than needed. This extra reasoning adds latency and computational cost without improving answer quality. The paper proposes a lightweight plug-in that treats stopping the reasoning chain as an optimal stopping problem, learning when further steps are worth the token cost. By optimizing a utility that balances accuracy against length, the plug-in can cut reasoning steps by 20-60% while preserving performance. It can be integrated with existing models and gives users fine-grained control over the trade-off between speed and correctness.
Problem
Large language models often generate redundant reasoning steps, leading to increased latency and cost without improving answer accuracy. There is a need for a method that can dynamically decide when to stop generating reasoning steps to balance computational effort and performance.
Method
The approach formulates chain-of-thought pruning as an optimal stopping problem, learning to decide whether further reasoning is worth its token cost by optimizing a utility that trades off final answer accuracy against generated length. It is lightweight for both training and inference and provides users with fine-grained control over the reasoning-effort vs. accuracy trade-off.
Results
The approach reduces generation length by 20-60% across diverse reasoning benchmarks while maintaining near-original answer accuracy.
Contributions
It introduces a novel formulation of chain-of-thought pruning as an optimal stopping problem, enabling dynamic assessment of sufficient reasoning length. The framework is lightweight, offers fine-grained control over reasoning effort versus accuracy, and works with various base models.
Practical relevance
It enables cost-effective and faster reasoning for large language models, allowing users to reduce latency and computational expense while preserving answer quality.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction