Uniform Last-Iterate Guarantee for Bandits and Reinforcement Learning

Junyan Liu, Yunfan Li, Ruosong Wang, Lin Yang

Introduction

In the realm of online decision-making, reinforcement learning (RL) and bandit algorithms are typically evaluated using cumulative metrics like regret or sample complexity metrics like PAC (Probably Approximately Correct) bounds. However, these standard metrics harbor a critical safety loophole: they allow an algorithm to execute an arbitrarily bad policy at any specific time step $t$, provided the long-term average remains acceptable. In high-stakes environments—such as clinical trials, autonomous driving, or financial trading—a single disastrous decision made late in the learning process is unacceptable.

To address this, recent research introduces the Uniform Last-Iterate (ULI) guarantee, a rigorous new metric that ensures an agent's performance improves monotonically over time, preventing it from revisiting known bad policies once sufficient data is gathered.

The "Optimism" Loophole in Traditional Metrics

Traditionally, algorithms are designed to minimize regret (the total reward lost compared to an optimal strategy) or to find a good policy within a certain number of samples. A popular approach to achieve this is "Optimism in the Face of Uncertainty," exemplified by Upper Confidence Bound (UCB) algorithms.

While optimistic algorithms are the gold standard for regret minimization, their very mechanism for exploration makes them unsafe under instantaneous performance metrics. Because these algorithms use an exploration bonus that grows with $\log t$, they are mathematically forced to occasionally revisit suboptimal arms infinitely often. For example, an optimistic algorithm might decide to test a known-to-be-bad treatment at round 1,000,000 simply to satisfy a mathematical exploration bonus.

The Uniform Last-Iterate (ULI) Guarantee

The authors propose the ULI guarantee to bridge the gap between traditional RL and "Safe RL." A ULI algorithm must ensure that the suboptimality of the policy it plays at round $t$ is bounded by a function that strictly decreases as $t$ grows. Essentially, it forces the algorithm to actually get better—and stay better—as it learns.

The paper establishes a clear hierarchy of RL metrics: ULI $\implies$ Uniform-PAC $\implies$ Regret / PAC

If an algorithm achieves a near-optimal ULI guarantee, it automatically achieves near-optimal regret and PAC bounds. However, the reverse is not true, highlighting ULI as a strictly stronger and safer standard.

Algorithmic Solutions: Elimination over Optimism

To achieve ULI, the paper argues that we must move away from "soft" exploration (like UCB) toward "hard" elimination. Once an option is statistically proven to be bad, it should be discarded permanently.

Finite Bandits

The authors demonstrate that elimination-based algorithms (such as Phased Elimination) are naturally suited for ULI. By providing a stronger theoretical analysis of these algorithms, they prove that elimination methods can attain a near-optimal ULI rate of $\tilde{O}(t^{-1/2})$, matching the theoretical lower bound of $\Omega(t^{-1/2})$ for any bandit algorithm.

Linear Bandits

For linear bandits with infinitely many arms, continuous spaces make standard elimination tricky. The authors introduce a novel technique called the Adaptive Barycentric Spanner. This method selects a finite set of "base arms" that can represent the entire active arm space, allowing the algorithm to perform elimination efficiently. This oracle-efficient algorithm achieves a ULI of $\tilde{O}(d^{1.5}t^{-1/2})$, matching the best-known regret bounds for this setting.

Tabular Markov Decision Processes (MDPs)

For full Reinforcement Learning in MDPs, the authors propose an algorithm that uses uncertainty-driven rewards to thoroughly explore the environment before performing policy elimination. This approach achieves a ULI of $\tilde{O}(\sqrt{S^3 AH^5 / t})$, where $S$ is the number of states, $A$ is the number of actions, and $H$ is the horizon.

Limitations and Open Challenges

While ULI provides a robust theoretical framework for reliable RL, several challenges remain for future work:

  1. Computational Efficiency in RL: The proposed algorithm for tabular MDPs requires enumerating all deterministic policies, a set that grows exponentially ($A^{SH}$). Developing a computationally efficient version of this algorithm is a major open challenge.
  2. Linear Function Approximation in RL: The current RL results are limited to tabular settings. Extending ULI guarantees to MDPs with linear function approximation is a crucial next step for scaling these safety guarantees to larger environments.
  3. Closing the Regret Gap: For linear bandits, there remains a $\sqrt{d}$ gap between the achieved regret and the theoretical lower bound, reflecting a long-standing open problem in the broader bandit literature.

Conclusion

The Uniform Last-Iterate guarantee represents a significant step forward in designing reinforcement learning algorithms that are not just optimal on average, but reliably safe at every step. By shifting the paradigm from optimistic exploration to rigorous elimination, ULI paves the way for deploying RL in high-stakes, real-world applications where late-stage blunders cannot be tolerated.

Summary updated

BibTeX
@inproceedings{liu2024uniform,
  author = {Junyan Liu and Yunfan Li and Ruosong Wang and Lin Yang},
  title = {{Uniform Last-Iterate Guarantee for Bandits and Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=J3w0AXtEhp},
}
Figure