Fast on the Easy, Deep on the Hard: Efficient Reasoning via Powered Length Penalty
Zehui Ling, Deshu Chen, Hongwei Zhang, Yifeng Jiao, Xin Guo, Yuan Cheng
TL;DR
This work addresses efficient reasoning in large language models by making outputs concise for easy questions while preserving depth for hard ones. It introduces a Powered Length Penalty (PLP) integrated into reinforcement learning (REINFORCE with RLOO) to couple length with question difficulty in the reward, encouraging brevity on simple problems and full reasoning on challenging ones. Empirical results on GSM8K, MATH500, and AIME2024 show substantial token reductions with maintained or improved accuracy on easier tasks and gains on harder tasks across multiple model variants. The approach offers a practical path to faster, resource-efficient reasoning without sacrificing correctness, with potential applicability beyond math benchmarks.
Abstract
Large language models (LLMs) have demonstrated significant advancements in reasoning capabilities, performing well on various challenging benchmarks. Techniques like Chain-of-Thought prompting have been introduced to further improve reasoning. However, these approaches frequently generate longer outputs, which in turn increase computational latency. Although some methods use reinforcement learning to shorten reasoning, they often apply uniform penalties without considering the problem's complexity, leading to suboptimal outcomes. In this study, we seek to enhance the efficiency of LLM reasoning by promoting conciseness for simpler problems while preserving sufficient reasoning for more complex ones for accuracy, thus improving the model's overall performance. Specifically, we manage the model's reasoning efficiency by dividing the reward function and including a novel penalty for output length. Our approach has yielded impressive outcomes in benchmark evaluations across three datasets: GSM8K, MATH500, and AIME2024. For the comparatively simpler datasets GSM8K and MATH500, our method has effectively shortened output lengths while preserving or enhancing accuracy. On the more demanding AIME2024 dataset, our approach has resulted in improved accuracy.
