Stepwise Penalization for Length-Efficient Chain-of-Thought Reasoning

Xintong Li, Sha Li, Rongmei Lin, Hongye Jin, Linwei Li +8 more
2/27/2026
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Large reasoning models improve with more test-time computation, but often overthink, producing unnecessarily long chains-of-thought that raise cost without improving accuracy. Prior reinforcement learning approaches typically rely on a single outcome reward with trajectory-level length penalties, which cannot distinguish essential from redundant reasoning steps and therefore yield blunt compression. Although recent work incorporates step-level signals, such as offline pruning, supervised data construction, or verifier-based intermediate rewards, reasoning length is rarely treated as an explicit step-level optimization objective during RL. We propose Step-wise Adaptive Penalization (SWAP), a fine-grained framework that allocates length reduction across steps based on intrinsic contribution. We estimate step importance from the model's on-policy log-probability improvement toward the correct answer, then treat excess length as a penalty mass redistributed to penalize low-importance steps more heavily while preserving high-importance reasoning. We optimize with a unified outcome-process advantage within group-relative policy optimization. Extensive experiments demonstrate that SWAP reduces reasoning length by 64.3% on average while improving accuracy by 5.7% relative to the base model.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026stepwise,
  title  = {Stepwise Penalization for Length-Efficient Chain-of-Thought Reasoning},
  author = {Xintong Li and Sha Li and Rongmei Lin and Hongye Jin and Linwei Li and Hejie Cui and Sarah Zhang and Chia-Yuan Chang and Kewei Cheng and Besnik Fetahu and Priyanka Nigam and Jingbo Shang and Bing Yin},
  year   = {2026},
  eprint = {2603.00296},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.00296v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.00296.svg)](https://codeofpaper.com/paper/2603.00296)

Discussion