Abstract
This paper introduces Residual Policy Gradient (RPG), a framework that extends policy customization to gradient-based Reinforcement Learning (RL). By providing a novel "reward-level" interpretation of the widely used KL-regularized objective, the authors demonstrate how to better balance a prior policy's inherent properties with new, task-specific requirements through a more flexible, decoupled optimization approach.
Introduction
Deploying Reinforcement Learning (RL) models in real-world scenarios often necessitates "customization"—adjusting a pre-trained policy to handle new constraints, such as hardware failures or evolving human preferences. While value-based methods have previously utilized "residual" frameworks, policy gradient methods—the industry standard for high-dimensional tasks like LLM fine-tuning—have lacked a principled equivalent.
Commonly, practitioners use KL-regularization to keep fine-tuned models close to their parents. However, this is often treated as a heuristic constraint. This work bridges the gap by showing that KL-regularization is formally equivalent to a reward-level optimization, leading to the development of Residual Policy Gradient (RPG).
Methodology
The authors develop their framework through three primary theoretical contributions:
- Soft Policy Gradient (SPG): A mathematically consistent form of maximum-entropy policy gradient. The authors identify that many standard implementations (e.g., A3C) use "naive" entropy bonuses that only affect the initial step of a trajectory, whereas SPG ensures consistency across the entire horizon.
-
Residual Policy Gradient (RPG): Building on SPG, RPG allows for adapting a prior policy $\pi$ to a new reward $r_R$ by optimizing an augmented reward: $$r^{RPG} = r_R + \omega' \log \pi - \hat{\alpha} \log \pi_\theta$$ where $\omega'$ weights the original policy's knowledge and $\hat{\alpha}$ controls exploration.
-
The Reward View of KL: The authors prove that the standard KL-regularized objective used in RLHF (Reinforcement Learning from Human Feedback) is a special case of RPG where the weights for the prior policy and entropy are constrained to be equal.
Experimental Setup
The framework was evaluated using the MuJoCo physics engine on three standard benchmarks: Ant, Hopper, and HalfCheetah. To test customization specifically, the researchers introduced "add-on" tasks, such as simulating a broken motor in HalfCheetah via hind-leg angle penalties, or adding height/velocity rewards in Hopper and Ant.
Key Results
The empirical evaluation highlights the advantages of the decoupled RPG approach. Soft PPO, derived from the SPG framework, significantly outperformed "naive" entropy variants across the standard benchmarks.
As shown in the results above, Soft PPO achieved an average reward of 4993.7 in the HalfCheetah environment, whereas the common "Repeat-Entropy" implementation failed to learn effectively, resulting in a negative score of -114.9.
In customization tasks, Residual PPO consistently outperformed both "Greedy PPO" (which ignores the prior) and standard "KL PPO" fine-tuning. For example, in the Ant customization task, Residual PPO achieved a reward of 5568.3, compared to 4019.4 for KL PPO, demonstrating that decoupling the prior policy weight from the entropy coefficient provides superior tuning flexibility.
Conclusion
The "reward-level" view of KL-regularization reveals that standard fine-tuning techniques implicitly optimize a trade-off between prior knowledge and new rewards. By decoupling these parameters, Residual Policy Gradient offers a more robust and flexible path for policy customization in complex environments, with significant implications for both robotics and the fine-tuning of Large Language Models.
Summary updated