Distributed Algorithms for Learning and Cognitive Medium Access with Logarithmic Regret

Animashree Anandkumar, Nithin Michael, Ao Kevin Tang, Ananthram Swami

I Introduction

There has been extensive research on cognitive radio network in the past decade to resolve many challenges not encountered previously in traditional communication networks (see ). One of the main challenges is to achieve coexistence of heterogeneous users accessing the same part of the spectrum. In a typical cognitive network, there are two classes of transmitting users, viz., the primary users who have priority in accessing the spectrum and the secondary users who opportunistically transmit when the primary user is idle. The secondary users are cognitive and can sense the spectrum to detect the presence of a primary transmission. However, due to resource and hardware constraints, they can sense only a part of the spectrum at any given time.

We consider a slotted cognitive system where each secondary user can sense and access only one orthogonal channel in each transmission slot (see Fig.1). Under sensing constraints, it is thus beneficial for the secondary users to select channels with higher mean availability, i.e., channels which are less likely to be occupied by the primary users. However, in practice, the channel availability statistics are a priori unknown to the secondary users.

Since the secondary users are required to sense the medium before transmission, can these sensing decisions be used to learn the channel availability statistics? If so, using these estimated channel availabilities, can we design channel access rules which maximize the transmission throughput? Designing provably efficient algorithms to accomplish the above goals forms the focus of our paper. Such algorithms need to be efficient, both in terms of learning and channel access.

For any learning algorithm, there are two important performance criteria: convergence and regret bounds . In the above context, we require the estimates to converge to the correct channel availability statistics as the number of available sensing decisions goes to infinity. A stronger criterion is the regret of a learning algorithm, which measures the speed of convergence. In our context, the regret is the loss in secondary throughput due to learning compared with knowing the channel statistics perfectly. Hence, it is desirable for the learning algorithms to have small regret. The regret is a finer measure of performance of a learning algorithm than the time-averaged throughput since a sub-linear regret (with respect to time) implies optimal average throughput.

Additionally, we consider a distributed framework where there is no information exchange or prior agreement among the secondary users. This introduces additional challenges: it results in loss of throughput due to collisions among the secondary users, and there is now competition among the secondary users since they all tend to access channels with higher availabilities. It is imperative for the channel access policies to overcome the above challenges. Hence, a distributed learning and access policy experiences regret both due to learning of the unknown channel availabilities as well as due to collisions under distributed access.

The main contributions of this paper are two fold. First, we propose two distributed learning and access policies for multiple secondary users in a cognitive network. Second, we provide performance guarantees for these policies in terms of regret. Overall, we prove that one of our proposed algorithms achieves order-optimal regret and the other achieves nearly order-optimal regret, where the order is in terms of the number of transmission slots.

The first policy we propose assumes that the total number of secondary users in the system is known while our second policy relaxes this requirement. Our second policy also incorporates estimation of the number of secondary users, in addition to learning of the channel availabilities and designing distributed access rules. We provide bounds on total regret experienced by the secondary users under self play, i.e., when implemented at all the secondary users. For the first policy, we prove that the regret is logarithmic, i.e., O(logn)O(\log n) where nn in the number of transmission slots. For the second policy, the regret grows slightly faster than logarithmic, i.e., O(f(n)logn)O(f(n)\log n), where we can choose any function f(n)f(n) satisfying f(n)f(n)\to\infty, as nn\to\infty. Hence, we provide performance guarantees for the proposed distributed learning and access policies.

A lower bound on regret under any uniformly-good distributed learning policy has been derived in , which is also logarithmic in the number of transmission slots. Thus, our first policy (which requires knowledge of the number of secondary users) achieves order-optimal regret. The effects of the number of secondary users and the number of channels on regret are also explicitly characterized and verified via simulations.

To the best of our knowledge, the exploration-exploitation tradeoff for learning, combined with the cooperation-competition tradeoffs among multiple users for distributed medium access have not been sufficiently examined in the literature before (see Section I-B for a discussion). Our analysis in this paper provides important engineering insights towards dealing with learning, competition, and cooperation in practical cognitive systems.

Remark: We note some of the shortcomings of our approach. The i.i.d. modelBy i.i.d. primary transmission model, we do not mean the presence of a single primary user, but rather, this model is used to capture the overall statistical behavior of all the primary users in the system. for primary transmissions is indeed idealistic and in practice, a Markovian model may be more appropriate . However, the i.i.d. model is a good approximation if the time slots for transmissions are long and/or the primary traffic is highly bursty. Moreover, the i.i.d. model is not crucial towards deriving regret bounds for our proposed schemes. Extensions of the classical multi-armed bandit problem to a Markovian model are considered in . In principle, our results on distributed learning and access can be similarly extended to a Markovian channel model but this entails more complex estimators and rules for evaluating the exploration-exploitation tradeoffs of different channels and is a topic of interest for future investigation.

I-B Related Work

