NeurIPS2024

Almost Minimax Optimal Best Arm Identification in Piecewise Stationary Linear Bandits

Yunlong Hou, Vincent Y. F. Tan, Zixin Zhong

Abstract

We propose a novel piecewise stationary linear bandit (PSLB) model, where the environment randomly samples a context from an unknown probability distribution at each changepoint, and the quality of an arm is measured by its return averaged over all contexts. The contexts and their distribution, as well as the changepoints are unknown to the agent. We design Piecewise-Stationary ε\varepsilon-Best Arm Identification+^+ (PSε\varepsilonBAI+^+), an algorithm that is guaranteed to identify an ε\varepsilon-optimal arm with probability 1δ\ge 1-\delta and with a minimal number of samples. PSε\varepsilonBAI+^+ consists of two subroutines, PSε\varepsilonBAI and Naïve ε\varepsilon-BAI (Nε\varepsilonBAI), which are executed in parallel. PSε\varepsilonBAI actively detects changepoints and aligns contexts to facilitate the arm identification process. When PSε\varepsilonBAI and Nε\varepsilonBAI are utilized judiciously in parallel, PSε\varepsilonBAI+^+ is shown to have a finite expected sample complexity. By proving a lower bound, we show the expected sample complexity of PSε\varepsilonBAI+^+ is optimal up to a logarithmic factor. We compare PSε\varepsilonBAI+^+ to baseline algorithms using numerical experiments which demonstrate its efficiency. Both our analytical and numerical results corroborate that the efficacy of PSε\varepsilonBAI+^+ is due to the delicate change detection and context alignment procedures embedded in PSε\varepsilonBAI.