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

James Chapman, Kedar Karhadkar, Guido Montúfar
7/1/2025
rl

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chapman2025zeroshot,
  title  = {Zero-Shot Context Generalization in Reinforcement Learning from Few Training Contexts},
  author = {James Chapman and Kedar Karhadkar and Guido Montúfar},
  year   = {2025},
  eprint = {2507.07348},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2507.07348},
  url    = {https://doi.org/10.48550/arXiv.2507.07348},
  journal = {Neural Information Processing Systems}
}

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/2507.07348.svg)](https://codeofpaper.com/paper/2507.07348)

Discussion