Problem Dependent Reinforcement Learning Bounds Which Can Identify Bandit Structure in MDPs

Andrea Zanette, Emma Brunskill

Executive Summary

In the field of Reinforcement Learning (RL), practitioners frequently face a modeling dilemma: should a problem be framed as a simple Contextual Bandit or a complex Markov Decision Process (MDP)? Choosing the simpler bandit model for an environment with long-term dependencies causes the agent to fail at planning. Conversely, applying a complex MDP model to a problem that is fundamentally a bandit (such as many recommendation systems) incurs a "complexity tax" that significantly slows down learning.

In their ICML 2018 paper, Andrea Zanette and Emma Brunskill introduce UBEV-S, a general-purpose MDP algorithm that automatically "downshifts" to achieve optimal performance if it discovers the environment is actually a contextual bandit. By effectively removing the theoretical "horizon penalty" ($\sqrt{H}$) that typically plagues MDP algorithms, UBEV-S proves that practitioners do not always need to sacrifice generality for statistical efficiency.

The Core Problem: Statistical Efficiency

The fundamental issue bridging bandits and MDPs is statistical efficiency, which is typically measured in terms of regret—the amount of reward an agent loses while learning compared to an optimal policy.

  • Contextual Bandits: In this setting, actions only affect the immediate reward. The "next state" (or context) is independent of the agent's previous actions. Regret typically scales as $\tilde{O}(\sqrt{SAT})$, where $S$ is the number of states, $A$ is the number of actions, and $T$ is the total time steps.
  • MDPs: Actions affect future states, creating a "horizon" ($H$) of influence. Because of this added complexity, standard MDP regret bounds usually scale with an extra factor of $\sqrt{H}$ or even $H$ (e.g., $\tilde{O}(\sqrt{HSAT})$).

For engineers building real-world systems, it is often unclear whether a user’s current interaction significantly impacts their future preferences (an MDP) or not (a Bandit). Using a standard MDP algorithm on a bandit problem might require $\sqrt{H}$ times more data to reach the same performance. The authors pose a critical question: Can we design an MDP algorithm that is agnostic to the setting but inherits the best possible bounds for whichever environment it is actually operating in?

The Proposed Solution: UBEV-S

To address this, the authors propose UBEV-S (Upper Bound Episode Value - Stationary), a variant of the existing UBEV algorithm. UBEV-S introduces several key innovations to bridge the gap between MDPs and bandits:

  1. Data Aggregation (Stationarity): Unlike standard episodic RL, which might treat the same state at time $t=1$ and $t=2$ as entirely different entities, UBEV-S assumes the environment is stationary. It pools all observations for a state-action pair across all timesteps to build sharper, more data-efficient estimates of rewards and transitions.
  2. Refined Exploration Bonus: Most MDP algorithms use a "pessimistic" exploration bonus that assumes the worst-case range of future values spans the full horizon $H$. UBEV-S instead uses a dynamic bonus tied to the actual range of the current optimistic value function.
  3. The $\phi^+$ Correction: To ensure the agent remains optimistic even when the value function range is small, the authors introduce a correction term that tracks the uncertainty of the least-visited states.

Key Insights and Theoretical Results

This research is fundamentally theoretical, relying on rigorous mathematical proofs rather than empirical benchmarks to establish its guarantees.

The Vanishing Horizon

In a bandit setting, the "range" of the value function (the difference between the best and worst possible future outcomes) is at most 1, because the next state does not depend on the chosen action. In a general MDP, this range can be up to $H$. UBEV-S is mathematically designed to sense when this range is small and tighten its exploration bounds accordingly.

Fast Convergence in Mixing Environments

Contextual bandits are "highly mixing" environments—the agent will eventually see every context regardless of its actions. The authors prove that in such environments, the optimistic value function converges to the true value function so rapidly that the "MDP overhead" (the terms involving $H$) becomes a lower-order constant that does not grow with time $T$.

Near-Optimal Regret Bounds

The primary result of the paper is Theorem 1, which proves that the regret of UBEV-S is bounded by the minimum of two scenarios:

  1. The Bandit Bound: $\tilde{O}(\sqrt{SAT} + \text{lower order terms})$
  2. The MDP Bound: $\tilde{O}(H\sqrt{SAT} + \dots)$

Crucially, the algorithm does not need a manual "switch" to tell it that it is in a bandit setting. The mathematical structure of the exploration bonus naturally shrinks as the agent realizes that transitions are independent of its actions. In the dominant term (the one that grows with time $T$), the $H$ factor completely disappears when the environment is a contextual bandit. This matches the lower bounds established for specialized bandit algorithms, meaning UBEV-S is near-optimal for bandits despite being built for general MDPs.

Limitations and Future Work

While UBEV-S provides a powerful theoretical bridge, the authors note several limitations and avenues for future research:

  • The $\mu_{min}$ Dependency: The bandit bound includes a term that depends on $1/\mu_{min}$ (the probability of encountering the rarest context). If some contexts are extremely rare, the "lower-order" terms might actually dominate in practical applications.
  • Tabular Environments Only: This work focuses on "tabular" RL, where states and actions are discrete and finite. Extending these setting-identifying bounds to deep RL (which uses continuous spaces and function approximation) remains a significant open challenge.
  • Stationarity Requirement: UBEV-S strictly requires a stationary environment. It cannot handle "transient" MDPs where the underlying transition dynamics change based on the timestep within an episode.
  • Future Directions: The authors suggest exploring similar "setting-dependent" bounds for even more complex models, such as Partially Observable MDPs (POMDPs).

Reference: Zanette, A., & Brunskill, E. (2018). Problem Dependent Reinforcement Learning Bounds Which Can Identify Bandit Structure in MDPs. Proceedings of the 35th International Conference on Machine Learning (ICML).

Summary updated

BibTeX
@inproceedings{zanette2018problem,
  author = {Andrea Zanette and Emma Brunskill},
  title = {{Problem Dependent Reinforcement Learning Bounds Which Can Identify Bandit Structure in MDPs}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=r1Z0msZOZB},
}
Figure