Approximation Algorithms for Restless Bandit Problems

Sudipto Guha, Kamesh Munagala, Peng Shi

Introduction

The celebrated multi-armed bandit problem (MAB) models the central trade-off in decision theory between exploration and exploitation, or in other words between learning about the state of a system and utilizing the system. In this problem, there are nn competing options, referred to as “arms,” yielding unknown rewards {ri}\{r_{i}\}. Playing an arm yields a reward drawn from an underlying distribution, and the information from the reward observed partially resolves its distribution. The goal is to sequentially play the arms in order to maximize reward obtained over some time horizon.

Typically, the multi-armed bandit problem is studied under one of two assumptions:

The underlying reward distribution for each arm is fixed but unknown, and a prior of this distribution is specified as input (stochastic multi-armed bandits ); or

The underlying rewards can vary with time in an adversarial fashion, and the comparison is against an optimal strategy that always plays one arm, albeit with the benefit of hindsight (adversarial multi-armed bandits ).

Relaxing both the assumptions simultaneously leads to the notorious restless bandit problem in decision theory, which in its ultimate generality, is PSPACE hard to even approximate . In the last two decades, in spite of the growth of approximation algorithms and the numerous applications of restless bandits , the approximability of these have remained unexplored. In this paper, we provide a general algorithmic technique that yields the first O(1)O(1) approximations to a large class of these problems that are commonly studied in practice.

An important subclass of restless bandit problems are situations where the system is agnostic of the exploration – or the exploration gives us information about the state of the system but does not interfere with the evolution of the system. One such problem is the Feedback MAB which models opportunistic multi-channel access at a wireless node : The bandit corresponds to a wireless node with access to multiple noisy channels (arms). The state of the arm is the state (good/bad) of the channel, which varies according to a bursty 22-state Markov process. Playing the arm corresponds to transmitting on the channel, yielding reward if the transmission is successful (good channel state), and at the same time revealing to the transmitter the current state of the channel. This corresponds to the Gilbert-Elliot model of channel evolution. The goal is to find a transmission policy of choosing one channel to transmit on every time step, that maximizes the long-term transmission rate. Feedback MAB also models Unmanned Aerial Vehicle (UAV) routing : the arms are locations of possibly interesting events, and whether a location is interesting or uninteresting follows a 22-state Markov processes. Visiting a location by the UAV corresponds to playing the arm, and yields reward if an interesting event is detected. The goal is to find a routing policy that maximizes the long-term average reward from interesting events.

This problem is also a special case of Partially Observable Markov Decision Processes or POMDPs . The state of each arm evolves according to a Markov chain whose state is only observed when the arm is played. The player’s partial information, encapsulated by the last observed state and the number of steps since last playing, yields a belief on the current state. (This belief is simply a probability distribution for the arm being good or bad.) The player uses this partial information in making the decision about which arm to play next, which in turn affects the information at future times. While such POMDPs are widely used in control theory, they are in general notoriously intractable . In this paper we provide the first O(1)O(1) approximation for the Feedback MAB and a number of its important extensions. This represents the first approximation guarantee for a POMDP, and the first guarantee for a MAB problem with time-varying rewards that compares to an optimal solution allowed to switch arms at will.

Before we present the problem statements formally, we survey literature on the stochastic multi-armed bandit problem. (We discuss adversarial MAB after we present our model and results.)

1 Background: Stochastic MAB and Restless Bandits

The stochastic MAB was first formulated by Arrow et al and Robbins . It resides under a Bayesian (or decision theoretic) setting: we successively choose between several options given some prior information (specified by distributions), and our beliefs are updated via Bayes’ rule conditioned on the results of our choices (observed rewards).

More formally, we are given a “bandit” with nn independent arms. Each arm ii can be in one of several states belonging to the set Si\mathcal{S}_{i}. At any time step, the player can play one arm. If arm ii in state k∈Sik\in\mathcal{S}_{i} is played, it transitions in a Markovian fashion to state j∈Sij\in\mathcal{S}_{i} w.p. qkjiq^{i}_{kj}, and yields reward rki≥0r^{i}_{k}\geq 0. The states of arms that are not played stay the same. The initial state models the prior knowledge about the arm. The states in general capture the posterior conditioned on the observations from sequential plays. The problems is, given the initial states of the arms, find a policy for playing the arms in order to maximize one of the following infinite horizon quantities: ∑t=0∞Rtβt\sum_{t=0}^{\infty}R_{t}\beta^{t} (discounted reward), or lim⁡t→∞1t∑t=0∞Rt\lim_{t\rightarrow\infty}\frac{1}{t}\sum_{t=0}^{\infty}R_{t} (average reward), where RtR_{t} is the expected reward of the policy at time step tt and β∈(0,1)\beta\in(0,1) is a discount factor. A policy is a (possibly implicit) specification of fixing up front which arm (or distribution over arms) to play for every possible joint state of the arms.

It is well-known that Bellman’s equations yield the optimal policy by dynamic programming. The main issue in the stochastic setting is in efficiently computing and succinctly specifying the optimal policy: The input to an algorithm specifies the rewards and transition probabilities for each arm, and thus has size linear in nn, but the state space is exponential in nn. We seek polynomial-time algorithms (in terms of the input size) that compute (near-) optimal policies with poly-size specifications. Moreover, we require the policies to be executable each step in poly-time.

Note that since a policy is a fixed (possibly randomized) mapping from the exponential size joint state space to a set of actions, ensuring poly-time computation and execution often requires simplifying the description of the optimal policy using the problem structure. The stochastic MAB problem is the most well-known decision problem for which such a structure is known: The optimal policy is a greedy policy termed the Gittins index policy . In general, an index policy specifies a single number called “index” for each state k∈Sik\in\mathcal{S}_{i} for each arm ii, and at every time step, plays the arm whose current state has the highest index. Index policies are desirable since they can be compactly represented, so they are the heuristic method of choice for several MDP problems. In addition, index policies are also optimal for several generalizations of the stochastic MAB, such as arm-acquiring bandits and branching bandits . In fact, a general characterization of problems for which index policies are optimal is now known .

On the positive side, Whittle presents a poly-size LP relaxation of the problem. In this relaxation, the constraint that exactly one arm is played per time step is replaced by the constraint that one arm on average is played per time step. In the LP, this is the only constraint connecting the arms. (Such decision problems have been termed weakly coupled systems .) Based on the Lagrangean of this relaxation, Whittle defines a heuristic index that generalizes the Gittins index. This is termed the Whittle Index (see Section 3). Though this index is widely used in practice and has excellent empirical performance , the known theoretical guarantees ( ) are very weak. In summary, despite being very well-motivated and extensively studied, there are almost no positive results on approximation guarantees for the restless bandit problems.

2 Results and Roadmap

We provide the first approximation algorithm for both a restless bandit problem and a partially observable Markov decision problem by providing a 2+ϵ2+\epsilon-approximate index policy for the Feedback MAB problem which belongs to both classes. We show several other results; however, before presenting the specifics, we place our contribution in the context of existing techniques in control theory.

Our algorithmic technique for this problem (Section 2) involves solving (in polynomial time) the Lagrangean of Whittle’s LP relaxation for a suitable (and subtle) “balanced” choice of the Lagrange multiplier, converting this into a feasible index policy, and using an amortized accounting of the reward for the analysis. We show that this technique is closely related to the Whittle index , and in fact, provide the first approximation analysis of (a subtle variant of) the Whittle index which is widely used in control theory literature in the context of Feedback MAB problems (Section 3). We believe that analyzing the performance guarantees of the numerous indices used in the literature will increase and our analysis will provide an useful template.

However, the key difference between Whittle’s index and our index policy is the following: The former chooses one Lagrange multiplier (or index) per state of each arm, with the policy playing the arm with the largest index. This has the advantage of separate efficient computations for different arms; and in addition, such a policy (the Gittins index policy ) is known to be optimal for the stochastic MAB. However, it is well-known that this intuition about playing the arm with the largest index being optimal becomes increasingly invalid when complicated side-constraints such as time-varying rewards (Feedback MAB), blocking plays, and switching costs are introduced. In fact, we show a concrete problem in Section 8 where the Whittle index has a Ω(n)\Omega(n) performance gap.

In contrast to the Whittle index, our technique chooses a single global Lagrange multiplier via a careful accounting of the reward, and develops a feasible policy from it. Unlike the Whittle index, this technique is sufficiently robust to encompass a large number of often-used variants of Feedback MAB problems: Plays with varying duration (Section 5), switching costs (Section 6), and observation costs (Section 7). In fact, we identify a general Monotone condition in restless bandit problems under which our technique applies (Section 4). Furthermore, our technique provides O(1)O(1) approximations to other classic restless bandit problems even when Whittle’s index is polynomially sub-optimal: We show an example in the non-preemptive machine replenishment problem (Section 8). Finally, since our technique is based on solving the LagrangeanThis aspect is explicit in Sections 2 and 3. However, in Sections 4–8, we have presented our algorithm in terms of first solving a linear program. However, it is easy to see that this is equivalent to solving the Lagrangean, and hence to the computation required for Whittle’s index. The details are quite standard and can be reconstructed from those in Sections 2 and 3. (just like the Whittle index), the computation time is comparable to that for such indices.

In summary, our technique succeeds in finding the first provably approximate policies for widely-studied control problems, without sacrificing efficiency in the process. We believe that the generality of this technique will be useful for exploring other useful variations of these problems as well as providing an alternate algorithm for practitioners.

In terms of specific results, the paper is organized as follows:

We begin by presenting a 2+ϵ2+\epsilon-approximation for Feedback bandits in Section 2. We also provide a e/(e−1)e/(e-1) integrality gap instance showing that out analysis is nearly tight.

In Section 3 we show that our analysis technique can be used to prove that a thresholded variant of the Whittle index is a 22 approximation. We also show instances where the reward of any index policy is at least 1+Ω(1)1+\Omega(1) factor from the reward of the optimal policy. Therefore although the Whittle index is not optimal, our result sheds light on its observed superior performance in this specific context.

In Section 4 we generalize the result in Section 2 to define a general sub-class of restless bandit problems based on a critical set of properties: Separability and monotonicity. For this subclass, termed Monotone bandits (which generalizes Feedback MAB), we provide a 22 approximation by generalizing the technique in Section 2. Our technique now introduces a balance constraint in the dual of the natural LP relaxation, and constructs the index policy from the optimal dual solution. We further show that in the absence of monotonicity or separability, the problem is either NP-Hard to approximate, or has unbounded integrality gap respectively.

In Section 5 we extend Feedback MAB (as well as Monotone bandits) to consider multiple simultaneous blocking plays of varying durations.

In Section 6 we extend Feedback MAB (and Monotone bandits) to consider switching costs.

In Section 7 we extend Feedback MAB to a variant where the information acquisition is varied, namely, an arm has to be explicitly probed at some cost to obtain its state.

In Section 8, we derive a 22-approximation for a classic, restless bandit problem called non-preemptive machine replenishment . We also show that the Whittle Index for this problem has a Ω(n)\Omega(n) factor worse performance compared to the optimal policy. Thus the technique introduced in this paper can be superior to Whittle index or similar policies.

3 Related Work

Contrast with the Adversarial MAB Problem. While our problem formulations are based on the stochastic MAB problem, one might be interested in a formulation based on the adversarial MAB . Such a formulation might be to assume that rewards can vary adversarially, and that the objective is to compete with a restricted optimal solution that always plays the same arm but with the benefit of hindsight.

These different formulations result in fundamentally different problems. Under our formulation, the difficulty is computational: we want to compute policies for playing the arms, assuming stochastic models of how the system varies with time. under the adversarial formulation, the difficulty is informational: we would be interested in the regret of not having the benefit of hindsight. A sequence of papers show near-tight regret bounds in fairly general settings . However, applying this framework is not satisfying: It is straightforward to show that a policy for Feedback MAB that is allowed to switch arms can be Ω(n)\Omega(n) times better than a policy that is not allowed to do so (even assuming hindsight). Another approach would be to define each policy as an “expert”, and use the low-regret experts algorithm ; however, the number of policies is super-exponentially large, which would lead to weak regret bounds, along with exponential-size policy descriptions and exponential per-step execution time.

We note that developing regret bounds in the presence of changing environments has received significant interest recently in computational learning ; however, this direction requires strong assumptions such as bounded switching between arms and slowly varying environments , both of which assumptions are inapplicable to Feedback MAB. In independent work, Slivkins and Upfal consider the modification of Feedback MAB where the underlying state of the arms vary according to a reflected Brownian motion with bounded variance. As discussed in , this problem is technically very different from ours, even requiring different performance metrics.

The results in consider variants of the stochastic MAB where the underlying reward distribution does not change and only a limited time is allotted to learning about this environment. Although several of these results use LP rounding, they have little connection to the duality based framework considered here.

Our duality based framework shows a 22-approximate index policy for non-preemptive machine replenishment (Section 8). Elsewhere, Munagala and Shi considered the special case of preemptive machine replenishment problem, for which the Whittle index is equivalent to a simple greedy scheme. They show that this greedy policy, though not optimal, is a 1.511.51 approximation. However, the techniques there are based on queuing analysis, and do not extend to the non-preemptive case where the Whittle index can be an arbitrarily poor approximation (as shown in Section 8).

Our solution technique differs from primal-dual approximation algorithms and online algorithms , which relax either the primal or the dual complementary slackness conditions using a careful dual-growing procedure. Our index policy and associated potential function analysis crucially exploit the structure of the optimal dual solution that is gleaned using both the exact primal as well as dual complementary slackness conditions. Furthermore, our notion of dual balancing is very different from that used by Levi et al for designing online algorithms for stochastic inventory management.

The Feedback MAB Problem

In this problem, first formulated independently in , there is a bandit with nn independent arms. Arm ii has two states: The good state gig_{i} yields reward rir_{i}, and the bad state bib_{i} yields no reward. The evolution of state of the arm follows a bursty 22-state Markov process which does not depend on whether the arm is played or not at a time slot. Let sits_{it} denote the state of arm ii at time tt. Denote the transition probabilities of the Markov chain as follows: Pr⁡[si(t+1)=gi∣sit=bi]=αi\Pr[s_{i(t+1)}=g_{i}|s_{it}=b_{i}]=\alpha_{i} and Pr⁡[si(t+1)=bi∣sit=gi]=βi\Pr[s_{i(t+1)}=b_{i}|s_{it}=g_{i}]=\beta_{i}. The αi,βi,ri\alpha_{i},\beta_{i},r_{i} values are specified as input. The “burstiness” assumption simply means αi+βi≤1−δ\alpha_{i}+\beta_{i}\leq 1-\delta for some small δ>0\delta>0 specified as part of the input. The evolution of states for different arms are independent. Any policy chooses at most one arm to play every time slot. Each play is of unit duration, yields reward depending on the state of the arm, and reveals to the policy the current state of that arm. When an arm is not played, the true underlying state cannot be observed, which makes the problem a POMDP. The goal is to find a policy to play the arms in order to maximize the infinite horizon average reward.

First observe that we can change the reward structure of Feedback MAB so that when an arm is played, we obtain reward from the last-observed state instead of the currently observed state. This does not change the average reward of any policy. This allows us to encode all the state of each arm as follows.

From the perspective of any policy, the state of any arm can be encoded as (s,t)(s,t), which denotes that it was last observed t≥1t\geq 1 steps ago to be in state s∈{gi,bi}s\in\{g_{i},b_{i}\}.

Note that any policy maps each possible joint state of nn arms into an action of which arm to play. Such a mapping has size exponential in nn. The standard heuristic is to consider index policies: Policies which define an “index” or number for each state (si,t)(s_{i},t) and play the arm with the highest current index. The following theorem shows that playing the arm with the highest myopic reward does not work, and that index policies in general are non-optimal. Therefore, our problem is interesting and the best we can hope for with index policies is a O(1)O(1) approximation.

(Proved in Appendix A) For Feedback MAB, the reward of the optimal policy has an Ω(n)\Omega(n) gap against that of the myopic index policy and an Ω(1)\Omega(1) gap against that of the optimal index policy.

In this section, we show that a simple index policy is a (2+ϵ)(2+\epsilon) approximation. This is based on a natural LP relaxation suggested by Whittle which we discuss in Section 2.1; this formulation will have infinitely many constraints. We then consider the Lagrangean of this formulation in Section 2.2, and analyze its structure via duality, which enables computing its optimal solution in polynomial time. At this point, we deviate significantly from previous literature, and present our main contribution in Section 2.3: A subtle and powerful “balanced” choice of the Lagrange multiplier, which enables the design of an intuitive index policy, BalancedIndex, along with an equally intuitive analysis. We use duality and potential function arguments to show that the policy is (2+ϵ)(2+\epsilon) approximation. We conclude by showing that the gap of Whittle’s relaxation is e/(e−1)≈1.58e/(e-1)\approx 1.58, indicating that our analysis is reasonably tight. This analysis technique generalizes easily (explored in Sections 4 – 8) and has rich connections to other index policies, most notably the Whittle index (explored in Section 3).

1 Whittle’s LP

Whittle’s LP is obtained by effectively replacing the hard constraint of playing one arm per time step, with allowing multiple plays per step but requiring one play per step on average. Hence, the LP is a relaxation of the optimal policy.

Let vitv_{it} be the probability of the arm ii being in state gig_{i} when it was last observed in state bib_{i} exactly tt steps ago. Let uitu_{it} be the same probability when the last observed state was gig_{i}. We have:

The functions vitv_{it} and 1−uit1-u_{it} are monotonically increasing and concave functions of tt.

We now present Whittle’s LP, and interpret it in the lemma that immediately follows.

The optimal objective to Whittle’s LP, OPTOPT, is at least the value of the optimal policy.

Consider the optimal policy. In the execution of this policy, for each arm ii and state (s,t)(s,t) for s∈{g,b}s\in\{g,b\}, let the variable xstix^{i}_{st} denote the probability (or fraction of time steps) of the event: Arm ii is in state (s,t)(s,t) and gets played. Let ystiy^{i}_{st} correspond to the probability of the event that the state is (s,t)(s,t) and the arm is not played. Since the underlying Markov chains are ergodic, the optimal policy when executed is ergodic, and the above probabilities are well-defined.

