Lipschitz Bandits: Regret Lower Bounds and Optimal Algorithms

Stefan Magureanu, Richard Combes, Alexandre Proutiere

Introduction

In their seminal paper, [lai1985] solve the classical stochastic Multi-Armed Bandit (MAB) problem. In this problem, the successive rewards of a given arm are i.i.d., and the expected rewards of the various arms are not related. They derive an asymptotic (when the time horizon grows large) lower bound of the regret satisfied by any algorithm, and present an algorithm whose regret matches this lower bound. This initial algorithm was quite involved, and many researchers have, since then, tried to devise simpler and yet efficient algorithms. The most popular of these algorithms are UCB [auer2002] and its extensions, e.g. KL-UCB [garivier2011], [cappe2012] – note that the KL-UCB algorithm was initially proposed and analysed in [lai1987], see (2.6). When the expected rewards of the various arms are not related as in [lai1985], the regret of the best algorithm essentially scales as O(Klog⁡(T))O(K\log(T)) where KK denotes the number of arms, and TT is the time horizon. When KK is very large or even infinite, MAB problems become more challenging. Fortunately, in such scenarios, the expected rewards often exhibit some structural properties that the decision maker can exploit to design efficient algorithms. Various structures have been investigated in the literature, e.g., Lipschitz [agrawal95], [kleinberg2008], [bubeck08], linear [dani08], and convex [kalai05].

In this paper, we revisit bandit problems where the expected reward is a Lipschitz function of the arm. The set of arms is a subset of $$ and we address both discrete Lipschitz bandits where this set is finite, and continuous Lipschitz bandits where this set is . For discrete Lipschitz bandits, we derive problem specific regret lower bounds, and propose OSLB (Optimal Sampling for Lipschitz Bandits), an algorithm whose regret matches our lower bound. Most previous work on Lipschitz bandit problems address the case where the set of arms is , [agrawal95], [kleinberg2008], [bubeck08]. For these problems, there is no known problem specific regret lower bound. In [kleinberg2008], a regret lower bound is derived for the worst Lipschitz structure. The challenge in the design of efficient algorithms for continuous Lipschitz bandits stems from the facts that such algorithms should adaptively select a subset of arms to sample from, and based on the observed samples, establish tight confidence intervals and construct arm selection rules that optimally exploit the Lipschitz structure revealed by past observations. The algorithms proposed in [agrawal95], [kleinberg2008], [bubeck08] adaptively define the set of arms to play, but used simplistic UCB indexes to sequentially select arms. In turn, these algorithms fail at exploiting the problem structure revealed by the past observed samples. For continuous bandits, we propose to first discretize the set of arms (as in [kleinberg2008]), and then apply OSLB, an algorithm that optimally exploits past observations and hence the problem specific structure. As it turns out, this approach outperforms algorithms directly dealing with continuous sets of arms.

(a) For discrete Lipschitz bandit problems, we derive an asymptotic regret lower bound satisfied by any algorithm. This bound is problem specific in the sense that it depends in an explicit manner on the expected rewards of the various arms (this contrasts with existing lower bounds for continuous Lipschitz bandits).

(b) We propose OSLB (Optimal Sampling for Lipschitz Bandits), an algorithm whose regret matches our lower bound. We further present CKL-UCB (Combined KL-UCB), an algorithm that exhibits lower computational complexity than that of OSLB, and that is yet able to exploit the Lipschitz structure.

(c) We provide a finite time analysis of the regret achieved under OSLB and CKL-UCB. The analysis relies on a new concentration inequality for a weighted sum of KL divergences between the empirical distributions of rewards and their true distributions. We believe that this inequality can be instrumental for various bandit problems with structure.

(d) We evaluate our algorithms using numerical experiments for both discrete and continuous sets of arms. We compare their performance to that obtained using existing algorithms for continuous bandits.

(e) We extend our results and algorithms to the case of contextual bandits with similarities as investigated in [slivkins11].

Models

