Fairness in Learning: Classic and Contextual Bandits

Matthew Joseph, Michael Kearns, Jamie Morgenstern, Aaron Roth

Introduction

Automated techniques from statistics and machine learning are increasingly being used to make decisions that have important consequences on people’s lives, including hiring (Miller, 2015), lending (Byrnes, 2016), policing (Rudin, 2013), and even criminal sentencing (Barry-Jester et al., 2015). These high stakes uses of machine learning have led to increasing concern in law and policy circles about the potential for (often opaque) machine learning techniques to be discriminatory or unfair (Coglianese and Lehr, 2016; Barocas and Selbst, 2016). Moreover, these concerns are not merely hypothetical: Sweeney (2013) observed that contextual ads for public record services shown in response to Google searches for stereotypically African American names were more likely to contain text referring to arrest records, compared to comparable ads shown in response to searches for stereotypically Caucasian names, which showed more neutral text. She confirmed that this was not because of stated preferences of the advertisers, but rather the automated outcome of Google’s targeting algorithms. Despite the recognized importance of this problem, very little is known about technical solutions to the problem of “unfairness”, or the extent to which “fairness” is in conflict with the goals of learning. For example, a 2014 White House report (Podesta et al., 2014) notes that “[t]he increasing use of algorithms to make eligibility decisions must be carefully monitored for potential discriminatory outcomes for disadvantaged groups, even absent discriminatory intent…\ldots additional research in measuring adverse outcomes due to the use of scores or algorithms is needed to understand the impacts these tools are having and will have in both the private and public sector as their use grows.” Along the same lines, a 2016 White House report (Munoz et al., 2016) observes that “[a]s improvements in the uses of big data and machine learning continue, it will remain important not to place too much reliance on these new systems without questioning and continuously testing the inputs and mechanics behind them and the results they produce.” Similarly, in a recent speech FTC Commissioner Julie Brill (Julie Brill, 2015) observed, “…\ldots a lot remains unknown about how big data-driven decisions may or may not use factors that are proxies for race, sex, or other traits that U.S. laws generally prohibit from being used in a wide range of commercial decisions …\ldots What can be done to make sure these products and services––and the companies that use them – treat consumers fairly and ethically?”

Our main conceptual result is that this intuition is incorrect in the face of unknown reward functions. Even though the constraint of fairness is consistent with implementing the optimal policy, it is not necessarily consistent with learning the optimal policy. We show that fairness always has a cost, in terms of the achievable learning rate of the algorithm. For some problems, the cost is mild, but for others, the cost is large.

2 Our Results

We divide our results into two parts. First, we study the classic stochastic multi-armed bandit problem (Lai and Robbins, 1985; Katehakis and Robbins, 1995). In this case, there are no contexts, and each arm ii has a fixed but unknown average reward μi\mu_{i}. Note that this is a special case of the contextual bandit problem in which the contexts are the same every day. In this setting, our fairness constraint specializes to require that with probability 1−δ1-\delta, for any pair of arms i,ji,j for which μi≥μj\mu_{i}\geq\mu_{j}, at no round tt does the algorithm play arm jj with probability higher than that with which it plays arm ii. Note that even this special case models interesting scenarios from the point of view of fairness in learning. It models, for example, the case in which choices are made by a loan officer after applicants have been categorized into kk internally indistinguishable equivalence classes based on their applications.

Without a fairness constraint, it is known that it is possible to guarantee non-trivial regret to the optimal policy after only T=O(k)T=O(k) many rounds (Auer et al., 2002). In Section 3, we give an algorithm that satisfies our fairness constraint and is able to guarantee non-trivial regret after T=O(k3)T=O(k^{3}) rounds. We then show in Section 4 that it is not possible to do better – any fair learning algorithm can be forced to endure constant per-round regret for T=Ω(k3)T=\Omega(k^{3}) rounds. Thus, we tightly characterize the optimal regret attainable by fair algorithms in this setting, and formally separate it from the regret attainable by algorithms absent a fairness constraint. Note that this already shows a separation between the best possible learning rates for contextual bandit learning with and without the fairness constraint – the stochastic multi-armed bandit problem is a special case of every contextual bandit problem, and for general contextual bandit problems, it is also known how to get non-trivial regret after only T=O(k)T=O(k) many rounds (Agarwal et al., 2014; Beygelzimer et al., 2011; Chu et al., 2011).

We then move on to the general contextual bandit setting and prove a broad characterization result, relating fair contextual bandit learning to KWIK learning (Li et al., 2011). The KWIK model, which stands for Knows What it Knows and has a close relationship with reinforcement learning, is a model of sequential supervised classification in which the learning algorithm must be confident in its predictions. Informally, a KWIK learning algorithm receives a sequence of unlabeled examples, whose true labels are defined by some unknown function in a class CC. For each example, the algorithm may either predict a label, or announce “I Don’t Know”. The KWIK requirement is that with high probability, for each example, if the algorithm predicts a label, then its prediction must be very close to the true label. The quality of a KWIK learning algorithm is characterized by its “KWIK bound”, which provides an upper bound on the maximum number of times the algorithm can be forced to announce “I Don’t Know”. For any contextual bandit problem (defined by the set of functions CC from which the payoff functions fjf_{j} may be selected), we show that the optimal learning rate of any fair algorithm is determined by the best KWIK bound for the class CC. We prove this constructively – we give a reduction showing how to convert a KWIK learning algorithm into a fair contextual bandit algorithm in Section 5, and vice versa in Section 6. Both reductions show that the KWIK bound of the KWIK algorithm is polynomially related to the regret of the fair algorithm.

3 Other Related Work

Several papers study the problem of fairness in machine learning. One line of work aims to give algorithms for batch classification which achieve group fairness otherwise known as equality of outcomes, statistical parity – or algorithms that avoid disparate impact (see e.g. Calders and Verwer (2010); Luong et al. (2011); Kamishima et al. (2011); Feldman et al. (2015); Fish et al. (2016) and Adler et al. (2016) for a study of auditing existing algorithms for disparate impact). While statistical parity is sometimes a desirable goal – indeed, it is sometimes required by law – as observed by Dwork et al. (2012) and others, it suffers from two problems. First, if different populations indeed have different statistical properties, then it can be at odds with accurate classification. Second, even in cases when statistical parity is attainable with an optimal classifier, it does not prevent discrimination at an individual level – see Dwork et al. (2012) for a catalog of ways in which statistical parity can be insufficient from the perspective of fairness. In contrast, we study a notion aimed at guaranteeing fairness at the individual level.