Now, at any time step, some arm ii in state (s,t)(s,t) is played, which implies the xstix^{i}_{st} values are probabilities of mutually exclusive events. This implies they satisfy the first constraint in the LP. Similarly, for each arm ii, at any step, this arm is in some state (s,t)(s,t) and is either played or not played, so that the xsti,ystix^{i}_{st},y^{i}_{st} correspond to mutually exclusive events. This implies that for each ii, they satisfy the second constraint. For any arm ii and state (s,t)(s,t), the LHS of the third constraint is the probability of being in this state, while the RHS is the probability of entering this state; these are clearly identical in the steady state. For arm ii, the LHS of the fourth (resp. fifth) constraint is the probability of being in state (g,1)(g,1) (resp. (b,1)(b,1)), and the RHS is the probability of entering this state; again, these are identical.

This shows that the probability values defined for the execution of the optimal policy are feasible for the constraints of the LP. The value of the optimal policy is precisely ∑i=1n∑t≥1rixgti\sum_{i=1}^{n}\sum_{t\geq 1}r_{i}x^{i}_{gt}, which is at most OPTOPT – the maximum possible objective for the LP. ∎

The above LP encodes in one variable xstix^{i}_{st} the probability the arm ii is in state (s,t)(s,t) and gets played; however, we note that in the optimal policy, this decision to play actually depends on the joint state of all arms. This separation of the joint probabilities into individual probabilities effectively relaxes the condition of having one play per step, to allowing multiple plays per step but requiring one play per step on average. While the policy generated by Whittle’s LP is infeasible, the relaxation allows us to compute an upper-bound on the value of the optimal feasible policy.

We note ysti=∑t′>txst′iy^{i}_{st}=\sum_{t^{\prime}>t}x^{i}_{st^{\prime}}. It is convenient to eliminate the variables ystiy^{i}_{st} by substitution and the last two constraints collapse into the same constraint. Thus, we have the natural LP formulation shown in Figure 1. We note that the first constraint can either be an inequality (≤\leq) or an equality; w.l.o.g., we use equality, since we can add a dummy arm that does not yield any reward on playing.

From now on, let OPTOPT denote the value of the optimal solution to (Whittle). The LP in its current form has infinitely many constraints; we will now show that this LP can be solved in polynomial time to arbitrary precision by finding structure in the Lagrangean.

2 Decoupling Arms via the Lagrangean

In (Whittle), the only constraint connecting different arms is the constraint:

We absorb this constraint into the objective via Lagrange multiplier λ≥0\lambda\geq 0 to obtain the following objective:

Through the Lagrangean, we have effectively removed the only constraint that connected multiple arms. LPLagrange(λ)(\lambda) now yields nn disjoint maximization problems, one for each arm ii: At any time step, arm ii can be played (and reward obtained from it), or not played. Whenever the arm is played, we incur a penalty λ\lambda in addition to the reward. The goal is to maximize the expected reward minus cost. Note that if the penalty is zero, the arm is played every step, and if the penalty is sufficiently large, the optimal solution would be to never play the arm.

For each arm ii, let Li(λ)L_{i}(\lambda) denote the optimal policy, and let Hi(λ)H_{i}(\lambda) denote the optimal reward minus penalty. Note that the global reward minus penalty is the sum for each arm: G(λ)=∑i=1nHi(λ)G(\lambda)=\sum_{i=1}^{n}H_{i}(\lambda).

We first show that the optimal policy Li(λ)L_{i}(\lambda) for any arm ii belongs to the class of policies Pi(t)\mathcal{P}_{i}(t) for t≥1t\geq 1, whose specification is presented in Figure 2. Intuitively, step (1) corresponds to exploitation, and step (2) to exploration. Set Pi(∞)\mathcal{P}_{i}(\infty) to be the policy that never plays the arm.

To show this, we take with the dual of LPLagrange(λ)(\lambda):

The fact that the optimal single arm policy Li(λ)L_{i}(\lambda) belongs to the class {Pi(t)}\{P_{i}(t)\} comes from (5) of the following lemma.

For any λ≥0\lambda\geq 0, in the optimal solution to Whittle-Dual(λ)(\lambda), for any arm with hi>0h_{i}>0:

For some ti≥1t_{i}\geq 1, xbtii>0x^{i}_{bt_{i}}>0 and λ+tihi=vitipi\lambda+t_{i}h_{i}=v_{it_{i}}p_{i}.

xg1i>0x^{i}_{g1}>0 and λ+hi=ri−βpi\lambda+h_{i}=r_{i}-\beta p_{i}.

The optimal single-arm policy for arm ii is Li(λ)=Pi(ti)L_{i}(\lambda)=\mathcal{P}_{i}(t_{i}).

The first part follows the definition of strong duality. The problem LPLagrange(λ)(\lambda), ignoring the constant λ\lambda in the objective, separates into nn separate LPs, one for each arm. The dual objective for arm ii is precisely hih_{i}, which must be the same as the primal objective, Hi(λ)H_{i}(\lambda).

If hi=Hi(λ)>0h_{i}=H_{i}(\lambda)>0, the solution to the LP for arm ii is the policy Li(λ)L_{i}(\lambda). In order to have non-zero Hi(λ)H_{i}(\lambda), such a policy must play the arm first in some state (b,ti)(b,t_{i}) and state (g,ti′)(g,t^{\prime}_{i}). Since xstix^{i}_{st} is the probability this policy plays in state (s,t)(s,t), this implies xbtii>0x^{i}_{bt_{i}}>0 and xgti′i>0x^{i}_{gt^{\prime}_{i}}>0.

Since xbtii>0x^{i}_{bt_{i}}>0, by complementary slackness, we have λ+tihi=vitipi\lambda+t_{i}h_{i}=v_{it_{i}}p_{i}. Since the LHS is at least zero, this implies pi≥0p_{i}\geq 0. This proves parts (2) and (3).

To see part (4), observe that for the set of constraints λ+thi≥ri−(1−uit)pi\lambda+th_{i}\geq r_{i}-(1-u_{it})p_{i}, since 1−uit1-u_{it} is a monotonically increasing function of tt, the RHS is monotonically decreasing in tt. Since the LHS is monotonically increasing, if the LHS and RHS are equal, they have to be so for t=1t=1. Now, since xgti′i>0x^{i}_{gt^{\prime}_{i}}>0, by complementary slackness, λ+ti′hi=ri−(1−uiti′)pi\lambda+t^{\prime}_{i}h_{i}=r_{i}-(1-u_{it^{\prime}_{i}})p_{i}. By the above argument, ti′=1t^{\prime}_{i}=1, which completes the proof of part (4).

Since xg1i>0x^{i}_{g1}>0 and xbtii>0x^{i}_{bt_{i}}>0, the optimal policy for Li(λ)L_{i}(\lambda) plays the arm in state (g,1)(g,1) and in state (b,ti)(b,t_{i}), which is precisely the description of Pi(ti)\mathcal{P}_{i}(t_{i}). This proves part (5). ∎

It will be instructive to interpret the problem Li(λ)L_{i}(\lambda) as follows: Amortize the reward so that for each play, the arm ii yields a steady reward of λ\lambda. The goal is to find the single-arm policy that optimizes the excess reward per step over and above the amortized reward λ\lambda per play. As we have shown above, the optimal value for this problem is precisely Hi(λ)H_{i}(\lambda), and the policy Li(λ)L_{i}(\lambda) that achieves this belongs to the class {Pi(t),t≥1}\{\mathcal{P}_{i}(t),t\geq 1\}.

2.2 Solving LPLagrange(λ)𝜆(\lambda)

Having decomposed the program LPLagrange(λ)(\lambda) into independent maximization problems for each arm, and having characterized the optimal single-arm policies, we can now solve the program in polynomial time. It will turn out this can be solved by simple function maximization via closed form expressions.

For policy Pi(t)\mathcal{P}_{i}(t), let Ri(t)R_{i}(t) denote the expected per-step reward, and let Qi(t)Q_{i}(t) denote the expected rate of play. Let Fi(λ,t)=Ri(t)−λQi(t)F_{i}(\lambda,t)=R_{i}(t)-\lambda Q_{i}(t) denote the value of Pi(t)\mathcal{P}_{i}(t). Also define:

Finally, let Ri(λ)=Ri(ti(λ))R_{i}(\lambda)=R_{i}(t_{i}(\lambda)) and Qi(λ)=Qi(ti(λ))Q_{i}(\lambda)=Q_{i}(t_{i}(\lambda))

Note that the optimal reward minus cost for arm ii is simply Hi(λ)=max⁡t≥1Ri(t)−λQi(t)=Ri(ti)−λQi(ti)H_{i}(\lambda)=\max_{t\geq 1}R_{i}(t)-\lambda Q_{i}(t)=R_{i}(t_{i})-\lambda Q_{i}(t_{i}). Since each Pi(t)\mathcal{P}_{i}(t) corresponds to a Markov Chain, it is straightforward to obtain closed form expressions for Ri(t)R_{i}(t) and Qi(t)Q_{i}(t).

In playing an arm with reward rr, transition probabilities α\alpha and β\beta, the policy P(t)\mathcal{P}(t) yields average reward R(t)=rvtvt+tβR(t)=r\frac{v_{t}}{v_{t}+t\beta}, and expected rate of play Q(t)=vt+βvt+tβ≥1tQ(t)=\frac{v_{t}+\beta}{v_{t}+t\beta}\geq\frac{1}{t}. Recall that vt=αα+β(1−(1−α−β)t)v_{t}=\frac{\alpha}{\alpha+\beta}(1-(1-\alpha-\beta)^{t}) is the probability the arm is good given it was observed to be bad tt steps ago.

The Markov chain describing the policy P(t)\mathcal{P}(t) is shown in Figure 3, and has t+1t+1 states which we denote s,0,1,2,…,t−1s,0,1,2,\ldots,t-1. The state ss corresponds to the arm being observed to be in state gg, and the state jj corresponds to the arm being observed in state bb exactly jj steps ago. The transition probability from state jj to state j+1j+1 is 11, from state ss to state is β\beta, from state t−1t-1 to state ss is vtv_{t}, and from state tt to state is 1−vt1-v_{t}. Let πs,π0,π1,…,πt−1\pi_{s},\pi_{0},\pi_{1},\ldots,\pi_{t-1} denote the steady state probabilities of being in states s,0,1,…,t−1s,0,1,\ldots,t-1 respectively. This Markov chain is easy to solve. We have π0=π1…=πt−1\pi_{0}=\pi_{1}\ldots=\pi_{t-1}, so that the first identity is: πs+tπ0=1\pi_{s}+t\pi_{0}=1. Furthermore, by considering transitions into and out of ss, we obtain: βπs=vtπt−1=vtπ0\beta\pi_{s}=v_{t}\pi_{t-1}=v_{t}\pi_{0}. Combining these, we obtain: πs=vtvt+tβ\pi_{s}=\frac{v_{t}}{v_{t}+t\beta}, and π0=βvt+tβ\pi_{0}=\frac{\beta}{v_{t}+t\beta}. Now we have:

(Proved in Appendix A) For each arm ii, the optimal reward minus penalty of the single arm policy for arm ii is

The maximum value ti(λ)=\mboxargmaxt≥1Fi(λ,t)t_{i}(\lambda)=\mbox{argmax}_{t\geq 1}F_{i}(\lambda,t) satisfies the following:

If λ≥ri(αiαi+βi(αi+βi))\lambda\geq r_{i}\left(\frac{\alpha_{i}}{\alpha_{i}+\beta_{i}(\alpha_{i}+\beta_{i})}\right), then ti(λ)=∞t_{i}(\lambda)=\infty, and Hi(λ)=0H_{i}(\lambda)=0.

If λ=ri(αiαi+βi(αi+βi))−ρ\lambda=r_{i}\left(\frac{\alpha_{i}}{\alpha_{i}+\beta_{i}(\alpha_{i}+\beta_{i})}\right)-\rho for some ρ>0\rho>0, then ti(λ)t_{i}(\lambda) (and hence Hi(λ)H_{i}(\lambda)) can be computed in time polynomial in the input size and in log⁡(1/ρ)\log(1/\rho) by binary search.

3 The BalancedIndex Policy

Though we could now use LPLagrange(λ)(\lambda) to solve Whittle’s LP by finding the λ\lambda so that ∑i=1nQi(λ)≈1\sum_{i=1}^{n}Q_{i}(\lambda)\approx 1 (refer Appendix A.3 for details), our 22-approximation policy will not be based this approach. For our analysis to work, we must make a subtle but crucial modification: We will instead set λ\lambda to be the sum of the excess reward for all single-arm policies ∑i=1nHi(λ)\sum_{i=1}^{n}H_{i}(\lambda). (Recall that we can interpret λ\lambda to be a penalty per play, so in the optimal single-arm policy for arm ii, Hi(λ)H_{i}(\lambda) is the average reward minus penalty.) Note that by Lemma 2.7, this implies λ≥OPT/2\lambda\geq OPT/2 and ∑i=1nHi(λ)≥OPT/2\sum_{i=1}^{n}H_{i}(\lambda)\geq OPT/2. Intuitively, we are forcing the Lagrangean to balance short-term reward (represented by λ\lambda) with long-term average reward (represented by ∑i=1nHi(λ)\sum_{i=1}^{n}H_{i}(\lambda)). Our balance technique can be generalizes to many other restless bandit problems (see Sections 4 – 8).

