arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.20548cs.LGcs.AIcs.CL
收藏

$Q\sharp$:用于 LLM 后训练的、可证明最优的分布式 RL

$Q\sharp$: Provably Optimal Distributional RL for LLM Post-Training

Jin Peng Zhou, Kaiwen Wang, Jonathan Chang, Zhaolin Gao, Nathan Kallus, Kilian Q. Weinberger, Kianté Brantley, Wen Sun

AI总结:

本文提出 $Q\sharp$,用分布式 RL 学习 KL 正则化最优 $Q$ 函数以引导 LLM 后训练,在数学推理上性能更优且 KL 偏离更小,并给出可实现性下的可证明最优界。

摘要:

强化学习(RL)后训练对于 LLM 对齐和推理至关重要,但现有的基于策略的方法(如 PPO 和 DPO)可能不足以修复从预训练继承而来的捷径问题。在本工作中,我们提出 $Q\sharp$,这是一种用于 KL 正则化 RL 的基于价值的算法,通过最优正则化 $Q$ 函数来引导参考策略。我们建议在聚合的在线数据集上使用分布式 RL 来学习最优 $Q$ 函数。不同于以往使用非正则化 $Q$ 值引导模型的基于价值的基线方法,我们的方法具有理论原则,并可证明能够学习 KL 正则化 RL 问题的最优策略。在实验上,$Q\sharp$ 在数学推理基准测试中优于此前的基线方法,同时与参考策略保持更小的 KL 散度。在理论上,我们建立了从 KL 正则化 RL 到无悔在线学习的归约,给出了确定性 MDP 在仅满足可实现性条件下的首批界。得益于分布式 RL,我们的界还依赖于方差,并在参考策略具有较小方差时收敛更快。总之,我们的结果凸显出 $Q\sharp$ 是一种有效的 LLM 后训练方法,同时提供了性能提升和理论保证。代码可在 https://github.com/jinpz/q_sharp 获取。

英文摘要:

Reinforcement learning (RL) post-training is crucial for LLM alignment and reasoning, but existing policy-based methods, such as PPO and DPO, can fall short of fixing shortcuts inherited from pre-training. In this work, we introduce $Q\sharp$, a value-based algorithm for KL-regularized RL that guides the reference policy using the optimal regularized $Q$ function. We propose to learn the optimal $Q$ function using distributional RL on an aggregated online dataset. Unlike prior value-based baselines that guide the model using unregularized $Q$-values, our method is theoretically principled and provably learns the optimal policy for the KL-regularized RL problem. Empirically, $Q\sharp$ outperforms prior baselines in math reasoning benchmarks while maintaining a smaller KL divergence to the reference policy. Theoretically, we establish a reduction from KL-regularized RL to no-regret online learning, providing the first bounds for deterministic MDPs under only realizability. Thanks to distributional RL, our bounds are also variance-dependent and converge faster when the reference policy has small variance. In sum, our results highlight $Q\sharp$ as an effective approach for post-training LLMs, offering both improved performance and theoretical guarantees. The code can be found at https://github.com/jinpz/q_sharp.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