Our definition of fairness is most closely related to that of Dwork et al. (2012), who proposed and explored the basic properties of a technical definition of individual fairness formalizing the idea that “similar individuals should be treated similarly”. Specifically, their work presupposes the existence of a task-specific metric on individuals, and proposes that fair algorithms should satisfy a Lipschitz condition with respect to this metric. Our definition of fairness is similar, in that the expected reward of each arm is a natural metric through which we define fairness. The main conceptual distinction between our work and Dwork et al. (2012) is that their work operates under the assumption that the metric is known to the algorithm designer, and hence in their setting, the fairness constraint binds only insofar as it is in conflict with the desired outcome of the algorithm designer. The most challenging aspect of this approach (as they acknowledge) is that it requires that some third party design a “fair” metric on individuals, which in a sense encodes much of the relevant challenge. The question of how to design such a metric was considered by Zemel et al. (2013), who study methods to learn representations that encode the data, while obscuring protected attributes. Our fairness constraint, conversely, is entirely aligned with the goal of the algorithm designer in that it is satisfied by the optimal policy; nevertheless, it affects the space of feasible learning algorithms, because it interferes with learning an optimal policy, which depends on the unknown reward functions.

At a technical level, our work is related to Amin et al. (2012) and Amin et al. (2013), which also relate KWIK learning to bandit learning in a different context, unrelated to fairness (when the arm space is very large).

Preliminaries

Let Π\Pi be the set of policies mapping contexts to distributions over arms Xk→ΔkX^{k}\to\Delta^{k}, and π∗\pi^{*} the optimal policy which selects a distribution over arms as a function of contexts to maximize the expected reward of those arms. The pseudo-regret of an algorithm A\mathcal{A} on contexts x1,…,xTx^{1},\ldots,x^{T} is defined as follows, where πt\pi^{t} represents A\mathcal{A}’s distribution on arms at round tt:

We hereafter refer to this as the regret of A\mathcal{A}. The optimal policy π∗\pi^{*} pulls arms with highest expectation at each round, so:

We say that A\mathcal{A} satisfies regret bound R(T)R(T) if max⁡x1,…,xTRegret(x1,…,xt)≤R(T)\max_{x^{1},\ldots,x^{T}}\textrm{Regret}(x^{1},\ldots,x^{t})\leq R(T).

We now define what it means for a contextual bandit algorithm to be δ\delta-fair with respect to its arms. Informally, this will mean that A\mathcal{A} will play arm ii with higher probability than arm jj in round tt only if ii has higher mean than jj in round tt, for all i,j∈[k]i,j\in[k], and in all rounds tt.

A\mathcal{A} is δ\delta-fair if, for all sequences of contexts x1,…,xtx^{1},\ldots,x^{t} and all payoff distributions D1t,…,Dkt\mathcal{D}^{t}_{1},\ldots,\mathcal{D}^{t}_{k}, with probability at least 1−δ1-\delta over the realization of the history hh, for all rounds t∈[T]t\in[T] and all pairs of arms j,j′∈[k]j,j^{\prime}\in[k],

Definition 1 prohibits favoring lower payoff arms over higher payoff arms. One relaxed definition only requires that πj∣ht=πj′∣ht\pi^{t}_{j|h}=\pi^{t}_{j^{\prime}|h} when fj(xjt)=fj′(xj′t)f_{j}(x^{t}_{j})=f_{j^{\prime}}(x^{t}_{j^{\prime}}) – requiring only identical individuals (concerning expected payoff) be treated identically. This relaxation is a special case of Dwork et al. (2012)’s proposed family of definitions, which require that “similar individuals be treated similarly”. We use Definition 1 as it is better motivated in its implications for fair treatment of individuals, but all of our results – including our lower bounds – apply also to this relaxation.

Its numerical predictions are accurate: for all tt, y^t∈{⊥}∪[f(xt)−ϵ,f(xt)+ϵ]\hat{y}^{t}\in\{\bot\}\cup[f(x^{t})-\epsilon,f(x^{t})+\epsilon], and

1 Specializing to Classic Stochastic Bandits

In Sections 3 and 4, we study the classic stochastic bandit problem, an important special case of the contextual bandit setting described above. Here we specialize our notation to this setting, in which there are no contexts. For each arm j∈[k]j\in[k], there is an unknown distribution Dj\mathcal{D}_{j} over $withunknownmeanwith unknown mean\mu_{j}.Alearningalgorithm. A learning algorithm\mathcal{A}choosesanarmchooses an armi_{t}inroundin roundt,andobservesthereward, and observes the rewardr^{t}_{i_{t}}\sim\mathcal{D}_{i_{t}}forthearmthatitchose.Letfor the arm that it chose. Leti^{*}\in[k]bethearmwithhighestexpectedreward:be the arm with highest expected reward:i^{*}\in\operatorname*{arg\,max}_{i\in[k]}\mu_{i}.Thepseudo−regretofanalgorithm. The pseudo-regret of an algorithm\mathcal{A}onon\mathcal{D}_{1},\ldots,\mathcal{D}_{k}$ is now just:

δ\delta-fairness in the classic bandit setting specializes as follows:

A\mathcal{A} is δ\delta-fair if, for all distributions D1,…,Dk\mathcal{D}_{1},\ldots,\mathcal{D}_{k}, with probability at least 1−δ1-\delta over the history hh, for all t∈[T]t\in[T] and all j,j′∈[k]j,j^{\prime}\in[k]:

Fair Classic Stochastic Bandits: An Algorithm

In this section, we describe a simple and intuitive modification of the standard UCB algorithm (Auer et al., 2002), called FairBandits, prove that it is fair, and analyze its regret bound. The algorithm and its analysis highlight a key idea that is important to the design of fair algorithms in this setting: that of chaining confidence intervals. Intuitively, as a δ\delta-fair algorithm explores different arms it must play two arms j1j_{1} and j2j_{2} with equal probability until it has sufficient data to deduce, with confidence 1−δ1-\delta, either that μj1>μj2\mu_{j_{1}}>\mu_{j_{2}} or vice versa. FairBandits does this by maintaining empirical estimates of the means of both arms, together with confidence intervals around those means. To be safe, the algorithm must play the arms with equal probability while their confidence intervals overlap. The same reasoning applies simultaneously to every pair of arms. Thus, if the confidence intervals of each pair of arms jij_{i} and ji+1j_{i+1} overlap for each i∈[k]i\in[k], the algorithm is forced to play all arms jj with equal probability. This is the case even if the confidence intervals around arm jkj_{k} and arm j1j_{1} are far from overlapping – i.e. when the algorithm can be confident that μj1>μjk\mu_{j_{1}}>\mu_{j_{k}}.

This approach initially seems naive: in an attempt to achieve fairness, it seems overly conservative when ruling out arms, and can be forced to play arms uniformly at random for long periods of time. This is reflected in its regret bound, which is only non-trivial after T≫k3T\gg k^{3}, whereas the UCB algorithm (Auer et al., 2002) achieves non-trivial regret after T=O(k)T=O(k) rounds. However, our lower bound in Section 4 shows that any fair algorithm must suffer constant per-round regret for T≫k3T\gg k^{3} rounds on some instances.

