Papers › The Generalization Gap in Offline Reinforcement Learning

The Generalization Gap in Offline Reinforcement Learning

10 Dec 2023arXiv:2312.05742archive 2025-07-28

Ishita Mediratta, Qingfei You, Minqi Jiang, Roberta Raileanu

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2312.05742")

Code

Syntology Ran 8 of 11 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 7 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

facebookresearch/gen_dgrl officialmentioned in papermentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 8 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
7ran
3unverified

Licence: 11 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from facebookresearch/gen_dgrl. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

arg2str facebookresearch/gen_dgrl/webShop/baseline_models/slurm.py official repository ran licence not identified · pointer only · edbb710d8687df70 · report
build_arg_parser facebookresearch/gen_dgrl/procgen/download.py official repository ran licence not identified · pointer only · 658ecf571b8a449d · report
discount_reward facebookresearch/gen_dgrl/webShop/baseline_models/agent.py official repository ran · fixture could not drive it no licence file found · pointer only · 6c873c43e9aed0a7 · report
new_process_goal facebookresearch/gen_dgrl/webShop/baseline_models/human_trajectories_collector.py official repository ran fingerprinted licence not identified · pointer only · a081306c38dcb0d3 · report
process facebookresearch/gen_dgrl/webShop/baseline_models/il_data_collector.py official repository ran fingerprinted licence not identified · pointer only · cc483cf670852845 · report
process_goal facebookresearch/gen_dgrl/webShop/baseline_models/il_data_collector.py official repository ran fingerprinted licence not identified · pointer only · 8012f9ad06833123 · report
profile facebookresearch/gen_dgrl/webShop/baseline_models/logger.py official repository ran licence not identified · pointer only · 98948fae5be7e92e · report
strip_website facebookresearch/gen_dgrl/webShop/baseline_models/human_trajectories_collector.py official repository ran fingerprinted licence not identified · pointer only · 30817084576ab0fd · report
get_data facebookresearch/gen_dgrl/webShop/baseline_models/train_choice_bcq.py official repository unverified licence not identified · pointer only · 6ac021fec5c8d2c2 · report
make_output_format facebookresearch/gen_dgrl/webShop/baseline_models/logger.py official repository unverified licence not identified · pointer only · e69c2e4d0254e7de · report
read_json facebookresearch/gen_dgrl/webShop/baseline_models/logger.py official repository unverified no licence file found · pointer only · 88ef5a17fc986d9a · report

Tasks

Offline RLReinforcement LearningReinforcement Learning (RL)reinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections