NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Efficiently Function Approximation for Contextual MDP

Orin Levy, Yishay MansourarXiv 2022

Abstract

We study learning contextual MDPs using a function approximation for both the rewards and the dynamics. We consider both the case that the dynamics dependent or independent of the context. For both models we derive polynomial sample and time complexity (assuming an efficient ERM oracle). Our methodology gives a general reduction from learning contextual MDP to supervised learning.

Introduction

In Reinforcement Learning (RL), environments are typically modeled as Markov Decision Processes (MDPs). However, many real-world applications involve a "context"—additional information provided at the start of an episode that influences rewards and transitions. For instance, in personalized medicine, a patient's medical history serves as a context that dictates their response to treatments.

Standard approaches that incorporate context into the state space often suffer from the "curse of dimensionality" when the context is high-dimensional. This paper addresses the challenge of learning an optimal policy for any given context efficiently using function approximation, ensuring that sample and time complexity remain polynomial relative to the function class's complexity rather than the context space's size.

Methodology

The authors propose a framework that reduces the RL problem in Contextual MDPs (CMDPs) to a series of supervised learning tasks. This reduction relies on an Empirical Risk Minimization (ERM) oracle, which identifies the best-fitting function from a predefined class (e.g., linear models, neural networks) for a given dataset.

The study explores two primary scenarios:

  1. Context-Free Dynamics: The context influences rewards, but the transition dynamics remain invariant across contexts.
  2. Context-Dependent Dynamics: Both rewards and transitions are context-dependent, presenting a more complex learning challenge.

Algorithmic Innovations

  • Layer-by-Layer Learning: Algorithms like EXPLORE-UCFD and EXPLORE-UCDD learn the environment incrementally across time steps.
  • Sink States: To optimize sample efficiency, the authors introduce a "sink" state for states with reachability below a threshold ($\beta$), effectively pruning rare or difficult-to-reach states from the learning process.
  • Unbiased Sampling: Importance sampling is utilized in context-dependent scenarios to mitigate bias introduced by exploration policies during data collection.

Theoretical Guarantees

A central contribution of this work is the proof that CMDPs are PAC-learnable with polynomial sample complexity. The complexity scales with the Pseudo-dimension or Fat-shattering dimension of the function class, allowing for efficient learning even in infinite context spaces.

The following table summarizes the derived sample complexity bounds for various settings, distinguishing between absolute and square loss functions:

Sample complexity bounds for various CMDP settings and loss functions.

These bounds demonstrate that while the exponents may be high, they are fixed constants, ensuring that the problem remains tractable as the desired accuracy ($\epsilon$) and confidence ($1-\delta$) increase. Notably, the complexity depends on the function class dimension $d$, rather than the cardinality of the context space.

Discussion and Limitations

While the paper provides a significant theoretical foundation, several practical considerations remain:

  • ERM Oracle Efficiency: The framework assumes an efficient ERM oracle. However, solving ERM for non-convex models like deep neural networks is often computationally hard in practice.
  • Tightness of Bounds: The current polynomial exponents are relatively high (e.g., $|S|^{15}$ in some cases). Future research is needed to tighten these bounds to make them more practical for real-world applications.
  • Lower Bounds: Establishing the theoretical minimum number of samples required for CMDPs remains an open question.

Summary updated

BibTeX
@misc{levy2022learning,
  author = {Orin Levy and Yishay Mansour},
  title = {{Learning Efficiently Function Approximation for Contextual MDP}},
  year = {2022},
  eprint = {2203.00995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.00995},
}
Figure