We consider a stochastic multi-armed bandit problem where the set of arms is a subset {x1,…,xK}\{x_{1},\ldots,x_{K}\} of the interval $.Resultscanbeeasilyextendedtothecasewherethesetofarmsisasubsetofametricspaceasconsideredin[kleinberg2008].Thesetofarmsisoffinitecardinality,possiblylarge,andweassumewithoutlossofgeneralitythat. Results can be easily extended to the case where the set of arms is a subset of a metric space as considered in [kleinberg2008]. The set of arms is of finite cardinality, possibly large, and we assume without loss of generality thatx_{1}.ProblemswithcontinuoussetsofarmsarediscussedinSectionLABEL:sec:num.Timeproceedsinroundsindexedby. Problems with continuous sets of arms are discussed in Section LABEL:sec:num. Time proceeds in rounds indexed byn=1,2,\ldots.Ateachround,thedecisionmakerselectsanarm,andobservesthecorrespondingrandomreward.Arm. At each round, the decision maker selects an arm, and observes the corresponding random reward. Armx_{k}isreferredtoasarmis referred to as armkforsimplicity.Foranyfor simplicity. For anyk,therewardofarm, the reward of armkinroundin roundnisdenotedbyis denoted byX_{k}(n),andthesequenceofrewards, and the sequence of rewards(X_{k}(n))_{n\geq 1}isi.i.d.withBernoullidistributionofmeanis i.i.d. with Bernoulli distribution of mean\theta_{k}(theresultscanbegeneralizedtodistributionsbelongingtoacertainparametrizedfamilyofdistributions,buttosimplifythepresentation,werestrictourattentiontoBernoullirewards).Thevector(the results can be generalized to distributions belonging to a certain parametrized family of distributions, but to simplify the presentation, we restrict our attention to Bernoulli rewards). The vector\theta=(\theta_{1},\ldots,\theta_{K})representstheexpectedrewardsofthevariousarms.Letrepresents the expected rewards of the various arms. Let{\cal K}=\{1,\ldots,K\}.Wedenoteby. We denote by\theta^{\star}=\max_{k\in{\cal K}}\theta_{k}theexpectedrewardofthebestarm.Asequentialselectionalgorithmthe expected reward of the best arm. A sequential selection algorithm\piselectsinroundselects in roundnanarman armk^{\pi}(n)\in{\cal K}thatdependsonthepastobservations.Inotherwords,foranythat depends on the past observations. In other words, for anyn\geq 1,if, if{\cal F}_{n}^{\pi}denotesthedenotes the\sigma−algebrageneratedby-algebra generated by(k^{\pi}(t),X_{k^{\pi}(t)}(t))_{1\leq t\leq n},then, thenk^{\pi}(n+1)isis{\cal F}_{n}^{\pi}−measurable.Let-measurable. Let\Pi$ denote the set of all possible sequential selection algorithms.

We assume that the expected reward is a Lipschitz function of the arm, and this structure is known to the decision maker. More precisely, there exists a positive constant LL such that for all pairs of arms (k,k′)∈K(k,k^{\prime})\in{\cal K},

We assume that LL is also known. We denote by ΘL\Theta_{L} the set of vectors in K^{K} satisfying (1). The objective is to devise an algorithm π∈Π\pi\in\Pi that maximizes the average cumulative reward up to a certain round TT referred to as the time horizon (TT is typically large). Such an algorithm should optimally exploit the Lipschitz structure of the problem. As always in bandit optimization, it is convenient to quantify the performance of an algorithm π∈Π\pi\in\Pi through its expected regret (or regret for short) defined by:

Regret Lower Bound