Initially, the active set contains all arms. The active set of arms at each subsequent round is defined to be the set of arms that are chained to the arm with highest upper confidence bound at the previous round. The algorithm can be confident that arms that have become unchained to the arm with the highest upper confidence bound at any round have means that are lower than the means of any chained arms, and hence such arms can be safely removed from the active set, never to be played again. This has the useful property that the active set of arms can only shrink: at any round tt, St⊆St−1S_{t}\subseteq S_{t-1}; see Figure 1 for an example of active set evolution over time.

We first observe that with probability 1−δ1-\delta, all of the confidence intervals maintained by FairBandits (δ)(\delta) contain the true means of their respective arms over all rounds. We prove this claim, along with all other claims in this section without proofs, in Appendix A.

The fairness of FairBandits follows almost immediately from this guarantee.

Next, we upper bound the regret of FairBandits.

If δ<1/T\delta<1/\sqrt{T}, then FairBandits has regret

Before proving Theorem 2, we highlight two points. First, this bound becomes non-trivial (i.e. the average per-round regret is ≪1\ll 1) for T=Ω(k3)T=\Omega(k^{3}). As we show in the next section, it is not possible to improve on this. Second, the bound may appear to have suboptimal dependence on TT when compared to unconstrained regret bounds (where the dependence on TT is often described as logarithmic). However, it is known that Ω(kT)\Omega\left(\sqrt{kT}\right) regret is necessary even in the unrestricted setting (without fairness) if one does not make data-specific assumptions on an instance (Bubeck and Cesa-Bianchi, 2012) (e.g. that there is a lower bound on the gap between the best and second best arm). It would be possible to state a logarithmic dependence on TT in our setting as well while making assumptions on the gaps between arms, but since our fairness constraint manifests itself as a cost that depends on kk, we choose for clarity to avoid such assumptions. Without such assumptions, our dependence on TT is also optimal.

We now prove Theorem 2. Lemma 2 upper bounds the probability any arm ii active in round tt has been pulled substantially fewer times than its expectation, i.e. nit≪tkn_{i}^{t}\ll\frac{t}{k}. Lemma 3 upper bounds the width of any confidence interval used by FairBandits in round tt by η(t)\eta(t), conditioned on ii being pulled the number of times guaranteed by Lemma 2. Finally, we stitch this together to prove Theorem 2 by upper bounding the total regret incurred for TT rounds by noticing that the regret of any arm active in round tt is at most kη(t)k\eta(t).

We begin by lower bounding the probability that any arm active in round tt has been pulled substantially fewer times than its expectation.

With probability at least 1−δ2t21-\frac{\delta}{2t^{2}},

for all i∈Sti\in S^{t} (for all active arms in round tt).

We now use this lower bound on the number of pulls of active arm ii in round tt to upper-bound η(t)\eta(t), an upper bound on the confidence interval width FairBandits uses for any active arm ii in round tt.

Consider any round tt and any arm i∈Sti\in S^{t}. Condition on nit≥tk−tln⁡(2kt2δ)2n_{i}^{t}\geq\frac{t}{k}-\sqrt{\frac{t\ln(\frac{2kt^{2}}{\delta})}{2}}. Then,

Finally, we prove the bound on the total regret of the algorithm, using the bound on the width of any active arm’s confidence interval in round tt provided by Lemma 3.

We further condition on the event that for all j,tj,t,

which holds with probability at least 1−πδ21-\frac{\pi\delta}{2} by Lemma 2 and a union bound over all times tt. This implies that, for all rounds tt, for every active arm j∈Stj\in S^{t}, Lemma 3 applies, and therefore

Finally, we upper-bound the per-round regret of pulling any active arm i∈Sti\in S^{t} at round tt. Since i∗i_{*} is active, any i∈Sti\in S^{t} is chained to arm i∗i_{*}. Since all active arms have confidence interval width at most η(t)\eta(t) and ii must be chained using at most kk arms’ confidence intervals, we have that

where this bound is derived in Appendix A.1. ∎

Fair Classic Stochastic Bandits: A Lower Bound

We now show that the regret bound for FairBandits has an optimal dependence on kk: no fair algorithm has diminishing regret before T=Ω(k3)T=\Omega(k^{3}) rounds. All missing proofs are in Appendix B. The main result of this section is the following.

There is a distribution PP over kk-arm instances of the stochastic multi-armed bandit problem such that any fair algorithm run on PP experiences constant per-round regret for at least

Despite the fact that regret is defined in a prior-free way, the proof of Theorem 3 proceeds via Bayesian reasoning. We construct a family of lower bound instances such that arms have payoffs drawn from Bernoulli distributions, denoted B(μ)B(\mu) for mean μ\mu. So, to specify a problem instance, it suffices to specify a mean for each of kk arms: μ1,…,μk\mu_{1},\ldots,\mu_{k}. The proof formalizes the following outline.

We define an instance distribution P=P1×…×PkP=P_{1}\times\ldots\times P_{k} over means μi\mu_{i} (Definition 3). PP will have two important properties. First, we will draw means from PP such that for any i∈[k−1]i\in[k-1], μi=μi+1\mu_{i}=\mu_{i+1} with probability at least 1/41/4. Second, for any realization of means drawn from PP, if an algorithm plays uniformly at random over [k][k], it will suffer constant per-round regret.

We treat PiP_{i} as a prior distribution over mean μi\mu_{i}, and analyze the posterior distribution Pi(ri1,,…,rit)P_{i}(r^{1}_{i},,\ldots,r^{t}_{i}) over means that results after applying Bayes’ rule to the payoff observations ri1,…,ritr^{1}_{i},\ldots,r^{t}_{i} made by the algorithm. Bayes’ rule implies (Lemma 4) the joint distribution over rewards and means drawn from PP is identical to the distribution which first draws means according to PP, then draws rewards conditioned on those means, and finally resamples the means from the posterior distribution on means. Thus, we can reason about fairness (a frequentist quantity) by analyzing the Bayesian posterior distribution on means conditioned on the observed rewards.

We begin by describing our distribution over instances. Each arm ii’s payoff distribution will be Bernoulli with mean μi∼Pi\mu_{i}\sim P_{i} independently of each other arm.

For each arm ii, μi\mu_{i} is distributed according to the distribution with the following probability mass function:

Let P=∏iPiP=\prod_{i}P_{i} denote the joint distribution on arms’ expected payoffs.

We treat PP as a prior distribution over instances, and analyze the posterior distribution on instances given the realized rewards. Lemma 4 justifies this reasoning.

Consider the following two experiments: In the first, let μi∼Pi\mu_{i}\sim P_{i} and ri1,…,rit∼B(μi)r^{1}_{i},\ldots,r^{t}_{i}\sim B(\mu_{i}), and WW denote the joint distribution on (μi,ri1,…,rit)(\mu_{i},r^{1}_{i},\ldots,r^{t}_{i}). In the second, let μi∼Pi\mu_{i}\sim P_{i}, and ri1,…,rit∼B(μi)r^{1}_{i},\ldots,r^{t}_{i}\sim B(\mu_{i}), and then re-draw the mean μi′∼Pi(ri1,…,rit)\mu^{\prime}_{i}\sim P_{i}(r^{1}_{i},\ldots,r^{t}_{i}) from its posterior distribution given the rewards. Let (μi′,ri1,…,rit)∼W′(\mu^{\prime}_{i},r^{1}_{i},\ldots,r^{t}_{i})\sim W^{\prime}. Then, WW and W′W^{\prime} are identical distributions.