Several results on the multi-armed bandit problem will be used and generalized to study our problem. Detailed discussion on multi-armed bandits can be found in . Cognitive medium access is a topic of extensive research; see for an overview. The connection between cognitive medium access and the multi-armed bandit problem is explored in , where a restless bandit formulation is employed. Under this formulation, indexability is established, the Whittle’s index for channel selection is obtained in closed-form, and the equivalence between the myopic policy and the Whittle’s index is established. However, this work assumes known channel availability statistics and does not consider competing secondary users. The work in considers allocation of two users to two channels under Markovian channel model using a partially observable Markov decision process (POMDP) framework. The use of collision feedback information for learning, and spatial heterogeneity in spectrum opportunities were investigated. However, the difference from our work is that assumes that the availability statistics (transition probabilities) of the channels are known to the secondary users while we consider learning of unknown channel statistics. The works in consider centralized access schemes in contrast to distributed access here, considers access through information exchange and studies the optimal choice of the amount of information to be exchanged given the cost of negotiation. considers access under QQ-learning for two users and two channels where users can sense both the channels simultaneously. The work in discusses a game-theoretic approach to cognitive medium access. In , learning in congestion games through multiplicative updates is considered and convergence to weakly-stable equilibria (which reduces to the pure Nash equilibrium for almost all games) is proven. However, the work assumes fixed costs (or equivalently rewards) in contrast to random rewards here, and that the players can fully observe the actions of other players.

Recently, the work in considers combinatorial bandits, where a more general model of different (unknown) channel availabilities is assumed for different secondary users, and a matching algorithm is proposed for jointly allocating users to channels. The algorithm is guaranteed to have logarithmic regret with respect to number of transmission slots and polynomial storage requirements. A decentralized implementation of the proposed algorithm is proposed but it still requires information exchange and coordination among the users. In contrast, we propose algorithms which removes this requirement albeit in a more restrictive setting.

In our recent work , we first formulated the problem of decentralized learning and access for multiple secondary users. We considered two scenarios: one where there is initial common information among the secondary users in the form of pre-allocated ranks, and the other where no such information is available. In this paper, we analyze the distributed policy in detail and prove that it has logarithmic regret. In addition, we also consider the case when the number of secondary users is unknown, and provide bounds on regret in this scenario.

Recently, Liu and Zhao proposed a family of distributed learning and access policies known as time-division fair share (TDFS), and proved logarithmic regret for these policies. They established a lower bound on the growth rate of system regret for a general class of uniformly-good decentralized polices. The TDFS policies in can incorporate any order-optimal single-player policy while our work here is based on the single-user policy proposed in . Another difference is that in , the users orthogonalize via settling at different offsets in their time-sharing schedule, while in our work here, users orthogonalize into different channels. Moreover, the TDFS policies ensure that each player achieves the same time-average reward while our policies here achieve probabilistic fairness, in the sense that the policies do not discriminate between different users. In , the TDFS policies are extended to incorporate imperfect sensing.

Section II deals with the system model, Section III deals with the special case of single secondary user and of multiple users with centralized access which can be directly solved using the classical results on multi-armed bandits. In Section IV, we propose distributed learning and access policy with provably logarithmic regret when the number of secondary users is known. Section V considers the scenario when the number of secondary users is unknown. Section VI provides a lower bound for distributed learning. Section VII has simulation results for the proposed schemes and Section VIII concludes the paper. Most of the proofs are found in the Appendix.

Since Section III mostly deals with a recap of the classical results on multi-armed bandits, we suggest that an experienced reader directly jump to Section IV for the main results of this paper.

II System Model & Formulation

We refer to the UU highest entries in a vector μ\mu as the UU-best channels and the rest as the UU-worst channels. Let \sigma(T;\hbox{\boldmath\mu\unboldmath}) denote the index of the T\mboxthT^{{\mbox{\tiny th}}} highest entry in μ\mu. Alternatively, we abbreviate T^{*}{:=}\sigma(T;\hbox{\boldmath\mu\unboldmath}) for ease of notation. With abuse of notation, let D(μ1,μ2):=D(B(μ1);B(μ2))D(\mu_{1},\mu_{2}){:=}D(B(\mu_{1});B(\mu_{2})) be the Kullback-Leibler distance between the Bernoulli distributions B(μ1)B(\mu_{1}) and B(μ2)B(\mu_{2}) and let Δ(1,2):=μ1μ2\Delta(1,2){:=}\mu_{1}-\mu_{2}.

II-A Sensing & Channel Models

Let U1U\geq 1 be the number of secondary usersA user refers to a secondary user unless otherwise mentioned. and CUC\geq U be the numberWhen UCU\geq C, learning availability statistics is less crucial, since all channels need to be accessed to avoid collisions. In this case, design of medium access is more crucial. of orthogonal channels available for slotted transmissions with a fixed slot width. In each channel ii and slot kk, the primary user transmits i.i.d. with probability 1μi>01-\mu_{i}>0. In other words, let Wi(k)W_{i}(k) denote the indicator variable if the channel is free

and we assume that Wi(k)i.i.d.B(μi)W_{i}(k)\overset{i.i.d.}{\sim}B(\mu_{i}).

The mean availability vector μ\mu consists of mean availabilities μi\mu_{i} of all channels, i.e., is \hbox{\boldmath\mu\unboldmath}{:=}[\mu_{1},\ldots,\mu_{C}], where all μi(0,1)\mu_{i}\in(0,1) and are distinct. μ\mu is initially unknown to all the secondary users and is learnt independently over time using the past sensing decisions without any information exchange among the users. We assume that sensing for primary transmissions is perfect at all the users.

Let Ti,j(k)T_{i,j}(k) denote the number of slots where channel ii is sensed in kk slots by user jj (not necessarily being the sole occupant of that channel). The sensing variables are obtained as follows: at the beginning of each slot kk, each secondary user jUj\in U selects exactly one channel iCi\in C for sensing, and hence, obtains the value of Wi(k)W_{i}(k), indicating if the channel is free. User jj then records all the sensing decisions of each channel ii in a vector Xi,jk:=[Xi,j(1),,Xi,j(Ti,j(k))]T{\mathbf{X}}_{i,j}^{k}{:=}[X_{i,j}(1),\ldots,X_{i,j}(T_{i,j}(k))]^{T}. Hence, i=1CXi,jk\cup_{i=1}^{C}{\mathbf{X}}_{i,j}^{k} is the collection of sensed decisions for user jj in kk slots for all the CC channels.