We first show how to compute this value of λ\lambda in polynomial time. We begin by presenting the connection between G(λ=∑i=1nHi(λ)G(\lambda=\sum_{i=1}^{n}H_{i}(\lambda) and OPTOPT, the value of the optimal solution to (Whittle).

For any λ\lambda, we have: λ+G(λ)=λ+∑i=1nHi(λ)≥OPT\lambda+G(\lambda)=\lambda+\sum_{i=1}^{n}H_{i}(\lambda)\geq OPT.

By Lemma 2.4, part (1), we have: λ+∑i=1nHi(λ)=λ+∑i=1nhi\lambda+\sum_{i=1}^{n}H_{i}(\lambda)=\lambda+\sum_{i=1}^{n}h_{i}. The latter is the objective of the dual of (Whittle), which implies the lemma by weak duality. ∎

hi=Hi(λ)h_{i}=H_{i}(\lambda) is a non-increasing function of λ\lambda.

Recall from Lemma 2.4 that hi=Hi(λ)h_{i}=H_{i}(\lambda). For any λ\lambda, consider the value Fi(λ,t)=Ri(t)−λQi(t)F_{i}(\lambda,t)=R_{i}(t)-\lambda Q_{i}(t) of the policy Pi(t)\mathcal{P}_{i}(t). Since this decreases as λ\lambda increases, Hi(λ)=max⁡tFi(λ,t)H_{i}(\lambda)=\max_{t}F_{i}(\lambda,t) is also a non-increasing function of λ\lambda. ∎

In polynomial time, we can find a λ\lambda so that λ≥(1−ϵ)OPT/2\lambda\geq(1-\epsilon)OPT/2, and G(λ)=∑i=1nHi(λ)=∑i=1nhi≥OPT/2G(\lambda)=\sum_{i=1}^{n}H_{i}(\lambda)=\sum_{i=1}^{n}h_{i}\geq OPT/2.

First note by Lemma 2.8 that G(λ)=∑i=1nHi(λ)G(\lambda)=\sum_{i=1}^{n}H_{i}(\lambda) is monotonically non-increasing in λ\lambda. Therefore, start with λ=∑i=1nri\lambda=\sum_{i=1}^{n}r_{i}, and λ\lambda scale down by by a factor of (1+ϵ)(1+\epsilon) until λ<G(λ)\lambda<G(\lambda). Note that for any λ\lambda, the value of G(λ)G(\lambda) can be computed in poly-time by Lemma 2.6. At this point, let λ′=λ(1+ϵ)\lambda^{\prime}=\lambda(1+\epsilon). Since G(λ′)≤λ′G(\lambda^{\prime})\leq\lambda^{\prime}, by Lemma 2.7, we have λ′≥OPT/2\lambda^{\prime}\geq OPT/2, which implies λ≥(1−ϵ)OPT/2\lambda\geq(1-\epsilon)OPT/2. Further, since λ<G(λ)\lambda<G(\lambda), again by Lemma 2.7, we have G(λ)≥OPT/2G(\lambda)\geq OPT/2. ∎

We start with the value of λ\lambda from Lemma 2.9. The policy only works with the subset of arms SS so that for i∈Si\in S, we have Hi(λ)>0H_{i}(\lambda)>0. For this λ\lambda, the solution to LPLagrange(λ)(\lambda) yields one policy Pi(ti(λ))\mathcal{P}_{i}(t_{i}(\lambda)) of value Hi(λ)H_{i}(\lambda) for each arm i∈Si\in S (see Lemma 2.4). Let ti=ti(λ)t_{i}=t_{i}(\lambda). Recall that if an arm was last observed in state s∈{g,b}s\in\{g,b\} some t≥1t\geq 1 steps ago, then its state is denoted (s,t)(s,t). We call an arm ii in state (g,1)(g,1) as good; in state (b,t)(b,t) for t≥tit\geq t_{i} as ready, and in state (b,t)(b,t) for t<tit<t_{i} as bad. The policy is shown in Figure 4.

Note that the way the scheme works, at most one arm can be in state (g,1)(g,1) at any time step, and if such an arm exists, this arm is played at the current step (and in the future until it switches out of this state). The above can be thought of as executing the policies Pi(ti)\mathcal{P}_{i}(t_{i}) for arms i∈Si\in S independently and in case of simultaneous attempts to play, resolving conflicts according to the above priority scheme.

Though the above policy is not written as an index policy, it is equivalent to the following index: There is a dummy arm with index that does not yield reward on playing. If hi=Hi(λ)=0h_{i}=H_{i}(\lambda)=0, the index for all states of this arm is −1-1. For arms with hi>0h_{i}>0, the index for state (g,1)(g,1) is 22; that for states (b,t)(b,t) with t≥tit\geq t_{i} is 11, and that for states (b,t)(b,t) with t<tit<t_{i} is −1-1.

3.2 Analysis

We now prove that the BalancedIndex policy is in fact a 2-approximation. The proof is based on the fact that the Lagragean λ\lambda and the excess rewards hi=Hi(λ)h_{i}=H_{i}(\lambda) give us a way of accounting for the average reward. And by Lemma 2.7, λ≥OPT/2\lambda\geq OPT/2 and ∑hi≥OPT/2\sum h_{i}\geq OPT/2, which gives us a way of linking the rewards from our policy to the LP optimum.

The BalancedIndex policy is a 2+ϵ2+\epsilon approximation to Feedback MAB. Furthermore, this policy can be computed in polynomial time.

Recall that the reward of optimal single arm policy Pi(ti)\mathcal{P}_{i}(t_{i}) is Ri(λ)=Hi(λ)+λQi(λ)R_{i}(\lambda)=H_{i}(\lambda)+\lambda Q_{i}(\lambda), so that this reward can be accounted as Hi(λ)=hiH_{i}(\lambda)=h_{i} per step plus λ\lambda per play. We use this amortization of rewards to show that the average reward of our index policy is at least OPT/2OPT/2.

Focus on any arm ii, we call a step blocked for the arm if the arm is ready for play–the state is (b,t)(b,t) where t≥tit\geq t_{i}–but some other arm is played at the current step. Consider only the time steps which are not blocked for arm ii. For these time steps, the arm behaves as follows: It is continuously played in state (g,1)(g,1). Then it transitions to state (b,1)(b,1) and moves in ti−1t_{i}-1 time steps to state (b,ti−1)(b,t_{i}-1). After this the arm might be blocked, and the next state that is not blocked is (b,t)(b,t) for some t≥tit\geq t_{i}, at which point the arm is played. Using the formula for R(t)R(t) from Lemma 2.5, and since vit≥vitiv_{it}\geq v_{it_{i}} for t≥tit\geq t_{i}, we have

which implies that the per-step reward of this single arm policy for arm ii restricted to the non-blocked time steps is at least the per-step reward Ri(ti)R_{i}(t_{i}) of the optimal single-arm policy Pi(ti)\mathcal{P}_{i}(t_{i}). Therefore, for these non-blocked steps, the reward we get is at least hi=Hi(λ)h_{i}=H_{i}(\lambda) per step, and at least λ\lambda per play.

Now, on steps where no arm is played, none of the arms is blocked by definition, so our amortization yields a per-step reward of at least ∑i∈Shi≥OPT/2\sum_{i\in S}h_{i}\geq OPT/2. On steps when some arm is played, the arm that is played by definition cannot not blocked, so we get a reward of at least λ≥(1−ϵ)OPT/2\lambda\geq(1-\epsilon)OPT/2 for this step. This completes the proof. ∎

3.3 Alternate Analysis

The above analysis is very intuitive. We now present an alternative way to analyze the policy, that leads to a more generalizable technique. This uses a Lyapunov (potential) function argument. Recall from Lemma 2.4 that hi=Hi(λ)h_{i}=H_{i}(\lambda); further that ti=ti(λ)t_{i}=t_{i}(\lambda). Define the potential Φi\Phi_{i} for each arm ii at any time as follows:

If arm ii moved to state bb some yy steps ago (y≥1y\geq 1), the potential Φi\Phi_{i} is hi(min⁡(y,ti)−1)h_{i}(\min(y,t_{i})-1). In the state gig_{i} the potential is pip_{i}. Recall that pip_{i} is the optimal dual variable in Whittle-Dual(λ)(\lambda).

Let ΦT\Phi_{T} denote the total potential, ∑i=1nΦi\sum_{i=1}^{n}\Phi_{i}, at any step TT and let RTR_{T} denote the total reward accrued until that step. Define the function LT=t⋅OPT/2−RT−ΦT\mathcal{L}_{T}=t\cdot OPT/2-R_{T}-\Phi_{T}. Let ΔRT=RT+1−RT\Delta R_{T}=R_{T+1}-R_{T} and ΔΦT=ΦT+1−ΦT\Delta\Phi_{T}=\Phi_{T+1}-\Phi_{T}.

LT\mathcal{L}_{T} is a Lyapunov function. i.e., E[LT+1∣LT]≤LT\mathbf{E}[\mathcal{L}_{T+1}|\mathcal{L}_{T}]\leq\mathcal{L}_{T}. Equivalently, at any step:

At a given step, suppose the policy does nothing, then all arms are “not ready”. The total increase in potential is precisely

On the other hand, suppose that the policy plays arm ii, which has last been observed in state bb and has been in that state for y≥tiy\geq t_{i} steps. With probability q≥vitiq\geq v_{it_{i}} the observed state is gig_{i} and the change in reward ΔRT=ri\Delta R_{T}=r_{i} and the change in potential is pi−hi(ti−1)p_{i}-h_{i}(t_{i}-1). With probability 1−q1-q the observed state is bb and the change in potential is −hi(ti−1)-h_{i}(t_{i}-1) (and there is no change in reward). Thus in this case since q≥vitiq\geq v_{it_{i}}, and pi≥0p_{i}\geq 0, we have:

The penultimate inequality follows from Lemma 2.4, part (3). Note that the potentials of arms not played cannot decrease, so that the first inequality is valid.

Finally supposing the policy plays an arm ii which was last observed in state gig_{i} and played in the last step, with probability 1−βi1-\beta_{i} the increase in reward is rir_{i} and the potential is unchanged. With probability βi\beta_{i} the potential will decrease by −pi-p_{i}. Therefore in this case, by Lemma 2.4, part (4).

By their definition, the potentials ΦT\Phi_{T} are bounded independent of the time horizon, by telescoping summation, the above lemma implies that lim⁡T→∞E[RT]T≥(1−ϵ)OPT/2\lim_{T\rightarrow\infty}\frac{\mathbf{E}[R_{T}]}{T}\geq(1-\epsilon)OPT/2. This proves Theorem 2.10.

The following theorem shows that our analysis is almost tight (considering that our 22-approximation is against Whittle’s LP).

(Proved in Appendix A) The gap of Whittle’s LP is arbitrarily close to e/(e−1)≈1.58e/(e-1)\approx 1.58.

Analyzing the Whittle Index for Feedback MAB

Before generalizing our 22-approximation algorithm to a larger subclass of restless bandit problems, we explore the connection between our analysis and the well-known Whittle Index used in practice. This section can be skipped without losing continuity of the paper.

A well-studied index policy for restless bandit problems is the Whittle Index . In the context of Feedback MAB, this index has been independently studied by Le Ny et al and subsequently by Liu and Zhao . Both these works give a closed form expressions for this index and show near-optimal empirical performance. Our main result in this section is to justify the empirical performance by showing that a simple but very natural modification of this index in order to favor myopic exploitation yields a 22-approximation. The modification simply involves giving additional priority to arms in state (g,1)(g,1) if their myopic expected next step reward ri(1−βi)r_{i}(1-\beta_{i}) is at least a threshold value.

Defined in general, the Whittle’s index for each state xx is the largest penalty-per-play λ\lambda such that the optimal policy is indifferent between playing in xx and not playing. In our specific problem, the current state for each arm ii is captured by the tuple (s,t)(s,t)– the arm was last seen to be s∈{g,b}s\in\{g,b\} (good or bad) tt steps ago. The Whittle index Πi(s,t)\Pi_{i}(s,t) is a non-negative real numbers computed as follows: using the notation from Section 2.2., for any penalty per play λ\lambda, there is a single-arm policy Li(λ)L_{i}(\lambda) that maximizes the average reward minus penalty (excess reward) Hi(λ)H_{i}(\lambda) over the infinite horizon. When λ=∞\lambda=\infty, the optimal policy never plays; when λ=0\lambda=0, the optimal policy would play in any state. As λ\lambda is decreased from ∞\infty, at some value λ∗\lambda^{*}, the decision in state (s,t)(s,t) changes from “not play” to “play”. The Whittle index Πi(s,t)\Pi_{i}(s,t) is precisely this value of λ∗\lambda^{*}. The Whittle index policy always plays the arm with the highest Whittle’s index (Fig. 5).

The Whittle index is strongly decomposable, i.e., can be computed separately for each arm. Further, we have defined λ\lambda as a penalty (or amortized reward) per play, while Whittle defines it as a reward for not playing (which he terms the subsidy for passivity); it is easy to see that both these formulations are equivalent. Finally, for Feedback MAB, it can be shown that for any state (s,t)(s,t), there is a unique λ∈(−∞,∞)\lambda\in(-\infty,\infty) where the decision switches between “play” and “not play”, i.e., the decision is monotone in λ\lambda. Strictly speaking, the Whittle index is defined only for such systems (termed indexable by Whittle ); we will define this aspect away by insisting that the index λ∗\lambda^{*} is the largest value where a switch happens.

We present an explicit connection of Whittle’s index to LPLagrange(λ)(\lambda).

(Proved in Appendix A) Recall the notation Li(λ)L_{i}(\lambda) and Pi(t)\mathcal{P}_{i}(t) from Section 2.2. The following hold for Πi(s,t)\Pi_{i}(s,t):

Πi(s,t)≥0\Pi_{i}(s,t)\geq 0 for all states (s,t)(s,t) where s∈{g,b}s\in\{g,b\} and t∈Z+t\in\mathbf{Z}^{+}.

Πi(g,1)=ri(1−βi)\Pi_{i}(g,1)=r_{i}(1-\beta_{i}), and Πi(b,t)≤Πi(g,1)\Pi_{i}(b,t)\leq\Pi_{i}(g,1) for all t≥1t\geq 1.

Πi(b,t)=max⁡{λ∣Li(λ)=Pi(t)}\Pi_{i}(b,t)=\max\{\lambda|L_{i}(\lambda)=\mathcal{P}_{i}(t)\}, and is a monotonically non-decreasing function of tt.

Though Whittle’s index is widely used, it is not clear how to analyze it since it leads to complicated priorities between arms. We now show that our balancing technique also implies an analysis for a slight but non-trivial modification to Whittle’s index.

2 The Threshold-Whittle Policy

We now show that modifying the index slightly to exploit the myopic next step reward in good states gg yields a 22 approximation. Note that the myopic next step reward of an arm ii in state gg is precisely Πi(g,1)=ri(1−βi)\Pi_{i}(g,1)=r_{i}(1-\beta_{i}). The modification essentially favors exploiting such a “good” state if the myopic reward is at least a certain threshold value. In particular, we analyze the policy Threshold-Whittle(λ)(\lambda) shown in Figure 6, where we set λ=λ∗\lambda=\lambda^{*}, where λ∗\lambda^{*} is the value where λ∗=∑i=1nHi(λ∗)\lambda^{*}=\sum_{i=1}^{n}H_{i}(\lambda^{*}) (refer Section 2.3).

Note that the above policy can be restated as playing the arm with the highest modified index, which is computed as follows: For arm ii, if Πi(g,1)=ri(1−βi)≥λ\Pi_{i}(g,1)=r_{i}(1-\beta_{i})\geq\lambda, the modified index for state (g,1)(g,1) is ∞\infty, else the modified index is the same as the Whittle index.

Threshold-Whittle(λ∗)(\lambda^{*}) is a 22 approximation for Feedback MAB. Here, λ∗\lambda^{*} satisfies λ∗=∑i=1nHi(λ∗)\lambda^{*}=\sum_{i=1}^{n}H_{i}(\lambda^{*}) (refer Section 2.3).

3 Proof of Theorem 3.2

We now prove the above result by modifying our analysis of the BalancedIndex policy (from Figure 4). Recall that SS is the set of arms with hi>0h_{i}>0 in the optimal solution to Whittle-Dual(λ∗)(\lambda^{*}). For such arms, t=tit=t_{i} is the first time instant when λ+thi≥pivit\lambda+th_{i}\geq p_{i}v_{it} is tight. For arm i∈Si\in S, state (s,t)(s,t) is good if s=gs=g and t=1t=1; ready if s=bs=b and t≥tit\geq t_{i}; and bad otherwise. The index policy from Figure 4 favors good over ready states, and does not play any arm in bad states.

For any arm ii, exactly one of the following is true for Whittle-Dual(λ∗)(\lambda^{*}) and LPLagrange(λ∗)(\lambda^{*}).

The constraint λ∗+thi≥vitpi\lambda^{*}+th_{i}\geq v_{it}p_{i} is first tight at t=tit=t_{i}. Then, Πi(b,ti−1)<λ∗\Pi_{i}(b,t_{i}-1)<\lambda^{*} and Πi(b,ti)≥λ∗\Pi_{i}(b,t_{i})\geq\lambda^{*}. Further, Πi(g,1)=ri(1−βi)≥λ∗\Pi_{i}(g,1)=r_{i}(1-\beta_{i})\geq\lambda^{*} and hi>0h_{i}>0.

The constraint λ∗+thi≥vitpi\lambda^{*}+th_{i}\geq v_{it}p_{i} is not tight for any tt. Then, Πi(b,t)≤λ∗\Pi_{i}(b,t)\leq\lambda^{*} for all t≥1t\geq 1, and hi=0h_{i}=0.

The optimal solution to LPLagrange(λ∗)(\lambda^{*}) finds the policy Pi(ti)\mathcal{P}_{i}(t_{i}) for every arm ii with hi>0h_{i}>0. Therefore, by Lemma 3.1, we must have Πi(b,ti)≥λ∗\Pi_{i}(b,t_{i})\geq\lambda^{*}, and Πi(b,t)<λ∗\Pi_{i}(b,t)<\lambda^{*} for all t<tit<t_{i}. Furthermore, since the variable xbtix^{i}_{bt} in the optimal solution to LPLagrange(λ∗)(\lambda^{*}) is first non-zero at t=tit=t_{i}, this implies the constraint λ∗+thi≥vitpi\lambda^{*}+th_{i}\geq v_{it}p_{i} is first tight at t=tit=t_{i} by complementary slackness (Lemma 2.4). Further, if this constraint is tight at t=tit=t_{i}, since vitv_{it} is monotonically increasing, the constraint is feasible for all t≥tit\geq t_{i} only if hi>0h_{i}>0. Finally, Πi(g,1)=ri(1−βi)≥Πi(b,ti)≥λ∗\Pi_{i}(g,1)=r_{i}(1-\beta_{i})\geq\Pi_{i}(b,t_{i})\geq\lambda^{*} follows from Lemma 3.1.

Suppose now that λ∗+thi≥vitpi\lambda^{*}+th_{i}\geq v_{it}p_{i} is not tight for any t≥1t\geq 1. Then, by complementary slackness, we have xbti=0x^{i}_{bt}=0 for all t≥1t\geq 1, which implies xgti=0x^{i}_{gt}=0 for all t≥1t\geq 1. Therefore, the policy Li(λ∗)L_{i}(\lambda^{*}) never plays arm ii. This implies Πi(b,t)≤λ∗\Pi_{i}(b,t)\leq\lambda^{*} for all t≥1t\geq 1. Since the excess reward of Li(λ∗)L_{i}(\lambda^{*}) is zero, we have hi=0h_{i}=0. (This can also be shown by complementary slackness.) ∎

We next classify the arms as follows. In Claim 3.3, let the arms satisfying the first condition (hi>0h_{i}>0) of the Claim be denoted Type (1), and the remaining arms satisfying hi=0h_{i}=0 be denoted Type (2). Note that type (1) arms are precisely the set SS of arms in Fig. 4, so the BalancedIndex policy only plays type (1) arms.

We consider the behavior of Threshold-Whittle(λ∗)(\lambda^{*}) restricted to just these arms. Since Πi(b,t)\Pi_{i}(b,t) is monotonically increasing in tt, by Claim 3.3, we have the following for the policy of Fig. 4: If the arm is ready, the Whittle index is at least λ∗\lambda^{*}; if the arm is bad, the index is at most λ∗\lambda^{*}; and finally, if the arm is good, then the modified Whittle index is infinity.

Therefore, Threshold-Whittle(λ∗)(\lambda^{*}) confined to these arms gives priority to good over ready over bad arms. The only difference with the policy in Fig. 4 is that instead of idling when all arms are bad, the policy Threshold-Whittle(λ∗)(\lambda^{*}) will play some bad arm. We now show that this is better than idling.

Threshold-Whittle(λ∗)(\lambda^{*}) executed just over Type (1) arms yields reward at least OPT/2OPT/2.

Consider the alternate analysis presented in Section 2.3.3. The Index policy from Fig. 4 does not play an arm ii in bad state, and achieves change in potential ΔΦ\Delta\Phi of exactly hih_{i}. All we need to show is that if the arm is played instead, the expected change in potential is still at least hih_{i}. The rest of the proof is the same as that of Lemma 2.11. Suppose the arm is played after t≥1t\geq 1 steps. The expected change in potential is: E[ΔΦt]=vitpi−hi(t−1)\mathbf{E}[\Delta\Phi_{t}]=v_{it}p_{i}-h_{i}(t-1). We further have by definition of tit_{i} that λ+tihi=vitipi\lambda+t_{i}h_{i}=v_{it_{i}}p_{i}. We therefore have piviti≥tihip_{i}v_{it_{i}}\geq t_{i}h_{i}. Since vitv_{it} is a concave function of tt with vi0=0v_{i0}=0, the above implies that for every t≤tit\leq t_{i}, we must have pivit≥thip_{i}v_{it}\geq th_{i}. Therefore, E[ΔΦt]=vitpi−hi(t−1)≥thi−hi(t−1)=hi\mathbf{E}[\Delta\Phi_{t}]=v_{it}p_{i}-h_{i}(t-1)\geq th_{i}-h_{i}(t-1)=h_{i}. ∎

The only catch now is that Threshold-Whittle(λ∗)(\lambda^{*}) can sometimes play a type (2) arm whose hi=0h_{i}=0. For such arms, we count their reward and ignore the change in potential.

In Threshold-Whittle(λ∗)(\lambda^{*}), if a type (2) arm jj preempts the play of a type (1) arm ii, either the reward from the former is at least λ∗\lambda^{*} or the increase in potential of the later ΔΦ\Delta\Phi is at least hih_{i}.

Suppose that for type (2) arm jj, Πj(g,1)=rj(1−βj)≥λ∗\Pi_{j}(g,1)=r_{j}(1-\beta_{j})\geq\lambda^{*}. Denote such a state (g,1)(g,1) as nice, and a nice type (2) arm has modified index of ∞\infty. When jj was last observed to be good, the arm can be played continuously even if type (1) arms become ready. However, for every time step such an event happens, the current reward of playing this nice type (2) arm is precisely rj(1−βj)r_{j}(1-\beta_{j}), which is at least λ∗\lambda^{*}, and the type (1) arms only get better from waiting. When the type (2) arm jj was last observed to be bad, preemption can only happen if all type (1) arms are bad, since the Whittle’s index of a type (2) arm Πj(b,∞)<λ∗\Pi_{j}(b,\infty)<\lambda^{*}. But in this case the increase in potential of arm ii is hih_{i}.

Finally, if Πj(g,1)<λ∗\Pi_{j}(g,1)<\lambda^{*}, then by Lemma 3.1, we have Πj(s,t)<λ∗\Pi_{j}(s,t)<\lambda^{*} for all s=b,gs=b,g and t≥1t\geq 1. This implies that such an arm in any state can only preempt type (1) arms that are bad; in that case, the potential Φ\Phi of the latter rises by hih_{i} by idling. This completes the proof. ∎

3.2 Completing the Proof of Theorem 3.2

To complete the analysis, there are two cases: First, if a nice type (2) arm, or a ready or good type (1) arm is played, then the above discussion implies that the reward plus change in potential (ΔΦ\Delta\Phi) of this arm is at least λ∗≥OPT/2\lambda^{*}\geq OPT/2. In the other case, all type (1) arms are bad, and focusing on just these arms, each yields increase in potential for each arm is at least hih_{i}, so that the total reward plus change in potential of these system is at least ∑ihi≥OPT/2\sum_{i}h_{i}\geq OPT/2. This completes the proof, and shows that Threshold-Whittle(λ∗)(\lambda^{*}) is a 22 approximation. We note that the above analysis extends easily to the variant where M≥1M\geq 1 arms are simultaneously played per step.

The General Technique: Monotone Bandits

In this section, we present a general and non-trivial sub-class of restless bandits for which a generalization of the above balancing technique yields a 22-approximate index policy. We term this class Monotone bandits, and this captures both the stochastic MAB, as well as the Feedback MAB as special cases.

In Monotone bandits, there are nn bandit arms. Each arm ii can be in one of KK states denoted Si={σ1i,σ2i,…,σKi}\mathcal{S}_{i}=\{\sigma^{i}_{1},\sigma^{i}_{2},\ldots,\sigma^{i}_{K}\}. When the arm is not played, its state remains the same and it does not fetch reward. Suppose the arm is in state σki\sigma_{k}^{i} and is played next after t≥1t\geq 1 steps. Then, it gains reward rki≥0r_{k}^{i}\geq 0, and transitions to one of the states σji≠σki\sigma_{j}^{i}\neq\sigma_{k}^{i} w.p. gi(k,j,t)g^{i}(k,j,t), and with the remaining probability stays in state σki\sigma^{i}_{k}. (For notational convenience, we denote σki\sigma^{i}_{k} simply as kk; the arm it refers to will be clear from the context.) The transition probabilities for different arms are independent. At most one arm is played per step. The goal is to find a policy for playing the arms so that the infinite horizon time-average reward is maximized.

In addition, we have the following key properties about the transition probabilities:

We assume that gi(k,j,t)g^{i}(k,j,t) is of the form fki(t)qi(k,j)f^{i}_{k}(t)q^{i}(k,j). The function fki(t)∈f^{i}_{k}(t)\in for positive integers tt can be thought of as an “escape probability” from the state σk∈Si\sigma_{k}\in\mathcal{S}_{i}. Conditioned of the escape, the state changes to σj∈Si\sigma_{j}\in\mathcal{S}_{i} with probability qi(k,j)q^{i}(k,j), thus ∑j≠kqi(k,j)≤1\sum_{j\neq k}q^{i}(k,j)\leq 1.

For every arm ii and state k∈Sik\in\mathcal{S}_{i}, we have: fki(t)≤fki(t+1)f_{k}^{i}(t)\leq f_{k}^{i}(t+1) for every tt.

The above properties are necessary in some sense: We show in Section 4.5 that when the monotone property is relaxed, the problem becomes nϵn^{\epsilon}-hard to approximate. Further, if the separability property is not satisfied, then Whittle’s LP on which the analysis of this section is based, has Ω(n)\Omega(n) gap.

Intuitively, Monotone bandit models optimization scenarios in which uncertainty increases: when an arm is just played and we observe its state, we are most certain that our observation still holds true the next time step. However, the non-decreasing nature of ff implies that as time goes on, the “escape probability” increases and the previous observation becomes less and less reliable. This serves as a model for certain POMDPs, such as the Feedback MAB.

Observe that the Monotone bandits generalizes the Feedback MAB. For the states Si={g,b}\mathcal{S}_{i}=\{g,b\}, set qi(g,b)=qi(b,g)=1q^{i}(g,b)=q^{i}(b,g)=1 and fgi(t)=1−uitf^{i}_{g}(t)=1-u_{it} and fbi(t)=vitf^{i}_{b}(t)=v_{it}. Recall from Fact 2.2 that uit,vitu_{it},v_{it} are respectively the probabilities of observing the state gg when the state last observed tt steps ago was gg and bb, and that 1−uit,vit1-u_{it},v_{it} are both monotonically increasing. We also note that Monotone bandits generalizes the stochastic MAB by setting fki(t)=1f^{i}_{k}(t)=1 for all tt.

1 High Level Idea

Unlike the Feedback MAB problem, in Monotone bandits, there is no longer a clear distinction between “good” and “bad” states. Note however that an equivalent way of finding λ\lambda such that λ=∑i=1nHi(λ)\lambda=\sum_{i=1}^{n}H_{i}(\lambda) is to treat λ\lambda as a variable and enforce λ=∑i=1nhi\lambda=\sum_{i=1}^{n}h_{i} as a constraint in the dual of Whittle’s LP. By taking this approach, the variables pkip^{i}_{k} (now one for each state k∈Sik\in\mathcal{S}_{i}) can be interpreted as dual potentials, and the dual constraints are in terms of the expected potential change of playing in state k∈Sik\in\mathcal{S}_{i}. Based on the sign of this potential change, we can classify the states into “good” and “bad” via complementary slackness. Our index policy continuously exploits arms in “good” states, and waits until the dual constraint goes tight (i.e., the arm becomes “ready”) before playing in “bad” states. We formalize the previous potential-based argument using a Lyapunov function and show a 22-approximation. We note that the LP-duality approach is entirely equivalent to the Lagrangean approach; however, it leads to a different interpretation of variables which is more generalizable.

For simplicity of the exposition, we assume the monotone functions in this section are piece-wise linear with poly-size specification – see definition 5 for a formal definition. As shown in the previous section, these results do extend to a wider class of differentiable functions, such as those in Feedback MAB.

We also assume that for each arm ii, the graph, where the vertices are k∈Sik\in\mathcal{S}_{i} and a directed edge (j,k)(j,k) exists if qi(j,k)>0q^{i}(j,k)>0, is strongly connected. Since we consider the infinite horizon time average reward, assume that the policy is ergodic and can choose the start state of each arm. These assumptions do not simplify the problem, as it remains NP-Hard (see Section 4.5).

2 Whittle’s LP and its Dual

As with Feedback MAB, for each arm ii and k∈Sik\in\mathcal{S}_{i}, we have variables {xkti,t≥1}\{x^{i}_{kt},t\geq 1\}. These variables capture the probabilities (in the execution of the optimal policy) of the event: Arm ii is in state kk, was last played tt steps ago, and is played at the current step. These quantities are well-defined for ergodic policies. Whittle’s LP is presented in Figure 7. Let its optimal value be denoted OPTOPT. The LP effectively encodes the constraints on the evolution of the state of each arm separately, connecting them only by the constraint that at most one arm is played in expectation every step. The first constraint simply states that the at any step, at most one arm is played; the second constraint encodes that each arm can be in at most one possible state at any time step; and the final constraint encodes that the rate of entering state k∈Sik\in\mathcal{S}_{i} is the same as the rate of exiting this state. This LP will clearly be a relaxation of the optimal policy; the details are the same as the proof of Lemma 2.3.

This LP has infinite size, and we will fix that aspect in this section. In particular, we now show that the LP has polynomial size when the fkif^{i}_{k} are piece-wise linear with poly-size specification.

Given ii, k∈Sik\in S_{i}, fki(t)f^{i}_{k}(t) is specified as the piece-wise linear function that passes through breakpoints (t1=1,fki(1)),(t2,fki(t2)),…,(tm,fki(tm))(t_{1}=1,f^{i}_{k}(1)),(t_{2},f^{i}_{k}(t_{2})),\ldots,(t_{m},f^{i}_{k}(t_{m})). Denote the set {t1,t2,…,tm}\{t_{1},t_{2},\ldots,t_{m}\} as Wki\mathcal{W}^{i}_{k}. Therefore, for two consecutive points t1,t2∈Wkit_{1},t_{2}\in\mathcal{W}^{i}_{k} with t1<t2t_{1}<t_{2}, the function fkif^{i}_{k} is specified at t1t_{1} and t2t_{2}. For t∈(t1,t2)t\in(t_{1},t_{2}), we have fki(t)=((t2−t)fki(t1)+(t−t1)fki(t2))/(t2−t1)f^{i}_{k}(t)=((t_{2}-t)f^{i}_{k}(t_{1})+(t-t_{1})f^{i}_{k}(t_{2}))/(t_{2}-t_{1}). For t≥tmt\geq t_{m}, we have fki(t)=fki(tm)f^{i}_{k}(t)=f^{i}_{k}(t_{m}). We assume that Wki\mathcal{W}^{i}_{k} has poly-size specification.

Consider the dual of the above relaxation. The first constraint has multiplier λ\lambda, the second set of constraints have multipliers hih_{i}, and the final equality constraints have multipliers pkip^{i}_{k}. For notational convenience, define:

Note that ΔPki\Delta P^{i}_{k} is a variable that depends on the dual variables p∗ip^{i}_{*}. We obtain the following dual.

Since fki(t)f^{i}_{k}(t) is piece-wise linear, for two consecutive break-points t1<t2t_{1}<t_{2} in Wki\mathcal{W}^{i}_{k}, the constraint λ+thi≥rki+fki(t)ΔPki\lambda+th_{i}\geq r^{i}_{k}+f^{i}_{k}(t)\Delta P^{i}_{k} is true for all t∈[t1,t2]t\in[t_{1},t_{2}] iff it is true at t1t_{1} and at t2t_{2}. This means that the constraints for t∉Wkit\notin\mathcal{W}^{i}_{k} are redundant. Therefore, the above dual is equivalent to the the one presented in Figure 8, which we denote (Whittle-Dual).

Taking the dual of the above program, we finally obtain a polynomial size relaxation for Monotone bandits. Since this poly-size LP only differs from (Whittle) in restricting tt to lie in the relevant set Wki\mathcal{W}^{i}_{k}, and since it will not be explicitly needed in the remaining discussion, we omit writing it explicitly.

3 The Balanced Linear Program

We do not solve Whittle’s relaxation. Instead, we solve the modification of (Whittle-Dual) from Figure 8, which we denote (Balance). This is shown in Figure 9. The additional constraint in (Balance) (as in Feedback MAB) is the constraint λ=∑i=1nhi\lambda=\sum_{i=1}^{n}h_{i}.

The primal linear program corresponding to (Balance) is the following (where we place an unconstrained multiplier ω\omega to the final constraint of (Balance)):

The first step of the algorithm is to solve the linear program (Balance). Clearly the value of this LP is at least OPTOPT. We now show the following properties of the optimal solution to (Balance) using complementary slackness conditions between (Balance) and (Primal-Balance). From now on, we only deal with the optimal solutions to the above programs, so all variables correspond to the optimal setting.

Recall that OPTOPT is the optimal value to (Whittle). Since any feasible solution to (Balance) is feasible to (Whittle-Dual), in the optimal solution to (Balance), λ=∑i=1nhi≥OPT/2\lambda=\sum_{i=1}^{n}h_{i}\geq OPT/2.

The next lemma is the crux of the analysis, where for any arm being played in any state, we use complementary slackness to explicitly relate the dual variables to the reward obtained. Note that unlike the analyses of primal-dual algorithms, our proof needs to use both the exact primal as well as dual complementary slackness conditions. This aspect requires us to actually solve the dual optimally.

One of the following is true for the optimal solution to (Balance): Either there is a trivial 22-approximation by repeatedly playing the same arm; or for every arm ii with hi>0h_{i}>0 and for every state k∈Sik\in\mathcal{S}_{i}, there exists t∈Wkit\in\mathcal{W}^{i}_{k} such that the following LP constraint is tight with equality.

Note that if ω≤−1\omega\leq-1 or ω≥1\omega\geq 1, then the values of (Primal-Balance) is 0, but the optimal value of (Primal-Balance) is at least OPT>0OPT>0. Thus, in the optimal solution to (Primal-Balance), ω∈(−1,1)\omega\in(-1,1).

The optimal solutions to (Balance) and (Primal-Balance) satisfy the following complementary slackness conditions (recall from above that ω>−1\omega>-1 so that 1+ω>01+\omega>0):

Suppose that for some ii such that hi>0h_{i}>0, and for some k∈Sik\in\mathcal{S}_{i}, we have λ+thi>rki+fki(t)ΔPki\lambda+th_{i}>r^{i}_{k}+f^{i}_{k}(t)\Delta P^{i}_{k} for every t∈Wkit\in\mathcal{W}^{i}_{k}. By condition (5), xkti=0x^{i}_{kt}=0 ∀t∈Wki\forall t\in\mathcal{W}^{i}_{k}, which trivially implies that xktifki(t)=0x^{i}_{kt}f^{i}_{k}(t)=0 ∀t∈Wki\forall t\in\mathcal{W}^{i}_{k}.

Now, given that for a certain arm ii and state kk, xktifki(t)=0x^{i}_{kt}f^{i}_{k}(t)=0 ∀t\forall t. Therefore, in the following constraint in (Primal-Balance):

the LHS is zero because xktifki(t)=0x^{i}_{kt}f^{i}_{k}(t)=0, which means the RHS is zero. Since all variables are non-negative, this implies that for any j∈Sij\in\mathcal{S}_{i} with qi(j,k)>0q^{i}(j,k)>0, we have xjtifji(t)=0x^{i}_{jt}f^{i}_{j}(t)=0 for all t∈Wjit\in\mathcal{W}^{i}_{j}.

Recall (from Section 4) that we assumed the graph on the states with edges from jj to kk if qi(j,k)>0q^{i}(j,k)>0 is strongly connected. Therefore, by repeating the above argument, we get ∀j,t∈Wji\forall j,t\in\mathcal{W}^{i}_{j}, xjtifji(t)=0x^{i}_{jt}f^{i}_{j}(t)=0.

By Condition (4), since hi>0h_{i}>0, there exists j∈Sij\in\mathcal{S}_{i} and t∈Wjit\in\mathcal{W}^{i}_{j}, such that xjti>0x^{i}_{jt}>0 (or else the sum in Condition (4) is zero). By what we proved in the previous paragraph, this implies that fji(t)=0f^{i}_{j}(t)=0, which implies that fji(1)=0f^{i}_{j}(1)=0 by the Monotone property. Since xjti>0x^{i}_{jt}>0, using Condition (5) and plugging in fji(t)=0f^{i}_{j}(t)=0, we get λ+thi=rji\lambda+th_{i}=r^{i}_{j}. Moreover, by plugging in fji(1)=0f^{i}_{j}(1)=0 into the t=1t=1 constraint of (Balance), we get λ+hi≥rji\lambda+h_{i}\geq r^{i}_{j}. These two facts imply that λ+hi=rji\lambda+h_{i}=r^{i}_{j}. The above implies that the policy that starts with arm ii in state jj and always plays this arm obtains per-step reward λ+hi>OPT/2\lambda+h_{i}>OPT/2. ∎

In the remaining discussion, we assume that the above lemma does not find an arm ii that yields reward at least OPT/2OPT/2. This means that ∀i,k\forall i,k, there exists some t∈Wkit\in\mathcal{W}^{i}_{k} that makes Inequality (3) tight.

For any arm ii such that hi>0h_{i}>0, and state k∈Sik\in\mathcal{S}_{i}, if ΔPki<0\Delta P^{i}_{k}<0, then:

By Lemma 4.2 and our assumption above, Inequality (3) in Lemma 4.2 is tight for some t∈Wkit\in\mathcal{W}^{i}_{k}. If it is not tight for t=1t=1, then since fki(t)f^{i}_{k}(t) is non-decreasing in tt and since ΔPki<0\Delta P^{i}_{k}<0, it will not be tight for any tt. Thus, we have a contradiction. ∎

4 The BalancedIndex Policy

Start with the optimal solution to (Balance). First throw away the arms for which hi=0h_{i}=0. By Lemma 4.1, for the remaining arms, ∑ihi≥OPT/2\sum_{i}h_{i}\geq OPT/2. Define the following quantities for each of these arms.

For each ii (hi>0h_{i}>0 by assumption) and state k∈Sik\in\mathcal{S}_{i}, let tkit^{i}_{k} be the smallest value of t∈Wkit\in\mathcal{W}^{i}_{k} for which λ+thi=rki+fki(t)ΔPki\lambda+th_{i}=r^{i}_{k}+f^{i}_{k}(t)\Delta P^{i}_{k} in the optimal solution to (Balance). By Lemma 4.2, tkit^{i}_{k} is well-defined for every k∈Sik\in\mathcal{S}_{i}.

For arm ii, partition the states Si\mathcal{S}_{i} into states Gi,Ii\mathcal{G}_{i},\mathcal{I}_{i} as follows:

k∈Gik\in\mathcal{G}_{i} if ΔPki<0\Delta P^{i}_{k}<0. (By Lemma 4.3, tki=1t^{i}_{k}=1.)

k∈Iik\in\mathcal{I}_{i} if ΔPki≥0\Delta P^{i}_{k}\geq 0.

With the notation above, the policy is now presented in Figure 10. In this policy, if arm ii has been in state k∈Iik\in\mathcal{I}_{i} for less than tkit^{i}_{k} steps, it is defined to be “not ready” for play. Once it has waited for tkit^{i}_{k} steps, it becomes “ready” and can be played. Moreover, if arm ii moves to a state in k∈Gik\in\mathcal{G}_{i}, it is continuously played until it moves to a state in Ii\mathcal{I}_{i}.

Intuitively, the states in Gi\mathcal{G}_{i} are the “exploitation” or “good” states. On the contrary, the states in Ii\mathcal{I}_{i} are “exploration” or “bad” states, so the policy waits until it has a high enough probability of exiting these states before playing them. In both cases, tkt_{k} corresponds to the “recovery time” of the state, which is 11 in a “good” state but could be large in a “bad” state.

We use a Lyapunov (potential) function argument to show that the policy described in Figure 10 is a 22-approximation. Define the potential Φi\Phi_{i} for each arm ii at any time as follows. (Recall the definition of tkit^{i}_{k} from Definition 6, as well as the quantities λ\lambda, hih_{i} from the optimal solution of (Balance).)

If arm ii moved to state k∈Sik\in\mathcal{S}_{i} some yy steps ago (y≥1y\geq 1 by definition), the potential Φi\Phi_{i} is pki+hi(min⁡(y,tki)−1)p^{i}_{k}+h_{i}(\min(y,t^{i}_{k})-1).

Therefore, whenever the arm ii enters state kk, its potential is pkip^{i}_{k}. If k∈Iik\in\mathcal{I}_{i}, the potential then increases at rate hih_{i} for tki−1t^{i}_{k}-1 steps, after which it remains fixed until the arm is played. Our policy plays arm ii only if its current potential is pki+hi(tki−1)p^{i}_{k}+h_{i}(t^{i}_{k}-1).

We finally complete the analysis in the following lemma. The proof crucially uses the “balance” property of the dual, which implies that λ=∑ihi≥OPT/2\lambda=\sum_{i}h_{i}\geq OPT/2. Let ΦT\Phi_{T} denote the total potential, ∑i=1nΦi\sum_{i=1}^{n}\Phi_{i}, at any step TT and let RTR_{T} denote the total reward accrued until that step. Define the function LT=t⋅OPT/2−RT−ΦT\mathcal{L}_{T}=t\cdot OPT/2-R_{T}-\Phi_{T}. Let ΔRT=RT+1−RT\Delta R_{T}=R_{T+1}-R_{T} and ΔΦT=ΦT+1−ΦT\Delta\Phi_{T}=\Phi_{T+1}-\Phi_{T}.

LT\mathcal{L}_{T} is a Lyapunov function. i.e., E[LT+1∣LT]≤LT\mathbf{E}[\mathcal{L}_{T+1}|\mathcal{L}_{T}]\leq\mathcal{L}_{T}. Equivalently, at any step:

At a given step, suppose the policy does nothing, then all arms are “not ready”. The total increase in potential is precisely ΔΦT=∑ihi≥OPT/2\Delta\Phi_{T}=\sum_{i}h_{i}\geq OPT/2.

On the other hand, suppose that the policy plays arm ii, which is currently in state kk and has been in that state for y≥tkiy\geq t^{i}_{k} steps. The change in reward ΔRT=rki\Delta R_{T}=r^{i}_{k}. Moreover, the current potential of the arm must be ΦT=pk+hi(tki−1)\Phi_{T}=p_{k}+h_{i}(t^{i}_{k}-1). The new potential follows the following distribution:

Therefore, if arm ii is played, the change in potential is:

From the description of the Index policy, y=tki=1y=t^{i}_{k}=1 if k∈Gik\in\mathcal{G}_{i}. Therefore, yy might be strictly greater than tkit^{i}_{k} only when k∈Iik\in\mathcal{I}_{i}. In that case ΔPki≥0\Delta P^{i}_{k}\geq 0 by Definition 7, so that fji(y)ΔPki≥fji(tki)ΔPkif^{i}_{j}(y)\Delta P^{i}_{k}\geq f^{i}_{j}(t^{i}_{k})\Delta P^{i}_{k} by the Monotone property (since y≥tkiy\geq t^{i}_{k}).

Therefore, for the arm ii being played, regardless of whether k∈Gik\in\mathcal{G}_{i} or k∈Iik\in\mathcal{I}_{i},

where the last equality follows from the definition of tkit^{i}_{k} (Definition 6). Since the potentials of the arms not being played do not decrease (since all hl>0h_{l}>0), the total change in reward plus potential is at least OPT/2OPT/2. This completes the proof. Refer Figure 11 for a “picture proof” when k∈Iik\in\mathcal{I}_{i}. ∎

By their definition, the potentials ΦT\Phi_{T} are bounded independent of the time horizon, by telescoping summation, the above lemma implies that lim⁡T→∞E[RT]T≥OPT/2\lim_{T\rightarrow\infty}\frac{\mathbf{E}[R_{T}]}{T}\geq OPT/2. We finally have:

The BalancedIndex policy is a 22 approximation for Monotone bandits.

5 Lower Bounds: Necessity of Monotonicity and Separability

We show that Monotone bandits is NP-Hard, and that if the Monotone property is relaxed even slightly, the problem either has Ω(n)\Omega(n) integrality gap for Whittle’s LP, or becomes nϵn^{\epsilon}-hard to approximate.

In the above discussion, we assumed the input to the Monotone bandits problem is specified by polynomial size state spaces Si\mathcal{S}_{i} for each arm; the associated matrices qiq^{i}, and functions fki(t)f^{i}_{k}(t) that are piecewise linear with poly-size specification. We can model this problem as a restless bandit problem in the sense defined in literature by replacing each state k∈Sik\in\mathcal{S}_{i} with exponentially many states {kt,t∈Z+}\{k_{t},t\in\mathbf{Z}^{+}\}; if the arm is not played, it transitions deterministically from state ktk_{t} to kt+1k_{t+1}, but if played in state ktk_{t}, it transitions w.p. qi(k,j)fki(t)q^{i}(k,j)f^{i}_{k}(t) to state j1j_{1} for each j∈Sij\in\mathcal{S}_{i}, and with the remaining probability transitions to k1k_{1}. The reduction uses exponentially many states, and is unlike the typical formulation of restless bandits that assumes the state space of each arm is poly-bounded. (The PSPACE-Hardness proofs of restless bandits assumes poly-bounded state space as well.) We therefore need to use different NP-Hardness proofs for our compact input specifications.

For the special case of the problem with K=2K=2 states per arm and nn arms, the following are true even when the functions fkif^{i}_{k} are piece-wise linear with poly-size specification:

Computing the optimal ergodic policy for Monotone bandits is NP-Hard.

If the Monotone property is relaxed to allow arbitrary (possibly non-monotone) functions ff, then the problem becomes nϵn^{\epsilon} hard to approximate unless P=NPP=NP.

We reduce from the following periodic scheduling problem, which is shown to be NP-Complete in : Given nn positive integers l1,l2,…,lnl_{1},l_{2},\ldots,l_{n} such that ∑i=1n1/li≤1\sum_{i=1}^{n}1/l_{i}\leq 1, is there an infinite sequence of integers {1,2,…,n}\{1,2,\ldots,n\} such that for every i∈{1,2,…,n}i\in\{1,2,\ldots,n\}, all consecutive occurrences of ii are exactly lil_{i} elements apart. Given an instance of this problem, for each i∈{1,2,…,n}i\in\{1,2,\ldots,n\}, we define an arm ii with a “good” state gg and a “bad” state ww.

For part 1, for every arm ii, let rgi=1r^{i}_{g}=1, and rwi=0r^{i}_{w}=0. Set qi(g,w)=1q^{i}(g,w)=1 and fgi(t)=1f^{i}_{g}(t)=1 for all tt. Moreover, set qi(w,gi)=1q^{i}(w,g_{i})=1 and fwi(t)=0f^{i}_{w}(t)=0 if t≤2li−2t\leq 2l_{i}-2 and 11 otherwise. Suppose for a moment that we only have arm ii, then the optimal policy will play the arm exactly 2li−12l_{i}-1 steps after it is observed to be in ww, and the arm will transition to state gg. The policy will then play the arm in state gg to obtain reward 11, and the arm will transition back to state ww. Since this policy is periodic with period 2li2l_{i}, it yields long term average reward exactly 12li\frac{1}{2l_{i}}. It is easy to see that any other ergodic policy of playing this arm yields strictly smaller reward per step. Any policy of playing all the arms therefore has total reward of at most ∑i=1n12li\sum_{i=1}^{n}\frac{1}{2l_{i}}. But for any ergodic policy, the reward of ∑i=1n12li\sum_{i=1}^{n}\frac{1}{2l_{i}} is achievable only if each arm ii is played according to its individual optimal policy, which is twice in succession every 2li2l_{i} steps. But deciding whether this is possible is equivalent to solving the periodic scheduling problem on the lil_{i}. Therefore, deciding whether the optimal policy to the Monotone bandit problem yields reward ∑i=1n12li\sum_{i=1}^{n}\frac{1}{2l_{i}} is NP-Hard.

For part 2, we make ww a trapping state with no reward. For arm ii, set qi(g,w)=qi(w,g)=1q^{i}(g,w)=q^{i}(w,g)=1; and fgi(li)=0f^{i}_{g}(l_{i})=0 and fgi(t)=1f^{i}_{g}(t)=1 for all t≠lit\neq l_{i}. Furthermore, fwi(t)=0f^{i}_{w}(t)=0 for all tt. Also set rgi=lir^{i}_{g}=l_{i} and rwi=0r^{i}_{w}=0. Therefore, for any arm ii, any policy will obtain reward from this arm if and only if it chooses the start state to be gg, and plays the arm periodically once every lil_{i} steps to obtain average reward 11. Therefore, approximating the value of the optimal policy is the same as approximating the size of the largest subset of {l1,l2,…,ln}\{l_{1},l_{2},\ldots,l_{n}\} so that this subset induces a periodic schedule. The NP-Hardness proof of periodic scheduling in shows that this problem as hard as approximating the size of the largest subset of vertices in a graph whose induced subgraph is bipartite, which is nϵn^{\epsilon} hard to approximate unless P=NPP=NP. ∎

In the above proof, we showed that the problem becomes hard to approximate if the transition probabilities are non-monotone. However, that does not address the question of how far we can push our technique. We give a negative result by showing that Whittle’s LP can have arbitrarily large gap even if the Monotone bandit problem is slightly generalized by preserving the monotone nature of the transition probabilities, but removing the additional separable structure that they should be of the form fki(t)qi(k,j)f^{i}_{k}(t)q^{i}(k,j). In other words, the transition probability from state kk to state j≠kj\neq k if played after tt steps is qkji(t)q^{i}_{kj}(t) – these are arbitrary monotonically non-decreasing functions of tt. We insist ∑j≠kqjki(t)≤1\sum_{j\neq k}q^{i}_{jk}(t)\leq 1 for all k,tk,t to ensure feasibility. We show that Whittle’s LP has Ω(n)\Omega(n) gap for this generalization.

If the separability assumption on transition probabilities is relaxed, Whittle’s LP has Ω(n)\Omega(n) gap even with K=3K=3 states per arm.

The arms are all identical. Each has 33 states, {g,b,a}\{g,b,a\}. State aa is an absorbing state with reward. State gg has reward 11, and state bb has reward . The transition probabilities are as follows: qab(t)=qag(t)=0q_{ab}(t)=q_{ag}(t)=0. Further, qgb(t)=1/2q_{gb}(t)=1/2, qga(1)=0q_{ga}(1)=0; and qga(t)=1/2q_{ga}(t)=1/2 for t≥2t\geq 2. Finally, qba(t)=qbg(t)=0q_{ba}(t)=q_{bg}(t)=0 for t<2n−1t<2n-1; qbg(2n−1)=1/2q_{bg}(2n-1)=1/2; qba(2n−1)=0q_{ba}(2n-1)=0; and qba(t)=qbg(t)=1/2q_{ba}(t)=q_{bg}(t)=1/2 for t≥2nt\geq 2n.

A feasible single arm policy involves playing the arm in state bb after exactly 2n−12n-1 steps (w.p. 1/21/2, the state transitions to gg), and continuously in state gg (w.p. 1/21/2, the state transitions to bb). This policy never enters state aa. The average rate of play is 1/n1/n. The per-step reward of this policy is Θ(1/n)\Theta(1/n). Whittle’s LP chooses this policy for each arm so that the total rate of play is 11 and the objective is Θ(1)\Theta(1).

Now consider any feasible policy that plays at least 22 arms. If one of these arms is in state gg, there is a non-zero probability that either this arm is played after t>1t>1 steps, or the other arm in state bb is played after t≥2nt\geq 2n steps. In either case, w.p. 1/21/2, the arm enters absorbing state. Since this is an infinite horizon problem, the above event happens w.p. 11. Therefore, any feasible policy is restricted to playing only one arm in the long run, and obtains reward at most 1/n1/n. ∎

Monotone Bandits: Multiple Simultaneous Plays of Varying Duration

In this section, we extend the index policy for Monotone bandits to handle multiple plays of varying duration.We use the same problem description as in Section 4, except we assume there are M≥1M\geq 1 players, each of which can play one arm every time step. (Therefore, MM plays can proceed simultaneously per step.)

Furthermore, we assume that if arm ii in state k∈Sik\in\mathcal{S}_{i} is played, this play takes Lki≥1L^{i}_{k}\geq 1 steps and during this time, this player cannot play another arm. We note that the values LkiL_{k}^{i} are fixed beforehand, and the players are aware of these values. When the player plays arm ii in state kk, he/she is forced to remain on arm ii for LkiL_{k}^{i} steps, and he/she only receives one reward of magnitude rkir^{i}_{k}, at the beginning of this “blocking” period.

Suppose when the current play begins, the previous play had ended t≥1t\geq 1 steps ago. Then, at the end of the current play, the arm transitions to one of the states j≠kj\neq k w.p. qi(k,j)fki(t)q^{i}(k,j)f^{i}_{k}(t), and with the remaining probability stays in state kk. In Section 4, we focused on the case where M=1M=1 and all Lki=1L^{i}_{k}=1.

Since the overall algorithm and analysis are very similar to that in Section 4, we simply outline the differences. First, Whittle’s LP gets modified as follows:

In the above formulation, the first constraint merely encodes that in expectation MM arms are played per step. Note that each play of arm ii in state kk lasts LkiL^{i}_{k} steps, and the play begins with probability xktix^{i}_{kt}, so that the steady state probability that arm ii in state kk is being played at any time step is ∑t≥1Lkixkti\sum_{t\geq 1}L^{i}_{k}x^{i}_{kt}. Note now that if the play begins after tt steps, then the arm was idle for t−1t-1 steps before this event. Therefore, the quantity ∑t≥1(t+Lki−1)xkti\sum_{t\geq 1}(t+L^{i}_{k}-1)x^{i}_{kt} would be the steady state probability that the arm ii is in state kk. This summed over all kk must be at most 11 for any arm ii. This is the second constraint. The final constraint encodes that the rate of leaving state kk in steady state (LHS) must be the same as the rate of entering state kk (RHS).

The balanced linear program is in Fig. 12. (Recall the definition of ΔPki(t)\Delta P^{i}_{k}(t) from Equation 2.) Next, Lemma 4.2 gets modified as follows:

In the optimal solution to (Balance), one of the following is true for every arm ii with hi>0h_{i}>0: Either repeatedly playing the arm yields per-step reward at least λ+hi\lambda+h_{i}; or for every state k∈Sik\in\mathcal{S}_{i}, there exists t∈Wkit\in\mathcal{W}^{i}_{k} such that the following LP constraint is tight with equality.

Arm i∈U1i\in U_{1} if repeatedly playing it yields average per-step reward at least λ+hi\lambda+h_{i}. Our policy described in the next section favors these arms and continuously plays them.

Arm i∈U2i\in U_{2} if i∉U1i\notin U_{1} and hi>0h_{i}>0. Note that for i∈U2i\in U_{2}, ∀k\forall k, ∃\exists t∈Wkit\in\mathcal{W}^{i}_{k} that makes Inequality (6) tight.

For any arm i∈U2i\in U_{2} and state k∈Sik\in\mathcal{S}_{i}, if ΔPki(t)<0\Delta P^{i}_{k}(t)<0, then:

2 BalancedIndex Policy

For each i∈U2i\in U_{2} and state k∈Sik\in\mathcal{S}_{i}, let tkit^{i}_{k} be the smallest value of t∈Wkit\in\mathcal{W}^{i}_{k} for which Inequality (3) is tight. By Lemma 4.2, tkit^{i}_{k} is well-defined for every k∈Sik\in\mathcal{S}_{i}.

For arm i∈U2i\in U_{2}, partition the states Si\mathcal{S}_{i} into states Gi,Ii\mathcal{G}_{i},\mathcal{I}_{i} as follows:

k∈Gik\in\mathcal{G}_{i} if ΔPki(t)<0\Delta P^{i}_{k}(t)<0. (By Lemma 5.2, tki=1t^{i}_{k}=1.)

k∈Iik\in\mathcal{I}_{i} if ΔPki(t)≥0\Delta P^{i}_{k}(t)\geq 0.

Finally, the BalancedIndex policy is described in Figure 13. Note that any arm i∈U2i\in U_{2} that is observed to be in a state in Gi\mathcal{G}_{i} is continuously played until its state transitions into Ii\mathcal{I}_{i}. This preserves the invariant that at most M−∣U1∣M-|U_{1}| arms i∈U2i\in U_{2} are in states k∈Gik\in\mathcal{G}_{i} at any time step.

3 Lyapunov Function Analysis

Define the potential for each arm in U2U_{2} at any time as follows.

If arm i∈U2i\in U_{2} moved to state k∈Sik\in\mathcal{S}_{i} some yy steps ago (y≥1y\geq 1 by definition), the potential is pki+hi(min⁡(y,tki)−1)p^{i}_{k}+h_{i}(\min(y,t^{i}_{k})-1).

Therefore, whenever the arm i∈U2i\in U_{2} enters state kk, its potential is pkip^{i}_{k}. If k∈Iik\in\mathcal{I}_{i}, the potential then increases at rate hih_{i} for tki−1t^{i}_{k}-1 steps, after which it remains fixed until a play completes for it. When our policy decides to play arm i∈U2i\in U_{2}, its current potential is pki+hi(tki−1)p^{i}_{k}+h_{i}(t^{i}_{k}-1).

We finally complete the analysis in the following lemma. The proof crucially uses the “balance” property of the dual, which states that Mλ=∑ihi≥OPT/2M\lambda=\sum_{i}h_{i}\geq OPT/2. Let ΦT\Phi_{T} denote the total potential at any step TT and let RTR_{T} denote the total reward accrued until that step. Define the function LT=T⋅OPT/2−RT−ΦT\mathcal{L}_{T}=T\cdot OPT/2-R_{T}-\Phi_{T}. Let ΔRT=RT+1−RT\Delta R_{T}=R_{T+1}-R_{T} and ΔΦT=ΦT+1−ΦT\Delta\Phi_{T}=\Phi_{T+1}-\Phi_{T}.

LT\mathcal{L}_{T} is a Lyapunov function. i.e., E[LT+1∣LT]≤LT\mathbf{E}[\mathcal{L}_{T+1}|\mathcal{L}_{T}]\leq\mathcal{L}_{T}. Equivalently, at any step:

Arms i∈U1i\in U_{1} are played continuously and yield average per step reward λ+hi\lambda+h_{i}, so that for any such arm ii being played, E[ΔRT]=λ+hi\mathbf{E}[\Delta R_{T}]=\lambda+h_{i}.

Next focus on arms i∈U2i\in U_{2}. As before, it is easy to show that when played, regardless of whether k∈Gik\in\mathcal{G}_{i} or k∈Iik\in\mathcal{I}_{i},

where the last equality follows from the definition of tkit^{i}_{k} (Definition 10). Since the play lasts LkiL^{i}_{k} time steps, the amortized per step change for the duration of the play, ΔRT+E[ΔΦT]\Delta R_{T}+\mathbf{E}[\Delta\Phi_{T}], is equal to λ+hi\lambda+h_{i}.

We finally bound the increase in reward plus potential at any time step. At step TT, let SgS_{g} denote the arms in U1U_{1} and those in U2U_{2} in states k∈Gik\in\mathcal{G}_{i}. Let SrS_{r} denote the “ready” arms in states k∈Iik\in\mathcal{I}_{i}, and let SnS_{n} denote the set of arms that are not “ready”. There are two cases. If ∣Sg∪Sr∣≥M|S_{g}\cup S_{r}|\geq M, then some Sp⊆Sg∪SrS_{p}\subseteq S_{g}\cup S_{r} with ∣Sp∣=M|S_{p}|=M is being played.

Next, if ∣Sg∪Sr∣<M|S_{g}\cup S_{r}|<M, then all these arms are being played.

Since the potentials of the arms not being played do not decrease (since all hl>0h_{l}>0), the total change in reward plus potential is at least OPT/2OPT/2. ∎

The BalancedIndex policy in Figure 13 is a 22 approximation for Monotone bandits with multiple simultaneous plays of variable duration.

Monotone Bandits: Switching Costs

In several scenarios, playing an arm continuously incurs no extra cost, but switching to a different arm incurs a closing cost for the old arm and a setup cost for the new arm. For the applications mentioned in Section 1, in the context of UAV navigation , this is the cost of moving the UAV to the new location; or in the case of wireless channel selection, this is the setup cost of transmitting on the new channel.

We now show a 22-approximation for Monotone Bandits when the cost of switching out of arm ii is cic_{i} and the cost of switching into arm ii is sis_{i}. This cost is subtracted from the reward. Note that the switching cost depends additively on the closing and setup costs of the old and new arms. The remaining formulation is the same as Section 4.

Since the overall policy and proof are very similar to the version without these costs, we only outline the differences. First, we define the following variables: Let xktix^{i}_{kt} denote the probability of the event that arm ii in state kk is played after tt steps and this arm was switched into from a different arm. Let yktiy^{i}_{kt} denote the equivalent probability when the previous play was for the same arm. The LP relaxation is as follows:

The balanced dual is the following. (Recall the definition of ΔPki(t)\Delta P^{i}_{k}(t) from Equation 2.)

The proof of the next claim follows from complementary slackness exactly as the proof of Lemma 4.2.

In the optimal solution to (DualSwitch), one of the following is true for every arm ii with hi>0h_{i}>0: Either repeatedly playing the arm yields per-step reward at least λ+hi\lambda+h_{i}; or for every state k∈Sik\in\mathcal{S}_{i}, there exists t∈Wkit\in\mathcal{W}^{i}_{k} such that one of the following two LP constraints is tight with equality:

λ+thi≥rki−ci−si+fki(t)ΔPki(t)\lambda+th_{i}\geq r^{i}_{k}-c_{i}-s_{i}+f^{i}_{k}(t)\Delta P^{i}_{k}(t).

t(λ+hi)≥rki+fki(t)ΔPki(t)t(\lambda+h_{i})\geq r^{i}_{k}+f^{i}_{k}(t)\Delta P^{i}_{k}(t).

Only consider arms with hi>0h_{i}>0. The next lemma is similar to Lemma 4.3:

For any arm ii and state k∈Sik\in\mathcal{S}_{i}, if ΔPki(t)<0\Delta P^{i}_{k}(t)<0, then: λ+hi=rki+fki(1)ΔPki(t)\lambda+h_{i}=r^{i}_{k}+f^{i}_{k}(1)\Delta P^{i}_{k}(t).

For arm ii, let tkit^{i}_{k} denote the smallest tt for which some dual constraint for state kk (refer Lemma 6.1) is tight. The state k∈Sik\in\mathcal{S}_{i} belongs to Gi\mathcal{G}_{i} if the second constraint in Lemma 6.1 is tight at t=tkit=t^{i}_{k}, i.e.:

By Lemma 6.2, this includes the case where ΔPki(t)<0\Delta P^{i}_{k}(t)<0, so that tki=1t^{i}_{k}=1.

Otherwise, the first constraint in Lemma 6.1 is tight at t=tkit=t^{i}_{k}. This state kk belongs to Ii\mathcal{I}_{i}, and becomes “ready” after tkit^{i}_{k} steps.

With these definitions, the BalancedIndex policy is as follows: Stick with an arm ii as long as its state is some k∈Gik\in\mathcal{G}_{i}, and play it after waiting tki−1t^{i}_{k}-1 steps. Otherwise, play any “ready” arm. If no “good” or “ready” arm is available, then idle.

The BalancedIndex policy is a 22-approximation for Monotone bandits with switching costs.

The definitions of the potentials and proof are the same as Lemma 4.4. The only difference is that the potential of state k∈Gik\in\mathcal{G}_{i} is defined to be fixed at pkip^{i}_{k}. Whenever the player sticks to arm ii in state k∈Gik\in\mathcal{G}_{i} and plays it after waiting tki−1t^{i}_{k}-1 steps, the reward plus change in potential amortized over the tkit^{i}_{k} steps (waiting plus playing) is exactly λ+hi\lambda+h_{i} by Eq. (7). The rest of the proof is the same as before. ∎

Feedback MAB with Observation Costs

In wireless channel scheduling, the state of a channel can be accurately determined by sending probe packets that consume energy. However, data transmission at high bit-rate yields only delayed feedback about channel quality. This aspect can be modeled by decoupling observation about the state of the arm via probing, from the process of utilizing or playing the arm to gather reward (data transmission). We model this as a variant of the Feedback MAB problem, where at any step, MM arms can be played without observing its state, and the reward of the underlying state is deposited in a bank. Further, any arm can be probed by paying a cost to determine its underlying state, and multiple such probes are allowed per step. The goal is to maximize the difference between the time average reward and probing cost. A version of the probe problem was first proposed in a preliminary draft of .

Formally, we consider the following variant of the Feedback MAB problem. As before, the underlying 22-state Markov chain (on states {g,b})\{g,b\})) corresponding to an arm evolves irrespective of whether the arm is played or not. When arm ii is played, a reward of rir_{i} or (depending on whether the underlying state is gg or bb respectively) is deposited into a bank. Unlike the Feedback MAB problem, the player does not get to know the reward value or the state of the arm. However, during the end of any time step, the player can probe any arm ii by paying cost cic_{i} to observe its underlying state. We assume that the probes are at the end of a time step, and the state evolves between the probe and the start of the next time step. More than one arm can be probed and observed any time step, but at most MM arms can be played, and the plays are of unit duration. The goal as before is to maximize the infinite horizon time-average difference between the reward obtained from playing the arms and the probing cost spent. Denote the difference between the reward and the probing cost as the “value” of the policy.