We will say hth^{t} δ\delta-distinguishes arm ii for A\mathcal{A} if, for some α∈\alpha\in,

The next lemma shows that if no arm is δ\sqrt{\delta}-distinguished by a history, all pairs of arms i,i+1i,i+1 have posterior probability strictly greater than δ\delta of having equal means.

Suppose A\mathcal{A} has history hth^{t}, and that hth^{t} does not δ\sqrt{\delta}-distinguish any arm ii. Then, for all arms i,i+1i,i+1,

Now, we prove that for any fair algorithm, with probability ≥12\geq\tfrac{1}{2} over the draw of histories hth^{t}, hth^{t} must 2δ\sqrt{2\delta}-distinguish some arm, or the algorithm must play uniformly across all kk arms conditioned on hth^{t}.

Suppose an algorithm A\mathcal{A} is δ\delta-fair. Then:

We now lower-bound the number of observations from arm ii which are required to δ\delta-distinguish it.

Fix any δ<18\delta<\frac{1}{8}. Let μi∼Pi\mu_{i}\sim P_{i} as in Definition 3. Then, arm ii is 2δ\sqrt{2\delta}-distinguishable by hth^{t} only if Ti=Ω(k2ln⁡1δ)T_{i}=\Omega(k^{2}\ln\frac{1}{\delta}), where Ti=∣{t′:h2t′=i,t′≤t}∣T_{i}=|\{t^{\prime}:h^{t^{\prime}}_{2}=i,t^{\prime}\leq t\}| is the number of times arm ii is played.

Write p,p+13kp,p+\frac{1}{3k} to represent the two possible realizations that μi\mu_{i} might take, when drawn from the distribution over instances given in Definition 3. Let AA represent the event that μi=p\mu_{i}=p and BB the event that μi=p+13k\mu_{i}=p+\frac{1}{3k}. Let δ′=2δ\delta^{\prime}=\sqrt{2\delta} throughout.

We now calculate under what conditions either (a) X≤δ′1−δ′X\leq\frac{\delta^{\prime}}{1-\delta^{\prime}}, or (b) X≥1−δ′δ′X\geq\frac{1-\delta^{\prime}}{\delta^{\prime}}. One of these must hold if ii is δ′\delta^{\prime}-distinguished. Before we do so, we mention that a Chernoff bound implies that with probability 1−δ′1-\delta^{\prime}, for events AA and BB, Equations 1 and 2, respectively:

since the mean of mm Bernoulli trials with mean pp ( or p+13kp+\frac{1}{3k}) is mpmp (or mp+m3kmp+\frac{m}{3k}).

We begin by analyzing case (a), where δ′=2δ<1/2\delta^{\prime}=\sqrt{2\delta}<1/2 implies

Taking logarithms on both sides, we have that

where the inequality follows from ln⁡(1+x)≥xx+1\ln(1+x)\geq\frac{x}{x+1} for x∈[−1,∞]x\in[-1,\infty]. Then, this implies that

Multiplying both sides by −1-1, this implies that

Equation 1 implies ∣3ks−3kmp−m∣≤m+3k2mln⁡2δ′|3ks-3kmp-m|\leq m+3k\sqrt{2m\ln\frac{2}{\delta^{\prime}}}, which with the previous line implies

Since p,1−p∈[1/3,2/3]p,1-p\in[1/3,2/3] and δ′=2δ\delta^{\prime}=\sqrt{2\delta}, solving for mm implies that m=Ω(k2ln⁡1δ′)m=\Omega(k^{2}\ln\frac{1}{\delta^{\prime}}).

where we used the fact that 1+x≤ex1+x\leq e^{x} for all xx. Taking logarithms, this will imply that

whose last inequality comes the range of pp. Combining this inequality with Equation 2, this implies

and solving for mm and substituting for δ′\delta^{\prime} gives that m=Ω(k2ln⁡1δ)m=\Omega(k^{2}\ln\frac{1}{\delta}).

Thus, if either X≥1−δ′δ′X\geq\frac{1-\delta^{\prime}}{\delta^{\prime}} or X≤δ′1−δ′X\leq\frac{\delta^{\prime}}{1-\delta^{\prime}}, it must be that m=Ω(k2ln⁡1δ)m=\Omega(k^{2}\ln\frac{1}{\delta}). ∎

We now have the tools in hand to prove Theorem 3.

Assume A\mathcal{A} is some δ\delta-fair algorithm where δ<1/8\delta<1/8. Fix TT; we claim that with probability at least 12\frac{1}{2}, for any t=o(k3ln⁡1δ)t=o(k^{3}\ln\frac{1}{\delta}), t≤Tt\leq T, πj∣htt=1k\pi^{t}_{j|h^{t}}=\frac{1}{k} for all jj. Since the payoff for uniformly random play is ≤12+1k\leq\frac{1}{2}+\frac{1}{k}, while the best arm has payoff ≥23\geq\frac{2}{3}, in any round tt where πi∣htt=πi′∣htt\pi^{t}_{i|h^{t}}=\pi^{t}_{i^{\prime}|h^{t}} for all i,i′∈[k]i,i^{\prime}\in[k], the algorithm suffers Ω(1)\Omega(1) regret in that round.

Lemma 6 implies that, with probability at least 12\frac{1}{2} over the distribution over histories hth^{t}, either (a) πi∣ht′t′=πi′∣ht′t′\pi^{t^{\prime}}_{i|h^{t^{\prime}}}=\pi^{t^{\prime}}_{i^{\prime}|h^{t^{\prime}}} for all i,i′∈[k],t′≤ti,i^{\prime}\in[k],t^{\prime}\leq t or (b) hth^{t} must 2δ\sqrt{2\delta}-distinguish some arm ii. Case (a)(a) implies our claim. In case (b), Lemma 7 states than an arm ii is 2δ\sqrt{2\delta}-distinguishable only if Ti=Ω(k2ln⁡1δ)T_{i}=\Omega(k^{2}\ln\frac{1}{\delta}). We now argue that unless t=Ω(k3ln⁡1δ)t=\Omega(k^{3}\ln\frac{1}{\delta}), Ti=o(k2ln⁡1δ)T_{i}=o(k^{2}\ln\frac{1}{\delta}), which will imply our claim for case (b)(b).