We assume the collision model under which if two or more users transmit in the same channel then none of the transmissions go through. At the end of each slot kk, each user jj receives acknowledgement Zj(k)Z_{j}(k) on whether its transmission in the k\mboxthk^{{\mbox{\tiny th}}} slot was received. Hence, in general, any policy employed by user jj in the (k+1)(k+1)-th slot, given by ρ(i=1CXi,jk,Zjk){\rho}(\cup_{i=1}^{C}{\mathbf{X}}_{i,j}^{k},{\mathbf{Z}}_{j}^{k}) is based on all the previous sensing and feedback results.

II-B Regret of a Policy

Under the above model, we are interested in designing policies ρ{\rho} which maximize the expected number of successful transmissions of the secondary users subject to the non-interference constraint for the primary users. Let S(n;\hbox{\boldmath\mu\unboldmath},U,{\rho}) be the expected total number of successful transmissions after nn slots under UU number of secondary users and policy ρ{\rho}.

In the ideal scenario where the availability statistics μ\mu are known a priori and a central agent orthogonally allocates the secondary users to the UU-best channels, the expected number of successful transmissions after nn slots is given by

where jj^{*} is the j\mboxthj^{{\mbox{\tiny th}}}-highest entry in μ\mu.

It is clear that S^{*}(n;\hbox{\boldmath\mu\unboldmath},U)>S(n;\hbox{\boldmath\mu\unboldmath},U,{\rho}) for any policy ρ{\rho} and finite nn. We are interested in minimizing the regret in learning and access, given by

We are interested in minimizing regret under any given \hbox{\boldmath\mu\unboldmath}\in(0,1)^{C} with distinct elements.

By incorporating the collision channel model assumption with no avoidance mechanismsThe effect of employing CSMA-CA is not considered here although it can be shown that it reduces the regret and hence, the bounds we derive are applicable., the expected throughput under policy ρ{\rho} is given by

where Vi,j(n)V_{i,j}(n) is the number of times in nn slots where user jj is the sole user to sense channel ii. Hence, the regret in (2) simplifies as

III Special Cases From Known Results

We recap the bounds for the regret under the special cases of a single secondary user (U=1)(U=1) and multiple users with centralized learning and access by appealing to the classical results on the multi-armed bandit process .

When there is only one secondary user, the problem of finding policies with minimum regret reduces to that of a multi-armed bandit process. Lai and Robbins first analyzed schemes for multi-armed bandits with asymptotic logarithmic regret based on the upper confidence bounds on the unknown channel availabilities. Since then, simpler schemes have been proposed in which compute a statistic or an index for each arm (channel), henceforth referred to as the gg-statistic, based only on its sample mean and the number of slots where the particular arm is sensed. The arm with the highest index is selected in each slot in these works. We summarize the policy in Algorithm 1 and denote it ρ1(g(n)){\rho^{1}}({\mathbf{g}}(n)), where g(n){\mathbf{g}}(n) is the vector of scores assigned to the channels after nn transmission slots.

The sample-mean based policy in [11, Thm. 1] proposes an index for each channel ii and user jj at time nn is given by

where Ti,j(n)T_{i,j}(n) is the number of slots where user jj selects channel ii for sensing and

is the sample-mean availability of channel ii, as sensed by user jj.

The statistic in (4) captures the exploration-exploitation tradeoff between sensing the channel with the best predicted availability to maximize immediate throughput and sensing different channels to obtain improved estimates of their availabilities. The sample-mean term in (4) corresponds to exploitation while the other term involving Ti,j(n)T_{i,j}(n) corresponds to exploration since it penalizes channels which are not sensed often. The normalization of the exploration term with logn\log n in (4) implies that the term is significant when Ti,j(n)T_{i,j}(n) is much smaller than logn\log n. On the other hand, if all the channels are sensed Θ(logn)\Theta(\log n) number of times, the exploration terms become unimportant in the gg-statistics of the channels and the exploitation term dominates, thereby, favoring sensing of the channel with the highest sample mean.

The regret based on the above statistic in (4) is logarithmic for any finite number of slots nn but does not have the optimal scaling constant. The sample-mean based statistic in [10, Example 5.7] leads to the optimal scaling constant for regret and is given by

In this paper, we design policies based on the g\mboxMEANg^{\mbox{\tiny MEAN}} statistic since it is simpler to analyze than the g\mboxOPTg^{\mbox{\tiny OPT}} statistic.

We now recap the results which show logarithmic regret in learning the best channel. In this context, we define uniformly good policies ρ{\rho} as those with regret

For any uniformly good policy ρ{\rho} satisfying (6), the expected time spent in any suboptimal channel i1i\neq 1^{*} satisfies

where 11^{*} is the channel with the best availability. Hence, the regret satisfies

The regret under the g\mboxOPTg^{\mbox{\tiny OPT}} statistic in (5) achieves the above bound.

The regret under g\mboxMEANg^{\mbox{\tiny MEAN}} statistic in (34) satisfies

III-B Centralized Learning & Access for Multiple Users

