Uniform Last-Iterate Guarantee for Bandits and Reinforcement Learning

Junyan Liu, Yunfan Li, Lin F. Yang, Yang, Lin F. · DOI

Abstract

Existing metrics for reinforcement learning (RL), such as regret, PAC bounds, or uniform-PAC, typically evaluate cumulative performance. However, these metrics allow an agent to play an arbitrarily bad policy at any finite time $t$, a behavior that is potentially catastrophic in high-stakes applications like clinical trials or autonomous driving. This paper introduces a stronger metric, the Uniform Last-Iterate (ULI) guarantee, which captures both cumulative and instantaneous performance. ULI ensures that the per-round suboptimality of the played policy is bounded by a function that decreases monotonically with time $t$, preventing the agent from revisiting bad policies once sufficient samples are available. We demonstrate that while near-optimal ULI implies near-optimal cumulative performance, the reverse is not true. We provide positive results for finite and linear bandits, as well as tabular RL, while proving that standard optimistic algorithms (UCB) are fundamentally incapable of achieving near-optimal ULI.

Introduction

In Reinforcement Learning (RL), the standard yardstick for success is regret—the cumulative difference between the rewards of an optimal policy and those obtained by the agent. While regret is effective for measuring long-term efficiency, it possesses a dangerous blind spot: it does not account for when mistakes occur. A low-regret algorithm could theoretically perform perfectly for years and then suddenly execute a catastrophic action due to exploration requirements.

In safety-critical domains, this "exploration blip" is unacceptable. To address this, researchers from the University of Washington, UCLA, and Peking University (presented at NeurIPS 2024) have proposed the Uniform Last-Iterate (ULI) guarantee. This metric demands that an agent's performance improves monotonically, ensuring that as more data is gathered, the risk of a late-stage blunder vanishes.

The Uniform Last-Iterate (ULI) Metric

The ULI metric shifts the focus from cumulative totals to instantaneous performance. Specifically, it requires the suboptimality of the policy at round $t$ ($\Delta_t$) to be upper-bounded by a function that decays over time, typically at a rate of $1/\sqrt{t}$.

Unlike Uniform-PAC, which bounds the total number of times an agent can be suboptimal, ULI ensures that those mistakes cannot happen arbitrarily late in the learning process. The authors prove that ULI is the "gold standard" of RL metrics: a near-optimal ULI guarantee directly implies near-optimal Regret, PAC, and Uniform-PAC performance, whereas the reverse is not true.

Why Optimism Fails

One of the paper's most significant theoretical contributions is the discovery that Optimism Under Uncertainty—the foundational principle behind Upper Confidence Bound (UCB) algorithms—is fundamentally incompatible with near-optimal ULI.

UCB-style algorithms utilize exploration bonuses (often containing a $\log t$ term) to encourage the agent to try less-visited actions. However, this very mechanism eventually forces the agent to re-explore suboptimal arms indefinitely, preventing the instantaneous suboptimality from decaying at the required rate. Consequently, the authors prove a negative result: optimistic algorithms cannot achieve near-optimal ULI guarantees.

Algorithmic Solutions

If optimism is not the answer, what is? The paper highlights Elimination-based frameworks as the path forward. By explicitly discarding policies or arms once they are proven to be suboptimal, these algorithms can guarantee that the agent never returns to a bad state.

1. Finite and Linear Bandits

For finite-arm bandits, the authors show that Successive Elimination and Phased Elimination algorithms achieve the near-optimal rate of $O(1/\sqrt{t})$. For linear bandits with infinite arms, they introduce an Adaptive Barycentric Spanner. This technique identifies a finite set of "base arms" that represent the entire continuous space, allowing for efficient elimination even in complex environments. This results in a ULI guarantee of $\tilde{O}(d^{3/2}/\sqrt{t})$, where $d$ is the dimension.

2. Tabular Reinforcement Learning

Moving to Markov Decision Processes (MDPs), the authors propose an algorithm that uses uncertainty-driven rewards to build a model of the environment, followed by rigorous policy elimination. They achieved a guarantee of $\tilde{O}(\sqrt{S^3AH^5/t})$ for episodic MDPs. While this proves that ULI is achievable in full RL settings, the current dependence on the state space ($S$) and horizon ($H$) remains an area for optimization.

Conclusion and Future Work

The introduction of the ULI metric provides a rigorous framework for developing "safe" RL agents that improve reliably over time. However, several challenges remain:

  • Computational Complexity: The current RL algorithm requires enumerating all deterministic policies, which is computationally prohibitive ($A^{SH}$). Developing a computationally efficient version is a primary goal for future research.
  • Horizon and Function Approximation: Future work aims to achieve "horizon-free" ULI algorithms and extend these guarantees to environments requiring general function approximation to handle infinite state spaces.

By prioritizing instantaneous reliability, the ULI metric moves RL one step closer to deployment in real-world, high-stakes environments where late-stage mistakes are not an option.

Summary updated

BibTeX
@inproceedings{liu2024uniform,
  author = {Junyan Liu and Yunfan Li and Lin F. Yang and Yang, Lin F.},
  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