Near-optimal Optimistic Reinforcement Learning using Empirical Bernstein Inequalities

Aristide C. Y. Tossou, Debabrota Basu, Christos DimitrakakisarXiv 2019

TL;DR

The authors introduce UCRL-V, a reinforcement learning algorithm that finally closes a long-standing theoretical gap in how efficiently an agent can learn in an unknown environment. By using variance-based "Bernstein" confidence intervals instead of standard worst-case bounds, UCRL-V achieves the optimal regret bound of $\tilde{\mathcal{O}}(\sqrt{DSAT})$, matching the known theoretical lower bound without requiring any extra information about the environment.

What Problem Does This Paper Address?

In Reinforcement Learning (RL), an agent must navigate an unknown environment (a Markov Decision Process or MDP) to maximize rewards. This creates the exploration-exploitation dilemma: should the agent stick to what it knows works (exploit) or try new things to learn more (explore)?

Researchers measure performance using regret—the difference between the reward an optimal agent would get and what the learning agent actually receives. For years, the gold-standard algorithm for this setting was UCRL2, which had a regret bound of $\tilde{\mathcal{O}}(DS\sqrt{AT})$. However, the theoretical lower bound was known to be $\Omega(\sqrt{DSAT})$. This left a "gap" of $\sqrt{D}$ and $\sqrt{S}$ (where $D$ is the diameter of the MDP and $S$ is the number of states).

Previous attempts to close this gap either added restrictive assumptions (like knowing the "span" of the value function beforehand) or were limited to specific types of MDPs. This paper aims to reach that optimal bound for any finite communicating MDP using only observable data.

Methods

The authors propose UCRL-V (Upper Confidence Reinforcement Learning with Variance), which improves upon its predecessors through three main technical innovations:

  1. Empirical Bernstein Inequalities: Standard algorithms use Hoeffding bounds, which assume the worst-case range for rewards and transitions. UCRL-V uses Bernstein bounds, which look at the variance. If a transition is very predictable (low variance), the confidence interval shrinks much faster, allowing for more precise "optimism."
  2. Pointwise Transition Constraints: Instead of bounding the total error of a transition vector (the $L_1$ norm), UCRL-V places separate bounds on every possible subset of next states. While this sounds computationally expensive (checking $2^S$ subsets), the authors prove the confidence function is submodular, allowing them to solve it efficiently by checking only $S$ constraints.
  3. Extended Doubling Trick: Usually, RL agents start a new "learning episode" when they double the number of visits to a single state-action pair. UCRL-V uses a new condition based on the average number of visits across all states, which helps mathematically shave off an extra $\sqrt{S}$ factor from the regret.

Datasets

The algorithm was evaluated on four simulated environments designed to test exploration efficiency:

  • RiverSwim: A classic 6-state chain where the agent must "swim against the current" to reach a high-reward state.
  • Bandits: A standard two-armed stochastic bandit problem.
  • GameOfSkill-v1: A 20-state chain requiring a long sequence of correct actions to get a reward; wrong moves undo progress.
  • GameOfSkill-v2: A harder version of the above where a single mistake sends the agent all the way back to the starting state.

Key Insights and Ideas

  • Variance is the Key to Efficiency: The "aha moment" is that learning isn't just about how many times you've seen a state, but how consistent the outcomes are. By accounting for variance, the agent doesn't waste time over-exploring highly predictable transitions.
  • Submodularity Saves Computation: The jump from $2^S$ constraints to $S$ constraints is what makes the algorithm practical. By identifying that the transition bounds follow submodular math, the authors could use a modified version of Value Iteration that is just as fast as older, less accurate methods.
  • Geometric Partitioning: To remove the $\sqrt{D}$ factor in the proof, the authors partitioned states into "bins" based on their relative values. This allowed them to treat the regret as a geometric sum that converges, rather than a linear sum that grows with the number of states.

Key Results

  • Theoretical Optimality: The authors prove that UCRL-V achieves $\tilde{\mathcal{O}}(\sqrt{DSAT})$ regret. This effectively "solves" the regret minimization problem for finite communicating MDPs by matching the lower bound.
  • Empirical Superiority: In head-to-head tests, UCRL-V consistently outperformed UCRL2, KL-UCRL, and TSDE (a posterior sampling method).
  • Scaling: In the "GameOfSkill" environments, UCRL-V showed significantly better scaling as the complexity ($D \times S$) increased. While other algorithms' regret grew sharply, UCRL-V followed the predicted $\sqrt{DS}$ curve closely.

Limitations and Future Work

  • Tabular Limitation: Like most theoretical breakthroughs in this area, UCRL-V is a "tabular" algorithm. It treats every state and action as a discrete entry in a giant table. This doesn't scale directly to continuous environments (like robotics) or high-dimensional ones (like Atari games).
  • Future Directions: The authors suggest exploring how these variance-based tricks could be applied to Function Approximation (using neural networks to represent states) or Posterior Sampling (a Bayesian approach to RL). They also wonder if a similar bound can be reached using KL-divergence-based confidence intervals.

Summary updated

BibTeX
@misc{tossou2019near,
  author = {Aristide C. Y. Tossou and Debabrota Basu and Christos Dimitrakakis},
  title = {{Near-optimal Optimistic Reinforcement Learning using Empirical Bernstein Inequalities}},
  year = {2019},
  eprint = {1905.12425},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.12425},
}
Figure