We now consider multiple secondary users under centralized access policies where there is joint learning and access by a central agent on behalf of all the UU users. Here, to minimize the sum regret, the centralized policy allocates the UU users to orthogonal channels to avoid collisions. Let ρ\mboxCENT(Xk){\rho^{\mbox{\tiny CENT}}}({\cal X}^{k}), with Xk:=j=1Ui=1CXi,jk{\cal X}^{k}:=\cup_{j=1}^{U}\cup_{i=1}^{C}{\mathbf{X}}_{i,j}^{k}, denote a centralized policy based on the sensing variables of all the users. The policy under centralized learning is a simple generalization of the single-user policy and is given in Algorithm 2. We now recap the results of .

For any uniformly good centralized policy ρ\mboxCENT{\rho^{\mbox{\tiny CENT}}} satisfying (6), the expected times spent in a UU-worst channel ii satisfies

where UU^{*} is the channel with the U\mboxthU^{{\mbox{\tiny th}}} best availability. Hence, the regret satisfies

The scheme in Algorithm 2 based on g\mboxOPTg^{\mbox{\tiny OPT}} achieves the above bound.

The scheme in Algorithm 2 based on the g\mboxMEANg^{\mbox{\tiny MEAN}} satisfies for any n>0n>0,

IV Main Results

Armed with the classical results on multi-armed bandits, we now design distributed learning and allocation policies.

We first provide simple bounds on the regret in (3) for any distributed learning and access policy ρ{\rho}.

The regret under any distributed policy ρ{\rho} satisfies

where Ti,j(n)T_{i,j}(n) is the number of slots where user jj selects channel ii for sensing, M(n)M(n) is the number of collisions faced by the users in the UU-best channels in nn slots, Δ(i,j)=μ(i)μ(j)\Delta(i,j)=\mu(i)-\mu(j) and μ(1)\mu(1^{*}) is the highest mean availability.

In the subsequent sections, we propose distributed learning and access policies and provide regret guarantees for the policies using the upper bound in (15). The lower bound in (14) can be used to derive lower bound on regret for any uniformly-good policy.

The first term in (15) represents the lost transmission opportunities due to selection of UU-worst channels (with lower mean availabilities), while the second term represents performance loss due to collisions among the users in the UU-best channels. The first term in (15) decouples among the different users and can be analyzed solely through the marginal distributions of the gg-statistics at the users. This in turn, can be analyzed by manipulating the classical results on multi-armed bandits . On the other hand, the second term in (15), involving collisions in the UU-best channels, requires the joint distribution of the gg-statistics at different users which are correlated variables. This is intractable to analyze directly and we develop techniques to bound this term.

We present the ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} policy in Algorithm 3. Before describing this policy, we make some simple observations. If each user implemented the single-user policy in Algorithm 1, then it would result in collisions, since all the users target the best channel. When there are multiple users and there is no direct communication among them, the users need to randomize channel access in order to avoid collisions. At the same time, accessing the UU-worst channels needs to be avoided since they contribute to regret. Hence, users can avoid collisions by randomizing access over the UU-best channels, based on their estimates of the channel ranks. However, if the users randomize in every slot, there is a finite probability of collisions in every slot and this results in a linear growth of regret with the number of time slots. Hence, the users need to converge to a collision-free configuration to ensure that the regret is logarithmic.

In Algorithm 3, there is adaptive randomization based on feedback regarding the previous transmission. Each user randomizes only if there is a collision in the previous slot; otherwise, the previously generated random rank for the user is retained. The estimation for the channel ranks is through the gg-statistic, on lines similar to the single-user case.

It is easy to see that the ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} policy ensures that the users are allocated orthogonally to the UU-best channels as the number of transmission slots goes to infinity. The regret bounds on ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} are however not immediately clear and we provide guarantees below.

Under the ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} scheme in Algorithm 3, the total time spent by any user j=1,,Uj=1,\ldots,U, in any iUi\in U-worst channel is given by

Proof: The proof is on lines similar to the proof for Theorem 2, given in Appendix -A. \Box

We now focus on analyzing the number of collisions M(n)M(n) in the UU-best channels. We first give a result on the expected number of collisions in the ideal scenario where each user has perfect knowledge of the channel availability statistics μ\mu. In this case, the users attempt to reach an orthogonal (collision-free) configuration by uniformly randomizing over the UU-best channels.

The stochastic process in this case is a finite-state Markov chain. A state in this Markov chain corresponds to a configuration of UU number of (identical) users in UU number of channels. The number of states in the Markov chain is the number of compositions of UU, given by (2U1U)\binom{2U-1}{U} [24, Thm. 5.1]. The orthogonal configuration corresponds to the absorbing state. For any other state, consisting of more than one user or no user in any of the channels, the transition probability to any state of the Markov chain (including self transition probability) is uniform. For a state, where certain channels have exactly one user, there are only transitions to states which consist of at least one user in that channel and the transition probabilities are uniform. Let Υ(U,U)\Upsilon(U,U) denote the maximum time to absorption in the above Markov chain starting from any initial distribution. We have the following result

The expected number of collisions under ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} scheme in Algorithm 3, assuming that each user has perfect knowledge of the mean channel availabilities μ\mu, is given by

We use the result of Lemma 2 for analyzing the number of collisions under distributed learning of the unknown availabilities μ\mu as follows: if we show that the users are able to learn the correct order of the different channels with only logarithmic regret then only an additional finite expected number of collisions occur before reaching an orthogonal configuration.

Define T(n;ρ\mboxRAND)T^{\prime}(n;{\rho^{\mbox{\tiny RAND}}}) as the number of slots where any one of the top-UU estimated ranks of the channels at some user is wrong under ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} policy. Below we prove that its expected value is logarithmic in the number of transmissions.

Under the ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} scheme in Algorithm 3,