Fix some i,ti,t. We lower-bound tt for which, with probability at least 1−δ′k1-\frac{\delta^{\prime}}{k} over histories hth^{t}, it will be the case that nit≥c⋅k2ln⁡1δn_{i}^{t}\geq c\cdot k^{2}\ln\frac{1}{\delta} when πi∣ht′t′=πi′∣ht′t′\pi^{t^{\prime}}_{i|h^{t^{\prime}}}=\pi^{t^{\prime}}_{i^{\prime}|h^{t^{\prime}}} for all i,i′∈[k],t′≤ti,i^{\prime}\in[k],t^{\prime}\leq t. Let X1,…,XtX_{1},\ldots,X_{t} be indicator variables of arm ii being played in round t′≤tt^{\prime}\leq t. Note that for all t′≤tt^{\prime}\leq t, E[Xt′]=1kE[X_{t^{\prime}}]=\frac{1}{k}, since in all rounds prior to tt, we have all arms are played with equal probability. For any ϵ∈\epsilon\in, as nit′n_{i}^{t^{\prime}} are nondecreasing in t′t^{\prime}, an additive Chernoff bound implies

If ktln⁡2kδ′2≤c2⋅k3ln⁡1δk\sqrt{\frac{t\ln\frac{2k}{\delta^{\prime}}}{2}}\leq\frac{c}{2}\cdot k^{3}\ln\frac{1}{\delta}, then t≥c2⋅k3ln⁡1δt\geq\frac{c}{2}\cdot k^{3}\ln\frac{1}{\delta}; if not, then t≥c22k4ln⁡21δln⁡2kδ′t\geq\frac{\frac{c^{2}}{2}k^{4}\ln^{2}\frac{1}{\delta}}{\ln\frac{2k}{\delta^{\prime}}}. Thus, nit<c⋅k2ln⁡1δn_{i}^{t}<c\cdot k^{2}\ln\frac{1}{\delta} with probability 1−δ′1-\delta^{\prime} for all ii unless t≥min⁡(c2⋅k3ln⁡1δ,c22k4ln⁡21δln⁡2kδ′)=Ω(k3ln⁡1δ)t\geq\min\left(\frac{c}{2}\cdot k^{3}\ln\frac{1}{\delta},\frac{\frac{c^{2}}{2}k^{4}\ln^{2}\frac{1}{\delta}}{\ln\frac{2k}{\delta^{\prime}}}\right)=\Omega(k^{3}\ln\frac{1}{\delta}) for δ′∈[12,1]\delta^{\prime}\in[\frac{1}{2},1]. ∎

KWIK Learnability Implies Fair Bandit Learnability

In this section, we show if a class of functions is KWIK learnable, then there is a fair algorithm for learning the same class of functions in the contextual bandit setting, with a regret bound polynomially related to the function class’ KWIK bound. Intuitively, KWIK-learnability of a class of functions guarantees we can learn the function’s behavior to a high degree of accuracy with a high degree of confidence. As fairness constrains an algorithm most before the algorithm has determined the payoff functions’ behavior accurately, this guarantee enables us to learn fairly without incurring much additional regret. Formally, we prove the following polynomial relationship.

For an instance of the contextual multi-armed bandit problem where fj∈Cf_{j}\in C for all j∈[k]j\in[k], if CC is (ϵ,δ)(\epsilon,\delta)-KWIK learnable with bound m(ϵ,δ)m(\epsilon,\delta), KWIKToFair (δ,T)(\delta,T) is δ\delta-fair and achieves regret bound:

for δ≤1T\delta\leq\frac{1}{\sqrt{T}} where ϵ∗=arg⁡min⁡ϵ(max⁡(ϵ⋅T,k⋅m(ϵ,min⁡(δ,1/T)kT2))).\epsilon^{*}=\arg\min_{\epsilon}(\max(\epsilon\cdot T,k\cdot m(\epsilon,\frac{\min(\delta,1/T)}{kT^{2}}))).

We condition on both (a) and (b) holding for all arms ii and rounds tt from Lemma 8, which occur with probability 1−δ1-\delta for all arms and all times tt. Therefore, we proceed by conditioning on the event that for all arms ii and all rounds tt, if Li=sitL_{i}=s^{t}_{i} for sit≠⊥s^{t}_{i}\neq\bot then ∣sit−fi(xit)∣≤ϵ∗|s^{t}_{i}-f_{i}(x^{t}_{i})|\leq\epsilon^{*}. Having done so, there are two possibilities for each round tt.

In case 1, for each ii we have that Li(xit)=sit≠⊥L_{i}(x^{t}_{i})=s^{t}_{i}\neq\bot. By the condition above, for any arms ii and jj, fi(xit)≥fj(xjt)f_{i}(x_{i}^{t})\geq f_{j}(x_{j}^{t}) implies that sit+ϵ∗≥sjt−ϵ∗s^{t}_{i}+\epsilon^{*}\geq s^{t}_{j}-\epsilon^{*}. Since in this case no learner outputs ⊥\bot, arm jj chains to the top arm only if arm ii does. Therefore πi∣ht≥πj∣ht\pi_{i\mid h}^{t}\geq\pi_{j\mid h}^{t}. In case 2, there exists some ii such that Li(xit)=⊥L_{i}(x^{t}_{i})=\bot. Then we choose uniformly at random across all arms, so πi∣ht=πj∣ht\pi_{i\mid h}^{t}=\pi_{j\mid h}^{t} for all ii and jj.

Thus, with probability at least 1−δ1-\delta, for each round tt, fi(xit)≥fj(xjt)f_{i}(x_{i}^{t})\geq f_{j}(x_{j}^{t}) implies that πi∣ht≥πj∣ht\pi_{i\mid h}^{t}\geq\pi_{j\mid h}^{t}. ∎

We now use the KWIK bounds of the KWIK learners to upper-bound the regret of KWIKToFair(δ,T)(\delta,T).

KWIKToFair(δ,T)(\delta,T) achieves regret O(max⁡(k2⋅m(ϵ∗,δ∗),k3ln⁡Tkδ))O(\max(k^{2}\cdot m(\epsilon^{*},\delta^{*}),k^{3}\ln\frac{Tk}{\delta})).

We first condition on the event that both (a) and (b) from Lemma 8 hold for all t,it,i, which holds with probability 1−min⁡(δ,1T)1-\min(\delta,\frac{1}{T}), and bound the regret when they both hold. Choose an arbitrary round tt in the execution of KWIKToFair(δ,T)(\delta,T). As above, there are two cases. In the first case, Li(xit)=sit≠⊥L_{i}(x^{t}_{i})=s^{t}_{i}\neq\bot for all ii and we choose uniformly at random from the arms chained by ϵ∗\epsilon^{*}-intervals to the arm with the highest prediction. Since we have conditioned on the event that all KWIK learners are correct, i∗∈Sti^{*}\in S^{t}. Furthermore, for any i,j∈Sti,j\in S^{t}, we have that ∣sit−sjt∣≤2kϵ∗|s^{t}_{i}-s^{t}_{j}|\leq 2k\epsilon^{*}, and in particular that ∣sit−si∗t∣≤2kϵ∗|s^{t}_{i}-s^{t}_{i^{*}}|\leq 2k\epsilon^{*}. Thus, the regret is at most 2kϵ∗2k\epsilon^{*} in such a round. In the second case some arm outputs ⊥\bot, so we choose randomly from all kk arms, and the worst-case regret is 1. Thus, the total regret will be at most 2kϵ∗T+n+δT2k\epsilon^{*}T+n+\delta T where nn is the number of rounds in which some LiL_{i} outputs ⊥\bot.

