Skip to main content
QUICK REVIEW

[Paper Review] When Should We Prefer Offline Reinforcement Learning Over Behavioral Cloning?

Aviral Kumar, Joey Hong|arXiv (Cornell University)|Apr 12, 2022
Reinforcement Learning in RoboticsComputer Science17 citations
TL;DR

This paper identifies conditions under which offline reinforcement learning (RL) outperforms behavioral cloning (BC) even with expert data, demonstrating that offline RL excels in environments with sparse rewards or long-horizon tasks due to its ability to stitch suboptimal trajectories. The key contribution is a theoretical and empirical characterization showing that offline RL can achieve better worst-case performance guarantees than BC, especially when data is noisy or structured by horizon-independent returns.

ABSTRACT

Offline reinforcement learning (RL) algorithms can acquire effective policies by utilizing previously collected experience, without any online interaction. It is widely understood that offline RL is able to extract good policies even from highly suboptimal data, a scenario where imitation learning finds suboptimal solutions that do not improve over the demonstrator that generated the dataset. However, another common use case for practitioners is to learn from data that resembles demonstrations. In this case, one can choose to apply offline RL, but can also use behavioral cloning (BC) algorithms, which mimic a subset of the dataset via supervised learning. Therefore, it seems natural to ask: when can an offline RL method outperform BC with an equal amount of expert data, even when BC is a natural choice? To answer this question, we characterize the properties of environments that allow offline RL methods to perform better than BC methods, even when only provided with expert data. Additionally, we show that policies trained on sufficiently noisy suboptimal data can attain better performance than even BC algorithms with expert data, especially on long-horizon problems. We validate our theoretical results via extensive experiments on both diagnostic and high-dimensional domains including robotic manipulation, maze navigation, and Atari games, with a variety of data distributions. We observe that, under specific but common conditions such as sparse rewards or noisy data sources, modern offline RL methods can significantly outperform BC.

Motivation & Objective

  • To determine under what environmental and data conditions offline RL outperforms behavioral cloning (BC), even when BC is provided with expert demonstrations.
  • To provide a theoretical characterization of MDP and dataset properties that favor offline RL over BC.
  • To empirically validate that offline RL can outperform BC on long-horizon tasks and noisy data distributions.
  • To examine whether generalized BC methods using rewards still underperform compared to offline RL.
  • To guide practitioners in choosing between BC and offline RL based on task structure and data quality.

Proposed method

  • Theoretical analysis derives sufficient conditions on MDP structure—such as horizon-independent returns (e.g., sparse rewards) and low critical state volume—where offline RL outperforms BC.
  • The paper introduces a policy extraction method using exponentiated advantage weighting: $\pi_{\phi} \leftarrow \max_{\pi_{\phi}} \sum_{\mathbf{s},\mathbf{a}} \log \pi_{\phi}(\mathbf{a}|\mathbf{s}) \cdot \exp\left(\frac{Q_{\theta}(\mathbf{s},\mathbf{a}) - V(\mathbf{s})}{\eta}\right)$, where $V(\mathbf{s})$ is the value function and $\eta$ is a temperature hyperparameter.
  • A behavior policy model $\pi_{\beta}$ is trained via supervised BC to serve as a reference for policy extraction, ensuring alignment with the offline dataset.
  • Hyperparameter tuning is performed over $\eta \in \{0.005, 0.05, 0.1, 0.5, 1.0, 3.0\}$ and advantage clipping ranges $[-10,2]$ and $[-10,4]$, with a single $\eta$ used across all environments.
  • Empirical validation is conducted on diagnostic gridworlds, robotic manipulation, maze navigation, and Atari games using human, scripted, and RL-generated expert data.
  • The study compares offline RL (via CQL-based methods) and BC/BC-PI across multiple environments, measuring normalized returns and TD error stability.

Experimental results

Research questions

  • RQ1Under what MDP and dataset conditions does offline RL outperform behavioral cloning, even with expert demonstrations?
  • RQ2Can offline RL achieve better worst-case performance guarantees than BC when both use the same expert data?
  • RQ3Does the presence of sparse rewards or long-horizon structure favor offline RL over BC?
  • RQ4Can offline RL outperform generalized BC methods that use reward information during imitation learning?
  • RQ5Is there a practical benefit to using offline RL over BC when data is noisy or suboptimal?

Key findings

  • In environments with sparse rewards, offline RL methods significantly outperform BC, as the latter fails to learn effective policies due to lack of signal in non-expert actions.
  • On long-horizon tasks, offline RL outperforms BC even with expert data, particularly when the policy can stitch overlapping suboptimal trajectories to form a complete solution.
  • For noisy suboptimal data, offline RL achieves better performance than BC trained on expert data, demonstrating robustness to data quality degradation.
  • The optimal hyperparameter $\eta = 0.005$ with advantage clipping $[-10,2]$ yields the highest average performance across Atari games, though performance varies widely across environments.
  • Offline RL methods achieve up to 118% normalized return on Qbert and 78% on Enduro, while BC-PI underperforms on SpaceInvaders with only 31.7% normalized return.
  • The temporal difference (TD) error for SARSA remains stable in the range [0.001, 0.003], indicating reliable Q-function learning and stable policy optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.