In this section, we derive an asymptotic (when TT grows large) regret lower bound satisfied by any algorithm π∈Π\pi\in\Pi. We denote by I(x,y)=xlog⁡(xy)+(1−x)log⁡(1−x1−y)I(x,y)=x\log({x\over y})+(1-x)\log({1-x\over 1-y}) the KL divergence between two Bernoulli distributions with respective means xx and yy. Fix the average reward vector θ=(θ1,…,θK)\theta=(\theta_{1},\ldots,\theta_{K}). Let K−={k∈K:θk<θ⋆}{\cal K}^{-}=\{k\in{\cal K}:\theta_{k}<\theta^{\star}\} be the set of sub-optimal arms. For any k∈K−k\in{\cal K}^{-}, we define λk=(λ1,…,λK)\lambda^{k}=(\lambda_{1},\ldots,\lambda_{K}) as: ∀i∈K,λik=max⁡{θi,θ⋆−L∣xk−xi∣}\forall i\in{\cal K},\quad\lambda^{k}_{i}=\max\{\theta_{i},\theta^{\star}-L|x_{k}-x_{i}|\}. The expected reward vector λk\lambda^{k} is illustrated in Figure 1, and may be interpreted as the most confusing reward vector among vectors in ΘL\Theta_{L} such that arm kk (which is sub-optimal under θ\theta) is optimal under λk\lambda^{k}. This interpretation will be made clear in the proof of the following theorem. Without loss of generality, we restrict our attention to so-called uniformly good algorithms, as defined in [lai1985]. π∈Π\pi\in\Pi is uniformly good if for all θ∈ΘL\theta\in\Theta_{L}, Rπ(T)=o(Ta)R^{\pi}(T)=o(T^{a}) for all a>0a>0. Uniformly good algorithms exist – for example, the UCB algorithm is uniformly good.

Let π∈Π\pi\in\Pi be a uniformly good algorithm. For any θ∈ΘL\theta\in\Theta_{L}, we have:

where C(θ)C(\theta) is the minimal value of the following optimization problem:

The regret lower bound is a consequence of results in optimal control of Markov chains, see [graves1997]. All proofs are presented in appendix. As in classical bandits, the minimal regret scales logarithmically with the time horizon. Observe that the lower bound (2) is smaller than the lower bound derived in [lai1985] when the various average rewards (θk,k∈K)(\theta_{k},k\in{\cal K}) are not related (i.e., in absence of the Lipschitz structure). Hence (2) quantifies the gain one may expect by designing algorithms optimally exploiting the structure of the problem. Note that for any k∈K−k\in{\cal K}^{-}, the variable ckc_{k} corresponding to a solution of (3) characterizes the number of times arm kk should be played under an optimal algorithm: arm kk should be roughly played cklog⁡(n)c_{k}\log(n) times up to round nn.

It should be also observed that our lower bound is problem specific (it depends on θ\theta), which contrasts with existing lower bounds for continuous Lipschitz bandits, see e.g. [kleinberg2008]. The latter are typically derived by selecting the problems that yield maximum regret. However, our lower bound is only valid for bandits with a finite set of arms, and cannot easily be generalized to problems with continuous sets of arms.

Algorithms

In this section, we present two algorithms for discrete Lipschitz bandit problems. The first of these algorithms, referred to as OSLB (Optimal Sampling for Lipschitz Bandits), has a regret that matches the lower bound derived in Theorem 3.1, i.e., it is asymptotically optimal. OSLB requires that in each round, one solves an LP similar to (3). The second algorithm, CKL-UCB (Combined KL-UCB) is much simpler to implement, but has weaker theoretical performance guarantees, although it provably exploits the Lipschitz structure.

To formally describe OSLB, we introduce the following notations. For any n≥1n\geq 1, let k(n)k(n) be the arm selected under OSLB in round nn. tk(n)t_{k}(n) denotes the number of times arm kk has been selected up to round n−1n-1. By convention, tk(1)=0t_{k}(1)=0. The empirical reward of arm kk at the end of round (n−1)(n-1) is θ^k(n)=1tk(n)∑t=1n−11{k(t)=k}Xk(t)\hat{\theta}_{k}(n)={1\over t_{k}(n)}\sum_{t=1}^{n-1}{\bf 1}\{k(t)=k\}X_{k}(t), if tk(n)>0t_{k}(n)>0 and θ^k(n)=0\hat{\theta}_{k}(n)=0 otherwise. We denote by L(n)=arg⁡max⁡k∈Kθ^k(n)L(n)=\arg\max_{k\in{\cal K}}\hat{\theta}_{k}(n) the arm with the highest empirical reward (ties are broken arbitrarily) at the end of round n−1n-1. Arm L(n)L(n) is referred to as the leader for round nn. We also define θ^⋆(n)=θ^L(n)(n)\hat{\theta}^{\star}(n)=\hat{\theta}_{L(n)}(n) as the empirical reward of the leader at the end of round n−1n-1. Let f(n)=log⁡(n)+(3K+1)log⁡log⁡(n)f(n)=\log(n)+(3K+1)\log\log(n). Further define, for all q≥0q\geq 0 and kk, the Lipschitz vector λq,k\lambda^{q,k} such that for any k′k^{\prime}, λk′q,k=q−L∣xk−xk′∣\lambda_{k^{\prime}}^{q,k}=q-L|x_{k}-x_{k^{\prime}}|. The sequential decisions made under OSLB are based on the indexes of the various arms. The index bk(n)b_{k}(n) of arm kk for round nn is defined by:

