Mitigating Overthinking through Reasoning Shaping

Feifan Song, Shaohang Wei, Bofei Gao, Yejie Wang, Wen Luo, Wei Li, Linli Yao, Weimin Xiong, Liang Chen, Tianyu Liu, Houfeng WangarXiv 2025 · OpenReview

Abstract

Large reasoning models (LRMs) boosted by Reinforcement Learning from Verifier Reward (RLVR) have shown great power in problem solving, yet they often cause overthinking: excessive, meandering reasoning that inflates computational cost. Prior designs of penalization in RLVR manage to reduce token consumption while often harming model performance, which arises from the oversimplicity of token-level supervision. In this paper, we argue that the granularity of supervision plays a crucial role in balancing efficiency and accuracy, and propose Group Relative Segment Penalization (GRSP), a step-level method to regularize reasoning. Since preliminary analyses show that reasoning segments are strongly correlated with token consumption and model performance, we design a length-aware weighting mechanism across segment clusters. Extensive experiments demonstrate that GRSP achieves superior token efficiency without heavily compromising accuracy, especially the advantages with harder problems. Moreover, GRSP stabilizes RL training and scales effectively across model sizes.

The Challenge of Overthinking

Recent breakthroughs in AI, such as DeepSeek-R1 and Kimi-k1.5, rely on test-time scaling. Instead of providing an instant answer, these models generate a "Chain-of-Thought" (CoT) to explore, self-reflect, and verify logic. While this boosts performance on complex tasks, it leads to "overthinking": the generation of meandering, repetitive, and unnecessarily long reasoning trajectories.

Existing solutions typically penalize models based on token count. However, token-level penalties are often a "blunt instrument." Because individual tokens are weakly correlated with the final reward, penalizing them can confuse the model, leading to "training collapse" where accuracy drops sharply as the model loses its logical thread in an attempt to be brief.

The difficulty of identifying redundant tokens (a) versus the clarity of identifying redundant reasoning segments (b).

Proposed Method: Group Relative Segment Penalization (GRSP)

The core innovation of this work is Reasoning Shaping, which shifts the unit of supervision from individual tokens to semantically coherent reasoning segments. The proposed GRSP framework operates through a multi-stage pipeline designed to stabilize reinforcement learning while encouraging conciseness.

The GRSP framework: from problem selection and policy rollout to segmentation, cluster-based penalization, and RLVR update.

Key Components of GRSP:

  1. Segmentation: The model's output is partitioned into steps using keyword-based matching (e.g., "Wait," "So") or a confidence-based approach that identifies "local minima" in token log-probabilities, marking where the model begins a new thought.
  2. Group Relative Penalty: Rather than using a fixed length limit, GRSP compares a group of responses to the same prompt. It calculates a z-score for the number of segments, penalizing responses that are outliers in length relative to their peers.
  3. Descending Weighting: The authors observed that stronger models tend to have more balanced segment lengths. GRSP applies heavier penalties to short segments and lighter penalties to longer ones. This discourages "spamming" many tiny, useless reasoning steps and encourages deeper, more substantial thoughts within each segment.

Experimental Evaluation

The method was evaluated using a rigorous pipeline starting with Supervised Fine-Tuning (SFT) on 27,621 problems from NuminaMATH-1.5. Reinforcement Learning was conducted on 3,200 problems from AIME and Omni-MATH, with final evaluations on MATH 500, AIMO Prize 1, and the challenging Omni-MATH 500.

Key Results:

  • Superior Efficiency: On the Omni-MATH benchmark, GRSP achieved the highest accuracy (45.60%) while using significantly fewer tokens (4866 avg. length) compared to the naive Reinforce baseline (44.20% accuracy, 5131 tokens).
  • Stability: Unlike token-level penalties that cause accuracy to plummet mid-training, GRSP’s descending weighting strategy led to steady improvements in both accuracy and conciseness.
  • Hard Task Advantage: The token-saving effect was most pronounced on the hardest problems, where overthinking is most prevalent. This suggests that as tasks scale in difficulty, the benefits of reasoning shaping increase.

Conclusion

GRSP demonstrates that efficiency and accuracy are not necessarily a zero-sum game. By aligning AI supervision with segment-level granularity—much like how humans evaluate thoughts step-by-step—the RL process becomes more stable and interpretable. While the method currently depends on the quality of initial SFT data and involves significant training compute, it provides a scalable path toward more efficient Large Reasoning Models.

Summary updated

BibTeX
@misc{song2025mitigating,
  author = {Feifan Song and Shaohang Wei and Bofei Gao and Yejie Wang and Wen Luo and Wei Li and Linli Yao and Weimin Xiong and Liang Chen and Tianyu Liu and Houfeng Wang},
  title = {{Mitigating Overthinking through Reasoning Shaping}},
  year = {2025},
  eprint = {2510.09535},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.09535},
}
Figure