Though the probe version is not a Monotone bandit problem, we show that the above techniques can indeed be used to construct a policy which yields a 2+ϵ2+\epsilon-approximation for any fixed ϵ>0\epsilon>0.

Let OPTOPT denote the value of the optimal policy. The following is now an LP relaxation for the optimal policy. Let xgtix^{i}_{gt} (resp. xbtix^{i}_{bt}) denote the probability that arm ii was last observed to be in state gg (resp. bb) tt time steps ago and played at the current time step. Let zgtiz^{i}_{gt} (resp. zbtiz^{i}_{bt}) denote the probability that arm ii was last observed to be in state gg (resp. bb) tt steps ago and is probed at the current time step. The probes are at the end of a time step, and the state evolves between the probe and the start of the next time step. The LP formulation is as follows, as before the LP can be solved upto a 1+ϵ1+\epsilon factor.

The dual assigns a variable ϕsti≥0\phi^{i}_{st}\geq 0 for each arm ii, state s∈{g,b}s\in\{g,b\}, and last observed time t≥1t\geq 1. It further assigns variables hi,pi≥0h_{i},p_{i}\geq 0 per arm ii, and λ≥0\lambda\geq 0 globally. Let RstiR^{i}_{st} be the expected reward of playing arm ii in state ss when last observed time is tt. (Rgti=riuitR^{i}_{gt}=r_{i}u_{it}, Rgti=rivitR^{i}_{gt}=r_{i}v_{it}.) The balanced dual is as follows:

