DRED: Zero-Shot Transfer in Reinforcement Learning via Data-Regularised Environment Design
Samuel Garcin, James Doran, Shangmin Guo, Christopher G. Lucas, Stefano V. Albrecht
TL;DR
This work addresses how the procedure of sampling training environment instances affects zero-shot generalisation in reinforcement learning. It formalises the link between level sampling and the generalisation gap through mutual information, showing that adaptive sampling acts as an information bottleneck on $\mathrm{I}(L;\pi)$, and introduces data-regularised environment design (DRED) to augment training levels while keeping the augmented distribution aligned with the target CMDP. DRED combines a generative model of level parameters with an adaptive replay mechanism, and a VAE-based variant (VAE-DRED) demonstrates improved ZSG and robustness to edge cases, while controlling distributional shift (ShiftGap). The approach yields substantial gains on Procgen and Minigrid benchmarks, offering a scalable framework for grounding level-generation in practical RL deployments and reducing start-up data requirements. Overall, the paper provides both theoretical insights and a practical, empirically validated method for enhancing zero-shot transfer in RL via data-regularised environment design.
Abstract
Autonomous agents trained using deep reinforcement learning (RL) often lack the ability to successfully generalise to new environments, even when these environments share characteristics with the ones they have encountered during training. In this work, we investigate how the sampling of individual environment instances, or levels, affects the zero-shot generalisation (ZSG) ability of RL agents. We discover that, for deep actor-critic architectures sharing their base layers, prioritising levels according to their value loss minimises the mutual information between the agent's internal representation and the set of training levels in the generated training data. This provides a novel theoretical justification for the regularisation achieved by certain adaptive sampling strategies. We then turn our attention to unsupervised environment design (UED) methods, which assume control over level generation. We find that existing UED methods can significantly shift the training distribution, which translates to low ZSG performance. To prevent both overfitting and distributional shift, we introduce data-regularised environment design (DRED). DRED generates levels using a generative model trained to approximate the ground truth distribution of an initial set of level parameters. Through its grounding, DRED achieves significant improvements in ZSG over adaptive level sampling strategies and UED methods. Our code and experimental data are available at https://github.com/uoe-agents/dred.
