rePIRL: Learn PRM with Inverse RL for LLM Reasoning
Xian Wu, Kaijie Zhu, Ying Zhang, Lun Wang, Wenbo Guo
TL;DR
rePIRL reframes multi-step LLM reasoning as a token-level MDP and learns a process reward model (PRM) with minimal assumptions via an inverse RL–inspired dual learning loop. It defines an energy-based reward $r_\phi(s_t,a_t)$ with latent hidden variables and uses importance sampling to align the PRM with expert trajectories without token-level rewards or access to the expert policy, while updating the policy under a maximum-entropy objective. The framework unifies online and offline PRM methods (e.g., PRIME, MCTS, DPO, DQO) under weaker assumptions and demonstrates strong gains on standard math and coding benchmarks, along with practical uses in test-time training, test-time scaling, and hard-problem signaling. These results suggest PRMs learned via rePIRL can guide efficient policy optimization in LLM reasoning and enable broader, safer applications of IRL-based reward shaping.
Abstract
Process rewards have been widely used in deep reinforcement learning to improve training efficiency, reduce variance, and prevent reward hacking. In LLM reasoning, existing works also explore various solutions for learning effective process reward models (PRM) with or without the help of an expert policy. However, existing methods either rely on strong assumptions about the expert policies (e.g., requiring their reward functions) or suffer intrinsic limitations (e.g., entropy collapse), resulting in weak PRMs or limited generalizability. In this paper, we introduce rePIRL, an inverse RL-inspired framework that learns effective PRMs with minimal assumptions about expert policies. Specifically, we design a dual learning process that updates the policy and the PRM interchangeably. Our learning algorithm has customized techniques to address the challenges of scaling traditional inverse RL to LLMs. We theoretically show that our proposed learning framework can unify both online and offline PRM learning methods, justifying that rePIRL can learn PRMs with minimal assumptions. Empirical evaluations on standardized math and coding reasoning datasets demonstrate the effectiveness of rePIRL over existing methods. We further show the application of our trained PRM in test-time training, test-time scaling, and providing an early signal for training hard problems. Finally, we validate our training recipe and key design choices via a detailed ablation study.
