The Generalization Gap in Offline Reinforcement Learning

Ishita Mediratta, Qingfei You, Minqi Jiang, R. Raileanu
2/12/2026

No official code found. Best implementation: facebookresearch/gen_dgrl (29 stars, last commit 2026-04-08).

Abstract

Despite recent progress in offline learning, these methods are still trained and tested on the same environment. In this paper, we compare the generalization abilities of widely used online and offline learning methods such as online reinforcement learning (RL), offline RL, sequence modeling, and behavioral cloning. Our experiments show that offline learning algorithms perform worse on new environments than online learning ones. We also introduce the first benchmark for evaluating generalization in offline learning, collecting datasets of varying sizes and skill-levels from Procgen (2D video games) and WebShop (e-commerce websites). The datasets contain trajectories for a limited number of game levels or natural language instructions and at test time, the agent has to generalize to new levels or instructions. Our experiments reveal that existing offline learning algorithms struggle to match the performance of online RL on both train and test environments. Behavioral cloning is a strong baseline, outperforming state-of-the-art offline RL and sequence modeling approaches when trained on data from multiple environments and tested on new ones. Finally, we find that increasing the diversity of the data, rather than its size, improves performance on new environments for all offline learning algorithms. Our study demonstrates the limited generalization of current offline learning algorithms highlighting the need for more research in this area.

View on arXivView PDF

Code Implementations(1)

Official codebase for "The Generalization Gap in Offline Reinforcement Learning" accepted to ICLR 2024

296CSS, HTMLOct 25, 20236 months agoNOASSERTION

Similar Papers

Cite this paper

@article{mediratta2026generalization,
  title  = {The Generalization Gap in Offline Reinforcement Learning},
  author = {Ishita Mediratta and Qingfei You and Minqi Jiang and R. Raileanu},
  year   = {2026},
  eprint = {2312.05742},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2312.05742},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.05742.svg)](https://codeofpaper.com/paper/2312.05742)

Discussion