Manuscript Offprint
arXiv:2610.20514Bayesian Learning to Select Fair Classifiers
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Evaluations of classifiers (AI or human or agents) often assume a batch setting in which every agent produces labels on every example in a test set, which can be expensive or impractical in many contexts. This motivates online policies that adaptively select agents to query as examples arrive and update policies as outcomes are observed. We study the problem of selecting, in an online stream, the agent that best balances (i) predictive performance and (ii) subgroup fairness of a sensitive attribute, and that allows for delayed observations of true class labels. We formulate this as a Bayesian multi-armed bandit problem using Thompson Sampling, explicitly balancing accuracy and fairness. We conduct empirical evaluations on real-world datasets spanning problems involving tabular classifiers, large language models, and human labelers, demonstrating substantial reductions in regret relative to baselines. Our theoretical contributions include guarantees on the performance of the selected agent that incorporate both the accuracy and fairness aspects of the problem.
1 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.
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., Pessach and Shmueli [2022]). 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 [McNair, 2018, Ji et al., 2021, Miller et al., 2021, Barrainkua et al., 2024, Herlihy et al., 2024, Yin et al., 2026]. In the sequential online setting, Chugg et al. [2023] 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. [2023] 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. [2022] 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 [Joseph et al., 2016], 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 [Liu et al., 2017], with cumulative merit accounting and exposure fairness extensions [Wang et al., 2021]; unknown-metric individual fairness learned from weak regulator feedback in linear contextual bandits [Gillen et al., 2018]; and minimum pull-rate guarantees that ensure per-arm exposure for MABs [Chen et al., 2020, Patil et al., 2021]. 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. [2022], 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 [Jabbari et al., 2017, Wen et al., 2021, Puranik et al., 2022, Yin et al., 2023], 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.
3 Problem Statement
Let be an index set of agents. Given an input each agent can produce a prediction of a class label, . Let be the fixed deterministic query cost incurred to obtain a prediction label from agent . At each round, , a triplet is drawn IID from an unknown probability distribution over where is the feature space, is the set of sensitive attributes, and is the set of possible outcomes. For now, we focus on two subgroups and binary classification, i.e., and —we show that the methods and theory we develop can be extended straightforwardly to more than two subgroups and to multi-class problems using appropriate definitions of fairness [Shui et al., 2022, Xian et al., 2023]. We note that the sensitive attributes are distributed as and where and . We assume that this does not change over .
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 , the policy learner observes both the classification features and the sensitive attribute value . The learner must choose an arm from the set of available arms at time , , informed by the history of past actions and outcomes. The prediction for the selected arm is then observed with querying cost . Although features are observed, the learner's selection policy is non-contextual.
The true label is revealed at time where 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 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 [Wu and Wager, 2022].
The accuracy of each arm a (measured marginally over ) is
The highest accuracy (over all arms/agents) is .
Fairness metrics can be expressed as functions of subgroup and label-specific conditional probabilities . The resulting fairness gap (usually a difference or ratio) is a function of these conditional probabilities. Let the fairest arm be and denote .
As an example, for demographic-parity (DP) gap, we may define the subgroup-positive rate for each arm and subgroup . The resulting DP gap of arm is .
Given the framework above, the utility per agent trades off accuracy, fairness, and cost and is defined as
Here, 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 indicating greater weight on fairness over accuracy. In the context of algorithmic fairness, the weight 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 [Kamishima et al., 2011, Menon and Williamson, 2018]. The querying cost is assumed to be expressed in the same units as accuracy , 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 , i.e., the utility of the optimal arm . The goal of the learner is to select such that the selected arm's utility is as close as possible to the optimum up to time . This performance measure is formalized as the cumulative regret of the learner - a quantity that the learner aims to minimize.
This decomposes linearly into accuracy, fairness, and cost-regret terms:
For clarity, we note that the accuracy term in this decomposition is formulated as the performance deficit relative to the optimal arm (i.e. ). 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 and respectively.
4 Technical Approach: Bayesian Bandits
Algorithm 1 Thompson Sampling for Online Selection
Require: Arms A, horizon T, trade-off , per-arm costs , priors for , for .
1: for do 2: for all do 3: Draw , . 4: Draw . 5: 6: . 7: Select (ties arbitrary). 8: Observe ; set 9: Update fairness posterior: , . 10: for all whose label arrives at round do 11: Set . 12: Update accuracy posterior: , .
For DP gap, we maintain subgroup positive-rate. and follow.
Formulating online selection as an MAB problem allows us to use any standard MAB algorithm, including but not limited to UCB-style optimistic methods [Auer et al., 2002], ( -)greedy heuristics [Sutton et al., 1998], and Thompson Sampling [Russo et al., 2018, Russo and Van Roy, 2014]. 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. 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 Section 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 for that include the true label . Both and change accordingly, and the fairness update waits for .
Multi-class classification ( ) and Multi-subgroup sensitive attribute ( ) 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 Dirichlet posteriors (under a Dirichlet-Multinomial model), parameterizing the probability vector over the C classes for each subgroup. We sample probability vectors for all subgroups and use the maximum/average pairwise distance computed on these samples to capture disparity [Xian et al., 2023, Barocas et al., 2023, Agarwal et al., 2018].
Real-valued reward The framework extends to bounded real-valued rewards, such as the Brier score of a probabilistic classifier or LLM evaluation scores [Liang et al., 2023]. Suppose arm outputs a score instead of a label. With reward , is one minus the arm's Brier score, and the fairness gap is the DP gap of the subgroup mean scores . For 0/1 scores these reduce to accuracy and the DP gap. If the scores are rounded to a grid , 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) for binary data. TS samples Dirichlet weights and uses the weighted mean of the values as or . Up to the prior, this is non-parametric TS [Riou and Honda, 2020] with tied observations grouped.
5 Theoretical Results
We investigate the regret bounds of our Thompson sampling algorithm (Algorithm 1). Let be the utility gap and . 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 Section 4, with no delays and arbitrary (deterministic) querying costs, for a universal constant C > 0, we have the gap-dependent regret:
(3)
Moreover, the gap-free bound is
(4)
When , 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 .
Without fairness, Thompson sampling has the bound [Agrawal and Goyal, 2017]. Our bounds add two terms to this accuracy cost: the fairness-estimation cost and the optimal-arm anti-concentration cost. The 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. The 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 and does not grow with N.
Here we provide a sketch of the proof: full proof in Appendix A. We follow the regret bound analysis of Agrawal and Goyal [2017] 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 with probability . Thus, the first n observations of any arm contain about observations from group s, and the smallest group contributes about . 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 [2017] 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 , 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 such that , and let . Then, the gap-free regret bound becomes:
where summarizes optimal-arm anti-concentration caused by pessimistic utility draws under delayed feedback. Its formal definition is given in Appendix A.3.
As accuracy updates require the true labels, their estimation cost is inflated by . Demographic parity feedback is available immediately, so the fairness estimation term scales as without an additional delay factor. The quantile argument also produces the additive contribution . The remaining term, , 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 A.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, , 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 and recovers its regret rate.
6 Experiments
6.1 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 B.1). The first dataset is Bank Marketing (Bank) [Moro et al., 2014], 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, 1996], the goal is to predict whether a person's income exceeds
| Dataset | Type of Arms (N) | Sensitive Attribute (M) | ||
|---|---|---|---|---|
| Bank | ML classifiers (18) | 2 | Marital Status (2) | 0.396 |
| Adult | ML classifiers (18) | 2 | Race (2) | 0.146 |
| Credit | ML classifiers (18) | 2 | Sex (2) | 0.392 |
| ACSIncome | ML classifiers (18) | 2 | Race (5) | 0.036 |
| Toxicity | LLMs (56) | 2 | Race (2) | 0.500 |
| Bios | LLMs (16) | 28 | Gender (2) | 0.461 |
| Human Experts (10) | 2 | Dialect (2) | 0.494 |
Table 1: Datasets: arms, classes and subgroups
M > 2$) we use the updated (ACSIncome) [Ding et al., 2021], 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 [Wang et al., 2017] and COMPAS [Larson et al., 2016] are included in Appendix B.1.
For LLMs as Arms we use the CivilComments Toxicity detection dataset (Toxicity) [Borkan et al., 2019]. 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 [Liang et al., 2023]. Race is the sensitive attribute. We include a Multi-class Classification () setup with LLMs, using the Bias in Bios (Bios) dataset [De-Arteaga et al., 2019], 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) [Keswani et al., 2021] with Tweets annotated using Mechanical Turk for whether they contain hate-speech or not [Davidson et al., 2017] The sensitive attribute is whether the post contains African-American English [Blodgett et al., 2017]. 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 of the examples.
6.2 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.
-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) for , and for accuracy (Algorithm 1, Step 4) for . At each round, with probability the arm with the largest mean is selected, and (to encourage exploration) with probability an arm is selected uniformly at random.
We compare against UCB1 where the learner selects the arm with the largest optimistic utility [Auer et al., 2002] and Bayes-UCB [Kaufmann et al., 2012], where, under the same Bayesian setup as TS, posterior samples are replaced with posterior quantiles at level . Additional implementation details in Appendix B.2.
6.3 Methodology
We average results over 10,000 runs. Each run is a stream of instances sampled with replacement from the test dataset (results with fewer rounds are in Appendix B.3), and all algorithms and values of see the same stream. We report the mean regret per example, in %, 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, ..., 1). For the experiments, the fairness gap is defined as the demographic parity gap (for Bios, half the distance between the subgroups' class distributions; for ACSIncome, the largest gap between any two subgroups) and traded off with the utility score (Equation 1). represents accuracy-only selection () and fairness-only selection (). We use 29–38 values of 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 is zero. Results with non-zero costs and with delays are in Appendices B.4 and B.5.
6.4 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) (where regret only depends on model accuracy) and (b) (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.
| Algorithm | Bank | Adult | Credit | Toxicity | Bios | ACSIncome | |
|---|---|---|---|---|---|---|---|
| (a) Accuracy () | |||||||
| Round-Robin | 4.141 | 3.494 | 3.521 | 3.155 | 16.73 | 17.80 | 7.115 |
| UCB1 | 1.924 | 0.819 | 1.544 | 0.975 | 4.930 | 3.344 | 2.476 |
| Bayes-UCB | 0.864 | 0.563 | 0.679 | 0.615 | 2.229 | 0.669 | 0.845 |
| -Greedy (0) | 1.200 | 0.836 | 2.505 | 1.109 | 4.151 | 8.327 | 5.255 |
| -Greedy (0.1) | 0.915 | 0.634 | 0.552 | 0.530 | 2.406 | 2.236 | 1.001 |
| TS | 0.770 | 0.507 | 0.548 | 0.532 | 1.948 | 0.523 | 0.676 |
| (b) Fairness () | |||||||
| Round-Robin | 3.706 | 5.612 | 9.266 | 4.956 | 12.89 | 10.44 | 21.37 |
| UCB1 | 3.739 | 2.344 | 6.472 | 1.612 | 11.80 | 10.44 | 15.12 |
| Bayes-UCB | 2.619 | 1.627 | 5.181 | 0.764 | 6.902 | 7.820 | 3.136 |
| -Greedy (0) | 2.010 | 1.624 | 5.335 | 0.815 | 1.874 | 2.860 | 8.378 |
| -Greedy (0.1) | 1.715 | 1.123 | 2.435 | 0.653 | 1.453 | 2.039 | 5.151 |
| TS | 1.367 | 1.023 | 2.416 | 0.179 | 0.548 | 2.109 | 1.495 |
Table 2: Regret per example (%) after rounds for each algorithm (rows) and dataset (columns), for (a) accuracy () and (b) fairness (), averaged over 10,000 runs (the endpoints of the curves in Figure 1). Minimum regret bolded.
Figure 1 shows the trade-off for values between these two endpoints, indicating the cumulative accuracy regret (x-axis) and cumulative fairness regret (y-axis) for that value as a percentage of total rounds, averaged over 10,000 runs each of rounds. The endpoints of each curve are the values in Table 2. Additional details are provided in Appendix B.1.
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 (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 [Russo et al., 2018]). The UCB methods are far from the frontier at large , 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 -Greedy and UCB methods.
Table 3 extends the comparison of Table 2 to every value of . 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, -Greedy () is lower at large : with 28 classes, the flat Dirichlet prior inflates the sampled gap of a rarely selected arm, so TS can under-explore the fairest LLM.
We report further experiments with real-valued rewards (Appendix B.7), multi-class classification on a second dataset (Appendix B.6), fewer rounds (Appendix B.3), fewer arms (Appendix B.9), delayed feedback (Appendix B.5), query costs (Appendix B.4) and smaller values of (Appendix B.8). TS is consistently the best-performing method across scenarios, with the lowest regret at most values of . The main exceptions are short horizons () and long delays.
(a) Twitter

(b) Bank
(c) Adult
(d) Credit
(e) Toxicity

(f) Bias in Bios
(g) ACSIncome
Thompson Sampling
Bayes-UCB
UCB1
-Greedy ()
-Greedy ()
Round-Robin
Individual arms
Oracle frontier
Accuracy regret per example (%)
Figure 1: Trade-off between accuracy regret (x-axis) and fairness regret (y-axis) after rounds, as average regret per example (%) over 10,000 runs. Each point on a curve is one value of , from (all weight on accuracy) to (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 and is omitted from (b), (d) and (e), where it is off-scale.
| Algorithm | Bank | Adult | Credit | Toxicity | Bios | ACSIncome | |
|---|---|---|---|---|---|---|---|
| Round-Robin | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| UCB1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Bayes-UCB | 0 | 0 | 0 | 0 | 0 | 0 | 18 |
| ε-Greedy (0) | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| ε-Greedy (0.1) | 0 | 0 | 0 | 3 | 0 | 38 | 0 |
| TS | 100 | 100 | 100 | 97 | 100 | 62 | 82 |
Table 3: % of values at which each algorithm has the lowest average cumulative regret after rounds.
7 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 [Chapelle and Li, 2011], where the selected arm is dependent on the instance , e.g., modeling the expected reward via GLMs conditioned on features 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 ), 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.
References
A. Agarwal, A. Beygelzimer, M. Dudík, J. Langford, and H. Wallach. A reductions approach to fair classification. In International conference on machine learning, pages 60–69. PMLR, 2018.
S. Agrawal and N. Goyal. Near-optimal regret bounds for Thompson sampling. Journal of the ACM (JACM), 64(5):1–24, 2017.
P. Auer, N. Cesa-Bianchi, and P. Fischer. Finite-time analysis of the multiarmed bandit problem. Machine Learning, 47(2):235–256, 2002.
S. Barocas, M. Hardt, and A. Narayanan. Fairness and machine learning: Limitations and opportunities. MIT press, 2023.
A. Barrainkua, P. Gordaliza, J. A. Lozano, and N. Quadrianto. Uncertainty matters: stable conclusions under unstable assessment of fairness results. In International Conference on Artificial Intelligence and Statistics, pages 1198–1206. PMLR, 2024.
B. Becker and R. Kohavi. Adult. UCI Machine Learning Repository, 1996. DOI: https://doi.org/10.24432/C5XW20.
C. M. Bishop. Pattern recognition and machine learning, volume 4. Springer, 2006.
S. L. Blodgett, J. Wei, and B. O'Connor. A dataset and classifier for recognizing social media english. In Proceedings of the 3rd Workshop on Noisy User-generated Text, pages 56–61, 2017.
D. Borkan, L. Dixon, J. Sorensen, N. Thain, and L. Vasserman. Nuanced metrics for measuring unintended bias with real data for text classification. In Companion Proceedings of the 2019 World Wide Web Conference, 2019.
O. Chapelle and L. Li. An empirical evaluation of Thompson sampling. Advances in Neural Information Processing Systems, 24, 2011.
Y. Chen, A. Cuellar, H. Luo, J. Modi, H. Nemlekar, and S. Nikolaidis. Fair contextual multi-armed bandits: Theory and experiments. In Conference on Uncertainty in Artificial Intelligence, pages 181–190. PMLR, 2020.
B. Chugg, S. Cortes-Gomez, B. Wilder, and A. Ramdas. Auditing fairness by betting. Advances in Neural Information Processing Systems, 36:6070–6091, 2023.
X. Dai, J. Li, X. Liu, A. Yu, and J. Lui. Cost-effective online multi-LLM selection with versatile reward models. arXiv preprint arXiv:2405.16587, 2024.
T. Davidson, D. Warmsley, M. Macy, and I. Weber. Automated hate speech detection and the problem of offensive language. In Proceedings of the International AAAI Conference on Web and Social Media (ICWSM), volume 11, pages 512–515, 2017.
M. De-Arteaga, A. Romanov, H. Wallach, J. Chayes, C. Borgs, A. Chouldechova, S. Geyik, K. Kenthapadi, and A. T. Kalai. Bias in bios: A case study of semantic representation bias in a high-stakes setting. In proceedings of the Conference on Fairness, Accountability, and Transparency, pages 120–128, 2019.
F. Ding, M. Hardt, J. Miller, and L. Schmidt. Retiring adult: New datasets for fair machine learning. Advances in neural information processing systems, 34:6478–6490, 2021.
S. Gillen, C. Jung, M. Kearns, and A. Roth. Online learning with an unknown fairness metric. Advances in Neural Information Processing Systems, 31, 2018.
C. Herlihy, K. Truong, A. Chouldechova, and M. Dudík. A structured regression approach for evaluating model performance across intersectional subgroups. In The 2024 ACM Conference on Fairness, Accountability, and Transparency, pages 313–325, 2024.
X. Hu, H.-f. Leung, and F. Farnia. An online learning approach to prompt-based selection of generative models and LLMs. In Forty-second International Conference on Machine Learning, 2025.
W. Huang, K. Labille, X. Wu, D. Lee, and N. Heffernan. Achieving user-side fairness in contextual bandits. Human-Centric Intelligent Systems, 2(3):81–94, 2022.
S. Jabbari, M. Joseph, M. Kearns, J. Morgenstern, and A. Roth. Fairness in reinforcement learning. In International Conference on Machine Learning, pages 1617–1626. PMLR, 2017.
D. Ji, R. L. Logan, P. Smyth, and M. Steyvers. Active Bayesian assessment of black-box classifiers. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 7935–7944, 2021.
M. Joseph, M. Kearns, J. H. Morgenstern, and A. Roth. Fairness in learning: Classic and contextual bandits. Advances in Neural Information Processing Systems, 29, 2016.
F. Kamiran and T. Calders. Data preprocessing techniques for classification without discrimination. Knowledge and information systems, 33(1):1–33, 2012.
T. Kamishima, S. Akaho, and J. Sakuma. Fairness-aware learning through regularization approach. In 2011 IEEE 11th international conference on data mining workshops, pages 643–650. IEEE, 2011.
M. R. Karimi, N. M. Gürel, B. Karlaš, J. Rausch, C. Zhang, and A. Krause. Online active model selection for pre-trained classifiers. In International Conference on Artificial Intelligence and Statistics, pages 307–315. PMLR, 2021.
E. Kaufmann, O. Cappé, and A. Garivier. On bayesian upper confidence bounds for bandit problems. In Artificial intelligence and statistics, pages 592–600. PMLR, 2012.
J. Kay, G. Van Horn, S. Maji, D. Sheldon, and S. Beery. Consensus-driven active model selection. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 4594–4604. IEEE, 2025.
V. Keswani, M. Lease, and K. Kenthapadi. Towards unbiased and accurate deferral to multiple experts. In Proceedings of the 2021 AAAI/ACM Conference on AI, Ethics, and Society, pages 154–165, 2021.
J. Larson, J. Angwin, L. Kirchner, and S. Mattu. How we analyzed the compas recidivism algorithm, May 2016. URL https://www.propublica.org/article/how-we-analyzed-the-compas-recidivism-algorithm.
P. Liang, R. Bommasani, T. Lee, D. Tsipras, D. Soylu, M. Yasunaga, Y. Zhang, D. Narayanan, Y. Wu, A. Kumar, B. Newman, B. Yuan, B. Yan, C. Zhang, C. A. Cosgrove, C. D. Manning, C. Re, D. Acosta-Navas, D. A. Hudson, E. Zelikman, E. Durmus, F. Ladhak, F. Rong, H. Ren, H. Yao, J. WANG, K. Santhanam, L. Orr, L. Zheng, M. Yuksekgonul, M. Suzgun, N. Kim, N. Guha, N. S. Chatterji, O. Khattab, P. Henderson, Q. Huang, R. A. Chi, S. M. Xie, S. Santurkar, S. Ganguli, T. Hashimoto, T. Icard, T. Zhang, V. Chaudhary, W. Wang, X. Li, Y. Mai, Y. Zhang, and Y. Koreeda. Holistic evaluation of language models. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/forum?id=i04LZibEqW. Featured Certification, Expert Certification.
X. Liu, F. Xia, R. Stevens, and Y. Chen. Contextual active model selection. Advances in Neural Information Processing Systems, 37:49914–49956, 2024.
Y. Liu, G. Radanovic, C. Dimitrakakis, D. Mandal, and D. C. Parkes. Calibrated fairness in bandits. arXiv preprint arXiv:1707.01875, 2017.
P. Maneriker, C. Burley, and S. Parthasarathy. Online fairness auditing through iterative refinement. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 1665–1676, 2023.
D. S. McNair. Preventing disparities: Bayesian and frequentist methods for assessing fairness in machine learning decision-support models. New Insights into Bayesian Inference, 71, 2018.
A. K. Menon and R. C. Williamson. The cost of fairness in binary classification. In Proceedings of the Conference on Fairness, Accountability and Transparency, pages 107–118. PMLR, 2018.
A. C. Miller, L. A. Gatys, J. Futoma, and E. Fox. Model-based metrics: Sample-efficient estimates of predictive model subpopulation performance. In Machine Learning for Healthcare Conference, pages 308–336. PMLR, 2021.
S. Moro, P. Rita, and P. Cortez. Bank Marketing. UCI Machine Learning Repository, 2014. DOI: https://doi.org/10.24432/C5K306.
K. P. Murphy. Machine learning: a probabilistic perspective. MIT press, 2012.
V. Patil, G. Ghalme, V. Nair, and Y. Narahari. Achieving fairness in the stochastic multi-armed bandit problem. Journal of Machine Learning Research, 22(174):1–31, 2021.
P. Perrault, E. Boursier, M. Valko, and V. Perchet. Statistical efficiency of thompson sampling for combinatorial semi-bandits. Advances in Neural Information Processing Systems, 33:5429–5440, 2020.
D. Pessach and E. Shmueli. A review on fairness in machine learning. ACM Computing Surveys (CSUR), 55(3):1–44, 2022.
B. Puranik, U. Madhow, and R. Pedarsani. A dynamic decision-making framework promoting long-term fairness. In Proceedings of the 2022 AAAI/ACM Conference on AI, Ethics, and Society, pages 547–556, 2022.
C. Riou and J. Honda. Bandit algorithms based on thompson sampling for bounded reward distributions. In Algorithmic Learning Theory, pages 777–826. PMLR, 2020.
D. Russo and B. Van Roy. Learning to optimize via posterior sampling. Mathematics of Operations Research, 39(4): 1221–1243, 2014.
D. J. Russo, B. Van Roy, A. Kazerouni, I. Osband, Z. Wen, et al. A tutorial on Thompson sampling. Foundations and Trends® in Machine Learning, 11(1):1–96, 2018.
C. Schumann, Z. Lang, N. Mattei, and J. P. Dickerson. Group fairness in bandits with biased feedback. In 21st International Conference on Autonomous Agents and Multiagent Systems, AAMAS 2022, 2022.
C. Shui, G. Xu, Q. Chen, J. Li, C. X. Ling, T. Arbel, B. Wang, and C. Gagné. On learning fairness and accuracy on multiple subgroups. Advances in Neural Information Processing Systems, 35:34121–34135, 2022.
R. S. Sutton, A. G. Barto, et al. Reinforcement Learning: An Introduction, volume 1. MIT Press, Cambridge, 1998.
L. Wang, Y. Bai, W. Sun, and T. Joachims. Fairness of exposure in stochastic bandits. In International Conference on Machine Learning, pages 10686–10696. PMLR, 2021.
T. Wang, C. Rudin, F. Doshi-Velez, Y. Liu, E. Klampfl, and P. MacNeille. A Bayesian framework for learning rule sets for interpretable classification. Journal of Machine Learning Research, 18(70):1–37, 2017.
W. Wei, T. Yang, H. Chen, Y. Zhao, F. Dernoncourt, R. A. Rossi, and H. Eldardiry. Learning to route llms from bandit feedback: One policy, many trade-offs. arXiv preprint arXiv:2510.07429, 2025.
M. Wen, O. Bastani, and U. Topcu. Algorithms for fairness in sequential decision making. In International Conference on Artificial Intelligence and Statistics, pages 1144–1152. PMLR, 2021.
H. Wu and S. Wager. Thompson sampling with unrestricted delays. In Proceedings of the 23rd ACM Conference on Economics and Computation, pages 937–955, 2022.
Y. Xia, F. Kong, T. Yu, L. Guo, R. A. Rossi, S. Kim, and S. Li. Which LLM to play? convergence-aware online model selection with time-increasing bandits. In Proceedings of the ACM Web Conference 2024, pages 4059–4070, 2024.
R. Xian, L. Yin, and H. Zhao. Fair and optimal classification via post-processing. In International conference on machine learning, pages 37977–38012. PMLR, 2023.
I.-C. Yeh and C.-h. Lien. The comparisons of data mining techniques for the predictive accuracy of probability of default of credit card clients. Expert Systems with Applications, 36(2):2473–2480, 2009.
T. Yin, R. Raab, M. Liu, and Y. Liu. Long-term fairness with unknown dynamics. Advances in Neural Information Processing Systems, 36:55110–55139, 2023.
Z. Yin, Z. Wang, A. Palikhe, and W. Zhang. Fairness definitions in language models explained. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 16(1):e70063, 2026.
A 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 depends on the underlying Bernoulli means through the accuracy and the fairness gap . 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 [2017]).
A.1 Regret Bound of the Thompson Sampling with No Delays (Theorem 5.1)
We follow the proof structure of Agrawal and Goyal [2017]. 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 [2017]: 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 [2017]; 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 .
We note that, at , the joint anti-concentration step reduces to the scalar argument of Agrawal and Goyal [2017].
We consider 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 be the correctness, the binary prediction, and the subgroup. We define
The costs are known, is finite, and . We choose , set , and let count the selections of arm . We write
Then . All bounds below are for .
For positive fairness weights, we impose the following two population conditions. First, the three true means of the optimal arm lie in with the fixed numerical margin . Second, let be the joint law of , and define
Here is the Bernoulli KL divergence, , , and . A conditional term with zero weight is zero. We assume
Both sides of (7) are exponential rates for observations of the optimal arm with empirical law . The product Beta posterior has density proportional to , so it draws a parameter with utility at least with probability , up to polynomial factors in . A history with empirical law occurs with probability at most . 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 , the condition holds automatically by (13). For , adds the accuracy and subgroup costs separately, whereas is computed from the joint law of correctness and prediction, so (7) is an additional condition on .
Throughout, denotes a universal numerical constant that may change from line to line.
Theorem A.1. Under the conditions above, for every arm with and , Algorithm 1 satisfies
At , the two additional population conditions are not needed. Moreover, we also have:
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 . Both fairness contributions vanish at . 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
implies
The ratio of the anti-concentration term to the accuracy and fairness-estimation terms in (9) is at most , so the anti-concentration term is relatively negligible whenever . This compares contributions to the upper bound only. It does not imply that the absolute anti-concentration term decreases with , or that a fixed suffices as . We also have no lower bound showing that the extra logarithmic factors are necessary.
Lemma 2.9 of Agrawal and Goyal [2017] bounds the expected inverse odds of a scalar Beta optimism event, averaging over a binomial success count. Our exchange argument remains valid, but for the corresponding event is
This event involves accuracy and the absolute difference of two subgroup draws with random observation counts. At , 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, , with the relative-entropy cost of its history, . 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 , the information comparison holds automatically:
The first inequality follows by setting 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 [2017] 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. [2020] 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 [Agrawal and Goyal, 2017, 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 are never selected, and every remaining arm has . For such a suboptimal arm, we set
Let be the utility evaluated at the coordinate posterior means, and let be the sampled utility. We define
Since , the decomposition of Agrawal and Goyal is exact:
(16)
- Exchange inequality and optimal-arm epochs (Lemma 2.8 of A&G). Let be the observed history before round . For a set of suboptimal arms and a common threshold , let . Since the arm draws are conditionally independent,
(17)
To see this, we fix all draws except that of the optimal arm, whose conditional CDF is . Let maximize the other sampled utilities, with maximum value . The event on the left requires , , and . On these draws, its probability divided by the probability of selecting is . Integrating and dropping the restrictions on the right proves the inequality. Ties have probability zero.
Let be the first observations of the optimal arm in the IID observation stream. We define
The probability 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 . 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 . In particular, .
3. 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, with , and the information condition for every with finite divergence. Set
For and ,
At , 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 , the lemma gives .
- 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 observations of arm ,
Each prefix is charged at most once by a selection of the arm. Therefore,
- Posterior error (Lemma 2.12 of A&G). On , we have . Let . At most selections occur before the arm reaches this pull count. For and subgroup counts , conditional Beta concentration gives
Here we allocate the tolerance to accuracy and to each subgroup. Summing this conditional bound over rounds costs at most . The selected prefixes with a deficient subgroup count cost at most . We need the subgroup control only if , in which case . Otherwise, the fairness deviation is at most , and the accuracy concentration alone is enough. Consequently,
- Add the three bounds (final combination of A&G). Substituting the three bounds into (16) proves the sharper estimate
The elementary inequality gives
Expanding proves (8). At , the proof uses only the scalar accuracy bounds.
Gap-free regret: the cutoff of A&G with shared anti-concentration
Fix . As in [Agrawal and Goyal, 2017, Section 2.2], gaps at most contribute at most . We group the arms with larger gaps as
We use the preceding decomposition with the same and the common threshold in group . Since , Steps 4 and 5 contribute at most . By Step 2, the case-I count of the whole group is bounded once by . All selectable arms have , so the anti-concentration lemma applies in every nonempty group. Therefore, the combined case-I regret is at most
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
We bound the sum by N/d, absorb the scalar log T term into , and optimize over d. This gives
Separating the square root and using (27) proves (9). Under either condition in (10), we have , so the anti-concentration term in (9) is at most the sum of the first two terms, which proves (11). Finally, gives the scalar gap-free bound without the additional population conditions.
A.2 Proof of Lemma A.2
Let be the empirical joint law, the subgroup counts, and the empirical means. Set
(32)
Zero-count likelihood terms vanish and . The conditional density is . Information dominance and data processing imply
The first inequality is interpreted as zero at n = 0.
Lemma A.3 (History moments). For and ,
For and , also
Proof. First, for a sum Y of at most four independent binomials with m total trials and , we claim
Remove deterministic trials, translating Y and redefining m. For the remaining groups , exponential tilting gives , and . Thus , , and . The Bernoulli-sum atom bound yields , including the endpoint tilts by continuity. Compare each summand with the unit interval toward , leaving at most two central terms. Monotonicity of I on either side of its minimum and give
The second line uses and . The final inequality follows from , , and at most four groups. The deterministic case is immediate, and restoring removed trials only enlarges the bound.
Write for the counts, for total correctness, and . The KL chain rule and information projection give
(37)
Restrict to the support of and use limiting tilts at boundaries. Conditional on , correctness is a sum of four independent binomials. Apply (36) and pair this moment with using
Conditional on , apply the same argument to the two independent prediction counts, pairing with . The subgroup-count moment contributes a fourth factor, proving (34). At , .
For (35), split at . On the upper event, use (34). On the lower event, and the inverse-count factor is at most , so its contribution is bounded by
Lemma A.4 (Conditional posterior anti-concentration). Under the population conditions, for ,
The minimum is one at .
Proof. For any , let and . Pinsker and the split give . On the complementary subgroup event use and error at most one. Let denote the cost with utility threshold . It vanishes if . Otherwise, interpolate an unrelaxed minimizer toward by . Concavity of utility, convexity of KL, and information dominance imply
Take square roots, set , and minimize over the recorded marginals to obtain (38).
For (39), let , put , and take with . Fixed interiority and Taylor's formula give . Hence convexity bounds the likelihood cost at by . Retain and . The image has utility at least , and the retained box fraction is at least . The strip is omitted at . Since the Jacobian is and by Pinsker, the identities
prove (39), including zero counts.
Proof of Lemma A.2. Write , and . The Beta-Binomial identity and Chernoff bounds [Agrawal and Goyal, 2017, Appendix A], together with Agrawal and Goyal [2017, Lemma 2.9], give
(40)
For the first bound allocate to accuracy and, when , 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 , then , proving the claim. Otherwise set and , so .
Posterior means and variances, Pinsker, and (33) yield
Indeed, Chebyshev gives posterior error at most from the empirical mean with probability 15/16 for each positive count. If , use . Otherwise and the error is at most one. The case is immediate. On , conditional independence gives . Splitting at and , and using (40), therefore gives
(41)
On with , and (38) gives after decreasing . Invert (39) with , use on this shell, and apply Lemma A.3. For this gives
Only contribute. Integral comparison bounds the three sums, after removing their prefactors, by
respectively. Using and for the last term yields
For , use , (39) at , and (40). The contribution is at most . For , and (34) give . Finally, sum (43) over dyadic shells up to . Each geometric sum is dominated by its largest scale. Substitute into (41) and use to conclude.
A.3 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 such that , and let . Then, the gap-free regret bound becomes
where 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, , and have exactly the same meanings. We retain
Recall that in that proof averages the truncated inverse optimism odds over the first complete observations of the optimal arm, and its anti-concentration lemma gives
Thus is the additional fairness contribution. The scalar contribution is absorbed into in Theorem 5.1.
We first specify the two changes needed for delayed labels. A label generated at round with integer delay is used at the end of round . Write
(46)
Here is the -quantile of arm 's delay distribution. The accuracy posterior uses labels. The subgroup posterior uses the immediate count , as in Theorem 5.1. In particular, continues to count selections.
For the anti-concentration term, retain the optimism probability from the main proof:
Partition the decision rounds into maximal consecutive epochs during which all three optimal-arm coordinate posteriors remain unchanged, including the subgroup posteriors when . Let be the first round of epoch . Define
and
Here plays the role of in the exchange argument, with the actual delayed posterior histories. Consequently, bounds the total optimal-arm anti-concentration coefficient. Its immediate-feedback counterpart is , rather than alone. We establish this connection explicitly below.
As in Theorem 5.1, arms with are never selected, and every selectable arm satisfies . The cases and follow from zero regret and the trivial bound , respectively. We therefore take . All arm groups below contain selectable arms.
Use exactly the thresholds and events of the main proof:
(50)
The same three-case decomposition gives
The exchange inequality in Step 2 of the main proof applies conditionally on without modification. It is the same conditional-draw argument as Agrawal and Goyal [2017, Lemma 2.8]. For a group and a common threshold , it gives
Within epoch , . 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 . Averaging and summing over the reached epochs gives
In particular, . This is precisely the use of 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
(54)
for every integer . For the first inequality, pre-generate the arm’s IID delays in selection order. The expected index of the mth delay at most is at most . After that selection, all designated labels arrive within rounds. At most 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 . Let be the correctness observed for the case selected at round , and let be the empirical accuracy from arm 's arrived labels. For analysis, expose complete past cases, then the current action and delay, before the fresh case. The mask is predictable. Delay independence and noncontextual selection give
Taking and yields
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 to accuracy and to each subgroup. Choose observation thresholds of orders and , respectively. Omit a coordinate condition when its tolerance is at least one, and omit the subgroup conditions at . Above these thresholds, the empirical and posterior error probabilities at each fixed round are at most . Below them, apply (54). Combining the two cases before charging the insufficient-count events gives
(57)
Threshold ceilings and the summed failure probabilities are absorbed into the leading term, using . Thus only the accuracy contribution 1 in becomes . The fairness contribution remains .
Adding the three cases gives the delayed counterpart of the selection-count bound in Theorem 5.1:
For the gap-free bound, use the same cutoff and groups as in the main proof:
Keep . Since for , (57) applies with the common threshold. Charge gaps at most by and use (53) once per nonempty group. This gives exactly the main proof’s grouped cutoff with its delayed terms:
(60)
Every nonempty group has . The definition of therefore gives
Also,
Optimizing over as in Theorem 5.1 yields
Expanding and separating the square root proves the stated theorem.
Finally, the connection to Theorem 5.1 uses its original and . When labels arrive immediately, take and . Each reached epoch is then the posterior after a prefix of the optimal-arm IID stream. Dropping its reach indicator gives
Substitution into (63) gives
This is the sharper gap-free bound in the main proof. Applying its same inequality
recovers all three displayed terms of Theorem 5.1. In particular, recovers its scalar result. For positive delays, (63) retains as defined in (49). The no-delay anti-concentration lemma is used only in (64).
non-IID
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 [2022] can be applied per-subgroup rather than globally. If delays are correlated with , the bottleneck becomes the subgroup with the worst combination of low prevalence and long delays: intuitively, in Theorem 5.2 would be replaced by , where 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 factor. For other non-IID delays, the impact on the theoretical guarantees depends on the structure of the dependence.
B Additional Details About Experiments
B.1 Dataset Details
For the ML datasets, the arms are trained on 60% of the data (split stratified on ), 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 instances with replacement from the stream population (Section 6.3).
The grid of values depends on the oracle breakpoints, the values of at which the optimal arm changes. With and the smallest and largest breakpoint, the grid contains 0 and , 21 log-spaced values from to , and 0.9b, and 1.1b for every breakpoint .
For each dataset we give the grid, a table of the arms and a figure with four panels. Panels (a)–(c) show the regret per example, , against the round at , at an intermediate and at . The intermediate is the grid value closest to . Panel (d) shows the same quantity after rounds against , with the breakpoints as dotted vertical lines. Dividing by makes the values at and 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.
B.1.1 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). 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 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 uses the most accurate threshold whose DP gap is at most times the GBM's. The thresholds are set on the stream population, so the six arms have evenly spaced gaps.
• Fairness in-processing (S is used only in training). LR-DP, , adds times the squared difference between the subgroups’ mean predicted probabilities to the logistic loss (for , 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 with probability 0.7 and is otherwise a fair coin (for M > 2, it predicts 1 for the subgroup with the highest base rate).
The fairness arms do not use 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.
B.1.2 Twitter
The TwitterAAE dataset [Keswani et al., 2021] includes 1471 Twitter posts (a subset of a larger dataset from Davidson et al. [2017]) 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. [2017], 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 , taking the majority vote as their prediction . 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 are .
Table 4: The 10 arms of Twitter: accuracy, DP gap and share of tweets without a prediction (%). *: optimal for some .
| Arm | Accuracy | DP gap | % Missing |
|---|---|---|---|
| Arm 0 | 75.1 | 6.4 | 39.4 |
| Arm 1 | 79.5 | 5.2 | 37.5 |
| Arm 2* | 81.5 | 6.2 | 45.8 |
| Arm 3* | 76.5 | 1.2 | 45.4 |
| Arm 4* | 83.0 | 12.6 | 39.8 |
| Arm 5 | 80.4 | 11.5 | 34.2 |
| Arm 6 | 75.4 | 4.5 | 41.4 |
| Arm 7 | 74.0 | 5.0 | 39.7 |
| Arm 8 | 77.5 | 4.4 | 38.5 |
| Arm 9 | 76.8 | 3.4 | 46.4 |

Thompson Sampling
Bayes-UCB
UCB1
-Greedy ()
-Greedy ()
Round-Robin
Figure 2: Twitter: regret per example (%) against the round at three values of (a)–(c), and after rounds against (d).
B.1.3 Bank
The Bank Marketing dataset [Moro et al., 2014] 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 and 11.3% have true label . The arms use 19 features.
The 32 values of are .
Table 5: The 18 arms of Bank: accuracy and DP gap (%) on the stream population. *: optimal for some . Arms are described in Appendix B.1.1.
| Arm | Accuracy | DP gap |
|---|---|---|
| GBM* | 91.90 | 2.52 |
| RF | 91.26 | 1.75 |
| LR | 91.10 | 1.77 |
| Tree-d3 | 90.94 | 2.63 |
| GBM+S | 91.74 | 2.24 |
| GBM-OP1 | 91.67 | 2.16 |
| GBM-OP2 | 91.56 | 1.77 |
| GBM-OP3 | 91.44 | 1.43 |
| GBM-OP4 | 90.62 | 1.06 |
| GBM-OP5 | 90.26 | 0.70 |
| GBM-OP6 | 89.31 | 0.33 |
| LR-DP3 | 91.14 | 1.37 |
| LR-DP10 | 91.07 | 0.85 |
| LR-DP30* | 91.01 | 0.33 |
| LR-DP100* | 90.80 | 0.00 |
| GBM-RW* | 91.74 | 1.77 |
| GBM-BiasedLabels | 90.44 | 8.68 |
| Biased | 43.25 | 69.71 |

Thompson Sampling
Bayes-UCB
UCB1
-Greedy ()
-Greedy ()
Round-Robin
Figure 3: Bank: regret per example (%) against the round at three values of (a)–(c), and after rounds against (d).
B.1.4 Adult
The Adult dataset [Becker and Kohavi, 1996] 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) vs. non-white (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.
The 32 values of are .
Table 6: The 18 arms of Adult: accuracy and DP gap (%) on the stream population. *: optimal for some . Arms are described in Appendix B.1.1.
| Arm | Accuracy | DP gap |
|---|---|---|
| GBM | 87.47 | 9.46 |
| RF | 86.54 | 7.45 |
| LR | 85.43 | 9.15 |
| Tree-d3 | 84.62 | 6.23 |
| GBM+S* | 87.49 | 9.92 |
| GBM-OP1* | 87.33 | 8.09 |
| GBM-OP2 | 86.74 | 6.75 |
| GBM-OP3 | 85.72 | 5.40 |
| GBM-OP4 | 84.10 | 4.04 |
| GBM-OP5 | 81.82 | 2.69 |
| GBM-OP6 | 79.50 | 1.34 |
| LR-DP3 | 85.13 | 3.56 |
| LR-DP10 | 84.77 | 1.23 |
| LR-DP30* | 84.49 | 0.35 |
| LR-DP100 | 84.37 | 0.74 |
| GBM-RW* | 87.45 | 8.58 |
| GBM-BiasedLabels | 87.23 | 17.81 |
| Biased | 61.15 | 70.29 |

Thompson Sampling
Bayes-UCB
UCB1
-Greedy ()
-Greedy ()
Round-Robin
Figure 4: Adult: regret per example (%) against the round at three values of (a)–(c), and after rounds against (d).
B.1.5 Credit
The Default of Credit Card Clients dataset [Yeh and Lien, 2009] 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 (female). 22.1% have true label . The arms use 22 features.
The 29 values of are .
Table 7: The 18 arms of Credit: accuracy and DP gap (%) on the stream population. *: optimal for some . Arms are described in Appendix B.1.1.
| Arm | Accuracy | DP gap |
|---|---|---|
| GBM | 81.84 | 0.93 |
| RF | 81.57 | 0.87 |
| LR | 80.90 | 1.03 |
| Tree-d3 | 81.73 | 0.94 |
| GBM+S | 81.88 | 0.72 |
| GBM-OP1* | 81.88 | 0.72 |
| GBM-OP2 | 81.47 | 0.57 |
| GBM-OP3 | 80.82 | 0.52 |
| GBM-OP4 | 79.89 | 0.39 |
| GBM-OP5 | 78.42 | 0.23 |
| GBM-OP6* | 77.94 | 0.08 |
| LR-DP3 | 80.82 | 0.76 |
| LR-DP10 | 80.83 | 0.53 |
| LR-DP30* | 80.61 | 0.26 |
| LR-DP100 | 80.12 | 0.50 |
| GBM-RW | 81.79 | 0.73 |
| GBM-BiasedLabels | 80.08 | 10.45 |
| Biased | 44.50 | 70.42 |

Thompson Sampling
Bayes-UCB
UCB1
-Greedy ()
-Greedy ()
Round-Robin
Figure 5: Credit: regret per example (%) against the round at three values of (a)–(c), and after rounds against (d).
B.1.6 Toxicity
We parse raw runs from Liang et al. [2023] 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 “vn 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.
The 29 values of are .
Table 8: The 56 LLMs of Toxicity: accuracy and DP gap (%). *: optimal for some .
| Arm | Accuracy | DP gap | Arm | Accuracy | DP gap |
|---|---|---|---|---|---|
| together_opt-66b | 29.5 | 0.2 | cohere_command-xlarge-beta | 58.7 | 5.1 |
| cohere_medium-20220720 | 29.7 | 1.0 | ai21_j2-large | 59.7 | 7.4 |
| together_opt-175b | 30.9 | 2.1 | together_redpajama-incite-instruct-7b | 60.7 | 9.3 |
| together_gpt-neox-20b | 31.2 | 1.3 | tiuae_falcon-40b-instruct | 60.9 | 28.7 |
| together_gpt-j-6b | 32.1 | 2.1 | together_bloom | 61.8 | 21.0 |
| openai_davinci | 34.9 | 11.4 | eleutherai_pythia-12b-v0 | 62.9 | 4.3 |
| cohere_large-20220720 | 37.3 | 16.8 | openai_text-davinci-003 | 65.5 | 10.7 |
| cohere_xlarge-20220609 | 38.5 | 3.2 | tiuae_falcon-40b | 65.8 | 27.6 |
| together_redpajama-incite-base-7b | 38.8 | 38.2 | AlephAlpha_luminous-supreme | 66.5 | 17.6 |
| cohere_command-medium-beta | 38.8 | 6.9 | openai_ada | 67.8 | 22.5 |
| ai21_j2-jumbo | 40.1 | 11.2 | ai21_j1-large | 67.8 | 2.5 |
| ai21_j1-jumbo | 41.5 | 9.7 | together_yalm | 68.8 | 4.7 |
| meta_llama-13b | 43.0 | 16.7 | cohere_xlarge-20221108 | 69.2 | 0.3 |
| AlephAlpha_luminous-base | 43.1 | 43.3 | ai21_j1-grande | 69.3 | 6.5 |
| meta_llama-7b | 43.8 | 44.0 | AlephAlpha_luminous-extended | 69.6 | 0.8 |
| lmsys_vicuna-13b-v1.3 | 45.1 | 2.5 | openai_babbage | 69.8 | 0.4 |
| mosaicml_mpt-30b | 45.1 | 20.2 | tiuae_falcon-7b | 70.2 | 3.3 |
| openai_curie | 46.2 | 24.2 | cohere_medium-20221108 | 70.5 | 0.1 |
| eleutherai_pythia-6.9b | 46.5 | 14.2 | openai_text-ada-001* | 70.6 | 0.0 |
| lmsys_vicuna-7b-v1.3 | 47.2 | 27.2 | together_glm* | 70.6 | 0.0 |
| meta_llama-2-13b | 47.9 | 15.5 | cohere_small-20220720* | 70.6 | 0.0 |
| microsoft_TNLGv2_530B | 48.7 | 0.3 | openai_text-babbage-001* | 70.6 | 0.0 |
| meta_llama-2-70b | 51.4 | 1.3 | ai21_j2-grande | 70.8 | 3.8 |
| microsoft_TNLGv2_7B | 51.7 | 53.7 | meta_llama-30b | 71.2 | 4.8 |
| together_redpajama-incite-base-3b-v1 | 53.8 | 76.1 | tiuae_falcon-7b-instruct* | 71.2 | 2.0 |
| meta_llama-65b | 55.5 | 9.5 | ai21_j1-grande-v2-beta | 71.3 | 3.8 |
| anthropic_stanford-online-all-v4-s3 | 56.2 | 10.2 | meta_llama-2-7b | 72.0 | 23.1 |
| together_t5-11b | 58.0 | 39.2 | together_redpajama-incite-instruct-3b-v1* | 72.2 | 9.1 |

Thompson Sampling
Bayes-UCB
UCB1
-Greedy
-Greedy
Round-Robin
Figure 6: Toxicity: regret per example (%) against the round at three values of (a)-(c), and after rounds against (d).
B.1.7 Bios
Bias in Bios [De-Arteaga et al., 2019] 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 are .
Table 9: The 16 arms of Bios: accuracy and TV gap (%) on the stream population. *: optimal for some .
| Arm | Accuracy | TV gap |
|---|---|---|
| SmolLM2-360M | 13.9 | 24.3 |
| SmolLM2-1.7B* | 28.7 | 13.3 |
| Qwen2.5-0.5B | 47.1 | 28.3 |
| Gemma3-1B | 49.9 | 22.3 |
| Qwen2.5-1.5B | 53.0 | 25.7 |
| OLMo2-7B | 56.8 | 28.7 |
| Gemma3-4B | 60.7 | 22.3 |
| Qwen3-4B | 61.9 | 24.7 |
| Qwen2.5-3B | 63.6 | 24.5 |
| Phi4-mini | 65.0 | 22.6 |
| Mistral-7B | 65.2 | 24.7 |
| Qwen3-8B* | 66.8 | 20.7 |
| Gemma2-2B | 66.9 | 27.7 |
| Phi3.5-mini | 67.4 | 21.6 |
| Qwen2.5-7B | 68.1 | 24.6 |
| Gemma2-9B* | 74.6 | 23.5 |

Thompson Sampling
Bayes-UCB
UCB1
-Greedy ()
-Greedy ()
Round-Robin
Figure 7: Bios: regret per example (%) against the round at three values of (a)-(c), and after rounds against (d).
B.1.8 ACSIncome
ACSIncome [Ding et al., 2021] 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 are .
Table 10: The 18 arms of ACSIncome: accuracy and DP gap (%) on the stream population. *: optimal for some . Arms are described in Appendix B.1.1.
| Arm | Accuracy | DP gap (max-min) |
|---|---|---|
| GBM* | 82.22 | 35.33 |
| RF | 79.32 | 33.02 |
| LR | 81.84 | 36.06 |
| Tree-d3 | 74.65 | 31.81 |
| GBM+S | 82.20 | 40.51 |
| GBM-OP1 | 80.50 | 30.29 |
| GBM-OP2 | 77.53 | 25.22 |
| GBM-OP3 | 73.94 | 20.18 |
| GBM-OP4 | 70.28 | 15.14 |
| GBM-OP5 | 66.38 | 10.08 |
| GBM-OP6 | 61.91 | 5.02 |
| LR-DP3* | 76.48 | 8.03 |
| LR-DP10* | 75.08 | 4.64 |
| LR-DP30* | 74.60 | 4.00 |
| LR-DP100* | 74.42 | 3.91 |
| GBM-RW* | 81.65 | 28.97 |
| GBM-BiasedLabels | 80.92 | 52.53 |
| Biased | 58.00 | 70.43 |

Thompson Sampling
Bayes-UCB
UCB1
-Greedy ()
-Greedy ()
Round-Robin
Figure 8: ACSIncome: regret per example (%) against the round at three values of (a)–(c), and after rounds against (d).
B.1.9 Coupon
For the In-Vehicle Coupon Recommendation [Wang et al., 2017] 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 (male). 56.8% have true label . The arms use 23 features.
The 29 values of are .
Table 11: The 18 arms of Coupon: accuracy and DP gap (%) on the stream population. : optimal for some . Arms are described in Appendix B.1.1.
| Arm | Accuracy | DP gap |
|---|---|---|
| GBM | 73.93 | 4.04 |
| RF | 73.51 | 2.47 |
| LR | 68.23 | 3.13 |
| Tree-d3 | 63.84 | 3.98 |
| GBM+S | 74.24 | 5.53 |
| GBM-OP1 | 73.18 | 3.37 |
| GBM-OP2 | 72.23 | 2.86 |
| GBM-OP3 | 69.49 | 2.22 |
| GBM-OP4 | 66.30 | 1.70 |
| GBM-OP5 | 65.10 | 1.08 |
| GBM-OP6* | 58.32 | 0.57 |
| LR-DP3 | 67.95 | 2.11 |
| LR-DP10 | 67.93 | 1.52 |
| LR-DP30 | 67.90 | 1.04 |
| LR-DP100* | 67.88 | 0.92 |
| GBM-RW* | 74.28 | 2.54 |
| GBM-BiasedLabels | 65.92 | 48.86 |
| Biased | 51.46 | 69.60 |

Figure 9: Trade-off between accuracy and fairness regret on Coupon after rounds, as in Figure 1. Round-Robin is off-scale and omitted.

Thompson Sampling
Bayes-UCB
UCB1
-Greedy
-Greedy
Round-Robin
Figure 10: Coupon: regret per example (%) against the round at three values of (a)-(c), and after rounds against (d).
B.1.10 COMPAS
The COMPAS dataset [Larson et al., 2016] 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 and Caucasian 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. of the stream population is Caucasian and has .
The 44 values of are .
Table 12: The 18 arms of COMPAS: accuracy and DP gap (%) on the stream population. *: optimal for some . Arms are described in Appendix B.1.1.
| Arm | Accuracy | DP gap |
|---|---|---|
| GBM | 66.48 | 22.20 |
| RF | 66.34 | 22.92 |
| LR* | 67.05 | 26.20 |
| Tree-d3* | 67.00 | 23.92 |
| GBM+S* | 66.95 | 23.00 |
| GBM-OP1 | 65.10 | 18.88 |
| GBM-OP2* | 64.63 | 15.52 |
| GBM-OP3* | 63.07 | 12.58 |
| GBM-OP4 | 60.75 | 9.47 |
| GBM-OP5* | 58.38 | 6.12 |
| GBM-OP6* | 55.87 | 3.06 |
| LR-DP3* | 66.00 | 19.15 |
| LR-DP10 | 63.49 | 15.04 |
| LR-DP30 | 61.51 | 13.07 |
| LR-DP100 | 57.53 | 6.39 |
| GBM-RW | 65.67 | 19.60 |
| GBM-BiasedLabels | 64.11 | 43.19 |
| Biased | 54.02 | 70.68 |

Figure 11: Trade-off between accuracy and fairness regret on COMPAS after rounds, as in Figure 1.

Figure 12: COMPAS: regret per example (%) against the round at three values of (a)-(c), and after rounds against (d).
B.2 UCB Baselines
Both UCB baselines replace the unknown accuracy with an upper bound and the gap with a lower bound . In round , the learner selects the available arm with the largest optimistic utility
with for . Ties are broken uniformly at random.
UCB1 Let be the number of times arm has been selected, the number of those rounds with , and and the empirical accuracy and subgroup-positive rate. With the Hoeffding radii and [Auer et al., 2002],
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 [Kaufmann et al., 2012]. The accuracy bound is the quantile of . For the gap, the and quantiles of give an interval for each subgroup, and is the smallest gap consistent with both intervals. We use the level , i.e. in the level of Kaufmann et al. [2012]. Their regret bound requires , but gave the best results in their simulations. To save computation, for we round 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 classes, UCB1 uses the radii above for every class rate , and Bayes-UCB uses the quantiles of the Beta marginals of the Dirichlet posterior. The gap bound is half the sum over classes of the smallest difference consistent with the per-class intervals. With subgroups, , where are the subgroup intervals of either method. For real-valued rewards, see Appendix B.7.
B.3 Fewer Rounds
Figures 13–15 repeat Figure 1 after , 5,000 and 10,000 rounds, the first rounds of the same runs. At these horizons -Greedy has the lowest regret at most values of 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 (Appendix B.1), and after rounds TS has the lowest regret at every on four datasets and at all but one on Credit (Table 3).
(a) Twitter

(b) Bank
(e) Toxicity
(c) Adult
(f) Bias in Bios
(d) Credit
(g) ACSIncome
Accuracy regret per example (%)
Thompson Sampling
Bayes-UCB
UCB1
-Greedy ( )
-Greedy ( )
Round-Robin
Individual arms
Oracle frontier
Figure 13: Trade-off between accuracy and fairness regret after T = 2,500 rounds, as in Figure 1.
(a) Twitter

(b) Bank
(e) Toxicity
(c) Adult
(f) Bias in Bios
(d) Credit
(g) ACSIncome
Accuracy regret per example (%)
Thompson Sampling
Bayes-UCB
UCB1
ε-Greedy (ε=0)
ε-Greedy (ε=0.1)
Round-Robin
Individual arms
Oracle frontier
Figure 14: Trade-off between accuracy and fairness regret after T = 5,000 rounds, as in Figure 1.
(a) Twitter
(b) Bank

(c) Adult
(e) Toxicity
(f) Bias in Bios
(d) Credit
(g) ACSIncome
Accuracy regret per example (%)
Thompson Sampling
Bayes-UCB
UCB1
ε-Greedy (ε=0)
ε-Greedy (ε=0.1)
Round-Robin
Individual arms
Oracle frontier
Figure 15: Trade-off between accuracy and fairness regret after T = 10,000 rounds, as in Figure 1.
B.4 Cost
Query costs are in the units of accuracy (%) and are subtracted from the utility (Eq. 1). We use Coupon with and five arms: four classifiers that use as a feature, and the Biased arm (Appendix B.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.
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, ).
Table 13: Coupon arms: accuracy, DP gap and utility at , without and with costs . Bold: best arm.
| Arm | Accuracy | DP gap | With cost | ||
|---|---|---|---|---|---|
| XGBoost | 73.99 | 6.60 | 67.38 | 1 | 66.38 |
| RandomForest | 75.11 | 6.88 | 68.23 | 5 | 63.23 |
| LogisticRegression | 68.13 | 8.38 | 59.75 | 1 | 58.75 |
| DecisionStump | 61.67 | 0.36 | 61.31 | 1 | 60.31 |
| Biased | 50.57 | 69.88 | -19.31 | 1 | -20.31 |

Figure 16: Share of rounds in which TS selects each arm over rounds 25k–50k, averaged over 10,000 runs.
B.5 Delayed Reward
We draw each label delay from a geometric distribution with mean ; labels that would arrive after rounds are never observed. TS follows Algorithm 1, and -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 Section 6.3.
Delays do not change the fairness regret of TS at , and up to they increase its accuracy regret at by at most 0.05 points (Figure 17). TS has the lowest regret at most values of on Twitter, Bank and Credit and at half or more on Adult; on Toxicity, -Greedy ( ) has lower regret at most values for , consistent with delayed labels acting as forced exploration for the greedy method.

Figure 17: Trade-off between accuracy and fairness regret after rounds with geometric label delays of mean (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.
B.6 Multi-Class Classification
The accuracy reward is still binary ( or not), so the accuracy posterior stays Beta-Bernoulli. For fairness, is the distribution of arm 's predicted classes in subgroup , with a Dirichlet posterior over the classes. We sample and and take as the gap their total variation distance, half their distance [Xian et al., 2023]. For this is the binary DP gap.
Bios (Figure 1(f), Appendix B.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 B.1.8 with sex as the sensitive attribute and income in five classes, as in Xian et al. [2023]: below 15K–30K, 48.6K–78K, and at least $78K. The 9 features are those of Appendix B.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 B.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 is multinomial logistic regression with the penalty , where is the mean predicted probability of class in subgroup ;
• 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 are .
After rounds, TS has significantly lower regret than every baseline at all 35 values of (paired Wilcoxon signed-rank test, ). At its fairness regret is 0.35%, against 1.55% for the next best method, -Greedy ( ). -Greedy has lower regret at some values of only in the first 10,000 rounds (Figure 18(a)–(c)).
(a)
(b)

(c)
(d)
Thompson Sampling Bayes-UCB UCB1 -Greedy ( ) -Greedy ( ) Round-Robin
Figure 18: ACSIncome-5C: regret per example (%) against the round at three values of (a)–(c), and after rounds against (d), as in Appendix B.1.
Table 14: The 18 arms of ACSIncome-5C: accuracy and TV gap (%) on the stream population. *: optimal for some .
| Arm | Accuracy | TV gap |
|---|---|---|
| GBM | 53.17 | 9.37 |
| RF | 46.14 | 7.42 |
| LR | 51.75 | 8.85 |
| Tree-d3 | 43.80 | 13.75 |
| GBM+S* | 53.61 | 14.80 |
| GBM-OP1 | 49.13 | 8.00 |
| GBM-OP2 | 41.96 | 6.69 |
| GBM-OP3 | 37.51 | 5.35 |
| GBM-OP4 | 34.22 | 3.93 |
| GBM-OP5 | 31.86 | 2.67 |
| GBM-OP6* | 28.67 | 1.31 |
| LR-DP3 | 51.33 | 6.08 |
| LR-DP10 | 50.53 | 3.78 |
| LR-DP30* | 50.05 | 2.34 |
| LR-DP100* | 49.82 | 2.31 |
| GBM-RW* | 53.20 | 8.39 |
| GBM-BiasedLabels | 50.46 | 31.55 |
| Biased | 24.93 | 70.10 |

Figure 19: Trade-off between accuracy and fairness regret on ACSIncome-5C after rounds, as in Figure 1.
B.7 Real-Valued Reward
Setup We use Adult with the same sensitive attribute as in the main experiments. Each arm outputs a risk score rounded to the grid ( ), so scores and rewards each take 21 values. The reward is , one minus the Brier score, and the fairness gap is the DP gap of the mean scores (Section 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 -Greedy use the grid Dirichlet posteriors of Section 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 rounds, with 29 values of and no costs or delays.

Figure 20: Trade-off between Brier-score regret (x-axis) and fairness regret (y-axis) on Adult with risk-score arms after rounds, as average regret per example (%) over 10,000 runs. Each point on a curve is one value of . Grey crosses are the individual arms and the dotted line is the oracle frontier.
Results TS has the lowest regret at both ends of the trade-off (Figure 20); at its fairness regret is 0.39%, against 1.32% for the next best method, -Greedy ( ). At every value of , TS has significantly lower regret than UCB1, Bayes-UCB, -Greedy ( ) and Round-Robin. -Greedy ( ) has lower regret than TS only for large 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 , because their lower bound on the gap remains zero until the subgroup confidence intervals separate.
B.8 Simulations
The regret bounds of Theorem 1 grow with . To test this dependence, each round draws an instance of the smaller subgroup with probability and of the larger subgroup otherwise, uniformly from the stream population. We use and , and compare TS with Bayes-UCB and -Greedy ( and 0.1) over 10,000 runs of 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 .
The regret of TS increases with , consistent with Theorem 1, except for a small dip at on Twitter and Credit (Figure 21). TS has significantly lower regret than all three baselines in 37 of the 56 settings. The exception is -Greedy ( ) at small on Twitter, Adult and COMPAS. There, few instances of the smaller subgroup arrive in rounds, and no method has converged.
(a) Twitter

(b) Bank
(e) Toxicity
(c) Adult
(f) Coupon
(d) Credit
(g) COMPAS
(h) Synthetic (fixed gaps)
Thompson Sampling
Bayes-UCB
-Greedy ( )
-Greedy ( )
Figure 21: Regret per example after rounds ( ) against , averaged over 10,000 runs. (a)–(g) Datasets of Appendix B.1; (h) synthetic instance.
B.9 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, ). 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 -Greedy variants.
Figure 22 shows, for each subset, the percentage of values at which TS has the lowest regret. For the median subset, TS has the lowest regret at most values of on Bank and Adult, and at fewer than half on Credit. The share is highest when the subset contains a biased arm. -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, -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 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; grid from the breakpoints of these arms). All learners stay close to the frontier. TS has the lowest regret at on all three datasets, but over all values of 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.

% of values at which TS has the lowest regret
Subset without a biased arm
Subset with a biased arm
Median
Figure 22: Percentage of values at which TS has a lower mean regret than Bayes-UCB, -Greedy (0) and -Greedy (0.1), for 30 random subsets of 3 and of 5 arms (one point per subset; 400 runs, ). Filled points: the subset contains a biased arm. Bars: medians.
(a) Bank
(b) Adult
(c) Credit

Figure 23: Trade-off between accuracy and fairness regret after rounds with three frontier arms (GBM, GBM-OP4, GBM-OP6), as in Figure 1. Means over 10,000 runs.