English

Zero-Shot Context Generalization in Reinforcement Learning from Few Training Contexts

Machine Learning 2025-12-30 v2

Abstract

Deep reinforcement learning (DRL) has achieved remarkable success across multiple domains, including competitive games, natural language processing, and robotics. Despite these advancements, policies trained via DRL often struggle to generalize to evaluation environments with different parameters. This challenge is typically addressed by training with multiple contexts and/or by leveraging additional structure in the problem. However, obtaining sufficient training data across diverse contexts can be impractical in real-world applications. In this work, we consider contextual Markov decision processes (CMDPs) with transition and reward functions that exhibit regularity in context parameters. We introduce the context-enhanced Bellman equation (CEBE) to improve generalization when training on a single context. We prove both analytically and empirically that the CEBE yields a first-order approximation to the Q-function trained across multiple contexts. We then derive context sample enhancement (CSE) as an efficient data augmentation method for approximating the CEBE in deterministic control environments. We numerically validate the performance of CSE in simulation environments, showcasing its potential to improve generalization in DRL.

Keywords

Cite

@article{arxiv.2507.07348,
  title  = {Zero-Shot Context Generalization in Reinforcement Learning from Few Training Contexts},
  author = {James Chapman and Kedar Karhadkar and Guido Montufar},
  journal= {arXiv preprint arXiv:2507.07348},
  year   = {2025}
}

Comments

10 pages, 8 figures, 3 tables, publushed at Neurips 2025

R2 v1 2026-07-01T03:54:04.990Z