ShorterBetter: Guiding Reasoning Models to Find Optimal Inference Length for Efficient Reasoning
Jingyang Yi, Jiazheng Wang, Sida Li
TL;DR
This work tackles the inefficiency of reasoning traces in large language models by enabling autonomous discovery of optimal inference length. It introduces Sample Optimal Length (SOL), a self-supervised reward based on the shortest correct reasoning among multiple samples, and optimizes with Group Relative Policy Optimization to encourage concise yet accurate CoTs. Empirically, ShorterBetter achieves substantial output-length reductions (roughly 50-80%) on 1.5B/7B base models while preserving or improving accuracy across in-domain math tasks and maintaining competitive performance on out-of-domain benchmarks. The paper also introduces reasoning-structure analyses and ablations showing that SOL improves the quality and efficiency of reasoning traces, with robustness validated by human and automated evaluations.
Abstract
Recent models such as OpenAI o1 and DeepSeek-R1 have demonstrated strong performance on reasoning-intensive tasks by generating extended Chain-of-Thought (CoT) traces. While longer reasoning helps with thorough exploration of solution paths for complex problems, it also often leads to inefficient and redundant outputs--a phenomenon commonly described as overthinking. In this paper, we propose ShorterBetter, a simple yet effective reinforcement learning method that enables reasoning models to learn their own optimal CoT lengths without manual supervision. We define the Sample Optimal Length (SOL) as the length of the shortest correct response among multiple generations, which serves as a dynamic reward signal to guide the model toward efficient reasoning. Applied to DeepSeek-Distill-Qwen-1.5B/7B as base models, ShorterBetter achieves 50%-80% reduction in output lengths in both in-domain and out-of-domain reasoning tasks while maintaining accuracy. Our reasoning trace analysis shows that ShorterBetter refines the structure of the reasoning traces by reducing unnecessary repetition, excessive self-verification, and over-exploration of alternatives.
