Markov Decision Processes with Continuous Side Information.

Aditya Modi, Nan Jiang, Satinder P. Singh, Ambuj Tewari

Abstract

We consider a reinforcement learning (RL) setting in which the agent interacts with a sequence of episodic MDPs. At the start of each episode the agent has access to some side-information or context that determines the dynamics of the MDP for that episode. Our setting is motivated by applications in healthcare where baseline measurements of a patient at the start of a treatment episode form the context that may provide information about how the patient might respond to treatment decisions. We propose algorithms for learning in such Contextual Markov Decision Processes (CMDPs) under an assumption that the unobserved MDP parameters vary smoothly with the observed context. We give lower and upper PAC bounds under the smoothness assumption. Because our lower bound has an exponential dependence on the dimension, we also consider a tractable linear setting where the context creates linear combinations of a finite set of MDPs. For the linear setting, we give a PAC learning algorithm based on KWIK learning techniques.

Introduction

In traditional Reinforcement Learning (RL), an agent often learns a policy for a single, stationary environment. However, many real-world applications require a more nuanced approach. Consider a healthcare setting where a physician must decide on a treatment plan for a patient. Each patient can be viewed as an episodic Markov Decision Process (MDP), but no two patients are identical. A treatment that works for a young athlete might be ineffective or even harmful for an elderly patient with comorbidities.

The challenge lies in the "personalization vs. data-sharing" trade-off. If we treat every patient as a completely unique environment, we suffer from a lack of data. Conversely, if we aggregate all patients into a single "average" model, we lose the ability to provide personalized care. This paper introduces the framework of Contextual Markov Decision Processes (CMDPs) to bridge this gap. In a CMDP, observable side information—or context—provided at the start of an episode dictates the transition and reward dynamics for that specific episode.

The CMDP Framework

A CMDP is defined by a context space $\mathcal{X}$, a state space $\mathcal{S}$, and an action space $\mathcal{A}$. At the beginning of each episode $k$, the agent observes a context $x_k \in \mathcal{X}$. This context determines the transition function $P_{x_k}$ and the reward function $R_{x_k}$. The agent's goal is to learn a policy that maximizes cumulative reward across episodes, even when contexts are chosen adversarially.

The core difficulty is that the context space $\mathcal{X}$ is often continuous and high-dimensional. To make learning feasible, we must assume some structure in how the context $x$ affects the MDP parameters.

Learning under Smoothness: Cover-Rmax

The first setting explored is the Smoothness Setting, where we assume that similar contexts lead to similar MDP dynamics (e.g., Lipschitz continuity).

To address this, the authors propose Cover-Rmax. This algorithm partitions the context space into a "cover" of small regions (balls). Within each region, it applies a variation of the Rmax algorithm. Rmax is a classic exploration strategy that maintains a model of the environment and treats any state-action pair as "known" once it has been visited enough times. For CMDPs, a state-action pair is considered "known" for a new context if enough data has been collected in its immediate context neighborhood.

The Curse of Dimensionality

While intuitive, the smoothness assumption has a significant drawback. The authors prove a lower bound showing that the sample complexity for learning in this setting must scale exponentially with the dimension of the context space ($D$). Specifically, the number of episodes required is $\Omega((1/\epsilon)^{D+2})$. This "curse of dimensionality" makes pure smoothness-based approaches impractical for high-dimensional contexts like genomic data or complex user profiles.

Bypassing the Curse: The Linear Setting

To achieve efficient learning in high-dimensional spaces, the authors introduce a Linear Setting. Here, the transition and reward functions are assumed to be linear combinations of $d$ hidden "base" MDPs. The context $x$ provides the weights for this combination.

For this setting, the authors develop KWIK_LR-Rmax. This algorithm leverages the Knows What It Knows (KWIK) framework for online linear regression. Instead of only learning from local neighbors, KWIK_LR-Rmax uses every interaction to update its global estimate of the $d$ base MDPs.

Key Technical Contributions

  1. Vector-Valued KWIK: The authors extend standard KWIK linear regression to handle vector-valued outputs, which is necessary for modeling transition probability distributions over the state space.
  2. Global Generalization: Because the model is global, the agent can make accurate predictions for contexts it has never seen before, provided it has seen enough diverse contexts to resolve the underlying linear structure.

Theoretical Results and PAC Bounds

The paper provides the first Probably Approximately Correct (PAC) bounds for CMDPs with continuous contexts.

  • For Cover-Rmax: The algorithm is PAC-MDP with a sample complexity that scales with the covering number of the context space.
  • For KWIK_LR-Rmax: The algorithm achieves a sample complexity that is polynomial in the number of base MDPs ($d$), the number of states ($S$), and the number of actions ($A$). Crucially, it is independent of the context dimension $D$ (assuming $d \ll D$), effectively bypassing the curse of dimensionality.

Furthermore, KWIK_LR-Rmax is computationally efficient, with a per-episode complexity of $O(SA \cdot \max\{d^2, S\})$.

Conclusion and Future Work

This work formalizes the use of side information in RL through the CMDP framework. By moving beyond simple smoothness to structured linear models, the authors demonstrate that personalized RL can be both theoretically sound and computationally tractable.

Future research directions include:

  • Agnostic Learning: Developing algorithms that are robust to model misspecification (where the environment is only "close" to linear).
  • Latent Contexts: Extending these guarantees to scenarios where the context is partially observed or noisy.
  • Optimization: Refining the PAC bounds using more modern exploration skeletons like Upper Confidence Reinforcement Learning (UCRL2).

Summary updated

BibTeX
@inproceedings{modi2018markov,
  author = {Aditya Modi and Nan Jiang and Satinder P. Singh and Ambuj Tewari},
  title = {{Markov Decision Processes with Continuous Side Information.}},
  booktitle = {ALT},
  year = {2018},
  url = {https://openreview.net/forum?id=FGji8SoAUCy},
}
Figure