DLER: 正确实施长度惩罚——通过强化学习激励每Token更高的智能
DLER: Doing Length pEnalty Right - Incentivizing More Intelligence per Token via Reinforcement Learning
AI总结:
DLER通过批量奖励归一化、更高裁剪、动态采样和简单截断长度惩罚,在强化学习中正确实施长度惩罚,将输出长度削减超70%并超越基线准确性,同时提升测试时扩展效率。
摘要:
推理语言模型(如OpenAI-o1、DeepSeek-R1和Qwen)通过扩展思维链实现了强大的性能,但常常生成不必要地冗长的输出。最大化每Token的智能——即相对于响应长度的准确性——仍然是一个未解决的问题。我们重新审视了使用最简单长度惩罚(截断)的强化学习(RL),并表明准确性下降并非源于缺乏复杂的惩罚,而是源于RL优化不足。我们识别出三个关键挑战:(i)优势估计中的大偏差,(ii)熵崩溃,以及(iii)稀疏的奖励信号。我们通过“正确实施长度惩罚”(DLER)来解决这些问题,这是一种结合了批量奖励归一化、更高裁剪、动态采样和简单截断长度惩罚的训练方案。DLER实现了最先进的准确性-效率权衡,将输出长度削减超过70%,同时超越了所有先前基线的准确性。它还改善了测试时扩展:与DeepSeek-R1-7B相比,DLER-7B并行生成多个简洁响应,准确性提高28%,且延迟更低。我们进一步引入了难度感知的DLER,它自适应地收紧对较简单问题的截断,以获取额外的效率提升。我们还提出了一种更新选择性合并方法,在保留基线准确性的同时保持DLER模型的简洁推理能力,这对于RL训练数据稀缺的场景非常有用。
英文摘要:
Reasoning language models such as OpenAI-o1, DeepSeek-R1, and Qwen achieve strong performance via extended chains of thought but often generate unnecessarily long outputs. Maximizing intelligence per token--accuracy relative to response length--remains an open problem. We revisit reinforcement learning (RL) with the simplest length penalty--truncation--and show that accuracy degradation arises not from the lack of sophisticated penalties but from inadequate RL optimization. We identify three key challenges: (i) large bias in advantage estimation, (ii) entropy collapse, and (iii) sparse reward signal. We address them with Doing Length pEnalty Right (DLER), a training recipe combining batch-wise reward normalization, higher clipping, dynamic sampling, and a simple truncation length penalty. DLER achieves state-of-the-art accuracy--efficiency trade-offs, cutting output length by over 70 percent while surpassing all previous baseline accuracy. It also improves test-time scaling: compared to DeepSeek-R1-7B, DLER-7B generates multiple concise responses in parallel with 28 percent higher accuracy and lower latency. We further introduce Difficulty-Aware DLER, which adaptively tightens truncation on easier questions for additional efficiency gains. We also propose an update-selective merging method that preserves baseline accuracy while retaining the concise reasoning ability of the DLER model, which is useful for scenarios where RL training data is scarce.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。