Sample Complexity Characterization for Linear Contextual MDPs
Junze Deng, Yuan Cheng, Shaofeng Zou, Yingbin Liang
TL;DR
This work studies CMDPs where both transitions and rewards vary with context and are amenable to linear function approximation. It introduces two frameworks: Model I with context-varying representations and common weights, and Model II with common representations and context-varying weights, both tackled with model-based algorithms and novel optimistic bonuses. The authors prove guaranteed $ε$-suboptimality with polynomial sample complexity, removing reachability restrictions in tabular CMDPs and providing the first results for the second framework. The findings suggest that context-varying features can substantially improve sample efficiency, offering practical avenues for data-efficient RL in nonstationary environments. This advances theoretical understanding and provides concrete, scalable strategies for learning in context-rich MDPs.
Abstract
Contextual Markov decision processes (CMDPs) describe a class of reinforcement learning problems in which the transition kernels and reward functions can change over time with different MDPs indexed by a context variable. While CMDPs serve as an important framework to model many real-world applications with time-varying environments, they are largely unexplored from theoretical perspective. In this paper, we study CMDPs under two linear function approximation models: Model I with context-varying representations and common linear weights for all contexts; and Model II with common representations for all contexts and context-varying linear weights. For both models, we propose novel model-based algorithms and show that they enjoy guaranteed $ε$-suboptimality gap with desired polynomial sample complexity. In particular, instantiating our result for the first model to the tabular CMDP improves the existing result by removing the reachability assumption. Our result for the second model is the first-known result for such a type of function approximation models. Comparison between our results for the two models further indicates that having context-varying features leads to much better sample efficiency than having common representations for all contexts under linear CMDPs.