The expected number of collisions in the UU-best channels under ρ\mboxRAND(U,C,g\mboxMEAN){\rho^{\mbox{\tiny RAND}}}(U,C,{\mathbf{g}}^{\mbox{\tiny MEAN}}) scheme satisfies

Hence, from (16), (18) and (17), M(n)=O(logn)M(n)=O(\log n).

Hence, there are only logarithmic number of expected collisions before the users settle in the orthogonal channels. Combining this result with Lemma 1 that the number of slots spent in the UU-worst channels is also logarithmic, we immediately have one of the main results of this paper that the sum regret under distributed learning and access is logarithmic.

The policy ρ\mboxRAND(U,C,g\mboxMEAN){\rho^{\mbox{\tiny RAND}}}(U,C,{\mathbf{g}}^{\mbox{\tiny MEAN}}) in Algorithm 3 has Θ(logn)\Theta(\log n) regret.

Proof: Substituting (19) and (16) in (15). \Box

Hence, we prove that distributed learning and channel access among multiple secondary users is possible with logarithmic regret without any explicit communication among the users. This implies that the number of lost opportunities for successful transmissions at all secondary users is only logarithmic in the number of transmissions, which is negligible when there are large number of transmissions.

We have so far focused on designing schemes that maximize system or social throughput. We now briefly discuss the fairness for an individual user under ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}}. Since ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} does not distinguish any of the users, in the sense that each user has equal probability of “settling" down in one of the UU-best channels while experiencing only logarithmic regret in doing so. Simulations in Section VII (in Fig.4) demonstrate this phenomenon.

V Distributed Learning and Access under Unknown Number of Users

We have so far assumed that the number of secondary users is known, and is required for the implementation of the ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} policy. In practice, this entails initial announcement from each of the secondary users to indicate their presence in the cognitive network. However, in a truly distributed setting without any information exchange among the users, such an announcement may not be possible.

In this section, we consider the scenario, where the number of users UU is unknown (but fixed throughout the duration of transmissions and UCU\leq C, the number of channels). In this case, the policy needs to estimate the number of secondary users in the system, in addition to learning the channel availability statistics and designing channel access rules based on collision feedback. Note that if the policy assumed the worst-case scenario that U=CU=C, then the regret grows linearly since UU-worst channels are selected a large number of times for sensing.

We now propose a policy ρ\mboxEST{\rho^{\mbox{\tiny EST}}} in Algorithm 4. This policy incorporates two functions in each transmission slot, viz., execution of the ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} policy in Algorithm 3, based on the current estimate of the number of users U^\widehat{U}, and updating of the estimate U^\widehat{U} based on the number of collisions experienced by the user.

The updating is based on the idea that if there is under-estimation of UU at all the users (U^j<U\widehat{U}_{j}<U at all the users jj), collisions necessarily build up and the collision count serves as a criterion for incrementing U^\widehat{U}. This is because after a long learning period, the users learn the true ranks of the channels, and target the same set of channels. However, when there is under-estimation, the number of users exceeds the number of channels targeted by the users. Hence, collisions among the users accumulate, and can be used as a test for incrementing U^\widehat{U}.

Denote the collision count used by ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy as

We analyze regret bounds under the ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy, where the regret is defined in (3). Let the maximum threshold function for the number of consecutive collisions under ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy be denoted by

We prove that the ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy has O(ξ(n;U))O(\xi^{*}(n;U)) regret when ξ(n;U)=ω(logn)\xi^{*}(n;U)=\omega(\log n), and where nn is the number of transmission slots.

The proof for the regret bound under ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy consists of two main parts: we prove bounds on regret conditioned on the event that none of the users over-estimate UU. Second, we show that the probability of over-estimation at any of the users goes to zero asymptotically. Combined together, we obtain the regret bound for ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy.

Note that in order to have small regret, it is crucial that none of the users over-estimate UU. This is because when there is over-estimation, there is a finite probability of selecting the UU-worst channels even upon learning the true ranks of the channels. Note that regret is incurred whenever a U-worst channel is selected since under perfect knowledge this channel would not be selected. Hence, under over-estimation, the regret grows linearly in the number of transmissions.

In a nutshell, under the ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy, the decision to increment the estimate U^\widehat{U} reduces to a hypothesis-testing problem with hypotheses H0{\cal H}_{0}: number of users is less than or equal to the current estimate and H1{\cal H}_{1}: number of users is greater than the current estimate. In order to have a sub-linear regret, the false-alarm probability (deciding H1{\cal H}_{1} under H0{\cal H}_{0}) needs to decay asymptotically. This is ensured by selecting appropriate thresholds ξ(n)\xi(n) to test against the collision counts obtained through feedback.

We now give the result for the first part. Define the “good event” C(n;U){\cal C}(n;U) that none of the users over-estimates UU under ρ\mboxEST{\rho^{\mbox{\tiny EST}}} as

The regret conditioned on C(n;U){\cal C}(n;U), denoted by R(n;\hbox{\boldmath\mu\unboldmath},U,{\rho^{\mbox{\tiny EST}}})|{\cal C}(n;U), is given by

(Conditional Regret): When all the UU secondary users implement ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy, we have for all iUi\in U-worst channel and each user j=1,,Uj=1,\ldots,U,

The conditional expectation on number of collisions M(n)M(n) in the UU-best channel satisfies

Probability of Over-estimation