We now upper bound nin_{i}, the number of rounds in which arm ii outputs ⊥\bot. Fix some arm ii which outputs ⊥\bot in nin_{i} rounds. Arm ii is played and therefore receives feedback every time it outputs ⊥\bot with probability at least 1/k1/k. Thus, using a Chernoff bound, with probability 1−δ′1-\delta^{\prime}, arm ii receives feedback for nin_{i} outputs of ⊥\bot in at least nik−2niln⁡2δ′\frac{n_{i}}{k}-\sqrt{2n_{i}\ln\frac{2}{\delta^{\prime}}} rounds. LiL_{i} has the guarantee that there can be at most m(ϵ∗,δ∗)m(\epsilon^{*},\delta^{*}) many such rounds (in which it outputs ⊥\bot and receives feedback). Thus,

If ni≥ck⋅m(ϵ∗,δ∗)n_{i}\geq ck\cdot m(\epsilon^{*},\delta^{*}), this implies

We now analyze cases in which (1) kln⁡2δ′≤m(ϵ∗,δ∗)k\ln\frac{2}{\delta^{\prime}}\leq m(\epsilon^{*},\delta^{*}) and (2) kln⁡2δ′>m(ϵ∗,δ∗)k\ln\frac{2}{\delta^{\prime}}>m(\epsilon^{*},\delta^{*}).

For c>4c>4, this leads to contradiction. Thus, in this case, if we set δ′=δk\delta^{\prime}=\frac{\delta}{k}, we know that with probability 1−δ1-\delta, ni≤4k⋅m(ϵ∗,δ∗)n_{i}\leq 4k\cdot m(\epsilon^{*},\delta^{*}) which summing up over all ii implies ∑ini≤4k2⋅m(ϵ∗,δ∗)\sum_{i}n_{i}\leq 4k^{2}\cdot m(\epsilon^{*},\delta^{*}), as desired.

which solving for nin_{i} implies that ni=O(k2ln⁡1δ′)n_{i}=O(k^{2}\ln\frac{1}{\delta^{\prime}}), so ∑ini=O(k3ln⁡kδ)\sum_{i}n_{i}=O(k^{3}\ln\frac{k}{\delta}) by setting δ′=δk\delta^{\prime}=\frac{\delta}{k} and taking a union bound. Thus, there are at most n=O(max⁡(k2⋅m(ϵ,δ∗),k3ln⁡kδ))n=O(\max(k^{2}\cdot m(\epsilon,\delta^{*}),k^{3}\ln\frac{k}{\delta})) rounds in expectation during the execution of KWIKToFair(δ,T)(\delta,T) in which some arm outputs ⊥\bot.

Combining both cases, the total regret incurred by KWIKToFair(δ,T)(\delta,T) across all TT rounds is

Our presentation of KWIKToFair(δ,T)(\delta,T) has a known time horizon TT. Its guarantees extend to the case in which TT is unknown via the standard “doubling trick” to prove Theorem 4 in Appendix C.

An important instance of the contextual bandit problem is the linear case, where CC consists of the set of all linear functions of bounded norm in dd dimensions. This captures the natural setting in which the rewards of each arm are governed by an underlying linear regression model on a dd-dimensional real valued feature space. The linear case is well studied, and there are known KWIK algorithms (Strehl and Littman, 2008) for the set of linear functions CC, which allows us via our reduction to give a fair contextual bandit algorithm for this setting with a polynomial regret bound.

Then, an application of Theorem 4 implies that KWIKToFair has a polynomial regret guarantee for the class of linear functions. This proof can be found in Appendix C.

Let CC and X\mathcal{X} be as in Lemma 10, and fj∈Cf_{j}\in C for each j∈[k]j\in[k]. Then, KWIKToFair(T,δ)(T,\delta) using the learner from (Strehl and Littman, 2008) has regret:

Fair Bandit Learnability Implies KWIK Learnability

In this section, we show how to use a fair, no-regret contextual bandit algorithm to construct a KWIK learning algorithm whose KWIK bound has logarithmic dependence on the number of rounds TT. Intuitively, any fair algorithm which achieves low regret must both be able to find and exploit an optimal arm (since the algorithm is no-regret) and can only exploit that arm once it has a tight understanding of the qualities of all arms (since the algorithm is fair). Thus, any fair no-regret algorithm will ultimately have tight (1−δ)(1-\delta)-confidence about each arm’s reward function.

The condition that CC should contain a function that can take on values that are multiples of ϵ\epsilon is for technical convenience; CC can always be augmented by adding a single such function.

We now argue that the numeric predictions of B\mathcal{B} are correct within an additive ϵ\epsilon. Let:

When B(xt)=yt∈\mathcal{B}(x^{t})=y^{t}\in, note that ∣Et∣≤1|E^{t}|\leq 1, else B\mathcal{B} would have output ⊥\bot.

In this section, we exploit the other direction of the equivalence we have proven between fair contextual bandit algorithms and KWIK learning algorithms to give a simple contextual bandit problem for which fairness imposes an exponential cost in its regret bound. This is in contrast to the case in which the underlying class of functions is linear, for which we gave fair contextual bandit algorithms with regret bounds within a polynomial factor of their unconstrained counterparts. In this problem, the context domain is the dd-dimensional boolean hypercube: X={0,1}d\mathcal{X}=\{0,1\}^{d} – i.e. the context each round for each individual consists of dd boolean attributes. Our class of functions CC is the class of boolean conjunctions:

We first give a simple but unfair algorithm, ConjunctionBandit, for this problem which obtains a regret bound which is linear in dd. It maintains a set of candidate variables Cj∗C_{j}^{*} for each conjunction fjf_{j}; this set shrinks across rounds, while always containing the true set of variables over which fjf_{j} is defined. We denote the boolean value of variable mm in the context for arm jj in round tt by xj,mtx_{j,m}^{t}.

The formal claim and proof that ConjunctionBandit achieves regret R(T)=O(k2d)R(T)=O(k^{2}d), as well as ConjunctionBandit’s formal description, can be found in Appendix C. ConjunctionBandit violates the fairness in every round tt in which it predicts 0 for arm ii but 1 for arm jj even though fi(xt)=fj(xt)=1f_{i}(x^{t})=f_{j}(x^{t})=1, as πit=0<1k<πjt\pi^{t}_{i}{}=0<\frac{1}{k}<\pi^{t}_{j}{}.