We omit explicitly writing the corresponding primal. Note now that in the dual optimal solution, ϕsti=max⁡(0,Rsti−λ)\phi^{i}_{st}=\max(0,R^{i}_{st}-\lambda), s∈{g,b}s\in\{g,b\}. (This is the smallest value of ϕsti\phi^{i}_{st} satisfying the first constraint, and whenever we reduce ϕsti\phi^{i}_{st}, we preserve the latter constraints while possibly reducing hih_{i}.) Moreover, we have the following complementary slackness conditions:

hi>0⇒∑t≥1t(zgti+zbti)=1+ω>0h_{i}>0\Rightarrow\sum_{t\geq 1}t(z^{i}_{gt}+z^{i}_{bt})=1+\omega>0.

zgti>0⇒thi=−ci−(1−uit)pi+∑l≤tϕgliz^{i}_{gt}>0\Rightarrow th_{i}=-c_{i}-(1-u_{it})p_{i}+\sum_{l\leq t}\phi^{i}_{gl}.

zbti>0⇒thi=−ci+vitpi+∑l≤tϕbliz^{i}_{bt}>0\Rightarrow th_{i}=-c_{i}+v_{it}p_{i}+\sum_{l\leq t}\phi^{i}_{bl}

Focus only on arms for which hi>0h_{i}>0. For these arms, we have the following.

