更短但不更差:通过易样本作为长度正则化器进行节俭推理
Shorter but not Worse: Frugal Reasoning via Easy Samples as Length Regularizers in Math RLVR
AI总结:
通过易样本作为长度正则化器,使模型在不增加输出长度的情况下更高效地解决复杂问题。
摘要:
大型语言模型(LLMs)在逐步推理中训练时常常变得过于冗长,导致推理成本增加。标准的可验证奖励强化学习(RLVR)管道会过滤掉“简单”问题以提高训练效率,使模型主要在需要更长推理链的困难问题上训练。这会使得输出长度分布向上倾斜,导致模型将“思考更长”与“思考更好”混淆。在本工作中,我们表明保留并适度加权中等难度的问题可作为隐含的长度正则化器。让模型接触可解决的短链任务会约束其输出分布,并防止过度冗长。结果是“自由涌现的简洁性”:模型在没有显式长度惩罚的情况下学会解决更困难的问题,而不会增加输出长度。使用此方法在Qwen3-4B-Thinking-2507(带有16000个token限制)上的RLVR实验实现了基线的AIME25准确率,同时生成的解决方案平均长度约为原来的两倍。代码可在GitHub上获得,数据集和模型在Hugging Face上提供。
英文摘要:
Large language models (LLMs) trained for step-by-step reasoning often become excessively verbose, raising inference cost. Standard Reinforcement Learning with Verifiable Rewards (RLVR) pipelines filter out ``easy'' problems for training efficiency, leaving the model to train primarily on harder problems that require longer reasoning chains. This skews the output length distribution upward, resulting in a \textbf{model that conflates ``thinking longer'' with ``thinking better''}. In this work, we show that retaining and modestly up-weighting moderately easy problems acts as an implicit length regularizer. Exposing the model to solvable short-chain tasks constrains its output distribution and prevents runaway verbosity. The result is \textbf{\emph{emergent brevity for free}}: the model learns to solve harder problems without inflating the output length, \textbf{ despite the absence of any explicit length penalization}. RLVR experiments using this approach on \textit{Qwen3-4B-Thinking-2507} (with a 16k token limit) achieve baseline pass@1 AIME25 accuracy while generating solutions that are, on average, nearly twice as short. The code is available at \href{https://github.com/MBZUAI-Paris/Frugal-AI}{GitHub}, with datasets and models on \href{https://huggingface.co/collections/MBZUAI-Paris/k2-think-mini-68dcfa8b114686a4bd3dc2bc}{Hugging Face}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。