When Should We Prefer Offline Reinforcement Learning Over Behavioral Cloning?

Aviral Kumar, Joey Hong, Anikait Singh, Sergey LevinearXiv 2022 · DOI

Abstract

While Behavioral Cloning (BC) is a common baseline for learning from expert demonstrations, recent research suggests that Offline Reinforcement Learning (RL) can significantly outperform it, even when using the same expert data. This paper identifies the specific conditions—such as the presence of "critical states" and long horizons—where Offline RL's ability to leverage reward signals and "stitch" trajectories provides a decisive advantage over simple mimicry.

Introduction

In offline learning, practitioners often choose between Behavioral Cloning (BC), which treats the problem as supervised learning to mimic a demonstrator, and Offline Reinforcement Learning (RL), which optimizes a reward signal from a static dataset. While Offline RL is known to excel with suboptimal data, its benefits over BC when using expert data have been less clear. This study investigates the conditions under which Offline RL provides superior performance and robustness.

Methodology and Theoretical Framework

The authors derive suboptimality bounds for both BC and conservative Offline RL (e.g., Conservative Q-Learning). A central concept in their analysis is the "Critical State": a state where a specific action is essential for success.

Figure 1: Illustration of critical states (B) where only a single action leads to success, compared to non-critical states (A) where multiple actions suffice.

Beyond theoretical bounds, the paper emphasizes the role of "offline tuning." Naive Offline RL can underperform, but with regularizers like DR3 or dropout, its reliability increases significantly, allowing it to better handle distribution shifts.

Experimental Setup

The study evaluates these methods across diverse benchmarks:

  • Diagnostic Gridworlds: Designed to isolate the impact of critical states.
  • Robotic Manipulation (WidowX): Complex multi-stage tasks like pick-place-open-grasp.
  • AntMaze (D4RL): Navigation tasks requiring the "stitching" of fragmented paths.
  • Adroit & Atari: High-dimensional robotic and gaming tasks to test scalability.

Key Insights

The "Negative Data" Paradox

A counterintuitive finding is that Offline RL can perform better when given noisy or suboptimal data alongside expert data, whereas BC's performance often degrades. Noisy data allows the RL agent to explore the state-space boundaries and learn what not to do, effectively teaching it how to recover from errors.

Figure 2: Comparison of BC and Offline RL. BC fails to recover from distribution shifts, while Offline RL utilizes noisy data to learn robust policies.

Distribution Shift and Stitching

BC is highly sensitive to distribution shift; small errors in the initial steps compound over long horizons. Offline RL mitigates this through:

  1. Stitching: Combining the best segments of different trajectories to form an optimal path.
  2. Value-based Guidance: The reward signal acts as a global "compass," preventing the agent from drifting irrecoverably off-course.

Key Results

  • Robotic Manipulation: In the close-open-grasp task, Tuned CQL achieved a 90.3% success rate, dwarfing BC’s 17.4% success rate on the same data.
  • Atari Games: On Seaquest, Tuned CQL outperformed BC (85.28 vs 63.15 normalized score) despite the RL agent being trained on noisier data.
  • Robustness to Shift: In AntMaze, when the initial state distribution was changed, Tuned CQL maintained a 67% success rate while BC dropped to 55%.

Conclusion and Limitations

Offline RL is a powerful alternative to BC for expert data, particularly in long-horizon tasks with critical decision points. However, challenges remain: Offline RL is harder to tune and requires explicit reward signals, which may not always be available in demonstration datasets. Future work involves developing more automated tuning methods and extending theoretical guarantees to deep learning architectures.

Summary updated

BibTeX
@misc{kumar2022when,
  author = {Aviral Kumar and Joey Hong and Anikait Singh and Sergey Levine},
  title = {{When Should We Prefer Offline Reinforcement Learning Over Behavioral Cloning?}},
  year = {2022},
  eprint = {2204.05618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.05618},
}
Figure