2025-05-29 · 专家 · 机器学习 · 自然语言处理

The Entropy Mechanism of Reinforcement Learning for Reasoning Language Models

该论文提出了一种通过控制策略熵来克服强化学习在大型语言模型推理中遇到的熵坍塌问题的方法,通过限制高协方差标记的更新来促进探索并提高下游性能。

更新于 2025-05-29。作者:Ganqu Cui、Yuchen Zhang、Jiacheng Chen、Lifan Yuan、Zhi Wang、Yuxin Zuo、Haozhan Li、Yuchen Fan、Huayu Chen、Weize Chen、Zhiyuan Liu、Hao Peng、Lei Bai、Wanli Ouyang、Yu Cheng、Bowen Zhou、Ning Ding。

中文摘要

本文旨在克服将强化学习(RL)应用于大型语言模型(LLMs)推理时的一个主要障碍,即策略熵的崩溃。这种现象在缺乏熵干预的大量RL运行中持续出现,策略熵在早期训练阶段急剧下降,这种降低的探索能力总是伴随着策略性能的饱和。在实践中,我们建立了熵H与下游性能R之间的转换方程R=-a*e^H+b。这一经验法则强烈表明,策略性能是从策略熵中权衡出来的,因此被其耗尽所瓶颈化,上限是完全可预测的H=0,R=-a+b。我们的发现要求进行熵管理,以实现RL的可扩展计算连续探索。为此,我们从理论和实证两方面研究了熵动力学。我们的推导强调,策略熵的变化是由动作概率与logits变化之间的协方差驱动的,这在使用类似策略梯度的算法时与其优势成正比。实证研究表明,协方差项和熵差异的值完全匹配,支持了理论结论。此外,协方差项在整个训练过程中大多保持正值,进一步解释了为什么策略熵会单调递减。通过理解熵动力学的机制,我们激励通过限制高协方差标记的更新来控制熵。具体来说,我们提出了两种简单而有效的技术,即Clip-Cov和KL-Cov,分别对高协方差标记进行剪辑和应用KL惩罚。实验表明,这些方法鼓励探索,从而帮助策略逃离熵崩溃,实现更好的下游性能。

英文摘要

This paper aims to overcome a major obstacle in scaling RL for reasoning with LLMs, namely the collapse of policy entropy. Such phenomenon is consistently observed across vast RL runs without entropy intervention, where the policy entropy dropped sharply at the early training stage, this diminished exploratory ability is always accompanied with the saturation of policy performance. In practice, we establish a transformation equation R=-a*e^H+b between entropy H and downstream performance R. This empirical law strongly indicates that, the policy performance is traded from policy entropy, thus bottlenecked by its exhaustion, and the ceiling is fully predictable H=0, R=-a+b. Our finding necessitates entropy management for continuous exploration toward scaling compute for RL. To this end, we investigate entropy dynamics both theoretically and empirically. Our derivation highlights that, the change in policy entropy is driven by the covariance between action probability and the change in logits, which is proportional to its advantage when using Policy Gradient-like algorithms. Empirical study shows that, the values of covariance term and entropy differences matched exactly, supporting the theoretical conclusion. Moreover, the covariance term stays mostly positive throughout training, further explaining why policy entropy would decrease monotonically. Through understanding the mechanism behind entropy dynamics, we motivate to control entropy by restricting the update of high-covariance tokens. Specifically, we propose two simple yet effective techniques, namely Clip-Cov and KL-Cov, which clip and apply KL penalty to tokens with high covariances respectively. Experiments show that these methods encourage exploration, thus helping policy escape entropy collapse and achieve better downstream performance.

解读

一句话总结

该论文提出了一种通过控制策略熵来克服强化学习在大型语言模型推理中遇到的熵坍塌问题的方法,通过限制高协方差标记的更新来促进探索并提高下游性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源