Variational Regret Bounds for Reinforcement Learning

Pratik Gajane, Ronald Ortner, Peter Auer

TL;DR

Reinforcement learning often assumes the world remains static, but real-world environments constantly drift. This paper introduces Variation-aware UCRL, the first algorithm to achieve optimal "variational" regret bounds in general, time-varying environments, successfully competing against the optimal non-stationary policy.

What Problem Does This Paper Address?

Standard Markov Decision Processes (MDPs) assume that transition probabilities and reward functions are time-invariant. In reality, environments shift—either abruptly (like a sudden system failure) or gradually (like changing consumer preferences over time).

While prior work has addressed non-stationarity, existing solutions often suffer from major limitations: they might assume only the rewards change while transitions stay fixed, compare performance only against the best static policy in hindsight, or suffer linear regret in the worst-case scenario. The authors tackle the ultimate challenge: minimizing regret in a fully non-stationary MDP where both rewards and transitions change over time, evaluated against the optimal dynamic (non-stationary) policy.

Methods

The authors propose Variation-aware UCRL with restarts. The approach builds on the classic Upper Confidence Bound for Reinforcement Learning (UCRL2) framework, adapting it to non-stationary environments using two key mechanisms:

  1. Variation-Expanded Confidence Intervals: Standard UCRL constructs confidence intervals around reward and transition estimates based purely on sample sizes. Variation-aware UCRL inflates these intervals by adding terms for the variation of rewards ($V_T^r$) and transition probabilities ($V_T^p$), ensuring the true parameters remain within the "plausible" set despite environmental drift.
  2. Optimized Restart Schedule: To prevent old, stale data from biasing current decisions, the algorithm periodically wipes its memory and restarts. The duration of each operational phase ($\theta_i$) is meticulously scheduled based on the total variation in the environment.

Datasets

Not discussed in the paper. This is a purely theoretical paper focusing on algorithmic design and mathematical proofs; no empirical simulations or datasets were used.

Key Insights and Ideas

  • Local vs. Global Variation: Instead of just looking at how the optimal average reward changes globally, the paper focuses on local variations (step-by-step changes in specific state-action pairs). They prove a fundamental perturbation bound showing that global variation in average reward is strictly bounded by these local metrics scaled by the MDP's diameter ($VT \le V_T^r + DV_T^p$).
  • Sublinear Regret in Gradually Changing Worlds: Previous restart methods relied on the number of abrupt changes ($L$). If an environment changed slightly at every single step, $L$ would equal the time horizon $T$, rendering prior bounds trivial (linear). By shifting the metric to total variation ($V$), this paper proves you can achieve sublinear regret even if the environment changes continuously, provided the total magnitude of change is bounded.
  • The Danger of Blind Restarts: The authors explore what happens if you set the variation parameters to zero (ignoring non-stationarity within a phase). They discover a unique RL trap: the algorithm's virtual "blended" MDP might lose its connectivity, leading to an infinite diameter ($\hat{D}$) and breaking the theoretical guarantees. This proves that knowing or bounding the variation is structurally critical in RL compared to simpler bandit settings.

Key Results

  • The algorithm achieves a cumulative regret bound of $\tilde{O}(V^{1/3}T^{2/3}DS\sqrt{A})$ with high probability (where $V$ is total variation, $T$ is time steps, $D$ is diameter, $S$ is states, and $A$ is actions).
  • This bound is optimal with respect to both the time horizon $T$ and the total variation $V$, matching the fundamental lower bounds established in simpler multi-armed bandit settings.

Limitations and Future Work

  • Prior Knowledge of Variation: The optimal restart schedule requires knowing (or having a good upper bound on) the total variation parameters ($V_T^r$ and $V_T^p$) in advance.
  • The Challenge of Unknown Variation: While parameter-free, fully adaptive algorithms exist for non-stationary bandits, extending this to general RL is highly challenging. In RL, exploring a state-action pair to detect environmental changes incurs transition costs, making passive adaptation difficult. The authors highlight developing a variation-blind, parameter-free RL algorithm as the most prominent open problem.

Summary updated

BibTeX
@inproceedings{gajane2019variational,
  author = {Pratik Gajane and Ronald Ortner and Peter Auer},
  title = {{Variational Regret Bounds for Reinforcement Learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2019},
}
Figure