The paper studies reinforcement learning in discounted Markov decision processes where an exogenous, i.i.d. context is revealed before each action. Contexts can influence both rewards and transitions but are not controlled by the agent. The learner may sample the unknown context distribution and transition kernel, and the cost of learning is measured by a pair (n, m): an offline budget n spent before a query arrives and an additional per-query budget m spent at decision time.
When rewards and transitions are known, the authors give a variance-reduced algorithm that solves policy evaluation, best-value estimation, and best-policy extraction with complexity O~((1−γ)^−3 ε^−2, 0), which is minimax optimal up to log factors. When transitions are also unknown, they provide a policy-evaluation algorithm with a matching lower bound at its budget pair, and separate algorithms for best-value estimation and best-policy extraction that share a common offline budget but differ in per-query cost.
A notable feature is that all bounds are independent of the context-space cardinality, meaning the difficulty of learning scales with the controlled state space and action set rather than the number of possible contexts. This makes the framework relevant for settings with rich, high-dimensional context distributions where exhaustive context enumeration would be infeasible.