We now prove that none of the users over-estimatesNote that ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy automatically ensures that all the users do not under-estimate UU, since it increments U^\widehat{U} based on collision estimate. This implies that the probability of the event that all the users under-estimate UU goes to zero asymptotically. UU under ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy, i.e., the probability of the event C(n;U){\cal C}(n;U) in (22) approaches one as nn\to\infty, when the thresholds ξ(n;U^)\xi(n;\widehat{U}) for testing against the collision count are chosen appropriately (see line 6 in Algorithm 4). Trivially, we can set ξ(n;1)=1\xi(n;1)=1 since a single collision is enough to indicate that there is more than one user. For any other k>1k>1, we choose functions ξ\xi satisfying

We prove that the above condition ensures that over-estimation does not occur.

The expected number of slots where any of the top-UU estimated ranks of the channels at any user is wrong under ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy satisfies

Proof: The proof is on the lines of Lemma 3 \Box

Recall the definition of Υ(U,U)\Upsilon(U,U) in the previous section, as the maximum time to absorption starting from any initial distribution of the finite-state Markov chain, where the states correspond to different user configurations and the absorbing state corresponds to the collision-free configuration. We now generalize the definition to Υ(U,k)\Upsilon(U,k), as the time to absorption in a new Markov chain, where the state space is the set of configurations of UU users in kk channels, and the transition probabilities are defined on similar lines. Note that Υ(U,k)\Upsilon(U,k) is almost-surely finite when kUk\geq U and \infty otherwise (since there is no absorbing state in the latter case).

We now bound the maximum value of the collision count Φk,j(m)\Phi_{k,j}(m) under ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy in (20) using T(m)T^{\prime}(m), the total time spent with wrong channel estimates, and Υ(U,k)\Upsilon(U,k), the time to absorption in the Markov chain. Let st{\,\,\overset{st}{\leq}\,\,} denote the stochastic order for two random variables .

The maximum collision count in (20) over all users under the ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy satisfies

Proof: The proof is on the lines of Theorem 3. See Appendix -G. \Box

We now prove that the probability of over-estimation goes to zero asymptotically.

For threshold functions satisfying (25), the event C(n;U){\cal C}(n;U) in (22) satisfies

and hence, none of the users over-estimates UU under ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy.

We now give the main result of this section that ρ\mboxEST{\rho^{\mbox{\tiny EST}}} has slightly more than logarithmic regret asymptotically and this depends on the threshold function ξ(n;U)\xi^{*}(n;U) in (21).

With threshold functions ξ\xi satisfying conditions in (25), the policy ρ\mboxEST(n,C,gj(m),ξ){\rho^{\mbox{\tiny EST}}}(n,C,{\mathbf{g}}_{j}(m),\xi) in Algorithm 4 satisfies

Hence, the regret under the proposed ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy is O(ξ(n;U))O(\xi^{*}(n;U)) under fully decentralized setting without the knowledge of number of users when ξ(n;U)=ω(logn)\xi^{*}(n;U)=\omega(\log n). Hence, O(f(n)logn)O(f(n)\log n) regret is achievable for all functions f(n)f(n)\to\infty as nn\to\infty. The question of whether logarithmic regret is possible under unknown number of users is of interest.

Note the difference between ρ\mboxEST{\rho^{\mbox{\tiny EST}}} policy in Algorithm 4 under unknown number of users with ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} policy with known number of users in Algorithm 3. The regret under ρ\mboxEST{\rho^{\mbox{\tiny EST}}} is O(f(n)logn)O(f(n)\log n) for any function f(n)=ω(1)f(n)=\omega(1), while it is O(logn)O(\log n) under ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} policy. Hence, we are able to quantify the degradation of performance when the number of users is unknown.

VI Lower Bound & Effect of Number of Users

We have so far designed distributed learning and access policies with provable bounds on regret. We now discuss the relative performance of these policies, compared to the optimal learning and access policies. This is accomplished by noting a lower bound on regret for any uniformly-good policy, first derived in for a general class of uniformly-good time-division policies. We restate the result below.

For any uniformly good distributed learning and access policy ρ{\rho}, the sum regret in (2) satisfies

The lower bound derived in for centralized learning and access holds for distributed learning and access considered here. But a better lower bound is obtained above by considering the distributed nature of learning. The lower bound for distributed policies is worse than the bound for the centralized policies in (11). This is because each user independently learns the channel availabilities μ\mu in a distributed policy, whereas sensing decisions from all the users are used for learning in a centralized policy.

Our distributed learning and access policy ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} matches the lower bound on regret in (15) in the order (logn)(\log n) but the scaling factors are different. It is not clear if the regret lower bound in (30) can be achieved by any policy under no explicit information exchange and is a topic for future investigation.

VI-B Behavior with Number of Users

We have so far analyzed the sum regret under our policies under a fixed number of users UU. We now analyze the behavior of regret growth as UU increases while keeping the number of channels C>UC>U fixed.

When the number of channels CC is fixed and the number of users U<CU<C is varied, the sum regret under centralized learning and access ρ\mboxCENT{\rho^{\mbox{\tiny CENT}}} in (12) decreases as UU increases while the upper bounds on the sum regret under ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} in (15) monotonically increases with UU.

Proof: The proof involves analysis of (12) and (15). To prove that the sum regret under centralized learning and access in (12) decreases with the number of users UU, it suffices to show that for iUi\in U-worst channel,

decreases as UU increases. Note that μ(U)\mu(U^{*}) and D(μi,μU)D(\mu_{i},\mu_{U^{*}}) decrease as UU increases. Hence, it suffices to show that

decreases with UU. This is true since its derivative with respect to UU is negative.