We now show that fair algorithms cannot guarantee subexponential regret in dd. This relies upon a known lower bound for KWIK learning conjunctions (Li, 2009):

There exists a sequence of examples (x1,…,x2d−1)(x^{1},\ldots,x^{2^{d}-1}) such that for ϵ,δ≤1/2\epsilon,\delta\leq 1/2, every (ϵ,δ)(\epsilon,\delta)-KWIK learning algorithm B\mathcal{B} for the class CC of conjunctions on dd variables must output ⊥\bot for xtx^{t} for each t∈[2d−1]t\in[2^{d}-1]. Thus, B\mathcal{B} has a KWIK bound of at least m(ϵ,δ)=Ω(2d)m(\epsilon,\delta)=\Omega(2^{d}).

We then use the equivalence between fair algorithms and KWIK learning to translate this lower bound on m(ϵ,δ)m(\epsilon,\delta) into a minimum worst case regret bound for fair algorithms on conjunctions. We modify Theorem 6 to yield the following lemma, proven in Appendix C.

Suppose A\mathcal{A} is a δ\delta-fair algorithm for the contextual bandit problem over the class CC of conjunctions on dd variables. If A\mathcal{A} has regret bound R(T,δ)R(T,\delta) then for δ′=2Tδ\delta^{\prime}=2T\delta, FairToKWIK is an (0,δ′)(0,\delta^{\prime})-KWIK algorithm for CC with KWIK bound m(0,δ′)=4R(m(0,δ′),δ)m(0,\delta^{\prime})=4R(m(0,\delta^{\prime}),\delta).

Lemma 11 then lets us lower-bound the worst case regret of fair learning algorithms on conjunctions.

For δ<12T\delta<\frac{1}{2T}, any δ\delta-fair algorithm for the contextual bandit problem over the class CC of conjunctions on dd boolean variables has a worst case regret bound of R(T)=Ω(2d)R(T)=\Omega(2^{d}).

Let T≤2d−1T\leq 2^{d-1}. We know then that if δ′<1\delta^{\prime}<1, Lemma 11 guarantees the existence of a sequence of contexts x1,…,xTx^{1},\ldots,x^{T} for which any (0,δ′)(0,\delta^{\prime})-KWIK algorithm has KWIK bound m(T,0,δ′)=Tm(T,0,\delta^{\prime})=T.

Lemma 12 implies 4R(m(T,0,δ′),δ)4R(m(T,0,\delta^{\prime}),\delta) gives a KWIK bound of m(T,0,δ′)m(T,0,\delta^{\prime}) when δ′=2Tδ\delta^{\prime}=2T\delta. Thus, if δ<12T\delta<\frac{1}{2T}, then δ′<1\delta^{\prime}<1 and so R(m(T,0,δ′),δ)=m(T,0,δ′)4=T4R(m(T,0,\delta^{\prime}),\delta)=\frac{m(T,0,\delta^{\prime})}{4}=\frac{T}{4} . ∎

Together with the analysis of ConjunctionBandit, this demonstrates a strong separation between fair and unfair contextual bandit algorithms: when the underlying functions mapping contexts to payoffs are conjunctions on dd variables, there exist a sequence of contexts on which fair algorithms must incur regret exponential in dd while unfair algorithms can achieve regret linear in dd.

References

Appendix A Missing Proofs for the Classic Stochastic Bandits Upper Bound

We begin by proving Lemma 1, used in Section 3 to prove the fairness of the FairBandits algorithm.

Choose an arbitrary arm ii and round tt and define indicator variables X1,…,Xni(t)X_{1},\ldots,X_{n_{i}(t)} where XnX_{n} takes on the reward of pull nn of arm ii. By a Chernoff bound, for any a≥0a\geq 0,

In particular for a=nitln⁡((πt)2/3δ)/2a=\sqrt{n_{i}^{t}\ln((\pi t)^{2}/3\delta)/2}, it is the case that

By a union bound over all rounds tt, the probability of any true mean ever falling outside of its confidence interval is at most δ(6π2∑t=1∞1t2)=δ\delta(\frac{6}{\pi^{2}}\sum_{t=1}^{\infty}\frac{1}{t^{2}})=\delta. ∎

Next, we prove Lemma 2, which we used in Section 3 to bound the regret of FairBandits in Theorem 2.

Setting ϵt=tln⁡(2t2kδ)2\epsilon t=\sqrt{\frac{t\ln(\frac{2t^{2}k}{\delta})}{2}}, this bound becomes

as desired. Then, taking a union bound over all active arms of which there are at most kk, the claim follows. ∎

where the final step follows from δ≤1T\delta\leq\frac{1}{\sqrt{T}}.

Appendix B Missing Proofs for the Classic Stochastic Bandits Lower Bound

All lemmas in this section are used in Section 4 to prove the fair lower bound in Theorem 3. The first, Lemma 4, lets us analyze distributions over payoffs.

Let RiR_{i} represent the joint distribution on rewards for either experiment: in both cases, the joint distribution on rewards is identical, since the process which generates them is the same.

We will use the notation m,d1,…,dtm,d^{1},\ldots,d^{t} to represent some fixed realization of the random variables μi,ri1,…,rit\mu_{i},r^{1}_{i},\ldots,r^{t}_{i} and μi′,ri1,…,rit\mu^{\prime}_{i},r^{1}_{i},\ldots,r^{t}_{i}. In particular, it suffices to show that

The first experiment which generates (μi,ri1,…,rit)(\mu_{i},r^{1}_{i},\ldots,r^{t}_{i}) according to WW has probability mass on this particular value of its random variables:

The second experiment has joint probability:

where equality follows from Bayes’ Rule. ∎

Next, we prove Lemma 5, used to reason about distinguishing between arms.

Since neither ii nor i+1i+1 is δ\sqrt{\delta}-distinguished by hth^{t}, for any αi∈{13+i3k,13+i+13k},αi+1∈{13+i+13k,13+i+23k}\alpha_{i}\in\{\frac{1}{3}+\frac{i}{3k},\frac{1}{3}+\frac{i+1}{3k}\},\alpha_{i+1}\in\{\frac{1}{3}+\frac{i+1}{3k},\frac{1}{3}+\frac{i+2}{3k}\}, the posterior probability of μi=αi\mu_{i}=\alpha_{i} is less than 1−δ1-\sqrt{\delta}, and in particular for α=13+i+13k\alpha=\frac{1}{3}+\frac{i+1}{3k}, it must be the case that

Finally, we prove Lemma 6, which lets us reason about how fair algorithm choices depend on histories.

We will define a set of histories which cause A\mathcal{A} to play some pair of arms ii and i+1i+1 with different probabilities when μi=μi+1\mu_{i}=\mu_{i+1}. Define the set unfair(A,μ)\textrm{unfair}(\mathcal{A},\mu) such that ht∈unfair(A,μ)h^{t}\in\textrm{unfair}(\mathcal{A},\mu) if there exist i∈[k−1],t′∈[t]i\in[k-1],t^{\prime}\in[t] such that μi=μi+1\mu_{i}=\mu_{i+1} but πi∣ht′t′≠πi+1∣ht′t′\pi^{t^{\prime}}_{i|h^{t^{\prime}}}\neq\pi^{t^{\prime}}_{i+1|h^{t^{\prime}}}.