Note that the index bk(n)b_{k}(n) is always well defined, even for small values of nn, e.g. n=1n=1 (we have for all x>0x>0, I+(0,x)=−log⁡(1−x)I^{+}(0,x)=-\log(1-x)). For any θ∈ΘL\theta\in\Theta_{L}, let C(θ)C(\theta) denote the minimal value of the optimization problem (3), and let (ck(θ),k∈K−)(c_{k}(\theta),k\in{\cal K}^{-}) be the values of the variables (ck,k∈K−)(c_{k},k\in{\cal K}^{-}) in (3) yielding C(θ)C(\theta). For simplicity, we define C^(n)=C(θ^(n))\hat{C}(n)=C(\hat{\theta}(n)), and c^k(n)=ck(θ^(n))\hat{c}_{k}(n)=c_{k}(\hat{\theta}(n)) for any k∈K−(n)k\in{\cal K}^{-}(n) where K−(n)={k:θ^k(n)<θ^⋆(n)}{\cal K}^{-}(n)=\{k:\hat{\theta}_{k}(n)<\hat{\theta}^{\star}(n)\}. The design of OSLB stems from the observation that an optimal algorithm should satisfy lim⁡n→∞tk(n)/(ck(θ)log⁡(n))=1\lim_{n\to\infty}t_{k}(n)/(c_{k}(\theta)\log(n))=1, almost surely, for all k∈K−k\in{\cal K}^{-}. Hence we should force the exploration of arm k∈K−(n)k\in{\cal K}^{-}(n) in round nn if tk(n)<c^k(n)log⁡(n)t_{k}(n)<\hat{c}_{k}(n)\log(n). We define the arm k‾(n)\overline{k}(n) to explore as k‾(n)=arg⁡min⁡k∈Ke(n)tk(n)\overline{k}(n)=\arg\min_{k\in K_{e}(n)}t_{k}(n) where Ke(n)={k∈K−(n):tk(n)≤c^k(n)log⁡(n)}K_{e}(n)=\{k\in{\cal K}^{-}(n):t_{k}(n)\leq\hat{c}_{k}(n)\log(n)\}. If Ke(n)=∅K_{e}(n)=\emptyset, k‾(n)=−1\overline{k}(n)=-1 (a dummy arm). Finally we define the least played arm as k‾(n)=arg⁡min⁡ktk(n)\underline{k}(n)=\arg\min_{k}t_{k}(n). In the definitions of k‾(n)\overline{k}(n) and k‾(n)\underline{k}(n), ties are broken arbitrarily. We are now ready to describe OSLB. Its pseudo-code is presented in Algorithm 1.

Under OSLB, the leader is selected if its empirical average exceeds the index of other arms. If this is not the case, OSLB selects the least played arm k‾(n)\underline{k}(n), if the latter has not been played enough, and arm k‾(n)\overline{k}(n) otherwise. Note that the description of OSLB is valid in the sense that k‾(n)≠−1\overline{k}(n)\neq-1 if θ^⋆(n)<max⁡k≠L(n)bk(n)\hat{\theta}^{\star}(n)<\max_{k\neq L(n)}b_{k}(n). After each round, all variables are updated, and in particular c^k(n)\hat{c}_{k}(n) for any k∈K−(n)k\in{\cal K}^{-}(n), which means that at each round we solve an LP, similar to (3).

2 The CKL-UCB Algorithm