For the upper bound on regret under ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} in (15), when UU is increased, the number of UU-worst channels decreases and hence, the first term in (15) decreases. However, the second term consisting of collisions M(n)M(n) increases to a far greater extent. \Box

Note that the above results is for the upper bound on regret under the ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} policy and not the regret itself. Simulations in Section VII reveal that the actual regret also increases with UU. Under the centralized scheme ρ\mboxCENT{\rho^{\mbox{\tiny CENT}}}, as UU increases, the number of UU-worst channels decreases. Hence, the regret decreases, since there are less number of possibilities of making bad decisions. However, for distributed schemes although this effect exists, it is far outweighed by the increase in regret due to the increase in collisions among the UU users.

In contrast, the distributed lower bound in (30) displays anomalous behavior with UU since it fails to account for collisions among the users. Here, as UU increases there are two competing effects: a decrease in regret due to decrease in the number of UU-worst channels and an increase in regret due to increase in the number of users visiting these UU-worst channels.

VII Numerical Results

We present simulations that vary the schemes and the number of users and channels to verify the performance of the algorithms detailed earlier. We consider CC= 99 channels (or a subset of them when the number of channels is varying) with probabilities of availability characterized by Bernoulli distributions with evenly spaced parameters ranging from 0.10.1 to 0.90.9.

Fig.2a compares the regret under the centralized and random allocation schemes in a scenario with UU = 44 cognitive users vying for access to the C=9C=9 channels. The theoretical lower bound for the regret in the centralized case from Theorem 2 and the distributed case from Theorem 6 are also plotted. The upper bounds on the random allocation scheme from Theorem 4 is not plotted here, since the bounds are loose especially as the number of users UU increases. Finding tight upper bounds is a subject of future study.

As expected, centralized allocation has the least regret. Another important observation is the gap between the lower bounds on the regret and the actual regret in both the distributed and the centralized cases. In the centralized scenario, this is simply due to using the g\mboxMEANg^{\mbox{\tiny MEAN}} statistic in (34) instead of the optimal g\mboxOPTg^{\mbox{\tiny OPT}} statistic in (5). However, in the distributed case, there is an additional gap since we do not account for collisions among the users. Hence, the schemes under consideration are O(logn)O(\log n) and achieve order optimality although they are not optimal in the scaling constant.

Performance with Varying U𝑈U and C𝐶C

Fig.3a explores the impact of increasing the number of secondary users UU on the regret experienced by the different policies while fixing the number of channels CC. With increasing UU, the regret decreases for the centralized schemes and increases for the distributed schemes, as predicted in Theorem 7. The monotonic increase of regret under random allocation ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} is a result of the increase in the collisions as UU increases. While the monotonic decreasing behavior in the centralized case is because as the number of users increases, the number of UU-worst channels decreases resulting in lower regret. Also, the lower bound for the distributed case in (30) initially increases and then decreases with UU This is because as UU increases there are two competing effects: decrease in regret due to decrease in number of UU-worst channels and increase in regret due to increase in number of users visiting these UU-worst channels.

Fig.3b evaluates the performance of the different algorithms as the number of channels CC is varied while fixing the number of users UU. The probability of availability of each additional channel is set higher than those already present. Here, the regret monotonically increases with CC in all cases. When the number of channels increases along with the quality of the channels, the regret increases as a result of an increase in the number of UU-worst channels as well as the increasing gap in quality between the UU-best and UU-worst channels.

Also, the situation where the ratio UC\frac{U}{C} is fixed to be 0.50.5 and both the number of users and channels along with their quality increase is considered in Fig.3c. As the number of users increases the regret increases as the number of channels CC and their quality are both increasing. Once again, this is in agreement with theory as the number of UU-worst channels increases as UU and CC increase while keeping UC\frac{U}{C} fixed.

Collisions and Learning

Since the statistic g\mboxMEANg^{\mbox{\tiny MEAN}} used in the schemes in this paper differs from the optimal statistic g\mboxOPTg^{\mbox{\tiny OPT}} in (5), a simulation is done to compare the performance of the schemes under both the statistics. As expected, in Fig.2b, the optimal scheme has better performance. However, the use of g\mboxMEANg^{\mbox{\tiny MEAN}} enables us to provide finite-time bounds, as described earlier.

Fairness

One of the important features of ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}} is that it does not favor any one user over another. Each user has an equal chance of settling down in any one of the UU-best channels. Fig.4 evaluates the fairness characteristics of ρ\mboxRAND{\rho^{\mbox{\tiny RAND}}}. The simulation assumes U=4U=4 cognitive users vying for access to C=9C=9 channels. The graph depicts which user asymptotically gets the best channel over 10001000 runs of the random allocation scheme. As can be seen, each user has approximately the same frequency of being allotted the best channel indicating that the random allocation scheme is indeed fair.

VIII Conclusion

In this paper, we proposed novel policies for distributed learning of channel availability statistics and channel access of multiple secondary users in a cognitive network. The first policy assumed that the number of secondary users in the network is known, while the second policy removed this requirement. We provide provable guarantees for our policies in terms of sum regret. Combined with the lower bound on regret for any uniformly-good learning and access policy, our first policy achieves order-optimal regret while our second policy is also nearly order optimal. Our analysis in this paper provides insights on incorporating learning and distributed medium access control in a practical cognitive network.

The results of this paper open up an interesting array of problems for future investigation. Our assumptions of an i.i.d. model for primary user transmissions and perfect sensing at the secondary users need to be relaxed. Our policy allows for an unknown but fixed number of secondary users, and it is of interest to incorporate users dynamically entering and leaving the system. Moreover, our model ignores dynamic traffic at the secondary nodes and extension to a queueing-theoretic formulation is desirable.

