arXiv:2610.06213cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06213

Sampling Allocation of LinUCB: Optimal Design Limits in the Small-Gap Regime

Yujie Liu, Vincent Y. F. Tan, Yunbei Xu

Abstract

We study the sampling allocation of LinUCB in the small-gap regime, where the reward gaps are of order at most n−1/2n^{-1/2} over the decision horizon n. This scaling captures the hard instances underlying worst-case regret lower bounds, for which LinUCB is known to be near optimal up to logarithmic factors in n. Using a mean-field perspective, we characterize this allocation through the empirical sampling distribution, a macroscopic object that averages the effect of adaptive decisions over the horizon, and identify its limit as n→∞n \to \infty. We establish that in this regime, the empirical sampling distribution induced by LinUCB converges to the set of D-optimal designs. This central result reveals that, in the small-gap regime, LinUCB not only achieves near optimal minimax regret but also allocates samples in a way that is asymptotically efficient for learning the reward parameter, thereby connecting regret-driven online learning with information-efficient experimental design. Building on the optimal design limit, we obtain two useful consequences. First, we refine the asymptotic regret analysis of LinUCB in the small-gap regime by characterizing its leading-order constant in the limit. Second, we show that, despite LinUCB's adaptive sampling strategy, the regularized least-squares estimator satisfies a central-limit-type theorem in the small-gap regime, thereby enabling valid statistical inference for the reward parameter.

1 Introduction

Linear bandits provide a canonical framework for sequential decision making with correlated rewards and have become a fundamental model for optimizing machine learning systems under uncertainty (Li et al. 2010). In such applications, a learner repeatedly chooses among competing actions, such as personalized recommendation (Li et al. 2010), cloud configurations (Alipourfard et al. 2017), or adaptive video streaming (Mao et al. 2017), and observes noisy performance feedback from real system operations. By learning from this feedback, the learner aims to improve system performance over time and make increasingly informed decisions.

Traditional analyses of linear bandits have primarily focused on regret minimization (Dani et al. 2008, Chu et al. 2011, Abbasi-Yadkori et al. 2011). Regret is a cumulative reward criterion: it evaluates the total performance loss relative to an oracle policy. While regret is the fundamental benchmark for decision quality, it does not directly describe the algorithm's sampling allocation, namely how samples are adaptively allocated across the action space over time. This perspective dates back to the seminal work of Lai and Robbins (1985), whose terminology—"adaptive allocation rules"—reflects the problem's origins in experimental design. We study this complementary allocation question for linear bandits. The sampling allocation is a finer object than cumulative regret: it records how information accumulates, explains the mechanism behind regret guarantees, and provide the right foundation for refined asymptotic questions, including asymptotic regret and statistical inference for the reward parameter. Motivated by this perspective, we focus on the sampling allocation of LinUCB, one of the most widely used algorithms for linear bandits in real-world applications. LinUCB achieves near optimal minimax regret guarantees up to logarithmic factors (Chu et al. 2011), yet its sampling behavior remains much less understood.

We characterize LinUCB’s sampling allocation in the small-gap regime, which captures a worst-case setting for regret minimization. This regime is formalized through a triangular-array framework: in the nth instance, the reward gaps are of order at most n−1/2n^{-1/2} over the decision horizon n. This n−1/2n^{-1/2} scaling underlies the hard instances used to establish minimax regret lower bounds for linear bandits (Dani et al. 2007, Lattimore and Szepesvári 2020). Since LinUCB achieves near optimal minimax regret guarantees up to logarithmic factors, this regime provides a natural setting for studying the sampling allocation underlying its worst-case regret performance. Intuitively, gaps on the n−1/2n^{-1/2} scale keep differences in expected rewards comparable to statistical estimation errors over the horizon, so identifying the optimal action remains challenging. In practice, this captures settings such as online experiments comparing product variants, where the available experimental budget is insufficient to reliably distinguish between alternatives, yet repeated suboptimal decisions can still lead to non-negligible cumulative losses.

