Achieving Near-Optimal Regret for Bandit Algorithms with Uniform Last-Iterate Guarantee

Junyan Liu, Yunfan Li, Lin Yang · DOI

Introduction

In reinforcement learning (RL) and multi-armed bandit (MAB) problems, the standard measure of success is typically cumulative regret—the total reward lost while the agent learns the environment. While minimizing cumulative regret ensures good performance on average, it does not guarantee the reliability of the agent at any specific moment. In high-stakes environments such as clinical trials, autonomous driving, or financial trading, a single suboptimal decision can have catastrophic consequences.

A recent paper by Liu et al. (2024), presented at NeurIPS 2024, addresses this gap by introducing the Uniform Last-Iterate (ULI) guarantee. This metric ensures that an agent's performance improves monotonically over time, preventing it from revisiting poor strategies once sufficient data has been collected.

The Problem with Standard Metrics

Traditional metrics like Regret or Probably Approximately Correct (PAC) bounds focus on the "big picture." A low cumulative regret allows an agent to play an arbitrarily bad policy at any specific time $t$, provided it performs well enough at other times to keep the average high. Similarly, Uniform-PAC metrics bound the number of mistakes but do not restrict when those mistakes occur.

In contrast, a ULI guarantee requires the suboptimality of the policy at round $t$ to be bounded by a function that shrinks as $t$ grows. Formally, for a given confidence level $\delta$, the suboptimality $\Delta_t$ must satisfy $\Delta_t \leq f(t, \delta)$ for all $t$ simultaneously, where $f$ decreases with $t$. This "super-metric" is strictly stronger than existing metrics; an algorithm with a near-optimal ULI guarantee automatically satisfies near-optimal regret and Uniform-PAC bounds, but the reverse is not true.

The Failure of "Optimism Under Uncertainty"

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

UCB-style algorithms maintain exploration by adding a bonus (typically proportional to $\sqrt{\log t / N_t}$) to the estimated value of an arm. Because this bonus grows with $\log t$, the algorithm is mathematically compelled to revisit suboptimal arms infinitely often to ensure their estimates remain "optimistic." The authors prove that even sophisticated optimistic algorithms like lil'UCB only achieve a ULI of $\Omega(t^{-1/4})$, which is significantly worse than the $t^{-1/2}$ rate achieved by other methods.

Proposed Algorithms and Frameworks

The authors propose elimination-based strategies across three settings to achieve near-optimal ULI:

1. Multi-Armed Bandits (MAB)

The researchers show that elimination frameworks, such as Successive Elimination (SE) and Phased Elimination (PE), naturally satisfy ULI. By aggressively pruning arms that are statistically proven to be suboptimal, these algorithms ensure the agent never "backslides" into testing known-inferior options.

2. Linear Bandits with Infinite Arms

To handle the complexity of infinite action spaces, the authors introduce an Adaptive Barycentric Spanner. This technique identifies a finite set of "basis" arms that represent the entire action space. As the algorithm eliminates regions of the space, it adaptively updates this basis, maintaining computational efficiency while achieving the ULI guarantee.

3. Tabular Episodic MDPs

For full reinforcement learning, the authors propose Policy Elimination. This algorithm uses uncertainty-driven rewards to explore the state-action space. It ensures the agent gathers enough information to accurately estimate the value of all policies before discarding the suboptimal ones.

Key Theoretical Results

The paper establishes several benchmarks for ULI performance using mathematical synthetic instances of bandits and MDPs:

  • Lower Bound: The authors prove that no bandit algorithm can achieve a ULI guarantee better than $\Omega(t^{-1/2})$.
  • Near-Optimality: The proposed elimination-based algorithms for MAB and Linear Bandits achieve $O(t^{-1/2})$ (ignoring logarithmic factors), matching the theoretical lower bound.
  • MDP Performance: The new algorithm for tabular MDPs achieves a ULI guarantee of $\tilde{O}(t^{-1/2} \sqrt{S^3AH^5})$. This represents the first near-optimal ULI result for reinforcement learning in MDPs.

Conclusion and Future Directions

The shift from cumulative regret to Uniform Last-Iterate guarantees represents a significant step toward making RL safe for real-world, high-stakes applications. By proving that elimination is superior to optimism for instantaneous reliability, the authors provide a new roadmap for algorithm design.

However, challenges remain. The current MDP algorithm requires enumerating all deterministic policies, which is computationally expensive ($A^{SH}$). Future work is needed to develop "oracle-efficient" algorithms for MDPs and to improve the dependence on the planning horizon $H$. Identifying the exact "turning point" where ULI-focused algorithms begin to outperform optimistic ones in practice will also be crucial for engineers deploying these systems in the field.

Reference: Liu, J., Li, Y., Wang, R., & Yang, L. F. (2024). Uniform Last-Iterate Guarantee for Bandits and Reinforcement Learning. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).

Summary updated

BibTeX
@inproceedings{liu2024achieving,
  author = {Junyan Liu and Yunfan Li and Lin Yang},
  title = {{Achieving Near-Optimal Regret for Bandit Algorithms with Uniform Last-Iterate Guarantee}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=J3w0AXtEhp},
}
Figure