Next, we present the algorithm CKL-UCB (Combined KL - UCB). The sequential decisions made under CKL-UCB are based on the indexes bk(n)b_{k}(n), and CKL-UCB explores the apparently suboptimal arms by choosing the least played arms first. When the leader L(n)L(n) has the largest index, it is played, and otherwise we play the arm in {k:bk(n)>bL(n)(n)}\{k:b_{k}(n)>b_{L(n)}(n)\}, the set of arms which are possibly better than the leader, with the least number of current plays. Note that in practice, the forced log⁡log⁡(n)\log\log(n) exploration is unnecessary and only appears to aide in the regret analysis.

The rationale behind CKL-UCB is that if we are given a set of suboptimal arms, by exploring them, we will first eliminate arms whose expected reward is low (these arms do not require many plays to be eliminated). Note that the arm chosen by CKL-UCB is directly computed from the indexes, without solving an LP, and hence CKL-UCB is computationally light. From a practical perspective, CKL-UCB should also be more robust than OSLB in the sense that it does not take decisions based on the solution of the LP calculated with empirical averages θ^(n)\hat{\theta}(n). This could be problematic if the LP solution is very sensitive to errors in the estimate of θ\theta.

Regret Analysis

In this section, we provide finite time upper bounds for the regret achieved under OSLB and CKL-UCB.

To analyse the regret of algorithms for bandit optimization problems, one often has to leverage results related to the concentration-of-measure phenomenon. More precisely, here, in view of the definition of the indexes bk(n)b_{k}(n), we need to establish a concentration inequality for a weighted sum of KL divergences between the empirical distributions of rewards and their true distributions. We derive such an inequality. The latter extends to the multi-dimensional case the concentration inequality derived in [Garivier2013] for a single KL divergence. We believe that this inequality can be instrumental in the analysis of general structured bandit problems, as well as for statistical tests involving vectors whose components have distributions in a one-parameter exponential family (such as Bernoulli or Gaussian distributions). For simplicity, the inequality is stated for Bernoulli random variables only.

The proof of Theorem 5.1 involves tools that are classically used in the derivation of concentration inequalities, but also requires the use of stochastic ordering techniques, see e.g. [MullerStoyan].

2 Finite time analysis of OSLB

Next we provide a finite time analysis of the regret achieved under OSLB, under the following mild assumption. This assumption greatly simplifies the analysis.

The solution of the LP \eqrefeq:opt1 is unique.

It should be observed that the set of parameters θ∈ΘL\theta\in\Theta_{L} such that Assumption 1 is satisfied constitutes a dense subset of ΘL\Theta_{L}.

For all ϵ>0\epsilon>0, under Assumption 1, the regret achieved under π=OSLB(ϵ)\pi=\text{OSLB}(\epsilon) satisfies: for all θ∈ΘL\theta\in\Theta_{L}, for all δ>0\delta>0 and T≥1T\geq 1,

where Cδ(θ)→C(θ)C^{\delta}(\theta)\to C(\theta), as δ→0+\delta\to 0^{+}, and C1>0C_{1}>0.

In view of the above theorem, when ϵ\epsilon is small enough, OSLB(ϵ\epsilon) approaches the fundamental performance limit derived in Theorem 3.1. More precisely, we have for all ϵ>0\epsilon>0 and δ>0\delta>0:

In particular, for any ζ>0\zeta>0, one can find ϵ>0\epsilon>0 and δ>0\delta>0 such that Cδ(θ)(1+ϵ)≤(1+ζ)C(θ)C^{\delta}(\theta)(1+\epsilon)\leq(1+\zeta)C(\theta), and hence, under π=\pi=OSLB(ϵ\epsilon),

3 Finite Time analysis of CKL-UCB

In order to analyze the regret of CKL-UCB, we define the following optimization problem. Define the matrix of Kullback-Leibler divergence numbers A=(aik)i,k∈KA=(a_{ik})_{i,k\in{\cal K}} with aik=I(θi,λik,θ⋆)a_{ik}=I(\theta_{i},\lambda^{k,\theta^{\star}}_{i}). Consider an arm k≠k⋆k\neq k^{\star}, a subset of arms N⊂{1,…,K}∖{k,k⋆}{\cal N}\subset\{1,\dots,K\}\setminus\{k,k^{\star}\}, and α0≥0\alpha_{0}\geq 0. We define dk(A,α0,N)d_{k}(A,\alpha_{0},{\cal N}) the optimal value of the following linear program: