Liu and Zhang
PCL for RMAB with General Observation Models
PCL-Indexability and Whittle Index for Restless Bandits with General Observation Models
Keqin Liu and Chengzhong Zhang \AFFNational Center for Applied Mathematics, Nanjing, China, 210093. \EMAILkqliu@nju.edu.cn
In this paper, we consider a general observation model for restless multi-armed bandit problems. The operation of the player needs to be based on certain feedback mechanism that is error-prone due to resource constraints or environmental or intrinsic noises. By establishing a general probabilistic model for dynamics of feedback/observation, we formulate the problem as a restless bandit with a countable belief state space starting from an arbitrary initial belief (a priori information). We apply the achievable region method with partial conservation law (PCL) to the infinite-state problem and analyze its indexability and priority index (Whittle index). Finally, we propose an approximation process to transform the problem into which the AG algorithm of NiΓ±o-Mora and Bertsimas for finite-state problems can be applied to. Numerical experiments show that our algorithm has an excellent performance.
restless bandit, POMDP, countable state space, partial conservation law, Whittle index \HISTORYThis paper was first submitted on July 3rd, 2024.
1 Introduction
Multi-armed bandit (MAB) is a classic operations research problem that involves a learner making choices among actions with uncertain/random rewards in order to maximize the expected return in long-run. The MAB problem is often associated with the important exploration-exploitation tradeoff and was initially proposed by Robbins (1952). Starting from the classic stochastic scheduling problem, the ongoing development of various MAB models makes it applicable to a wide range of practical fields, including clinical trials, recommendation systems, cognitive communications, and financial investments (Gittins 1979, Berry and Fristedt 1985, Press 2009, Farias and Madan 2011, Hoffman et al. 2011, Shen et al. 2015).
In the classic Bayesian MAB problem, the bandit machine has a total of arms and one player pulling an arm in each time slot. After a player selected one of these arms and activated it, a random reward will be accrued depending on the activated arm and its current state. In this process, all states are visible, and only the state of the arm being activated changes according to a Markov chain. The goal of the MAB problem is to search a policy that maximizes the long-term cumulative reward. Gittins (1979) proved that the classic MAB problem can be solved optimally by an index policy, referred to as Gittins index, and the player only needs to activate the arm with the largest index at each moment. The index policy significantly reduces the complexity of the problem from being exponential with the number of arms to being linear. After that, Whittle (1988) extended the MAB problem to the restless MAB (RMAB) model, in which arms can be activated at each moment, and the arms not chosen may also undergo state transitions over time. However, for the general RMAB problem with a finite state space, Papadimitriou and Tsitsiklis (1994) showed that the computational complexity of finding the optimal policy is already PSPACE-hard. Fortunately, Whittle (1988) generalized Gittins index to Whittle index that provides a possible solution to RMAB by considering Lagrangian relaxation and duality. Accordingly, Whittle index is optimal under a relaxed constraint that the time-average number of activated arms isΒ . For the original problem, the Whittle index policy has been proven to be asymptotically optimal per-arm wise as the number of arms goes to infinity under certain conditions (Weber and Weiss 1990, 1991). Nonetheless, not every RMAB is indexable, i.e.,Β Whittle index may not exist. And the establishment of indexability is itself a difficult problem. Even if indexability is proven for a particular RMAB, analytical solutions of the Whittle index function can still be hard to obtain. For some important categories of RMAB models, Whittle indexability and its strong performance have been demonstrated in the literature, such as the dual-speed bandit problem and partially observable RMAB (Glazebrook et al. 2002, Ahmad et al. 2009, Liu and Zhao 2010, Gittins et al. 2011, Liu 2021, Liu et al. 2024).
In this paper, we extend the partially observable RMAB considered in Liu et al. (2010, 2024) to general observation models. The previous work only considers special classes of observation errors and noises within the framework of partially observation Markov decision processes (POMDP) (Zhao and Sadler 2007, Liu et al. 2010, 2024). But general algorithms for POMDP often suffer from curse of dimensionality and becomes cumbersome when the value functions for dynamic programming are too complex (Smallwood and Sondik 1973, Sondik 1978). In order to deal with general observation models, we need an alternative methodology to design efficient algorithms for systems with large sets of parameters. In the interdisciplinary field of operations research and stochastic optimization, an analytical method called βAchievable Regionβ emerged in the 1990s. Interestingly, this method transforms a time-series optimization problem into linear programming (LP) problems that can be solved efficiently (Coffman and Mitrani 1980, Federgruen and Groenevelt 1988a, b, Gelenbe and Mitrani 2010). The challenge of using this method is mainly on proving the feasibility of such transformation (Bertsimas 1995). Referred to as the general conservation law (GCL), Bertsimas and NiΓ±o-Mora (1996) proposed the required structure of performance measures for the achievable region to be a polyhedron called extended polymatroid. Based on GCL, they extended Klimovβs algorithm to several stochastic scheduling problems, including the classic MAB problem (Klimov 1975, Thomas 1991). By relaxing the GCL restrictions, NiΓ±o-Mora (2001) proposed the partial conservation law (PCL) and specified conditions for an RMAB to satisfy PCL and subsequently lead to the numerical calculation of Whittle index. Later on, NiΓ±o-Mora (2002) offered an economic explanation of PCL-indexability and its relation to Whittle indexability where Whittle index can be interpreted as the optimal marginal cost rate. A more comprehensive summary of this work can be found in NiΓ±o-Mora (2007). However, all such work considers finite state spaces except that Frostig and Weiss (1999) extended the GCL framework for classic MAB to countable state spaces. In this paper, we extend the PCL framework to the RMAB with a general parametrization of observation model and an infinite state space. The main challenge of this extension is due to the high-dimensional probability state space (belief states) with complex dynamics for transitions over time. By establishing the weak duality between LP formulations, we build the PCL framework for analyzing our RMAB and subsequently design an efficient algorithm for calculating Whittle index when PCL-indexability is satisfied. Finally, we demonstrate the superior performance of our algorithm by numerical simulations.
2 Main Results
2.1 Model Formulation
In this section, we begin with the formulation of the RMAB problem with general observation models. Assume the system has arms and the state space of the th arm is . Therefore the entire system state space is . At each moment, the actual state of each arm undergos a state transition based on its own Markov probability transition matrix, and we will select arms to activate. For those activated arms, we can observe their states (with errors) and accrue some reward dependent on the observed states and the actual states. For those arms that are not activated, we can neither observe their states nor obtain reward from them, and their states still transit over time. Let be respectively the true and observed states of arm in slot and the set of activated arms in slot . First consider a single-arm process (i.e. and ) and drop the subscriptΒ (sometimes the time index is also dropped if referring to the same time index) for convenience. Suppose the state transition matrix, error matrix and reward matrix are , and respectively. For error matrix, represents the probability that the observed state is when the true state is , that is, , while represents the reward obtained when the true state is and the observed state is (different observations may lead to different sub-actions and thus different rewards following). Denoted by the belief space, for each , represents the conditional probability that the true state isΒ in slotΒ (based on past observations). If the current belief state is , the current expected reward is . In addition, we may sometimes receive additional feedback related to the true state and the immediate reward obtained that helps us better estimate the actual arm state (e.g., ACK/NAK in a communication channel to indicate whether the data was successfully transmittedΒ (Liu et al. 2024)). Assume that there are feedback states (positive integers) in total that encompass all possible observations, and denote the feedback state at timeΒ by . Define . By Bayes rule, we have
(1) |
Thus the rule of belief update is
(2) |
In a simpler scenario where there is no additional feedback but only the observed states, the update rule becomes
(3) |
In the extreme case when we cannot observe any state after activating an arm, we simply treat the obtained reward (might beΒ ) as the feedback. By normalizing the immediate reward to take only positive integer values, we have
or equivalently . Thus we have
(4) |
Similarly,
(5) |
Combining (2.1) and (5), the belief state update rule is
(6) |
A more practical situation is that we can jointly obtain information from the observed state and the obtained reward. In this case, we can similarly give the belief update rule:
(7) |
For the restless multi-armed bandit model, the goal is to find a policy which maps the belief states of all arms into an active set in slot that maximize the long-term expected discounted reward. In other words, if we denote the reward obtained by the -th arm in slot by , then our objective is
(8) | ||||
(9) |
where is the discount factor and is the belief state (vector) of arm in slot . In this problem, the diversity of states, choices, errors makes the problem highly complex. In RMAB problems, searching for an easily computable priority index policy is the mainstream. The core idea is to assign an index (a real number) to the current state of each arm, and then activate those arms with topΒ large indexes. The goal of this paper is to theoretically characterize the conditions when such an index policy exists and provide a detailed algorithm for efficiently computing the index function (if it exists).
2.2 Whittle Index
Whittle (1988) relaxed the constraint on the exact number of arms activated in each slot, requiring only that the expected number of arms activated per slot on average (in the sense of discounted time) is , i.e.
(10) |
or
(11) |
where with as the belief state (vector) for armΒ at timeΒ . Thus the Lagrange optimization problem can be written as
(12) |
The above problem can be decomposed into independent subproblems, that is, for any ,
(13) |
The explanation of the optimization problem above is that for each arm, when it is not selected (made passive), we will receive a subsidy . Since the problems above are independent, we just need to consider the single-arm case. For notation simplicity, we drop the arm indexΒ from now on. For a given arm, the optimal policy for the relaxed optimization problem divides the arm state space into two subset (here the arm state space is the arm belief state space): active set and passive set . Specifically, contains all belief states in which the optimal choice is passive when the subsidy is . In particular, for a certain state , if both active and passive actiosn are optimal, we include it in , and is just the complement of in the entire state space. Under the concept of passive set, Whittle indexability can be stated as follows:
Definition 2.1 (Whittle Indexability)
An arm is indexable if the passive set increases from to the whole state space as the subsidy increases from to . The RMAB problem is indexable if every decoupled problem is indexable.
Indexability states that, once an arm is made passive with subsidy , it should also be passive with any larger than . If the problem satisfies indexability, its Whittle index is defined as follows:
Definition 2.2 (Whittle Index)
If an arm is indexable, the Whittle index of a state is the infimum subsidy that keepsΒ in the passive set . That is,
By continuity, is the infimum subsidy that makes it equivalent to be active or passive at stateΒ . Under the definitions of indexability and Whittle index, the Whittle index policy for the original multi-armed bandit problem is simply to activate the arms whose states offer the largest Whittle indices. In fact, for the classic MAB problem where passive arms do not change states, the Whittle indexability is always satisfied and the Whittle index is reduced to the Gittins index.
2.3 Belief State Space
Different from the perfect observation case, the update of the belief state is nonlinear for the general observation model. This yields much difficulty for us to use value functions and dynamic programming methods to analyze the problem. Given an initial belief state, it appears that the size of the belief state space will grow exponentially over time as all possible realizations of observations/rewards/feedback are incessantly traversed and updated. Fortunately, a large number of numerical experiments have shown that in the sense of Euclidean norm approximation, the state space exhibits convergence after a process of iterative calculations (see Sec.Β 3 for details). Note that the initial belief state is , is a list of operators defined by feedback states and state update rules, that is, for , is the updated state caused by the -th feedback state under the active action, and is the state update operator under the passive action. In this paper, . Define the -step state space recursively as follows:
Definition 2.3 (-step state space)
Define
We call the -step state space under the initial belief state .
Under the definition of the -step state space, is the belief space obtained by traversing all possible state update rules starting from the initial state . Clearly, is countable and we denote it by . Under a policy , let be the conditional probability of transition from belief state to . Due to different actions of activation and passivity affecting the state update, decomposition of should be carried out. Let be the indicator function of whether the arm is activated in slot , then we define the transition probability of the belief state as follows:
(14) | |||
(15) |
By (14)-(15) and the total probability theorem, we have
(16) |
The elements in the probability transition matrix under passive and active actions have the following more specific expressions:
(17) |
and
(18) | ||||
In the following sections, these two probability transition matrices will play an important role in the calculation of Whittle indices.
2.4 Two-Arm Problem and Achievable Region
With the rapid development at the junction of operations research, stochastic optimization and reinforcement learning, quite a few effective methods for finite-state problems have been found, among which achievable region with conservation laws is a great example. Bertsimas and NiΓ±o-Mora (1996) and NiΓ±o-Mora (2001) adopted the analytical framework of generalized conservation laws and partial conservation laws for the classic MAB and RMAB problems with finite state spaces, respectively, and provided efficient index algorithms for the corresponding problems. In the rest subsections, we will apply the PCL framework to the analysis of our RMAB problem with an infinite state space, and theoretically build the foundation for the construction of an efficient index policy.
Consider the single-arm process with states discussed in the previous section. For an initial belief state , let be the countable belief state space generated by iteratively updating through state transitions. During the process of making the arm active or passive, since all belief states fall within , the entire time period can be completely partitioned by the time segments in which each state is located. In this scenario, define the performance indicator variables for each belief state as follows:
and
Furthermore, define the performance measures of belief state as follows:
(19) |
(20) |
where is the belief state of the arm in slot . In Whittleβs relaxation, the Lagrangian multiplier can be regarded as a subsidy when the arm is made passive. Thus the optimization objective of the partially observable RMAB problem with subsidy can be written as follows:
(21) | ||||
subject to | ||||
where , are given by (17)-(18), is the indicator whether the initial belief state is , is the expected immediate reward when with the active action. Obviously, is bounded above and we can assume . For the equality constraints of this optimization problem, it can be understood that the left side of the equation is the direct performance measure for state , while the right side of the equation is another way to represent it. That is, each occurrence of state in the system is transitioned by another state . Therefore, the performance measure for state can be represented by a combination of performance measures of other states. This model with subsidy can be explained more intuitively through a two-arm system. In this system, the first arm is the original arm while the second arm (auxiliary arm) has only one stateΒ 0. In every slot we choose one of the two arms to activate. When the auxiliary arm is activated, we obtain a fixed reward . Our goal is to find a policy to maximize the long-term expected discounted reward by deciding which arm to choose in each slot. The objective function can thus be written as
where is the performance measure of stateΒ 0 being activated under policyΒ . Let be the set of all elements asΒ traverses the admissible (feasible) policy setΒ . We call the achievable region. Under this definition, the optimization objective function can be written as follows:
(OPT) |
The core of solving this optimization problem is to mathematically characterize the achievable region . The so-called conservation law refers to the fact that for any , these components may satisfy certain equality or inequality constraints. For the above model, a trivial equality constraint is . This is because the RMAB system has exactly one state in the active phase at each moment (time-conservation). In the following subsections, we will further explore the rich mathematical structure of performance measures for the two-arm system with countable states under the concept of achievable region.
2.5 Partial Conservation Law
In this section, we elaborate the relationship between performance measures for each state in the two-arm system. To measure the performance of the original arm under policy , we define the following variables:
(22) | ||||
(23) |
Here describes the expected total discounted time for the original arm to be activated in the two-arm system under policy . We require that the policy only depends on the original arm. Similarly, represents the expected total discounted reward obtained from the original arm under policy . Therefore, and also have the following expressions:
(24) | ||||
(25) |
Clearly, the optimal policy partitions the belief state spaceΒ of the original arm into two sets where the optimal actions should be active and passive respectively. For any , we call an -priority policy if the original arm is activated when its current belief state falls into and made passive when the state falls into . For -priority policy, we have
(26) | ||||
(27) |
From the above definition, we can easily give the following dynamic programming equations for these two variables:
(28) |
and
(29) |
If is a finite state space, we can directly solve for and from the two equation sets above. However, a direct solution is not available for countable state spaces. To further investigate the properties of these variables, we define as the expected total discounted reward starting from stateΒ under policyΒ . We have
(30) |
Let and be the expected total discounted rewards with the initial state when taking the passive and active actions respectively, then
(31) | |||
(32) |
If, under policy , the expected total discounted reward obtained by active and passive actions are the same for the initial state , i.e., , then we can solve forΒ :
(33) |
Now define
(34) | ||||
(35) |
For the auxiliary arm, we have and . Generally, we can extend these variables to the multi-arm case. Assume that there are two arms and their state spaces are and with . Then for , and