For at least one t≥1t\geq 1, zgti>0z^{i}_{gt}>0, and similarly, for some (possibly different) tt, zbti>0z^{i}_{bt}>0.

Let di=min⁡{t≥1,zbti>0}d_{i}=\min\{t\geq 1,z^{i}_{bt}>0\}, then dihi=−ci+vidipi+∑l≤diϕbtid_{i}h_{i}=-c_{i}+v_{id_{i}}p_{i}+\sum_{l\leq d_{i}}\phi^{i}_{bt}. Further, define mi=∣{ϕbli>0:l≤di}∣m_{i}=|\{\phi^{i}_{bl}>0:l\leq d_{i}\}|, then ϕbli>0\phi^{i}_{bl}>0 for di−mi+1≤l≤did_{i}-m_{i}+1\leq l\leq d_{i} and ϕbli=0\phi^{i}_{bl}=0 for l≤di−mil\leq d_{i}-m_{i}.

Let ei=min⁡{t≥1,zgti>0}e_{i}=\min\{t\geq 1,z^{i}_{gt}>0\}. Then, for all t≤eit\leq e_{i}, λ+ϕgti=Rgti\lambda+\phi^{i}_{gt}=R^{i}_{gt}. Moreover, ei(λ+hi)=∑t≤eiRgti−ci−(1−uiei)pie_{i}(\lambda+h_{i})=\sum_{t\leq e_{i}}R^{i}_{gt}-c_{i}-(1-u_{ie_{i}})p_{i}.

For part (1), by complementary slackness and using hi>0h_{i}>0, we have ∑t≥1t(zgti+zbti)>0\sum_{t\geq 1}t(z^{i}_{gt}+z^{i}_{bt})>0. But if zgti>0z^{i}_{gt}>0 for some tt, then by ∑t≥1(1−uit)zgti=∑t≥1vitzbti\sum_{t\geq 1}(1-u_{it})z^{i}_{gt}=\sum_{t\geq 1}v_{it}z^{i}_{bt}, we have zbti>0z^{i}_{bt}>0 for some (possibly different) tt. The reverse holds as well.

Part (2) follows by complementary slackness on zbdii>0z^{i}_{bd_{i}}>0. The second part follows from the fact that ϕbli\phi^{i}_{bl} is non-decreasing since RbliR^{i}_{bl} is non-decreasing.

For part (3), since zbeii>0z^{i}_{be_{i}}>0, by complementary slackness, eihi=−ci−(1−uiei)pi+∑t≤eiϕgtie_{i}h_{i}=-c_{i}-(1-u_{ie_{i}})p_{i}+\sum_{t\leq e_{i}}\phi^{i}_{gt}. Note that ϕgti=max⁡(0,Rgti−λ)\phi^{i}_{gt}=\max(0,R^{i}_{gt}-\lambda). If ei=1e_{i}=1, then since the LHS is positive, it must be that ϕgti>0\phi^{i}_{gt}>0, which implies that ϕgti=Rgti−λ\phi^{i}_{gt}=R^{i}_{gt}-\lambda. If ei>1e_{i}>1, then we subtract (ei−1)hi≥−ci−(1−ui(ei−1))pi+∑t≤ei−1ϕgti(e_{i}-1)h_{i}\geq-c_{i}-(1-u_{i(e_{i}-1)})p_{i}+\sum_{t\leq e_{i}-1}\phi^{i}_{gt} from the equality and get hi≤(uiei−uiei−1)pi+ϕgeiih_{i}\leq(u_{ie_{i}}-u_{i{e_{i}-1}})p_{i}+\phi^{i}_{ge_{i}}. The LHS is positive and the first term of the RHS is negative, so ϕgeii>0\phi^{i}_{ge_{i}}>0. Since ϕgti\phi^{i}_{gt} by the above formula is non-increasing, ϕgti>0\phi^{i}_{gt}>0 ∀t≤ei\forall t\leq e_{i}. This in turn implies that ϕgti=Rgti−λ\phi^{i}_{gt}=R^{i}_{gt}-\lambda for all t≤eit\leq e_{i}. Substituting this back into the equality yields the second result. ∎

2 Index Policy

Let the set of arms with hi>0h_{i}>0 be SS, we ignore all arms except those in SS. The policy uses the parameters eie_{i}, did_{i} and mim_{i} defined in Lemma 7.1, If arm ii was observed to be in state bb, we denote it “not ready” for the next di−mid_{i}-m_{i} steps, and denote it to be “ready” at the end of the (di−mi)th(d_{i}-m_{i})^{th} step.

The policy in Fig. 14 is a 2+ϵ2+\epsilon approximation to Feedback MAB with observation costs.

Let OPTOPT denote the 1+ϵ1+\epsilon approximate LP solution. Recall that ϕsti=max⁡(0,Rsti−λ)\phi^{i}_{st}=\max(0,R^{i}_{st}-\lambda), s∈{g,b}s\in\{g,b\}.

Define the following potentials for each arm ii. If it was last observed to be in state bb some tt steps ago, define its potential to be (min⁡(t,di−mi))hi(\min(t,d_{i}-m_{i}))h_{i}; if it was last observed in state gg, define its potential to be pip_{i}. We show that the time-average expected value (reward minus cost) plus change in potential per step is at least min⁡(Mλ,∑i∈Shi)≥OPT/2\min(M\lambda,\sum_{i\in S}h_{i})\geq OPT/2. Since the potentials are bounded, this proves a 2-approximation.

