Abstract
We present a novel unified bilevel optimization-based framework, PARL, formulated to address the recently highlighted critical issue of policy alignment in reinforcement learning using utility or preference-based feedback. We identify a major gap within current algorithmic designs for solving policy alignment due to a lack of precise characterization of the dependence of the alignment objective on the data generated by policy trajectories. This shortfall contributes to the sub-optimal performance observed in contemporary algorithms. Our framework addressed these concerns by explicitly parameterizing the distribution of the upper alignment objective (reward design) by the lower optimal variable (optimal policy for the designed reward). Interestingly, from an optimization perspective, our formulation leads to a new class of stochastic bilevel problems where the stochasticity at the upper objective depends upon the lower-level variable. True to our best knowledge, this work presents the first formulation of the RLHF as a bilevel optimization problem which generalizes the existing RLHF formulations and addresses the existing distribution shift issues in RLHF formulations. To demonstrate the efficacy of our formulation in resolving alignment issues in RL, we devised an algorithm named A-PARL to solve the PARL problem, establishing sample complexity bounds of order O(1/T). Our empirical results substantiate that the proposed PARL can address the alignment concerns in RL by showing significant improvements (up to 63% in terms of required samples) for policy alignment in large-scale environments of the Deepmind control suite and Meta world tasks.
Introduction: The Alignment Gap in RLHF
Reinforcement Learning from Human Feedback (RLHF) has become the standard for aligning artificial intelligence with human values. However, a persistent challenge remains: the "distribution shift" gap. In standard RLHF pipelines, a reward model is learned from human preferences, and a policy is subsequently trained to maximize this reward.
The fundamental issue is that the alignment objective—how well the agent follows human intent—is intrinsically tied to the trajectories the agent generates. As the policy evolves and improves, it explores novel regions of the state space. If the reward model was trained on data from an earlier, less capable policy, it may not generalize well to these new states. This "entanglement" between the reward design and the resulting policy is often ignored by current heuristic methods, leading to agents that "hack" rewards or fail to align with the designer's true goals.
The PARL Framework
To address these limitations, we introduce PARL, a unified bilevel optimization framework. PARL formalizes RLHF by structuring it into two interdependent levels:
- Lower Level (LL): The agent optimizes its policy to maximize the current reward function.
- Upper Level (UL): The designer evaluates the agent's optimal policy against the alignment objective (human feedback) to refine the reward parameters.
The mathematical innovation of PARL lies in explicitly parameterizing the data distribution of the upper-level objective by the lower-level optimal variable. This creates a new class of stochastic bilevel problems where the stochasticity depends on the decision variable, directly modeling the distribution shift that plagues traditional RLHF.
The A-PARL Algorithm
We developed the A-PARL algorithm to solve this bilevel problem. A-PARL utilizes a "score function" and hypergradients to capture how the agent's optimal behavior will shift in response to changes in the reward parameters. By accounting for this shift, the designer can proactively steer the agent toward alignment. Theoretically, we prove that A-PARL achieves a convergence rate of $O(1/T)$, matching the complexity of simpler bilevel problems that lack this complex data dependency.
Experimental Results
We evaluated PARL across high-dimensional continuous control tasks in the DeepMind Control Suite (e.g., Walker) and MetaWorld (e.g., Door Open, Button Press). To ensure rigorous benchmarking, we utilized simulated "teachers" providing preferences based on ground-truth rewards, allowing us to measure proximity to "Oracle" performance.
The empirical results demonstrate significant advantages:
- Superior Sample Efficiency: A-PARL requires up to 63% fewer samples than state-of-the-art baselines like PEBBLE and SURF to reach high performance.
- Near-Oracle Alignment: In tasks such as "Walker" and "Door Open," A-PARL's performance tracks the Oracle closely, whereas baselines often plateau significantly lower.
- Robustness to Reward Hacking: In the "Door Open" task, A-PARL successfully achieves the goal, while baselines often learn sub-optimal behaviors that receive high reward but fail the actual task.
Conclusion
PARL provides a rigorous, bilevel optimization foundation for RLHF, effectively addressing the distribution shift problem. By modeling the entanglement between reward design and policy optimization, A-PARL achieves state-of-the-art performance and sample efficiency. Future work will explore scaling these bilevel techniques to even larger models and testing robustness against real-world human feedback noise.
Summary updated