BRPO: Batch Residual Policy Optimization

Sungryull Sohn, Yinlam Chow, Jayden Ooi, Ofir Nachum, Honglak Lee, Ed H. Chi, Craig Boutilier

Abstract

Batch Reinforcement Learning (RL) aims to derive optimal policies from fixed datasets without environment interaction. A primary obstacle in this domain is extrapolation error, where agents overestimate the value of actions poorly represented in the training data. Traditional mitigation strategies employ global policy constraints, which often lead to excessive conservatism. This paper introduces Batch Residual Policy Optimization (BRPO), a framework that utilizes a state-action-dependent confidence factor to blend a candidate policy with the behavior policy. By optimizing a quadratic lower bound on performance improvement, BRPO achieves a more nuanced balance between exploration and safety. Our evaluations across standard benchmarks demonstrate that BRPO significantly outperforms state-of-the-art baselines, especially in scenarios with high behavior noise.

Introduction

In many real-world applications of reinforcement learning, such as healthcare, autonomous driving, and recommendation systems, online exploration is prohibitively expensive or dangerous. Offline RL, or "Batch RL," seeks to leverage historical data to learn improved policies. However, when an agent encounters states or actions outside the distribution of the training data, standard off-policy algorithms often fail due to extrapolation error.

To combat this, existing methods typically constrain the learned policy to remain close to the behavior policy ($\beta$). While effective at preventing catastrophic failures, these constraints are usually applied globally. This "conservatism trap" prevents the agent from making significant improvements even in states where the data is abundant and high-quality. BRPO addresses this by introducing a localized, state-action-dependent trust mechanism.

Methodology: Residual Policy Optimization

The core innovation of BRPO is the formulation of a Residual Policy. Instead of replacing the behavior policy, BRPO learns a mixture: $$\pi(a|s) = (1 - \lambda(s, a)) \cdot \beta(a|s) + \lambda(s, a) \cdot \rho(a|s)$$ where $\beta(a|s)$ is the behavior policy, $\rho(a|s)$ is the learned candidate policy, and $\lambda(s, a) \in [0, 1]$ is the confidence factor.

State-Action Dependent Confidence

Unlike previous frameworks like Conservative Policy Improvement (CPI), which use a constant mixing factor, BRPO allows $\lambda$ to vary based on the state and action. This allows the agent to be "bold" in regions of the state space where it has high confidence in its candidate policy and "timid" (relying on the safe behavior policy) elsewhere.

Optimization Objective

The authors derive a performance difference identity that allows for the joint optimization of $\rho$ and $\lambda$. By maximizing a theoretical lower bound on the performance improvement, the algorithm ensures that the resulting policy $\pi$ is at least as good as the behavior policy. The objective function is quadratic in $\lambda$, which avoids the "bang-bang" control issues (switching abruptly between 0 and 1) seen in linear formulations, leading to smoother and more stable policy updates.

Experimental Setup

BRPO was evaluated on three discrete-action environments from the OpenAI Gym: Acrobot-v1, CartPole-v1, and LunarLander-v2. To test the algorithm's robustness, the researchers generated datasets with varying levels of noise by applying $\epsilon$-greedy exploration to a pre-trained DQN agent. The noise levels ranged from $\epsilon=0.05$ (near-optimal data) to $\epsilon=1.0$ (completely random data).

Results and Discussion

The empirical results, summarized in the table below, indicate that BRPO consistently achieves superior performance compared to strong baselines such as BCQ, SPIBB, and KL-Regularized Q-learning.

Table 1: Performance comparison of BRPO against various baselines across different environments and noise levels. Values represent mean return ± standard deviation.

A key observation is BRPO's robustness to noise. In the LunarLander task with $\epsilon=1.0$, where the behavior data is essentially random, BRPO achieved a score of ~81.8. In contrast, standard DQN failed significantly (-65.6), and other constrained methods like BCQ and SPIBB struggled to maintain positive performance. This suggests that BRPO's state-action dependent constraints effectively filter out noise while identifying paths to improvement.

Conclusion and Future Work

BRPO provides a principled approach to offline RL by moving beyond global policy constraints. Its ability to learn exactly when to trust a new policy leads to significant performance gains and increased stability.

Future research directions include extending the residual policy framework to high-dimensional continuous control tasks and incorporating finite-sample analysis to account for uncertainty in advantage function estimates. Additionally, optimizing the Quadratic Programming (QP) projection layer remains a priority for improving computational efficiency during training.

Summary updated

BibTeX
@inproceedings{sohn2020brpo,
  author = {Sungryull Sohn and Yinlam Chow and Jayden Ooi and Ofir Nachum and Honglak Lee and Ed H. Chi and Craig Boutilier},
  title = {{BRPO: Batch Residual Policy Optimization}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/391},
}
Figure