Introduction
Machine learning systems are increasingly deployed as black-box decision-makers in high-stakes domains, such as healthcare diagnosis, content moderation, and credit decisions. This creates an operational need to evaluate individual models for accuracy as well as to select among multiple candidate decision-making agents (potentially including both ML models and human experts). In many applications, the criterion for selection is multi-faceted and needs to take into account not only prediction accuracy but also the fairness of an agent and (potentially) the cost of querying the agent.
Prior work in this general context often assumes a batch setting in which each agent labels each example in a test set. While useful for offline audits, this approach is costly and infeasible when running multiple models, soliciting human expert judgments, or waiting for ground truth. Many scenarios require that models be deployed and predictive tasks allocated sequentially, necessitating that estimation of model performance and identifying the best-performing model be performed in concert with making actual predictions on real cases. Motivated by such scenarios, in this paper, we focus on learning online selection protocols for such situations, balancing classification accuracy, fairness, and model querying cost, making sequential choices and learning from observed outcomes as they are observed.
As a motivating example for our work, consider a scenario where an insurance company wishes to select a large language model (LLM) to classify customer claims into pre-defined categories. Initially, the company has access to a number of different LLMs and perhaps a single human worker to process the claims, but for operational and cost reasons would like to converge on using only a single agent in the longer-term. As a second example, a hospital may wish to evaluate the effectiveness of re-admission prediction models: if released, will a patient be re-admitted within 30 days? The hospital might have 3 internal models available for evaluation, say a simple linear model, a tree-based model, and a deep learning model. It wishes to select a single model to use going forward for operational and legal reasons. For each scenario, the insurance company or the hospital face the same question: is there a better approach to finding the best model in an online setting, beyond randomly or deterministically assigning claims or patients to models? This general model selection problem is common across application scenarios, where the models (or agents) being selected could include ML models and/or human experts.
In this context, we formalize fair online model selection as a multi-armed bandit problem where each arm corresponds to an agent (a pre-trained classifier or a human expert), and the learner selects an arm for every instance it observes from the sequential stream, observing only that agent’s prediction, and the eventual true label when available. Fairness is encoded through subgroup statistics (for example, subgroup positive-rate gaps) and combined with accuracy into a utility so the selector explicitly trades off these objectives. A Bayesian framework is natural here, as maintaining conjugate posteriors lets the learner represent uncertainty, update beliefs incrementally, and use posterior-sampling to balance exploration and exploitation of the different agents. The approach organically allows for delayed reward, per-arm costs, missing observations, and introducing new agents at any time.
Our primary contributions are the following:
We introduce the problem of online classifier selection in the context of balancing prediction accuracy, fairness, and querying cost. We formulate this within a multi-arm bandit (MAB) framework.
We propose a Thompson sampling approach and develop new theoretical regret bounds that show how differences in sensitive attribute subgroup proportions directly affect convergence rates.
We conduct a series of experiments across multiple real-world classification problems, including classifiers, LLMs, and human agents, and demonstrate significant superiority in efficiency of Thompson sampling (and other MAB approaches) over non-bandit methods such as round-robin querying.
For research reproducibility, we will make all our code and datasets publicly available on GitHub for the final version of our paper.
Relevant prior research can broadly be grouped into two main categories, each of which we discuss below: (i) work in algorithmic fairness (largely focusing on offline settings), (ii) work on online model selection (distinct from fairness). In this context, a distinguishing novel feature of our work is that we investigate the intersection of these themes, namely, online model selection in the setting of algorithmic fairness.
Evaluating the Fairness of Prediction Models There has been a large body of work on the development of “in-process" training algorithms that leverage fairness metrics to learn fair models (e.g., [42 ] ). However, less attention has been paid to the problem of statistical assessment of how fair pretrained models are, for example models that are being deployed “in the wild." In the batch setting, there has been some work on developing general approaches for statistical assessment of the fairness properties of a pre-trained model, emphasizing the need for uncertainty quantification in assessing if the model is fair or not [35 , 37 , 5 , 18 , 59 ] (Ji et al. 2021). In the sequential online setting, Chugg et al. [ [12 ] motivate the importance of statistical auditing of the fairness properties of a deployed prediction model and develop a family of sequential hypothesis testing approaches for this problem. Similarly, Maneriker et al. [ [34 ] develop probabilistic bounding techniques for online monitoring of the fairness properties of a prediction model in a sample-efficient manner.
Our work differs from that described above in that we address the problem of sequential selection from a set of prediction agents (rather than monitoring a single agent) with the goal of identifying the agent that provides the best trade-off between accuracy and fairness (rather than establishing if a particular agent meets the definition of “fair” or not).
Fair Bandit Algorithms There has also been work on fair bandit algorithms that encourage fair selection of arms/contexts. Schumann et al. [ [47 ] consider a setting in which the arms are partitioned into two or more sensitive groups, and the goal is to balance the arms pulled from both groups. Other examples include individual fairness in contextual bandits [23 ] , where lower-merit actions must not be chosen more than high-merit ones; calibrated fairness that matches selection probabilities to an agent’s chance of being best [33 ] , with cumulative merit accounting and exposure fairness extensions [50 ] ; unknown-metric individual fairness learned from weak regulator feedback in linear contextual bandits [17 ] ; and minimum pull-rate guarantees that ensure per-arm exposure for MABs [11 , 40 ] . These methods encourage fair arms selection but do not address fair predictions across sensitive groups as we do in our work. At a high level, the closest work to our setting is Huang et al. [ [20 ] , though it addresses user-side fairness exclusively within recommendation systems. Our approach provides regret bounds that explicitly incorporate sensitive subgroup probabilities and employs a Bayesian framework.
Another related line of work on fair policy algorithms [21 , 53 , 43 , 58 ] , studies fairness in reinforcement learning and Markov decision processes by accounting for long-term effects of decisions. However, these methods focus on policy fairness rather than our focus of predictive fairness across sensitive groups.
Online Model Selection with Pretrained Models Another body of research relevant to our approach is prior work on online model selection from a set of pretrained models (e.g., classifiers or LLMs). The focus of this work is often on the design of efficient sequential algorithms to select the models with the best performance (according to some loss metric) in a streaming online setting. For example, Hu et al. [2025] address the problem of online selection of text-based generative models, conditioned on different prompts, using a contextual-bandit framework with kernel-based feature representations and an upper-confidence-bound (UCB) bandit algorithm. Xia et al. [2024] also use a UCB bandit approach for the specific problem of selecting the best LLM in the context of non-stationarity, where the performance of models (LLMs) may be increasing over time. Wei et al. [2025] present an LLM routing algorithm trained online with bandits. Dai et al. [2024] develop combinatorial cost-aware bandit algorithms for selecting optimal combinations of multiple LLMs in the context of online user queries. The works of Karimi et al. [2021], Kay et al. [2025] and Liu et al. [2024] address the problem of online model selection from a different perspective, namely how to minimize the number of label queries needed to find the best-performing model. In our work, we focus on a different variant of model selection to the settings in the papers described above, in that we add a fairness dimension to the model selection problem, using a general MAB setting with querying costs and reward delays, with theoretical regret bounds to support our approach.
Problem Statement
Let A = { 1 , ⋯ , N } \mathcal{A} = \{1,\cdots,N\} A = { 1 , ⋯ , N } be an index set of agents. Given an input X X X each agent a a a can produce a prediction of a class label, y ^ a \hat{y}_a y ^ a . Let c a ≥ 0 c_a \ge0 c a ≥ 0 be the fixed deterministic query cost incurred to obtain a prediction label from agent a a a . At each round, t = 1 , ⋯ , T t = 1,\cdots,T t = 1 , ⋯ , T , a triplet ( X t , S t , Y t ) (X_t, S_t, Y_t) ( X t , S t , Y t ) is drawn IID from an unknown probability distribution over X × S × Y \mathcal{X} \times\mathcal{S} \times\mathcal{Y} X × S × Y where X \mathcal{X} X is the feature space, S \mathcal{S} S is the set of sensitive attributes, and Y \mathcal{Y} Y is the set of possible outcomes. For now, we focus on two subgroups and binary classification, i.e., S = { 0 , 1 } \mathcal{S} = \{0,1\} S = { 0 , 1 } and Y = { 0 , 1 } \mathcal{Y} = \{0,1\} Y = { 0 , 1 } —we show that the methods and theory we develop can be extended straightforwardly to two subgroups and to multi-class problems using appropriate definitions of fairness [48 , 56 ] . We note that the sensitive attributes are distributed as P ( S t = 0 ) = π 0 \mathbb{P}(S_t = 0) = \pi_0 P ( S t = 0 ) = π 0 and P ( S t = 1 ) = π 1 \mathbb{P}(S_t = 1) = \pi_1 P ( S t = 1 ) = π 1 where π 0 + π 1 = 1 \pi_0 + \pi_1 = 1 π 0 + π 1 = 1 and π min = min { π 0 , π 1 } > 0 \pi_{\min} = \min\{\pi_0,\pi_1\} > 0 π m i n = min { π 0 , π 1 } > 0 . We assume that this does not change over t t t .
We formulate online selection of agents as a multi-armed bandit problem where each arm represents an ML classifier or human expert, and the goal is to identify the agent that optimally balances classification error, fairness disparity, and cost.
Formally, at round t t t , the policy learner observes both the classification features X t X_t X t and the sensitive attribute value S t S_t S t . The learner must choose an arm A t A_t A t from the set of available arms at time t t t , A t \mathcal{A}_t A t , informed by the history of past actions and outcomes. The prediction y ^ A t \hat{y}_{A_t} y ^ A t for the selected arm is then observed with querying cost c A t c_{A_t} c A t . Although features are observed, the learner’s selection policy is non-contextual.
The true label Y t Y_t Y t is revealed at time t + L t t + L_t t + L t where L t ∈ Z ≥ 0 L_t \in\mathbb{Z}_{\ge0} L t ∈ Z ≥ 0 is assumed to be an IID random variable representing a nonnegative integer delay, reflecting real-world scenarios (such as medical image classification, loan approval, etc) where the true Y Y Y might not be known until some time in the future after the prediction. This type of delayed reward has been analyzed in the past in the MAB literature, resulting in regret bounds that scale favorably over time horizons, subject to reasonable conditions on delay distributions [54 ] .
The accuracy of each arm a a a (measured marginally over ( X , Y ) (X,Y) ( X , Y ) ) is
ρ a = P ( y ^ a ( X ) = Y ) . \rho_a = \mathbb{P}(\hat{y}_a(X) = Y). ρ a = P ( y ^ a ( X ) = Y ) .
The highest accuracy (over all arms/agents) is ρ ∗ = max a ρ a \rho_* = \max_a \rho_a ρ ∗ = max a ρ a .
Fairness metrics can be expressed as functions of subgroup and label-specific conditional probabilities μ a , s , y \mu_{a,s,y} μ a , s , y . The resulting fairness gap (usually a difference or ratio) is a function g a = f ( μ a , s , y ) g_a = f(\mu_{a,s,y}) g a = f ( μ a , s , y ) of these conditional probabilities. Let the fairest arm be arg min a ∈ A g a \arg\min_{a \in\mathcal{A}} g_a arg min a ∈ A g a and denote g ∗ = min a ∈ A g a g_* = \min_{a \in\mathcal{A}} g_a g ∗ = min a ∈ A g a .
As an example, for demographic-parity (DP) gap, we may define the subgroup-positive rate μ a , s = P ( y ^ a ( X ) = 1 ∣ S = s ) \mu_{a,s} = \mathbb{P}(\hat{y}_a(X) = 1 \mid S = s) μ a , s = P ( y ^ a ( X ) = 1 ∣ S = s ) for each arm a ∈ A a \in\mathcal{A} a ∈ A and subgroup s ∈ { 0 , 1 } s \in\{0,1\} s ∈ { 0 , 1 } . The resulting DP gap of arm a a a is g a = ∣ μ a , 0 − μ a , 1 ∣ g_a = |\mu_{a,0} - \mu_{a,1}| g a = ∣ μ a , 0 − μ a , 1 ∣ .
Given the framework above, the utility per agent trades off accuracy, fairness, and cost and is defined as
U a ( λ ) : = ρ a − λ g a − c a , λ ≥ 0. (1) U_a(\lambda) := \rho_a - \lambda g_a - c_a,\qquad\lambda\ge0. \tag*{(1)} U a ( λ ) := ρ a − λ g a − c a , λ ≥ 0. (1)
Here, λ \lambda λ is a user-defined (constant) weight that a decision-maker assigns to indicate the relative weight of the fairness gap compared to classification accuracy, with larger positive values of λ \lambda λ indicating greater weight on fairness over accuracy. In the context of algorithmic fairness, the weight λ \lambda λ represents a normative policy preference (how much accuracy the stakeholder is willing to sacrifice for fairness), rather than a latent statistical parameter. This functional form is similar to that used in learning fair agents [25 , 36 ] . The querying cost c a c_a c a is assumed to be expressed in the same units as accuracy ρ a \rho_a ρ a , e.g., in some utility units. Our formulation follows the standard decision theoretic framework (Murphy [2012, pp. 176–180], Bishop [2006, p. 41]) where accuracy is the expected utility of making a correct decision and the cost is normalized relative to the value or utility of a correct prediction.
Let U ∗ ( λ ) = max a U a ( λ ) U^*(\lambda)=\max_a U_a(\lambda) U ∗ ( λ ) = max a U a ( λ ) , i.e., the utility of the optimal arm a ∗ a^* a ∗ . The goal of the learner is to select A t A_t A t such that the selected arm’s utility is as close as possible to the optimum U ∗ U^* U ∗ up to time T T T . This performance measure is formalized as the cumulative regret of the learner - a quantity that the learner aims to minimize
R λ ( T ) = ∑ t = 1 T ( U ∗ ( λ ) − U A t ( λ ) ) . (2) R_\lambda(T)=\sum_{t=1}^{T}\left(U^*(\lambda)-U_{A_t}(\lambda)\right). \tag*{(2)} R λ ( T ) = t = 1 ∑ T ( U ∗ ( λ ) − U A t ( λ ) ) . (2)
This decomposes linearly into accuracy , fairness , and cost -regret terms:
R λ ( T ) = ∑ t = 1 T ( ρ a ∗ − ρ A t ) ⏟ accuracy regret + λ ∑ t = 1 T ( g A t − g a ∗ ) ⏟ fairness regret + ∑ t = 1 T ( c A t − c a ∗ ) ⏟ cost regret . R_\lambda(T)=\underbrace{\sum_{t=1}^{T}\left(\rho_{a^*}-\rho_{A_t}\right)}_{\text{accuracy regret}}+\lambda\underbrace{\sum_{t=1}^{T}\left(g_{A_t}-g_{a^*}\right)}_{\text{fairness regret}}+\underbrace{\sum_{t=1}^{T}\left(c_{A_t}-c_{a^*}\right)}_{\text{cost regret}}. R λ ( T ) = accuracy regret t = 1 ∑ T ( ρ a ∗ − ρ A t ) + λ fairness regret t = 1 ∑ T ( g A t − g a ∗ ) + cost regret t = 1 ∑ T ( c A t − c a ∗ ) .
For clarity, we note that the accuracy term in this decomposition is formulated as the performance deficit relative to the optimal arm (i.e. ρ a ∗ − ρ A t \rho_{a^*}-\rho_{A_t} ρ a ∗ − ρ A t ). This definition effectively flips the sign relative to the utility function to ensure that lower values indicate better performance, consistent with the standard definition of regret. For fairness and cost, the decomposition remains g A t − g a ∗ g_{A_t}-g_{a^*} g A t − g a ∗ and c A t − c a ∗ c_{A_t}-c_{a^*} c A t − c a ∗ respectively.
Technical Approach: Bayesian Bandits
Algorithm 1 Thompson Sampling for Online Selection
Require: Arms A \mathcal{A} A , horizon T T T , trade-off λ ≥ 0 \lambda\ge0 λ ≥ 0 , per-arm costs c a ≥ 0 c_a \ge0 c a ≥ 0 , priors μ ~ a , s ∼ Beta ( α a , s , β a , s ) \tilde{\mu}_{a,s}\sim\operatorname{Beta}(\alpha_{a,s},\beta_{a,s}) μ ~ a , s ∼ Beta ( α a , s , β a , s ) for ( a , s ) ∈ A × { 0 , 1 } (a,s)\in\mathcal{A}\times\{0,1\} ( a , s ) ∈ A × { 0 , 1 } , ρ ~ a ∼ Beta ( α a , β a ) \tilde{\rho}_a\sim\operatorname{Beta}(\alpha_a,\beta_a) ρ ~ a ∼ Beta ( α a , β a ) for a ∈ A a\in\mathcal{A} a ∈ A .
for t = 1 , … , T t=1,\ldots,T t = 1 , … , T do
for all a ∈ A t a\in A_t a ∈ A t do
Draw μ ~ a , 0 ∼ Beta ( α a , 0 , β a , 0 ) \tilde{\mu}_{a,0}\sim\operatorname{Beta}(\alpha_{a,0},\beta_{a,0}) μ ~ a , 0 ∼ Beta ( α a , 0 , β a , 0 ) , μ ~ a , 1 ∼ Beta ( α a , 1 , β a , 1 ) \tilde{\mu}_{a,1}\sim\operatorname{Beta}(\alpha_{a,1},\beta_{a,1}) μ ~ a , 1 ∼ Beta ( α a , 1 , β a , 1 ) .
Draw ρ ~ a ∼ Beta ( α a , β a ) \tilde{\rho}_a\sim\operatorname{Beta}(\alpha_a,\beta_a) ρ ~ a ∼ Beta ( α a , β a ) .
g ~ a ← ∣ μ ~ a , 0 − μ ~ a , 1 ∣ \tilde{g}_a\leftarrow\lvert\tilde{\mu}_{a,0}-\tilde{\mu}_{a,1}\rvert g ~ a ← ∣ μ ~ a , 0 − μ ~ a , 1 ∣
U a ← ρ ~ a − λ g ~ a − c a U_a\leftarrow\tilde{\rho}_a-\lambda\tilde{g}_a-c_a U a ← ρ ~ a − λ g ~ a − c a .
Select A t ∈ arg max a ∈ A t U a A_t\in\arg\max_{a\in A_t}U_a A t ∈ arg max a ∈ A t U a (ties arbitrary).
Observe S t S_t S t ; set r f a i r = 1 { y ^ A t ( X t ) = 1 } r_{\mathrm{fair}}=\mathbb{1}\{\hat{y}_{A_t}(X_t)=1\} r fair = 1 { y ^ A t ( X t ) = 1 }
Update fairness posterior: α A t , S t ← α A t , S t + r f a i r \alpha_{A_t,S_t}\leftarrow\alpha_{A_t,S_t}+r_{\mathrm{fair}} α A t , S t ← α A t , S t + r fair , β A t , S t ← β A t , S t + ( 1 − r f a i r ) \beta_{A_t,S_t}\leftarrow\beta_{A_t,S_t}+(1-r_{\mathrm{fair}}) β A t , S t ← β A t , S t + ( 1 − r fair ) .
for all τ ≤ t \tau\le t τ ≤ t whose label Y τ Y_\tau Y τ arrives at round t t t do
Set r a c c = 1 { y ^ A τ ( X τ ) = Y τ } r_{\mathrm{acc}}=\mathbb{1}\{\hat{y}_{A_\tau}(X_\tau)=Y_\tau\} r acc = 1 { y ^ A τ ( X τ ) = Y τ } .
Update accuracy posterior: α A t ← α A t + r a c c \alpha_{A_t}\leftarrow\alpha_{A_t}+r_{\mathrm{acc}} α A t ← α A t + r acc , β A t ← β A t + ( 1 − r a c c ) \beta_{A_t}\leftarrow\beta_{A_t}+(1-r_{\mathrm{acc}}) β A t ← β A t + ( 1 − r acc ) .
Formulating online selection as an MAB problem allows us to use any standard MAB algorithm, including but not limited to UCB-style optimistic methods [3 ] , ϵ \epsilon ϵ -greedy heuristics [49 ] , and Thompson Sampling [46 , 45 ] . In this work, we focus on Thompson Sampling (TS): the Bayesian posterior view makes it straightforward to maintain and systematically update uncertainty beliefs. The TS approach handles feedback (immediate or delayed) naturally via conjugate updates, and posterior sampling results in an intuitive mechanism that naturally balances exploration and exploitation. The seminal work of Chapelle and Li [2011] also demonstrated highly competitive empirical results for TS in traditional MAB settings, such as online advertisement and recommendation systems.
Our work differs from standard work on MABs in that each arm induces two latent “sub-arms” corresponding to sensitive subgroups S S S . Algorithmically, we must maintain and update separate posteriors for each subgroup as well as marginal accuracy estimates. Analytically, this increases the number of parameters to learn and introduces a dependence on subgroup prevalence: regret bounds therefore decompose into accuracy and fairness components and depend on the smallest subgroup probability (and on label frequencies for conditional fairness notions); our theoretical guarantees presented in § 5 reflect this structure. In Algorithm 1, we formalize Thompson Sampling for online selection of classifiers, balancing accuracy, fairness, and query cost with potential delays in true label observation. We consider a broader class of model selection tasks and frameworks:
Other fairness metrics In addition to TS for DP-gap, we can use other fairness metrics for this algorithm. For metrics such as Equalized Odds and Equality of Opportunity, we would maintain posterior beliefs μ ~ a , s , y ∼ Beta ( α a , s , y , β a , s , y ) \tilde{\mu}_{a,s,y} \sim\operatorname{Beta}(\alpha_{a,s,y}, \beta_{a,s,y}) μ ~ a , s , y ∼ Beta ( α a , s , y , β a , s , y ) for ( a , s , y ) ∈ A × { 0 , 1 } × { 0 , 1 } (a,s,y) \in\mathcal{A} \times\{0,1\} \times\{0,1\} ( a , s , y ) ∈ A × { 0 , 1 } × { 0 , 1 } that include the true label Y Y Y . Both g ~ a \tilde{g}_a g ~ a and r f a i r r_{\mathrm{fair}} r fair change accordingly, and the fairness update waits for Y Y Y .
Multi-class classification (∣ Y ∣ = C > 2 |\mathcal{Y}| = C > 2 ∣ Y ∣ = C > 2 ) and Multi-subgroup sensitive attribute (∣ S ∣ = M > 2 |\mathcal{S}| = M > 2 ∣ S ∣ = M > 2 ) We continue to use Beta-Bernoulli posteriors for the accuracy estimate since the reward is still binary (assuming symmetric utilities for different misclassifications). To capture disparities in class predictions (e.g., unequal prediction rates across classes conditioned on sensitive attributes), we replace the subgroup Beta posteriors with M M M Dirichlet posteriors (under a Dirichlet-Multinomial model), parameterizing the probability vector over the C C C classes for each subgroup. We sample probability vectors μ ~ a , s \tilde{\mu}_{a,s} μ ~ a , s for all subgroups and use the maximum/average pairwise L 1 L_1 L 1 distance computed on these samples to capture disparity [56 , 4 , 1 ] .
Real-valued reward The framework extends to bounded real-valued rewards, such as the Brier score of a probabilistic classifier or LLM evaluation scores [31 ] . Suppose arm a a a outputs a score p a ∈ [ 0 , 1 ] p_a \in[0,1] p a ∈ [ 0 , 1 ] instead of a label. With reward 1 − ( Y − p a ) 2 1-(Y-p_a)^2 1 − ( Y − p a ) 2 , ρ a \rho_a ρ a is one minus the arm’s Brier score, and the fairness gap g a g_a g a is the DP gap of the subgroup mean scores μ a , s = E [ p a ∣ S = s ] \mu_{a,s} = \mathbb{E}[p_a \mid S=s] μ a , s = E [ p a ∣ S = s ] . For 0/1 scores these reduce to accuracy and the DP gap. If the scores are rounded to a grid { 0 , 1 / K , … , 1 } \{0,1/K,\ldots,1\} { 0 , 1/ K , … , 1 } , scores and rewards take finitely many values, and each Beta posterior is replaced by a Dirichlet posterior over these values (conjugate to the categorical likelihood). With one pseudo-count at 0 and one at 1, the prior is Beta ( 1 , 1 ) \operatorname{Beta}(1,1) Beta ( 1 , 1 ) for binary data. TS samples Dirichlet weights w w w and uses the weighted mean ∑ k w k v k \sum_k w_k v_k ∑ k w k v k of the values v k v_k v k as ρ ~ a \tilde{\rho}_a ρ ~ a or μ ~ a , s \tilde{\mu}_{a,s} μ ~ a , s . Up to the prior, this is non-parametric TS [44 ] with tied observations grouped.
Theoretical Results
We investigate the regret bounds of our Thompson sampling algorithm (Algorithm 1). Let Δ a = U ∗ ( λ ) − U a ( λ ) \Delta_a = U_*(\lambda) - U_a(\lambda) Δ a = U ∗ ( λ ) − U a ( λ ) be the utility gap and a ∗ ∈ argmax a U a ( λ ) a^* \in\operatorname*{argmax}_a U_a(\lambda) a ∗ ∈ argmax a U a ( λ ) . Recall that the cumulative regret is defined as in Equation (2) .
Theorem 5.1 (Regret Bound of Thompson Sampling with Fairness). For the Thompson sampling described in § 4 , with no delays and arbitrary (deterministic) querying costs, for a universal constant C > 0 C > 0 C > 0 , we have the gap-dependent regret:
E [ R λ ( T ) ] ≤ C ∑ a : Δ a ( λ ) > 0 [ 1 Δ a ( λ ) ( log T + λ 2 π min log T + ( λ π min + λ 2 π min ) ( log T ) 7 / 2 ) ] . (3) \mathbb{E}[R_\lambda(T)] \le C \sum_{a:\Delta_a(\lambda)>0} \left[\frac{1}{\Delta_a(\lambda)}\left(\log T + \frac{\lambda^2}{\pi_{\min}}\log T + \left(\frac{\lambda}{\sqrt{\pi_{\min}}}+\frac{\lambda^2}{\pi_{\min}}\right)(\log T)^{7/2}\right)\right]. \tag*{(3)} E [ R λ ( T )] ≤ C a : Δ a ( λ ) > 0 ∑ [ Δ a ( λ ) 1 ( log T + π m i n λ 2 log T + ( π m i n λ + π m i n λ 2 ) ( log T ) 7/2 ) ] . (3) Moreover, the gap-free bound is
E [ R λ ( T ) ] ≤ O ( N T log T + λ π min N T log T + ( λ π min + λ 2 π min ) T ( log T ) 7 / 2 ) . (4) \mathbb{E}[R_\lambda(T)] \le O\left(\sqrt{NT\log T}+\frac{\lambda}{\sqrt{\pi_{\min}}}\sqrt{NT\log T}+\sqrt{\left(\frac{\lambda}{\sqrt{\pi_{\min}}}+\frac{\lambda^2}{\pi_{\min}}\right)T(\log T)^{7/2}}\right). \tag*{(4)} E [ R λ ( T )] ≤ O ( N T log T + π m i n λ N T log T + ( π m i n λ + π m i n λ 2 ) T ( log T ) 7/2 ) . (4) When N ≥ ( log T ) 5 / 2 N \ge(\log T)^{5/2} N ≥ ( log T ) 5/2 , the third term of (4), the additional optimal-arm anti-concentration cost, is dominated by the first two and the gap-free bound reduces to O ( N T log T + λ π min N T log T ) O\left(\sqrt{NT\log T}+\frac{\lambda}{\sqrt{\pi_{\min}}}\sqrt{NT\log T}\right) O ( N T log T + π m i n λ N T log T ) .
Without fairness, Thompson sampling has the bound O ( N T log T ) O(\sqrt{NT\log T}) O ( N T log T ) [2 ] . Our bounds add two terms to this accuracy cost: the fairness-estimation cost and the optimal-arm anti-concentration cost. The π min \pi_{\min} π m i n factors
quantify the statistical cost of estimating the demographic parity gap across subgroups: rarer groups encourage more exploration. However, incorporating fairness preserves the canonical gap-dependent and gap-free regret rates in T T T . The λ \lambda λ factors reflect the sensitivity of the utility to fairness-gap estimation error: heavier fairness weighting amplifies the impact of subgroup-rate uncertainty on arm misordering. The optimal-arm anti-concentration cost arises because noisy subgroup draws can inflate the optimal arm’s sampled fairness gap even when its accuracy draw is optimistic, which delays its selection. This cost vanishes when λ = 0 \lambda= 0 λ = 0 and does not grow with N N N .
Here we provide a sketch of the proof: full proof in Appendix § 8 . We follow the regret bound analysis of Agrawal and Goyal [ [2 ] to the accuracy–fairness-cost utility. For any suboptimal arm, we consider rounds in which (I) the optimal arm’s sampled utility is too low, (II) the suboptimal arm’s posterior draw is overly optimistic, or (III) its posterior-mean utility is overly optimistic. The selected arm does not depend on the group of the incoming sample, each observation of an arm comes from group s s s with probability π s \pi_s π s . Thus, the first n n n observations of any arm contain about π s n \pi_s n π s n observations from group s s s , and the smallest group contributes about π min n \pi_{\min}n π m i n n . Concentration of both accuracy and subgroup rates then controls (II) and (III). Known querying costs enter the utility thresholds and gaps as fixed offsets.
Case (I) requires an additional argument. The exchange step of Agrawal and Goyal [ [2 ] still applies, but their scalar Beta-Binomial anti-concentration time bound does not carry over as the optimal arm’s sampled utility combines an accuracy draw with the absolute difference of two subgroup draws. Moreover, the accuracy and subgroup estimates of the optimal arm can be dependent because they are computed from the same observation. Thus, we bound this joint anti-concentration cost using a positive utility margin. We then group arms by utility gap so that anti-concentration is charged once per group in the gap-free bound. At λ = 0 \lambda= 0 λ = 0 , the joint anti-concentration step disappears and the scalar accuracy argument reduces to the standard rate.
Theorem 5.2 (Regret Bound of Thompson Sampling with Fairness under Delayed Reward). Consider Algorithm 1 under the assumptions of Theorem 5.1. For each arm, assume that label delays are IID. Fairness posteriors are updated immediately, whereas accuracy posteriors are updated when labels arrive. Choose q a ∈ ( 0 , 1 ] q_a \in(0,1] q a ∈ ( 0 , 1 ] such that d a ( q a ) < ∞ d_a(q_a) < \infty d a ( q a ) < ∞ , and let q min = min a q a q_{\min} = \min_a q_a q m i n = min a q a . Then, the gap-free regret bound becomes:
E [ R λ ( T ) ] ≤ O ( N T log T q min + λ π min N T log T + ( 1 + λ ) ∑ a = 1 N d a ( q a ) + T H D ( T ) ) \mathbb{E}[R_\lambda(T)] \le O\left(\sqrt{\frac{NT\log T}{q_{\min}}}+\frac{\lambda}{\sqrt{\pi_{\min}}}\sqrt{NT\log T}+(1+\lambda)\sum_{a=1}^{N}d_a(q_a)+\sqrt{TH_D(T)}\right) E [ R λ ( T )] ≤ O ( q m i n N T log T + π m i n λ N T log T + ( 1 + λ ) a = 1 ∑ N d a ( q a ) + T H D ( T ) ) where H D ( T ) H_D(T) H D ( T ) summarizes optimal-arm anti-concentration caused by pessimistic utility draws under delayed feedback. Its formal definition is given in Appendix § 8 .3.
As accuracy updates require the true labels, their estimation cost is inflated by q min − 1 / 2 q_{\min}^{-1/2} q m i n − 1/2 . Demographic parity feedback is available immediately, so the fairness estimation term scales as λ / π min \lambda/\sqrt{\pi_{\min}} λ / π m i n without an additional delay factor. The quantile argument also produces the additive contribution ( 1 + λ ) ∑ a = 1 N d a ( q a ) (1+\lambda)\sum_{a=1}^{N}d_a(q_a) ( 1 + λ ) ∑ a = 1 N d a ( q a ) . The remaining term, T H D ( T ) \sqrt{TH_D(T)} T H D ( T ) , covers the optimal arm’s anti-concentration, both the accuracy-based part and the part due to joint accuracy-fairness uncertainty. Proof sketch (full proof in Appendix § 8 .3). We combine the delay-quantile counting of Wu and Wager [2022] with the posterior concentration and exchange arguments of Theorem 5.1. Concentration controls overly optimistic draws of a suboptimal arm, using the arrived labels for accuracy and the predictions observed at selection for fairness. The exchange argument reduces the remaining pulls to the anti-concentration cost of the optimal arm, H D ( T ) H_D(T) H D ( T ) , which we charge once per utility-gap group, and the choice of the gap cutoff yields the stated bound. Without delays, the anti-concentration bound in Theorem 5.1 controls H D ( T ) H_D(T) H D ( T ) and recovers its regret rate.
Experiments
Datasets
We conduct experiments on real-world datasets involving classification problems that have a sensitive attribute (see Table 1 ). For ML Classifiers as Arms we use 4 tabular datasets where the arms are pre-trained classifiers. For each dataset we train models on 60% of the data and use the remaining 40% to create an online stream. On every dataset we train the same 18 classifiers. They range from standard models (e.g., Gradient Boosted Trees and Logistic Regression), to models trained with a fairness penalty and deliberately biased models; most do not use the sensitive attribute (details in Appendix § 9 .1). The first dataset is Bank Marketing (Bank ) Moro et al. [ [38 ] , where the classification goal is to predict if the client will subscribe to a bank term deposit, with 19 features and where marital status is the sensitive attribute. For the Adult dataset Becker and Kohavi [ [6 ] , the goal is to predict whether a person’s income exceeds $50K, with 11 features and where race (white vs. non-white) is the sensitive attribute. The Credit dataset [57 ] is a credit default classification task, with 22 features, and customer sex is the sensitive attribute. For a Multi-subgroup Sensitive Attribute (M > 2 M > 2 M > 2 ) we use the updated (ACSIncome ) [16 ] , with the same prediction task as Adult, using 9 features. The sensitive attribute is race/ethnicity with five groups and the DP gap is the largest gap between any two groups. Additional experiments with the Coupon dataset [51 ] and COMPAS [30 ] are included in Appendix § 9 .1.
Table 1. Datasets: N N N arms, C C C classes and M M M subgroups
For LLMs as Arms we use the CivilComments Toxicity detection dataset (Toxicity ) [9 ] . For this dataset, the arms correspond to 56 LLMs accessed through API queried on 2000 prompts, where the classification task is whether a passage is toxic or not [31 ] . Race is the sensitive attribute. We include a Multi-class Classification (C > 2 C > 2 C > 2 ) setup with LLMs, using the Bias in Bios (Bios ) dataset [15 ] , where the goal is to predict a person’s occupation (28 classes) from their online biography. Gender is the sensitive attribute. The arms are 16 open instruction-tuned LLMs (0.36B–9B parameters) queried zero-shot on 30,000 biographies.
For Humans as Arms we use the TwitterAAE dataset (Twitter ) [29 ] with Tweets annotated using Mechanical Turk for whether they contain hate-speech or not [14 ] The sensitive attribute is whether the post contains African-American English [8 ] . The original dataset contained annotations from 170 experts, each covering only 4% of the data. To reduce sparsity in the response, we grouped experts into 10 arms by randomly combining 18 experts per arm and using majority voting, resulting in each arm classifying ≈ \approx ≈ 60% of the examples.
Baseline Methods
Round-Robin The learner cycles deterministically through available arms, guaranteeing even coverage and predictable scheduling; it yields unbiased exploration but no exploitation of observed rewards. It is equivalent, in expectation, to a random policy.
ϵ \epsilon ϵ -Greedy Under the same Bayesian setup as Thompson Sampling, we consider a greedy strategy that selects the arm with the largest posterior mean. For the subgroup posterior estimate (Algorithm 1, Step 3) μ ~ a , s = E [ Beta ( α a , s , β a , s ) ] \tilde{\mu}_{a,s} = \mathbb{E}[\operatorname{Beta}(\alpha_{a,s}, \beta_{a,s})] μ ~ a , s = E [ Beta ( α a , s , β a , s )] for ( a , s ) ∈ A × { 0 , 1 } (a,s) \in\mathcal{A} \times\{0,1\} ( a , s ) ∈ A × { 0 , 1 } , and for accuracy (Algorithm 1, Step 4) ρ ~ a = E [ Beta ( α a , β a ) ] \tilde{\rho}_a = \mathbb{E}[\operatorname{Beta}(\alpha_a, \beta_a)] ρ ~ a = E [ Beta ( α a , β a )] for a ∈ A a \in\mathcal{A} a ∈ A . At each round, with probability 1 − ϵ 1-\epsilon 1 − ϵ the arm with the largest mean is selected, and (to encourage exploration) with probability ϵ \epsilon ϵ an arm is selected uniformly at random.
We compare against UCB1 where the learner selects the arm with the largest optimistic utility [3 ] and Bayes-UCB [27 ] , where, under the same Bayesian setup as TS, posterior samples are replaced with posterior quantiles at level 1 − 1 / t 1 - 1/t 1 − 1/ t . Additional implementation details in Appendix § 9 .2.
Methodology
We average results over 10,000 runs. Each run is a stream of T = 50 , 000 T = 50,000 T = 50 , 000 instances sampled with replacement from the test dataset (results with fewer rounds are in Appendix § 9 .3), and all algorithms and values of λ \lambda λ see the same stream. We report the mean regret per example, R λ ( T ) / T R_{\lambda}(T)/T R λ ( T ) / T , computed from the arms’ true accuracies and gaps on the test dataset. On Twitter, regret is measured against the best available arm in each round. Bayesian methods are always initialized with uninformative priors Beta(1, 1) or Dirichlet(1, \ldots, 1).For the experiments, the fairness gap is defined as the demographic parity gap (for Bios, half the L 1 L_1 L 1 distance between the subgroups’ class distributions; for ACSIncome, the largest gap between any two subgroups) and traded off with the utility score (Equation 1). λ = 0 \lambda= 0 λ = 0 represents accuracy-only selection (U a = ρ a − c a U_a = \rho_a - c_a U a = ρ a − c a ) and λ = ∞ \lambda= \infty λ = ∞ fairness-only selection (U a = − g a − c a U_a = -g_a - c_a U a = − g a − c a ). We use 29–38 values of λ \lambda λ per dataset (Table 3), log-spaced and denser near the values at which the best arm changes. For all results in the main paper, the query cost is the same for all arms (so the cost term drops out of the utility) and the delay L t L_t L t is zero. Results with non-zero costs and with delays are in Appendices § 9 .§ 4 and § 9 .§ 5 .
Results
In Table 2 we compare Thompson Sampling and the 5 baselines across the 7 datasets in Table 1 at the two “endpoint” special cases of (a) λ = 0 \lambda= 0 λ = 0 (where regret only depends on model accuracy) and (b) λ = ∞ \lambda= \infty λ = ∞ (where regret only depends on fairness). Thompson sampling has the smallest regret in 12 of the 14 cases, and in the other two it is within 0.1 of the best.
Table 2. Regret per example (%) after T = 50 k T = 50k T = 50 k rounds for each algorithm (rows) and dataset (columns), for (a) accuracy (λ = 0 \lambda= 0 λ = 0 ) and (b) fairness (λ = ∞ \lambda= \infty λ = ∞ ), averaged over 10,000 runs (the endpoints of the curves in Figure 1 ). Minimum regret bolded.
Figure 1 shows the trade-off for λ \lambda λ values between these two endpoints, indicating the cumulative accuracy regret (x-axis) and cumulative fairness regret (y-axis) for that λ \lambda λ value as a percentage of total rounds, averaged over 10,000 runs each of T = 50 k T = 50k T = 50 k rounds. The endpoints of each curve are the values in Table 2 . Additional details are provided in Appendix § 9 .1.
Figure 1. Trade-off between accuracy regret (x-axis) and fairness regret (y-axis) after T = 50 k T = 50\mathrm{k} T = 50 k rounds, as average regret per example (%) over 10,000 runs. Each point on a curve is one value of λ \lambda λ , from λ = 0 \lambda= 0 λ = 0 (all weight on accuracy) to λ = ∞ \lambda= \infty λ = ∞ (all weight on fairness). Datasets (a)–(e) are binary, (f) is multi-class and (g) is multi-subgroup. Grey crosses are the individual arms and the dotted line is the oracle frontier. Round-Robin does not depend on λ \lambda λ and is omitted from (b), (d) and (e), where it is off-scale.
The non-MAB method (Round-Robin) is clearly not competitive with the MAB methods. In fact for the Bank, Credit and Toxicity datasets, Round-Robin is off-the-scale to the upper-right. Among the MAB methods, Thompson Sampling (TS) is closest to the oracle frontier on every dataset (in some cases by a large margin), with occasional exceptions for some values of λ \lambda λ (which is not surprising given that none of these methods are provably dominant empirically for all MAB problems and their relative performance is dataset-dependent [46 ] ). The UCB methods are far from the frontier at large λ \lambda λ , because their lower bound on the DP gap stays at zero until the subgroup confidence intervals separate. The overall picture from Figure 1 is that (i) MAB methods significantly outperform non-MAB methods, and (ii) TS is more reliable in achieving good solutions than the ϵ \epsilon ϵ -Greedy and UCB methods.
Table 3 extends the comparison of Table 2 to every value of λ \lambda λ . It summarizes Figure 1 in tabular form how often each algorithm has the best point. TS has the lowest regret at all values on four datasets and at all but one on Credit. On ACSIncome, Bayes-UCB is lower where two arms have nearly equal utility. On Bios, ϵ \epsilon ϵ -Greedy (ϵ = 0.1 \epsilon= 0.1 ϵ = 0.1 ) is lower at large λ \lambda λ : with 28 classes, the flat Dirichlet prior inflates the sampled gap of a rarely selected arm, so TS can under-explore the fairest LLM.
Table 3. % of λ \lambda λ values at which each algorithm has the lowest average cumulative regret after T = 50 k T = 50\mathrm{k} T = 50 k rounds.
We report further experiments with real-valued rewards (Appendix § 9 .§ 7 ), multi-class classification on a second dataset (Appendix § 9 .§ 6 ), fewer rounds (Appendix § 9 .3), fewer arms (Appendix § 9 .9), delayed feedback (Appendix § 9 .§ 5 ), query costs (Appendix § 9 .§ 4 ) and smaller values of π min \pi_{\min} π m i n (Appendix § 9 .8). TS is consistently the best-performing method across scenarios, with the lowest regret at most values of λ \lambda λ . The main exceptions are short horizons (T ≤ 10 k T \le10k T ≤ 10 k ) and long delays.
Discussion and Conclusion
In terms of limitations , our theoretical proofs focus on binary classifiers, non-contextual bandits, and difference-based fairness metrics for binary sensitive attributes. Nonetheless, we believe our results represent an important step in model selection that balances accuracy, fairness, and cost, providing a basis for a variety of directions for future work in terms of theory, algorithms, and experiments. An obvious direction is model selection via contextual bandits [10 ] , where the selected arm A t A_t A t is dependent on the instance X t X_t X t , e.g., modeling the expected reward via GLMs conditioned on features X t X_t X t and utilizing Laplace approximations to maintain a tractable Gaussian posterior over the parameters. This could result in policies that allocate tasks to arms that are better for specific regions of the context space. Additional potential directions for future research include: extensions to time-to-event models, multi-play algorithms to provide additional exploration of small subgroups (small π min \pi_{\min} π m i n ), and leveraging probabilistic information from ML models. The algorithmic template would remain largely unchanged for many of these extensions: maintain per-arm/per-subgroup posteriors for the quantities that define utility, sample those posteriors at decision time, and select based on a utility that trades-off accuracy, fairness, and cost; only the choice of conjugate family and the disparity functional differ.
Regret Bound Proofs for Thompson Sampling
We assume the standard setting where outcomes and sensitive attributes are independent across arms and IID over time. The utility U a ( λ ) U_a(\lambda) U a ( λ ) depends on the underlying Bernoulli means through the accuracy ρ a \rho_a ρ a and the fairness gap g a = ∣ μ a , 0 − μ a , 1 ∣ g_a = \lvert\mu_{a,0} - \mu_{a,1}\rvert g a = ∣ μ a , 0 − μ a , 1 ∣ . Since the absolute difference is a 1-Lipschitz function, the overall utility is Lipschitz continuous with respect to the parameters. This allows us to apply standard posterior concentration results (e.g., Agrawal and Goyal [ [2 ] ).
Regret Bound of the Thompson Sampling with No Delays (Theorem 5.1)
We follow the proof structure of Agrawal and Goyal [ [2 ] . We first bound the expected number of selections of each suboptimal arm, then derive the gap-free regret bound. The high-level picture is:
Decompose selections on the utility scale: we define utility thresholds and split the selections of a suboptimal arm into three cases: (I) an ordinary competitor beats a pessimistic draw of the optimal arm, (II) the competitor’s posterior draw is overly optimistic, or (III) its empirical estimate is overly optimistic.
Bound the cases in the order of Agrawal and Goyal [ [2 ] : we use the exchange step and the optimal-arm observation epochs for (I), empirical concentration for (III), and then conditional Beta concentration for (II). (II) and (III) can be addressed the same way as in Agrawal and Goyal [ [2 ] ; however (I) needs a new optimism estimate.
Combine and group by gap: adding three cases proves the selection-count theorem. For the gap-free regret, we charge small gaps directly and charge the anti-concentration once per group of larger gaps. This keeps the additional anti-concentration contribution free of a factor N \sqrt{N} N .
We note that, at λ = 0 \lambda= 0 λ = 0 , the joint anti-concentration step reduces to the scalar argument of Agrawal and Goyal [ [2 ] .
We consider N N N fixed arms that are always available. Cases are IID, the policy is noncontextual, and feedback is immediate. Algorithm 1 keeps its original independent Beta(1, 1) priors on each coordinate, its posterior draws, and its updates from each selected case. Let C a C_a C a be the correctness, Z a Z_a Z a the binary prediction, and S ∈ { 0 , 1 } S \in\{0, 1\} S ∈ { 0 , 1 } the subgroup. We define
ρ a = P ( C a = 1 ) , μ a , s = P ( Z a = 1 ∣ S = s ) , g a = ∣ μ a , 0 − μ a , 1 ∣ , U a = ρ a − λ g a − c a . (5) \rho_a = \mathbb{P}(C_a = 1), \qquad\mu_{a,s} = \mathbb{P}(Z_a = 1 \mid S = s), \qquad g_a = \lvert\mu_{a,0} - \mu_{a,1}\rvert, \qquad U_a = \rho_a - \lambda g_a - c_a. \tag*{(5)} ρ a = P ( C a = 1 ) , μ a , s = P ( Z a = 1 ∣ S = s ) , g a = ∣ μ a , 0 − μ a , 1 ∣ , U a = ρ a − λ g a − c a . (5)
The costs c a ≥ 0 c_a \ge0 c a ≥ 0 are known, λ ≥ 0 \lambda\ge0 λ ≥ 0 is finite, and π s = P ( S = s ) > 0 \pi_s = \mathbb{P}(S = s) > 0 π s = P ( S = s ) > 0 . We choose a ∗ ∈ a r g m a x a U a a^* \in\mathop{\rm arg\,max}_a U_a a ∗ ∈ arg max a U a , set Δ a = U ∗ − U a \Delta_a = U_* - U_a Δ a = U ∗ − U a , and let K a ( T ) K_a(T) K a ( T ) count the selections of arm a a a . We write
π min = min s π s , V λ = 1 + λ 2 π min . (6) \pi_{\min} = \min_s \pi_s, \qquad V_\lambda= 1 + \frac{\lambda^2}{\pi_{\min}}. \tag*{(6)} π m i n = s min π s , V λ = 1 + π m i n λ 2 . (6)
Then R λ ( T ) = ∑ a Δ a K a ( T ) R_\lambda(T) = \sum_a \Delta_a K_a(T) R λ ( T ) = ∑ a Δ a K a ( T ) . All bounds below are for T ≥ 2 T \ge2 T ≥ 2 .
For positive fairness weights, we impose the following two population conditions. First, the three true means of the optimal arm lie in [ κ 0 , 1 − κ 0 ] [\kappa_0,1-\kappa_0] [ κ 0 , 1 − κ 0 ] with the fixed numerical margin κ 0 = 1 / 100 \kappa_0 = 1/100 κ 0 = 1/100 . Second, let P ∗ P_* P ∗ be the joint law of ( S , Z ∗ , C ∗ ) (S,Z_*,C_*) ( S , Z ∗ , C ∗ ) , and define
U ( ρ , μ 0 , μ 1 ) = ρ − λ ∣ μ 0 − μ 1 ∣ − c a ∗ , U(\rho,\mu_0,\mu_1) = \rho- \lambda\lvert\mu_0-\mu_1\rvert- c_{a^*}, U ( ρ , μ 0 , μ 1 ) = ρ − λ ∣ μ 0 − μ 1 ∣ − c a ∗ ,
K ( Q , θ ) = d ( q C , ρ ) + ∑ s q s d ( q Z , s , μ s ) , K(Q,\theta) = d(q_C,\rho) + \sum_s q_s d(q_{Z,s},\mu_s), K ( Q , θ ) = d ( q C , ρ ) + s ∑ q s d ( q Z , s , μ s ) ,
J λ ( Q ) = min θ : U ( θ ) ≥ U ∗ K ( Q , θ ) . J_\lambda(Q) = \min_{\theta: U(\theta)\ge U_*} K(Q,\theta). J λ ( Q ) = θ : U ( θ ) ≥ U ∗ min K ( Q , θ ) .
Here d d d is the Bernoulli KL divergence, q C = Q ( C = 1 ) q_C = Q(C = 1) q C = Q ( C = 1 ) , q s = Q ( S = s ) q_s = Q(S = s) q s = Q ( S = s ) , and q Z , s = Q ( Z = 1 ∣ S = s ) q_{Z,s} = Q(Z = 1\mid S = s) q Z , s = Q ( Z = 1 ∣ S = s ) . A conditional term with zero weight is zero. We assume
J λ ( Q ) ≤ D ( Q ∥ P ∗ ) for every Q with finite divergence . (7) J_\lambda(Q) \le D(Q\Vert P_*) \quad\text{for every } Q \text{ with finite divergence}. \tag*{(7)} J λ ( Q ) ≤ D ( Q ∥ P ∗ ) for every Q with finite divergence . (7)
Both sides of (7) are exponential rates for n n n observations of the optimal arm with empirical law Q Q Q . The product Beta posterior has density proportional to e − n K ( Q , θ ) e^{-nK(Q,\theta)} e − n K ( Q , θ ) , so it draws a parameter with utility at least U ∗ U_* U ∗ with probability e − n J λ ( Q ) e^{-nJ_\lambda(Q)} e − n J λ ( Q ) , up to polynomial factors in n n n . A history with empirical law Q Q Q occurs with probability at most e − n D ( Q ∥ P ∗ ) e^{-nD(Q\Vert P_*)} e − n D ( Q ∥ P ∗ ) . The condition therefore says that a history that makes the optimal arm pessimistic is at least as rare as the pessimism it causes, so such histories cannot dominate the expected anti-concentration for an optimistic draw. At λ = 0 \lambda= 0 λ = 0 , the condition holds automatically by (13). For λ > 0 \lambda> 0 λ > 0 , K K K adds the accuracy and subgroup costs separately, whereas D ( Q ∥ P ∗ ) D(Q\Vert P_*) D ( Q ∥ P ∗ ) is computed from the joint law of correctness and prediction, so (7) is an additional condition on P ∗ P_* P ∗ .
Throughout, C ≥ 1 C \ge1 C ≥ 1 denotes a universal numerical constant that may change from line to line.
Theorem A.1. Under the conditions above, for every arm a a a with Δ a > 0 \Delta_a > 0 Δ a > 0 and T ≥ 2 T \ge2 T ≥ 2 , Algorithm 1 satisfies
E [ K a ( T ) ] ≤ C Δ a 2 [ log T ⏟ accuracy + λ 2 π min log T ⏟ fairness estimation + ( λ π min + λ 2 π min ) ( log T ) 7 / 2 ⏟ additional optimal-arm anti-concentration ] . (8) \mathbb{E}[K_a(T)] \le\frac{C}{\Delta_a^2}\left[\underbrace{\log T}_{\text{accuracy}}+\underbrace{\frac{\lambda^2}{\pi_{\min}}\log T}_{\text{fairness estimation}}+\underbrace{\left(\frac{\lambda}{\sqrt{\pi_{\min}}}+\frac{\lambda^2}{\pi_{\min}}\right)(\log T)^{7/2}}_{\text{additional optimal-arm anti-concentration}}\right]. \tag*{(8)} E [ K a ( T )] ≤ Δ a 2 C accuracy log T + fairness estimation π m i n λ 2 log T + additional optimal-arm anti-concentration ( π m i n λ + π m i n λ 2 ) ( log T ) 7/2 . (8) At λ = 0 \lambda= 0 λ = 0 , the two additional population conditions are not needed. Moreover, we also have:
E [ R λ ( T ) ] ≤ C [ N T log T ⏟ accuracy + λ π min N T log T ⏟ fairness estimation + ( λ π min + λ 2 π min ) T ( log T ) 7 / 2 ⏟ additional optimal-arm anti-concentration ] . (9) \mathbb{E}[R_\lambda(T)] \le C\left[\underbrace{\sqrt{NT\log T}}_{\text{accuracy}}+\underbrace{\frac{\lambda}{\sqrt{\pi_{\min}}}\sqrt{NT\log T}}_{\text{fairness estimation}}+\underbrace{\sqrt{\left(\frac{\lambda}{\sqrt{\pi_{\min}}}+\frac{\lambda^2}{\pi_{\min}}\right)T(\log T)^{7/2}}}_{\text{additional optimal-arm anti-concentration}}\right]. \tag*{(9)} E [ R λ ( T )] ≤ C accuracy N T log T + fairness estimation π m i n λ N T log T + additional optimal-arm anti-concentration ( π m i n λ + π m i n λ 2 ) T ( log T ) 7/2 . (9) The displayed bounds separate three contributions: accuracy, fairness estimation from subgroup observations, and additional optimal-arm anti-concentration. The accuracy term already includes the scalar anti-concentration. The additional anti-concentration cost is shared across competitors, so its gap-free contribution has no factor N \sqrt{N} N . Both fairness contributions vanish at λ = 0 \lambda= 0 λ = 0 . We do not change the algorithm or its sampling rule.
The anti-concentration term in (9) is absorbed into the first two terms when the number of arms is large or the fairness weight is small. Either of the two conditions
N ≥ ( log T ) 5 / 2 or λ ≤ N π min ( log T ) 5 / 2 (10) N \ge(\log T)^{5/2}
\quad\text{or}\quad
\lambda\le\frac{N\sqrt{\pi_{\min}}}{(\log T)^{5/2}} \tag*{(10)} N ≥ ( log T ) 5/2 or λ ≤ ( log T ) 5/2 N π m i n (10) implies
E [ R λ ( T ) ] ≤ C ( 1 + λ π min ) N T log T . (11) \mathbb{E}[R_\lambda(T)] \le C\left(1+\frac{\lambda}{\sqrt{\pi_{\min}}}\right)\sqrt{NT\log T}. \tag*{(11)} E [ R λ ( T )] ≤ C ( 1 + π m i n λ ) N T log T . (11) The ratio of the anti-concentration term to the accuracy and fairness-estimation terms in (9) is at most ( log T ) 5 / 4 / N (\log T)^{5/4}/\sqrt{N} ( log T ) 5/4 / N , so the anti-concentration term is relatively negligible whenever N / ( log T ) 5 / 2 → ∞ N/(\log T)^{5/2} \to\infty N / ( log T ) 5/2 → ∞ . This compares contributions to the upper bound only. It does not imply that the absolute anti-concentration term decreases with N N N , or that a fixed N N N suffices as T → ∞ T \to\infty T → ∞ . We also have no lower bound showing that the extra logarithmic factors are necessary.
Lemma 2.9 of Agrawal and Goyal [ [2 ] bounds the expected inverse odds of a scalar Beta optimism event, averaging over a binomial success count. Our exchange argument remains valid, but for λ > 0 \lambda> 0 λ > 0 the corresponding event is
ρ ~ ∗ − ρ ∗ + ϵ > λ ( g ~ ∗ − g ∗ ) . (12) \widetilde{\rho}_*-\rho_*+\epsilon> \lambda(\widetilde{g}_*-g_*). \tag*{(12)} ρ ∗ − ρ ∗ + ϵ > λ ( g ∗ − g ∗ ) . (12) This event involves accuracy and the absolute difference of two subgroup draws with random observation counts. At g ∗ = 0 g_* = 0 g ∗ = 0 , a disagreement in either direction creates a fairness penalty. Although the posterior draws are conditionally independent, their empirical histories can be dependent because accuracy and subgroup observations come from the same cases. Consequently, coordinatewise concentration bounds alone do not control the required expected inverse odds, and products of conditional probabilities cannot generally be averaged by multiplying their expectations.
The anti-concentration proof first combines the scalar bound with concentration on histories where the fairness error can be controlled within the utility margin. The remaining histories require a multivariate argument. The information condition compares the minimum KL cost of an optimistic parameter, n J λ ( Q ) nJ_\lambda(Q) n J λ ( Q ) , with the relative-entropy cost of its history, n D ( Q ∥ P ∗ ) nD(Q\|P_*) n D ( Q ∥ P ∗ ) . Fixed interiority of the optimal arm supports a finite-sample lower bound on the corresponding posterior mass. The positive utility margin strengthens the exponential bound and supplies decay when summing over observation counts. Weighted information-moment bounds then control averaging over the dependent empirical histories. Thus, the information comparison alone does not establish the anti-concentration estimate. Interiority and information dominance are population assumptions, whereas the margin is a positive proof tolerance chosen from the utility gap.
For λ = 0 \lambda= 0 λ = 0 , the information comparison holds automatically:
J 0 ( Q ) < d ( q C , ρ ∗ ) < D ( Q ∥ P ∗ ) . (13) J_0(Q) < d(q_C,\rho_*) < D(Q\|P_*). \tag*{(13)} J 0 ( Q ) < d ( q C , ρ ∗ ) < D ( Q ∥ P ∗ ) . (13) The first inequality follows by setting ρ = ρ ∗ \rho= \rho_* ρ = ρ ∗ and the unused subgroup coordinates to their empirical values. The second follows from data processing. In this case, the optimism event is scalar, so Lemma 2.9 of Agrawal and Goyal [ [2 ] applies directly without either additional population assumption. We invoke (7) and fixed interiority only in the multivariate argument.
Related reciprocal-probability arguments appear in combinatorial Thompson sampling. For example, Perrault et al. [ [41 ] analyze Beta sampling under independent base-arm outcomes and Gaussian sampling under dependence. These results motivate a related proof strategy, but do not directly establish the required anti-concentration bound for our product-Beta sampler with dependent accuracy and subgroup observations.
Proof. We follow the decomposition and the bounds in [2 Section 2.1 and Lemmas 2.8–2.12] (A&G), with thresholds on the utility. The joint anti-concentration estimate below replaces their scalar Lemma 2.9.
Thresholds and three cases
Arms with c a − c a ∗ > 1 + λ c_a-c_{a^*}>1+\lambda c a − c a ∗ > 1 + λ are never selected, and every remaining arm has Δ a ≤ 2 ( 1 + λ ) \Delta_a\le2(1+\lambda) Δ a ≤ 2 ( 1 + λ ) . For such a suboptimal arm, we set
ϵ a = Δ a / 3 , x a = U a + ϵ a , y a = U ∗ − ϵ a . (14) \epsilon_a=\Delta_a/3,\qquad x_a=U_a+\epsilon_a,\qquad y_a=U_*- \epsilon_a. \tag*{(14)} ϵ a = Δ a /3 , x a = U a + ϵ a , y a = U ∗ − ϵ a . (14)
Let U ‾ a ( t ) \overline{U}_a(t) U a ( t ) be the utility evaluated at the coordinate posterior means, and let U ~ a ( t ) \widetilde{U}_a(t) U a ( t ) be the sampled utility. We define
E a μ ( t ) = { U ‾ a ( t ) ≤ x a } , E a θ ( t ) = { U ~ a ( t ) ≤ y a } . (15) E^\mu_a(t)=\{\overline{U}_a(t)\le x_a\},\qquad E^\theta_a(t)=\{\widetilde{U}_a(t)\le y_a\}. \tag*{(15)} E a μ ( t ) = { U a ( t ) ≤ x a } , E a θ ( t ) = { U a ( t ) ≤ y a } . (15)
Since U a < x a < y a < U ∗ U_a<x_a<y_a<U_* U a < x a < y a < U ∗ , the decomposition of Agrawal and Goyal is exact:
E [ K a ( T ) ] = ∑ t ≤ T P ( A t = a , E a μ ( t ) , E a θ ( t ) ) + ∑ t ≤ T P ( A t = a , E a μ ( t ) , E a θ ( t ) c ) + ∑ t ≤ T P ( A t = a , E a μ ( t ) c ) . (16) \begin{aligned}
\mathbb{E}[K_a(T)]={}&\sum_{t\le T}\mathbb{P}(A_t=a,E^\mu_a(t),E^\theta_a(t))\\
&+\sum_{t\le T}\mathbb{P}(A_t=a,E^\mu_a(t),E^\theta_a(t)^c)\\
&+\sum_{t\le T}\mathbb{P}(A_t=a,E^\mu_a(t)^c). \tag*{(16)}
\end{aligned} E [ K a ( T )] = t ≤ T ∑ P ( A t = a , E a μ ( t ) , E a θ ( t )) + t ≤ T ∑ P ( A t = a , E a μ ( t ) , E a θ ( t ) c ) + t ≤ T ∑ P ( A t = a , E a μ ( t ) c ) . (16)
Exchange inequality and optimal-arm epochs (Lemma 2.8 of A&G)
Let F t − 1 \mathcal{F}_{t-1} F t − 1 be the observed history before round t t t . For a set B B B of suboptimal arms and a common threshold y < U ∗ y<U_* y < U ∗ , let p t ( y ) = P ( U ~ ∗ ( t ) > y ∣ F t − 1 ) p_t(y)=\mathbb{P}(\widetilde{U}_*(t)>y\mid\mathcal{F}_{t-1}) p t ( y ) = P ( U ∗ ( t ) > y ∣ F t − 1 ) . Since the arm draws are conditionally independent,
P ( A t ∈ B , U ‾ A t ( t ) ≤ x A t , U ~ A t ( t ) ≤ y ∣ F t − 1 ) ≤ 1 − p t ( y ) p t ( y ) P ( A t = a ∗ ∣ F t − 1 ) . (17) \begin{aligned}
&\mathbb{P}(A_t\in B,\overline{U}_{A_t}(t)\le x_{A_t},\widetilde{U}_{A_t}(t)\le y\mid\mathcal{F}_{t-1})\\
&\qquad\le\frac{1-p_t(y)}{p_t(y)}\mathbb{P}(A_t=a^*\mid\mathcal{F}_{t-1}). \tag*{(17)}
\end{aligned} P ( A t ∈ B , U A t ( t ) ≤ x A t , U A t ( t ) ≤ y ∣ F t − 1 ) ≤ p t ( y ) 1 − p t ( y ) P ( A t = a ∗ ∣ F t − 1 ) . (17)
To see this, we fix all draws except that of the optimal arm, whose conditional CDF is F ∗ F_* F ∗ . Let b b b maximize the other sampled utilities, with maximum value M M M . The event on the left requires b ∈ B b\in B b ∈ B , U ‾ b ≤ x b \overline{U}_b\le x_b U b ≤ x b , and M ≤ y M\le y M ≤ y . On these draws, its probability divided by the probability of selecting a ∗ a^* a ∗ is F ∗ ( M ) / ( 1 − F ∗ ( M ) ) ≤ ( 1 − p t ( y ) ) / p t ( y ) F_*(M)/(1-F_*(M))\le(1-p_t(y))/p_t(y) F ∗ ( M ) / ( 1 − F ∗ ( M )) ≤ ( 1 − p t ( y )) / p t ( y ) . Integrating and dropping the restrictions on the right proves the inequality. Ties have probability zero.
Let H n \mathcal{H}_n H n be the first n n n observations of the optimal arm in the IID observation stream. We define
p n ( ϵ ) = P ( U ~ ∗ > U ∗ − ϵ ∣ H n ) , (18) p_n(\epsilon)=\mathbb{P}(\widetilde{U}_*>U_*-\epsilon\mid\mathcal{H}_n), \tag*{(18)} p n ( ϵ ) = P ( U ∗ > U ∗ − ϵ ∣ H n ) , (18)
W ( ϵ , T ) = ∑ n < T E [ min { T , 1 − p n ( ϵ ) p n ( ϵ ) } ] . (19) W(\epsilon,T)=\sum_{n<T}\mathbb{E}\left[\min\left\{T,\frac{1-p_n(\epsilon)}{p_n(\epsilon)}\right\}\right]. \tag*{(19)} W ( ϵ , T ) = n < T ∑ E [ min { T , p n ( ϵ ) 1 − p n ( ϵ ) } ] . (19)
The probability p t ( y ) p_t(y) p t ( y ) does not change between successive selections of the optimal arm. Conditional on the starting history of an epoch, summing (17) bounds the expected case-I count of the epoch by the inverse odds, since the epoch contains at most one selection of the optimal arm. This count is also at most T T T . We then sum over epochs and drop their reach indicators using the pre-generated IID streams. Thus the event on the left of (17) has expected count at most W ( U ∗ − y , T ) W(U_*-y,T) W ( U ∗ − y , T ) . In particular, I a ≤ W ( ϵ a , T ) I_a\le W(\epsilon_a,T) I a ≤ W ( ϵ a , T ) .
Inverse odds (replacement for Lemmas 2.9–2.10 of A&G)
Lemma A.2 (Optimal-arm anti-concentration). Assume that the optimal arm satisfies fixed interiority, ρ ∗ , μ ∗ , 0 , μ ∗ , 1 ∈ [ κ 0 , 1 − κ 0 ] \rho_*,\mu_{*,0},\mu_{*,1}\in[\kappa_0,1-\kappa_0] ρ ∗ , μ ∗ , 0 , μ ∗ , 1 ∈ [ κ 0 , 1 − κ 0 ] with κ 0 = 1 / 100 \kappa_0=1/100 κ 0 = 1/100 , and the information condition J λ ( Q ) ≤ D ( Q ∥ P ∗ ) J_\lambda(Q)\le D(Q\|P_*) J λ ( Q ) ≤ D ( Q ∥ P ∗ ) for every Q Q Q with finite divergence. Set
B λ ( T ) = min { λ 2 π min ( log T ) 9 / 2 , V λ ( log T ) 5 / 2 } . (20) B_\lambda(T)=\min\left\{\frac{\lambda^2}{\pi_{\min}}(\log T)^{9/2},V_\lambda(\log T)^{5/2}\right\}. \tag*{(20)} B λ ( T ) = min { π m i n λ 2 ( log T ) 9/2 , V λ ( log T ) 5/2 } . (20) For T ≥ 2 T\ge2 T ≥ 2 and 0 < ϵ ≤ 1 + λ 0<\epsilon\le1+\lambda 0 < ϵ ≤ 1 + λ ,
W ( ϵ , T ) ≤ C ϵ 2 [ log T + B λ ( T ) ] . (21) W(\epsilon,T)\le\frac{C}{\epsilon^2}\left[\log T+B_\lambda(T)\right]. \tag*{(21)} W ( ϵ , T ) ≤ ϵ 2 C [ log T + B λ ( T ) ] . (21) At λ = 0 \lambda=0 λ = 0 , this reduces to the scalar bound from Lemma 2.9 of Agrawal and Goyal [2017], and neither population condition is required.
We prove this lemma separately. This is the only step that uses the interiority and information assumptions on the optimal arm. Since ϵ a ≤ 1 + λ \epsilon_a \le1+\lambda ϵ a ≤ 1 + λ , the lemma gives I a ≤ C [ log T + B λ ( T ) ] / ϵ a 2 I_a \le C[\log T+B_\lambda(T)]/\epsilon_a^2 I a ≤ C [ log T + B λ ( T )] / ϵ a 2 .
4. Empirical error (Lemma 2.11 of A&G). Hoeffding’s inequality, the smoothing error of the posterior mean, and the binomial subgroup counts give, at the fixed prefix of the first n n n observations of arm a a a ,
P ( U ‾ a , n − U a > ϵ a ) ≤ C e − n ϵ a 2 / ( C V λ ) . (22) \mathbb{P}(\overline{U}_{a,n}-U_a>\epsilon_a)\le Ce^{-n\epsilon_a^2/(CV_\lambda)}. \tag*{(22)} P ( U a , n − U a > ϵ a ) ≤ C e − n ϵ a 2 / ( C V λ ) . (22)
Each prefix is charged at most once by a selection of the arm. Therefore,
I I I a ≤ ∑ n < T C e − n ϵ a 2 / ( C V λ ) ≤ C V λ / ϵ a 2 . (23) \mathrm{III}_a\le\sum_{n<T} Ce^{-n\epsilon_a^2/(CV_\lambda)}\le CV_\lambda/\epsilon_a^2. \tag*{(23)} III a ≤ n < T ∑ C e − n ϵ a 2 / ( C V λ ) ≤ C V λ / ϵ a 2 . (23)
5. Posterior error (Lemma 2.12 of A&G). On E a μ ( t ) ∩ E a θ c E^\mu_a(t)\cap E^\theta_a{}^c E a μ ( t ) ∩ E a θ c , we have U ~ a ( t ) − U ‾ a ( t ) > ϵ a \widetilde{U}_a(t)-\overline{U}_a(t)>\epsilon_a U a ( t ) − U a ( t ) > ϵ a . Let m a = ⌈ C V λ log T / ϵ a 2 ⌉ m_a=\lceil CV_\lambda\log T/\epsilon_a^2\rceil m a = ⌈ C V λ log T / ϵ a 2 ⌉ . At most m a m_a m a selections occur before the arm reaches this pull count. For n ≥ m a n\ge m_a n ≥ m a and subgroup counts N a , s ≥ n π s / 2 N_{a,s}\ge n\pi_s/2 N a , s ≥ n π s /2 , conditional Beta concentration gives
P ( U ~ a − U ‾ a > ϵ a ∣ F t − 1 ) ≤ C / T . (24) \mathbb{P}(\widetilde{U}_a-\overline{U}_a>\epsilon_a\mid\mathcal{F}_{t-1})\le C/T. \tag*{(24)} P ( U a − U a > ϵ a ∣ F t − 1 ) ≤ C / T . (24)
Here we allocate the tolerance ϵ a / 2 \epsilon_a/2 ϵ a /2 to accuracy and ϵ a / ( 4 λ ) \epsilon_a/(4\lambda) ϵ a / ( 4 λ ) to each subgroup. Summing this conditional bound over rounds costs at most C C C . The selected prefixes with a deficient subgroup count cost at most ∑ n ≥ 0 ∑ s e − n π s / 8 ≤ C / π min \sum_{n\ge0}\sum_s e^{-n\pi_s/8}\le C/\pi_{\min} ∑ n ≥ 0 ∑ s e − n π s /8 ≤ C / π m i n . We need the subgroup control only if ϵ a ≤ 4 λ \epsilon_a\le4\lambda ϵ a ≤ 4 λ , in which case 1 / π min ≤ 16 V λ / ϵ a 2 1/\pi_{\min}\le16V_\lambda/\epsilon_a^2 1/ π m i n ≤ 16 V λ / ϵ a 2 . Otherwise, the fairness deviation is at most λ < ϵ a / 4 \lambda<\epsilon_a/4 λ < ϵ a /4 , and the accuracy concentration alone is enough. Consequently,
I I a ≤ C V λ log T / ϵ a 2 . (25) \mathrm{II}_a\le CV_\lambda\log T/\epsilon_a^2. \tag*{(25)} II a ≤ C V λ log T / ϵ a 2 . (25)
6. Add the three bounds (final combination of A&G). Substituting the three bounds into (16) proves the sharper estimate
E [ K a ( T ) ] ≤ C Δ a 2 [ V λ log T + B λ ( T ) ] . (26) \mathbb{E}[K_a(T)]\le\frac{C}{\Delta_a^2}[V_\lambda\log T+B_\lambda(T)]. \tag*{(26)} E [ K a ( T )] ≤ Δ a 2 C [ V λ log T + B λ ( T )] . (26)
The elementary inequality min { b 1 , b 2 } ≤ b 1 b 2 \min\{b_1,b_2\}\le\sqrt{b_1b_2} min { b 1 , b 2 } ≤ b 1 b 2 gives
B λ ( T ) ≤ λ V λ π min ( log T ) 7 / 2 ≤ ( λ π min + λ 2 π min ) ( log T ) 7 / 2 . (27) B_\lambda(T)\le\frac{\lambda\sqrt{V_\lambda}}{\sqrt{\pi_{\min}}}(\log T)^{7/2}\le\left(\frac{\lambda}{\sqrt{\pi_{\min}}}+\frac{\lambda^2}{\pi_{\min}}\right)(\log T)^{7/2}. \tag*{(27)} B λ ( T ) ≤ π m i n λ V λ ( log T ) 7/2 ≤ ( π m i n λ + π m i n λ 2 ) ( log T ) 7/2 . (27)
Expanding V λ V_\lambda V λ proves (8). At λ = 0 \lambda=0 λ = 0 , the proof uses only the scalar accuracy bounds.
Gap-free regret: the cutoff of A&G with shared anti-concentration
Fix d > 0 d>0 d > 0 . As in [2 Section 2.2] , gaps at most d d d contribute at most T d Td T d . We group the arms with larger gaps as
d j = 2 j d , B j = { a : d j < Δ a ≤ 2 d j } , y j = U ∗ − d j / 3. (28) d_j=2^jd,\qquad B_j=\{a:d_j<\Delta_a\le2d_j\},\qquad y_j=U_* -d_j/3. \tag*{(28)} d j = 2 j d , B j = { a : d j < Δ a ≤ 2 d j } , y j = U ∗ − d j /3. (28)
We use the preceding decomposition with the same x a x_a x a and the common threshold y j y_j y j in group B j B_j B j . Since y j − x a = ( 2 Δ a − d j ) / 3 ≥ Δ a / 3 y_j-x_a=(2\Delta_a-d_j)/3\ge\Delta_a/3 y j − x a = ( 2 Δ a − d j ) /3 ≥ Δ a /3 , Steps 4 and 5 contribute at most C V λ log T ∑ Δ a > d Δ a − 1 CV_\lambda\log T\sum_{\Delta_a>d}\Delta_a^{-1} C V λ log T ∑ Δ a > d Δ a − 1 . By Step 2, the case-I count of the whole group is bounded once by W ( d j / 3 , T ) W(d_j/3,T) W ( d j /3 , T ) . All selectable arms have Δ a ≤ 2 ( 1 + λ ) \Delta_a\le2(1+\lambda) Δ a ≤ 2 ( 1 + λ ) , so the anti-concentration lemma applies in every nonempty group. Therefore, the combined case-I regret is at most
∑ j : B j ≠ ∅ 2 d j W ( d j / 3 , T ) ≤ C [ log T + B λ ( T ) ] ∑ j ≥ 0 1 d j = C d [ log T + B λ ( T ) ] . (29) \sum_{j:B_j\ne\varnothing}2d_jW(d_j/3,T)\le C[\log T+B_\lambda(T)]\sum_{j\ge0}\frac{1}{d_j}=\frac{C}{d}[\log T+B_\lambda(T)]. \tag*{(29)} j : B j = ∅ ∑ 2 d j W ( d j /3 , T ) ≤ C [ log T + B λ ( T )] j ≥ 0 ∑ d j 1 = d C [ log T + B λ ( T )] . (29)
This grouping is the only refinement of the gap cutoff of Agrawal and Goyal: it avoids charging the same optimal-arm anti-concentration cost separately to every competitor. We obtain
E [ R λ ( T ) ] ≤ T d + C V λ log T ∑ Δ a > d 1 Δ a + C d [ log T + B λ ( T ) ] . (30) \mathbb{E}[R_\lambda(T)]\le Td+CV_\lambda\log T\sum_{\Delta_a>d}\frac{1}{\Delta_a}+\frac{C}{d}[\log T+B_\lambda(T)]. \tag*{(30)} E [ R λ ( T )] ≤ T d + C V λ log T Δ a > d ∑ Δ a 1 + d C [ log T + B λ ( T )] . (30)
We bound the sum by N / d N/d N / d , absorb the scalar log T \log T log T term into N V λ log T NV_\lambda\log T N V λ log T , and optimize over d d d . This gives
E [ R λ ( T ) ] ≤ C T [ N V λ log T + B λ ( T ) ] . (31) \mathbb{E}[R_\lambda(T)]\le C\sqrt{T[NV_\lambda\log T+B_\lambda(T)]}. \tag*{(31)} E [ R λ ( T )] ≤ C T [ N V λ log T + B λ ( T )] . (31)
Separating the square root and using (27) proves (9). Under either condition in (10), we have λ π min ( log T ) 5 / 2 ≤ ( 1 + λ π min ) N \frac{\lambda}{\sqrt{\pi_{\min}}}(\log T)^{5/2}\le\left(1+\frac{\lambda}{\sqrt{\pi_{\min}}}\right)N π m i n λ ( log T ) 5/2 ≤ ( 1 + π m i n λ ) N , so the anti-concentration term in (9) is at most the sum of the first two terms, which proves (11). Finally, B 0 ( T ) = 0 B_0(T)=0 B 0 ( T ) = 0 gives the scalar gap-free bound without the additional population conditions.
Proof of Lemma A.2
Let Q n Q_n Q n be the empirical joint law, N s N_s N s the subgroup counts, and ρ ^ , μ ^ s \hat{\rho},\hat{\mu}_s ρ ^ , μ ^ s the empirical means. Set
L n ( θ ) = n d ( ρ ^ , ρ ) + ∑ s N s d ( μ ^ s , μ s ) , M n = 1 + min s N s , X n = inf Q S Z = Q n , S Z Q C = Q n , C n D ( Q ∥ P ∗ ) , j n = inf U ( θ ) ≥ U ∗ − ϵ / 2 L n ( θ ) , b δ ( m ) = min { 1 , δ ( m + 1 ) } , D n , δ = [ b δ ( n ) b δ ( N 0 ) b δ ( N 1 ) ] − 1 . (32) \begin{aligned}
\mathcal{L}_n(\theta) &= nd(\hat{\rho},\rho)+\sum_s N_s d(\hat{\mu}_s,\mu_s), \qquad M_n=1+\min_s N_s,\\
X_n &= \inf_{\substack{Q_{SZ}=Q_{n,SZ}\\Q_C=Q_{n,C}}} nD(Q\Vert P_*), \qquad
j_n=\inf_{U(\theta)\ge U_*-\epsilon/2}\mathcal{L}_n(\theta),\\
b_\delta(m)&=\min\{1,\sqrt{\delta(m+1)}\}, \qquad
D_{n,\delta}=[b_\delta(n)b_\delta(N_0)b_\delta(N_1)]^{-1}. \tag*{(32)}
\end{aligned} L n ( θ ) X n b δ ( m ) = n d ( ρ ^ , ρ ) + s ∑ N s d ( μ ^ s , μ s ) , M n = 1 + s min N s , = Q S Z = Q n , S Z Q C = Q n , C inf n D ( Q ∥ P ∗ ) , j n = U ( θ ) ≥ U ∗ − ϵ /2 inf L n ( θ ) , = min { 1 , δ ( m + 1 ) } , D n , δ = [ b δ ( n ) b δ ( N 0 ) b δ ( N 1 ) ] − 1 . (32)
Zero-count likelihood terms vanish and X 0 = j 0 = 0 X_0=j_0=0 X 0 = j 0 = 0 . The conditional density is e − L n / Z n e^{-\mathcal{L}_n}/Z_n e − L n / Z n . Information dominance and data processing imply
n J λ ( Q n ) ≤ X n , L n ( θ ∗ ) ≤ 2 X n , X n ≥ n D ( Q n , S Z ∥ P ∗ , S Z ) . (33) nJ_\lambda(Q_n)\le X_n,\qquad\mathcal{L}_n(\theta_*)\le2X_n,\qquad X_n\ge nD(Q_{n,SZ}\Vert P_{*,SZ}). \tag*{(33)} n J λ ( Q n ) ≤ X n , L n ( θ ∗ ) ≤ 2 X n , X n ≥ n D ( Q n , S Z ∥ P ∗ , S Z ) . (33)
The first inequality is interpreted as zero at n = 0 n=0 n = 0 .
Lemma A.3 (History moments). For 0 < δ < 1 0<\delta<1 0 < δ < 1 and 0 ≤ u ≤ 1 − δ 0\le u\le1-\delta 0 ≤ u ≤ 1 − δ ,
E [ D n , δ e u X n ] ≤ C δ − 2 . (34) \mathbb{E}\left[D_{n,\delta}e^{uX_n}\right]\le C\delta^{-2}. \tag*{(34)} E [ D n , δ e u X n ] ≤ C δ − 2 . (34) For n ≥ 1 n\ge1 n ≥ 1 and δ ≤ 1 / 64 \delta\le1/64 δ ≤ 1/64 , also
E [ D n , δ e u X n max { M n , δ − 1 } ] ≤ C [ δ − 2 1 + n π min + δ − 3 / 2 e − δ n π min / C ] . (35) \mathbb{E}\left[\frac{D_{n,\delta}e^{uX_n}}{\sqrt{\max\{M_n,\delta^{-1}\}}}\right]
\le C\left[\frac{\delta^{-2}}{\sqrt{1+n\pi_{\min}}}+\delta^{-3/2}e^{-\delta n\pi_{\min}/C}\right]. \tag*{(35)} E [ max { M n , δ − 1 } D n , δ e u X n ] ≤ C [ 1 + n π m i n δ − 2 + δ − 3/2 e − δ n π m i n / C ] . (35)
Proof. First, for a sum Y Y Y of at most four independent binomials with m m m total trials and I ( x ) = sup t { t x − log E e t Y } I(x)=\sup_t\{tx-\log\mathbb{E}e^{tY}\} I ( x ) = sup t { t x − log E e t Y } , we claim
E [ e u I ( Y ) ] ≤ C min { δ − 1 / 2 , m + 1 } . (36) \mathbb{E}\left[e^{uI(Y)}\right]\le C\min\{\delta^{-1/2},\sqrt{m}+1\}. \tag*{(36)} E [ e u I ( Y ) ] ≤ C min { δ − 1/2 , m + 1 } . (36)
Remove deterministic trials, translating Y Y Y and redefining m m m . For the remaining groups ( m j , p j ) (m_j,p_j) ( m j , p j ) , exponential tilting gives q j ( t ) = p j e t / ( 1 − p j + p j e t ) q_j(t)=p_je^t/(1-p_j+p_je^t) q j ( t ) = p j e t / ( 1 − p j + p j e t ) , x = ∑ j m j q j x=\sum_jm_jq_j x = ∑ j m j q j and v = ∑ j m j q j ( 1 − q j ) v=\sum_jm_jq_j(1-q_j) v = ∑ j m j q j ( 1 − q j ) . Thus d x / d t = v dx/dt=v d x / d t = v , ∣ d v / d x ∣ ≤ 1 |dv/dx|\le1 ∣ d v / d x ∣ ≤ 1 , and I ( x ( t ) ) = ∑ j m j d ( q j ( t ) , p j ) I(x(t))=\sum_jm_jd(q_j(t),p_j) I ( x ( t )) = ∑ j m j d ( q j ( t ) , p j ) . The Bernoulli-sum atom bound yields P ( Y = k ) ≤ C e − I ( k ) / 1 + v ( k ) \mathbb{P}(Y=k)\le Ce^{-I(k)}/\sqrt{1+v(k)} P ( Y = k ) ≤ C e − I ( k ) / 1 + v ( k ) , including the endpoint tilts by continuity. Compare each summand with the unit interval toward E Y \mathbb{E}Y E Y , leaving at most two central terms. Monotonicity of I I I on either side of its minimum and ∣ d v / d x ∣ ≤ 1 |dv/dx|\le1 ∣ d v / d x ∣ ≤ 1 give
E [ e u I ( Y ) ] ≤ C + C ∫ 0 m e − δ I ( x ) v ( x ) d x ≤ C + C ∑ j m j ∫ 0 1 e − δ m j d ( q , p j ) q ( 1 − q ) d q ≤ C min { δ − 1 / 2 , m + 1 } . \begin{aligned}
\mathbb{E}\left[e^{uI(Y)}\right]
&\le C+C\int_0^m\frac{e^{-\delta I(x)}}{\sqrt{v(x)}}\,dx\\
&\le C+C\sum_j\sqrt{m_j}\int_0^1\frac{e^{-\delta m_jd(q,p_j)}}{\sqrt{q(1-q)}}\,dq
\le C\min\{\delta^{-1/2},\sqrt{m}+1\}.
\end{aligned} E [ e u I ( Y ) ] ≤ C + C ∫ 0 m v ( x ) e − δ I ( x ) d x ≤ C + C j ∑ m j ∫ 0 1 q ( 1 − q ) e − δ m j d ( q , p j ) d q ≤ C min { δ − 1/2 , m + 1 } .
The second line uses d q j / d t = q j ( 1 − q j ) dq_j/dt=q_j(1-q_j) d q j / d t = q j ( 1 − q j ) and ∑ j a j ≤ ∑ j a j \sqrt{\sum_j a_j}\le\sum_j\sqrt{a_j} ∑ j a j ≤ ∑ j a j . The final inequality follows from q = sin 2 α q=\sin^2\alpha q = sin 2 α , d ( q , p j ) ≥ c ( α − arcsin p j ) 2 d(q,p_j)\ge c(\alpha-\arcsin\sqrt{p_j})^2 d ( q , p j ) ≥ c ( α − arcsin p j ) 2 , and at most four groups. The deterministic case is immediate, and restoring removed trials only enlarges the bound.
Write n s z n_{sz} n sz for the ( S , Z ∗ ) (S,Z_*) ( S , Z ∗ ) counts, K C K_C K C for total correctness, and γ s z = P ( C ∗ = 1 ∣ S = s , Z ∗ = z ) \gamma_{sz}=\mathbb{P}(C_*=1\mid S=s,Z_*=z) γ sz = P ( C ∗ = 1 ∣ S = s , Z ∗ = z ) . The KL chain rule and information projection give
X n = n d ( N 0 / n , π 0 ) + ∑ s N s d ( μ ^ s , μ ∗ , s ) + I n ( K C ) , X_n=nd(N_0/n,\pi_0)+\sum_sN_sd(\hat{\mu}_s,\mu_{*,s})+I_n(K_C), X n = n d ( N 0 / n , π 0 ) + s ∑ N s d ( μ ^ s , μ ∗ , s ) + I n ( K C ) ,
I n ( k ) = sup t { t k − ∑ s , z n s z log ( 1 − γ s z + γ s z e t ) } . (37) I_n(k)=\sup_t\left\{tk-\sum_{s,z}n_{sz}\log(1-\gamma_{sz}+\gamma_{sz}e^t)\right\}. \tag*{(37)} I n ( k ) = t sup { t k − s , z ∑ n sz log ( 1 − γ sz + γ sz e t ) } . (37)
Restrict to the support of P ∗ P_* P ∗ and use limiting tilts at boundaries. Conditional on ( n s z ) (n_{sz}) ( n sz ) , correctness is a sum of four independent binomials. Apply (36) and pair this moment with b δ ( n ) − 1 b_\delta(n)^{-1} b δ ( n ) − 1 using
b δ ( m ) − 1 min { δ − 1 / 2 , m + 1 } = δ − 1 / 2 . b_\delta(m)^{-1}\min\{\delta^{-1/2},\sqrt{m}+1\}=\delta^{-1/2}. b δ ( m ) − 1 min { δ − 1/2 , m + 1 } = δ − 1/2 .
Conditional on ( N 0 , N 1 ) (N_0,N_1) ( N 0 , N 1 ) , apply the same argument to the two independent prediction counts, pairing with b δ ( N s ) − 1 b_\delta(N_s)^{-1} b δ ( N s ) − 1 . The subgroup-count moment contributes a fourth δ − 1 / 2 \delta^{-1/2} δ − 1/2 factor, proving (34). At n = 0 n=0 n = 0 , D 0 , δ = δ − 3 / 2 ≤ δ − 2 D_{0,\delta}=\delta^{-3/2}\le\delta^{-2} D 0 , δ = δ − 3/2 ≤ δ − 2 . For (35), split at min s N s = n π min / 2 \min_s N_s = n\pi_{\min}/2 min s N s = n π m i n /2 . On the upper event, use (34). On the lower event, X n ≥ n π min / 8 X_n \ge n\pi_{\min}/8 X n ≥ n π m i n /8 and the inverse-count factor is at most δ \sqrt{\delta} δ , so its contribution is bounded by
δ e − δ n π min / 16 E [ D n , δ / 2 e ( u + δ / 2 ) X n ] ≤ C δ − 3 / 2 e − δ n π min / 16 . \sqrt{\delta}e^{-\delta n\pi_{\min}/16}\mathbb{E}\left[D_{n,\delta/2}e^{(u+\delta/2)X_n}\right] \le C\delta^{-3/2}e^{-\delta n\pi_{\min}/16}. δ e − δ n π m i n /16 E [ D n , δ /2 e ( u + δ /2 ) X n ] ≤ C δ − 3/2 e − δ n π m i n /16 .
Lemma A.4 (Conditional posterior anti-concentration). Under the population conditions , for 0 < δ ≤ 1 / 64 0 < \delta\le1/64 0 < δ ≤ 1/64 ,
j n ≤ ( X n − ϵ n C V λ ) + , (38) \sqrt{j_n} \le\left(\sqrt{X_n}-\frac{\epsilon\sqrt{n}}{C\sqrt{V_\lambda}}\right)_{+}, \tag*{(38)} j n ≤ ( X n − C V λ ϵ n ) + , (38) p n ( ϵ ) ≥ δ 3 / 2 C D n , δ e − ( 1 − δ ) j n − 4 δ X n min { 1 , ϵ max { M n , δ − 1 } λ δ } . (39) p_n(\epsilon) \ge\frac{\delta^{3/2}}{CD_{n,\delta}}e^{-(1-\delta)j_n-4\delta X_n}\min\left\{1,\frac{\epsilon\sqrt{\max\{M_n,\delta^{-1}\}}}{\lambda\sqrt{\delta}}\right\}. \tag*{(39)} p n ( ϵ ) ≥ C D n , δ δ 3/2 e − ( 1 − δ ) j n − 4 δ X n min { 1 , λ δ ϵ max { M n , δ − 1 } } . (39) The minimum is one at λ = 0 \lambda= 0 λ = 0 .
Proof. For any Q Q Q , let D = D ( Q ∥ P ∗ ) D = D(Q\Vert P_*) D = D ( Q ∥ P ∗ ) and θ ^ = ( q C , q Z , 0 , q Z , 1 ) \hat{\theta} = (q_C,q_{Z,0},q_{Z,1}) θ ^ = ( q C , q Z , 0 , q Z , 1 ) . Pinsker and the split q s ≥ π s / 2 q_s \ge\pi_s/2 q s ≥ π s /2 give h = ( U ∗ − U ( θ ^ ) ) + ≤ C V λ D h = (U_* - U(\hat{\theta}))_+ \le C\sqrt{V_\lambda D} h = ( U ∗ − U ( θ ^ ) ) + ≤ C V λ D . On the complementary subgroup event use D ≥ π s / 8 D \ge\pi_s/8 D ≥ π s /8 and error at most one. Let J λ , r J_{\lambda,r} J λ , r denote the cost with utility threshold U ∗ − r U_* - r U ∗ − r . It vanishes if h ≤ r h \le r h ≤ r . Otherwise, interpolate an unrelaxed minimizer toward θ ^ \hat{\theta} θ ^ by r / h r/h r / h . Concavity of utility, convexity of KL, and information dominance imply
J λ , r ( Q ) ≤ ( 1 − r / h ) D ≤ D − r D C V λ . J_{\lambda,r}(Q) \le(1-r/h)D \le D-\frac{r\sqrt{D}}{C\sqrt{V_\lambda}}. J λ , r ( Q ) ≤ ( 1 − r / h ) D ≤ D − C V λ r D .
Take square roots, set r = ϵ / 2 r = \epsilon/2 r = ϵ /2 , and minimize D D D over the recorded marginals to obtain (38).
For (39), let L n ( θ ∘ ) = j n \mathcal{L}_n(\theta^\circ)=j_n L n ( θ ∘ ) = j n , put m = ( n , N 0 , N 1 ) m=(n,N_0,N_1) m = ( n , N 0 , N 1 ) , and take v = θ ∗ + w v=\theta_*+w v = θ ∗ + w with ∣ w j ∣ ≤ r j = C − 1 min { 1 , [ δ ( m j + 1 ) ] − 1 / 2 } |w_j|\le r_j=C^{-1}\min\{1,[\delta(m_j+1)]^{-1/2}\} ∣ w j ∣ ≤ r j = C − 1 min { 1 , [ δ ( m j + 1 ) ] − 1/2 } . Fixed interiority and Taylor’s formula give δ L n ( v ) ≤ 4 δ X n + 1 \delta\mathcal{L}_n(v)\le4\delta X_n+1 δ L n ( v ) ≤ 4 δ X n + 1 . Hence convexity bounds the likelihood cost at θ = ( 1 − δ ) θ ∘ + δ v \theta=(1-\delta)\theta^\circ+\delta v θ = ( 1 − δ ) θ ∘ + δ v by ( 1 − δ ) j n + 4 δ X n + 1 (1-\delta)j_n+4\delta X_n+1 ( 1 − δ ) j n + 4 δ X n + 1 . Retain w ρ ≥ 0 w_\rho\ge0 w ρ ≥ 0 and ∣ w 0 − w 1 ∣ ≤ ϵ / ( 4 δ λ ) |w_0-w_1|\le\epsilon/(4\delta\lambda) ∣ w 0 − w 1 ∣ ≤ ϵ / ( 4 δ λ ) . The image has utility at least U ∗ − ( 1 − δ ) ϵ / 2 − ϵ / 4 > U ∗ − ϵ U_*-(1-\delta)\epsilon/2-\epsilon/4>U_*-\epsilon U ∗ − ( 1 − δ ) ϵ /2 − ϵ /4 > U ∗ − ϵ , and the retained box fraction is at least c min { 1 , ϵ / ( δ λ max s r s ) } c\min\{1,\epsilon/(\delta\lambda\max_s r_s)\} c min { 1 , ϵ / ( δ λ max s r s )} . The strip is omitted at λ = 0 \lambda=0 λ = 0 . Since the Jacobian is δ 3 \delta^3 δ 3 and Z n ≤ C ∏ j ( m j + 1 ) − 1 / 2 Z_n\le C\prod_j(m_j+1)^{-1/2} Z n ≤ C ∏ j ( m j + 1 ) − 1/2 by Pinsker, the identities
δ r j m j + 1 = C − 1 δ b δ ( m j ) , δ max s r s = δ C max { M n , δ − 1 } \delta r_j\sqrt{m_j+1}=C^{-1}\sqrt{\delta}\,b_\delta(m_j), \qquad\delta\max_s r_s=\frac{\sqrt{\delta}}{C\sqrt{\max\{M_n,\delta^{-1}\}}} δ r j m j + 1 = C − 1 δ b δ ( m j ) , δ s max r s = C max { M n , δ − 1 } δ
prove (39), including zero counts. □
Proof of Lemma A.2. Write p n = p n ( ϵ ) p_n=p_n(\epsilon) p n = p n ( ϵ ) , O n = ( 1 − p n ) / p n O_n=(1-p_n)/p_n O n = ( 1 − p n ) / p n and q n = P ( ρ ~ ∗ > ρ ∗ − ϵ / 2 ∣ H n ) q_n=\mathbb{P}(\tilde{\rho}_*>\rho_*-\epsilon/2\mid\mathcal{H}_n) q n = P ( ρ ~ ∗ > ρ ∗ − ϵ /2 ∣ H n ) . The Beta-Binomial identity and Chernoff bounds [2 Appendix A] , together with Agrawal and Goyal [ [2 ] , give
E [ ( 1 − p n ) ] ≤ C e − n ϵ 2 / ( C V λ ) , E [ M n − 1 / 2 ] ≤ C ( 1 + n π min ) − 1 / 2 , \mathbb{E}[(1-p_n)]\le Ce^{-n\epsilon^2/(CV_\lambda)}, \qquad\mathbb{E}\left[M_n^{-1/2}\right]\le C(1+n\pi_{\min})^{-1/2}, E [( 1 − p n )] ≤ C e − n ϵ 2 / ( C V λ ) , E [ M n − 1/2 ] ≤ C ( 1 + n π m i n ) − 1/2 ,
∑ n < T E [ 1 − q n q n ] ≤ C log T / ϵ 2 . (40) \sum_{n<T}\mathbb{E}\left[\frac{1-q_n}{q_n}\right]\le C\log T/\epsilon^2. \tag*{(40)} n < T ∑ E [ q n 1 − q n ] ≤ C log T / ϵ 2 . (40)
For the first bound allocate ϵ / 2 \epsilon/2 ϵ /2 to accuracy and, when λ > 0 \lambda>0 λ > 0 , ϵ / ( 4 λ ) \epsilon/(4\lambda) ϵ / ( 4 λ ) to each subgroup. Average the binomial counts, omitting tolerances above one. The second uses a split at half the expected count. Boundary correctness means follow directly from the Beta formula. If ϵ ≥ 2 λ \epsilon\ge2\lambda ϵ ≥ 2 λ , then p n ≥ q n p_n\ge q_n p n ≥ q n , proving the claim. Otherwise set ν f = λ 2 / ( π min ϵ 2 ) \nu_f=\lambda^2/(\pi_{\min}\epsilon^2) ν f = λ 2 / ( π m i n ϵ 2 ) and ν = V λ / ϵ 2 \nu=V_\lambda/\epsilon^2 ν = V λ / ϵ 2 , so ν ≥ ν f > 1 / 2 \nu\ge\nu_f>1/2 ν ≥ ν f > 1/2 .
Posterior means and variances, Pinsker, and (33) yield
P ( λ ( g ~ ∗ − g ∗ ) ≤ h n ∣ H n ) ≥ 3 / 4 , h n = min { λ , C λ π min X n + 1 n + 1 } . \mathbb{P}\left(\lambda(\tilde{g}_*-g_*)\le h_n\mid\mathcal{H}_n\right)\ge3/4,\qquad h_n=\min\left\{\lambda,\frac{C\lambda}{\sqrt{\pi_{\min}}}\sqrt{\frac{X_n+1}{n+1}}\right\}. P ( λ ( g ~ ∗ − g ∗ ) ≤ h n ∣ H n ) ≥ 3/4 , h n = min { λ , π m i n C λ n + 1 X n + 1 } .
Indeed, Chebyshev gives posterior error at most 3 / N s + 1 3/\sqrt{N_s+1} 3/ N s + 1 from the empirical mean with probability 15 / 16 15/16 15/16 for each positive count. If N s ≥ n π s / 2 N_s\ge n\pi_s/2 N s ≥ n π s /2 , use X n ≥ N s d ( μ ^ s , μ ∗ , s ) X_n\ge N_s d(\hat{\mu}_s,\mu_{*,s}) X n ≥ N s d ( μ ^ s , μ ∗ , s ) . Otherwise X n ≥ n π s / 8 X_n\ge n\pi_s/8 X n ≥ n π s /8 and the error is at most one. The case n = 0 n=0 n = 0 is immediate. On h n ≤ ϵ / 2 h_n \le\epsilon/2 h n ≤ ϵ /2 , conditional independence gives p n ≥ 3 q n / 4 p_n \ge3q_n/4 p n ≥ 3 q n /4 . Splitting at p n = 1 / 2 p_n=1/2 p n = 1/2 and q n = 1 / 2 q_n=1/2 q n = 1/2 , and using (40), therefore gives
W ( ϵ , T ) ≤ C ν + C log T / ϵ 2 + ∑ n < T E [ min { T , O n } 1 F n ] (41) W(\epsilon,T) \le C\nu+C\log T/\epsilon^2+\sum_{n<T}\mathbb{E}[\min\{T,O_n\}\mathbf{1}_{F_n}] \tag*{(41)} W ( ϵ , T ) ≤ C ν + C log T / ϵ 2 + n < T ∑ E [ min { T , O n } 1 F n ] (41)
F n = { h n > ϵ / 2 , p n < 1 / 2 } ⟹ n + 1 ≤ C ν f ( X n + 1 ) . F_n=\{h_n>\epsilon/2,p_n<1/2\}\quad\Longrightarrow\quad n+1\le C\nu_f(X_n+1). F n = { h n > ϵ /2 , p n < 1/2 } ⟹ n + 1 ≤ C ν f ( X n + 1 ) .
On F n ∩ { x ≤ X n < 2 x } F_n\cap\{x\le X_n<2x\} F n ∩ { x ≤ X n < 2 x } with x ≥ 1 x\ge1 x ≥ 1 , n ≤ C ν f x n\le C\nu_fx n ≤ C ν f x and (38) gives j n ≤ X n − c n X n / ν j_n\le X_n-c\sqrt{nX_n/\nu} j n ≤ X n − c n X n / ν after decreasing c c c . Invert (39) with δ = ( 64 x ) − 1 \delta=(64x)^{-1} δ = ( 64 x ) − 1 , use e X n ≤ C e ( 1 − δ ) X n e^{X_n}\le Ce^{(1-\delta)X_n} e X n ≤ C e ( 1 − δ ) X n on this shell, and apply Lemma A.3. For n ≥ 1 n\ge1 n ≥ 1 this gives
E [ O n 1 F n ∩ { x ≤ X n < 2 x } ] ≤ C e − c n x / ν [ x 7 / 2 1 + λ x 3 ϵ 1 + n π min + λ x 5 / 2 ϵ e − n π min / ( C x ) ] . (42) \mathbb{E}[O_n\mathbf{1}_{F_n\cap\{x\le X_n<2x\}}]\le Ce^{-c\sqrt{nx/\nu}}\left[\frac{x^{7/2}}{1}+\frac{\lambda x^3}{\epsilon\sqrt{1+n\pi_{\min}}}+\frac{\lambda x^{5/2}}{\epsilon}e^{-n\pi_{\min}/(Cx)}\right]. \tag*{(42)} E [ O n 1 F n ∩ { x ≤ X n < 2 x } ] ≤ C e − c n x / ν [ 1 x 7/2 + ϵ 1 + n π m i n λ x 3 + ϵ λ x 5/2 e − n π m i n / ( C x ) ] . (42)
Only n ≤ C ν f x n\le C\nu_fx n ≤ C ν f x contribute. Integral comparison bounds the three sums, after removing their prefactors, by
C min { ν f x , ν / x } , C π min min { ν f x , ν / x } , C min { ν f x , ν / x , x / π min } , C\min\{\nu_fx,\nu/x\},\qquad\frac{C}{\sqrt{\pi_{\min}}}\min\{\sqrt{\nu_fx},\sqrt{\nu/x}\},\qquad C\min\{\nu_fx,\nu/x,x/\pi_{\min}\}, C min { ν f x , ν / x } , π m i n C min { ν f x , ν / x } , C min { ν f x , ν / x , x / π m i n } ,
respectively. Using λ / ϵ = π min ν f \lambda/\epsilon=\sqrt{\pi_{\min}\nu_f} λ / ϵ = π m i n ν f and min { a , b } ≤ a b \min\{a,b\}\le\sqrt{ab} min { a , b } ≤ ab for the last term yields
∑ n < T E [ O n 1 F n ∩ { x ≤ X n < 2 x } ] ≤ C min { ν f x 9 / 2 , ν x 5 / 2 } . (43) \sum_{n<T}\mathbb{E}[O_n\mathbf{1}_{F_n\cap\{x\le X_n<2x\}}]\le C\min\{\nu_fx^{9/2},\nu x^{5/2}\}. \tag*{(43)} n < T ∑ E [ O n 1 F n ∩ { x ≤ X n < 2 x } ] ≤ C min { ν f x 9/2 , ν x 5/2 } . (43)
For F n ∩ { X n < 1 } F_n\cap\{X_n<1\} F n ∩ { X n < 1 } , use n ≤ C ν f n\le C\nu_f n ≤ C ν f , (39) at δ = 1 / 64 \delta=1/64 δ = 1/64 , and (40). The contribution is at most C ν f + C λ / ϵ + C λ ν f / ( ϵ π min ) ≤ C ν f C\nu_f+C\lambda/\epsilon+C\lambda\sqrt{\nu_f}/(\epsilon\sqrt{\pi_{\min}})\le C\nu_f C ν f + C λ / ϵ + C λ ν f / ( ϵ π m i n ) ≤ C ν f . For X n > 8 log T X_n>8\log T X n > 8 log T , D n , 1 / 2 ≥ 1 D_{n,1/2}\ge1 D n , 1/2 ≥ 1 and (34) give T ∑ n < T P ( X n > 8 log T ) ≤ C T − 2 ≤ C ν f T\sum_{n<T}\mathbb{P}(X_n>8\log T)\le CT^{-2}\le C\nu_f T ∑ n < T P ( X n > 8 log T ) ≤ C T − 2 ≤ C ν f . Finally, sum (43) over dyadic shells up to 8 log T 8\log T 8 log T . Each geometric sum is dominated by its largest scale. Substitute into (41) and use ν = ϵ − 2 + ν f \nu=\epsilon^{-2}+\nu_f ν = ϵ − 2 + ν f to conclude.
Regret Bound of the Thompson Sampling with Delays (Theorem 5.2)
Theorem A.5. (Regret Bound of Thompson Sampling with Fairness under Delayed Reward). Consider Algorithm 1 under the assumptions of Theorem 5.1. For each arm, assume that label delays are IID and independent of the cases and algorithmic randomization. Fairness posteriors are updated immediately, whereas accuracy posteriors are updated when labels arrive. Choose q a ∈ ( 0 , 1 ] q_a\in(0,1] q a ∈ ( 0 , 1 ] such that d a ( q a ) < ∞ d_a(q_a)<\infty d a ( q a ) < ∞ , and let q min = min a q a q_{\min}=\min_a q_a q m i n = min a q a . Then, the gap-free regret bound becomes
E [ R λ ( T ) ] ≤ O ( N T log T q min + λ π min N T log T + ( 1 + λ ) ∑ a = 1 N d a ( q a ) + T H D ( T ) ) . \mathbb{E}[R_\lambda(T)]\le O\left(\sqrt{\frac{NT\log T}{q_{\min}}}+\frac{\lambda}{\sqrt{\pi_{\min}}}\sqrt{NT\log T}+(1+\lambda)\sum_{a=1}^{N}d_a(q_a)+\sqrt{TH_D(T)}\right). E [ R λ ( T )] ≤ O ( q m i n N T log T + π m i n λ N T log T + ( 1 + λ ) a = 1 ∑ N d a ( q a ) + T H D ( T ) ) . where H D ( T ) H_D(T) H D ( T ) summarizes optimal-arm anti-concentration caused by pessimistic utility draws under delayed feedback. Its formal definition is given in Appendix A.3.
Proof
We use the notation and decomposition from the proof of Theorem 5.1. In particular, U a U_a U a , Δ a \Delta_a Δ a , K a ( T ) K_a(T) K a ( T ) , U ‾ a ( t ) \overline{U}_a(t) U a ( t ) , U ~ a ( t ) \widetilde{U}_a(t) U a ( t ) , and F t − 1 F_{t-1} F t − 1 have exactly the same meanings. We retain
V λ = 1 + λ 2 π min , B λ ( T ) = min { λ 2 π min ( log T ) 9 / 2 , V λ ( log T ) 5 / 2 } . (44) V_\lambda=1+\frac{\lambda^2}{\pi_{\min}},\qquad B_\lambda(T)=\min\left\{\frac{\lambda^2}{\pi_{\min}}(\log T)^{9/2},V_\lambda(\log T)^{5/2}\right\}. \tag*{(44)} V λ = 1 + π m i n λ 2 , B λ ( T ) = min { π m i n λ 2 ( log T ) 9/2 , V λ ( log T ) 5/2 } . (44)
Recall that W ( ϵ , T ) W(\epsilon,T) W ( ϵ , T ) in that proof averages the truncated inverse optimism odds over the first n n n complete observations of the optimal arm, and its anti-concentration lemma gives
W ( ϵ , T ) ≤ C ϵ 2 [ log T + B λ ( T ) ] , 0 < ϵ ≤ 1 + λ . (45) W(\epsilon,T)\le\frac{C}{\epsilon^2}[\log T+B_\lambda(T)],\qquad0<\epsilon\le1+\lambda. \tag*{(45)} W ( ϵ , T ) ≤ ϵ 2 C [ log T + B λ ( T )] , 0 < ϵ ≤ 1 + λ . (45)
Thus B λ ( T ) B_\lambda(T) B λ ( T ) is the additional fairness contribution. The scalar log T \log T log T contribution is absorbed into N V λ log T NV_\lambda\log T N V λ log T in Theorem 5.1.
We first specify the two changes needed for delayed labels. A label generated at round u u u with integer delay D u D_u D u is used at the end of round u + D u u+D_u u + D u . Write
K a o b s ( t − 1 ) = ∑ u < t 1 { A u = a , u + D u < t } , (46) K_a^{\mathrm{obs}}(t-1)=\sum_{u<t}\mathbf{1}\{A_u=a,u+D_u<t\}, \tag*{(46)} K a obs ( t − 1 ) = u < t ∑ 1 { A u = a , u + D u < t } , (46)
N a , s ( t ) = ∑ u < t 1 { A u = a , S u = s } . N_{a,s}(t)=\sum_{u<t}\mathbf{1}\{A_u=a,S_u=s\}. N a , s ( t ) = u < t ∑ 1 { A u = a , S u = s } .
Here d a ( q a ) d_a(q_a) d a ( q a ) is the q a q_a q a -quantile of arm a a a ’s delay distribution. The accuracy posterior uses K a o b s ( t − 1 ) K_a^{\mathrm{obs}}(t-1) K a obs ( t − 1 ) labels. The subgroup posterior uses the immediate count N a , s ( t ) N_{a,s}(t) N a , s ( t ) , as in Theorem 5.1 . In particular, K a ( T ) K_a(T) K a ( T ) continues to count selections.
For the anti-concentration term, retain the optimism probability from the main proof:
p t ( y ) = P ( U ~ ∗ ( t ) > y ∣ F t − 1 ) . (47) p_t(y)=\mathbb{P}\left(\widetilde{U}_*(t)>y\mid\mathcal{F}_{t-1}\right). \tag*{(47)} p t ( y ) = P ( U ∗ ( t ) > y ∣ F t − 1 ) . (47)
Partition the decision rounds into maximal consecutive epochs during which all three optimal-arm coordinate posteriors remain unchanged, including the subgroup posteriors when λ = 0 \lambda=0 λ = 0 . Let σ e \sigma_e σ e be the first round of epoch e e e . Define
W D ( ϵ , T ) = E [ ∑ e : σ e ≤ T min { T , 1 − p σ e ( U ∗ − ϵ ) p σ e ( U ∗ − ϵ ) } ] , (48) \mathcal{W}_D(\epsilon,T)=\mathbb{E}\left[\sum_{e:\sigma_e\le T}\min\left\{T,\frac{1-p_{\sigma_e}(U_*-\epsilon)}{p_{\sigma_e}(U_*-\epsilon)}\right\}\right], \tag*{(48)} W D ( ϵ , T ) = E [ e : σ e ≤ T ∑ min { T , p σ e ( U ∗ − ϵ ) 1 − p σ e ( U ∗ − ϵ ) } ] , (48)
and
H D ( T ) = sup 0 < ϵ ≤ 1 + λ ϵ 2 W D ( ϵ , T ) . (49) H_D(T)=\sup_{0<\epsilon\le1+\lambda}\epsilon^2\mathcal{W}_D(\epsilon,T). \tag*{(49)} H D ( T ) = 0 < ϵ ≤ 1 + λ sup ϵ 2 W D ( ϵ , T ) . (49)
Here W D \mathcal{W}_D W D plays the role of W W W in the exchange argument, with the actual delayed posterior histories. Consequently, H D ( T ) H_D(T) H D ( T ) bounds the total optimal-arm anti-concentration coefficient. Its immediate-feedback counterpart is log T + B λ ( T ) \log T+B_\lambda(T) log T + B λ ( T ) , rather than B λ ( T ) B_\lambda(T) B λ ( T ) alone. We establish this connection explicitly below.
As in Theorem 5.1 , arms with c a − c a ∗ > 1 + λ c_a-c_{a^*}>1+\lambda c a − c a ∗ > 1 + λ are never selected, and every selectable arm satisfies Δ a ≤ 2 ( 1 + λ ) \Delta_a\le2(1+\lambda) Δ a ≤ 2 ( 1 + λ ) . The cases N = 1 N=1 N = 1 and N > T N>T N > T follow from zero regret and the trivial bound 2 ( 1 + λ ) T 2(1+\lambda)T 2 ( 1 + λ ) T , respectively. We therefore take 2 ≤ N ≤ T 2\le N\le T 2 ≤ N ≤ T . All arm groups below contain selectable arms.
Use exactly the thresholds and events of the main proof:
ϵ a = Δ a / 3 , x a = U a + ϵ a , y a = U ∗ − ϵ a , \epsilon_a=\Delta_a/3,\qquad x_a=U_a+\epsilon_a,\qquad y_a=U_*-\epsilon_a, ϵ a = Δ a /3 , x a = U a + ϵ a , y a = U ∗ − ϵ a ,
E a μ ( t ) = { U a ( t ) ≤ x a } , E a θ ( t ) = { U ~ a ( t ) ≤ y a } . (50) E_a^\mu(t)=\{U_a(t)\le x_a\},\qquad E_a^\theta(t)=\{\widetilde{U}_a(t)\le y_a\}. \tag*{(50)} E a μ ( t ) = { U a ( t ) ≤ x a } , E a θ ( t ) = { U a ( t ) ≤ y a } . (50)
The same three-case decomposition gives
E [ K a ( T ) ] = ∑ t ≤ T P ( A t = a , E a μ ( t ) , E a θ ( t ) ) ⏟ I a + ∑ t ≤ T P ( A t = a , E a μ ( t ) , E a θ ( t ) c ) ⏟ I I a + ∑ t ≤ T P ( A t = a , E a μ ( t ) c ) ⏟ I I I a . (51) \mathbb{E}[K_a(T)]
=
\underbrace{\sum_{t\le T}\mathbb{P}(A_t=a,E_a^\mu(t),E_a^\theta(t))}_{I_a}
+
\underbrace{\sum_{t\le T}\mathbb{P}(A_t=a,E_a^\mu(t),E_a^\theta(t)^c)}_{II_a}
+
\underbrace{\sum_{t\le T}\mathbb{P}(A_t=a,E_a^\mu(t)^c)}_{III_a}. \tag*{(51)} E [ K a ( T )] = I a t ≤ T ∑ P ( A t = a , E a μ ( t ) , E a θ ( t )) + I I a t ≤ T ∑ P ( A t = a , E a μ ( t ) , E a θ ( t ) c ) + I I I a t ≤ T ∑ P ( A t = a , E a μ ( t ) c ) . (51)
The exchange inequality in Step 2 of the main proof applies conditionally on F t − 1 \mathcal{F}_{t-1} F t − 1 without modification. It is the same conditional-draw argument as Agrawal and Goyal [ [2 ] . For a group B B B and a common threshold y < U ∗ y<U_* y < U ∗ , it gives
P ( A t ∈ B , E A t μ ( t ) , U ~ A t ( t ) ≤ y ∣ F t − 1 ) ≤ 1 − p t ( y ) p t ( y ) P ( A t = a ∗ ∣ F t − 1 ) . (52) \mathbb{P}\left(A_t\in B,E_{A_t}^\mu(t),\widetilde{U}_{A_t}(t)\le y\mid\mathcal{F}_{t-1}\right)
\le
\frac{1-p_t(y)}{p_t(y)}
\mathbb{P}\left(A_t=a^*\mid\mathcal{F}_{t-1}\right). \tag*{(52)} P ( A t ∈ B , E A t μ ( t ) , U A t ( t ) ≤ y ∣ F t − 1 ) ≤ p t ( y ) 1 − p t ( y ) P ( A t = a ∗ ∣ F t − 1 ) . (52)
Within epoch e e e , p t ( y ) = p σ e ( y ) p_t(y)=p_{\sigma_e}(y) p t ( y ) = p σ e ( y ) . Each epoch contains at most one optimal-arm selection, because that selection immediately updates a subgroup posterior. An accuracy-label arrival can end the epoch earlier. Conditional on its starting history, summing (52) bounds the expected group case-I count by the inverse odds, and also by T T T . Averaging and summing over the reached epochs gives
E [ ∑ t ≤ T 1 { A t ∈ B , E A t μ ( t ) , U ~ A t ( t ) ≤ y } ] ≤ W D ( U ∗ − y , T ) . (53) \mathbb{E}\left[\sum_{t\le T}\mathbb{1}\{A_t\in B,E_{A_t}^\mu(t),\widetilde{U}_{A_t}(t)\le y\}\right]
\le\mathcal{W}_D(U_*-y,T). \tag*{(53)} E [ t ≤ T ∑ 1 { A t ∈ B , E A t μ ( t ) , U A t ( t ) ≤ y } ] ≤ W D ( U ∗ − y , T ) . (53)
In particular, I a ≤ W D ( ϵ a , T ) I_a\le\mathcal{W}_D(\epsilon_a,T) I a ≤ W D ( ϵ a , T ) . This is precisely the use of W ( ϵ a , T ) W(\epsilon_a,T) W ( ϵ a , T ) in the main proof, with delayed posterior epochs.
For cases II and III, we use the coordinate concentration calculations in Steps 4 and 5 of that proof. The observation-counting change is
E [ ∑ t ≤ T 1 { A t = a , K a o b s ( t − 1 ) < m } ] ≤ m q a + d a ( q a ) , \mathbb{E}\left[\sum_{t\le T}\mathbb{1}\{A_t=a,K_a^{\mathrm{obs}}(t-1)<m\}\right]\le\frac{m}{q_a}+d_a(q_a), E [ t ≤ T ∑ 1 { A t = a , K a obs ( t − 1 ) < m } ] ≤ q a m + d a ( q a ) ,
E [ ∑ t ≤ T 1 { A t = a , N a , s ( t ) < m } ] ≤ m π s (54) \mathbb{E}\left[\sum_{t\le T}\mathbb{1}\{A_t=a,N_{a,s}(t)<m\}\right]\le\frac{m}{\pi_s} \tag*{(54)} E [ t ≤ T ∑ 1 { A t = a , N a , s ( t ) < m } ] ≤ π s m (54)
for every integer m ≥ 1 m\ge1 m ≥ 1 . For the first inequality, pre-generate the arm’s IID delays in selection order. The expected index of the m m m th delay at most d a ( q a ) d_a(q_a) d a ( q a ) is at most m / q a m/q_a m / q a . After that selection, all m m m designated labels arrive within d a ( q a ) d_a(q_a) d a ( q a ) rounds. At most d a ( q a ) d_a(q_a) d a ( q a ) further selections can occur during those rounds. The second inequality is the same negative-binomial argument for immediate subgroup observations. This is the delay-quantile counting principle of Wu and Wager [2022].
For completeness, the accuracy concentration calculation remains valid for the observed count in (46) . Fix a calendar round t t t . Let C u C_u C u be the correctness observed for the case selected at round u u u , and let ρ ^ a ( t ) \hat{\rho}_a(t) ρ ^ a ( t ) be the empirical accuracy from arm a a a ’s arrived labels. For analysis, expose complete past cases, then the current action and delay, before the fresh case. The mask w u = 1 { A u = a , u + D u < t } w_u=\mathbb{1}\{A_u=a,u+D_u<t\} w u = 1 { A u = a , u + D u < t } is predictable. Delay independence and noncontextual selection give
E [ exp ( η ∑ u < t w u ( C u − ρ a ) − η 2 8 ∑ u < t w u ) ] ≤ 1. (55) \mathbb{E}\left[\exp\left(\eta\sum_{u<t}w_u(C_u-\rho_a)-\frac{\eta^2}{8}\sum_{u<t}w_u\right)\right]\le1. \tag*{(55)} E [ exp ( η u < t ∑ w u ( C u − ρ a ) − 8 η 2 u < t ∑ w u ) ] ≤ 1. (55)
Taking η = 4 v \eta=4v η = 4 v and η = − 4 v \eta=-4v η = − 4 v yields
P ( K a o b s ( t − 1 ) ≥ m , ∣ ρ ^ a ( t ) − ρ a ∣ > v ) ≤ 2 e − 2 m v 2 . (56) \mathbb{P}\left(K_a^{\mathrm{obs}}(t-1)\ge m,\left|\hat{\rho}_a(t)-\rho_a\right|>v\right)\le2e^{-2mv^2}. \tag*{(56)} P ( K a obs ( t − 1 ) ≥ m , ∣ ρ ^ a ( t ) − ρ a ∣ > v ) ≤ 2 e − 2 m v 2 . (56)
The subgroup argument is identical after exposing the current group. Posterior-mean smoothing and conditional Beta concentration are unchanged. No independence between accuracy and subgroup empirical histories is used.
As in the main proof, allocate tolerance ϵ a / 2 \epsilon_a/2 ϵ a /2 to accuracy and ϵ a / ( 4 λ ) \epsilon_a/(4\lambda) ϵ a / ( 4 λ ) to each subgroup. Choose observation thresholds of orders log T / ϵ a 2 \log T/\epsilon_a^2 log T / ϵ a 2 and λ 2 log T / ϵ a 2 \lambda^2\log T/\epsilon_a^2 λ 2 log T / ϵ a 2 , respectively. Omit a coordinate condition when its tolerance is at least one, and omit the subgroup conditions at λ = 0 \lambda=0 λ = 0 . Above these thresholds, the empirical and posterior error probabilities at each fixed round are at most C / T 3 C/T^3 C / T 3 . Below them, apply (54) . Combining the two cases before charging the insufficient-count events gives
I I a + I I I a ≤ C log T Δ a 2 ( q a − 1 + λ 2 π min ) + d a ( q a ) = C log T Δ a 2 ( V λ + q a − 1 − 1 ) + d a ( q a ) . (57) \begin{aligned}
\mathrm{II}_a+\mathrm{III}_a\le\frac{C\log T}{\Delta_a^2}\left(q_a^{-1}+\frac{\lambda^2}{\pi_{\min}}\right)+d_a(q_a) \\
&=\frac{C\log T}{\Delta_a^2}\left(V_\lambda+q_a^{-1}-1\right)+d_a(q_a). \tag*{(57)}
\end{aligned} II a + III a ≤ Δ a 2 C log T ( q a − 1 + π m i n λ 2 ) + d a ( q a ) = Δ a 2 C log T ( V λ + q a − 1 − 1 ) + d a ( q a ) . (57)
Threshold ceilings and the summed failure probabilities are absorbed into the leading term, using Δ a 2 ≤ 8 ( q a − 1 + λ 2 / π min ) \Delta_a^2\le8(q_a^{-1}+\lambda^2/\pi_{\min}) Δ a 2 ≤ 8 ( q a − 1 + λ 2 / π m i n ) . Thus only the accuracy contribution 1 1 1 in V λ V_\lambda V λ becomes q a − 1 q_a^{-1} q a − 1 . The fairness contribution remains λ 2 / π min \lambda^2/\pi_{\min} λ 2 / π m i n .
Adding the three cases gives the delayed counterpart of the selection-count bound in Theorem 5.1 :
E [ K a ( T ) ] ≤ C ( V λ + q a − 1 − 1 ) log T Δ a 2 + d a ( q a ) + W D ( Δ a / 3 , T ) . (58) \mathbb{E}[K_a(T)]\le\frac{C(V_\lambda+q_a^{-1}-1)\log T}{\Delta_a^2}+d_a(q_a)+\mathcal{W}_D(\Delta_a/3,T). \tag*{(58)} E [ K a ( T )] ≤ Δ a 2 C ( V λ + q a − 1 − 1 ) log T + d a ( q a ) + W D ( Δ a /3 , T ) . (58)
For the gap-free bound, use the same cutoff d d d and groups d j d_j d j , B j B_j B j , y j y_j y j as in the main proof:
d j = 2 j d , B j = { a : d j ≤ Δ a ≤ 2 d j } , y j = U ⋆ − d j / 3. (59) d_j=2^jd,\qquad B_j=\{a:d_j\le\Delta_a\le2d_j\},\qquad y_j=U_\star-d_j/3. \tag*{(59)} d j = 2 j d , B j = { a : d j ≤ Δ a ≤ 2 d j } , y j = U ⋆ − d j /3. (59)
Keep x a = U a + Δ a / 3 x_a=U_a+\Delta_a/3 x a = U a + Δ a /3 . Since y j − x a ≥ Δ a / 3 y_j-x_a\ge\Delta_a/3 y j − x a ≥ Δ a /3 for a ∈ B j a\in B_j a ∈ B j , (57) applies with the common threshold. Charge gaps at most d d d by T d Td T d and use (53) once per nonempty group. This gives exactly the main proof’s grouped cutoff with its delayed terms:
E [ R λ ( T ) ] ≤ T d + C log T ∑ Δ a > d V λ + q a − 1 − 1 Δ a + ∑ Δ a > d Δ a d a ( q a ) + ∑ j : B j ≠ ∅ 2 d j W D ( d j / 3 , T ) . (60) \mathbb{E}[R_\lambda(T)]\le Td+C\log T\sum_{\Delta_a>d}\frac{V_\lambda+q_a^{-1}-1}{\Delta_a}
+\sum_{\Delta_a>d}\Delta_a d_a(q_a)+\sum_{j:B_j\ne\varnothing}2d_j\mathcal{W}_D(d_j/3,T). \tag*{(60)} E [ R λ ( T )] ≤ T d + C log T Δ a > d ∑ Δ a V λ + q a − 1 − 1 + Δ a > d ∑ Δ a d a ( q a ) + j : B j = ∅ ∑ 2 d j W D ( d j /3 , T ) . (60)
Every nonempty group has d j / 3 ≤ 1 + λ d_j/3\le1+\lambda d j /3 ≤ 1 + λ . The definition of H D ( T ) H_D(T) H D ( T ) therefore gives
∑ j : B j ≠ ∅ 2 d j W D ( d j / 3 , T ) ≤ 18 H D ( T ) ∑ j ≥ 0 1 2 j d = 36 H D ( T ) d . (61) \sum_{j:B_j\ne\varnothing}2d_j\mathcal{W}_D(d_j/3,T)\le18H_D(T)\sum_{j\ge0}\frac{1}{2^jd}=\frac{36H_D(T)}{d}. \tag*{(61)} j : B j = ∅ ∑ 2 d j W D ( d j /3 , T ) ≤ 18 H D ( T ) j ≥ 0 ∑ 2 j d 1 = d 36 H D ( T ) . (61)
Also,
∑ Δ a > d V λ + q a − 1 − 1 Δ a ≤ N ( V λ + q min − 1 − 1 ) d , ∑ Δ a > d Δ a d a ( q a ) ≤ 2 ( 1 + λ ) ∑ a = 1 N d a ( q a ) . (62) \sum_{\Delta_a>d}\frac{V_\lambda+q_a^{-1}-1}{\Delta_a}\le\frac{N(V_\lambda+q_{\min}^{-1}-1)}{d},\qquad\sum_{\Delta_a>d}\Delta_a d_a(q_a)\le2(1+\lambda)\sum_{a=1}^{N}d_a(q_a). \tag*{(62)} Δ a > d ∑ Δ a V λ + q a − 1 − 1 ≤ d N ( V λ + q m i n − 1 − 1 ) , Δ a > d ∑ Δ a d a ( q a ) ≤ 2 ( 1 + λ ) a = 1 ∑ N d a ( q a ) . (62)
Optimizing over d d d as in Theorem 5.1 yields
E [ R λ ( T ) ] ≤ C T [ N ( V λ + q min − 1 − 1 ) log T + H D ( T ) ] \mathbb{E}[R_\lambda(T)]\le C\sqrt{T\left[N(V_\lambda+q_{\min}^{-1}-1)\log T+H_D(T)\right]} E [ R λ ( T )] ≤ C T [ N ( V λ + q m i n − 1 − 1 ) log T + H D ( T ) ]
+ C ( 1 + λ ) ∑ a = 1 N d a ( q a ) . (63) {}+C(1+\lambda)\sum_{a=1}^{N}d_a(q_a). \tag*{(63)} + C ( 1 + λ ) a = 1 ∑ N d a ( q a ) . (63)
Expanding V λ + q min − 1 − 1 = q min − 1 + λ 2 / π min V_\lambda+q_{\min}^{-1}-1=q_{\min}^{-1}+\lambda^2/\pi_{\min} V λ + q m i n − 1 − 1 = q m i n − 1 + λ 2 / π m i n and separating the square root proves the stated theorem.
Finally, the connection to Theorem 5.1 uses its original W W W and B λ B_\lambda B λ . When labels arrive immediately, take q a = 1 q_a=1 q a = 1 and d a ( 1 ) = 0 d_a(1)=0 d a ( 1 ) = 0 . Each reached epoch is then the posterior after a prefix of the optimal-arm IID stream. Dropping its reach indicator gives
W D ( ϵ , T ) ≤ W ( ϵ , T ) , H D ( T ) ≤ C [ log T + B λ ( T ) ] . (64) W_D(\epsilon,T)\le W(\epsilon,T),\qquad H_D(T)\le C[\log T+B_\lambda(T)]. \tag*{(64)} W D ( ϵ , T ) ≤ W ( ϵ , T ) , H D ( T ) ≤ C [ log T + B λ ( T )] . (64)
Substitution into (63) gives
E [ R λ ( T ) ] ≤ C T [ N V λ log T + log T + B λ ( T ) ] ≤ C T [ N V λ log T + B λ ( T ) ] . (65) \begin{aligned}
\mathbb{E}[R_\lambda(T)]\le C\sqrt{T[NV_\lambda\log T+\log T+B_\lambda(T)]} \\
&\le C\sqrt{T[NV_\lambda\log T+B_\lambda(T)]}. \tag*{(65)}
\end{aligned} E [ R λ ( T )] ≤ C T [ N V λ log T + log T + B λ ( T )] ≤ C T [ N V λ log T + B λ ( T )] . (65)
This is the sharper gap-free bound in the main proof. Applying its same inequality
B λ ( T ) ≤ ( λ π min + λ 2 π min ) ( log T ) 7 / 2 (66) B_\lambda(T)\le\left(\frac{\lambda}{\sqrt{\pi_{\min}}}+\frac{\lambda^2}{\pi_{\min}}\right)(\log T)^{7/2} \tag*{(66)} B λ ( T ) ≤ ( π m i n λ + π m i n λ 2 ) ( log T ) 7/2 (66)
recovers all three displayed terms of Theorem 5.1 . In particular, B 0 ( T ) = 0 B_0(T)=0 B 0 ( T ) = 0 recovers its scalar result. For positive delays, (63) retains H D ( T ) H_D(T) H D ( T ) as defined in (49). The no-delay anti-concentration lemma is used only in (64).
non-IID L t L_t L t In practice, delays may correlate with subgroup identity, for example, when each subgroup has its own stationary feedback-delay distribution. We believe the proof would extend naturally to this case. The key point is that our analysis already tracks per-subgroup effective sample sizes separately — the delayed-filtration argument of Wu and Wager [ [54 ] can be applied per-subgroup rather than globally. If delays are correlated with S S S , the bottleneck becomes the subgroup with the worst combination of low prevalence and long delays: intuitively, π min ⋅ q min \pi_{\min}\cdot q_{\min} π m i n ⋅ q m i n in Theorem 5.2 would be replaced by min s ( π s ⋅ q s ) \min_s(\pi_s\cdot q_s) min s ( π s ⋅ q s ) , where q s q_s q s is the subgroup-specific delay quantile. The rest of the posterior concentration argument proceeds as before, since updates remain order-invariant within each subgroup. In the worst case, the minority subgroup also experiences the longest delays, compounding the π min \pi_{\min} π m i n factor. For other non-IID delays, the impact on the theoretical guarantees depends on the structure of the dependence.
Additional Details About Experiments
Dataset Details
For the ML datasets, the arms are trained on 60% of the data (split stratified on Y Y Y ), and the remaining 40% is the stream population. Twitter, Toxicity and Bios have no training step, and all their instances form the stream population. Each of the 10,000 runs samples T = 50,000 T=50{,}000 T = 50 , 000 instances with replacement from the stream population (§ 6.3 ).
The grid of λ \lambda λ values depends on the oracle breakpoints, the values of λ \lambda λ at which the optimal arm changes. With b min b_{\min} b m i n and b max b_{\max} b m a x the smallest and largest breakpoint, the grid contains 0 and ∞ \infty ∞ , 21 log-spaced values from b min / 10 b_{\min}/10 b m i n /10 to 10 b max 10b_{\max} 10 b m a x , and 0.9 b 0.9b 0.9 b , b b b and 1.1 b 1.1b 1.1 b for every breakpoint b b b .
For each dataset we give the λ \lambda λ grid, a table of the arms and a figure with four panels. Panels (a)–(c) show the regret per example, R λ ( t ) / ( ( 1 + λ ) t ) R_\lambda(t)/((1+\lambda)t) R λ ( t ) / (( 1 + λ ) t ) , against the round t t t at λ = 0 \lambda=0 λ = 0 , at an intermediate λ \lambda λ and at λ = ∞ \lambda=\infty λ = ∞ . The intermediate λ \lambda λ is the grid value closest to b min b max \sqrt{b_{\min}b_{\max}} b m i n b m a x . Panel (d) shows the same quantity after T = 50 k T=50\mathrm{k} T = 50 k rounds against λ \lambda λ , with the breakpoints as dotted vertical lines. Dividing by 1 + λ 1+\lambda 1 + λ makes the values at λ = 0 \lambda=0 λ = 0 and λ = ∞ \lambda=\infty λ = ∞ the accuracy and fairness regret of Figure 1 . All values are means over 10,000 runs; standard errors are smaller than the markers. As in Figure 1 , Random is omitted because it coincides with Round-Robin.
Classifier Arms for the Tabular Datasets
Bank, Adult, Credit, ACSIncome, Coupon and COMPAS use the same 18 arms. Numeric features are standardized and categorical features one-hot encoded. All models are fitted on the training split.
Standard models (do not use S S S ). Gradient boosted trees (GBM), a random forest (RF, 200 trees of depth at most 12), logistic regression (LR) and a decision tree of depth 3 (Tree-d3).
GBM with S S S as a feature (GBM+S).
Operating points of the GBM score (GBM-OP1 to GBM-OP6). Each uses one threshold for all subgroups: GBM-OPk k k uses the most accurate threshold whose DP gap is at most ( 1 − k / 7 ) (1-k/7) ( 1 − k /7 ) times the GBM’s. The thresholds are set on the stream population, so the six arms have evenly spaced gaps.
Fairness in-processing (S S S is used only in training). LR-DPη \eta η , η ∈ { 3 , 10 , 30 , 100 } \eta\in\{3, 10, 30, 100\} η ∈ { 3 , 10 , 30 , 100 } , adds η \eta η times the squared difference between the subgroups’ mean predicted probabilities to the logistic loss (for M > 2 M > 2 M > 2 , the sum over all pairs of subgroups). GBM-RW is a GBM trained with the reweighing of Kamiran and Calders [2012].
Biased arms. GBM-BiasedLabels is a GBM+S trained on labels in which 40% of the positives of the subgroup with the lowest base rate are flipped to 0. Biased predicts y ^ = S \hat{y}=S y ^ = S with probability 0.7 and is otherwise a fair coin (for M > 2 M > 2 M > 2 , it predicts 1 for the subgroup with the highest base rate).
The fairness arms do not use S S S at decision time. With subgroup-specific thresholds, parity costs at most 0.1 accuracy points on Bank, Credit and Coupon, so such arms tie and there is no trade-off to learn.
The TwitterAAE dataset [29 ] includes 1471 Twitter posts (a subset of a larger dataset from Davidson et al. [ [14 ] ) labeled for containing hate speech by 170 Mechanical Turk workers. The sensitive attribute - dialect (African American English (AAE) and non-AAE) - is annotated using a model from Blodgett et al. [ [8 ] , and this is treated as ground truth. Since each worker doesn’t label all the tweets the dataset is sparse - each tweet is labeled by around 4% of experts. We randomly combine 18 expert predictions into an arm a a a , taking the majority vote as their prediction y ^ a \hat{y}_a y ^ a . This results in 10 arms, each with around 40% missingness. Unavailable arms are dynamically excluded from the action space for all algorithms, and regret is measured against the best available arm in each round.
The 29 values of λ \lambda λ are { 0 , 0.0235 , 0.0318 , 0.043 , 0.0583 , 0.0789 , 0.107 , 0.144 , 0.196 , 0.211 , 0.235 , 0.258 , 0.265 , 0.358 , 0.485 , 0.656 , 0.889 , 0.901 , 1 , 1.1 , 1.2 , 1.63 , 2.2 , 2.98 , 4.04 , 5.46 , 7.4 , 10 , ∞ } \{0, 0.0235, 0.0318, 0.043, 0.0583, 0.0789, 0.107, 0.144, 0.196, 0.211, 0.235, 0.258, 0.265, 0.358, 0.485, 0.656, 0.889, 0.901, 1, 1.1, 1.2, 1.63, 2.2, 2.98, 4.04, 5.46, 7.4, 10, \infty\} { 0 , 0.0235 , 0.0318 , 0.043 , 0.0583 , 0.0789 , 0.107 , 0.144 , 0.196 , 0.211 , 0.235 , 0.258 , 0.265 , 0.358 , 0.485 , 0.656 , 0.889 , 0.901 , 1 , 1.1 , 1.2 , 1.63 , 2.2 , 2.98 , 4.04 , 5.46 , 7.4 , 10 , ∞ } .
Table 4. The 10 arms of Twitter: accuracy, DP gap and share of tweets without a prediction (%). ∗ \ast ∗ : optimal for some λ \lambda λ .
Figure 2. Twitter: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50k T = 50 k rounds against λ \lambda λ (d).
Bank
The Bank Marketing dataset [38 ] collects data from direct marketing campaigns of a Portuguese banking institution. The classification goal is to predict if the client will subscribe to a term deposit. The dataset does not contain any missing values. There are a total of 41,188 instances (24,712 used for training the arms and 16,476 used to create the online stream). The sensitive attribute is Marital status (Married vs Single/Divorced) - 60.4% of the individuals are married and 39.6% are Single/Divorced. 88.7% have true label Y = 0 Y = 0 Y = 0 and 11.3% have true label Y = 1 Y = 1 Y = 1 . The arms use 19 features.
The 32 values of λ \lambda λ are { 0 , 0.0211 , 0.0281 , 0.0373 , 0.0495 , 0.0658 , 0.0874 , 0.116 , 0.154 , 0.19 , 0.205 , 0.211 , 0.232 , 0.272 , 0.361 , 0.457 , 0.48 , 0.508 , 0.556 , 0.559 , 0.618 , 0.638 , 0.68 , 0.847 , 1.13 , 1.49 , 1.99 , 2.64 , 3.5 , 4.65 , 6.18 , ∞ } \{0, 0.0211, 0.0281, 0.0373, 0.0495, 0.0658, 0.0874, 0.116, 0.154, 0.19, 0.205, 0.211, 0.232, 0.272, 0.361, 0.457, 0.48, 0.508, 0.556, 0.559, 0.618, 0.638, 0.68, 0.847, 1.13, 1.49, 1.99, 2.64, 3.5, 4.65, 6.18, \infty\} { 0 , 0.0211 , 0.0281 , 0.0373 , 0.0495 , 0.0658 , 0.0874 , 0.116 , 0.154 , 0.19 , 0.205 , 0.211 , 0.232 , 0.272 , 0.361 , 0.457 , 0.48 , 0.508 , 0.556 , 0.559 , 0.618 , 0.638 , 0.68 , 0.847 , 1.13 , 1.49 , 1.99 , 2.64 , 3.5 , 4.65 , 6.18 , ∞ } .
Table 5. The 18 arms of Bank: accuracy and DP gap (%) on the stream population. ∗ \ast ∗ : optimal for some λ \lambda λ . Arms are described in Appendix § 9 .1.1.
Figure 3. Bank: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50k T = 50 k rounds against λ \lambda λ (d).
Adult
The Adult dataset [6 ] contains 48,842 records from the 1994 US Census (the UCI training and test files combined). The goal is to predict whether income exceeds $50K. The sensitive attribute is race, white (S = 0 S = 0 S = 0 ) vs. non-white (S = 1 S = 1 S = 1 ). We drop race, the census sampling weight and the categorical education feature (it duplicates the numeric one), which leaves 11 features. 29,305 instances are used for training and 19,537 for the stream. 14.6% of the stream population is non-white and 23.9% has Y = 1 Y = 1 Y = 1 .
The 32 values of λ \lambda λ are { 0 , 0.0023 , 0.00332 , 0.0048 , 0.00694 , 0.01 , 0.0145 , 0.0207 , 0.021 , 0.023 , 0.0253 , 0.0303 , 0.0439 , 0.0634 , 0.0917 , 0.133 , 0.192 , 0.235 , 0.262 , 0.277 , 0.288 , 0.33 , 0.366 , 0.401 , 0.403 , 0.58 , 0.838 , 1.21 , 1.75 , 2.53 , 3.66 , ∞ } \{0, 0.0023, 0.00332, 0.0048, 0.00694, 0.01, 0.0145, 0.0207, 0.021, 0.023, 0.0253, 0.0303, 0.0439, 0.0634, 0.0917, 0.133, 0.192, 0.235, 0.262, 0.277, 0.288, 0.33, 0.366, 0.401, 0.403, 0.58, 0.838, 1.21, 1.75, 2.53, 3.66, \infty\} { 0 , 0.0023 , 0.00332 , 0.0048 , 0.00694 , 0.01 , 0.0145 , 0.0207 , 0.021 , 0.023 , 0.0253 , 0.0303 , 0.0439 , 0.0634 , 0.0917 , 0.133 , 0.192 , 0.235 , 0.262 , 0.277 , 0.288 , 0.33 , 0.366 , 0.401 , 0.403 , 0.58 , 0.838 , 1.21 , 1.75 , 2.53 , 3.66 , ∞ } .
Table 6. The 18 arms of Adult: accuracy and DP gap (%) on the stream population. * : optimal for some λ \lambda λ . Arms are described in Appendix B.1.1.
Figure 4. Adult: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50k T = 50 k rounds against λ \lambda λ (d).
Credit
The Default of Credit Card Clients dataset [57 ] was created to predict customers’ credit default. There are a total of 30,000 instances. We use 18,000 to train arms and 12,000 to create the online stream. 60.8% have sensitive attribute S = 1 S = 1 S = 1 (female). 22.1% have true label Y = 1 Y = 1 Y = 1 . The arms use 22 features.
The 29 values of λ \lambda λ are { 0 , 0.274 , 0.376 , 0.515 , 0.706 , 0.967 , 1.33 , 1.82 , 2.47 , 2.49 , 2.74 , 3.02 , 3.41 , 4.67 , 6.4 , 8.77 , 12 , 13.4 , 14.9 , 16.4 , 16.5 , 22.6 , 30.9 , 42.4 , 58.1 , 79.6 , 109 , 149 , ∞ } \{0, 0.274, 0.376, 0.515, 0.706, 0.967, 1.33, 1.82, 2.47, 2.49, 2.74, 3.02, 3.41, 4.67, 6.4, 8.77, 12, 13.4, 14.9, 16.4, 16.5, 22.6, 30.9, 42.4, 58.1, 79.6, 109, 149, \infty\} { 0 , 0.274 , 0.376 , 0.515 , 0.706 , 0.967 , 1.33 , 1.82 , 2.47 , 2.49 , 2.74 , 3.02 , 3.41 , 4.67 , 6.4 , 8.77 , 12 , 13.4 , 14.9 , 16.4 , 16.5 , 22.6 , 30.9 , 42.4 , 58.1 , 79.6 , 109 , 149 , ∞ } .
Table 7. The 18 arms of Credit: accuracy and DP gap (%) on the stream population. *: optimal for some λ \lambda λ . Arms are described in Appendix B.1.1.
Figure 5. Credit: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50k T = 50 k rounds against λ \lambda λ (d).
Toxicity
We parse raw runs from Liang et al. [ [31 ] available at https://crfm.stanford.edu/helm/classic/latest/#/runs. Here, 66 different LLMs were queried - the inputs start with a comment (either toxic or non-toxic from the CivilComments dataset) followed by “\n Question: Is the passage above toxic?”. Outputs are either “True” or “False.” Accuracy is measured using quasi-exact match. Any LLMs with missing responses were discarded. We do not include perturbed instances. This leaves us with 56 LLMs (arms) and 2000 prompts (1000 prompts mention Black demographics and 1000 mention White ). The motivation behind the dataset is that toxicity classifiers pick up on biases in the training data and spuriously associate toxicity with the mention of certain demographics. A fair classifier would have a low DP-gap since classifications of Toxic should be equal for both subgroups. 29.4% of the prompts have true label Toxic. The marginal accuracy and DP-gap of the 56 LLMs used for experiments are summarized in Table 8 .
Table 8. The 56 LLMs of Toxicity: accuracy and DP gap (%). *: optimal for some λ \lambda λ .
The 29 values of λ \lambda λ are { 0 , 0.0134 , 0.0175 , 0.023 , 0.0301 , 0.0395 , 0.0518 , 0.0679 , 0.089 , 0.117 , 0.12 , 0.134 , 0.147 , 0.153 , 0.2 , 0.263 , 0.27 , 0.3 , 0.33 , 0.344 , 0.451 , 0.591 , 0.775 , 1.02 , 1.33 , 1.75 , 2.29 , 3 , ∞ } \{0, 0.0134, 0.0175, 0.023, 0.0301, 0.0395, 0.0518, 0.0679, 0.089, 0.117, 0.12, 0.134, 0.147, 0.153, 0.2, 0.263, 0.27, 0.3, 0.33, 0.344, 0.451, 0.591, 0.775, 1.02, 1.33, 1.75, 2.29, 3, \infty\} { 0 , 0.0134 , 0.0175 , 0.023 , 0.0301 , 0.0395 , 0.0518 , 0.0679 , 0.089 , 0.117 , 0.12 , 0.134 , 0.147 , 0.153 , 0.2 , 0.263 , 0.27 , 0.3 , 0.33 , 0.344 , 0.451 , 0.591 , 0.775 , 1.02 , 1.33 , 1.75 , 2.29 , 3 , ∞ } .
Figure 6. Toxicity: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50k T = 50 k rounds against λ \lambda λ (d).
Bios
Bias in Bios [15 ] contains online biographies labeled with one of 28 occupations, with the first sentence (which names the occupation) removed. The sensitive attribute is gender. We sample 30,000 biographies at random from the test split; 46.1% are women, and the most frequent occupation (professor) accounts for 30.0%. The arms are 16 open instruction-tuned LLMs with 0.36B to 9B parameters, fixed before any model was run. Each model receives a zero-shot prompt with the biography and the list of the 28 occupations, and its greedy decoding is constrained to one of the occupation names. The gap is the total variation distance between the subgroups’ distributions of predicted occupations.
The 29 values of λ \lambda λ are { 0 , 0.277 , 0.36 , 0.467 , 0.607 , 0.788 , 1.02 , 1.33 , 1.72 , 2.24 , 2.49 , 2.77 , 2.91 , 3.05 , 3.77 , 4.63 , 4.9 , 5.14 , 5.65 , 6.36 , 8.26 , 10.7 , 13.9 , 18.1 , 23.5 , 30.5 , 39.6 , 51.4 , ∞ } \{0, 0.277, 0.36, 0.467, 0.607, 0.788, 1.02, 1.33, 1.72, 2.24, 2.49, 2.77, 2.91, 3.05, 3.77, 4.63, 4.9, 5.14, 5.65, 6.36, 8.26, 10.7, 13.9, 18.1, 23.5, 30.5, 39.6, 51.4, \infty\} { 0 , 0.277 , 0.36 , 0.467 , 0.607 , 0.788 , 1.02 , 1.33 , 1.72 , 2.24 , 2.49 , 2.77 , 2.91 , 3.05 , 3.77 , 4.63 , 4.9 , 5.14 , 5.65 , 6.36 , 8.26 , 10.7 , 13.9 , 18.1 , 23.5 , 30.5 , 39.6 , 51.4 , ∞ } .
Table 9. The 16 arms of Bios: accuracy and TV gap (%) on the stream population. *: optimal for some λ \lambda λ .
Figure 7. Bios: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50k T = 50 k rounds against λ \lambda λ (d).
ACSIncome
ACSIncome [16 ] is built from the 2018 American Community Survey (California), with 195,665 instances after the standard ACSIncome filter. The goal is to predict whether income exceeds $50K (41.1% of the stream population). The 9 features are age, class of worker, education, marital status, occupation, place of birth, relationship, hours worked per week and sex. The sensitive attribute is race/ethnicity in five groups: White (42.5% of the stream population), Hispanic (33.1%), Asian (16.6%), Black (4.2%) and Other (3.6%). 117,399 instances are used for training and 78,266 for the stream. The DP gap is the largest difference in positive prediction rate between any two groups.
The 38 values of λ \lambda λ are { 0 , 0.00893 , 0.0132 , 0.0194 , 0.0287 , 0.0423 , 0.0624 , 0.0804 , 0.0893 , 0.092 , 0.0982 , 0.136 , 0.2 , 0.222 , 0.247 , 0.272 , 0.295 , 0.372 , 0.414 , 0.436 , 0.455 , 0.643 , 0.672 , 0.746 , 0.821 , 0.948 , 1.4 , 1.91 , 2.06 , 2.13 , 2.34 , 3.04 , 4.49 , 6.63 , 9.77 , 14.4 , 21.3 , ∞ } \{0, 0.00893, 0.0132, 0.0194, 0.0287, 0.0423, 0.0624, 0.0804, 0.0893, 0.092, 0.0982, 0.136, 0.2, 0.222, 0.247, 0.272, 0.295, 0.372, 0.414, 0.436, 0.455, 0.643, 0.672, 0.746, 0.821, 0.948, 1.4, 1.91, 2.06, 2.13, 2.34, 3.04, 4.49, 6.63, 9.77, 14.4, 21.3, \infty\} { 0 , 0.00893 , 0.0132 , 0.0194 , 0.0287 , 0.0423 , 0.0624 , 0.0804 , 0.0893 , 0.092 , 0.0982 , 0.136 , 0.2 , 0.222 , 0.247 , 0.272 , 0.295 , 0.372 , 0.414 , 0.436 , 0.455 , 0.643 , 0.672 , 0.746 , 0.821 , 0.948 , 1.4 , 1.91 , 2.06 , 2.13 , 2.34 , 3.04 , 4.49 , 6.63 , 9.77 , 14.4 , 21.3 , ∞ } .
Table 10. The 18 arms of ACSIncome: accuracy and DP gap (%) on the stream population. ∗ \ast ∗ : optimal for some λ \lambda λ . Arms are described in Appendix § 9 .1.1.
Figure 8. ACSIncome: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50\mathrm{k} T = 50 k rounds against λ \lambda λ (d).
Coupon
For the In-Vehicle Coupon Recommendation [51 ] dataset, driving scenarios are presented to Mechanical Turk workers, and they are asked whether they would accept a coupon if they were the driver. There are a total of 12,684 instances. 7,610 are used for training arms, and 5,074 are used for creating an online stream. 49.7% of the test data have sensitive attribute S = 1 S = 1 S = 1 (male). 56.8% have true label Y = 1 Y = 1 Y = 1 . The arms use 23 features.
The 29 values of λ \lambda λ are { 0 , 0.395 , 0.548 , 0.759 , 1.05 , 1.46 , 2.02 , 2.8 , 3.56 , 3.88 , 3.95 , 4.35 , 5.38 , 7.46 , 10.3 , 14.3 , 19.9 , 24.3 , 27 , 27.5 , 29.7 , 38.1 , 52.9 , 73.3 , 102 , 141 , 195 , 270 , ∞ } \{0, 0.395, 0.548, 0.759, 1.05, 1.46, 2.02, 2.8, 3.56, 3.88, 3.95, 4.35, 5.38, 7.46, 10.3, 14.3, 19.9, 24.3, 27, 27.5, 29.7, 38.1, 52.9, 73.3, 102, 141, 195, 270, \infty\} { 0 , 0.395 , 0.548 , 0.759 , 1.05 , 1.46 , 2.02 , 2.8 , 3.56 , 3.88 , 3.95 , 4.35 , 5.38 , 7.46 , 10.3 , 14.3 , 19.9 , 24.3 , 27 , 27.5 , 29.7 , 38.1 , 52.9 , 73.3 , 102 , 141 , 195 , 270 , ∞ } .
Table 11. The 18 arms of Coupon: accuracy and DP gap (%) on the stream population. *: optimal for some λ \lambda λ . Arms are described in Appendix B.1.1.
Figure 9. Trade-off between accuracy and fairness regret on Coupon after T = 50 k T = 50\mathrm{k} T = 50 k rounds, as in Figure 1 . Round-Robin is off-scale and omitted.
Figure 10. Coupon: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50\mathrm{k} T = 50 k rounds against λ \lambda λ (d).
COMPAS
The COMPAS dataset [30 ] contains criminal defendants from Broward County, Florida. The goal is to predict recidivism within two years. We apply the filters of the ProPublica analysis and keep African-American (S = 1 S = 1 S = 1 ) and Caucasian (S = 0 S = 0 S = 0 ) defendants, which leaves 5,278 instances. The 7 features are age, sex, number of prior offenses, three juvenile offence counts and the charge degree; the COMPAS score is not used. 3,166 instances are used for training and 2,112 for the stream. 39.6% of the stream population is Caucasian and 47.1% has Y = 1 Y = 1 Y = 1 .
The 44 values of λ \lambda λ are { 0 , 0.00208 , 0.00314 , 0.00475 , 0.00719 , 0.0109 , 0.0165 , 0.0187 , 0.0208 , 0.0228 , 0.0249 , 0.0377 , 0.046 , 0.0512 , 0.0563 , 0.057 , 0.0863 , 0.131 , 0.198 , 0.222 , 0.246 , 0.271 , 0.299 , 0.34 , 0.378 , 0.416 , 0.452 , 0.479 , 0.532 , 0.585 , 0.652 , 0.684 , 0.725 , 0.739 , 0.797 , 0.821 , 0.903 , 1.04 , 1.57 , 2.37 , 3.59 , 5.43 , 8.21 , ∞ } \{0, 0.00208, 0.00314, 0.00475, 0.00719, 0.0109, 0.0165, 0.0187, 0.0208, 0.0228, 0.0249, 0.0377, 0.046, 0.0512, 0.0563, 0.057, 0.0863, 0.131, 0.198, 0.222, 0.246, 0.271, 0.299, 0.34, 0.378, 0.416, 0.452, 0.479, 0.532, 0.585, 0.652, 0.684, 0.725, 0.739, 0.797, 0.821, 0.903, 1.04, 1.57, 2.37, 3.59, 5.43, 8.21, \infty\} { 0 , 0.00208 , 0.00314 , 0.00475 , 0.00719 , 0.0109 , 0.0165 , 0.0187 , 0.0208 , 0.0228 , 0.0249 , 0.0377 , 0.046 , 0.0512 , 0.0563 , 0.057 , 0.0863 , 0.131 , 0.198 , 0.222 , 0.246 , 0.271 , 0.299 , 0.34 , 0.378 , 0.416 , 0.452 , 0.479 , 0.532 , 0.585 , 0.652 , 0.684 , 0.725 , 0.739 , 0.797 , 0.821 , 0.903 , 1.04 , 1.57 , 2.37 , 3.59 , 5.43 , 8.21 , ∞ } .
Table 12. The 18 arms of COMPAS: accuracy and DP gap (%) on the stream population. *: optimal for some λ \lambda λ . Arms are described in Appendix B.1.1.
Figure 11. Trade-off between accuracy and fairness regret on COMPAS after T = 50 k T = 50k T = 50 k rounds, as in Figure 1 .
Figure 12. COMPAS: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T = 50k T = 50 k rounds against λ \lambda λ (d).
UCB Baselines
Both UCB baselines replace the unknown accuracy ρ a \rho_a ρ a with an upper bound ρ a + \rho_a^{+} ρ a + and the gap g a g_a g a with a lower bound g a − g_a^{-} g a − . In round t t t , the learner selects the available arm with the largest optimistic utility
U ^ a ( t ) = ρ a + ( t ) − λ g a − ( t ) − c a , \widehat{U}_a(t) = \rho_a^{+}(t) - \lambda g_a^{-}(t) - c_a, U a ( t ) = ρ a + ( t ) − λ g a − ( t ) − c a ,
with U ^ a ( t ) = − g a − ( t ) − c a \widehat{U}_a(t)=-g_a^{-}(t)-c_a U a ( t ) = − g a − ( t ) − c a for λ = ∞ \lambda=\infty λ = ∞ . Ties are broken uniformly at random.
UCB1 Let n a n_a n a be the number of times arm a a a has been selected, n a , s n_{a,s} n a , s the number of those rounds with S = s S=s S = s , and ρ ^ a \hat{\rho}_a ρ ^ a and μ ^ a , s \hat{\mu}_{a,s} μ ^ a , s the empirical accuracy and subgroup-positive rate. With the Hoeffding radii r a = 2 log t / n a r_a=\sqrt{2\log t/n_a} r a = 2 log t / n a and r a , s = 2 log t / n a , s r_{a,s}=\sqrt{2\log t/n_{a,s}} r a , s = 2 log t / n a , s [3 ] ,
ρ a + = min ( 1 , ρ ^ a + r a ) , g a − = max ( 0 , ∣ μ ^ a , 0 − μ ^ a , 1 ∣ − r a , 0 − r a , 1 ) . \rho_a^{+}=\min(1,\hat{\rho}_a+r_a), \qquad g_a^{-}=\max(0,\lvert\hat{\mu}_{a,0}-\hat{\mu}_{a,1}\rvert-r_{a,0}-r_{a,1}). ρ a + = min ( 1 , ρ ^ a + r a ) , g a − = max ( 0 , ∣ μ ^ a , 0 − μ ^ a , 1 ∣ − r a , 0 − r a , 1 ) .
An arm that has not been selected has an infinite index, so every arm is tried once. Until both subgroups of an arm have been observed, its gap bound is zero.
Bayes-UCB Bayes-UCB keeps the Beta posteriors of TS (Algorithm 1) and replaces each posterior sample with a quantile [27 ] . The accuracy bound ρ a + \rho_a^{+} ρ a + is the 1 − 1 / t 1-1/t 1 − 1/ t quantile of Beta ( α a , β a ) \operatorname{Beta}(\alpha_a,\beta_a) Beta ( α a , β a ) . For the gap, the 1 / t 1/t 1/ t and 1 − 1 / t 1-1/t 1 − 1/ t quantiles of Beta ( α a , s , β a , s ) \operatorname{Beta}(\alpha_{a,s},\beta_{a,s}) Beta ( α a , s , β a , s ) give an interval [ ℓ a , s , u a , s ] [\ell_{a,s},u_{a,s}] [ ℓ a , s , u a , s ] for each subgroup, and g a − = max ( 0 , ℓ a , 0 − u a , 1 , ℓ a , 1 − u a , 0 ) g_a^{-}=\max(0,\ell_{a,0}-u_{a,1},\ell_{a,1}-u_{a,0}) g a − = max ( 0 , ℓ a , 0 − u a , 1 , ℓ a , 1 − u a , 0 ) is the smallest gap consistent with both intervals. We use the level 1 − 1 / t 1-1/t 1 − 1/ t , i.e. c = 0 c=0 c = 0 in the level 1 − 1 / ( t ( log T ) c ) 1-1/(t(\log T)^c) 1 − 1/ ( t ( log T ) c ) of Kaufmann et al. [27 ] . Their regret bound requires c ≥ 5 c\geq5 c ≥ 5 , but c = 0 c=0 c = 0 gave the best results in their simulations. To save computation, for t > 200 t>200 t > 200 we round t t t in the level down to a geometric grid with ratio 1.01, so a quantile is recomputed only when the arm’s counts or the grid point change. With delayed labels, the posteriors are updated as in Algorithm 1.
Multi-class and multi-subgroup Both methods bound each rate separately. With C C C classes, UCB1 uses the radii above for every class rate μ a , s , k \mu_{a,s,k} μ a , s , k , and Bayes-UCB uses the quantiles of the Beta marginals Beta ( 1 + n a , s , k , C − 1 + n a , s − n a , s , k ) \operatorname{Beta}(1+n_{a,s,k},C-1+n_{a,s}-n_{a,s,k}) Beta ( 1 + n a , s , k , C − 1 + n a , s − n a , s , k ) of the Dirichlet posterior. The gap bound is half the sum over classes of the smallest difference consistent with the per-class intervals. With M M M subgroups, g a − = max ( 0 , max s ℓ a , s − min s u a , s ) g_a^{-}=\max(0,\max_s\ell_{a,s}-\min_s u_{a,s}) g a − = max ( 0 , max s ℓ a , s − min s u a , s ) , where [ ℓ a , s , u a , s ] [\ell_{a,s},u_{a,s}] [ ℓ a , s , u a , s ] are the subgroup intervals of either method. For real-valued rewards, see Appendix § 9 .§ 7 .
Fewer Rounds
Figures 13–15 repeat Figure 1 after T = 2,500 T = 2{,}500 T = 2 , 500 , 5,000 5{,}000 5 , 000 and 10,000 10{,}000 10 , 000 rounds, the first rounds of the same runs. At these horizons ε \varepsilon ε -Greedy has the lowest regret at most values of λ \lambda λ on Twitter, Adult and Toxicity and at some values on Bios and ACSIncome, while TS has the lowest regret at nearly all values on Bank and Credit. The regret per example of TS keeps decreasing with T T T (Appendix § 9 .1), and after T = 50 k T = 50k T = 50 k rounds TS has the lowest regret at every λ \lambda λ on four datasets and at all but one on Credit (Table 3 ).
Figure 13. Trade-off between accuracy and fairness regret after T = 2,500 T = 2{,}500 T = 2 , 500 rounds, as in Figure 1 .
Figure 14. Trade-off between accuracy and fairness regret after T = 5,000 T = 5{,}000 T = 5 , 000 rounds, as in Figure 1 .
Figure 15. Trade-off between accuracy and fairness regret after T = 10,000 T = 10{,}000 T = 10 , 000 rounds, as in Figure 1 .
Cost
Query costs c a c_a c a are in the units of accuracy (%) and are subtracted from the utility (Eq. (1) ). We use Coupon with λ = 1 \lambda= 1 λ = 1 and five arms: four classifiers that use S S S as a feature, and the Biased arm (Appendix § 9 .1.1). Without costs, RandomForest has the highest utility, just above XGBoost (Table 13 ). A cost of 5 for RandomForest and 1 for every other arm makes XGBoost the best arm by a clear margin.
Table 13. Coupon arms: accuracy, DP gap and utility U a U_a U a at λ = 1 \lambda= 1 λ = 1 (%), without and with costs c a c_a c a . Bold: best arm.
TS follows the change (Figure 16 ). Without costs, it splits its pulls between the two near-tied arms, mostly RandomForest. With costs, it selects XGBoost in 93% of the last 25k rounds. In both settings, TS has significantly lower regret than every baseline (paired Wilcoxon signed-rank test, p < 0.01 p < 0.01 p < 0.01 ).
Figure 16. Share of rounds in which TS selects each arm over rounds 25k–50k, averaged over 10,000 runs.
Delayed Reward
We draw each label delay L t L_t L t from a geometric distribution with mean E [ L t ] ∈ { 10 , 10 2 , 10 3 , 10 4 } \mathbb{E}[L_t] \in\{10, 10^2, 10^3, 10^4\} E [ L t ] ∈ { 10 , 1 0 2 , 1 0 3 , 1 0 4 } ; labels that would arrive after T = 50,000 T = 50{,}000 T = 50 , 000 rounds are never observed. TS follows Algorithm 1, and ϵ \epsilon ϵ -Greedy and Bayes-UCB use the same updates. Random and Round-Robin do not use feedback and are unaffected, and UCB1 is not included. Results are averages over 10,000 runs, as in § 6.3 .
Delays do not change the fairness regret of TS at λ = ∞ \lambda= \infty λ = ∞ , and up to E [ L t ] = 10 3 \mathbb{E}[L_t] = 10^3 E [ L t ] = 1 0 3 they increase its accuracy regret at λ = 0 \lambda= 0 λ = 0 by at most 0.05 points (Figure 17 ). TS has the lowest regret at most values of λ \lambda λ on Twitter, Bank and Credit and at half or more on Adult; on Toxicity, ϵ \epsilon ϵ -Greedy (ϵ = 0 \epsilon= 0 ϵ = 0 ) has lower regret at most values for E [ L t ] ≥ 100 \mathbb{E}[L_t] \ge100 E [ L t ] ≥ 100 , consistent with delayed labels acting as forced exploration for the greedy method.
Figure 17. Trade-off between accuracy and fairness regret after T = 50 k T = 50k T = 50 k rounds with geometric label delays of mean E [ L t ] \mathbb{E}[L_t] E [ L t ] (columns), using Algorithm 1. Round-Robin does not use feedback and is taken from the runs without delay; it is omitted where it is off-scale.
Multi-Class Classification
The accuracy reward is still binary (y ^ = y \hat{y}=y y ^ = y or not), so the accuracy posterior stays Beta-Bernoulli. For fairness, μ a , s \mu_{a,s} μ a , s is the distribution of arm a a a ’s predicted classes in subgroup s s s , with a Dirichlet posterior over the C C C classes. We sample μ ~ a , 0 \tilde{\mu}_{a,0} μ ~ a , 0 and μ ~ a , 1 \tilde{\mu}_{a,1} μ ~ a , 1 and take as the gap their total variation distance, half their L 1 L_1 L 1 distance [56 ] . For C = 2 C=2 C = 2 this is the binary DP gap.
Bios (Figure 1 (f), Appendix § 9 .1.7) has LLMs as arms. For our second multi-class dataset, ACSIncome-5C, we use trained classifiers. We use the ACSIncome data of Appendix § 9 .1.8 with sex as the sensitive attribute and income in five classes, as in Xian et al. [ [56 ] : below $15K, $15K–30K, $30K–48.6K, $48.6K–78K, and at least $78K. The 9 features are those of Appendix § 9 .1.8, with race in place of sex. The 60/40 split is stratified on the class. The stream population has 78,266 instances, 47.0% of them women.
The 18 arms follow Appendix § 9 .1.1, adapted to five classes:
each operating point adds a fixed offset per class to the GBM’s log-probabilities, the same in both subgroups, and predicts the largest;
LR-DPη _\eta η is multinomial logistic regression with the penalty η ∑ k ( p ˉ k , 0 − p ˉ k , 1 ) 2 \eta\sum_k(\bar{p}_{k,0}-\bar{p}_{k,1})^2 η ∑ k ( p ˉ k , 0 − p ˉ k , 1 ) 2 , where p ˉ k , s \bar{p}_{k,s} p ˉ k , s is the mean predicted probability of class k k k in subgroup s s s ;
GBM-BiasedLabels is trained after 40% of the lower-income subgroup’s labels above the lowest class are moved down one class;
Biased predicts the highest class for one subgroup and the lowest for the other with probability 0.7, and a uniformly random class otherwise.
The 35 values of λ \lambda λ are { 0 , 0.0065 , 0.0109 , 0.0184 , 0.0309 , 0.052 , 0.0585 , 0.065 , 0.0715 , 0.0873 , 0.147 , 0.247 , 0.415 , 0.469 , 0.521 , 0.573 , 0.698 , 1.17 , 1.97 , 3.32 , 5.57 , 6.06 , 6.73 , 7.41 , 9.37 , 15.8 , 19 , 21.2 , 23.3 , 26.5 , 44.5 , 74.8 , 126 , 212 , ∞ } \{0, 0.0065, 0.0109, 0.0184, 0.0309, 0.052, 0.0585, 0.065, 0.0715, 0.0873, 0.147, 0.247, 0.415, 0.469, 0.521, 0.573, 0.698, 1.17, 1.97, 3.32, 5.57, 6.06, 6.73, 7.41, 9.37, 15.8, 19, 21.2, 23.3, 26.5, 44.5, 74.8, 126, 212, \infty\} { 0 , 0.0065 , 0.0109 , 0.0184 , 0.0309 , 0.052 , 0.0585 , 0.065 , 0.0715 , 0.0873 , 0.147 , 0.247 , 0.415 , 0.469 , 0.521 , 0.573 , 0.698 , 1.17 , 1.97 , 3.32 , 5.57 , 6.06 , 6.73 , 7.41 , 9.37 , 15.8 , 19 , 21.2 , 23.3 , 26.5 , 44.5 , 74.8 , 126 , 212 , ∞ } .
After T = 50 k T=50\mathrm{k} T = 50 k rounds, TS has significantly lower regret than every baseline at all 35 values of λ \lambda λ (paired Wilcoxon signed-rank test, p < 0.01 p<0.01 p < 0.01 ). At λ = ∞ \lambda=\infty λ = ∞ its fairness regret is 0.35%, against 1.55% for the next best method, ϵ \epsilon ϵ -Greedy (ϵ = 0.1 \epsilon=0.1 ϵ = 0.1 ). ϵ \epsilon ϵ -Greedy has lower regret at some values of λ \lambda λ only in the first 10,000 rounds (Figure 18 (a)–(Figure 18 c)).
Figure 18. ACSIncome-5C: regret per example (%) against the round t t t at three values of λ \lambda λ (a)–(c), and after T = 50 k T=50\mathrm{k} T = 50 k rounds against λ \lambda λ (d), as in Appendix § 9 .1.
Table 14. The 18 arms of ACSIncome-5C: accuracy and TV gap (%) on the stream population. {sup}*: optimal for some λ \lambda λ .
Figure 19. Trade-off between accuracy and fairness regret on ACSIncome-5C after T = 50 k T = 50k T = 50 k rounds, as in Figure 1 .
Real-Valued Reward
Setup We use Adult with the same sensitive attribute as in the main experiments. Each arm outputs a risk score p p p rounded to the grid { 0 , 0.05 , … , 1 } \{0, 0.05, \ldots, 1\} { 0 , 0.05 , … , 1 } (K = 20 K = 20 K = 20 ), so scores and rewards each take 21 values. The reward is 1 − ( Y − p ) 2 1 - (Y - p)^2 1 − ( Y − p ) 2 , one minus the Brier score, and the fairness gap is the DP gap of the mean scores (§ 4 ). The 17 arms are the 11 classifiers of the main Adult arm set that output probabilities, and 6 arms that shrink the gradient boosted trees’ score toward its mean by increasing amounts, ending with a constant predictor (zero gap). TS and ϵ \epsilon ϵ -Greedy use the grid Dirichlet posteriors of § 4 , with one pseudo-count at 0 and one at 1, rather than continuous non-parametric TS. UCB1 adds Hoeffding radii to the empirical means of the rewards and scores, and Bayes-UCB uses quantiles of the same Dirichlet posteriors, computed with a saddlepoint approximation. As in the main experiments, results are averaged over 10,000 runs of T = 50,000 T = 50{,}000 T = 50 , 000 rounds, with 29 values of λ \lambda λ and no costs or delays.
Results TS has the lowest regret at both ends of the trade-off (Figure 20 ); at λ = ∞ \lambda= \infty λ = ∞ its fairness regret is 0.39%, against 1.32% for the next best method, ϵ \epsilon ϵ -Greedy (ϵ = 0.1 \epsilon= 0.1 ϵ = 0.1 ). At every value of λ \lambda λ , TS has significantly lower regret than UCB1, Bayes-UCB, ϵ \epsilon ϵ -Greedy (ϵ = 0 \epsilon= 0 ϵ = 0 ) and Round-Robin. ϵ \epsilon ϵ -Greedy (ϵ = 0.1 \epsilon= 0.1 ϵ = 0.1 ) has lower regret than TS only for large λ \lambda λ near the value at which the optimal arm changes from a DP-penalized logistic regression to the constant predictor; there the two arms have nearly equal utility, so separating them requires many samples. UCB1 and Bayes-UCB stay far from the frontier at large λ \lambda λ , because their lower bound on the gap remains zero until the subgroup confidence intervals separate.
Figure 20. Trade-off between Brier-score regret (x-axis) and fairness regret (y-axis) on Adult with risk-score arms after T = 50 k T = 50\text{k} T = 50 k rounds, as average regret per example (%) over 10,000 runs. Each point on a curve is one value of λ \lambda λ . Grey crosses are the individual arms and the dotted line is the oracle frontier.
π min \pi_{\min} π m i n Simulations
The regret bounds of Theorem 1 grow with 1 / π min 1/\pi_{\min} 1/ π m i n . To test this dependence, each round draws an instance of the smaller subgroup with probability π min \pi_{\min} π m i n and of the larger subgroup otherwise, uniformly from the stream population. We use 1 / π min ∈ { 2 , 5 , 10 , 20 , 30 , 50 , 100 } 1/\pi_{\min} \in\{2, 5, 10, 20, 30, 50, 100\} 1/ π m i n ∈ { 2 , 5 , 10 , 20 , 30 , 50 , 100 } and λ = 2 \lambda= 2 λ = 2 , and compare TS with Bayes-UCB and ϵ \epsilon ϵ -Greedy (ϵ = 0 \epsilon= 0 ϵ = 0 and 0.1 0.1 0.1 ) over 10,000 runs of T = 50 k T = 50\text{k} T = 50 k rounds. On real data, reweighting the subgroups also changes the arms’ utilities. We therefore add a synthetic instance with four arms whose accuracy is the same in both subgroups, so their utilities do not depend on π min \pi_{\min} π m i n .
The regret of TS increases with 1 / π min 1/\pi_{\min} 1/ π m i n , consistent with Theorem 1, except for a small dip at 1 / π min = 5 1/\pi_{\min} = 5 1/ π m i n = 5 on Twitter and Credit (Figure 21 ). TS has significantly lower regret than all three baselines in 37 of the 56 settings. The exception is ϵ \epsilon ϵ -Greedy (ϵ = 0.1 \epsilon= 0.1 ϵ = 0.1 ) at small π min \pi_{\min} π m i n on Twitter, Adult and COMPAS. There, few instances of the smaller subgroup arrive in T = 50 k T = 50\text{k} T = 50 k rounds, and no method has converged.
Figure 21. Regret per example after T = 50 k T = 50\text{k} T = 50 k rounds (λ = 2 \lambda= 2 λ = 2 ) against 1 / π min 1/\pi_{\min} 1/ π m i n , averaged over 10,000 runs. (a)–(g) Datasets of Appendix B.1; (h) synthetic instance.
Fewer Arms
To test whether the comparison depends on the choice of arms, we draw 30 random subsets of 3 and 30 of 5 of the 18 tabular arms (Appendix B.1.1) and run each on Bank, Adult and Credit (400 runs, T = 50,000 T = 50{,}000 T = 50 , 000 ). The number of subsets that contain a biased arm (GBM-BiasedLabels or Biased) is fixed at its expected value. TS is compared with Bayes-UCB and both ϵ \epsilon ϵ -Greedy variants.
Figure 22 shows, for each subset, the percentage of λ \lambda λ values at which TS has the lowest regret. For the median subset, TS has the lowest regret at most values of λ \lambda λ on Bank and Adult, and at fewer than half on Credit. The share is highest when the subset contains a biased arm. ϵ \epsilon ϵ -Greedy (0.1) pulls a random arm in 10% of the rounds, so it keeps paying for the poor arm, while TS stops pulling it early. Without a biased arm, ϵ \epsilon ϵ -Greedy (0.1) or Bayes-UCB often has lower regret: forced exploration costs little when all arms are close to optimal, and TS needs many pulls to separate arms whose accuracies and DP gaps nearly tie.
Figure 22. Percentage of λ \lambda λ values at which TS has a lower mean regret than Bayes-UCB, ϵ \epsilon ϵ -Greedy (0) and ϵ \epsilon ϵ -Greedy (0.1), for 30 random subsets of 3 and of 5 arms (one point per subset; 400 runs, T = 50,000 T = 50{,}000 T = 50 , 000 ). Filled points: the subset contains a biased arm. Bars: medians.
Figure 23 shows this hard case for three arms that are all vertices of the oracle frontier: GBM, GBM-OP4 and GBM-OP6 (10,000 runs; λ \lambda λ grid from the breakpoints of these arms). All learners stay close to the frontier. TS has the lowest regret at λ = 0 \lambda= 0 λ = 0 on all three datasets, but over all values of λ \lambda λ it is lowest at only 14% of them on Bank and 21% on Credit (72% on Adult), less often than for most random 3-arm subsets.
Figure 23. Trade-off between accuracy and fairness regret after T = 50,000 T = 50{,}000 T = 50 , 000 rounds with three frontier arms (GBM, GBM-OP4, GBM-OP6), as in Figure 1 . Means over 10,000 runs.