Each ready arm in Stage 1 is played for mim_{i} steps and probed at the end of the mithm_{i}^{th} step. Suppose that the arm was last observed to be in state bb some tt steps ago. The total expected value is −ci+∑l=tt+mi−1Rbli-c_{i}+\sum_{l=t}^{t+m_{i}-1}R^{i}_{bl}, which is at least −ci+∑l=di−mi+1diRbli-c_{i}+\sum_{l=d_{i}-m_{i}+1}^{d_{i}}R^{i}_{bl} since Rbli=rivilR^{i}_{bl}=r_{i}v_{il} is non-decreasing in ll. The expected change in potential is vi(t+mi−1)pi−(di−mi)hiv_{i(t+m_{i}-1)}p_{i}-(d_{i}-m_{i})h_{i}, since the arm loses the potential build up of (di−mi)hi(d_{i}-m_{i})h_{i} while it was not ready, and has a probability of vi(t+mi−1)v_{i(t+m_{i}-1)} of becoming good. This is at least vidipi−(di−mi)hiv_{id_{i}}p_{i}-(d_{i}-m_{i})h_{i} since by definition, t≥di−mi+1t\geq d_{i}-m_{i}+1. After mim_{i} steps, the total expected value plus change in potential is at least −ci+∑l=di−mi+1diRbli+vidipi−(di−mi)hi≥mihi+∑l=di−mi+1di(Rbli−ϕbli)-c_{i}+\sum_{l=d_{i}-m_{i}+1}^{d_{i}}R^{i}_{bl}+v_{id_{i}}p_{i}-(d_{i}-m_{i})h_{i}\geq m_{i}h_{i}+\sum_{l=d_{i}-m_{i}+1}^{d_{i}}(R^{i}_{bl}-\phi^{i}_{bl}). The inequality follows by Lemma 7.1 Part (2). Since Rbli−ϕbli=λR^{i}_{bl}-\phi^{i}_{bl}=\lambda for di−mi+1≤l≤did_{i}-m_{i}+1\leq l\leq d_{i}, the total expected change in value plus potential is mi(λ+hi)m_{i}(\lambda+h_{i}). Thus, the average per step for the duration of the plays is at least λ+hi\lambda+h_{i}. (This proof also shows that if mi=0m_{i}=0, then the probing on the previous step does not decrease the potential.)

Similarly, each arm ii in Stage 2 was probed and found to be good, so that it is exploited for eie_{i} steps and probed at the end of the eithe_{i}^{th} step. During these eie_{i} steps, the total expected value is ∑t≤eiRgti−ci\sum_{t\leq e_{i}}R^{i}_{gt}-c_{i}, and expected change in potential is −(1−uiei)pi-(1-u_{ie_{i}})p_{i}, since the arm has probability (1−uiei)(1-u_{ie_{i}}) of being in a bad state at the end. By Lemma 7.1, Part (3), the total expected value plus change in potential is ∑t≤eiRgti−ci−(1−uiei)pi=ei(λ+hi)\sum_{t\leq e_{i}}R^{i}_{gt}-c_{i}-(1-u_{ie_{i}})p_{i}=e_{i}(\lambda+h_{i}), so the average change per step is λ+hi\lambda+h_{i}.

Now, if MM arms are currently in Stage 1 or 2, then the total value plus change in potential for these arms is at least Mλ≥OPT/2M\lambda\geq OPT/2. If fewer than MM arms are in those stages, then every arm ii that is not in Stage 1 or Stage 2 is in state bb and not “ready”. Thus, its change in potential is hih_{i}. Moreover, for every arm jj that is in Stage 1 or Stage 2, we also get a contribution of at least λ+hj≥hj\lambda+h_{j}\geq h_{j}. Summing, we get a expected value plus change in potential of at least ∑i∈Shi≥OPT/2\sum_{i\in S}h_{i}\geq OPT/2, which completes the proof. ∎

Non-Preemptive Machine Replenishment

Finally, we show our technique of balancing provides a 22-approximation for an unrelated, yet classic, restless bandit problem : modeling breakdown and repair of machines. Interestingly, we also show that the Whittle index policy is an arbitrarily poor approximation to non-preemptive machine replenishment, and thus the technique we suggest can be significantly stronger than the Whittle index policies.

There are nn independent machines whose performance degrades with time in a Markovian fashion. This is modeled by transitions between states yielding decreasing rewards. At any step, any machine can be moved to a repair queue by paying a cost. The repair process is non-preemptive, Markovian, and can work on at most MM machines per time step. A scheduling policy decides when to move a machine to a repair queue and which machine to repair at any time slot. The goal is to find a scheduling policy to maximize the time-average difference between rewards and repair cost. Note that if an arm is viewed as a machine, playing it corresponds to repairing it, and does not yield reward. In that sense, this problem is like an inverse of the Monotone bandits problem. We emphasize that the repairs are non-preemptive, which means that once a repair is started, it cannot be stopped.

Formally, there are nn machines. Let Si\mathcal{S}_{i} denote the set of active states for machine ii. If the state of machine ii is u∈Siu\in\mathcal{S}_{i} at time the beginning of time tt, the state evolves into v∈Siv\in\mathcal{S}_{i} at time t+1t+1 w.p. puv\mathbf{p}_{uv}. The state transitions for different machines when they are active are independent. If the state of machine ii is u∈Siu\in\mathcal{S}_{i} during a time step, it accrues reward ru≥0r_{u}\geq 0. We assume each SiS_{i} is poly-size.

During any time instant, machine ii in state u∈Siu\in\mathcal{S}_{i} can be scheduled for maintenance by moving it to the repair queue starting with the next time slot by paying cost cuc_{u}. The maintenance process for machine ii takes time which is distributed as Geometric(si)(s_{i}), independent of the other machines. Therefore, if the repair process works on machine ii at any time step, this repair completes after that time step with probability sis_{i}. During the time when the machine is in the repair queue, it yields no reward. When the machine is in the repair queue, we denote its state by κi\kappa_{i}. The maintenance process is non-preemptive, and the server can maintain at most MM machines at any time. When a repair completes, the machine ii returns to its “initial active state” ρi∈Si\rho_{i}\in\mathcal{S}_{i} at the beginning of the next time slot. The goal is to design a scheduling policy so that the time- average reward minus maintenance cost is maximized.

In related work, Munagala and Shi showed using a novel queuing analysis that when the repair process is preemptive, M=1M=1, and when Si={ρi,bi}\mathcal{S}_{i}=\{\rho_{i},b_{i}\} for all machines ii, and rbi=0r_{b_{i}}=0, so that the machine is either “active” (state ρi\rho_{i}) or “broken” (state bib_{i}), then a simple greedy policy that is equivalent to the Whittle index policy is a 1.511.51 approximation. However, as we show later, the Whittle index policy can be arbitrarily bad for non-preemptive repairs since it computes indices for each machine separately. We now show that our duality-based technique yields a 22-approximation policy with general Si\mathcal{S}_{i}, MM, and non-preemptive repairs.

We now present an LP bound on the optimal policy. For any policy, let xux_{u} denote the steady state probability that machine ii is in state uu during a time step, and zuz_{u} denote the steady state probability that the machine ii transitions from state u∈Siu\in\mathcal{S}_{i} to state κi\kappa_{i}. We assume the policy moves a machine to the repair queue at the beginning of a time slot, and that repairs finish at end of a time slot. Note that it does not make sense to repair a machine in its initial state xρix_{\rho_{i}} so zρi=0z_{\rho_{i}}=0.

The dual of the above LP assigns potentials ϕu\phi_{u} for each state u∈Siu\in\mathcal{S}_{i}. Further, it assigns a value hi≥0h_{i}\geq 0 for each machine ii, and a global variable λ≥0\lambda\geq 0. We directly write the balanced dual:

Note that Mλ=∑ihi≥OPT/2M\lambda=\sum_{i}h_{i}\geq OPT/2. We omit explicitly writing the corresponding primal formulation. Now, Focus only on machines for which hi>0h_{i}>0. We have the following complementary slackness conditions:

hi>0⇒xκi+∑u∈Sixu =1−ω>0h_{i}>0\Rightarrow x_{\kappa_{i}}+\sum_{u\in\mathcal{S}_{i}}x_{u}\ =1-\omega>0

xu>0⇒hi=ru+∑v∈Sipuv(ϕv−ϕu)x_{u}>0\Rightarrow h_{i}=r_{u}+\sum_{v\in\mathcal{S}_{i}}\mathbf{p}_{uv}(\phi_{v}-\phi_{u}).

xκi>0⇒λ+hi=siϕρix_{\kappa_{i}}>0\Rightarrow\lambda+h_{i}=s_{i}\phi_{\rho_{i}}.

2 Index Policy and Analysis

Consider only machines with hi>0h_{i}>0. There are two cases:

For machines in which zv>0z_{v}>0 for some vv, we have xκi>0x_{\kappa_{i}}>0 so that the policy can only reach states u∈Siu\in\mathcal{S}_{i} in which xu+zu>0x_{u}+z_{u}>0.

For machines in which zv=0z_{v}=0 for all vv, we have xκi=0x_{\kappa_{i}}=0. The policy will never repair the machine, and after a finite number of steps,, the machine will only visit states u∈Siu\in\mathcal{S}_{i} for which xu>0x_{u}>0.

Adding the third and fourth constraints of the primal yields sixκi=∑u∈Sizus_{i}x_{\kappa_{i}}=\sum_{u\in\mathcal{S}_{i}}z_{u}. If for some vv, zv>0z_{v}>0, then xκi>0x_{\kappa_{i}}>0, which by the fourth constraint in the primal implies that xρi>0x_{\rho_{i}}>0. Now, suppose that xv>0x_{v}>0, then for every state uu such that pvu>0\mathbf{p}_{vu}>0, the third constraint in the primal implies that zu+xu>0z_{u}+x_{u}>0. If zu>0z_{u}>0, then the policy will stop at state uu and enter machine ii into the repair queue. If zu=0z_{u}=0, then it must be that xu>0x_{u}>0. Repeatedly using the above argument starting at v=ρiv=\rho_{i}, we see that the policy will only visit states with xu+zu>0x_{u}+z_{u}>0, not going beyond the first state where zu>0z_{u}>0.

For machines in which zv=0z_{v}=0 for all vv, conditions (3) and (4) in the primal imply that {xv}\{x_{v}\} are the steady state probabilities of a Markov chain with transition matrix [puv][\mathbf{p}_{uv}]. Therefore, after a finite number of steps, the machine will only go to states u∈Siu\in\mathcal{S}_{i} for which xu>0x_{u}>0. ∎

The policy in Fig. 15 is a 22-approximation for non-preemptive machine replenishment.

We next interpret ϕu\phi_{u} as the potential for state u∈Siu\in\mathcal{S}_{i}. Let the potential for state κi\kappa_{i} be . We show that in each step, the expected reward plus change in potential is at least OPT/2OPT/2.

First, when any active machine ii enters a state uu with zu>0z_{u}>0, then the machine is moved to the repair queue by paying cost cuc_{u}. The potential change is −ϕu-\phi_{u}, and the sum of the cost and potential change is −cu−ϕu-c_{u}-\phi_{u}. The last term is by complementary slackness. Therefore, moving a machine to the repair queue does not alter the potential.

Next, let SrS_{r} denote the set of machines in the repair queue, and let Sw⊆SrS_{w}\subseteq S_{r} denote the subset of these machines being repaired at the current time. Note that if ∣Sr∣<M|S_{r}|<M, then Sw=SrS_{w}=S_{r}, otherwise ∣Sw∣=M|S_{w}|=M. For each machine i∈Swi\in S_{w}, the repair finishes w.p. sis_{i}, and the machine’s potential changes by ϕρi\phi_{\rho_{i}}. Therefore, the expected change in potential per step is siϕρi=λ+his_{i}\phi_{\rho_{i}}=\lambda+h_{i} by complementary slackness.

Suppose first that ∣Sw∣=M|S_{w}|=M, then the net reward plus change in potential is at least M(λ+hi)>Mλ≥OPT/2M(\lambda+h_{i})>M\lambda\geq OPT/2. Suppose that ∣Sw∣<M|S_{w}|<M, then must have Sw=SrS_{w}=S_{r}. Note that any machine that enters a state uu with zu>0z_{u}>0 will be automatically moved to SrS_{r} at the beginning of the time step. Using this along with Claim 8.1, we have that after a finite number of steps, any machine i∉Sri\notin S_{r} enters a state uu with xu>0x_{u}>0. (Since we care about infinite horizon average reward, the finite number of steps don’t matter.) The reward plus change in potential for machine i∉Sri\notin S_{r} is ru+∑v∈Sipuv(ϕv−ϕu)=hir_{u}+\sum_{v\in\mathcal{S}_{i}}\mathbf{p}_{uv}(\phi_{v}-\phi_{u})=h_{i} by complementary slackness. Therefore, the total reward plus change in potential is ∑i∈Sr(λ+hi)+∑i∉Srhi≥∑ihi≥OPT/2\sum_{i\in S_{r}}(\lambda+h_{i})+\sum_{i\notin S_{r}}h_{i}\geq\sum_{i}h_{i}\geq OPT/2. Since the potentials are bounded, the policy is a 2- approximation. ∎

3 Gap of the Whittle Index

We now show that the Whittle index policy is an arbitrarily poor approximation to non-preemptive machine replenishment. Note that in the situation shown below, Whittles index is a 1.511.51 approximation when repairs can be preempted . However, when no preemption is allowed, the policy can perform arbitrarily poorly.

The Whittle index policy is an arbitrarily poor approximation for non-preemptive machine replenishment even with 22 machines and M=1M=1 repairs per step.

Suppose M=1M=1, there are two machines {1,2}\{1,2\}, and Si={ρi,bi}\mathcal{S}_{i}=\{\rho_{i},b_{i}\} for machines i∈{1,2}i\in\{1,2\}. Let rρi=rir_{\rho_{i}}=r_{i} and let rbi=0r_{b_{i}}=0, so that the machine is either “active” (state ρi\rho_{i}) or “broken” (state bib_{i}). Let pip_{i} denote the probability of transitioning from state ρi\rho_{i} to bib_{i}. Assume ci=0c_{i}=0. Note that playing a machine corresponds to moving it to the repair queue.

The Whittle index of a state is the largest penalty that can be charged per maintenance step so that the optimal single machine policy will still schedule the machine for maintenance on entering the current state. In 22-state machines mentioned above, the Whittle index in state ρi\rho_{i} is negative, since even with penalty zero per repair step, the policy will not schedule the machine for maintenance in the good state. The Whittle index for state bib_{i} is ηi=siri/pi\eta_{i}=s_{i}r_{i}/p_{i}, since for this value of penalty, the expected reward of ri/pir_{i}/p_{i} per renewal is the same as the expected penalty of ηi/si\eta_{i}/s_{i} paid for maintenance in the renewal period.

Suppose s1=1/n4s_{1}=1/n^{4}, s2=1s_{2}=1, p1=1/np_{1}=1/n, p2=1p_{2}=1, r1=r2=1r_{1}=r_{2}=1. If used by itself, machine 11 yields reward r1s1s1+p1≈1/n3r_{1}\frac{s_{1}}{s_{1}+p_{1}}\approx 1/n^{3} and machine 22 yields reward r2s2s2+p2=1r_{2}\frac{s_{2}}{s_{2}+p_{2}}=1. Any reasonable policy will therefore only maintain machine 22 and ignore machine 11. However, in the Whittle index policy, when machine 11 is broken and machine 22 is active, the policy decides to maintain machine 11 (since the Whittle index, η1\eta_{1}, of b1b_{1} is positive and that of ρ2\rho_{2} is negative). In this case, machine 11 is scheduled for repair. This repair takes O(n4)O(n^{4}) time steps and cannot be interrupted. Moreover, since machine 2 is bad at least half the time, this “blocking” by machine 1 will happen with rate O(1/2)O(1/2), so in the long run, machine 2 is almost always broken and the Whittle index policy obtains reward O(1/n3)O(1/n^{3}), while the optimal policy obtains reward r211+1=1/2r_{2}\frac{1}{1+1}=1/2 by only maintaining machine 22. ∎

Open Questions

Our work throws open interesting research avenues. First, can our algorithmic techniques be extended to other subclasses of restless bandits, for instance, the POMDP problem obtained by generalizing Feedback MAB to K>2K>2 states per arm? Note that unlike the K=2K=2 case considered here, the transition probability values are no longer monotone as they are based on an underlying Markov chain. Next, can matching hardness results be shown for these problems, particularly Feedback MAB. Finally, our analysis effectively uses piece-wise linear Lyapunov functions. Such functions derived from LP relaxations have also been used by Bertsimas, Gamarnik, and Tsitsiklis to show stability in multi-class queuing systems. Though the techniques and results in that work are very different from ours, it would be interesting to explore whether our techniques extend to multi-class queuing problems.

We thank Shivnath Babu, Jerome Le Ny, Ashish Goel, and Alex Slivkins for discussions concerning parts of this work. We also thank the anonymous FOCS 2007 and SODA 2009 reviewers for several helpful comments on earlier drafts of this work.

References

Appendix A Omitted Proofs

The following proofs are deferred here because they are independent of our duality based technique, and because of their lengths, we fear that they may detract from the paper’s flow.

We show examples in which the myopic policy and the optimal index policy exhibit the desired gaps against the optimum.

We now show an instance where the myopic policy that plays the arm with the highest expected next-step reward has gap Ω(n)\Omega(n) with respect to the reward of the optimal policy. The instance is an extension of the instance constructed above. There is one “type 1” deterministic arm with reward r1=1r_{1}=1. There are nn i.i.d. “type 2” arms with r2=nr_{2}=n, β=12n\beta=\frac{1}{2^{n}}, and αα+β=1n\frac{\alpha}{\alpha+\beta}=\frac{1}{n}.

First consider the myopic policy. Any policy encounters an instant where all the type 2 arms are in state bb. In this case, the myopic next step reward of any of these arms is at most r2αα+β<1r_{2}\frac{\alpha}{\alpha+\beta}<1, so that the policy always plays the type 11 arm, yielding long-term reward of 11.

Next consider the myopic policy that ignores the type 1 arm. Such a policy performs round-robin on the arms when it observes all of them to be in state bb. In this case, the probability that the arm it plays will be in state gg is at least vn≥12nv_{n}\geq\frac{1}{2^{n}}. Therefore, the behavior of this policy is dominated by the following 22-state Markov chain: The two states are hh and ll; state hh yields reward nn, and state ll, reward . The transition probabilities from hh to ll and vice-versa are 12n\frac{1}{2^{n}}. The long-term reward is therefore at least n2\frac{n}{2}, which lower-bounds the reward of the optimal policy.