where the first equality comes from the fact that hth^{t} is a history for which πi∣htt′≠πi+1∣htt′\pi^{t^{\prime}}_{i|h^{t}}\neq\pi^{t^{\prime}}_{i+1|h^{t}} and the second equality from the definition of the set unfair.

We will show that Equation 4 cannot hold with probability more than 12\frac{1}{2} over the draw of μ,ht\mu,h^{t} from the underlying distribution, or else AA would not satisfy δ\delta-fairness. Since AA is δ\delta-fair, for any fixed μ\mu

and therefore for any distribution PP over μ\mu that

Thus, with probability at least 12\frac{1}{2} over the distribution over histories and means,

However, Equation 4 shows this does not hold for any hth^{t} which does not 2δ\sqrt{2\delta}-distinguish any arm but for which πi∣ht′t′≠1k\pi^{t^{\prime}}_{i|h^{t^{\prime}}}\neq\frac{1}{k} for some i∈[k],t′≤ti\in[k],t^{\prime}\leq t. Thus, for at least 12\frac{1}{2} of all probability mass over histories, either πi∣ht′t′=1k\pi^{t^{\prime}}_{i|h^{t^{\prime}}}=\frac{1}{k} for all i,t′≤ti,t^{\prime}\leq t, or hth^{t} must 2δ\sqrt{2\delta}-distinguish some arm. ∎

Appendix C Missing Proofs for the Contextual Bandit Setting

We begin by proving two results related to KWIKToFair. The first, Lemma 8, was used in Section 5 to prove that KWIKToFair is δ\delta-fair in Theorem 5.

We proceed to Theorem 4, used in Section 5 to construct a δ\delta-fair algorithm with quantified regret from KWIK learners.

We use repeated calls to KWIKToFair (δ,T)(\delta,T) to run for an indefinite number of rounds. Specifically, we will make calls E=1,2,…E=1,2,\ldots to KWIKToFair (6δ/π(log⁡(T)2,2E)(6\delta/\pi(\log(T)^{2},2^{E}). We will refer to each such call to KWIKToFair by its epoch EE. By Lemma 8, each epoch EE is 6δ/πE2k6\delta/\pi E^{2}k-fair, i.e. has a 6δ/πE2k6\delta/\pi E^{2}k probability of violating fairness. Therefore by a union bound across epochs, the probability of ever violating fairness through repeated calls to KWIKToFair is bounded above by ∑E=1∞6δ(πE)2=6δπ2∑E=1∞1E2=δ\sum_{E=1}^{\infty}\frac{6\delta}{(\pi E)^{2}}=\frac{6\delta}{\pi^{2}}\sum_{E=1}^{\infty}\frac{1}{E^{2}}=\delta, so the overall algorithm is δ\delta-fair.

Next, by Lemma 9 each epoch EE contributes at most regret 3⋅2EkϵE∗3\cdot 2^{E}k\epsilon^{*}_{E} where ϵE∗\epsilon^{*}_{E} denotes the value of ϵ∗\epsilon^{*} used in epoch EE, i.e. ϵE∗\epsilon^{*}_{E} satisfying ϵE∗=k⋅m(ϵE∗,6δ/πE2,2E)\epsilon^{*}_{E}=k\cdot m(\epsilon^{*}_{E},6\delta/\pi E^{2},2^{E}). Then since each epoch EE covers 2E2^{E} rounds, through round TT the algorithm has used fewer than log⁡(T)\log(T) epochs, and by the doubling trick achieves regret R(T)<∑E=1log⁡(T)3⋅2EkϵE∗=O(Tkϵ∗)=O(k2⋅m(ϵ∗,δ∗))R(T)<\sum_{E=1}^{\log(T)}3\cdot 2^{E}k\epsilon^{*}_{E}=O(Tk\epsilon^{*})=O(k^{2}\cdot m(\epsilon^{*},\delta^{*})). ∎

Next, we address the special subcase of KWIKToFair for linear functions outlined in Corollary 1.

This brings us to the formal algorithm description of ConjunctionBandit and its corresponding regret bound, used in Section 6.1 as an example of an unfair learning algorithm for conjunctions.

We can now upper bound the regret achieved by ConjunctionBandit.

ConjunctionBandit achieves regret R(T)=O(k2d)R(T)=O(k^{2}d).

First, we claim that for every jj, for the duration of the algorithm, that Cj⊆Cj∗C_{j}\subseteq C_{j}^{*}, where CjC_{j} is the true set of variables corresponding to fjf_{j}. This holds at initialization: Cj⊆[d]=Cj∗C_{j}\subseteq[d]=C_{j}^{*}. Suppose the claim holds prior to round tt: if Cj∗C^{*}_{j} is updated in this round, then fj(xjt)=1⇒∀m∈[d]:xj,mt=0,m∉Cjf_{j}(x^{t}_{j})=1\Rightarrow\forall m\in[d]:x^{t}_{j,m}=0,m\notin C_{j}. Thus, Cj∗=Cj∗∖{m:xj,mt=0}=Cj∗∖{m:xj,mt=0∩m∉Cj}⊃CjC^{*}_{j}=C^{*}_{j}\setminus\{m:x^{t}_{j,m}=0\}=C^{*}_{j}\setminus\{m:x^{t}_{j,m}=0\cap m\notin C_{j}\}\supset C_{j}.

Therefore, the algorithm never makes false positive mistakes: in any round tt, j∈St⇒fj(xjt)=1j\in S^{t}\Rightarrow f_{j}(x_{j}^{t})=1. Therefore ConjunctionBandit only accumulates regret in rounds where it makes false negative mistakes by predicting that all arms have reward 0 when some arm has reward 1.

Finally, we prove Lemma 12, which we used in Section 6.1 to translate between fair and KWIK learning on conjunctions.

We mimic the structure of the proof of Theorem 6, once again using FairToKWIK to construct a KWIK learner B\mathcal{B} by running the given fair algorithm A\mathcal{A} on a constructed bandit instance for each context xtx^{t}.

It remains to upper bound m(ϵ,δ)m(\epsilon,\delta). Any round where B\mathcal{B} outputs ⊥\perp means a choice between two contexts, one of which has a difference of 1 between arms. It follows that choosing randomly between both arms and contexts incurs expected regret 1/41/4. Therefore m(ϵ,δ)4<R(m(ϵ,δ),δ∗,d)=R(m(ϵ,δ),δ2T,d)\frac{m(\epsilon,\delta)}{4}<R(m(\epsilon,\delta),\delta^{*},d)=R(m(\epsilon,\delta),\frac{\delta}{2T},d). ∎