NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Offline Reinforcement Learning with Soft Behavior Regularization

Haoran Xu, Xianyuan Zhan, Jianxiong Li, Honglei YinarXiv 2021

Introduction

Offline Reinforcement Learning (RL) presents a significant opportunity to leverage vast amounts of pre-collected data to train agents without the risks or costs associated with real-time environment interaction. However, the field is plagued by the "distribution shift" problem: when a learned policy deviates from the behavior policy that collected the data, the agent's value function estimates often become wildly inaccurate. Standard approaches attempt to mitigate this by constraining the learned policy to stay close to the behavior policy, but these constraints are often overly rigid and state-independent, stifling the agent's ability to improve.

Soft Behavior-regularized Actor Critic (SBAC)

To address these limitations, we introduce Soft Behavior-regularized Actor Critic (SBAC). Unlike previous methods that apply a uniform penalty for deviating from the training data, SBAC employs a "soft," state-dependent regularization. This approach is grounded in the Performance Difference Lemma and introduces three critical innovations:

  1. State-Dependent Weighting: SBAC utilizes a discounted marginal state density ratio ($w^\pi(s) = d^\pi(s)/d^\mu(s)$). This allows the policy greater flexibility in states it expects to visit frequently, while maintaining strict conservatism in unfamiliar regions of the state space.
  2. Stable Value Estimation: Instead of estimating the value of the evolving learned policy ($Q^\pi$), which is prone to compounding errors, SBAC optimizes against the value function of the fixed behavior policy ($Q^\mu$). This significantly stabilizes the training process.
  3. Offline Density Ratio Estimation: The state-visitation ratio is estimated entirely offline using a "time-backward" operator and Maximum Mean Discrepancy (MMD), avoiding the need for online samples.

Experimental Setup

SBAC was rigorously tested on two primary benchmarks from the D4RL suite: the MuJoCo continuous control tasks and the high-dimensional Adroit robotic hand tasks. These environments range from simple locomotion to complex manipulation requiring 24 degrees of freedom.

Overview of the MuJoCo and Adroit Hand benchmark environments used for evaluation.

Results and Stability

SBAC demonstrates state-of-the-art performance across both benchmarks. In MuJoCo tasks, it achieved a mean score of 76.4, significantly higher than CQL (66.5). The performance gap was even more pronounced in the challenging Adroit tasks, where SBAC reached a mean score of 24.3, while many baselines failed to achieve any meaningful progress.

Beyond raw scores, SBAC exhibits exceptional stability. While many offline RL algorithms suffer from high variance and occasional "crashes" during evaluation, SBAC maintains consistent performance across different random seeds and data quality levels.

Comparison of performance stability across different offline RL methods. SBAC shows significantly lower performance drops (Percent Difference) in worst-case scenarios compared to baselines like CQL and FisherBRC.

Conclusion

By transitioning from rigid constraints to soft, state-dependent regularization, SBAC bridges the gap between safety and performance in offline RL. Its reliance on the stable behavior value function $Q^\mu$ and principled density ratio estimation makes it a robust choice for real-world applications where data is plentiful but interaction is limited. Future research will explore policy-free variants to further simplify the implementation for complex, multimodal datasets.

Summary updated

BibTeX
@misc{xu2021offline,
  author = {Haoran Xu and Xianyuan Zhan and Jianxiong Li and Honglei Yin},
  title = {{Offline Reinforcement Learning with Soft Behavior Regularization}},
  year = {2021},
  eprint = {2110.07395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.07395},
}
Figure