We will now show an instance where there is a constant factor gap between the optimal policy and the optimal index policy. The example has 33 arms. Arm 11 is deterministic with reward r1=1r_{1}=1. Arms 22 and 33 are i.i.d.i.i.d. with α=β=0.1\alpha=\beta=0.1 and reward in state gg being r2=2r_{2}=2.

We compute the optimal policy by value iteration using a discount factor of γ=0.99\gamma=0.99 (to ensure the dynamic program converges). The optimal policy always plays arms 22 or 33 if either was just observed in state gg. The decisions are complicated only if both arms 2,32,3 were last observed in state bb. In this case, we can compactly represent the current state by the pair (k1,k2)∈Z+×Z+(k_{1},k_{2})\in\mathbf{Z^{+}}\times\mathbf{Z^{+}}, representing the time steps ago that arms 2,32,3 were observed in state bb respectively. For such a state, the policy either plays arm 11; or plays arms 22 or 33 depending on whether k1>k2k_{1}>k_{2} or not. Such a policy is therefore completely characterized by the region D\mathcal{D} on the (k1,k2)(k_{1},k_{2}) plane where the decision is to play arm 11; in the remaining region, it plays arm 22 or 33 depending on whether k1>k2k_{1}>k_{2} or not. For the optimal policy, we have:

In other words, the description of the optimal policy is as follows (note that it is symmetric w.r.t. arms 2,32,3):

Note the following non-index behavior where given the state of arms 11 and 22, the decision to play switches between these arms depending on the state of arm 33. If arm 22 was observed to be bb some 44 steps ago, then: (i) If arm 33 was bb some 22 steps ago, the policy plays arm 11; (ii) If arm 33 was bb some 33 steps ago, the policy plays arm 22. To compute the reward of this policy, we observe that it has an equivalent description as a Markov Chain over 66 states (these new states correspond to groups of states in the original process). A closed form evaluation of this chain shows that the reward of the optimal policy is 1.462181.46218.

We next perform this evaluation for the nearby index policies. Note that for any index policy, the region D\mathcal{D} has to be an axis-parallel square. The first is where the decision for k1=4,k2≤2k_{1}=4,k_{2}\leq 2 is to play arm 22, so that D={(k1,k2)∣k1,k2≤3}\mathcal{D}=\{(k_{1},k_{2})|k_{1},k_{2}\leq 3\}. This policy evaluates to an average reward 1.461041.46104. The next is where the decision for k1=4,k2=3k_{1}=4,k_{2}=3 is to play arm 11, so that D={(k1,k2)∣k1,k2≤4}\mathcal{D}=\{(k_{1},k_{2})|k_{1},k_{2}\leq 4\}. This policy has reward 1.461671.46167. Other index policies have only worse reward. This implies that there is a constant factor gap between the optimal policy and the best index policy.

A.2 Proof of Theorem 2.6

λ≥r(αα+β(α+β))\lambda\geq r\left(\frac{\alpha}{\alpha+\beta(\alpha+\beta)}\right). Consider the subcase λ≥r\lambda\geq r. The function F(λ,t)F(\lambda,t) is maximized by driving the expression (which is always non-positive) to zero. This happens when t=∞t=\infty. Otherwise, when r>λr>\lambda observe (using the upper bound of vtv_{t}) that

The above is now non-positive, and it follows again that t=∞t=\infty is the optimum solution.

In this case let λ=r(αα+β(α+β))−ρ\lambda=r\left(\frac{\alpha}{\alpha+\beta(\alpha+\beta)}\right)-\rho for some ρ>0\rho>0. Rewrite the above expression as

Define the following quantities (independent of tt):

Observe r−λ>ρr-\lambda>\rho. Note that ϕ,μ≥0\phi,\mu\geq 0. By assumption, the value ν∈(δ,1]\nu\in(\delta,1] has polynomial bit complexity. The same holds for η,ϕ,μ\eta,\phi,\mu and ρ\rho. Relaxing tt to be a real, observe:

Since the denominator of ∂F/∂t\partial F/\partial t is always non-negative, the value of t∗t^{*} is either t∗=1t^{*}=1, or the point where the sign of the numerator g(t)=(ϕ+μt)νt+ωg(t)=(\phi+\mu t)\nu^{t}+\omega changes from ++ to −-. We observe that g(t)g(t) has a unique maximum at t3=1log⁡(1/ν)−ϕμt_{3}=\frac{1}{\log(1/\nu)}-\frac{\phi}{\mu}. If g(t3)g(t_{3}) is negative then the numerator of ∂F(λ,t)∂t\frac{\partial F(\lambda,t)}{\partial t} is always negative and the optimum solution is at t∗=1t^{*}=1.

If g(t3)g(t_{3}) is positive, then it cannot change sign from ++ to −- in the range [1,t3)[1,t_{3}) since it has a unique maximum. Therefore in this range t=1t=1, t=⌊t3⌋t=\lfloor t_{3}\rfloor, or t=⌈t3⌉t=\lceil t_{3}\rceil are the optimum solutions.

But for t≥t3t\geq t_{3} since g(t)g(t) is decreasing, ∂F/∂t\partial F/\partial t changes sign once from ++ to −- as tt increases, and →0\rightarrow 0 as t→∞t\rightarrow\infty. This behavior is illustrated in Figure 16. Therefore, we find a t4>t3t_{4}>t_{3} such that g(t4)<0g(t_{4})<0, and perform binary search in the range [t3,t4][t_{3},t_{4}] to find the point where FF is maximized. It is easy to compute t4t_{4} with polynomial bit complexity in the complexities of ν,η,ϕ,μ\nu,\eta,\phi,\mu and ρ\rho. We finally compare this maximal value of FF to the values of FF at 1,⌊t3⌋,⌈t3⌉1,\lfloor t_{3}\rfloor,\lceil t_{3}\rceil. Thus we can solve H(λ)H(\lambda) and obtain t∗t^{*} in polytime.

A.3 Proof of Theorem 2.12

We first show the structure of the optimal solution to (Whittle). Using the notation from Definition 3, we have: Hi(λ)=Ri(λ)−λQi(λ)H_{i}(\lambda)=R_{i}(\lambda)-\lambda Q_{i}(\lambda). Let R(λ)=∑i=1nRi(λ)R(\lambda)=\sum_{i=1}^{n}R_{i}(\lambda) and Q(λ)=∑i=1nQi(λ)Q(\lambda)=\sum_{i=1}^{n}Q_{i}(\lambda). The following lemma shows that the optimal solution to (Whittle) is obtained by choosing λ\lambda such that Q(λ)≈1Q(\lambda)\approx 1.

The optimal solution to Whittle’s LP chooses a penalty λ∗\lambda^{*} and a fraction a∈a\in, so that aQ(λ−∗)+(1−a)Q(λ+∗)=1aQ(\lambda_{-}^{*})+(1-a)Q(\lambda_{+}^{*})=1. Here, λ−∗≤λ∗<λ+∗\lambda^{*}_{-}\leq\lambda^{*}<\lambda^{*}_{+} with ∣λ+∗−λ−∗∣→0|\lambda^{*}_{+}-\lambda^{*}_{-}|\rightarrow 0. The solution corresponds to a convex combination of Pi(ti(λ−∗))\mathcal{P}_{i}(t_{i}(\lambda^{*}_{-})) with weight aa and Pi(ti(λ+∗))\mathcal{P}_{i}(t_{i}(\lambda^{*}_{+})) with weight 1−a1-a for each arm ii.

For the optimal solution to (Whittle), recall that OPTOPT denote the expected reward. The expected rate of playing the arms is exactly 11 by the LP constraint.

When λ=0\lambda=0, then ti(λ)=1t_{i}(\lambda)=1 for all ii, implying Q(λ)=nQ(\lambda)=n. Similarly, when λ=λmax⁡≥max⁡iri\lambda=\lambda_{\max}\geq\max_{i}r_{i}, ti(λ)=∞t_{i}(\lambda)=\infty for all ii, so that Q(λ)=0Q(\lambda)=0. Therefore, as λ\lambda is increased from to λmax⁡\lambda_{\max}, there is a transition value λ∗\lambda^{*} such that Q(λ−∗)=Q1≥1Q(\lambda_{-}^{*})=Q_{1}\geq 1, and Q(λ+∗)=Q2<1Q(\lambda^{*}_{+})=Q_{2}<1; furthermore, ∣λ+∗−λ−∗∣→0|\lambda^{*}_{+}-\lambda^{*}_{-}|\rightarrow 0.

Since the solution to (Whittle) is feasible for LPLagrange(λ)(\lambda), we must have:

Let a=1−Q2Q1−Q2a=\frac{1-Q_{2}}{Q_{1}-Q_{2}}, then taking the convex combination of the above inequalities, we obtain:

To prove Theorem 2.12, consider nn i.i.d. arms with nβ≪1n\beta\ll 1, α=β/(n−1)\alpha=\beta/(n-1) and r=1r=1. Each arm is in state gg w.p. 1/n1/n, so that all arms are in state bb w.p. 1/e1/e and the maximum possible reward of any feasible policy is 1−1/e1-1/e even with complete information about the states of all arms.

We will show that Whittle’s LP has value 1−O(nβ)1-O(\sqrt{n\beta}) for nβ≪1n\beta\ll 1. Since the LP is symmetric w.r.t. the arms, it is easy to show (from Theorem A.1) that for each arm, it will construct the same convex combination of two single-arm policies. The first policy is of the form P(t−1)\mathcal{P}(t-1), and the second is of the form P(t)\mathcal{P}(t). The constraint is that if these policies are executed independently, exactly one arm is played in expectation per step. Since P(t)\mathcal{P}(t) has lower average reward and rate of play than P(t−1)\mathcal{P}(t-1), we consider the sub-optimal LP solution that uses policy P(t)\mathcal{P}(t) for each arm.

The policy P(t)\mathcal{P}(t) always plays in state gg, and in state bb, waits tt steps before playing. The value tt is chosen so that the rate of play for each arm is less than 1/n1/n, and P(t−1)\mathcal{P}(t-1) has a rate of play larger than 1/n1/n. The rate of play of the single arm policy P(t)\mathcal{P}(t) is given by the formula: Q(t)=β+vttβ+vtQ(t)=\frac{\beta+v_{t}}{t\beta+v_{t}}. Since this is 1/n1/n, we have vt=β(t−n)/(n−1)v_{t}=\beta(t-n)/(n-1). The reward of each arm is R(t)=vttβ+vt=t−nn(t−1)R(t)=\frac{v_{t}}{t\beta+v_{t}}=\frac{t-n}{n(t-1)}, so that the objective of Whittle’s LP is nR(t)=1−Θ(n/t)nR(t)=1-\Theta(n/t).

Now, from vt=β(t−n)/(n−1)v_{t}=\beta(t-n)/(n-1), we obtain 1−(1−β′)t=β′(t−n)1-(1-\beta^{\prime})^{t}=\beta^{\prime}(t-n), where β′=α+β=βnn−1\beta^{\prime}=\alpha+\beta=\beta\frac{n}{n-1}. This holds for t=Θ(n/β)t=\Theta(\sqrt{n/\beta}) provided nβ≪1n\beta\ll 1. Plugging this value of tt into the value nR(t)nR(t) of Whittle’s LP completes the proof of Theorem 2.12.

A.4 Proof of Lemma 3.1

Recall the notation from Section 2.2 and Definition 3. We first present the following structural lemma about the optimal single-arm policy Li(λ)L_{i}(\lambda). Suppose this policy is of the form Pi(ti(λ))\mathcal{P}_{i}(t_{i}(\lambda)), where ti(λ)=\mboxargmaxt≥1Fi(λ,t)t_{i}(\lambda)=\mbox{argmax}_{t\geq 1}F_{i}(\lambda,t).

ti(λ)t_{i}(\lambda) is monotonically non-decreasing in λ\lambda.

We have: ∂Fi(λ,t)∂λ=−Qi(t)=−vit+βivit+tβi\frac{\partial F_{i}(\lambda,t)}{\partial\lambda}=-Q_{i}(t)=-\frac{v_{it}+\beta_{i}}{v_{it}+t\beta_{i}}. Since Qi(t)Q_{i}(t) is a decreasing function of tt, the above is an increasing function and always negative, which implies that for smaller tt, the function Fi(λ,t)F_{i}(\lambda,t) decreases faster as λ\lambda is increased. This implies that if ti(λ)=\mboxargmaxt≥1Fi(λ,t)t_{i}(\lambda)=\mbox{argmax}_{t\geq 1}F_{i}(\lambda,t), then for λ′≥λ\lambda^{\prime}\geq\lambda, the maximum of Fi(λ′,t)F_{i}(\lambda^{\prime},t) is attained for some ti(λ′)≥ti(λ)t_{i}(\lambda^{\prime})\geq t_{i}(\lambda). ∎

Now note that when λ=0\lambda=0, there is no penalty, so that the single-arm policy maximizes its reward by playing every step regardless of the state. Therefore, Πi(s,t)≥0\Pi_{i}(s,t)\geq 0 for all states (s,t)(s,t)Note that this is true only for Feedback MAB where the underlying 2-state process evolves regardless of the plays; the claim need not be true for Monotone bandits defined in Section 4, where even with penalty λ=0\lambda=0, the arm may idle in certain states..

Suppose the arm is in state (g,1)(g,1). The immediate expected reward if played is ri(1−βi)r_{i}(1-\beta_{i}). If the penalty λ<ri(1−βi)\lambda<r_{i}(1-\beta_{i}), a policy that plays the arm and stops later has positive expected reward minus penalty. Therefore, for penalty λ\lambda, the optimal decision at state (g,1)(g,1) is ”play”, so that Πi(g,1)≥ri(1−βi)\Pi_{i}(g,1)\geq r_{i}(1-\beta_{i}). We now show that Πi(g,1)=ri(1−βi)\Pi_{i}(g,1)=r_{i}(1-\beta_{i}). Suppose the penalty is λ>ri(1−βi)\lambda>r_{i}(1-\beta_{i}). If played in state (g,1)(g,1), the immediate expected reward minus penalty is negative, and leads to the policy being in state (g,1)(g,1) or (b,1)(b,1). The best possible total reward minus penalty in the future is obtained by always playing in state (g,1)(g,1) and waiting as long as possible in state (b,1)(b,1) (since this maximizes the chance of going to state gg if played). Whenever the arm is played in state bb after ww steps, the probability of observing state gg is at most αiαi+βi\frac{\alpha_{i}}{\alpha_{i}+\beta_{i}}. Consider two consecutive events of the policy when the last play was in state (g,1)(g,1) and the current observed state is (b,1)(b,1). Since the optimal such policy is ergodic, this interval would define a renewal period. In this period, the expected penalty is at least λ(α+βα+1β)\lambda\left(\frac{\alpha+\beta}{\alpha}+\frac{1}{\beta}\right), and the expected reward is riβi\frac{r_{i}}{\beta_{i}}. Therefore, the next expected reward minus penalty in the renewal period is:

The last inequality follows since αi+βi≤1−δ\alpha_{i}+\beta_{i}\leq 1-\delta for a δ>0\delta>0 specified as part of input. This implies that if λ>ri(1−βi)\lambda>r_{i}(1-\beta_{i}), the any policy that plays in state (g,1)(g,1) has negative net reward minus penalty, showing that “not playing” is optimal. Therefore, Πi(g,1)=ri(1−βi)\Pi_{i}(g,1)=r_{i}(1-\beta_{i}).

Next assume that for penalty slightly less than ri(1−βi)r_{i}(1-\beta_{i}), the policy decision is to “play” in state (b,t)(b,t). Consider the smallest such tt. Since the policy also decides to play in (g,1)(g,1), consider the renewal period defined by two consecutive events where the policy when the last play was in state (g,1)(g,1) and the current observed state is (b,1)(b,1). The reward is riβi\frac{r_{i}}{\beta_{i}} and the penalty is λ(1vit+1βi)\lambda\left(\frac{1}{v_{it}}+\frac{1}{\beta_{i}}\right). Since λ=ri(1−βi)\lambda=r_{i}(1-\beta_{i}), and vit<αiαi+βiv_{it}<\frac{\alpha_{i}}{\alpha_{i}+\beta_{i}}, the above analysis shows that the net expected reward minus penalty is negative in renewal period. Therefore, the decision in (b,t)(b,t) is to “not play”, so that Πi(b,t)≤ri(1−βi)\Pi_{i}(b,t)\leq r_{i}(1-\beta_{i}).

Finally, for any λ<ri(1−βi)\lambda<r_{i}(1-\beta_{i}), consider the smallest t≥1t\geq 1 so that the optimal decision in state (b,t)(b,t) is to “play”. If this is finite, the optimal policy for this λ\lambda is precisely Li(λ)=Pi(ti(λ))L_{i}(\lambda)=\mathcal{P}_{i}(t_{i}(\lambda)). From Lemma A.2, the function ti(λ)t_{i}(\lambda) is non-decreasing in λ\lambda. Therefore, for any state (b,t∗)(b,t^{*}), the quantity max⁡{λ∣Li(λ)=Pi(t∗)}\max\{\lambda|L_{i}(\lambda)=\mathcal{P}_{i}(t^{*})\} is well-defined. For larger values of penalty λ\lambda, we have ti(λ)>t∗t_{i}(\lambda)>t^{*}, so that the decision in (b,t∗)(b,t^{*}) is “do not play”. Therefore, Πi(b,t)=max⁡{λ∣Li(λ)=Pi(t)}\Pi_{i}(b,t)=\max\{\lambda|L_{i}(\lambda)=\mathcal{P}_{i}(t)\}. Since ti(λ)t_{i}(\lambda) is non-decreasing in λ\lambda, the function Πi(b,t)\Pi_{i}(b,t) is non-decreasing in tt. This completes the proof of Lemma 3.1.