The authors thank the guest editors and anonymous reviewers for valuable comments that vastly improved this paper, and for pointing out an error in Proposition 1. The authors thank Keqin Liu and Prof. Qing Zhao for extensive discussions, feedback on the proofs in an earlier version of the manuscript, and for sharing their simulation code. The authors also thank Prof. Lang Tong and Prof. Robert Kleinberg at Cornell, Prof. Bhaskar Krishnamachari at USC and Dr. Ishai Menache at MIT for helpful comments.

-A Proof of Theorem 2

The result in (13) involves extending the results of [11, Thm. 1]. Define Ti(n):=j=1UTi,j(n)T_{i}(n){:=}\sum_{j=1}^{U}T_{i,j}(n) as the number of times a channel ii is sensed in nn rounds for all users. We will show that

is the event that at least one of the UU-best channels has gg-statistic less than ii. Hence, from union bound we have

On the lines of [11, Thm. 1], we have \forall k,i:k\mbox{ isU-best},i\mbox{ isU-worst}

Hence, we have (31). For the bound on regret, we can break RR in (2) into two terms

where T(n):=maxiU\mboxbestTi(n)T^{*}(n){:=}\max\limits_{i\in U\mbox{\scriptsize-best}}T_{i}(n). Hence, we have the bound.

-B Proof of Proposition 1

For convenience, let Ti(n):=j=1UTi,j(n)T_{i}(n):=\sum_{j=1}^{U}T_{i,j}(n), Vi(n):=j=1UVi,j(n)V_{i}(n):=\sum_{j=1}^{U}V_{i,j}(n). Note that i=1CTi(n)=nU,\sum_{i=1}^{C}T_{i}(n)=nU, since each user selects one channel for sensing in each slot and there are UU users. From (3),

where Eqn.(32) uses the fact that Vi(n)nV_{i}(n)\leq n since total number of sole occupancies in nn slots of channel ii is at most nn, and Eqn.(33) uses the fact that M(n)=iU\mboxbest(Ti(n)Vi(n))M(n)=\sum_{i\in U\mbox{\scriptsize-best}}(T_{i}(n)-V_{i}(n)).

For the lower bound, since each user selects one channel for sensing in each slot, i=1Cj=1UTi,j(n)=nU\sum_{i=1}^{C}\sum_{j=1}^{U}T_{i,j}(n)=nU. Now Ti,j(n)Vi,j(n)T_{i,j}(n)\geq V_{i,j}(n).

-C Proof of Lemma 2

For the genie-aided scheme, the expected number of slots to hit orthogonality is just the mean of the geometric distribution

where pp is the probability of having an orthogonal configuration in a slot. This is in fact the reciprocal of the number of compositions of UU [24, Thm. 5.1], given by

The above expression is nothing but the reciprocal of number of ways UU identical balls (users) can be placed in UU different bins (channels): there are 2U12U-1 possible positions to form UU partitions of the balls.

Now for the random allocation scheme without the genie, any user not experiencing collision does not draw a new variable from \mboxUnif(U)\mbox{Unif}(U). Hence, the number of possible configurations in any slot is lower than under genie-aided scheme. Since there is only one configuration satisfying orthogonalitysince all users are identical for this analysis., the probability of orthogonality increases in the absence of the genie and is at least (35). Hence, the number of slots to reach orthogonality without the genie is at most (34). Since in any slot, at most UU collisions occur, (17) holds.

-D Proof of Lemma 3

Let cn,m:=2lognmc_{n,m}{:=}\sqrt{\frac{2\log n}{m}}.

The above event implies at least one of the following events and hence, we can use the union bound.

and the event that μ1<μ2+2ct,h+m\mu_{1^{*}}<\mu_{2^{*}}+2c_{t,h+m} implies that

where aa^{*} and bb^{*} represent channels with a\mboxtha^{{\mbox{\tiny th}}} and b\mboxthb^{{\mbox{\tiny th}}} highest availabilities. On lines of the result for U=C=2U=C=2, we can show that

-E Proof of Theorem 3

Define the good event as all users having correct top-UU order of the gg-statistics, given by

The number of slots under the bad event is

by definition of T(n)T^{\prime}(n). In each slot, either a good or a bad event occurs. Let γ\gamma be the total number of collisions in UU-best channels between two bad events, i.e., under a run of good events. In this case, all the users have the correct top-UU ranks of channels and hence,

-F Proof of Lemma 4

Under C(n;U){\cal C}(n;U), a UU-worst channel is sensed only if it is mistaken to be a UU-best channel. Hence, on lines of Lemma 1,

For the number of collisions M(n)M(n) in the UU-best channels, there can be at most Uk=1aξ(n;k)U\sum_{k=1}^{a}\xi(n;k) collisions in the UU-best channels where a:=maxj=1,,UU^ja:=\max_{j=1,\ldots,U}\widehat{U}_{j} is the maximum estimate of number of users. Conditioned on C(n;U,){\cal C}(n;U,), aUa\leq U, and hence, we have (24).

-G Proof of Proposition 2

Define the good event as all users having correct top-UU order, given by

The number of slots under the bad event is

by definition of T(n)T^{\prime}(n). In each slot, either a good or a bad event occurs. Let γ\gamma be the total number of collisions in kk-best channels between two bad events, i.e., under a run of good events. In this case, all the users have the correct top-UU ranks of channels and hence,

The number of collisions under the bad event is at most T(n)T^{\prime}(n). Hence, (27) holds.

-H Proof of Lemma 6

References