In this paper, we ask the following central question:

How can we characterize the sampling allocation of LinUCB in the small-gap regime?

Characterizing this sampling allocation of an adaptive linear bandit algorithm is challenging because its decisions are history-dependent, feedback-driven, and coupled through a correlated linear reward model. To make this allocation behavior analytically tractable, we adopt a mean-field perspective in the classical statistical mechanics sense: rather than tracking the microscopic sequence of adaptive decisions, we characterize the limiting behavior of a macroscopic object, namely the empirical sampling distribution, as the decision horizon grows. This object averages the effect of adaptive decisions over the horizon.

Under this mean-field perspective, we answer the above question by identifying the limit of the empirical sampling distribution in the small-gap regime. Specifically, we show that the empirical sampling distribution induced by LinUCB converges to the set of D-optimal designs (Kiefer 1959). Thus, LinUCB's long-run sampling allocation is governed by an optimal design principle, revealing that in the small-gap regime, LinUCB not only achieves near optimal minimax regret but also allocates samples in a way that is asymptotically efficient for learning the reward parameter.

Together with this result, the mean-field perspective manifests itself in three related ways. First, in the macroscopic sense, the empirical sampling distribution summarizes the average effect of adaptive decisions. Inspired by statistical mechanics (Ellis 2006), we view individual decisions as microscopic dynamics and the empirical sampling distribution as a macroscopic object that records their collective evolution. Second, the mean-field description becomes asymptotically exact in the large-horizon, small-gap regime. Third, under LinUCB, the optimal-design limit shows that this macroscopic limit is characterized by the maximizers of a potential function, namely the D-optimality criterion (Kiefer 1959), a structure that does not arise in the same form for ordinary multi-armed bandits (Kalvit and Zeevi 2021, Khamaru and Zhang 2024, Han 2026). These three aspects—the macroscopic interpretation, the limiting framework, and the potential function characterization—are summarized in Table 1.

Mean-field statistical mechanicsLinUCB in small-gap regime
Mean-field viewpointAverage many interacting microscopic degrees of freedom into a macroscopic objectAverage adaptive sampling decisions over the decision horizon into the empirical sampling distribution
Microscopic variablesMicroscopic component states, e.g., (X1,…,XN)(X_{1}, \dots, X_{N})Adaptive sampling decisions (A1(n),…,An(n))(A_{1}^{(n)}, \dots, A_{n}^{(n)})
Macroscopic objectAn order parameter or empirical observable, e.g., μN=1N∑i=1Nf(Xi)\mu_{N} = \frac{1}{N} \sum_{i=1}^{N} f(X_{i})The empirical sampling distribution πn(n)=1n∑t=1nδAt(n)\pi_{n}^{(n)} = \frac{1}{n} \sum_{t=1}^{n} \delta_{A_{t}^{(n)}}
System sizeNumber of components (N→∞N \to \infty)Decision horizon (n→∞n \to \infty)
Fixed scaling quantityKeep suitable intensive parameters fixed, such as density or temperatureSmall-gap regime: reward gaps Δ(n)\Delta^{(n)} scale with the horizon nn according to Δ(n)=O(n−1/2)\Delta^{(n)} = O(n^{-1/2})
Potential functionA variational objective characterizing the macroscopic stateThe D-optimality criterion Φ(π)=log⁡det⁡M(π)\Phi(\pi) = \log \det M(\pi), where M(⋅)M(\cdot) is given in (4)
Limit characterizationThe limiting macroscopic state is characterized by optimizers of the potential functionThe empirical sampling distribution converges to PD=argmax⁡π∈P(A)Φ(π)\mathcal{P}_{D} = \operatorname{argmax}_{\pi \in \mathcal{P}(\mathcal{A})} \Phi(\pi) (Theorem 1)

Table 1: A Mean-Field Perspective on LinUCB in Small-Gap Regime

References (39)