Variational Regret Bounds for Reinforcement Learning

Ronald Ortner, Pratik Gajane, Peter Auer

Abstract

This paper addresses the challenge of reinforcement learning (RL) in non-stationary environments where rewards and transition dynamics change over time. While traditional approaches often rely on the number of abrupt changes, this work introduces the first variational regret bounds for general RL. By proposing the Variation-aware UCRL algorithm, the authors achieve an optimal regret bound of $\tilde{O}(V^{1/3}T^{2/3})$, where $V$ represents the total variation of the environment. This approach allows for effective learning even in environments undergoing continuous, gradual drift.

1. Introduction

Standard Reinforcement Learning (RL) theory typically operates under the assumption of stationarity, where the underlying Markov Decision Process (MDP) remains constant throughout the agent's interaction. However, real-world applications—ranging from recommendation systems to financial trading—frequently encounter non-stationary dynamics. In these settings, user preferences or market conditions may shift gradually or abruptly.

Previous theoretical work handled non-stationarity by bounding regret based on the number of discrete changes ($L$). However, this metric fails in environments with continuous drift, where $L$ can scale linearly with time $T$, leading to trivial regret bounds. This paper shifts the focus to "total variation" ($V$), providing a more robust framework for quantifying environmental change and establishing the first variational regret bounds for general RL.

2. Non-Stationary MDPs and Total Variation

The authors consider a non-stationary MDP where both the reward function $r_t(s, a)$ and the transition probability $P_t(s'|s, a)$ can change at every time step $t$. The goal is to minimize the cumulative regret $R_T$, defined as the difference between the rewards collected by an optimal non-stationary policy and those collected by the agent over $T$ steps.

The key metric introduced is the total variation $V$, which sums the changes in rewards and transitions across the entire time horizon: $$V = \sum_{t=1}^{T-1} \sup_{s,a} |r_{t+1}(s,a) - r_t(s,a)| + \sum_{t=1}^{T-1} \sup_{s,a} \|P_{t+1}(\cdot|s,a) - P_t(\cdot|s,a)\|_1$$ By using $V$ instead of the count of changes $L$, the theory accounts for both sudden shifts and slow, persistent drift.

3. The Variation-aware UCRL Algorithm

To tackle this problem, the authors extend the Upper Confidence Bound for Reinforcement Learning (UCRL) framework. The proposed Variation-aware UCRL incorporates two primary mechanisms to handle non-stationarity:

  1. Dynamic Confidence Intervals: Standard UCRL reduces uncertainty as more data is collected. In a non-stationary world, old data becomes less reliable. The authors' algorithm expands confidence intervals based on the known variation in the environment, preventing the agent from becoming overconfident in outdated models.
  2. Optimal Restarting Schedule: To mitigate the impact of "stale" data, the algorithm employs a restart strategy (Algorithm 2). By periodically clearing its memory and restarting the learning process, the agent ensures that its policy is always based on relatively recent observations. The frequency of these restarts is mathematically tuned to the relationship between $V$ and $T$.

A critical component of the analysis is a new Perturbation Bound (Lemma 5), which relates changes in the MDP's underlying functions to the resulting change in the optimal average reward.

4. Main Theoretical Results

The central contribution of the paper is Theorem 3, which establishes a high-probability upper bound on the cumulative regret: $$R_T \leq \tilde{O}(V^{1/3}T^{2/3}DS\sqrt{A}$$ In this bound:

  • $V$ is the total variation.
  • $T$ is the time horizon.
  • $D$ is the MDP diameter (the maximum expected time to move between any two states).
  • $S$ and $A$ are the state and action space sizes, respectively.

This $T^{2/3}$ scaling is significant. While stationary RL typically achieves $\sqrt{T}$ regret, the $T^{2/3}$ rate is the theoretical price of non-stationarity. Notably, this bound matches the lower bounds previously established for simpler multi-armed bandit problems, suggesting that Variation-aware UCRL is near-optimal for general RL in changing environments.

5. Discussion and Limitations

The transition from counting changes to measuring variation represents a significant advancement in RL theory, allowing for a more realistic treatment of environmental drift. However, several challenges remain:

  • Prior Knowledge: The current algorithm requires the total variation $V$ to be known in advance to optimize the restart schedule. Developing "parameter-free" algorithms that adapt to $V$ on the fly remains a difficult open problem in RL due to the complexities of state exploration.
  • MDP Diameter: The dependence on the diameter $D$ assumes that the environment remains "well-connected." If non-stationarity causes certain states to become unreachable, $D$ can become infinite, rendering the current bounds inapplicable.
  • Exploration Costs: Unlike bandits, RL agents must navigate the state space to gather information. This physical constraint makes non-stationary RL fundamentally more difficult than its bandit counterparts.

6. Conclusion

This work provides a foundational theoretical framework for RL in non-stationary environments. By introducing variational regret bounds, the authors bridge the gap between stationary RL theory and the dynamic realities of real-world applications, offering an algorithm that remains efficient even under continuous environmental change.

Summary updated

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