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.
Foundations of Multivariate Distributional Reinforcement Learning
Mila — Québec AI Institute(米拉-魁北克人工智能研究所);McGill University(麦吉尔大学);Google DeepMind(谷歌DeepMind);Gatsby Unit, University College London(伦敦大学学院盖茨比计算神经科学单元)
Distributional Biases in Post-Training: A Markovian Analysis of Reasoning Trajectories
City University of Hong Kong(香港城市大学);Center for Advanced Intelligence Project, RIKEN(RIKEN高级智能研究中心);The Institute of Statistical Mathematics(统计数学研究所);University of Sydney(悉尼大学);CFAR and IHPC, Agency for Science, Technology and Research (A*STAR)(A*STAR的CFAR和IHPC);Nanyang Technological University(南洋理工大学);The University of Tokyo(东京大学)
A Finite Sample Analysis of Distributional TD Learning with Linear Function Approximation
School of Mathematical Sciences, Peking University(北京大学数学科学学院);School of Statistics and Data Science, Shanghai University of Finance and Economics(上海财经大学统计与数据科学学院)
Statistical Efficiency of Distributional Temporal Difference Learning and Freedman's Inequality in Hilbert Spaces
School of Mathematical Sciences, Peking University(北京大学数学科学学院);School of Statistics and Data Science, Shanghai University of Finance and Economics(上海财经大学统计与数据科学学院)
Pessimistic Minimax Value Iteration: Provably Efficient Equilibrium Learning from Offline Datasets
The Hong Kong University of Science and Technology(香港科技大学);Peking University(北京大学);Fudan University(复旦大学);Northwestern University(西北大学);Yale University(耶鲁大学)
Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking
Princeton University(普林斯顿大学);Stanford University(斯坦福大学);Toyota Technological Institute at Chicago(芝加哥丰田理工学院);University of Washington(华盛顿大学);University of Michigan(密歇根大学)
Wasserstein Policy Learning for Distributional Outcomes
School of Computing and Information Technology, Great Bay University(广东大湾大学计算机与信息科技学院);Department of Data Science, City University of Hong Kong(香港城市大学数据科学系);School of Statistics and Data Science & Institute of Big Data Research, Shanghai University of Finance and Economics(上海财经大学统计与数据科学学院及大数据研究院)