超越稳定性与探索的两难困境:面向LLM策略优化的环境正则化

·

研究论文 · 2026/08/25

大型语言模型(LLM)的策略优化(PO)面临稳定性与探索之间的权衡,目前通过动作侧的策略KL正则化来调节。这使实践者陷入两难:保持策略KL会约束响应行为并消耗动作侧的探索预算,而放弃它则使优化缺乏显式的漂移控制。我们提出了一种替代方案,通过将正则化移至输入侧来打破这一困境。随着训练进行,当前策略引起的训练查询分布会从其强化学习前的参考分布中不受控制地漂移。具体而言,环境正则化策略优化(ERPO)引入了一个查询KL(QKL)项来限制这种查询分布偏移,同时使用数据集静态参考派生的逐查询权重,将每个查询的更新偏向参考下典型的查询。QKL梯度仅通过查询似然流动;策略梯度估计器使用的响应得分函数不出现在QKL项中,因此QKL对响应分布没有直接的梯度压力——探索得以保留。ERPO可插入GRPO/PPO/REINFORCE风格的流程,无需额外的前向传播。在六个数学推理基准上,ERPO替代了标准的策略KL正则化,同时有效控制查询分布漂移,在高温度解码和长时程训练下实现了更强的准确性和更稳定的行为。我们的源代码可在 https://github.com/alibaba/ERPO 获取。

该论文提出了一种新颖的输入侧正则化方法,有效解决了LLM策略优化中的稳定性与探索权衡问题,实验证明在数学推理任务上性能显著提升,且实现简单、兼容现有框架,对LLM对齐研究具有重要参考价值。

Policy optimization (PO) for Large Language Models faces a stability--exploration trade-off, currently mediated by an action-side Policy-KL regularizer. This puts practitioners in a double bind: keeping Policy-KL constrains response behavior and consumes the action-side exploration budget, while dropping it leaves the optimization without an explicit drift control. We argue for an alternative that breaks the dilemma by moving regularization to the input side. As training progresses, the distribution over training queries induced by the current policy drifts unchecked from its pre-RL reference distribution. Concretely, Environment-Regularized Policy Optimization (ERPO) introduces a Query-KL (QKL) term that bounds this query distribution shift, together with a dataset-static reference-derived per-query weight that biases each per-query update toward queries typical under the reference. The QKL gradient flows strictly through the query likelihood; the response score function used by policy-gradient estimators does not appear in the QKL term, so QKL exerts no direct gradient pressure on the response distribution---exploration is preserved. ERPO plugs into GRPO/PPO/REINFORCE-style pipelines without additional forward passes. On six mathematical reasoning benchmarks, ERPO replaces the standard Policy-KL regularizer while achieving effective control over query distribution drift, delivering stronger accuracy and substantially more stable behavior under high-temperature decoding and long-horizon training.Our source code are available at https://github.com/alibaba/ERPO

阅读原文

参与讨论