In sequential decision-making problems—such as multi-armed bandits, A/B testing, and reinforcement learning—an agent must often solve the problem of pure exploration. Unlike the classic explore-exploit dilemma where the goal is to maximize cumulative reward, the objective here is purely informational: find the best option (the "best arm" or optimal policy) as quickly and efficiently as possible, subject to a strict reliability guarantee.
In the fixed-confidence setting, we specify an error tolerance $\delta$ (e.g., 5%). The algorithm must collect data sequentially and terminate at a random stopping time $\tau$ such that, upon stopping, it identifies the true optimal choice with a probability of at least $1 - \delta$.
The core challenge is designing the stopping rule. If the agent stops too early, it risks violating the confidence guarantee. If it stops too late, it wastes expensive samples. While early methods relied on simple, overlapping confidence intervals, modern optimal algorithms rely on a more powerful statistical mechanism: the Generalized Likelihood Ratio (GLR) test.
The Intuition: Testing Against the Closest Alternative
To understand why GLR stopping rules are highly efficient, it helps to contrast them with traditional confidence-interval-based stopping criteria.
Imagine you are testing multiple options to find the one with the highest mean reward. A naive stopping rule monitors the confidence intervals of each option independently. It terminates only when the lower confidence bound of the empirical leader is strictly greater than the upper confidence bounds of all its competitors, meaning the intervals are completely disjoint.
Naive Confidence Interval Stopping (Disjoint Bounds):
Arm 1 (Leader): [======*======]
Arm 2 (Competitor): [======*======]
^ Exploration stops here
While intuitive, this approach is fundamentally conservative. It treats each arm as an isolated entity and ignores the joint probability space of the entire system.
The GLR approach flips the question. Instead of asking, "Are the error bars around my estimates small enough?" it asks, "How much more likely is my current data under the hypothesis that the leader is truly the best, compared to the most plausible alternative reality where the leader is actually a loser?"
Mathematically, let $\theta$ represent the true underlying parameters of the environment (e.g., the vector of true arm means). Based on the samples collected so far, we can compute the empirical maximum likelihood estimate $\hat{\theta}$. Suppose $\hat{\theta}$ suggests that Arm 1 is the best choice. We define two competing hypotheses:
- The Configuration Space of Truth ($\mathcal{H}_1$): The set of all possible environments where Arm 1 is indeed the unique optimal choice.
- The Alternative Space ($\mathcal{H}_0$): The set of all possible environments where Arm 1 is not the best choice (i.e., some other arm is equal or superior).
The GLR statistic computes the ratio of the maximum likelihood of our observed data under $\mathcal{H}_1$ versus $\mathcal{H}_0$:
$$Z_t = \frac{\sup_{\theta \in \mathcal{H}_1} L(\text{Data} \mid \theta)}{\sup_{\theta \in \mathcal{H}_0} L(\text{Data} \mid \theta)}$$
The denominator searches for the closest alternative hypothesis—the parameter configuration closest to our empirical observations where our current choice would be wrong. If the observed data is overwhelmingly more consistent with the leader being optimal than with this "worst-case alternative," the GLR statistic $Z_t$ spikes. The algorithm stops as soon as $\log Z_t$ crosses a threshold scaled by $\log(1/\delta)$.
Why GLR Achieves Instance Optimality
In a seminal paper, Garivier et al. established the foundational theoretical limits of fixed-confidence pure exploration in Optimal Best Arm Identification with Fixed Confidence. They proved an information-theoretic lower bound showing that the expected number of samples required to identify the best arm is inherently tied to a mathematical game between the learner's sampling allocation and the closest alternative environment.
Their proposed Track-and-Stop framework pairs an active sampling rule with a GLR stopping criterion. By evaluating the likelihood ratio against the closest alternative, the stopping rule naturally adapts to the exact difficulty of the specific instance. As the confidence requirement approaches certainty ($\delta \to 0$), this GLR stopping rule ensures that the sample complexity matches the absolute mathematical lower bound, achieving what is known as asymptotic instance optimality.
Building on this, researchers have integrated GLR stopping rules with computationally efficient allocation strategies. For example, Wang et al. introduced Frank-Wolfe-based Sampling in Fast Pure Exploration via Frank-Wolfe, combining a tracking rule with a GLR test to bypass expensive optimization steps while maintaining optimal sample efficiency.
Exploiting Structure and Constraints
The true power of GLR stopping rules becomes evident when moving beyond simple independent multi-armed bandits into structured environments, such as linear models or Markov Decision Processes (MDPs).
In structured environments, pulling one arm or visiting a state provides statistical information about other arms or states due to shared underlying parameters. Traditional confidence intervals struggle to capture these geometric correlations cleanly, often resulting in loose bounds and over-sampling. GLR tests, by contrast, seamlessly handle these complexities because the likelihood functions naturally incorporate the structural constraints of the environment.
Linear Bandits and Constraints
In applications like telecommunications, Vannella et al. applied GLR stopping rules to optimize antenna tilt policies in Learning Optimal Antenna Tilt Control Policies: A Contextual Linear Bandit Approach. Because the context and actions are modeled linearly, a sample from one configuration reduces uncertainty across the entire parameter space. The GLR test tracks this global uncertainty reduction, stopping the moment the target policy is mathematically guaranteed to be $\epsilon$-optimal.
Similarly, when the optimal solution is a stochastic policy governed by safety or resource constraints, Carlsson et al. demonstrated in Pure Exploration in Bandits with Linear Constraints that the GLR stopping rule can be explicitly adapted to the geometry of linear constraints. The stopping rule evaluates whether the accumulated evidence is sufficient to isolate the unique optimal policy on the boundary of the constrained feasible region.
Markov Decision Processes
Finding the best policy in an MDP is notoriously difficult due to the temporal dependencies of state transitions. In Navigating to the Best Policy in Markov Decision Processes, Al Marjani et al. showed that GLR tests serve as significantly more efficient stopping criteria for policy identification than traditional confidence-interval methods. By directly comparing the current best transition-and-reward hypothesis against alternative environment models, GLR stopping rules reduce the required sample size by approximately a factor of two.
For environments with temporal dependencies, Moulos extended this principle to Markovian reward processes in Optimal Best Markovian Arm Identification with Fixed Confidence, proving that a Track-and-Stop strategy utilizing a Markov-adjusted likelihood ratio remains asymptotically optimal.
Summary
The Generalized Likelihood Ratio stopping rule works because it shifts the termination criteria from a local perspective (checking if individual error bars are small) to a global, hypothesis-driven perspective (checking if any alternative reality is still plausible). By constantly measuring the statistical distance to the "closest alternative hypothesis," GLR rules ensure that an algorithm explores precisely until the probability of making an incorrect decision drops below the user's threshold, maximizing data efficiency across bandits, linear models, and reinforcement learning.