Confidence-Budget Matching for Sequential Budgeted Learning


Abstract

A core element in decision-making under uncertainty is the feedback on the quality of the performed actions. However, in many applications, such feedback is restricted. For example, in recommendation systems, repeatedly asking the user to provide feedback on the quality of recommendations will annoy them. In this work, we formalize decision-making problems with querying budget, where there is a (possibly time-dependent) hard limit on the number of reward queries allowed. Specifically, we consider multi-armed bandits, linear bandits, and reinforcement learning problems. We start by analyzing the performance of ‘greedy’ algorithms that query a reward whenever they can. We show that in fully stochastic settings, doing so performs surprisingly well, but in the presence of any adversity, this might lead to linear regret. To overcome this issue, we propose the Confidence-Budget Matching (CBM) principle that queries rewards when the confidence intervals are wider than the inverse square root of the available budget. We analyze the performance of CBM based algorithms in different settings and show that they perform well in the presence of adversity in the contexts, initial states, and budgets.

1 Introduction↩︎

In the past few decades, there have been great advances in the field of sequential decision making under uncertainty. From a practical perspective, recent algorithms achieve superhuman performance in problems that had been considered unsolvable [1], [2]. From a theoretical perspective, algorithms with order-optimal performance were presented to various important settings [3], [4].

To solve such problems, most works share the same abstract interaction model. At each round, an agent (i) observes some information on the state of the environment, (ii) decides how to act, based on previous interactions, and, (iii) observes new feedback on the effect of its action. Finally, the environment changes its state based on the agent’s action, and the cycle begins anew. Much effort had been devoted to study specific instances of this abstract model, e.g., multi-armed bandits (MABs) [3], [5][7], linear bandits [8][11] and reinforcement learning (RL) settings [4], [12][19]. However, there are (still) several gaps between theory and practice that hinder the application of these models in real-world problems.

One such evident gap is the need to act under a budget constraint that limits the amount of feedback from the environment. That is, receiving feedback on the quality of the agent’s actions has an inherent cost. Consider, for example, an online recommendation system. There, asking for feedback from users negatively affects their experience, and feedback should be requested sparingly. Another example can be found in most large-scale RL domains, including autonomous driving. In many such cases, the reward should be labeled manually, and the resources for doing so are limited. Motivated by these problems, in this work, we aim to tackle the following question:

How should an agent trade-off exploration and exploitation when the feedback is limited by a budget?

In our efforts to answer this question, we study the effect of time-varying observation budget in various decision-making problems. Formally, we assume that at each round, the agent observes a non-decreasing, possibly adversarial, budget \(B(t)\), which limits the number of queries for the reward of the problem. We first show that when the problem is stochastic and the budget is oblivious, greedily using any available budget leads to good performance. However, as soon as adversarial elements appear in the problem, or when the budget is controlled by an adaptive adversary, such an algorithm miserably fails. To tackle this problem, we suggest a simple, generic, scheme, that only samples rewards for actions with high uncertainty, in comparison to the budget. We call such a mechanism confidence-budget matching (CBM). We show how to apply CBM to MAB, linear bandit and RL problems. In all cases, the mechanism can be applied in the presence of adaptive adversarial budgets. For linear bandits and RL, we show that CBM can be applied even when the contexts and initial states are adversarial. Finally, we present lower bounds for MABs and linear bandits, which show that CBM leads to order-optimal regret bounds.

2 Preliminaries↩︎

We start by defining a general model for sequential decision-making under uncertainty. Then, we will explain its realization in each individual model. In the most general model, at each round \(t\), the environment supplies the agent with a context \(u_t\) that may either be stochastic or adversarially chosen. Then, the agent selects a policy \(\pi_t\in\Pi(u_t)\) that can depend on \(u_t\) and past observations. Finally, the environment generates two stochastic feedback variables, from fixed distributions conditioned on \(u_t\) and \(\pi_t\): feedback on the interaction with the environment \(Z_t\) and reward feedback \(R_t\). In RL, for example, \(Z_t\) is the visited state-actions while \(R_t\) is their respective rewards. We also assume that there exists a reward function \(f\) such that the agent aims to maximize \(f(R_t)\) throughout the interaction. Alternatively, algorithms aim to minimize its pseudo-regret (or regret), which is defined as \[\begin{align} \mathrm{Reg}(T) \!=\!\!\sum_{t=1}^T\br*{\max_{\pi\in\Pi(u_t)}\mathbb{E}\brs*{f(R_t)\vert u_t, \pi} \!-\! \mathbb{E}\brs*{f(R_t)\vert u_t, \pi_t}\!}. \end{align}\] Note that the pseudo-regret is random, as the policy depend on random feedback from the environment and contexts might be stochastic. Thus, regret bounds for different algorithms hold either with expectation or with high probability.

To illustrate the generality of this model, we explain how it encompasses both MAB, linear bandit and RL problems:

Contextual Multi-Armed Bandits (CMABs). At the beginning of each round, a context \(u_t\in\brc*{1,\dots,S}\) is chosen, either stochastically or adversarially. Then, the agent chooses an action (arm) from a finite set of cardinality \(A\), \(\pi_t\triangleq a_t\in\mathcal{A}\) and the environment generates a reward \(R_t\in\brs*{0,1}\) with an expectation \(\mathbb{E}\brs{R_t \vert u_t=u, a_t=a}=r(u,a)\). An optimal arm is denoted by \(a^*(u)\in\arg\max_a r(u,a)\) and its value by \(r^*(u)=\max_a r(u,a)\). The reward function is \(f(R_t)=R_t\) and there is no additional feedback (\(Z_t=\phi\)). A specific case of interest is where a single context exists, which is the well known MAB problem. Then, we denote \(r(a)\triangleq r(1,a)\).

Linear Contextual Bandits. In the stochastic setting, \(u_t\) contains a set of \(A\) vectors in \(\mathbb{R}^d\), generated independently from a fixed distrubution. In the adversarial case, \(u_t\) is an arbitrary set of vectors in \(\mathbb{R}^d\). At each round \(t\), the agent selects a single vector \(\pi_t\triangleq x_t\in u_t\). Then, the environment generates a reward \(R_t=\inner{x_t,\theta}+\eta_t\), where \(\eta_t\) is zero-mean subgaussian noise and \(\theta\in\mathbb{R}^d\) is unknown. As in the CMAB problem, the reward function is \(f(R_t)=R_t\) and there are no additional observations (\(Z_t=\phi\)).

Episodic Reinforcement Learning. Let \(\mathcal{S},\mathcal{A}\) be finite state and action sets with cardinalities of \(S,A\), respectively. Before each episode \(t\), an initial state \(s_{t,1}\) is generated either stochastically or adversarially (and serves as a context \(u_t\)). Then, an agent selects a nonstationary policy \(\pi_t:\mathcal{S}\times \brs*{H}\to \mathcal{A}\), for some \(H\in\mathbb{N}\). The policy is evaluated for \(H\) steps, and states are generated according to a transition kernel \(P\); namely, for any \(s'\in \mathcal{S}\) and \(h\in\brc*{1,\dots,H}\), \(\Pr\br*{s_{t,h+1}=s'\vert s_{t,h},\pi_{t,h}}=P_h\br*{s'\vert s_{t,h},\pi_{t,h}(s_{t,h})}\). For brevity, we denote \(a_{t,h}=\pi_{t,h}(s_{t,h})\). The agent observes the trajectory \(Z_t=\brc*{(s_{t,h},a_{t,h})}_{h=1}^H\) and for each visited state, a reward \(R_t = \brc*{R_{t,h}}_{h=1}^H\in \brs*{0,1}^H\) is generated such that \(\mathbb{E}\brs*{R_{t,h}\vert s_{t,h}=s,a_{t,h}=a}=r(s,a)\). The reward function is then \(f(R_t)=\sum_{h=1}^{H-1}R_{t,h}\).

2.0.0.1 Sequential Budgeted Learning.

In most cases, it is natural to observe the effect of the policy on the environment; for example, it is reasonable to assume that the agent observes the visited states in RL, as it acts according to them. Thus, we assume that the agent always observes \(Z_t\). On the other hand, many applications require specifically querying or labeling the reward. Then, oftentimes, such feedback is limited. Formally, let \(\brc{B(t)}_{t\ge1}\) be a non-negative budget sequence that might be adversarially chosen. We also assume that the budget is non-decreasing, that is, a budget that is given cannot be taken. At each round \(t\), the agent observes \(B(t)\) and selects whether to query \(R_t\) or not, which we denote by \(q_t=1\) and \(q_t=0\), respectively. However, the agent can choose \(q_t=1\) only if its budget was not exhausted. Throughout most of the paper, we assume that querying a reward incurs unit cost. Then, an agent can select \(q_t=1\) only if \(n^q_{t-1}\triangleq\sum_{k=1}^{t-1}1{\brc*{q_k=1}}\le B(t)-1.\) In some cases, we extend the cost to be action-dependent. Then, a reward can only be queried if \[{B^q(t-1)\triangleq\sum_{k=1}^{t-1}c({\pi_k})1{\brc*{q_k=1}}\le B(t)-c(\pi_t).}\] Notice that when queries have unit costs, then \(n^q_t=B^q(t)\). For the RL setting, we give access to more refined feedback from specific time steps, to avoid confusion we only discuss it in 5.3. In all cases, we allow \(q_t\) to also depend on \(Z_t\). Finally, and for ease of notations, we assume that the agent always observes \(Y_t=R_t\cdot q_t\).

2.0.0.2 General Notations

We let \(\brc{F_t}_{t\geq 0}\) be a filtration, where \(F_t\) is the \(\sigma\)-algebra that contains the random variables \(\brc{(u_k,\pi_k, Z_k,q_k, Y_k, B(k))_{k=0}^t, B(t+1), u_{t+1}}\). In words, it contains the information on all observed rewards, actions, budget until the \(t^{th}\) episode, the budget at the \((t+1)^{th}\) episode, and the context at the \((t+1)^{th}\) episode. We denote \(\brs*{n}=\brc*{1,\dots,n}\) for \(n\in\mathbb{N}\) and also \(x\vee1=\max\brc{x,1}\) for any \(x\in\mathbb{R}\). We use \(\mathcal{O}(X)\) and \(\tilde{\mathcal{O}}(X)\) to refer to a quantity that depends on \(X\) up to constants and poly-log and constant expressions in problem parameters, respectively. Lastly, \(\lesssim,\gtrsim\) denote inequalities that hold up to poly-log and constant expressions in problem parameters.

3 Lower Bounds for Budgeted Problems↩︎

Before suggesting algorithms to the budgeted setting, it is of importance to understand how the new constraint affects the best-achievable regret. To this end, we study problem-independent lower bounds for budgeted MAB. By the end of the section, we also shortly discuss lower bounds for budgeted linear bandits. To derive the lower bounds, we require a more detailed description of the MAB model and additional notations. Moreover, we need to adapt the fundamental inequality of [20] to the case where the agent does not query all samples (1). We refer the reader to 8.1 for more details on the model and to 8.2 for 1. Other proofs for this section can be found at 8.3. Using 1, we can prove a lower bound for the following scenario in which \((i)\) sampling an arm requires a unit cost, \((ii)\) the budget constraint holds in expectation, and, \((iii)\) the budget is given to the learner at the initial interaction, i.e. \(\forall t\in [T],\;B(t)=B\):

proposition-rstmabLowerBoundEqual Let \(T\) be some time horizon and let \(\pi\) be some bandit strategy such that for any bandit instance, it holds that \(\mathbb{E}\brs*{n^q_T}\le B\). Then, for \(A\ge2\), there exists a bandit instance for which \[\begin{align} \mathbb{E}\brs*{\mathrm{Reg}(T)} \ge \frac{1}{140}\min\brc*{T\sqrt\frac{A}{B},T}\enspace. \end{align}\]

As expected, when the budget is linear (\(B=T\)), we get the standard \(\Omega\br*{\sqrt{AT}}\) lower bound. However, as we decrease the budget, the lower bound increases, up to the point of linear regret when the budget is not time-dependent. We also remark that the lower bound holds even if the budget constraint is only met in expectation. We will later present algorithms whose regret match these bounds, without ever violating the budget constraint. This implies that relaxing the budget requirement to hold in expectation cannot improve performance, from a worst-case perspective. Finally, note that when the budget is polynomial in \(T\), .e.g., \(B=T^\beta\), we get a lower bound of \(\Omega\br*{\sqrt{A}T^{1-\beta}}\). We will later prove upper bounds that match this rate.

Next, it is of interest to generalize the bound to the case of arm-dependent costs. In this case, we require a more subtle analysis that also costs in a \(\sqrt{\log A}\) factor:

proposition-rstmabLowerBoundVaryingArmCosts Let \(T\) be the time horizon, and let \(c(1),\dots,c(A)\ge0\) be arm-dependent querying costs. Also, let \(\pi\) be some bandit strategy such that for any bandit instance, it holds that \(\mathbb{E}\brs*{B^q(T)}\le B\). Then, for \(A\ge2\), there exists a bandit instance for which \[\begin{align} \mathbb{E}\brs*{\mathrm{Reg}(T)} \ge \frac{1}{140}\min\brc*{T\sqrt\frac{\sum_{a=1}^Ac(a)}{B(1+\log A)},T}\enspace. \end{align}\]

While both bounds deal with fixed budget, \(B(t)=B\) for all rounds, one can easily reduce them to lower bounds for time-dependent budgets, by reducing the lower bound only at a logarithmic factor. This is done by lower bounding the regret by the bound of the ‘worst-case’ time horizon \(\Omega\br*{\max_{t\in\brs*{T}}\brc*{\frac{t}{\sqrt{B(t)}}}}\). We demonstrate how to do so for the case of arm-dependent costs in the following corollary:

corollary-rstmabLowerBoundVaryingBudget Let \(c(1),\dots,c(A)\ge0\) be arm-dependent querying costs and let \(B(1),\dots, B(T)>0\) be an arbitrary non-decreasing budget sequence. Also, let \(\pi\) be some bandit strategy such that for any bandit instance and any time index \(t\in\brs*{T}\), it holds that \(\mathbb{E}\brs*{B^q(t)}\le B(t)\). Then, for any \(A\ge2\), there exists a bandit instance for which \[\begin{align} &\mathbb{E}\brs*{\mathrm{Reg}(T)} \\ &\ge \frac{1}{140(1+\log T)}\sum_{t=1}^T\min\brc*{\sqrt\frac{\sum_{a=1}^Ac(a)}{B(t)(1+\log A)},1}\enspace. \end{align}\]

Proof. By [proposition:32lower32bound32mab32varying32arm32costs], for any \(t\in\brs*{T}\), there exists an instance such that \[\begin{align} \mathbb{E}\brs*{\mathrm{Reg}(t)} \ge \frac{t}{140}\min\brc*{\sqrt\frac{\sum_{a=1}^Ac(a)}{B(t)(1+\log A)},1}\enspace. \end{align}\] Let \(t_m\) be the time index in which the r.h.s. is maximized and fix the bandit problem to the corresponding instance that leads to its lower bound. Then. \[\begin{align} \mathbb{E}\brs*{\mathrm{Reg}(T)} &\!\ge\! \mathbb{E}\brs*{\mathrm{Reg}(t_m)} \\ &\!=\!\max_{t\in\brs*{T}}\brc*{ \frac{t}{140}\min\brc*{\!\sqrt\frac{\sum_{a=1}^Ac(a)}{B(t)(1+\log A)},1}}. \end{align}\] Finally, by Hölder’s inequality, if \(x,y\in\mathbb{R}^T\) are such that \(x_t,y_t\ge0\) for all \(t\in\brs*{T}\), then \[\begin{align} \max_t x_t =\norm*{x}_\infty\ge \frac{\sum_{t=1}^T x_ty_t}{\norm*{y}_1} = \frac{\sum_{t=1}^T x_ty_t}{\sum_{t=1}^T y_t} \enspace. \end{align}\] Taking \(x_t \!=\! \frac{t}{140}\min\brc*{\sqrt\frac{\sum_{a=1}^Ac(a)}{B(t)(1+\log A)},1}\) and \(y_t \!=\! \frac{1}{t}\) and recalling that \(\sum_{t=1}^T \frac{1}{t} \le1+\log T\) concludes the proof. ◻

In the following sections, we derive regret upper bounds of similar budget-dependence, e.g., \(\tilde{\mathcal{O}}\br*{\sum_{t=1}^T \sqrt{A/B(t)} }\), if \(c(a)=1\) for all \(a\in \mathcal{A}\) . It is therefore of interest to observe the behavior of such bounds as a function of different budget profiles.

Example 1. (Budget Profiles and Consequences).

  • Linear Budget: if \(B(t)=\epsilon t\) for some \(\epsilon>0\), then \(\mathrm{Reg}(T) \le 2\sqrt{AT/\epsilon}\). Specifically, if \(\epsilon=\Omega(1)\), then we get the standard rates of \(\mathrm{Reg}(T) = \Theta(\sqrt{AT})\).

  • Polynomial Budget: if \(B(t)=t^{c}\) for some \(c\in(0,1]\), then the regret is also polynomial, i.e., \(\mathrm{Reg}(T) =\Theta(\sqrt{A}T^{1-c/2})\).

  • Fixed Budget: if \(B(t)=B_0>0\) is an initial budget, then \(\mathrm{Reg}(T) =\Theta(\sqrt{A}T/\sqrt{B_0})\). However, if the budget is given at the end of the game, namely, \(B(t)=0\) for \(t\le T-B_0\) and \(B(t)=B_0\) for \(t> T-B_0\), then \(\mathrm{Reg}(T) =\Omega(T)\) for any \(B_0=o(T)\).

  • Periodically-replenished budget if the budget is replenished by \(B_0>0\) every \(N\in\mathbb{N}\) steps, namely, \(B(t)=B_0\cdot\br*{1 + \floor{\frac{t}{N}}}\), then \[\begin{align} \mathrm{Reg}(T) = \mathcal{O}\br*{\sum_{s=1}^{\ceil{T/N}}\frac{\sqrt{A}N}{\sqrt{B_0s}}} = \mathcal{O}\br*{\sqrt{\frac{ATN}{B_0}}}\enspace. \end{align}\]

3.1 Lower Bounds for Linear Contextual Bandits↩︎

We end this section by presenting a lower bound for linear bandits. Here, we assume that the budget constraint is never violated (as we assume in the upper bounds). Then, for fixed budget and context space, we derive the following bound:

proposition-rstlbLowerBoundEqual Let \(T\in\mathbb{N}\) be some time horizon and let \(\pi\) be a linear bandit policy such that \(n^q_T\le B\) a.s. for some fixed \(B\le T\). Then, there exists a \(d\)-dimensional linear bandit instance with arm set \(\brs*{-1,1}^d\) for which the expected regret of \(\pi\) is lower bounded by \(\frac{dT}{80\sqrt B}\).

See 8.4 for a proof. Importantly, this bound can be generalized to time-varying budgets, as in [corollary:32lower32bound32mab32varying32budget].

4 The Greedy Reduction: Gap Between Adversarial and Stochastic Contexts↩︎

Figure 1: Greedy Reduction

We start by tackling the simpler case where the contexts are stochastic and the budget is oblivious. Formally, before the game starts, a sequence of budgets \(\brc*{B(t)}_{t>1}\) is chosen, possibly adversarially. Later, at the beginning of each round \(t\), a context \(u_t\) is generated from a distribution \(\mathcal{P}_u\), independently at random of other rounds. Then, the model continues as in 2. For this section, we also assume that queries have unit costs.

For this model, we suggest a simple greedy reduction (see 1). Take an algorithm \(\mathbb{A}\). If there is enough budget, query reward feedback and ask \(\mathbb{A}\) for a policy \(\pi_{t}\) to act with. Otherwise, when there is no available budget, pick uniformly at random a policy from past policies returned by \(\mathbb{A}\), \(\brc*{\pi_t}\), and act with it. We remark that \(\mathbb{A}_k(u)\) denotes an output-policy of the algorithm at its \(k^{th}\) iteration, with \(u\) as the input context. Albeit simple, this algorithm performs surprisingly well, as we show in the following theorem:

theorem-rstBlackBoxReductionTheorem Let \(\mathbb{A}\) be an anytime algorithm with bounded regret \(\mathbb{E}[\mathrm{Reg}(T)]\leq \alpha T^\beta + C\) for some \(\alpha,C\in \mathbb{R}_+,\beta\in\brs*{0,1}\) and any \(T\in \mathbb{N}\). Moreover, assume the budget is chosen by an oblivious adversary such that it is non-decreasing, \(B(1)\ge1\) and \(B(t)\in\mathbb{N}\) for all \(t\ge1\). Then, the expected regret of 1 with base algorithm \(\mathbb{A}\) and budget sequence \(\brc{B(t)}_{t\geq 1}\) is upper bounded by \(\alpha T^\beta + C + \sum_{t=1}^T \frac{\alpha}{B^{1-\beta}(t)} + \frac{C}{B(t)}.\)

The proof of the theorem (and all other results in the section) can be found at 9. One possible application of the theorem is in the MAB setting, combined with MOSS-anytime [21]. This would result in a regret bound of \(\mathcal{O}\br*{\sum_{t=1}^T \sqrt{A/B(t)}}\), which matches the lower bound of [corollary:32lower32bound32mab32varying32budget] up to log-factors. For linear bandits, using OFUL [9] as the base algorithm implies a regret of \(\tilde{\mathcal{O}}\br*{\sum_{t=1}^T d/\sqrt{B(t)}}\), which matches the lower bound of Proposition [proposition:32lower32bound32lb32unit32costs] up to log-factors. In general, we believe that this reduction is tight in many interesting settings. One possible intuitive explanation for this can be found at the following proposition. In it, we prove that in non-contextual problems, for any fixed horizon, any general algorithm can be converted to one that uses the budget at the beginning of the game. A reasonable adaptation for time-varying budget and anytime algorithm would be to use the budget whenever possible.

proposition-rstGreedyEquivalent Assume that the decision-making problem is non-contextual (\(u_t=\phi, \forall t\)) with no environment feedback (\(Z_t=\phi, \forall t\)) and unit-querying costs. Then, for any \(T,B\in\mathbb{N}\) such that \(B\le T\) and any policy \(\pi\) under which \(n^q_T\le B\), there exists a policy \(\pi'\) such that \(q_t=1\) for all \(t\in\brs*{B}\) (and zero otherwise) and \(\mathbb{E}\brs*{\mathrm{Reg}(T)\vert \pi'}=\mathbb{E}\brs*{\mathrm{Reg}(T)\vert \pi}\).

We end this section by returning to its basic assumptions - stochastic contexts and oblivious budget. We show that when at least one of these assumptions do not hold, the greedy reduction suffers a linear regret in a very simple CMAB problem, even if the budget is linear in expectation:

proposition-rstCounterExamplesPropositions If an adaptive adversary controls either (i) the contexts, or (ii) the budget, then for any base algorithm \(\mathbb{A}\) used in Algorithm 1, there exists a contextual MAB problem with two contexts and two arms such that \(\mathbb{E}[\mathrm{Reg}(T)] \geq \frac{T}{4}\), even if \(\mathbb{E}\brs*{B(t)} = \frac{t}{2}\) for all \(t\in\brs*{T}\).

Consider a contextual multi-armed bandit instance with two contexts, \(u\in \{1,2\}\). Assume that querying a reward feedback costs \(1\) for all contexts and all arms. Furthermore, assume the budget increases in each episode by \(1\) with probability \(1/2\).

If the adversary is adaptive to the history, it can choose \(u=1\) every round the budget increases and otherwise choose \(u=2\). The greedy reduction then only queries for feedback for \(u=1\). Thus, the regret for \(u=2\) is linear in \(T\), since no information is gathered for this context, and the number of rounds \(u=2\) is \(\Omega(T)\). Lastly, it can be shown that \(\mathbb{E}[B(t)]=t/2\) in this construction. Equivalently, the same result holds if the contexts are uniformly distributed and an adaptive adversarial budget increases by a single unit only when \(u=1\). This emphasizes the need for developing non-greedy algorithms that store budget to face adversities in the problem.

5 The Confidence-Budget Matching Principle↩︎

Figure 2: Confidence-Budget Matching (CBM) Scheme

In the previous section, we showed that a simple greedy query rule performs well for sequential budgeted learning with stochastic contexts and oblivious budget. That is, querying for feedback as long as a spare budget exists results in a well-performing approach. However, this ‘greedy’ approach can miserably fail in the presence of adversarial contexts or budget. In this section, we introduce an alternative approach we refer to as the Confidence-Budget Matching (CBM) principle. Unlike the greedy approach, CBM works well in the presence of adversities as it adequately preserves budget.

CBM is a generic algorithmic scheme that converts an unbudgeted optimistic algorithm to an algorithm that can be utilized in sequential budgeted learning. As evident in 2, the agent follows a policy calculated by the baseline algorithm \(\mathbb{A}\). Then, feedback on the reward of \(\pi_t\) is queried if the confidence interval (CI) of the policy, given current context, \(CI_t(u_t,\pi_t)\) is larger than \(\alpha\sqrt{1/B(t)}\) for some \(\alpha>0\). As querying rewards decreases the CI, \(CI_t(u_t,\pi_t)\) will gradually decrease. Then, if a policy is chosen frequently enough, reward querying will stop once its confidence matches \(\alpha\sqrt{1/B(t)}\).

Unlike the greedy reduction, the performance of CBM does not degrade in the presence of adversarial contexts or budget, as we demonstrate later in this section. A crucial reason for this is that CBM stops querying rewards of policies with small CI. This somewhat conservative behavior leads to a more robust algorithm. To better understand the robustness of this querying rule, we consider the MAB problem. For this problem, we set \(\alpha_t\sim\sqrt{A}\), thus, for the MAB problem, CBM queries reward feedback if \(CI_t(a_t)\geq \tilde{\mathcal{O}}(\sqrt{A/B(t)})\). Denoting the number of queries from action \(a\) before the \(t^{th}\) episode by \(n_{t-1}^q(a)\) and setting \(CI_t(a_t)\sim 1/\sqrt{n^q_{t-1}(a_t)}\) (Hoeffding-based CI) leads to the following equivalent condition to CBM query rule for MAB: ask for reward feedback if \(n_{t-1}(a_t)\lesssim B(t)/A.\) Namely, query for feedback if \(a_t\) was queried less than \(B(t)/A\) times so far. Thus, this rule implicitly allocates \(1/A\) of the current budget to each of the arms for possible use. This immediately implies the budget constraint is never violated, since there are \(A\) arms in total.

Remark 1. Notice that the CBM scheme plays actions selected by the optimistic baseline algorithm \(\mathbb{A}\), which do not depend on the current budget \(B(t)\). In particular, all our results also hold even if the budget is revealed after the agent selects an action, as depicted in 2.

Next, we study the performance of the CBM principle applied to MAB, linear bandits and RL problems. Importantly, we show that for all these settings, it matches the performance of the greedy reduction for stochastic environments, while being able to face adversarial contexts and budgets.

Remark 2 (Sufficient Initial Budget). For simplicity, we assume the initial budget \(B(1)\) is large enough such that Algorithm 2 queries at the first round, that is \(CI_1(u_1,\pi_1)\geq \alpha_1 \sqrt{1/B(1)}\). If this condition does not hold, an extra term of \(T_I\) should be added to the regret bounds where \(T_I\) is the first time in which \(CI_{T_I}(u_{T_I},\pi_{T_I})\geq \alpha_{T_I} \sqrt{1/B(T_I)}\).

5.1 Multi-Armed Bandits↩︎

We start by studying the performance of CBM for the MAB problem, where the base algorithm is UCB1 [5]. We call the resulting algorithm CBM-UCB, which follows 2 with \(\alpha_t=4\sqrt{6\sum_{a}c(a)\log(At)}\). Although this setting is extremely simple, it highlights the central analysis technique, which is extended in the rest of this section to more challenging decision-making problems.

theorem-rstCBMforBandits For any querying costs \(c(1),\dots,c(A)\ge0\), any adaptive non-decreasing adversarially chosen sequence \(\brc{B(t)}_{t\geq 1}\) and for any \(T\ge1\), the expected regret of CBM-UCB is upper bounded by \(\tilde{\mathcal{O}}\br*{\! \sqrt{AT} +\!\! \sqrt{\sum_{a}\!c(a)}\sum_{t=1}^T \mathbb{E}\brs*{\sqrt{\frac{1}{B(t)}}}}.\)

Full description of the algorithm, alongside the proof of [theorem:32CBM32Bandits], is supplied at 10. We now present a proof sketch that highlights how the CBM principle affects the regret bounds. We use UCB bonus of \(b_{t}^r(a)\!\triangleq\! \sqrt{\frac{3\log(At)}{2n^q_{t-1}(a)\vee 1}}\), where \(n^q_t(a)\) is the number of times arm \(a\) was queried up to round \(t\); namely, if \(\bar{r}_t(a)\) is the empirical mean of \(a\) then, \(UCB_t(a)= \bar{r}_{t-1}(a)+b_{t}^r(a),\;LCB_t(a) = \bar{r}_{t-1}(a)-b_{t}^r(a)\) and \(CI_t(a) = UCB_t(a)-LCB_t(a) = 2b_{t}^r(a)\).

Budget analysis. We start the proof by establishing that the budget constraint is never violated, \(B^q(T)\leq B(T)\) for all \(T\geq 1\). For simplicity, we do so for unit querying costs (where \(B^q(t)=n^q(t)\)). By the CBM condition, if \(q_t=1\), then \(CI_t(a_t)\ge \alpha_t/\sqrt{B(t)}\). Then, for any \(T\geq 1\) \[\begin{align} n^q(T) &=\sum_{t=1}^T 1{\brc*{q_t=1}} \le \sum_{t=1}^T \frac{CI_t(a_t)}{\alpha_t/\sqrt{B(t)}}1{\brc*{q_t=1}} \\ & \lesssim \sqrt{B(T)}\sum_{t=1}^T \frac{1}{\sqrt{n^q_{t-1}(a)\vee 1}}1{\brc*{q_t=1}}, \end{align}\] where in the last relation we substituted all parameters and used the fact that the budget is non-decreasing. Importantly, notice that when the reward of an arm is queried, its count increases, up to \(n^q_t(a)\). Therefore, for any \(T\geq 1\) \[\begin{align} n^q(T) \!\lesssim\! \sqrt{B(T)}\sum_{a=1}^A\sum_{i=0}^{n^q_T(a)}\!\frac{1}{\sqrt{i\vee1}} \! \lesssim \sqrt{B(T)}\sqrt{n^q(T)}. \end{align}\] Reorganizing and choosing the right constants leads to the relation \(n^q(T)\le B(T)\), which deterministically holds. Importantly, this implies that CBM-UCB never tries to query reward without sufficient budget, so \(q_t=1\) if and only if the CBM condition holds, or, equivalently, \(q_t=0\) if and only if the CBM condition does not hold.

Regret analysis. Using standard concentration arguments, the expected regret \(\mathbb{E}\brs*{\mathrm{Reg}(T)}\) is bounded by \[\begin{align} &\sum_{t=1}^T \mathbb{E}\brs*{(UCB_t(a_t)-LCB_t(a_t))1{\brc*{q_t=1}}} \tag{1} \\ & \quad+ \sum_{t=1}^T \mathbb{E}\brs*{(UCB_t(a_t)-LCB_t(a_t))1{\brc*{q_t=0}}}.\tag{2} \end{align}\] For term 1 , reward is always queried; therefore, the analysis closely follows standard analysis for UCB, which results with a bound of \(\mathcal{O}\br*{ \sqrt{AT\log(AT)}}\). For 2 , we know that reward was not queried, i.e, \(q_t=0\). Since \(q_t=0\) if and only if the CBM condition is not met, it implies that the CI is lower than the CBM-threshold, namely \[\begin{align} & \sum_{t=1}^T \mathbb{E}\brs*{(UCB_t(a_t)-LCB_t(a_t))1{\brc*{q_t=0}}} \\ &\lesssim \sum_{t=1}^T\mathbb{E}\brs*{\frac{\alpha_t}{\sqrt{B(t)}}} = \tilde{\mathcal{O}}\br*{\sum_{a}c(a)}\sum_{t=1}^T \mathbb{E}\brs*{\sqrt{\frac{1}{B(t)}}}. \end{align}\] Combining both bounds leads to the desired regret bound.

5.2 Linear Bandits↩︎

Next, we focus on applying the CBM principle, i.e., Algorithm 2, for linear bandits. The base algorithm that we rely on is OFUL [9], and we set \(\alpha_t=\tilde{\mathcal{O}}(d)\) (see Appendix 11 for the full description of the algorithm). We call the resulting algorithm CBM-OFUL. Importantly, and in contrast to the greedy reduction of 4, we allow both the contexts and the budget to be chosen by an adaptive adversary. Nonetheless, CBM-OFUL still achieve the same performance as the greedy reduction [theorem:32black32box32reduction32for32stochastic32context], while not suffering of performance degradation in the presence of adaptive adversary (for a complete proof see 11):

theorem-rstCBMforLinearBandits For any adaptive adversarially chosen sequence of non-decreasing budget and context sets \(\brc{B(t), u_t}_{t\geq 1}\) the regret of CBM-OFUL is upper bounded by \(\tilde{\mathcal{O}}\br*{d\br*{ \sqrt{T}+ \sum_{t=1}^T \frac{1}{\sqrt{B(t)}}}}\) for any \(T\geq 1\) with probability greater than \(1-\delta\).

Notice that this matches the lower bound of [proposition:32lower32bound32lb32unit32costs]. Notably, the examples of [proposition:32counterexample32black32box32reduction] can be represented as a linear bandit problem with \(d=4\). Thus, in contrast to the greedy reduction, which suffers linear regret, the regret of CBM-OFUL is \(\tilde{\mathcal{O}}\br*{\sqrt{T}}\).

5.3 Reinforcement Learning↩︎

In this section we apply the CBM principle to RL. For this setting, we relax the budget model presented in 2 and allow agents to query specific state action pairs along the trajectory observed at the \(t^{th}\) episode \(\brc*{(s_{t,h},a_{t,h})}_{h\in[H]}\). Namely, at the \(t^{th}\) episode, the agent acts with \(\pi_t\), observes a trajectory \(\brc*{(s_{t,h},a_{t,h})}_{h\in[H]}\) and is allowed to query for reward feedback from any state-action pair along the trajectory. If the agent queries reward feedback in the \(t^{th}\) episode at the \(h^{th}\) time step it receives \(R_{t,h}(s_{t,h},a_{t,h})\). We denote this event as choosing \(q_{t,h}=1\). For simplicity, we work with unit-budget costs, i.e., the total budget used by the agent is \(B^q(t)=\sum_{k=1}^t\sum_{h=1}^H 1{\brc*{q_{k,h}=1}}\) and must be smaller than \(B(t)\). Observe that in the standard RL setting, the reward budget is \(B(t)=Ht\) for all \(t\geq 1\).

Notably, querying reward feedback from specific time steps allows us to derive regret bounds that depend on the sparsity of the reward function. Formally, let \(\mathcal{L}_R\) be the set of tuples \((s,a,h)\) with \(r_h(s,a)\ne0\). Then, for any \((s,a,h)\notin\mathcal{L}_R\), \(r_h(s,a)=0\), and since \(R_t\in\brs*{0,1}\), it also implies that \(R_{t,h}\equiv0\). Assume that the algorithm knows the cardinality of this set \(\abs*{\mathcal{L}_R}\) (or an upper bound on \(\abs*{\mathcal{L}_R}\)). Leveraging this knowledge, we set the CBM feedback query rule in Algorithm 2, line 6, as follows,

Ask for reward feedback on \((s_{t,h},a_{t,h})\) if \(CI^R_{t,h}(s_{t,h},a_{t,h})\gtrsim\;\sqrt{\frac{|\mathcal{L}_R|}{B(t)}} + \frac{SAH}{B(t)}\) (\(q_{t,h}=1\)),

where \(CI^R_{t,h}(s_{t,h},a_{t,h})\) is the CI of the reward estimation of \(s_{t,h},a_{t,h}\) in the \(h^{th}\) time step at the \(t^{th}\) episode. Setting the reward bonus of the ‘optimistic’ model as in UCBVI-CH [4] leads to the following bound (see 12 for more details on the algorithm and proofs).

theorem-rstCBMforRL For any adaptive adversarially chosen sequence of non-decreasing budget and initial state, \(\brc*{B(t),s_{t,1}}_{t\geq 1}\), the regret of CBM-UCBVI is upper bounded by \[\tilde{\mathcal{O}}\br*{ \sqrt{SAH^4 T} + H^3S^2A + \sum_{t=1}^T\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + \frac{SAH^2}{B(t)} }\] for any \(T\geq 1\) with probability greater than \(1-\delta\).

Notice that the last term of the regret is dominated by its first term when \(B(t)=\Omega(\sqrt{T})\) and the remaining budget-dependent term only scales with the sparsity-level of the reward \(\abs*{\mathcal{L}_R}\). Notably, this implies that when \({B(t)\!\sim\! t\ceil{\abs*{\mathcal{L}_R}/SAH}}\), the third term is of the same order as the first term. Differently put, if the query budget \(B(t)\) increases by a single unit every \(SAH/\abs*{\mathcal{L}_R}\) episodes, the worst case performance of CBM-UCBVI remains the same, while reducing the amount of reward feedback.

While CBM-UCBVI clearly demonstrates the analysis techniques and insights from applying the CBM principle to RL, it is of interest to combine it with an algorithm with order-optimal regret bounds of \(\sqrt{SAH^3T}\) (e.g., [12]) when \(B(t)=Ht\), that is, in the standard RL setting (notice that \(T\) is the number of episodes and not the total number of time steps). We achieve this goal by performing a more refined analysis that uses tighter concentration results based on [4], [13], [14]. Indeed, doing so leads to tighter regret bounds by a \(\sqrt{H}\) factor in the leading term (Full details on the algorithm and proofs can be found at 13).

theorem-rstCBMforRLUL For any adaptive adversarially chosen sequence of non-decreasing budget and initial state, \(\brc*{B(t),s_{t,1}}_{t\geq 1}\), the regret of CBM-ULCBVI is upper bounded by \[\tilde{\mathcal{O}}\br*{ \sqrt{SAH^3T}+ H^3S^2A+\sum_{t=1}^T\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + \frac{SAH^2}{B(t)} }\] for any \(T\geq 1\) with probability greater than \(1-\delta\).

This bound results in an interesting conclusion for general RL problems, i.e., when \(|\mathcal{L}_R|=SAH\). Plugging this into Theorem [theorem:32CBM32RL32ULCVI], we observe that a budget of \(B(t)=t\) – instead a budget of \(B(t)=Ht\) as used in standard RL – results in order optimal regret bound. That is, it suffices for CBM-ULCVI to query reward feedback once per episode, without causing for performance degradation in a minimax sense.

5.4 General View on CBM for Optimistic Algorithms↩︎

The CBM principle queries for reward feedback (Algorithm 2, line 6) if the CI of the applied context-action is larger than a threshold, \(CI_t(u_t,\pi_t) \geq \alpha_t\sqrt{1/B(t)}\), or more generally, if \(CI_t(u_t,\pi_t) \geq \alpha_t f(B(t))\) for some \(f:\mathbb{R}\rightarrow\mathbb{R}\). A natural question arises: how to choose \(\alpha_t\) and \(f\)?

A useful rule of thumb to guide the choice of \(\alpha_t\) and \(f\) is the following: if the regret of the optimistic algorithm \(\mathbb{A}\) is bounded by \(\tilde{\mathcal{O}}(\alpha T^\beta)\) then set \(\alpha_t =\tilde{\mathcal{O}}(\alpha)\) and \({f(x)=\tilde{\mathcal{O}}(x^{\beta-1})}\). This matches the parameters chosen for both MAB and linear bandits. In RL, we relied on this rule but used a more complex function \(f\), due to the application of an empirical Bernstein concentration argument [22].

The logic behind this choice is simple; it guarantees that the budget constraint is never violated, \(B^q(T)\leq B(T)\) for all \(T\geq1\). Differently put, for any episode, reward feedback is not queried if and only if \(CI_t(u_t,\pi_t) \leq \alpha_t f(B(t))\). This property can be proved via similar technique as in the proof sketch of Theorem [theorem:32CBM32Bandits] for CBM-MAB. An informal proof for the correctness of this statement for the general case goes as follows (for unit feedback-costs), \[\begin{align} B^q(T)&\leq \sum_{t=1}^T 1{\brc*{q_t=1}}CI_t(u_t,x_t)/ (\alpha B(t)^{\beta-1})\\ &\overset{(a)}{\leq} \br*{B(T)^{1-\beta})/\alpha} \sum_{t=1}^T 1{\brc*{q_t=1}}CI_t(u_t,x_t)\\ &\overset{(b)}{\lesssim} \br*{B(T)^{1-\beta})/\alpha} \alpha B^q(T)^{\beta}, \end{align}\] where\((a)\) holds since the budget is non-decreasing, and \((b)\)  since \(\sum_{t=1}^T 1{\brc*{q_t=1}}CI_t(u_t,x_t)\sim \mathrm{Reg}(B^q(T))\) for optimistic algorithms. Rearranging yields that \(B^q(T)^{1-\beta}\lesssim B(T)^{1-\beta}\) which implies that \(B^q(T)\leq B(T)\) by the monotonicity of \(x^{1-\beta}\). Although the analysis for CBM in linear bandits and RL is more subtle, the intuition supplied by this informal reasoning is of importance; we believe it can serve as a starting point for future analysis of CBM-based algorithms in sequential budgeted learning.

6 Related Work↩︎

Multi-Armed Bandits with Paid Observations [23]. Closely related to our work is the framework of MAB with paid observations. There, an agent plays with an arm \(a_t\) and is allowed to query reward feedback on any subset of arms. Unlike in our case, there is no strict budget for observations, but, rather, each query comes at a cost that is subtracted from the reward. Notably, this requires translating the query costs to the same units as the reward, which is oftentimes infeasible. For example, in online recommendations, there is no clear way to quantify user dissatisfaction from feedback requests. In such cases, it is much more natural to enforce a (possibly time-varying) hard constraint on the number of feedback queries. Furthermore, the work of [23] focus on the MAB problem, whereas in this work, we focus on more involved contextual problems (i.e., linear bandits and RL). It is important to note that the analysis in [23] holds for the adversarial reward model, whereas in this work, we focused on the stochastic reward model (with adversarial contexts and budget). We believe it is an interesting question what type of guarantees can be derived for the fully adversarial setting, i.e., when the rewards, budget and contexts are adversarially chosen. Finally, when applied to the stochastic case, the algorithm of [23] requires \(B(T)=\Omega(T^{2/3})\). In contrast, our results hold for lower budgets, while achieving similar bounds when \(B(T)=\Omega(T^{2/3})\).

MABs with Additional Observations [24]. In this closely related MAB setting, observing the reward of arms that were not played is possible, at a certain cost, as long as a non-decreasing budget constraint is not violated. Nonetheless, a key difference from our work is that [24] assume that the reward of the played arm is always observed and does not consume any budget. Therefore, there is no clear way to apply their results to our setting.

Bandits with Knapsacks (BwK) [25]. In the BwK model, a sampling budget is given prior to the game. At each round, the agent selects an arm and observes noisy samples of both the reward and the cost of the selected arm. That is, the agent always receives feedback on its actions. This comes in stark contrast to our model, where the budget restricts the amount of feedback an agent can obtain. Furthermore, in the BwK model, the game stops as soon as the cumulative cost exceeds the initial budget. In our model, where the budget serves as a constraint on the reward feedback, interaction continues even without an observation budget. When the budget is exhausted, the agent can still utilize its past information on the system to perform reasonably good actions. Notably, this forces the agent to sufficiently explore actions, even if they are costly, to identify high-rewarding ones.

We remark that there are additional extensions of the MAB setting in which arms incur costs [26]. There, the objective of an agent is to minimize a relaxed notion of cumulative regret and the cumulative cost. Unlike this work, we do not attribute cost to applying an action, but attribute a cost to receiving feedback on the reward.

RL with trajectory feedback [27]. Under this model, instead of observing a reward for each played state-action, the agent only observes the cumulative rewards of each episode. This serves two reasons: first, and similarly to our work, it aims to reduce the feedback that the algorithm requires (by a factor of \(H\)), and when rewards are manually labeled, reduce the labeling load. Second, for many applications, it is much more natural to label the reward for a full trajectory than to each state-action. However, this approach comes at a noticeable cost, both in performance and computational complexity. In contrast, by sampling specific state-action pairs, our approach allows reducing the amount of feedback while maintaining similar performance and computational complexity. Nonetheless, we believe that when trajectory feedback is more natural, our approach can also be applied to further reduce the feedback for this setting. We leave such an extension for future work.

7 Summary and Discussion↩︎

In this work, we presented a novel framework for sequential decision-making under time-varying budget constraints. We analyzed what can and cannot be achieved by greedily using querying whenever possible. Then, we presented the CBM principle, which only queries rewards for actions with high uncertainty, compared to the current budget. We demonstrated how to apply the principle to MAB, linear bandits and RL problems and proved that it performs well also in the presence of adversities. We believe that this model can be adapted to many real-world problems and leaves room for interesting extensions, which we leave for future work.

Is there a value in knowing the future budget? Throughout this work, we assume the agent only observes the current budget \(B(t)\) at the beginning of each round and does not have knowledge on future values of the budget \(B(t')\) for \(t'>t\). Intuitively, one expects that knowing the future budget would result in an improved and less conservative behavior in terms of budget allocation. Surprisingly, our matching lower and upper bounds for MAB (Corollary [corollary:32lower32bound32mab32varying32budget] and Theorem [theorem:32CBM32Bandits]) and linear bandits (Proposition [proposition:32lower32bound32lb32unit32costs] and Theorem [theorem:32CBM32Linear32Bandits]) show that this intuition does not always hold. Nonetheless, understanding if or when information on future budget is of value remains an interesting open question.

Monotonicity of the budget. Throughout this work, we assume that the budget never decreases. Intuitively, it implies that once a budget is allocated, it does not matter when the algorithm decides to use it. Nonetheless, for some problems, different assumptions are sometimes more relevant. A budget might be given alongside an ‘expiration date’ or might expire probabilistically. Another possible assumption is that the spare (unused) budget is bounded. Finally, in some instances, the total budget might be characterized by a specific random process, e.g., a biased random walk.

Problem-dependent bounds. Throughout this work, we focused on problem-independent regret bounds, that is, bounds that do not depend on the specific problem instance. Bounds that depend on specific instances usually focus on sufficiently sampling suboptimal arms, while implicitly assuming that optimal arms are sufficiently sampled [5]. In contrast, when rewards are not always observed, algorithms must also control the number of queries from optimal arms. This becomes much harder in the presence of multiple optimal arms; in this case, an algorithm can never know if an arm is optimal or has a small suboptimal gap and might ‘waste’ budget while trying to discern which is true. In some sense, we believe that the CBM principle is well-suited for this setting, as it prevents the agent from exhausting all budget on specific arms.

Adaptivity to structure. In 5.3, we proved that when rewards are sparse, our algorithm can query rewards according to the sparsity level, while maintaining the same regret bounds as the unbudgeted case. However, to do so, we required an upper bound on the sparsity of the problem. Therefore, a natural extension is to devise an algorithm that can adapt to an unknown sparsity level. Moreover, it is well known that structural assumptions can lead to improved regret bounds, and previous works proposed algorithms whose regret depends on nontrivial structural properties of the problem [14], [28][32]. Thus, it is interesting to understand what structural properties (beyond sparsity) affect the budgeted performance and how to design algorithms that adapt to such properties.

Acknowledgments↩︎

This work was partially funded by the Israel Science Foundation under ISF grant number 2199/20. YE is partially supported by the Viterbi scholarship, Technion. NM is partially supported by the Gutwirth Scholarship.

8 Lower bounds for Budgeted Problems↩︎

8.1 Detailed Decision-Making MAB Model and Relevant Notations↩︎

At each round \(t\), the agent choose an arm \(a_t\), which generates a reward \(R_t\) from a distribution \(\nu_{a_t}\), independently at random from other rounds. Throughout this section, we assume that all distributions \(\nu_a\) are on \([0,1]\). A bandit problem is characterized by its arm distributions, which we denote by \({\underline{\nu}}=\brc*{\nu_a}_{a=1}^A\). When we want to emphasize the arm distribution when taking an expectation, we denote it \(\mathbb{E}_{\underline{\nu}}\). If the agent chooses to query this reward, we say that \(q_t=1\) and, otherwise, \(q_t=0\). Then, for ease of notations, we say that the agent observes \(Y_t=R_t\cdot q_t\). A bandit strategy \(\pi\) maps all previous information information and, possibly, internal randomization, into actions. Formally, let \(U_0,U_1,\dots\) be independent and identically distributed random variables with uniform distribution over \([0,1]\). We denote the information known at time \(t\) by \(I_t=\br*{U_0,Y_1,U_1,\dots,Y_t,U_t}\), where \(I_0=U_0\). Then, a strategy maps the current information to actions, i.e., \(\pi_t^a(I_t)=a_{t+1}\) and \(\pi_t^q(I_t)=q_{t+1}\).

Next, we denote \(n_t(a)=\sum_{k=1}^t 1{\brc*{a_k=a}}\), the number of times that an arm \(a\) was sampled up to time \(t\) when playing according to strategy \(\pi\), and similarly let \(n^q_t(a)=\sum_{k=1}^t 1{\brc*{a_k=a,q_k=1}}\) be the total number of queries from arm \(a\). Finally, let \(\mathrm{KL}(\cdot,\cdot)\) be the Kullback-Leibler between two probability measure, and for any \(x,y\in[0,1]\), we denote the KL divergence between Bernoulli random variables with expectations \(x,y\) by \[\begin{align} \mathrm{kl}(x,y) = x\log\frac{x}{y}+(1-x)\log\frac{1-x}{1-y}\enspace. \end{align}\]

8.2 Basic Inequalities↩︎

Lemma 1. For any \(T\ge1\), any \(\sigma(I_T)\) measurable random variable \(Z\) with values in \([0,1]\) and any two bandit problems \({\underline{\nu}}\) and \({\underline{\nu}}'\), it holds that \[\begin{align} \label{eq:32kl32counts32inequality} \sum_{a=1}^{A}\mathbb{E}_{\underline{\nu}}\brs*{n^q_T(a)}\mathrm{KL}(\nu_a,\nu_a') \ge \mathrm{kl}\br*{\mathbb{E}_{\underline{\nu}}\brs*{Z},\mathbb{E}_{{\underline{\nu}}'}\brs*{Z}} \end{align}\qquad{(1)}\]

Proof. The proof closely follows the one of Inequality (6) in [20] and only differs by ignoring rounds where \(q_t=0\). Formally, let \(\nu_{a_t,q_t}\) be the distribution of \(Y_t\) when playing \(a_t\) and querying the reward according to \(q_t\). Specifically, if \(q_t=1\), then \(\nu_{a_t,q_t}=\nu_{a_t}\), and if \(q_t=0\), it deterministically outputs \(Y_t=0\). Following the notations of [20], for any two bandit instances \({\underline{\nu}}\) and \({\underline{\nu}}'\), we let \(\mathbb{P}_{{\underline{\nu}}}\) and \(\mathbb{P}_{{\underline{\nu}}'}\) be their associated probability measures, defined in some common measurable space \((\Omega,\mathcal{F})\) (which exists by Kolmogorov’s extension theorem). Then, for any \(t\ge0\) and any Borel sets \(G\subset\mathbb{R}\) and \(G'\subset[0,1]\), our model implies that \[\begin{align} \mathbb{P}_{{\underline{\nu}}}\br*{Y_{t+1}\in G, U_{t+1}\in G' \vert I_t} = \nu_{\pi_t^a(I_t),\pi_t^q(I_t)}(B)\lambda(B') \end{align}\] where \(\lambda\) is the Lasbesgue measure on \([0,1]\). Next, for any \(t\ge0\), let \(\mathbb{P}_{{\underline{\nu}}}^{I_t}\) and \(\mathbb{P}_{{\underline{\nu}}'}^{I_t}\) be the respective distributions of \(I_t\) w.r.t. \({\underline{\nu}}\) and \({\underline{\nu}}'\), and similarly use this notation for \(Y_t\) and \(U_t\). Then, the previous relation can be written as \[\begin{align} \mathbb{P}_{{\underline{\nu}}}^{(Y_{t+1}, U_{t+1})\vert I_t} = \nu_{\pi_t^a(I_t),\pi_t^q(I_t)} \otimes\lambda\enspace, \end{align}\] where \(\otimes\) denotes the product of measures. Moreover, by the chain-rule for KL divergences, for any \(t\ge0\), we can write \[\begin{align} \mathrm{KL}\br*{{\mathbb{P}_{{\underline{\nu}}}^{I_{t+1}},\mathbb{P}_{{\underline{\nu}}'}^{I_{t+1}}}} &= \mathrm{KL}\br*{{\mathbb{P}_{{\underline{\nu}}}^{(I_t,Y_{t+1},U_{t+1})},\mathbb{P}_{{\underline{\nu}}'}^{(I_t,Y_{t+1},U_{t+1})}}}\nonumber\\ &= \mathrm{KL}\br*{{\mathbb{P}_{{\underline{\nu}}}^{I_t},\mathbb{P}_{{\underline{\nu}}'}^{I_t}}} + \mathrm{KL}\br*{{\mathbb{P}_{{\underline{\nu}}}^{(Y_{t+1},U_{t+1})\vert I_t},\mathbb{P}_{{\underline{\nu}}'}^{(Y_{t+1},U_{t+1})\vert I_t}}} \label{eq:kl32chain32rule}\enspace. \end{align}\tag{3}\] Notably, the second term can be simplified to \[\begin{align} \mathrm{KL}\br*{{\mathbb{P}_{{\underline{\nu}}}^{(Y_{t+1},U_{t+1})\vert I_t},\mathbb{P}_{{\underline{\nu}}'}^{(Y_{t+1},U_{t+1})\vert I_t}}} &= \mathbb{E}_{{\underline{\nu}}}\brs*{\mathbb{E}_{\underline{\nu}}\brs*{\mathrm{KL}\br*{\nu_{\pi_t^a(I_t),\pi_t^q(I_t)} \otimes\lambda, \nu'_{\pi_t^a(I_t),\pi_t^q(I_t)} \otimes\lambda}\big\vert I_t}} \\ &=\mathbb{E}_{{\underline{\nu}}}\brs*{\mathbb{E}_{\underline{\nu}}\brs*{\mathrm{KL}\br*{\nu_{\pi_t^a(I_t),\pi_t^q(I_t)}, \nu'_{\pi_t^a(I_t),\pi_t^q(I_t)}}\big\vert I_t}} \\ & \overset{(*)}{=} \mathbb{E}_{{\underline{\nu}}}\brs*{\mathbb{E}_{\underline{\nu}}\brs*{1{\brc*{\pi_{t+1}^q(I_t)=1}}\mathrm{KL}\br*{\nu_{\pi_t^a(I_t)}, \nu'_{\pi_t^a(I_t)}}\big\vert I_t}} \\ & = \mathbb{E}_{{\underline{\nu}}}\brs*{1{\brc*{\pi_{t+1}^q(I_t)=1}}\sum_{a=1}^A\mathrm{KL}\br*{\nu_a, \nu'_a} 1{\brc*{\pi^a_{t+1}(I_t)=a}}} \\ & = \mathbb{E}_{{\underline{\nu}}}\brs*{\sum_{a=1}^A\mathrm{KL}\br*{\nu_a, \nu'_a} 1{\brc*{a_{t+1}=a,q_{t+1}=1}}} \end{align}\] where in \((*)\) we used the fact that if \(q_{t+1}=\pi_{t+1}^q(I_t)=0\), then both distributions deterministically output \(0\), so the KL divergence is also \(0\). For the last relation, also recall that \(\pi_t^a(I_t)=a_{t+1}\) and \(\pi_{t+1}^q(I_t)=q_{t+1}\). Substituting back into 3 and applying the same argument recursively, we get \[\begin{align} \mathrm{KL}\br*{{\mathbb{P}_{{\underline{\nu}}}^{I_{T}},\mathbb{P}_{{\underline{\nu}}'}^{I_{T}}}} &= \sum_{t=1}^T\mathbb{E}_{{\underline{\nu}}}\brs*{\sum_{a=1}^A\mathrm{KL}\br*{\nu_a, \nu'_a} 1{\brc*{a_t=a,q_t=1}}} \\ & = \sum_{a=1}^A\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(a)}\mathrm{KL}\br*{\nu_a,\nu'_a}\enspace. \end{align}\] Notice that the recursion stops at \(\mathrm{KL}\br*{{\mathbb{P}_{{\underline{\nu}}}^{I_{0}},\mathbb{P}_{{\underline{\nu}}'}^{I_{0}}}}=\mathrm{KL}\br*{{\mathbb{P}_{{\underline{\nu}}}^{U_0},\mathbb{P}_{{\underline{\nu}}'}^{U_0}}} = \mathrm{KL}\br*{\lambda,\lambda}=0\). To conclude the proof, we apply Lemma 1 of [20], which implies that for any \(\sigma(I_T)\) measurable random variable \(Z\) over \([0,1]\), it holds that \[\begin{align} \mathrm{KL}\br*{\mathbb{P}_{{\underline{\nu}}}^{I_T},\mathbb{P}_{{\underline{\nu}}'}^{I_T}} \ge \mathrm{kl}\br*{\mathbb{E}_{\underline{\nu}}\brs*{Z},\mathbb{E}_{{\underline{\nu}}'}\brs*{Z}}\enspace. \end{align}\] ◻

In the following, we present a simplified version for the bound of 1, that will be of use in our proofs:

Lemma 2. Let \({\underline{\nu}}\) be a bandit instance and let \(k\in\brs*{A}\) be some arm. Furthermore, let \({\underline{\nu}}'\) be a bandit instance that differs from \({\underline{\nu}}\) only at arm \(k\), i.e., \(\nu'_a=\nu_a\) for all \(a\ne k\). Then, \[\begin{align} \mathbb{E}_{\underline{\nu}}\brs*{n_T(k)} - T\sqrt{\frac{1}{2}\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(k)}\mathrm{KL}\br*{\nu_k,\nu_k'}} \le \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \mathbb{E}_{\underline{\nu}}\brs*{n_T(k)} + T\sqrt{\frac{1}{2}\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(k)}\mathrm{KL}\br*{\nu_k,\nu_k'}}\enspace. \end{align}\] Moreover, if \(\nu_k\) and \(\nu'_k\) are Bernoulli distributions with parameters \(\frac{1}{2}\) and \(\frac{1}{2}+\epsilon\), respectively, for \(\epsilon\in\br*{0,\frac{1}{4}}\), then \[\begin{align} \mathbb{E}_{\underline{\nu}}\brs*{n_T(k)} - 2\epsilon T\sqrt{\log\frac{4}{3}}\sqrt{\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(k)}} \le \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \mathbb{E}_{\underline{\nu}}\brs*{n_T(k)} + 2\epsilon T\sqrt{\log\frac{4}{3}}\sqrt{\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(k)}}\enspace. \end{align}\]

Proof. Our proof closely follows the proof of Theorem 6 in [20], with small modifications due to the budget. We start by applying apply 1 on \({\underline{\nu}}\) and \({\underline{\nu}}'\) with \(Z=\frac{n_T(k)}{T}\), while noticing that \(\mathrm{KL}(\nu_a,\nu_a')=0\) for all \(a\ne k\): \[\begin{align} \mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(k)}\mathrm{KL}\br*{\nu_k,\nu_k'} \ge \mathrm{kl}\br*{\frac{\mathbb{E}_{\underline{\nu}}\brs*{n_T(k)}}{T},\frac{\mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)}}{T}} \ge 2\br*{\frac{\mathbb{E}_{\underline{\nu}}\brs*{n_T(k)}}{T}-\frac{\mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)}}{T}}^2\enspace, \end{align}\] where the last inequality is by Pinsker’s inequality. Alternatively, we can write \[\begin{align} \abs*{\mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} - \mathbb{E}_{{\underline{\nu}}}\brs*{n_T(k)}} \le T\sqrt{\frac{1}{2}\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(k)}\mathrm{KL}\br*{\nu_k,\nu_k'}}\enspace, \end{align}\] which leads to the first result of the lemma. For the second result, we directly upper bound \(\mathrm{KL}\br*{\nu_k,\nu_k'}\) for any \(\epsilon\in\br*{0,\frac{1}{4}}\) by: \[\begin{align} \mathrm{KL}\br*{\nu_k,\nu_k'} = \mathrm{kl}\br*{\frac{1}{2},\frac{1}{2}+\epsilon} = \frac{1}{2}\log\frac{1}{1-4\epsilon^2} \le 8\epsilon^2\log\frac{4}{3}\enspace, \end{align}\] where the last inequality holds since \(\log\frac{1}{1-u}\le 4u\log\frac{4}{3}\) for any \(u\in\br*{0,\frac{1}{4}}\). Substituting back to the first result of the lemma concludes the proof. ◻

8.3 Proofs for lower bounds↩︎

Proof. Let \({\underline{\nu}}\) be an arm distribution such that all arms are Bernoulli-distributed with parameter \(\frac{1}{2}\). By the pigeonhole principle, one can prove that for any \(A\ge2\), there must exist some arm \(t\) such that both \(\mathbb{E}_{\underline{\nu}}\brs{n_T(k)}\le \frac{5T}{4A}\) and \(\mathbb{E}_{\underline{\nu}}\brs{n^q_T(k)}\le \frac{15B}{A}\) (see prove in 3 for \(\alpha = \frac{5}{4}\) and \(\beta = 15\)).

Then, we define a new bandit instance \({\underline{\nu}}'\) such that \(\nu'_a=\nu_a\) for all \(a\ne k\) and \(\nu'_k\) is Bernoulli-distributed with parameter \(\frac{1}{2}+\epsilon\), for some \(\epsilon\in\br*{0,\frac{1}{4}}\) that will be determined later. Specifically, it implies that the regret of \(\pi\) on \({\underline{\nu}}'\) is \[\begin{align} \label{eq:32lower32bound32mab32unit32costs32base} \mathbb{E}_{{\underline{\nu}}'}\brs*{\mathrm{Reg}(T)} = \sum_{a\ne k} \epsilon \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(a)} = \epsilon T\br*{1-\frac{\mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)}}{T}}\enspace. \end{align}\tag{4}\] Thus, to lower bound the regret, we need to upper bound \(\mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)}\). By 2, we have \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \mathbb{E}_{\underline{\nu}}\brs*{n_T(k)} + 2\epsilon T\sqrt{\log\frac{4}{3}}\sqrt{\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(k)}}\enspace, \end{align}\] and recalling that \(\mathbb{E}_{\underline{\nu}}\brs*{n_T(k)}\le \frac{5T}{4A}\) and \(\mathbb{E}_{\underline{\nu}}\brs*{n^q_T(k)}\le \frac{15B}{A}\), we get \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \frac{5T}{4A} + 2\epsilon T\sqrt{15\br*{\log\frac{4}{3}}\frac{B}{A}}\enspace. \end{align}\] Finally, fix \(\epsilon=\frac{1}{35}\min\brc*{\sqrt{\frac{A}{B}},1}\) (and, specifically, if \(B=0\), then \(\epsilon=\frac{1}{35}\)). Since \(A\ge2\), this value of \(\epsilon\) yields \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \frac{5T}{4A} + \frac{1}{8}T \le \frac{3}{4}T\enspace. \end{align}\] Substituting this bound and \(\epsilon\) back to 4 leads to the desired result and concludes the proof. ◻

Proof. Without loss of generality, assume that \(c(1)\ge c(2)\ge\dots\ge c(A)\). To prove the lemma, we will show that for any \(i\in\brs*{A}\), there exists a bandit instance \({\underline{\nu}}'\) such that \[\begin{align} \label{eq:32lower32bound32different32arm32costs32one32arm} \mathbb{E}_{{\underline{\nu}}'}\brs*{\mathrm{Reg}(T)} \ge \frac{1}{140}\min\brc*{T\sqrt\frac{i c(i)}{B(1+\log A)},T}\enspace. \end{align}\tag{5}\] In turn, this will imply that there exists an instance such that \[\begin{align} \label{eq:32lower32bound32different32arm32costs32all32arms} \mathbb{E}_{{\underline{\nu}}'}\brs*{\mathrm{Reg}(T)} \ge \frac{1}{140}\min\brc*{T\sqrt\frac{\max_{i\in\brs*{A}}\brc*{i c(i)}}{B(1+\log A)},T}\enspace. \end{align}\tag{6}\] Finally, we apply Hölder’s inequality to lower bound the maximum; for vectors \(x,y\) such that \(x_i=ic(i)\) and \(y_i =\frac{1}{i}\), it holds that \[\begin{align} \max_{i\in\brs*{A}}\brc*{i c(i)} = \norm*{x}_\infty \ge \frac{\sum_{i=1}^Ax_iy_i}{\norm*{y}_1} = \frac{\sum_{i=1}^Ax_iy_i}{\norm*{y}_1} = \frac{\sum_{i=1}^Ac(i)}{\sum_{i=1}^A\frac{1}{i}} \ge \frac{\sum_{i=1}^Ac(i)}{1+\log A}\enspace. \end{align}\] Substituting this bound to 6 will then conclude the proof.

We start by proving 5 when \(i\ge2\), a proof that greatly resembles the one of [proposition:32lower32bound32mab32unit32costs]. Fix some \(2\le i \le A\) and assume that \(c(i)>0\), as otherwise, the bound trivially holds. Also, let \({\underline{\nu}}\) be an arm distribution such that all arms are Bernoulli-distributed with parameter \(\frac{1}{2}\). Notice that it holds that \(\sum_{a=1}^i \mathbb{E}_{\underline{\nu}}\brs{n_T(a)} \le T\), and since \(c(j)\ge c(i)\) for all \(j\le i\), it also holds that \(\sum_{a=1}^i \mathbb{E}_{\underline{\nu}}\brs{n^q_T(a)} \le \frac{B}{c(i)}\), or otherwise, the budget constraint is violated. Then, by 3, there must exist some arm \(k\in\brs*{i}\) such that both \(\mathbb{E}_{\underline{\nu}}\brs{n_T(k)}\le \frac{5T}{4i}\) and \(\mathbb{E}_{\underline{\nu}}\brs{n^q_T(k)}\le \frac{15B}{ic(i)}\).

Next, we define a new bandit instance \({\underline{\nu}}'\) such that \(\nu'_a=\nu_a\) for all \(a\ne k\) and \(\nu'_k\) is Bernoulli-distributed with parameter \(\frac{1}{2}+\epsilon\), for some \(\epsilon\in\br*{0,\frac{1}{4}}\). Then, by 2, we have \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \mathbb{E}_{\underline{\nu}}\brs*{n_T(k)} + 2\epsilon T\sqrt{\log\frac{4}{3}}\sqrt{\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(k)}}\enspace, \end{align}\] and recalling that \(\mathbb{E}_{\underline{\nu}}\brs*{n_T(k)}\le \frac{5T}{4i}\) and \(\mathbb{E}_{\underline{\nu}}\brs*{n^q_T(k)}\le \frac{15B}{i c(i)}\), we get \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \frac{5T}{4i} + 2\epsilon T\sqrt{15\br*{\log\frac{4}{3}}\frac{B}{i c(i)}}\enspace. \end{align}\] Finally, fix \(\epsilon=\frac{1}{35}\min\brc*{\sqrt{\frac{i c(i)}{B}},1}\) (and, specifically, if \(B=0\), then \(\epsilon=\frac{1}{35}\)). Since \(i\ge2\), this value of \(\epsilon\) yields \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \frac{5T}{4A} + \frac{1}{8}T \le \frac{3}{4}T\enspace. \end{align}\] Finally, as in the proof of [proposition:32lower32bound32mab32unit32costs], we lower bound the regret by \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{\mathrm{Reg}(T)} = \sum_{a\ne k} \epsilon \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(a)} = \epsilon T\br*{1-\frac{\mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)}}{T}} \ge \frac{1}{140}\min\brc*{T\sqrt\frac{i c(i)}{B},T}\enspace, \end{align}\] which leads to 5 for any \(2\le i\le A\).

Finally, we prove that 5 holds when \(i=1\). If \(c(1)=0\), the result trivially holds. Otherwise, by our assumptions, we have that \(\mathbb{E}_{\underline{\nu}}\brs*{n^q_T(k)}\le \frac{B}{c(i)}\). For \(\mathbb{E}_{\underline{\nu}}\brs*{n^q_T(1)}\), we divide the proof into to cases:

  • If \(\mathbb{E}_{\underline{\nu}}\brs*{n_T(1)}\le \frac{T}{2}\), we set \({\underline{\nu}}'\) such that \(\nu'_a=\nu_a\) for all \(a>1\) and \(\nu'_1\) is Bernoulli-distributed with parameter \(\frac{1}{2}+\epsilon\). Then, by 2, we have \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \mathbb{E}_{\underline{\nu}}\brs*{n_T(1)} + 2\epsilon T\sqrt{\log\frac{4}{3}}\sqrt{\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(1)}} \le \frac{T}{2} + 2\epsilon T\sqrt{\log\frac{4}{3}}\sqrt{\frac{B}{c(1)}}\enspace, \end{align}\] and fixing \(\epsilon=\frac{1}{5}\min\brc*{\sqrt{\frac{c(1)}{B}},1}\) (or \(\epsilon=\frac{1}{5}\) when \(B=0\)) leads to \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \le \frac{3T}{4}\enspace. \end{align}\] Then, the regret for this instance is lower bounded by \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{\mathrm{Reg}(T)} = \sum_{a\ne 1} \epsilon \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(a)} = \epsilon T\br*{1-\frac{\mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(1)}}{T}} \ge \frac{1}{20}\min\brc*{T\sqrt\frac{c(1)}{B},T}\enspace, \end{align}\]

  • If \(\mathbb{E}_{\underline{\nu}}\brs*{n_T(1)}\ge \frac{T}{2}\), we set \({\underline{\nu}}'\) such that \(\nu'_a=\nu_a\) for all \(a>1\) and \(\nu'_1\) is Bernoulli-distributed with parameter \(\frac{1}{2}-\epsilon\). Then, by 2, we have \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \ge \mathbb{E}_{\underline{\nu}}\brs*{n_T(1)} - 2\epsilon T\sqrt{\log\frac{4}{3}}\sqrt{\mathbb{E}_{{\underline{\nu}}}\brs*{n^q_T(1)}} \ge \frac{T}{2} - 2\epsilon T\sqrt{\log\frac{4}{3}}\sqrt{\frac{B}{c(1)}}\enspace, \end{align}\] and fixing \(\epsilon=\frac{1}{5}\min\brc*{\sqrt{\frac{c(1)}{B}},1}\) (or \(\epsilon=\frac{1}{5}\) when \(B=0\)) leads to \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(k)} \ge \frac{T}{4}\enspace. \end{align}\] Then, the regret for this instance is lower bounded by \[\begin{align} \mathbb{E}_{{\underline{\nu}}'}\brs*{\mathrm{Reg}(T)} = \epsilon \mathbb{E}_{{\underline{\nu}}'}\brs*{n_T(1)} \ge \frac{1}{20}\min\brc*{T\sqrt\frac{c(1)}{B},T}\enspace, \end{align}\]

Combining both cases leads to 5 (with a better constant) and concludes the proof. ◻

Lemma 3. Let \(x,y\in \mathbb{R}^n_+\) for some \(n\ge2\), and assume that \(\sum_{i=1}^n x_i \le X\) and \(\sum_{i=1}^n y_i \le Y\). Then, for any \(\alpha\in\br*{1,2}\) and \(\beta\ge \frac{3\alpha}{\alpha-1}\), there exists an index \(t\) such that \(x_t\le \frac{\alpha X}{n}\) and \(y_t\le \frac{\beta Y}{n}\) simultaneously.

Proof. We divide the proof into the case where \(n\le \beta\) and \(n\ge \beta\).

If \(n\le \beta\), recall that \(y_i\ge0\) and \(\sum_{i=1}^n y_i\le Y\). Therefore, for any \(i\in\brs*{n}\), \(y_i\le Y \le \frac{\beta}{n} Y\), and the required condition holds for all coordinates. Moreover, as \(\alpha>1\), by the pigeonhole principle, there exists at least one coordinate \(t\) such that \(x_t\le \frac{X}{n}\le \frac{\alpha X}{n}\). Then, for this coordinate, both required conditions hold.

Next, we analyze the case where \(n>\beta\). First notice that by the pigeonhole principle, there are at least \(\floor*{\br*{1-\frac{1}{\alpha}}n}\) coordinates such that \(x_i\le \frac{\alpha X}{n}\). To see this, assume in contradiction that this does not hold. Then, there are at least \(n-\floor*{\br*{1-\frac{1}{\alpha}}n}\ge \frac{n}{\alpha}\) coordinates such that \(x_i> \frac{\alpha X}{n}\), and \[\begin{align} \sum_{i=1}^n x_i \ge \sum_{i=1}^n x_i \cdot 1{\brc*{x_i> \frac{\alpha X}{n}}} > \frac{\alpha X}{n} \cdot \abs*{\brc*{i:x_i> \frac{\alpha X}{n} }} \ge \frac{\alpha X}{n} \cdot \frac{n}{\alpha} =X\enspace \end{align}\] which violates the assumption that \(\sum_{i=1}^d x_i \le X\). Similarly, there are at least \(\floor*{\br*{1-\frac{1}{\beta}}n}\) coordinates such that \(y_i\le \frac{\beta Y}{n}\). The number of coordinates for which at least one of the condition holds is then \[\begin{align} \sum_{i=1}^n 1{\brc*{x_i \le \frac{\alpha X}{n}}} + 1{\brc*{y_i \le \frac{\beta Y}{n}}} &\ge \floor*{\br*{1-\frac{1}{\alpha}}n} + \floor*{\br*{1-\frac{1}{\beta}}n} \\ & \ge \br*{1-\frac{1}{\alpha}}n -1 + \br*{1-\frac{1}{\beta}}n - 1 \\ & = \br*{1 - \frac{1}{\alpha} - \frac{1}{\beta}}n + n - 2 \end{align}\] We then use the fact that \(n>\beta\) to bound the first term as \[\begin{align} \br*{1 - \frac{1}{\alpha} - \frac{1}{\beta}}n > \br*{1 - \frac{1}{\alpha} - \frac{1}{\beta}}\beta = \beta\br*{1-\frac{1}{\alpha}} - 1 \ge 2\enspace, \end{align}\] where the last inequality is since \(\alpha>1\) and \(\beta\ge \frac{3\alpha}{\alpha-1} = 3 \frac{1}{1-1/\alpha}\). Substituting back leads to \[\begin{align} \sum_{i=1}^n 1{\brc*{x_i \le \frac{\alpha X}{n}}} + 1{\brc*{y_i \le \frac{\beta Y}{n}}} > 2 + n -2 = n\enspace. \end{align}\] Thus, there are strictly more than \(n\) coordinates where at least one condition holds, which implies that there is at least one coordinate \(t\) for which both conditions holds, i.e., \(x_t\le \frac{\alpha X}{n}\) and \(y_t\le \frac{\alpha Y}{n}\) ◻

8.4 Lower Bounds for Linear Bandits↩︎

Proof. Our proof closely follows the standard lower bound techniques used for proving the fundamental performance limit for linear bandits [33]. Notably, we prove the lower bound for a problem with a fixed context space \(\mathcal{X}=\brs*{-1,1}^d\). Therefore, the conditions of [proposition:32greedy32algorithm32equivalent] hold; namely, for any fixed problem, there exists a modified policy \(\pi'\) with the same expected regret as \(\pi\) that queries all rewards at the first \(B\) rounds. Thus, and without loss of generality, we assume that all rewards are queried at the \(B\) initial rounds.

As described in 2, we assume that the reward when choosing a context \(x_t\) is \(R_t=\inner{x_t,\theta}+\eta_t\) for some unknown \(\theta\).In this section, we limit \(\theta\in \Theta \triangleq \brc*{-\frac{1}{\sqrt B},\frac{1}{\sqrt B}}^d\). Moreover, we assume that the noises \(\eta_t \sim \mathcal{N}(0,1)\) are i.i.d. standard Gaussian variables. Notably, for a given \(\theta\), one can easily observe that the optimal context \(x^*=\arg\max_{x\in\mathcal{X}}\inner{x,\theta}\) is such that \(x^*(i)=\text{sign}(\theta(i)),\forall i\in\brs*{d}\). We also use the notation \(Y_t = R_t\cdot q_t\) to denote the reward observed by the agent and write \(R_t(\theta)\) when we want to emphasize the parameter that governed the reward generation.

Suppose that \(x_1,\dots,x_T\) are the contexts played by \(\pi\) at rounds \(1,\dots,T\) and for any fixed problem with parameter \(\theta\), denote the measure of contexts and queried rewards induced by the interaction of \(\pi\) with the problem by \(\mathbb{P}_\theta\). Then, we lower bound the regret by \[\begin{align} \mathbb{E}\brs*{\mathrm{Reg}(T)} &= \mathbb{E}\brs*{\sum_{t=1}^T \inner{x^*,\theta}-\inner{x_t,\theta}} \nonumber\\ &= \mathbb{E}\brs*{\sum_{t=1}^T \sum_{i=1}^d \abs*{\theta(i)}-x_t(i)\theta(i)}\nonumber\\ & \ge \sum_{i=1}^d \abs*{\theta(i)}\mathbb{E}\brs*{\sum_{t=1}^T 1{\brc*{\text{sign}(\theta(i)) \neq \text{sign}(x_t(i))}} }} \nonumber \\ &\ge \sum_{i=1}^d\abs*{\theta(i)}\frac{T}{2}\mathbb{E}\brs*{1{\brc*{\sum_{t=1}^T 1{\brc*{\text{sign}(\theta(i)) \neq \text{sign}(x_t(i))}}}}\ge \frac{T}{2}} \nonumber\\ &= \frac{T}{2\sqrt B} \sum_{i = 1}^{d}\mathbb{P}_{\theta}(i)~, \label{eq:lb195m} \end{align}\tag{7}\] where we denoted \(\mathbb{P}_{\theta}(i) := \mathbb{P}_{\theta}\br*{ \sum_{t = 1}^{T}1{\brc*{\text{sign}(\theta(i)) \neq \text{sign}(x_{t}(i)}} ) \ge \frac{T}{2} }\). Next, we lower bound \(\sum_{i = 1}^{d}\mathbb{P}_{\theta}(i)\).

For any choice of \(\theta \in \Theta\) and \(i \in [d]\), let \(\theta^i\) be a vector such that \(\theta^i(j) = \theta(j), \, \forall j \in [d]\setminus\{i\}\) and \(\theta^i(i) = -\theta(i)\). Now let us define \(\mathbb{P}^c_{\theta^{i}}(i) := \mathbb{P}_{\theta^{i}}\bigg( \sum_{t = 1}^{T}(\text{sign}(\theta^{i}_i) \neq \text{sign}(x_{ti}) ) \le \frac{T}{2} \bigg)\). By applying Bretagnolle-Huber inequality [33], [34] we further get that for any \(\theta \in \mathbb{R}^d\): \[\begin{align} \mathbb{P}_{\theta}(i) + \mathbb{P}^c_{\theta^{i}}(i) \ge \frac{1}{2}\exp\brc*{-\mathrm{KL}(\mathbb{P}_{\theta},\mathbb{P}_{\theta^i})}~, \end{align}\] where \(\mathrm{KL}(\cdot,\cdot)\) denotes the Kullback–Leibler divergence. Applying the chain rule of KL-divergence while recalling that the policy for both bandit instances is the same, we get: \[\begin{align} \mathbb{P}_{\theta}(i) + \mathbb{P}^c_{\theta^{i}}(i) & \ge \frac{1}{2}\exp\brc*{-\sum_{t = 1}^T \mathrm{KL}\br*{\mathbb{P}_{\theta}(Y_t(\theta) ),\mathbb{P}_{\theta^i}(Y_t(\theta^i)) \vert x_1,Y_1,\dots,x_{t-1},Y_{t-1},x_t}} \\ & \overset{(a)}{=} \frac{1}{2}\exp\brc*{-\sum_{t = 1}^B \mathrm{KL}\br*{\mathbb{P}_{\theta}(Y_t(\theta) ),\mathbb{P}_{\theta^i}(Y_t(\theta^i))\vert x_t}} \\ & \overset{(b)}{=} \frac{1}{2}\exp\brc*{-\frac{1}{2}\sum_{t=1}^B\br*{\inner{x_t,\theta - \theta^i}}^2} \\ &\overset{(c)}{\ge} \frac{1}{2}\exp(-2), \end{align}\] Relation \((a)\) follows since we assume the algorithm only queries for feedback for the first \(B\) rounds, so \(Y_t\ne0\) only generated for the first \(B\) rounds, and the algorithm does not observe any feedback for the last \(T-B\) rounds. Moreover, this relation also requires the assumption that the noise \(\eta_t\) is i.i.d, and therefore, the reward only depends on the chosen context \(x_t\). Furthermore, since we assume that \(\eta_t \sim \mathcal{N}(0,1)\), \((b)\) follows by direct calculation: \[\mathrm{KL}\br*{\mathbb{P}_{\theta}(R_t(\theta)),\mathbb{P}_{\theta^i}(R_t(\theta^i))\vert x_t} = \mathrm{KL}\br*{\mathcal{N}(\inner{x_t,\theta},1),N(\inner{x_t,\theta^i},1)\vert x_t} = \br*{x_t^T(\theta - \theta^i)}^2.\] Relating \((c)\) holds since \(\theta(j)=\theta^i(j)\) for all \(j\ne i\), \(\abs*{\theta(i)-\theta^i(i)}=2/\sqrt{B}\) and \(x_t(i)\in [-1,1]\); thus, we have that \(\br*{x_t^T(\theta - \theta^i)}^2 = x_t(i)^2\br*{\theta(i) - \theta^i(i)}^2\le 4/B\).

Finally, notice that this holds for any \(\theta \in \Theta\) and averaging over all \(\theta \in \Theta\) we get: \[\frac{1}{|\Theta|}\sum_{\theta \in \Theta}\sum_{i = 1}^d\mathbb{P}_{\theta}(i) \sum_{i = 1}^d\frac{1}{|\Theta|}\sum_{\theta \in \Theta}\mathbb{P}_{\theta}(i) \ge \frac{d \exp(-2)}{4}.\] This implies there exists at least one \(\theta \in \Theta\), say \(\tilde{\theta}\), for which \(\sum_{i = 1}^d\mathbb{P}_{\tilde{\theta}}(i) > \frac{d\exp(-2)}{4}\). The claim now follows from 7 and setting \(\theta = \tilde{\theta}\). ◻

9 Gap Between Adversarial and Stochastic Contexts↩︎

Remark 1 (Budget is increasing in integer units). For simplicity, we assume the budget is an integer and is increased by an integer number. If such assumption does not hold, the analysis should be modified by rounding the budget to the closest smallest integer number.

Proof. Let \(\brc{B(t)}_{t\geq 1}\) be any fixed budget sequence and let \(T\in\mathbb{N}\) be some arbitrary time. For brevity, and with slight abuse of notation, we denote \(f(u,\pi)=\mathbb{E}\brs*{f(R_t)\vert u,\pi}\) and \(\pi^*(u) = \arg\max_{\pi\in\Pi(u)} \mathbb{E}\brs*{f(u,\pi)}\). Under these notations, the expected regret can also be written as \[\begin{align} \mathbb{E}\brs*{\mathrm{Reg}(T)} = \mathbb{E}\brs*{\sum_{t=1}^Tf(u_t,\pi^*(u_t))- f(u_t,\pi_t)}. \end{align}\] Also, let \(1{\brc*{Q_t}}=1{\brc*{q_t=1}}\) be the indicator function of the event a reward was queried at the \(t^{th}\) time step. Importantly, the greedy query rule of 1 does not depend on the observations, and for this reason, the sequence \(\brc*{1{\brc*{Q_t}}}_{t\geq 1}\) is fixed given \(\brc{B(t)}_{t\geq 1}\). Let \(B^q(t) = \sum_{s=1}^{t-1} 1{\brc*{Q_s}}\) be number of times a budget was used until time step \(t\). Let \(\brc{E_1(t), E_2(t)}_{t\geq 0}\) be sequence of events defined as \[\begin{align} &E_1(t) = \brc*{B(t)\geq B^q(t)+1, B(t-1) < B^q(t-1)+1}\\ &E_2(t) = \brc*{B(t)< B^q(t)+1, B(t-1) \geq B^q(t-1)+1}. \end{align}\] In words, \(E_1(t)\) represents the event that at time step \(t\) budget became available whereas at time step \(t-1\) it was not available. Furthermore, \(E_2(t)\), represents the event budget became unavailable at time step \(t\) whereas it was available at time step \(t-1\). Furthermore, define the following time steps (which are deterministic for a fixed budget sequence) \[\begin{align} &\tau_{1}(k) = \inf\brc*{t: \sum_{i=1}^t 1{\brc*{E_1(i)}}\geq k}\qquad\quad \mathrm{and}\qquad\quad \tau_{2}(k) = \inf\brc*{t: \sum_{i=1}^t 1{\brc*{E_2(i)}}\geq k}. \end{align}\] That is, \(\tau_{1}(k)\) is the \(k^{th}\) time the budget became available and \(\tau_{2}(k)\) is the \(k^{th}\) time the budget became unavailable. We now prove the following claim. For any time step \(T\) the expected regret of Algorithm 1 is bounded by \[\begin{align} \mathbb{E}[\mathrm{Reg}(T)]\leq \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_T} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } +\sum_{t=1}^{T} \frac{\alpha}{B(t)^{1-\beta}} + \frac{C}{B(t)}, \label{eq:32induction32proof32to32show} \end{align}\tag{8}\] where \(\mathcal{I}^q_t = \brc{k\in [t]: 1{\brc*{Q_k}}=1}\), i.e., all time steps until time step \(t\) in which a reward was queried. Notice that these are the only time steps where algorithm \(\mathbb{A}\) advances, so the algorithm has been effectively applied only on these time steps. Then, by the anytime regret assumption on algorithm \(\mathbb{A}\) it holds that the first term in 8 is bounded by \(\alpha \abs*{\mathcal{I}^q_T}^\beta = \alpha\br*{B^q(T)}^\beta \leq \alpha \min\brc*{B(T),T}^\beta + C\) which completes the proof.

We establish 8 via an induction on time steps in which the budget becomes unavailable, that is on \(\tau_2(1),\tau_2(2),\cdots\). Assume that at \(t=1\), there is an available budget, that is, \(B(1)\geq 1\).

9.0.0.1 Base case. The claim holds for all \(t\in[1,\tau_{2}(k=1) -1]\).

By assumption and definition, for all \(t\in [1,\tau_{2}(1)-1]\) Algorithm 1 query rewards. For this reason, the regret is bounded by the regret of algorithm\(~\mathbb{A}\). Thus, for all \(t\in [1,\tau_{2}(1)-1]\) \[\begin{align} &\mathrm{Reg}(t) = \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_t} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } \leq \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_t} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } +\sum_{l=1}^{t} \frac{\alpha}{B(l)^{1-\beta}} + \frac{C}{B(l)}. \end{align}\]

9.0.0.2 Induction Step: Proving that the claim holds for all \(t\in [1,\tau_{2}(k+1)-1]\).

Assume the claim holds until time step \(t_k= \tau_{2}(k)-1\), that is, until the \(k^{th}\) time the budget becomes unavailable. We now prove the regret bound holds until the \((k+1)^{th}\) time the budget becomes unavailable for \(k\geq 1\) (if no such time exists then the exact same proof holds by replacing \(\tau_{2}(k+1)\) by \(\min\brc*{\tau_{2}(k+1),T+1}\) and \(\tau_1(k+ 1)\) by \(\min\brc*{\tau_{1}(k+1),T+1}\)). Consider the time steps between the \(k^{th}\) and \((k+1)^{th}\) time the budget becomes unavailable. We can partition the time steps into two parts \([\tau_{2}(k),\tau_{1}(k+1)-1]\), \(\brc{\tau_{1}(k+1),..,\tau_{2}(k+1)-1}\), that it, between the \(k^{th}\) and \((k+1)^{th}\) time the budget becomes unavailable there exists a time step \(\tau_{1}(k+1)\) in which the budget becomes available for the \((k+1)^{th}\) time (since we assumed at the first time step a budget is available, so \(\tau_1(1)=1\) and \(\tau_2(1)>1\)). Furthermore, let \(\mathrm{Reg}(t_1:t_2)=\sum_{t_1}^{t_2} f(u_t,\pi^*(u_t))- f(u_t,\pi_t)\) be partial sum of the cummulative regret. The following relations hold. \[\begin{align} \mathbb{E}[\mathrm{Reg}(&\tau_{2}(k+1)-1)] \nonumber\\ &= \mathbb{E}[\mathrm{Reg}(\tau_{2}(k)-1)] + \mathbb{E}[\mathrm{Reg}(\tau_{2}(k):\tau_{2}(k+1)-1)] \\ &\leq \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_{\tau_{2}(k)}} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } +\sum_{t=1}^{\tau_{2}(k)-1} \br*{\frac{\alpha}{B(t)^{1-\beta}} + \frac{C}{B(t)}} + \mathbb{E}[\mathrm{Reg}(\tau_{2}(k):\tau_{2}(k+1)-1)] \\ &= \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_{\tau_{2}(k)}} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } + \sum_{t=1}^{\tau_{2}(k)-1} \br*{\frac{\alpha}{B(t)^{1-\beta}} + \frac{C}{B(t)}} + \mathbb{E}[\mathrm{Reg}(\tau_{2}(k):\tau_{1}(k+1)-1)] \nonumber\\ &\quad+ \mathbb{E}\brs*{\sum_{t=\tau_1(k+1)}^{\tau_2(k+1)-1} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } \nonumber\\ &= \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_{\tau_{2}(k+1)-1}} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } + \sum_{t=1}^{\tau_{2}(k)-1} \br*{\frac{\alpha}{B(t)^{1-\beta}} + \frac{C}{B(t)}} + \mathbb{E}[\mathrm{Reg}(\tau_{2}(k):\tau_{1}(k+1)-1)]. \label{eq:32gap32adv32stoc32contexts} \end{align}\tag{9}\] where the equalities are by the regret definition and since in the interval \(\brs*{\tau_{2}(k),\tau_{2}(k+1)-1}\), rewards were queried only at \(\brs*{\tau_{1}(k),\tau_{2}(k+1)-1}\); therefore, \(\mathcal{I}^q_{\tau_{2}(k+1)-1} = \mathcal{I}^q_{\tau_{2}(k)-1}\cup\brc*{\tau_{1}(k),\dots,\tau_{2}(k+1)-1}\). All that remains is to bound \(\mathbb{E}[\mathrm{Reg}(\tau_{2}(k):\tau_{1}(k+1)-1)]\). In time steps \(t\in [\tau_{2}(k):\tau_{1}(k+1)-1]\) there is no available budget and Algorithm 1 acts in accordance to one of the previous queried rounds; i.e., \(j\sim Uniform(I^q_t)\) and \(\pi_t\!=\!A_j(u_t)\). Notably, in these time steps, we have \(I^q_t=I^q_{\tau_2(k)-1}\). Also recall that \(\mathcal{I}^q_{\tau_{2}(k)-1}\) is deterministic given \(\brc{B(t)}_{t\geq 1}\). Thus, the expected value of \(\pi_t\) is given by \[\begin{align} \mathbb{E}[ f(u_t,\pi^*(u_t))- f(u_t,\pi_t)] &= \mathbb{E}[\mathbb{E}[ f(u_t,\pi^*(u_t))- f(u_t,\pi_t) \vert F_{\tau_{2}(k)-1}]]\\ & = \mathbb{E}\brs*{\frac{1}{ \abs*{I^q_{\tau_2(k)-1}} }\sum_{j\in I^q_{\tau_2(k)-1}} \mathbb{E}[ f(u_t,\pi^*(u_t))- f(u_t,\mathbb{A}_j(u_t)) \vert F_{\tau_{2}(k)-1}]}\\ & \overset{(1)}{=} \mathbb{E}\brs*{\frac{1}{ \abs*{I^q_{\tau_2(k)-1}} }\sum_{j\in I^q_{\tau_2(k)-1}} \mathbb{E}[ f(u_t,\pi^*(u_t))- f(u_t,\mathbb{A}_j(u_t)) \vert F_{\tau_{2}(j)-1}]} \\ & \overset{(2)}{=} \mathbb{E}\brs*{\frac{1}{ \abs*{I^q_{\tau_2(k)-1}} }\sum_{j\in I^q_{\tau_2(k)-1}} \mathbb{E}[ f(u_j,\pi^*(u_j))- f(u_t,\mathbb{A}_j(u_j)) \vert F_{\tau_{2}(j)-1}]} \\ & = \frac{1}{ \abs*{I^q_{\tau_2(k)-1}} }E\brs*{\sum_{j\in I^q_{\tau_2(k)-1}} f(u_j,\pi^*(u_j))- f(u_t,\mathbb{A}_j(u_j))} \\ &\overset{(3)}{\le} \frac{\alpha\abs*{I^q_{\tau_2(k)-1}}^\beta + C}{\abs*{I^q_{\tau_2(k)-1}}} \\ & \overset{(4)}{=} \frac{\alpha}{B(\tau_{2}(k))^{1-\beta}} + \frac{C}{B(\tau_{2}(k))}. \end{align}\] Relation \((1)\) is since rewards and contexts are i.i.d. between rounds and \(\mathbb{A}_j\) only depends on samples in \(\mathcal{I}^q_{\tau(j)-1}\). Equality \((2)\) is since the contexts are i.i.d. and \(\mathbb{A}_j\) only depends on samples in \(F_{\tau_{2}(j)-1}\) and internal randomness; therefore, for any \(t\ge j\), \[\begin{align} \mathbb{E}[ f(u_t,\pi^*(u_t))- f(u_t,\mathbb{A}_j(u_t)) \vert F_{\tau_{2}(j)-1}] = \mathbb{E}[ f(u_j,\pi^*(u_j))- f(u_j,\mathbb{A}_j(u_j)) \vert F_{\tau_{2}(j)-1}]\enspace. \end{align}\] Next, \((3)\) is by the regret bound of algorithm \(\mathbb{A}\) on samples in \(I^q_{\tau_2(k)-1}\), the only rounds where the algorithm advanced. Finally, \((4)\) holds since the the budget at time step \(\tau_{2}(k)\) equals to the number of queries at time step \(\tau_{2}(k)-1\) (if not, then there is an available budget at time step \(\tau_{2}(k)\), in contradiction to its definition). Plugging this back into 9 we get \[\begin{align} \eqref{eq:32gap32adv32stoc32contexts} &\leq \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_{\tau_{2}(k+1)-1}} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } +\sum_{t=1}^{\tau_{2}(k)} \br*{\frac{\alpha}{B(t)^{1-\beta}} + \frac{C}{B(t)}} + (\tau_{1}(k+1)-1 - \tau_{2}(k))\alpha B(\tau_{2}(k)) ^{\beta -1 }\\ & = \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_{\tau_{2}(k+1)-1}} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } +\sum_{t=1}^{\tau_{1}(k+1)-1} \br*{\frac{\alpha}{B(t)^{1-\beta}} + \frac{C}{B(t)}} (k),\tau_{1}(k+1)]}\\ &\leq \mathbb{E}\brs*{\sum_{t\in \mathcal{I}^q_{\tau_{2}(k+1)-1}} f(u_t,\pi^*(u_t))- f(u_t,\pi_t) } +\sum_{t=1}^{\tau_{2}(k+1)-1} \br*{\frac{\alpha}{B(t)^{1-\beta}} + \frac{C}{B(t)}}, \end{align}\] which proves the induction hypothesis. ◻

Proof. We prove the claim iteratively; specifically, we prove that for any \(b\in\brc*{0,\dots,B-1}\) and any policy \(\pi^b\) for which \(q_t=1 ,\forall t \in\brs*{b}\), there exists a policy \(\pi^{b+1}\) such that \(q_t=1 ,\forall t \in\brs*{b+1}\) and \(\mathbb{E}\brs*{\mathrm{Reg}(T)\vert \pi^{b+1}}=\mathbb{E}\brs*{\mathrm{Reg}(T)\vert \pi^b}\). Then, we can choose \(\pi^0=\pi\) and apply this result \(B\) times to obtain \(\pi'=\pi^B\) for which \(q_t=1\) for all \(t\in\brs*{B}\) and \(\mathbb{E}\brs*{\mathrm{Reg}(T)\vert \pi'}=\mathbb{E}\brs*{\mathrm{Reg}(T)\vert \pi}\).

To prove this claim, we further delve into the probabilistic model of the decision-making problem, which we carefully choose for this prove (see, e.g., [33], Chapters 4.6,4.7, for more details). Notice that under our assumptions, the action set is fixed for all time steps and only reward is generated. Also recall that under our model, and given the action, the reward is generated independently of other rounds. Denote by \(\nu_a\), the distribution of \(R_t\) given an action \(a\) was taken, and let \(B^q(t)\) be the number of queries taken up to time \(t\). Then, we describe the decision-process through the following random variables:

  • \(U\) is a uniform random that is generated prior to the game and represents all randomness of the agent

  • \(a_1\dots,a_T\) and \(q_1,\dots,q_T\) are the (random) actions and queries taken by the agent

  • We let \(R_1^q,\dots,R_T^q\) and \(R_1^u,\dots,R_T^u\) be two reward sequences, one for queried actions and one for unqueried ones. Formally, if \(q_t=1\), then \(R_{B^q(t)}^q\) is sampled independently at random from \(\nu_{a_t}\) and \(R_t = R_{B^q(t)}^q\). Similarly, if \(q_t=0\), then \(R_{t-B^q(t)}^u\) is sampled independently at random from \(\nu_{a_t}\) and \(R_t = R_{t-B^q(t)}^u\). We brevity, we denote \(Y_t = R_t\cdot q_t\).

  • We emphasize that under this model, a policy \(\pi_t\) deterministically maps \(U\), \(t\) and the sequence \(\brc*{Y_k}_{k:q_k=1}\) to action and queries \(a_t^\pi\) and \(q_t^\pi\) (given the internal randomization, the decision rule is deterministic, so previous actions are not needed to describe the mapping).

Now, let \(b\in\brc*{0,\dots,B-1}\) and let \(\pi=\pi^b\) be a policy such that \(q_t=1\) for all \(n\in\brs*{b}\), and let \(U,Y_1,\dots,\dots, Y_{b}\) an instantiation of the internal randomness and the rewards. Notably, under our model, \(Y_t=R_t^q\) for all \(t\in\brs*{b}\). Also note that until a new query is taken, the policy receives no new input. This implies that the action sequence up to the \((b+1)^{th}\)-query is deterministic given \(U,Y_1,\dots,\dots, Y_{b}\). We denote this time by \(\tau(b+1)\) and say that \(\tau(b+1)=\phi\) if no additional query is taken.

Next, we define a new policy \(\pi'=\pi^{b+1}\) as follows:

  • For any \(t\le b\) we fix \(\pi'=\pi\).

  • For any \(U,Y_1,\dots,\dots, Y_{b}\), if \(\tau(b+1)=\phi\), we set \(q_{b+1}^{\pi'}=1\) but continue choosing \(a_t^{\pi'} = a_t^{\pi}\) for all \(t\ge b+1\) and \(q_{b+1}^{\pi'}=0\) for any \(t\ge b+2\).

  • For any \(U,Y_1,\dots,\dots, Y_{b}\), if \(\tau(b+1)\ne\phi\), we permute the action at time \(\tau(b+1)\) to time \(b+1\) and delay the actions of \(\pi\) at times \(b+1,\dots,\tau(b+1)-1\) by a single time step. Formally:

    • \(a_{b+1}^{\pi'} = a_{\tau(b+1)}^{\pi^{b}}\) and \(q_{b+1}=1\).

    • \(a_{t}^{\pi'} = a_{t-1}^{\pi^{b}}\) and \(q_{t}=0\) for all \(t\in\brc*{b+2,\dots,\tau(b+1)}\).

    • \(\pi'_t=\pi_t\) for all \(t>\tau(b+1)\).

Clearly, \(q_t^{\pi'}=1 ,\forall t \in\brs*{b+1}\). Thus, it remains to prove that \(\mathbb{E}\brs*{\mathrm{Reg}(T)\vert \pi'}=\mathbb{E}\brs*{\mathrm{Reg}(T)\vert \pi}\). Denote the instantaneous regret of algorithm \(\pi\) by \(r_t^\pi = \max_{\pi\in\Pi}\mathbb{E}\brs*{f(R_t)\vert \pi} - f(R_t)\), where \(R_t\) is generated when playing according to \(\pi\). We use a coupling argument, where as long as the policies agree, the model simultaneously generates the same reward for both process. As soon as either \(R_k^q\) or \(R_k^u\) is supposed to be generated from a different action, then the processes split into two independent process and continue separately. Since \(\pi'_t=\pi_t\) for all \(t\le b\), it also implies that the action and reward processes for both polices are identical up to time \(b\) and \(r_t^{\pi'} = r_t^\pi\) for all \(t\le b\).

For the rest of the time steps, for any instantiation of \(U,Y_1,\dots,Y_b\), we divide the analysis into two cases:

  1. \(\tau(b+1)\ne\phi\). In this case, notice that during time steps \(b+1,\dots,\tau(b+1)\), both policies generate \(R_{b+1}^q\) from \(a_{\tau(b+1)}^\pi\) and generate \(R_1^u,\dots,R_{\tau(b+1)-b-1}\) from \(a_{b+1}^\pi,\dots a_{\tau(b+1)-1}^\pi\). Therefore, for these time steps, both policies agree on the actions and generate the same rewards, albeit in a different order. Specifically, this implies that \(\sum_{t=b+1}^{\tau(b+1)}r_t^{\pi'} = \sum_{t=b+1}^{\tau(b+1)}r_t^\pi\). Moreover, both policies generated the same queried reward \(R_{b+1}^q\) and continues the same for any \(t>\tau(b+1)\), which implies that they will generate the same actions and rewards until the end of the interactions. Thus, in this case, we have that \(\sum_{t=b+1}^{T}r_t^{\pi'} = \sum_{t=b+1}^{T}r_t^\pi\).

  2. \(\tau(b+1)=\phi\). In this case, no additional reward is queried, and the same sequence of actions \(a_{b+1},\dots,a_T\) is deterministically chosen as a function of \(U,Y_1,\dots,Y_b\), for both \(\pi\) and \(\pi'\). Thus, as the reward is generated from the same distribution for both policies, we have for any \(t>b+1\) \[\begin{align} E\brs*{r_t^{\pi'} \vert U,Y_1,\dots,Y_b} = E\brs*{r_t^\pi \vert U,Y_1,\dots,Y_b} \end{align}\]

Combining both parts, and using the tower property we have \[\begin{align} \mathbb{E}\brs*{\sum_{t=b+1}^T r_t^{\pi'}} &= \mathbb{E}\brs*{\mathbb{E}\brs*{\sum_{t=b+1}^T r_t^{\pi'}\bigg\vert U,Y_1,\dots,Y_b}} \\ & = \mathbb{E}\brs*{\mathbb{E}\brs*{1{\brc*{\tau(b+1)\ne\phi}}\underbrace{\sum_{t=b+1}^T r_t^{\pi'}}_{=\sum_{t=b+1}^T r_t^{\pi}}\bigg\vert U,Y_1,\dots,Y_b} + \sum_{t=b+1}^T 1{\brc*{\tau(b+1)=\phi}}\underbrace{\mathbb{E}\brs*{r_t^{\pi'}\bigg\vert U,Y_1,\dots,Y_b}}_{=\mathbb{E}\brs*{r_t^{\pi}\bigg\vert U,Y_1,\dots,Y_b}}} \\ & = \mathbb{E}\brs*{\mathbb{E}\brs*{1{\brc*{\tau(b+1)\ne\phi}}\sum_{t=b+1}^T r_t^{\pi}\bigg\vert U,Y_1,\dots,Y_b} + \sum_{t=b+1}^T 1{\brc*{\tau(b+1)=\phi}}\mathbb{E}\brs*{r_t^{\pi}\bigg\vert U,Y_1,\dots,Y_b}} \\ & = \mathbb{E}\brs*{\mathbb{E}\brs*{\sum_{t=b+1}^T r_t^{\pi}\bigg\vert U,Y_1,\dots,Y_b}} \\ & = \mathbb{E}\brs*{\sum_{t=b+1}^T r_t^{\pi}}. \end{align}\] Finally, recalling that the polices are identical for \(t\le b\), we get the desired result for \(\pi'=\pi^{b+1}\) and \(\pi=\pi^b\): \[\begin{align} \mathbb{E}\brs*{\mathrm{Reg}(T)\vert\pi'} &= \mathbb{E}\brs*{\sum_{t=1}^b r_t^{\pi'}} + \mathbb{E}\brs*{\sum_{t=b+1}^T r_t^{\pi'}} = \mathbb{E}\brs*{\sum_{t=1}^b r_t^\pi} + \mathbb{E}\brs*{\sum_{t=b+1}^T r_t^{\pi}} = \mathbb{E}\brs*{\mathrm{Reg}(T)\vert\pi}\enspace. \end{align}\] ◻

Proof. Consider a contextual multi-armed bandit instance with two contexts. That is, the environment has two contexts \(u=1,2\); if we observe \(u=1\), then we interact with the first MAB problem, and if \(u=2\), we interact with the second MAB problem. We assume there is no relation between the first and second MAB problems.

Greedy Reduction Algorithm in the Presence of Adversarial Contexts.
Assume the budget sequence increases at each episode w.p. \(\frac{1}{2}\) by a unit. Assume the adversary picks \(u=1\) if the budget increases by one and \(u=2\) if the budget does not increase. Applying the Greedy Reduction, the algorithm will only query information from MAB \(u=1\) and will have no information on the rewards for MAB \(u=2\). Let the bandit problems of both contexts be two-armed problems. Then, there exists an arm \(a^*\) of context \(u=2\) that the algorithm samples, in expectation, at most \(\frac{T}{4}\) times, namely, \[\mathbb{E}\brs*{\sum_{t=1}^T 1{\brc*{u_t = 2, a_t= a^*}}}\le \frac{1}{2}\mathbb{E}\brs*{\sum_{t=1}^T 1{\brc*{u_t = 2}}} = \frac{T}{4},\] where we used the fact that \(\Pr\br*{u_t=2} = \Pr\br*{B(t)=B(t-1)+1}=\frac{1}{2}\). For this arm, we fix the reward to be equal \(R=1\), and for the other arm, we let \(R=0\). For simplicity, we fix the means of all arms in context \(u=1\) to be identical. Then, the regret is lower bounded by \[\begin{align} \mathbb{E}\brs*{\mathrm{Reg}(T)} = \mathbb{E}\brs*{\sum_{t=1}^T 1{\brc*{u_t = 2, a_t\ne a^*}}} = \mathbb{E}\brs*{\sum_{t=1}^T 1{\brc*{u_t = 2}}} - \mathbb{E}\brs*{\sum_{t=1}^T 1{\brc*{u_t = 2, a_t= a^*}}} \ge \frac{T}{2} - \frac{T}{4} = \frac{T}{4} \end{align}\] Notice that by definition, \(\mathbb{E}\brs*{B(t)}=\frac{t}{2}\) for all \(t\in\brs*{T}\).

Greedy Reduction Algorithm in the Presence of Adversarial Budget.
The example is symmetric to the previous one, i.e., we exchange the roles of the context and the budget. Assume that the context are chosen stochastically such that where \(\Pr(u_t=1) = \Pr(u_t=2) =\frac{1}{2}\). If the budget increases by one each time \(u_t=1\) then Greedy Reduction will not acquire any information on the MAB with \(u_t=2\). Repeating the same analysis as the previous case results in \(\mathbb{E}[\mathrm{Reg}(T)]\geq \Omega(T)\) as well as \(\mathbb{E}\brs*{B(t)} = \frac{t}{2}\) for all \(t\in\brs*{T}\). ◻

10 Confidence-Budget Matching for Multi Armed Bandits↩︎

Figure 3: CBM-UCB

We start with some notations: let \(n^q_t(a) = \sum_{k=1}^t 1{\brc*{a_t=a,q_t=1}}\) be the number of times arm \(a\) was queried up to time \(t\) and let \(\bar{r}_t(a)=\frac{1}{n^q_t(a)\vee 1}\sum_{k=1}^t R_t 1{\brc*{a_t=a,q_t=1}}\) be its empirical mean. We use Hoeffding-based CI, i.e., if \(b_{t}^r(a)\triangleq \sqrt{\frac{3\log(At)}{2n^q_{t-1}(a)\vee 1}}\), then \[\begin{align} UCB_t(a) = \bar{r}_{t-1}(a)+b_{t}^r(a)\qquad \mathrm{and}\qquad LCB_t(a) = \bar{r}_{t-1}(a)- b_{t}^r(a), \end{align}\] which leads to \(CI_t(a) = UCB_t(a) - LCB_t(a) = 2 b_{t}^r(a) = \sqrt{6\frac{\log At}{n^q_t(a)\vee 1}}\).

Remark 2. The observant reader might find the CBM condition wasteful; a better condition, for example, would be to sample arms if \(n^q_{t-1}(a_t)\le \frac{B(t)}{\sum_{a=1}^{A}c(a)}+c(a_t)\). Indeed, doing so will improve the constants of the regret bounds. Nonetheless, the main goal of this section is to demonstrate the techniques we use for the more complex settings (linear bandits and RL), where the CBM principle is not equivalent to count-thresholding and there is no clear way to tune the querying condition to be tighter.

We now prove the regret bound for CBM-UCB:

Theorem 1 (Confidence Budget Matching for Multi Armed Bandits). For any querying costs \(c(1),\dots,c(A)\ge0\), any adaptive non-decreasing adversarially chosen sequence \(\brc{B(t)}_{t\geq 1}\) and for any \(T\ge1\), the expected regret of CBM-UCB is upper bounded by \[\begin{align} \mathbb{E}[\mathrm{Reg}(T)] \leq \sqrt{24AT\log(AT)} + A\sqrt{6\log(AT)} + 4\sqrt{6\log(AT)\sum_{a=1}^{A}c(a)}\sum_{t=1}^T \mathbb{E}\brs*{\sqrt{\frac{1}{B(t)}}} + 2 \end{align}\]

Proof. Define the filtration \(\brc{F_t}_{t\geq 0}\) where \(F_{t-1}\) contains \(\brc{B(1), a_1,R_{1},\dots,B(t-1),a_{t-1},R_{t-1},B(t)}\), i.e., all past actions, rewards and budgets, combined with the value of total budget at time step \(t\). We also assume w.l.o.g. that \(A\ge2\), otherwise the regret is always zero. The good event is defined as \[\begin{align} &E^r(t) = \brc*{a \in A:\;|\bar{r}_{t-1}(a) -r(a)| \leq \sqrt{ \frac{3\log(At) }{2n^q_{t-1}(a)\vee 1} } \stackrel{\text{def}}{=}b_{t}^r(a)}. \end{align}\] Importantly, notice that when \(E^r(t)\) holds, then \(r(a^*)\le UCB_t(a^*) \le UCB_t(a_t)\), and thus, the UCB of the chosen arm is optimistic. Moreover, the event directly implies that \(r(a_t)\ge LCB_t(a_t)\).

Meeting the budget constraint We prove that the CBM principle of 3 never violates the budget constraint in 5, that is, \(B^q(t)\le B(t)\) for all \(t\in\brs*{T}\). Thus, throughout the proof, we assume that \(q_t=1\) if and only if the CBM query rule decides so (i.e., the case where the algorithm wants to set \(q_t=1\) and does not have enough budget to do so cannot happen).

Regret analysis. We decouple the regret as follows. \[\begin{align} \mathbb{E}[\mathrm{Reg}(T)] &= \sum_{t=1}^T \mathbb{E}\brs*{(r^* - r(a_t))1{\brc*{E^r(t)}}} + \sum_{t=1}^T \mathbb{E}\brs*{(r^* - r(a_t))1{\brc*{\overline{E^r(t)}}}}\\ & \le \sum_{t=1}^T \mathbb{E}\brs*{(r^* - r(a_t))1{\brc*{E^r(t)}}} + \sum_{t=1}^T \mathbb{E}\brs*{1{\brc*{\overline{E^r(t)}}}} \\ & \le \sum_{t=1}^T \mathbb{E}\brs*{(r^* - r(a_t))1{\brc*{E^r(t)}}} + \sum_{t=1}^T \frac{1}{t^2} }\\ &\le \underbrace{\sum_{t=1}^T \mathbb{E}\brs*{1{\brc*{q_t=1}}(r^* - r(a_t))1{\brc*{E^r(t)}}}}_{(i)} + \underbrace{\sum_{t=1}^T \mathbb{E}\brs*{1{\brc*{q_t=0}}(r^* - r(a_t))1{\brc*{E^r(t)}}}}_{(ii)}+2. \end{align}\] Terms \((i)\) and \((ii)\) represent the regret over episodes in which feedback was queried and not queried, respectively. We bound each of the terms separately.

Bound on term \((i)\), episodes in which feedback is queried, under the good event. The following relations hold \[\begin{align} (i) &= \sum_{t=1}^T \mathbb{E}\brs*{1{\brc*{q_t=1}}(r^* - r(a_t))1{\brc*{E^r(t)}}}\\ &\leq \sum_{t=1}^T \mathbb{E}\br*{1{\brc*{q_t=1}}1{\brc*{E^r(t)}}(UCB(a_t) - r(a_t))} \\ &\leq \sum_{t=1}^T \mathbb{E}\br*{1{\brc*{q_t=1}}1{\brc*{E^r(t)}}(UCB(a_t) - LCB(a_t))} \\ & \le \mathbb{E}\brs*{ \sum_{t=1}^T 1{\brc*{q_t=1}} \sqrt{\frac{6\log(At)}{n_{t-1}^q(a_t)\vee 1}}}. \end{align}\] We bound the term in the expectation as follows (for every history sequence). \[\begin{align} \sum_{t=1}^T 1{\brc*{q_t=1}} \sqrt{\frac{6\log(At)}{n_{t-1}^q(a_t)\vee 1}} &\leq \sqrt{6\log(AT)}\sum_{t=1}^{T} \frac{1{\brc*{q_t=1}}}{\sqrt{n_{k-1}^q(a_t)\vee 1}}\\ & \overset{(*)}{=}\sqrt{6\log(AT)}\sum_{a=1}^{A} \sum_{i=0}^{n^q_T(a)} \frac{1}{\sqrt{i \vee 1}}\\ &\leq \sqrt{6\log(AT)}\sum_{a} \br*{2\sqrt{n^q_T(a)} + 1} ^T\frac{1}{\sqrt{i}}\le 2\sqrt{T}}\\ &\leq \sqrt{24\log(AT)} \sqrt{An^q_T} + A\sqrt{6\log(AT)} n^q_T(a) = n^q_T}, \end{align}\] where \((*)\) holds since every time an action \(a\) was queried, its counter advanced by 1. In the second relation, the summation is performed over time steps a reward is queried. Lastly, using \(n^q_T \leq T\), i.e., the number of times the algorithm queried feedback is smaller than the total number of round, we get, \[\begin{align} (i) \leq \sqrt{24AT\log(AT)} + A\sqrt{6\log(AT)}. \end{align}\] Bound on term \((ii)\), episodes in which feedback is not queried. To bound this term, we use the query rule, that is, \[\begin{align} (ii) &= \sum_{t=1}^T \mathbb{E}[1{\brc*{q_t=0}}1{\brc*{E^r(t)}}(r^* - r(a_t))] \\ &\leq \sum_{t=1}^T \mathbb{E}[1{\brc*{q_t=0}}1{\brc*{E^r(t)}}(UCB(a_t) - LCB(a_t))] \\ &\leq \sum_{t=1}^T \mathbb{E}\brs*{4\sqrt{\frac{6\log(At)\sum_{a=1}^{A}c(a)}{B(t)}}} \\ &\leq 4\sqrt{6\log(AT)\sum_{a=1}^{A}c(a)}\sum_{t=1}^T \mathbb{E}\brs*{\sqrt{\frac{1}{B(t)}}}. \end{align}\] Combining the bounds. Combining the two bounds we conclude the proof, \[\begin{align} \mathbb{E}[\mathrm{Reg}(T)] \leq \sqrt{24AT\log(AT)} + A\sqrt{6\log(AT)} + 4\sqrt{6\log(AT)\sum_{a=1}^{A}c(a)}\sum_{t=1}^T \mathbb{E}\brs*{\sqrt{\frac{1}{B(t)}}} + 2. \end{align}\] ◻

10.1 The Good Event↩︎

Lemma 4 (The Good Event). For any \(A\ge2\) and \(t\ge1\), it holds that \(\Pr(\overline{E^r(t)})\leq \frac{1}{t^2}\).

Proof. Fix \(t\ge1\). The following relations hold by applying Hoeffding’s inequality and the union bound. Denote by \(\hat{r}_n(a)\), the empirical mean of \(n\) i.i.d random variables over \([0,1]\) with an expectation \(r(a)\). Then, we have \[\begin{align} \Pr&\br*{\abs*{\bar{r}_{t-1}(a_t) -r(a_t)} \geq \sqrt{ \frac{3\log (At)}{2n^q_{t-1}(a_t)\vee 1}}}\\ &=\sum_{a=1}^{A}\Pr\br*{\abs*{\bar{r}_{t-1}(a) -r(a)} \geq \sqrt{ \frac{3\log (At)}{2n^q_{t-1}(a)\vee 1}}, a_t=a}\\ &\le \sum_{a=1}^{A}\Pr\br*{\abs*{\bar{r}_{t-1}(a) -r(a)} \geq \sqrt{ \frac{3\log (At)}{2n^q_{t-1}(a)\vee 1}}}\\ &= \sum_{a=1}^{A}\Pr\br*{\cup_{n=0}^t\brc*{\abs*{\bar{r}_{t-1}(a) -r(a)} \geq \sqrt{ \frac{3\log (At)}{2n\vee 1}}, n_{t-1}^q(a)=n}}\\ &= \sum_{a=1}^{A}\Pr\br*{\cup_{n=1}^t\brc*{\abs*{\hat{r}_n(a) -r(a)} \geq \sqrt{ \frac{3\log (At)}{2n}}, n_{t-1}^q(a)=n}} \\ &\le \sum_{a=1}^{A}\sum_{n=1}^t\Pr\br*{\abs*{\hat{r}_{n}(a) -r(a)} \geq \sqrt{ \frac{3\log (At)}{2n}}}\\ &\leq \sum_{a=1}^{A}\sum_{n=1}^t\frac{1}{At^3}\\ & = \frac{1}{t^2}. \end{align}\] ◻

10.2 The Budget Constraint is not Violated↩︎

Lemma 5 (CBM-UCB: Budget Constraint is Satisfied). For any \(t\geq 1\) the budget constraint is not violated (a.s.), \(B^q(t)\leq B(t)\).

Proof. Assume w.l.o.g. that \(c(a)>0\) for at least one action, as otherwise, the budget constraint can never be violated. Similarly, assume that \(B(1)>0\); otherwise, until a budget becomes available, no reward will be queried, and the same analysis would hold, starting from the first time querying became available. The following relations hold for any history. \[\begin{align} B^q(t) &= \sum_{k=1}^{t} c(a_k)1{\brc*{q_k=1}}\\ &= \sum_{a=1}^{A}\sum_{k=1}^{t} c(a)1{\brc*{a_k=a,q_k=1}}\\ &\leq \sum_{a=1}^{A}c(a)\sum_{k=1}^t 1{\brc*{a_k=a,q_k=1}} \frac{CI_t(a_t)}{ 4\sqrt{6\log(Ak)(\sum_{a'=1}^{A} c(a'))/{B(k)}}} \\ &=\sum_{a=1}^{A}c(a)\sum_{k=1}^t1{\brc*{a_k=a,q_k=1}} \frac{\sqrt{6 \log(Ak)/{(n_{k-1}^q(a)}\vee 1)}}{4\sqrt{6 \log(Ak)(\sum_{a'=1}^{A} c(a'))/{B(k)}}}\\ &=\frac{1}{4\sqrt{\sum_{a'=1}^{A} c(a')}}\sum_{a=1}^{A}c(a)\sum_{k=1}^t1{\brc*{a_k=a,q_k=1}} \sqrt{\frac{1}{{(n_{k-1}^q(a)}\vee 1)}}\sqrt{B(k)}\\ &\leq \frac{1}{4\sqrt{\sum_{a'=1}^{A} c(a')}}\sqrt{B(t)}\sum_{a=1}^{A} c(a)\sum_{i=0}^{n^q_t(a)} \sqrt{\frac{1}{i\vee 1}} \\ & \le \frac{1}{2\sqrt{\sum_{a'=1}^{A} c(a')}}\sqrt{B(t)}\sum_{a=1}^{A} c(a)\sum_{i=1}^{n^q_t(a)} \sqrt{\frac{1}{i}} \\ &\leq \frac{1}{\sqrt{\sum_{a'=1}^{A} c(a')}}\sqrt{B(t)}\sum_{a=1}^{A}c(a)\sqrt{n^q_{t}(a)}^T\frac{1}{\sqrt{i}}\le 2\sqrt{T}}\\ &\leq \frac{1}{\sqrt{\sum_{a'=1}^{A} c(a')}}\sqrt{B(t)}\sqrt{\sum_{a'=1}^{A} c(a')} \sqrt{\sum_{a=1}^{A} c(a)n^q_{t}(a)} \\ &= \sqrt{B(t)}\sqrt{B^q(t)}. \end{align}\] Rearranging we get that \(B^q(t)\leq B(t)\) for any \(t\geq 0\). ◻

11 Confidence-Budget Matching for Linear Bandits↩︎

Figure 4: CBM-OFUL

We start by more formally define the linear bandit model with budget constraints. At the beginning of each round \(t\), an adaptive adversary reveals to the learner a budget \(B(t)\) (such that \(B(t)\ge B(t-1)\)) and a context space \(\mathcal{X}_t\subset\mathbb{R}^d\) (which serves as the ‘context’ \(u_t=\mathcal{X}_t\)). Then the learner selects a context \(x_t\in\mathcal{X}_t\) and, if enough budget is available, she can choose to query for a noisy reward feedback \(R_t=\inner{x_t,\theta^*} +\eta_t\), for some unknown \(\theta^*\in\mathbb{R}^d\) such that \(\inner{x,\theta^*}\in\brs*{-1,1}\) for all \(x\in\mathcal{X}_t,t\ge1\). In this section, we assume that querying rewards incur unit costs. the noise is assumed to be zero-meaned and conditionally \(\sigma^2\)-subgaussian. We also assume that for all \(\norm{x}_2\le L, \forall x\in\mathcal{X}_t\) and that \(\norm{\theta^*}_2\le D\). The (pseudo) regret in this setting is defined as \(\mathrm{Reg}(T) = \sum_{t=1}^T \max_{x\in\mathcal{X}_t}\inner{x,\theta^*} - \inner{x_t,\theta^*}\).

Define \(V_t = \lambda I_d + \sum_{k=1}^t x_kx_k^T1{\brc*{q_k=1}}\) for some \(\lambda>0\). At the end of each round, the algorithm calculates the regularized least-squares estimator for \(\theta^*\) over the queried rewards, namely \[\begin{align} \label{eq:32budgeted32LS} \hat{\theta}_t = V_t^{-1}\sum_{k=1}^t x_tR_t1{\brc*{q_k=1}}. \end{align}\tag{10}\] Then, we define the confidence set \(C_t = \brc*{\theta\in \mathbb{R}^d: \norm{\hat{\theta}_t-\theta}_{V_t}\leq l_t}\), where \(\norm{x}_A=\sqrt{x^TAx}\) and \[\begin{align} &l_t =\max\brc*{1,\sigma\sqrt{2d\log\br*{\frac{1+ t L^2/\lambda}{\delta}}} + \lambda^{1/2}D}. \end{align}\] As a result, and since \(\inner{x_t,\theta^*}\in\brs*{-1,1}\), the CI at the beginning of each round is \[\begin{align} \inner{x_t,\theta^*}\in\brs*{\max\brc*{\min_{\theta\in C_{t-1}} \inner{x_t,\theta},-1} , \min\brc*{\max_{\theta\in C_{t-1}} \inner{x_t,\theta},1}}, \end{align}\] and its width is upper bounded by \[\begin{align} \min\brc*{\max_{\theta\in C_{t-1}} \inner{x_t,\theta} - \min_{\theta\in C_{t-1}} \inner{x_t,\theta},2} &= \min\brc*{\max_{\theta\in C_{t-1}} \inner{x_t,\theta-\hat{\theta}_t} - \min_{\theta\in C_{t-1}} \inner{x_t,\theta-\hat{\theta}_t},2} \\ &= 2\min\brc*{l_{t-1}\norm{x_t}_{V_{t-1}^{-1}},1} }\\ & \le 2l_{t-1}\min\brc*{\norm{x_t}_{V_{t-1}^{-1}},1} \\ &\triangleq CI_t(x_t). \end{align}\] Finally, we say that the CBM condition queries reward if \(CI_t(x_t) \ge \frac{l_{t-1}v_{B(t)}}{2\sqrt{B(t)}}\) for \[\begin{align} v_t = \sqrt{2d\log\br*{1+\frac{t L^2}{d\lambda}}}. \end{align}\]

We now prove the regret bound of [theorem:32CBM32Linear32Bandits] when setting \(\lambda = \max\brc*{D^{-1/2},1}\):

Theorem 2 (Confidence Budget Matching for Linear Bandits). For any adaptive adversarially chosen sequence of non-decreasing budget and context set \(\brc{B(t), u_t}_{t\geq 1}\) the regret of CBM-OFUL is upper bounded by \[\begin{align} \mathrm{Reg}(T) &\leq 2 l_Tv_T \br*{\sum_{t=1}^T \frac{1}{\sqrt{B(t)}} + \sqrt{T}} \\ & = \mathcal{O}\br*{\br*{d\sigma +\sqrt{d\lambda }D}\log\br*{\frac{1+ t L^2/\lambda}{\delta}}\br*{\sum_{t=1}^T \frac{1}{\sqrt{B(t)}} + \sqrt{T}}}. \end{align}\] for any \(T\geq 1\) with probability greater than \(1-\delta\), where the \(\mathcal{O}\)-notation holds when \(d\sigma +\sqrt{d\lambda }D\ge1\).

Proof. With probability greater than \(1-\delta\) it holds that \(\theta^* \in C_t = \brc*{\theta\in \mathbb{R}^d: \norm{\hat{\theta}_t-\theta}_{V_t}\leq l_t }\), uniformly for all \(t\ge0\) (see Theorem 6 which generalizes [9] . We define this event as the good event and denote it by \(\mathbb{G}\). Also, we denote the parameter vector that maximizes the UCB by \(\tilde{\theta}_t\), i.e., \((x_t,\tilde{\theta}_t)\in\arg\max_{x\times\theta\in \mathcal{X}_t\times C_{t-1}} \inner{x,\theta}\). Then, under the good event we have that \(\max_{x\in\mathcal{X}_t}\inner{x,\theta^*}\le \inner{x_t,\tilde{\theta}_t}\) (‘optimism’).

As in the MAB setting ([theorem:32CBM32Bandits]), we prove that when CBM-OFUM asks for a query, it always has sufficient budget (6). Therefore, throughout the proof, we assume that the algorithm observes reward iff it sets \(q_t=1\) and that \(B^q(t)\le \min\brc*{T,B(t)}\) for all \(t\).

We now derive the performance bound by bounding the regret of the algorithm. The following relations hold for any \(T\geq 1\): \[\begin{align} \mathrm{Reg}(T) = \underbrace{\sum_{t=1}^T 1{\brc*{q_t = 1}} \br*{\max_{x\in\mathcal{X}_t}\inner{x,\theta^*} - \inner{x_t,\theta^*}}}_{(i)} + \underbrace{\sum_{t=1}^T 1{\brc*{q_t = 0}} \br*{\max_{x\in\mathcal{X}_t}\inner{x,\theta^*} - \inner{x_t,\theta^*}}}_{(ii)}. \end{align}\] Terms \((i)\) and \((ii)\) represent the regret over episodes in which feedback was queried and not queried, respectively. We bound each of the terms.

Bound on term \((i)\), episodes in which feedback is queried. The following relations hold. \[\begin{align} (i)=&\sum_{t=1}^T 1{\brc*{q_t = 1}} \br*{\max_{x\in\mathcal{X}_t}\inner{x,\theta^*} - \inner{x_t,\theta^*}} \\ &=\sum_{t=1}^T 1{\brc*{q_t = 1}} \min\brc*{\br*{\max_{x\in\mathcal{X}_t}\inner{x,\theta^*} - \inner{x_t,\theta^*}},2}\\ &\leq \sum_{t=1}^T 1{\brc*{q_t = 1}} \min\brc*{\br*{\inner{x_t,\tilde{\theta}_t} - \inner{x_t,\theta^*}},2}\\ &= \sum_{t=1}^T 1{\brc*{q_t = 1}} \min\brc*{\br*{\inner{x_t,\tilde{\theta}_t-\hat{\theta}_t} + \inner{x_t,\hat{\theta}_t - \theta^*}},2} \\ &=\sum_{t=1}^T 1{\brc*{q_t = 1}} \min\brc*{\norm{x_t}_{V_{t-1}^{-1}}\br*{\norm{\tilde{\theta}_t-\hat{\theta}_t}_{V_{t-1}}+\norm{\hat{\theta}_t-\theta^*}_{V_{t-1}}},2}\\ &\leq 2l_T\sum_{t=1}^T 1{\brc*{q_t = 1}} \min\brc*{\norm{x_t}_{V_{t-1}^{-1}},1}\& l_t\ge1 is increasing in t} \end{align}\] Next, denote the \(k^{th}\) time that CBM-OFUL queried a reward by \(\tau_k\). Then, we can write \(V_t = \lambda I_d+\sum_{k=1}^{B^q(t)}x_{\tau_k}x_{\tau_k}^T\). Rewriting the bound on \((i)\) and then using the the elliptical potential lemma (23) and get \[\begin{align} (i)&\leq 2l_T\sum_{k=1}^{B^q(T)} \min\brc*{\norm{x_{\tau_k}}_{V_{\tau_k-1}^{-1}},1} \\ & \le 2l_T\sqrt{B^q(t)}\sqrt{\sum_{k=1}^{B^q(T)} \min\brc*{\norm{x_{\tau_k}}_{V_{\tau_k-1}^{-1}}^2,1}} ^n x_i}^2 \le n\sum_{i=1}^n x_i^2}\\ &\le 2l_T\sqrt{B^q(T)}\sqrt{2 d\log\br*{1 + \frac{B^q(T)L^2}{d\lambda}}} }\\ & \quad\,\,\le 2l_T\sqrt{T}\sqrt{ 2d\log\br*{1 + \frac{T L^2}{d\lambda}}}\enspace. \end{align}\]

Bound on term \((ii)\), episodes in which feedback is not queried. The following relations hold. \[\begin{align} (ii)=&\sum_{t=1}^T 1{\brc*{q_t = 0}} \br*{\max_{x\in\mathcal{X}_t}\inner{x,\theta^*} - \inner{x_t,\theta^*}} \\ &\leq \sum_{t=1}^T 1{\brc*{q_t = 0}}\min \brc*{\inner{x_t,\tilde{\theta}_t} - \inner{x_t,\theta^*},2} \\ &\leq \sum_{t=1}^T 1{\brc*{q_t = 0}} \underbrace{\min\brc*{ \max_{\theta\in C_t}\inner{x_t,\theta} - \min_{\theta\in C_t}\inner{x_t,\theta},2}}_{\le CI_t(x_t)}\\ &\leq \sum_{t=1}^T 1{\brc*{q_t = 0}} \frac{2l_{t-1}v_{B(t)}}{\sqrt{B(t)}} \\ &\leq 2l_Tv_T\sum_{t=1}^T \frac{1}{\sqrt{B(t)}} . \end{align}\]

The forth relation holds since the algorithm does not query for feedback only when \(CI_t(x_t)\leq 2l_{t-1} v_{B(t)}/\sqrt{B(t)}\) (a case where \(q_t=0\) since the algorithm ran out of budget cannot happen).

Combining the bounds. Combining the bounds over \((i)\) and \((ii)\) we get that conditioned on the good event (which holds with probability greater than \(1-\delta\)), the regret is bounded by \[\begin{align} \mathrm{Reg}(T) &\leq 2l_Tv_T\sum_{t=1}^T \frac{1}{\sqrt{B(t)}} + 2l_T\sqrt{T} \underbrace{\sqrt{2d\log\br*{1 + \frac{TL^2}{d\lambda}}}}_{\stackrel{\text{def}}{=}v_T} \\ & = 2l_Tv_T\br*{\sum_{t=1}^T \frac{1}{\sqrt{B(t)}} + \sqrt{T}}, \end{align}\] for all \(T\geq 1\). ◻

11.1 CBM-OFUL: Budget Constraint is Satisfied↩︎

Lemma 6 (CBM-OFUL: Budget Constraint is Satisfied). Conditioned on the good event, for any \(T\geq 1\) the budget constraint is not violated, \(B^q(T)\leq B(T)\).

Proof. Before supplying the proof, notice that the function \(f(x) = x/\log(1+x\alpha)\) is a strictly increasing function in \(\alpha>0,x\ge 0\) (since \(f'(x)>0\) for \(x>0\)). This implies that the ratio \[\frac{B(T)}{v_{B(T)}^2} = \frac{B(T)}{4d\log(1+ B(T)L^2/\lambda)}=\frac{f(B(T))}{4d}\] is a non-decreasing function in \(T\) since \(B(T)\) is non-decreasing in \(T\). Also, recall that \(CI_t(x_t) =2 l_t \min\brc*{\norm{x_t}_{V_t^{-1}},1}\). Using these facts we get the following relations for any \(T\geq 1\). \[\begin{align} &B^q(T) = \sum_{t=1}^T 1{\brc*{q_t=1}} \\ &\leq \sum_{t=1}^T 1{\brc*{q_t=1}} \frac{CI_t(x_t)}{2l_{t-1} v_{B(t)}\sqrt{1/B(t)}} \\ &=\sum_{t=1}^T 1{\brc*{q_t=1}} \frac{2 l_{t-1} \min\brc*{\norm{x_t}_{V_{t-1}^{-1}},1}}{2l_{t-1} v_{B(t)}\sqrt{1/B(t)}} \\ & \leq \sqrt{B(T)/v_{B(T)}} \sum_{t=1}^T 1{\brc*{q_t=1}}\min\brc*{\norm{x_t}_{V_{t-1}^{-1}},1}^2 is non-decreasing in T}\\ &\leq \sqrt{B(T)/v_{B(T)}}\sqrt{\sum_{t=1}^{T} 1{\brc*{q_t=1}}}\sqrt{\sum_{t=1}^{T} 1{\brc*{q_t=1}}\min\brc*{\norm{x_t}_{V_{t-1}^{-1}}^2,1}} \\ &\leq \sqrt{B(T)/v_{B(T)}}\sqrt{B^q(T)}\sqrt{2d\log\br*{1+\frac{B^q(T)L^2}{d}}} }\\ &= \sqrt{\frac{B(T)}{\log\br*{1+\frac{B(T)L^2}{d\lambda}}}}\sqrt{B^q(T)\log\br*{1+\frac{B^q(T)L^2}{d}}}. \end{align}\] Rearranging we get \[\begin{align} \frac{B^q(T)}{\log\br*{1+B^q(T)L^2/\lambda}} \leq \frac{B(T)}{\log\br*{1+B(T)L^2/\lambda}}. \label{eq:32budget32linear32bandit32pre32final} \end{align}\tag{11}\] Since \(f(x) = x/\log(1+x\alpha)\) is strictly increasing function for any \(\alpha>0,x\geq 0\)11 implies that \(B^q(T)\leq B(T)\). ◻

12 Confidence Budget Matching for Reinforcement Learning: CBM-UCBVI↩︎

We start by defining the feedback model of RL with budget constraints and by introducing some notations. At the beginning of each round \(t\), the learner acts with a non-stationary policy \(\pi:\mathcal{S}\times [H] \rightarrow\mathcal{A}\) for \(h\) time steps. The learner observes the trajectory of the \(t^{th}\) episode, \(\brc*{(s_{t,h},a_{t,h})}_{h=1}^H\), and an adaptive adversary reveals to the learned the budget \(B(t)\). Then, the learner is allowed to query for reward feedback on the states observed at the \(t^{th}\) episode. That is, the learner can ask for a noisy version of the reward \(R_{t,h}(s,a)= r_h(s,a) +\eta_t\) where \(\mathbb{E}[R_{t,h}(s,a)]= r_h(s,a)\) and \(R_{t,h}(s,a)\in [0,1]\) a.s. as long as (i) \((s,a)\) was observed at the \(h^{th}\) time step at the \(t^{th}\) episode, i.e., \(s_{t,h}=s,a_{t,h}=a\), and, (ii) there is a spare budget. In this section, we assume that querying rewards incur a unit costs and we denote \(q_{t,h}=1\) as the event reward feedback is queried in the \(t^{th}\) episode at the \(h^{th}\) time step (which implies there is an available budget for this event to occur). Furthermore, we define the set \[\begin{align} \mathcal{L}_R\stackrel{\text{def}}{=}\brc{(s,a,h)\in \mathcal{S}\times \mathcal{A}\times[H]: r_h(s,a)>0}, \label{eq:32definition32of32LR} \end{align}\tag{12}\] that is, the set of state, action and time step tuples such that the reward is not zero1.

The CBM-UCBVI algorithm (Algorithm 5) combines the CBM principle into the UCBVI algorithm [4]. Similarly to UCBVI, CBM-UCBVI solves an optimistic MDP, \(\mathcal{M}_t=(\mathcal{S},\mathcal{A},\bar{r}_{t-1}+ b^r_{t} + b^{p}_{t},\bar{P}_{t-1},H)\), at the beginning of each round, where \(\bar{r}_{t-1},\bar{P}_{t-1}\) are the empirical reward and transition model and \(b^r_{t} + b^{p}_{t}\) are bonus terms (all defined below). CBM-UCBVI interacts with the environment with the optimal policy of \(\mathcal{M}_t\) and samples a trajectory of state-action pairs \(\brc*{(s_{t,h},a_{t,h})}_{h=1}^H\). Then, instead of receiving the reward feedback on all the state-action pairs within the trajectory, CBM-UCBVI utilizes the CBM principle to decide in which state-action pairs reward feedback is queried. Specifically, it queries for reward feedback at \((s_{t,h},a_{t,h})\) if \[2b^r_{t,h}(s_{t,h},a_{t,h}) \triangleq CI_{t,h}^r(s_{t,h},a_{t,h}) \geq 2L_{t,\delta}\br*{\sqrt{\frac{|\mathcal{L}_R|}{B(t)}} + \frac{SAH\log(1+B(t))}{B(t)}}.\] where \(L_{t,\delta}\stackrel{\text{def}}{=}\log \br*{\frac{12S^2AH t^2(t+1)}{\delta}}\). Indeed, Lemma 10 establishes that this query rule does not violate the budget constraint. Thus, if reward feedback is queried, there is an available budget.

Let \(n_{t,h}(s,a)= \sum_{k=1}^{t} 1{\brc*{s_{k,h}=s,a_{k,h}=a}}\) be the number of times \((s,a)\) was sampled at the \(h^{th}\) time step until the end of the \(t^{th}\) episode, and, \(n^q_{t,h}(s,a)= \sum_{k=1}^{t} 1{\brc*{s_{k,h}=s,a_{k,h}=a,q_{k,h}=1}}\) be the number of times the learner queried for reward feedback in \((s,a)\) at the \(h^{th}\) time step until the end of the \(t^{th}\) episode. We denote by \(\bar{r}_t,\bar{P}_t\) the empirical reward and empirical transition model, that is \[\begin{align} &\bar{P}_{t,h}(s'|s,a) = \frac{1 }{n_{t,h}(s,a) \vee 1} \sum_{k=1}^t 1{\brc*{s_{k,h+1}=s',s_{k,h}=s,a_{k,h}=a}},\\ &\bar{r}_{t,h} = \frac{1}{n^q_{t-1,h}(s,a)\vee 1} \sum_{k=1}^t 1{\brc*{s_{k,h}=s,a_{k,h}=a, q_{k,h}=1}} R_{t,h}(s,a). \end{align}\] Observe that, unlike in classic RL, \(n_{t,h}(s,a) \neq n^q_{t,h}(s,a)\); the number of times reward feedback was queried in \((s,a)\) for the \(h^{th}\) time step is not equal to the number of times \((s,a)\) was visited at the \(h^{th}\) time step. Lastly, the bonus terms \(b_t^r,\;b_t^p\) used by CBM-UCBVI are given as follows. \[\begin{align} &b_{t,h}^r(s,a) \stackrel{\text{def}}{=}\sqrt{ \frac{2 \widehat{\mathrm{Var}}_{R,t-1,h}(s,a)L_{t,\delta} }{n^q_{t-1,h}(s,a)\vee 1}} + \frac{5L_{t,\delta}}{ n^q_{t-1,h}(s,a)\vee 1},\\ &b_{t,h}^p(s,a) \stackrel{\text{def}}{=}\sqrt{\frac{2H^2L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{5H L_{t,\delta}}{n_{t-1,h}(s,a)}, \end{align}\] where \(L_{t,\delta}\stackrel{\text{def}}{=}\log \br*{\frac{12S^2AH t^2(t+1)}{\delta}}\) and \[\begin{align} \widehat{\mathrm{Var}}_{R,t-1,h}(s,a)= \begin{cases} \frac{\sum_{k,k'=1}^{n^q_{t-1,h}(s,a)}\br*{R_{k',h}(s,a) -R_{k,h}(s,a)}^2}{2(n^q_{t-1,h}(s,a)(n^q_{t-1,h}(s,a)-1)\vee 1)} & n^q_{t-1,h}(s,a)\geq 2 \\ 0 & o.w. \end{cases} \end{align}\] is the (unbiased) empirical estimate of the reward’s variance.

Figure 5: CBM-UCBVI
Figure 6: Truncated Value Iteration

12.0.0.1 Notations for the Proof

Let \(f: \mathcal{S}\rightarrow \mathbb{R}\) and \(P(s'|s,a)\) be a transition model. We use the following notation \[\mathbb{E}_{P_h(\cdot|s,a)}[f(s')] = \sum_{s'} P_h(s'|s,a) f(s').\] Furthermore, we define \(F_{t,h-1}\) as the \(\sigma\)-algebra generated by all the event until the \(h^{th}\) time step within the \(t^{th}\) episode; namely, \(s_{t,h}\) and \(a_{t,h}\) are \(F_{t,h-1}\)-measurable, (but not \(R_{t,h}\), which we assume that is generated by the end of the episode). Thus, this definition implies that \(F_{t,0}=F_{t-1}\) (where \(F_{t-1}\) is defined in Section 2). Observe that this definition also implies that \[\begin{align} \mathbb{E}_{P_{h}(\cdot|s_{t,h},a_{t,h})}[f(s')] = \mathbb{E}[f(s_{t,h+1}) | F_{t,h-1}], \label{eq:32relation32between32next32state32distribution32and32conditionig32on32F95123t44h-1125} \end{align}\tag{13}\] for \(f\) which is an \(F_{t,h-1}\) measurable function (i.e., that depends on the history until time step \(h\) at the \(t^{th}\) episode).

We are now ready to state the central result of this section which gives a performance guarantee on the regret of CBM-UCBVI.

Theorem 3 (CBM-UCBVI). For any adversarially adaptive sequence \(\brc*{B(t),s_{t,1}}_{t\geq 1}\) of budget and initial states the regret of CBM-ULCBVI is upper bounded by \[\begin{align} \mathrm{Reg}(T) \leq 36 L_{T,\delta} \br*{\sqrt{SAH^4T} + \sum_{t=1}^T\br*{\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + SAH^2\frac{\log(1+ B(t))+1}{B(t)}}} + 306 H^3S^2A L^2_{T,\delta}, \end{align}\] for any \(T\geq 1\) with probability greater than \(1-\delta\).

To establish to proof of this result we prove some preliminary results. We first define the set of good events, which hold with high probability (Section 12.1 and Section 12.3), and establish the optimism of CBM-UCBVI (Section 12.2). Furthermore, in Section 12.4, we establish that CBM-UCBVI does not violate the budget constraint. Later, this important property allows us to bound the reward bonus when reward feedback is not queried (see [lemma:32bound32on32cummulative32reward32bonus32RL]). Given these tools, we prove Theorem 3 (Section 12.5) by relaying on a key recursion lemma that bounds the on-policy errors at time step \(h\) by the on-policy errors of time step \(h+1\).

12.1 The First Good Event - Concentration Events↩︎

\[\begin{align} &E^r(t) = \brc*{\forall s\in S,a \in A:\;|\bar{r}_{t-1,h}(s,a) -r_h(s,a)| \leq \sqrt{ \frac{2 \widehat{\mathrm{Var}}_{R,t-1,h}(s,a)\log\frac{12SAH t^2(t+1)}{\delta} }{n^q_{t-1,h}(s,a)\vee 1}} + \frac{5\log \frac{12SAH t^2(t+1)}{\delta}}{ n^q_{t-1,h}(s,a)\vee 1}} \\ &E^p(t) = \brc*{\forall s,s'\in S, a\in A:\;|P_h\br*{s'|s,a} - \bar{P}_{t,h}\br*{s'|s,a}| \le \sqrt{\frac{2P(s'|s,a)\log\frac{12S^2AH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{2\log \frac{12S^2AH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)\vee 1}} \\ &E^{pv}(t)=\brc*{\forall s,a,h:\;\abs*{\br*{\bar{P}_{t,h}(\cdot \mid s,a)-P_h(\cdot \mid s,a)}^T V_{h+1}^*} \leq \sqrt{\frac{2H^2\log \frac{12SAH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{5H\log \frac{12SAH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)}}\\ \end{align}\]

Notice that the bonus \(b_{t,h}^{pv}(s,a)\) depends on the number of times we visited the state \(s\) and took action \(a\), denoted by \(n\), whereas the bonus \(b_{t,h}^r(s,a)\) depends on the number of times we queried a reward, denoted by \(n^q\). Proving this set of events hold jointly is standard, based upon the empirical Bernstein concentration bound [22].

Lemma 7 (The First Good Event). Let \(\mathbb{G}_1 = \cap_{t\geq 1} E^r(t) \cap_{t\geq 1} E^p(t) \cap_{t\geq 1} E^{pv}(t)\) be the good event. It holds that \(\Pr\br*{\mathbb{G}_1}\geq 1-\delta/2\).

Proof. We prove that each part of the good event holds with a probability of at least \(1-\delta/6\).

The event \(\cap_{t\ge1} E^r(t)\) holds with high probability. Fix an episode \(t\geq 1\) and \(s,a,h\in \mathcal{S}\times \mathcal{A}\times [H]\). There are at most \(t\) reward samples from \((s,a)\) at time step \(h\) at episode \(t\). Taking a union bound over these possible values and scaling \(\delta\rightarrow \delta/t\) we get that \[\begin{align} \Pr\br*{|\bar{r}_{t-1,h}(s,a) -r_h(s,a)| \leq \sqrt{ \frac{2 \widehat{\mathrm{Var}}_{R,t-1,h}(s,a)\log\frac{2t}{\delta} }{n^q_{t-1,h}(s,a)\vee 1}} + \frac{14\log \frac{2t}{\delta}}{3 n^q_{t-1,h}(s,a)\vee 1} } \geq 1-\delta, \end{align}\] by [22]. Note that we used the relation \(1/(n-1)\leq 2/n\) for \(n\geq 2\) and that the bound trivially holds for \(n<2\) since the reward is in \([0,1]\). Furthermore, taking a union bound on all \(s,a,h\in \mathcal{S}\times \mathcal{A} \times [H]\) and setting \(\delta \rightarrow \delta/6SAHt(t+1)\) results in \(\Pr\br*{\cap_{t\ge1} E^r(t)} \leq 1-\delta/6\) by using \(\sum_{t=1}^\infty \frac{\delta}{t(t+1)}=\delta\).

The event \(\cap_{t\ge1} E^p(t)\) holds with high probability. Fix an episode \(t\geq 1\) and \(s,a,s',h\in \mathcal{S}\times \mathcal{A} \times \mathcal{S} \times [H]\). At the \(t^{th}\) episode the tuple can be sampled for at most \(t\) times. Taking a union bound on all these possible values and applying Bennet’s inequality [22], we get \[\begin{align} \Pr\br*{|P_h\br*{s'|s,a} - \bar{P}_{t,h}\br*{s'|s,a}| \le \sqrt{\frac{2P(s'|s,a))\log\frac{2t}{\delta}}{n_{t-1}(s,a)\vee 1}} + \frac{4\log\frac{2t}{\delta}}{3n_{t-1}^p(s,a)\vee 1}} \geq 1-\delta, \end{align}\] since the variance of a Bernoulli random variable is \(P(s'|s,a)(1-P(s'|s,a)\leq P(s'|s,a)\). Taking a union bound over all \(s,a,s',h\in \mathcal{S}\times \mathcal{A} \times \mathcal{S} \times [H]\) and scaling \(\delta \rightarrow \delta/6S^2AHt(t+1)\) and repeating the same reasoning as before concludes the high probability bound for \(\cap_{t\ge1} E^p(t)\).

The event \(\cap_{t\ge1} E^{pv}(t)\) holds with high probability. Repeating the same arguments as for the event \(\cap E^r(t)\) while noticing that \(\bar{P}_{t,h}(\cdot \mid s,a)^TV_{h+1}^*\in\brs*{0,H}\) (and, thus, also the empirical variance, for all \(n\ge2\)) concludes the proof.

Combining the results. Taking a union bound concludes the proof. ◻

12.2 Optimism↩︎

We can prove that the value is optimistic using standard techniques.

Lemma 8 (Value Function is Optimistic). Conditioning on the first good event \(\mathbb{G}_1\) the value function of CBM-UCBVI is optimism for all \(s\in \mathcal{S},h\in [H],t\geq 1\), i.e., \[\begin{align} \forall s\in \mathcal{S},h\in[H], t\ge1:\;V^*_h(s)\leq \bar{V}_{t,h}(s). \end{align}\]

Proof. We prove this result via induction.

Base case, \(h=H\) and for all \(s\in \mathcal{S}\). Let \(a^*(s)\in \arg\max_{a\in \mathcal{A}} r_{H}(s,a)\). For any \(s\in \mathcal{S}\) it holds that \[\begin{align} &V^*_{H}(s) -\bar{V}_{t,H}(s) = r_{H}(s,a^*(s)) - \min\brc*{\max_a \brc*{\bar{r}_{t,H}(s,a) + b_{t,H}^r(s,a)},1}. \label{eq:32optimism32base32case32ucbvi32rel321} \end{align}\tag{14}\] Assume that \(\max_a \bar{r}_{t,H}(s,a) + b_{t,H}^r(s,a) < 1\) then, \[\begin{align} &\eqref{eq:32optimism32base32case32ucbvi32rel321} \leq r_{H}(s,a^*(s)) - \bar{r}_{t,H}(s,a^*(s)) - b_{t,H}^r(s,a^*(s))\\ &\leq b_{t,H}^r(s,a^*(s)) - b_{t,H}^r(s,a^*(s))\leq 0 . \end{align}\] If \(\max_a \brc*{\bar{r}_{t,H}(s,a) + b_{t,H}^r(s,a)}\geq 1\) then trivially \(\eqref{eq:32optimism32base32case32ucbvi32rel321}\leq 0\) since \(r_{H}(s,a)\in [0,1]\) for all \(a\in \mathcal{A}\). Overall, we conclude that \(V^*_{H}(s) \leq \bar{V}_{t,H}(s)\) for all \(s\in \mathcal{S}\) for \(h=H\).

Induction step, for \(h\in [H]\) \(s\in \mathcal{S}\) assuming it holds for all \(h'\geq h+1\). Let \(a^*(s)\in \arg\max_{a\in \mathcal{A}} Q^{*}_h(s,a)\) The following relations hold. \[\begin{align} &V^*_h(s)- \bar{V}_{t,h}(s) = Q^{*}_h(s,a^*(s))- \min\brc*{\max_a\bar{Q}_{t,h}(s,a),H-h} \label{eq:32optimism32base32case32ucbvi32rel322} \end{align}\tag{15}\] Assume that \(\max_a\bar{Q}^{\pi}_{t,h}(s,a)< H-h\), then, \[\begin{align} \eqref{eq:32optimism32base32case32ucbvi32rel322} &\leq Q^{*}_h(s,a^*(s)) - \bar{Q}_{t,h}(s,a^*(s))\\ & = r_h(s,a^*(s)) + P_h(\cdot| s,a^*(s))^TV^*_{h+1} \\ &\quad- \br*{\bar{r}_{t-1,h}(s,a^*(s)) + b_{t,h}^r(s,a^*(s)) + b_{t,h}^p(s,a^*(s)) + \bar{P}_h(\cdot| s,a^*(s))^T\bar{V}_{t,h+1}}\\ &= r_h(s,a^*(s)) - \bar{r}_{t-1,h}(s,a^*(s)) - b_{t,h}^r(s,a^*(s)) + (P_h-\bar{P}_{t-1,h})(\cdot| s,a^*(s))^TV^*_{h+1} - b_{t,h}^p(s,a^*(s)) \\ &\quad+ \mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a^*(s))}[ \underbrace{V^{*}_{h+1}(s') - \bar{V}_{t,h+1}(s')}_{\leq 0\;\mathrm{Induction\;hypothesis}}]\\ &\leq b_{t,h}^r(s,a^*(s)) - b_{t,h}^r(s,a^*(s)) - b_{t,h}^p(s,a^*(s)) + b_{t,h}^p(s,a^*(s)) (t)\cup\cap_t E^{r}(t) holds}\\ &=0. \end{align}\] If \(\max_a\bar{Q}^{\pi}_{t,h}(s,a)\geq H-h\) then trivially \(\eqref{eq:32optimism32base32case32ucbvi32rel322}\leq 0\) since \(Q^*_h(s,a)\leq H-h\) since it is an expectation over \(H-h\) terms, each bounded by \([0,1]\). Thus, \(V^*_{h}(s) \leq \bar{V}_{t,h}(s)\) for all \(s\in \mathcal{S}\) for \(h'\geq h\) which proves the induction step and concludes the proof. ◻

12.3 The Second Good Event - Optimism Bound↩︎

We now prove a high probability bound which holds conditioned on the first good event \(\mathbb{G}_1\).

Lemma 9 (The Second Good Event). Let \(\mathbb{G}_1\) be the event defined in Lemma 7.Let \(\brc*{Y_{t ,h}}_{t\geq 1}\) the random variables defined as \[\begin{align} Y_{t ,h} \stackrel{\text{def}}{=}\bar{V}_{t,h+1}(s_{t,h+1}) - V^{\pi_t}_{h+1}(s_{t,h+1})\\ \end{align}\] The second good event is defined as \(\mathbb{G}_2 =E^{O}\) where \[\begin{align} E^{O}=\brc*{\forall h\in[H-1], T\geq 1:\;\sum_{t=1}^T \mathbb{E}[Y_{t ,h}|F_{t,h-1}]\leq \br*{1+\frac{1}{2H}} \sum_{t=1}^T Y_{t ,h} + 18H^2 \log\frac{2HT(T+1)}{\delta}} \end{align}\] Then, the good event \(\mathbb{G}= \mathbb{G}_1\cap \mathbb{G}_2\) holds with probability greater than \(1-\delta\).

Proof. Fix \(h\in [H],T\). We start by defining the random variable \(W_t=1{\brc*{\bar{V}_{t,h+1}(s) - V^{\pi_t}_{h}(s)\ge 0, \forall h\in\brs*{H}.s\in\mathcal{S}}}\) and the random process \(Y_t = Y_{t ,h}= \bar{V}_{t,h+1}(s_{t,h+1}) - V^{\pi_t}_{h+1}(s_{t,h+1})\) w.r.t. the filtration \(\brc*{F_{t+1,h-1}}_{t\geq 1}\) (observe that \(Y_{t ,h}\) is \(F_{t+1,h-1}\) measurable). Also notice that \(W_t\) is \(F_{t,h-1}\) measurable, as both \(\pi_t\) and \(\bar{V}_{t,h}\) are \(F_{t-1}\)-measurable. Finally, define \(\tilde{Y}_t = W_tY_t\). Importantly, \(\tilde{Y}_t\in\brs*{0,H}\) almost surely, by definition of \(W_t\) and since \(\bar{V}_{t,h+1}(s),V^{\pi_t}_{h}(s)\in [0,H]\) by the update rule. Thus, using 20 with \(C=H\ge1\), we get \[\begin{align} \sum_{t=1}^T \mathbb{E}[\tilde{Y}_{t ,h}|F_{t,h-1}]\leq \br*{1+\frac{1}{2H}} \sum_{t=1}^T \tilde{Y}_{t ,h} + 18H^2 \log\frac{1}{\delta}, \end{align}\] with probability greater than \(1-\delta\), and since \(W_t\) is \(F_{t,h-1}\)-measurable, we can write \[\begin{align} \sum_{t=1}^T W_t\mathbb{E}[Y_{t ,h}|F_{t,h-1}]\leq \br*{1+\frac{1}{2H}} \sum_{t=1}^TW_tY_{t ,h} + 18H^2 \log\frac{1}{\delta}. \label{eq:32good32event32relation321} \end{align}\tag{16}\] Importantly, notice that under \(\mathbb{G}_1\), it holds that \(W_t\equiv1\) (by 8). Therefore, applying the union bound and setting \(\delta= \delta/2HT(T+1)\) we get \[\begin{align} &\Pr(\overline{E^{O}}\cap \mathbb{G}_1)\\ &\leq \sum_{h=1}^H\sum_{T=1}^\infty \Pr\br*{\brc*{\sum_{t=1}^T \mathbb{E}[Y_{t ,h} |F_{t,h-1}]\geq \br*{1+\frac{1}{2H}} \sum_{t=1}^T Y_{t ,h} + 18H^2 \log\frac{2HT(T+1)}{\delta}}\cap\mathbb{G}_1} \\ & = \sum_{h=1}^H\sum_{T=1}^\infty \Pr\br*{\brc*{\sum_{t=1}^T W_t\mathbb{E}[Y_{t ,h} |F_{t,h-1}]\geq \br*{1+\frac{1}{2H}} \sum_{t=1}^T W_tY_{t ,h} + 18H^2 \log\frac{2HT(T+1)}{\delta}}\cap\mathbb{G}_1}_1}\\ & \le \sum_{h=1}^H\sum_{T=1}^\infty \Pr\br*{\sum_{t=1}^T W_t\mathbb{E}[Y_{t ,h} |F_{t,h-1}]\geq \br*{1+\frac{1}{2H}} \sum_{t=1}^T W_tY_{t ,h} + 18H^2 \log\frac{2HT(T+1)}{\delta}}\\ &\leq \sum_{h=1}^H\sum_{T=1}^\infty \frac{\delta}{2HT(T+1)}=\delta/2, }. \end{align}\] Finally, we have \[\begin{align} \Pr(\overline{\mathbb{G}}) \le \Pr(\overline{\mathbb{G}_2}\cap\mathbb{G}_1) + \Pr(\overline{\mathbb{G}_1}) \le \frac{\delta}{2} + \frac{\delta}{2} = \delta \end{align}\] ◻

12.4 CBM-UCBVI: Budget Constraint is Satisfied↩︎

Lemma 10 (CBM-UCBVI: Budget Constraint is Satisfied). For any \(T\geq 0\) the budget constraint is not violated, that is \(B^q(T)\leq B(T)\) almost surely.

The number of times feedback was queried after \(T\) episodes \(B^q(T)\) is by definition \(B^q(T)= \sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}}.\) We prove the lemma by extending the techniques used for CBM-UCB and CBM-OFUL (see Lemma 5 and Lemma 6).

Proof. It holds that \[\begin{align} B^q(T)&= \sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}} \nonumber \\ &\leq \sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}}\frac{CI_{t,h}^R(s_{t,h},a_{t,h})}{ L_{t,\delta} \br*{6\sqrt{\frac{|\mathcal{L}_R|}{B(t)}} + 4SAH\frac{\log(1+B(t))+1}{B(t)}}} \nonumber\\ &\leq \sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}}\frac{\sqrt{ \frac{2 \widehat{\mathrm{Var}}_{R,t-1,h}(s_{t,h},a_{t,h}) }{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}} + \frac{2 }{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}}{6\sqrt{\frac{|\mathcal{L}_R| }{B(t)}} + 4SAH\frac{\log(1+B(t)) + 1}{B(t)}} }}{L_{t,\delta}},\frac{L_{t,\delta}}{L_{t,\delta}} \leq 1} \nonumber\\ &\leq \br*{6\sqrt{\frac{|\mathcal{L}_R| }{B(T)}} + 4SAH\frac{ \log(1+B(T)) + 1}{B(T)}}^{-1} \cdot \nonumber\\ &\sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}}\br*{\sqrt{ \frac{2 \widehat{\mathrm{Var}}_{R,t-1,h}(s_{t,h},a_{t,h}) }{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}} + \frac{2 }{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}}, \label{eq:32RL32budget32constraint32relation321} \end{align}\tag{17}\] where the last relation holds since the budget is non-decreasing in \(T\) and both \(\frac{1}{\sqrt{x}},\frac{\log(1+x)+1}{x}\) are monotonically decreasing functions for \(x>0\). We now upper bound the sum in the last relation. Recall that up to time \(t\), a state action pair \((s,a)\) at time step \(h\) was queried \(n^q_{T,h}(s,a)\) times. Also, notice that \(\widehat{\mathrm{Var}}_{R,t-1}(s,a)=0\) if \((s,a,h)\notin \mathcal{L}_R\) and \(\widehat{\mathrm{Var}}_{R,t-1}(s,a)\leq 1\) if \((s,a,h)\in \mathcal{L}_R\). Then, we can write \[\begin{align} \sum_{t=1}^T\sum_{h=1}^H 1{\brc*{q_{t,h}=1}}&\br*{\sqrt{ \frac{2 \widehat{\mathrm{Var}}_{R,t-1,h}(s_{t,h},a_{t,h}) }{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}} + \frac{2 }{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}} \nonumber \\ &\leq \sum_{s,a,h\in \mathcal{L}_R} \sum_{i=0}^{n^q_{T,h}(s,a)}\sqrt{ \frac{2}{i\vee 1}} + \sum_{s,a,h} \sum_{i=0}^{n^q_{T,h}(s,a)}\frac{2 }{i\vee 1} }_{R,t-1}(s,a)}\\ &\leq 6\sum_{s,a,h\in \mathcal{L}_R} \sqrt{n^q_{T,h}(s,a))} +2\sum_{s,a,h}\br*{2+\log(n^q_{T,h}(s,a)) \vee 1)}\nonumber\\ &\overset{(a)}{\leq} 6\sqrt{|\mathcal{L}_R|B^q(T)} + 4SAH\log(1+B^q(T)) + 4SAH, \label{eq:32RL32budget32constraint32relation322} \end{align}\tag{18}\] where \((a)\) follows by Jensen’s inequality and \(\sum_{s,a,h\in \mathcal{L}_R} n^q_{T,h}(s,a)) \leq \sum_{s,a,h} n^q_{T,h}(s,a))=B^q(T)\). Plugging this back into 17 we get \[\begin{align} &B^q(T)\leq \eqref{eq:32RL32budget32constraint32relation321}\leq \br*{6\sqrt{\frac{|\mathcal{L}_R| }{B(T)}} + 4SAH\frac{\log(1+B(T)) + 1}{B(T)}}^{-1} \br*{6\sqrt{|\mathcal{L}_R|B^q(T)} + 4 SAH\log(1+B^q(T))+4SAH} \nonumber\\ \iff & 6\sqrt{\frac{|\mathcal{L}_R| }{B(T)}} + 4SAH\frac{\log(1+B(T))+1}{B(T)}\leq 6\sqrt{\frac{|\mathcal{L}_R|}{B^q(T)}} + 4SAH\frac{\log (1+B^q(T))+1 }{B^q(T)}. \label{eq:32RL32budget32constraint32almost32final} \end{align}\tag{19}\]

Remember that if \(f(x)\) is strictly monotonically decreasing function then \(f(x_1)\leq f(x_2) \iff x_1\geq x_2\). Furthermore, see that \(f_{\alpha,\beta}(x) = \frac{\alpha}{\sqrt{x}} + \beta\frac{\log(1+x)+1}{x}\) is a strictly monotonically decreasing function for \(x>0, \alpha\geq 0,\beta>0\) (since both \(\frac{1}{\sqrt{x}}\) and \(\frac{\log(1+x)+1}{x}\) are strictly decreasing). We can then write 19 , equivalently as \[\begin{align} f_{\alpha,\beta}(B(T)) \leq f_{\alpha,\beta}(B^q(T)), \end{align}\] for \(\alpha = 6|\mathcal{L}_R|,\beta = 4SAH\), and since \(f_{\alpha,\beta}\) is strictly monotonically decreasing it implies that \(B^q(T)\leq B(T)\). ◻

12.5 Proof of Theorem 3↩︎

Before establishing the proof Theorem 3 we establish the following key lemma that bounds the on-policy errors at time step \(h\) by the on-policy errors at time step \(h+1\) and additional additive terms. Given this result, the analysis follows with relative ease. We are now ready to establish Theorem 3.

Lemma 11 (CBM-UCBVI, Key Recursion Bound). Conditioned on the good event \(\mathbb{G}\), the following bound holds for all \(h\in [H]\). \[\begin{align} &\sum_{t=1}^{T} \bar{V}_{t,h}(s_{t,h}) - V^{\pi_t}_{h}(s_{t,h})\\ &\leq 27H^2\log\br*{\frac{2HT(T+1)}{\delta}}+ 2\sum_{t=1}^T b^r_{t,h}(s_{t,h},a_{t,h}) + \sum_{t=1}^T 3H\sqrt{\frac{ L_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + \frac{13H^2S L_{t,\delta}}{ n_{t-1,h}(s_{t,h},a_{t,h})\vee 1} \\ &\quad\quad + \br*{1+ \frac{1}{2H}}^2\sum_{t=1}^T \bar{V}_{t,h+1}(s_{t,h+1}) - V^{\pi_t}_{h+1}(s_{t,h+1}). \end{align}\]

Proof. Let \(\Delta P_{t-1,h}(\cdot |s,a) = (\bar{P}_{t-1,h}-P_h)(\cdot |s,a)\). We bound each of the terms in the sum as follows. \[\begin{align} \bar{V}_{t,h}(s_{t,h})& - V_{h}^{\pi_t}(s_{t,h}) \nonumber \\ &= \bar{r}_{t-1,h}(s_1,a_{t,h}) + b^r_{t,h}(s_{t,h},a_{t,h}) - r_h(s_{t,h},a_{t,h}) + b^p_{t,h}(s_{t,h},a_{t,h}) \nonumber\\ &\quad+ \mathbb{E}_{\bar{P}_{t-1,h}(\cdot| s_{t,h},a_{t,h})}[ \bar{V}_{t,h+1}(s_{h+1})] - \mathbb{E}_{P_{h}(\cdot| s_{t,h},a_{t,h})}[ V_{h+1}^{\pi_t}(s_{h+1})] \nonumber \\ &\leq 2b^r_{t,h}(s_{t,h},a_{t,h}) + b^p_{t,h}(s_{t,h},a_{t,h}) \nonumber\\ &\quad+ \mathbb{E}_{\bar{P}_{t-1,h}(\cdot| s_{t,h},a_{t,h})}[ \bar{V}_{t,h+1}(s_{h+1})] - \mathbb{E}_{P_{h}(\cdot| s_{t,h},a_{t,h})}[ V_{h+1}^{\pi_t}(s_{h+1})]_1 holds}\nonumber\\ & = 2b^r_{t,h}(s_{t,h},a_{t,h}) + b^p_{t,h}(s_{t,h},a_{t,h}) + \mathbb{E}_{P_{h}(\cdot| s_{t,h},a_{t,h})}[ \bar{V}_{t,h+1}(s_{h+1}) - V_{h+1}^{\pi_t}(s_{h+1}) ] \nonumber\\ &\quad+\Delta P_{t-1,h} (\cdot| s_{t,h},a_{t,h})^T \bar{V}_{t-1,h+1} \nonumber\\ & = 2b^r_{t,h}(s_{t,h},a_{t,h}) + b^p_{t,h}(s_{t,h},a_{t,h}) + \mathbb{E}_{P_{h}(\cdot| s_{t,h},a_{t,h})}[ \bar{V}_{t,h+1}(s_{h+1}) - V_{h+1}^{\pi_t}(s_{h+1}) ] \nonumber\\ &\quad+ \Delta P_{t-1,h} (\cdot| s_{t,h},a_{t,h})^T(\bar{V}_{t,h+1} - V^*_{h+1}) +\underbrace{\Delta P_{t-1,h} (\cdot| s_{t,h},a_{t,h})^TV^*_{h+1}}_{\leq b_{t,h}^{p}(s_{t,h},a_{t,h})} \nonumber \\ &\leq 2b^r_{t,h}(s_{t,h},a_{t,h}) + 2b^p_{t,h}(s_{t,h},a_{t,h}) + \mathbb{E}_{P_{h}(\cdot| s_{t,h},a_{t,h})}[ \bar{V}_{t,h+1}(s_{h+1}) - V_{h+1}^{\pi_t}(s_{h+1}) ]\nonumber \\ & \quad + \Delta P_{t-1,h} (\cdot| s_{t,h},a_{t,h})^T(\bar{V}_{t,h+1} - V^*_{h+1})_1 holds}\nonumber\\ &\overset{(a)}{\le}2b^r_{t,h}(s_{t,h},a_{t,h}) + 3H\sqrt{\frac{ L_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + \frac{ 13H^2SL_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1} \nonumber\\ &\quad + \br*{1+\frac{1}{2H}}\mathbb{E}_{P_{h}(\cdot| s_{t,h},a_{t,h})}[ \bar{V}_{t,h+1}(s_{h+1}) - V_{h+1}^{\pi_t}(s_{h+1})], \end{align}\] where \((a)\) by substituting \(b^p_{t,h}(s,a)\) while bounding its last term by \(\frac{5H^2SL_{t,\delta}}{n_{t-1,h}(s,a)\vee1}\) and by applying Lemma 21. Specifically, we set \({\alpha=2H,C_1=C_2=2L_{t,\delta}}\) and, thus, \(HS(C_2+\alpha C_2/4)\le 3H^2SL_{t,\delta}\) and observe that the conditions of 21 hold since the event \(\cap_t E^p(t)\) holds and by the optimism of 8 under the good event.

Taking the sum over the latter inequality we conclude the proof since \[\begin{align} &\sum_{t=1}^T \bar{V}_{t,h}(s_{t,h}) - V_{h}^{\pi_t}(s_{t,h})\\ &\leq 2\sum_{t=1}^Tb^r_{t,h}(s_{t,h},a_{t,h}) + \sum_{t=1}^T 3H\sqrt{\frac{ L_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + \frac{ 13H^2SL_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1} \\ &\quad + \br*{1+\frac{1}{2H}}\sum_{t=1}^T \mathbb{E}_{P_{h}(\cdot| s_{t,h},a_{t,h})}[ \bar{V}_{t,h+1}(s_{h+1}) - V_{h+1}^{\pi_t}(s_{h+1})]\\ &=2\sum_{t=1}^Tb^r_{t,h}(s_{t,h},a_{t,h}) + \sum_{t=1}^T 3H\sqrt{\frac{ L_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + \frac{ 13H^2SL_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1} \\ &\quad + \br*{1+\frac{1}{2H}}\sum_{t=1}^T \mathbb{E}[ \bar{V}_{t,h+1}(s_{h+1}) - V_{h+1}^{\pi_t}(s_{h+1})|F_{t,h-1}]\\ &\leq 27H^2 \log\br*{\frac{2HT(T+1)}{\delta}} + 2\sum_{t=1}^Tb^r_{t,h}(s_{t,h},a_{t,h}) + \sum_{t=1}^T 3H\sqrt{\frac{ L_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + \frac{ 13H^2SL_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1} \\ &\quad + \br*{1+\frac{1}{2H}}^2\sum_{t=1}^T \bar{V}_{t,h+1}(s_{t,h+1}) - V_{h+1}^{\pi_t}(s_{t,h+1}) _2 = E^O}, \end{align}\] where in the last relation we also bounded \(18\br*{1+\frac{1}{2H}}\le 27\). ◻

We are now ready to prove Theorem 3.

Proof. We start by conditioning on the good event \(\mathbb{G}\), which holds with probability greater than \(1-\delta\). Conditioned on the good event, the value is optimistic (Lemma 8). This fact, together with the key recursion lemma (Lemma 11) yields the following. \[\begin{align} \sum_{t=1}^{T}& V_{1}^*(s_{t,1}) - V_{1}^{\pi_t}(s_{t,1}) \leq \sum_{t=1}^{T} \bar{V}_{t,1}(s_{t,1}) - V_{1}^{\pi_t}(s_{t,1})\\ &\leq 27H^2 \log\br*{\frac{2HT(T+1)}{\delta}} + \sum_{t=1}^T2 b^r_{t,1}(s_{t,1},a_{t,1}) + 3H\sqrt{\frac{ L_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + \frac{ 13H^2SL_{t,\delta}}{n_{t-1,1}( s_{t,1},a_{t,1})\vee 1} \\ &\quad + \br*{1+\frac{1}{2H}}^2 \sum_{t=1}^T \bar{V}_{t,2}(s_{t,h+1}) - V_{2}^{\pi_t}(s_{t,2}) . } \end{align}\] Iterating on this relation over \(h\in\brc*{2,\dots,H}\) and using \(\br*{1+\frac{1}{2H}}^{2h}\leq e\leq 3\) for \(h\le H\) and \(\bar{V}_{t,H+1}(s) = V_{H+}^{\pi_t}(s) = 0\), we conclude that \[\begin{align} \sum_{t=1}^{T} V_{1}^*(s_{t,1}) - V_{1}^{\pi_t}(s_{t,1}) &\leq 81H^3 \log\br*{\frac{2HT(T+1)}{\delta}} + 6\sum_{t=1}^T \sum_{h=1}^H b^r_{t,h}(s_{t,h},a_{t,h}) \nonumber \\ &\quad + \sum_{t=1}^T \sum_{h=1}^H 9H\sqrt{\frac{ L_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + \frac{ 39 H^2S L_{t,\delta} }{n_{t-1,h}( s_{t,h},a_{t,h}) \vee 1}. \label{eq:32rl32final32bound32relation321} \end{align}\tag{20}\] The first sum in 20 is bounded in [lemma:32bound32on32cummulative32reward32bonus32RL] as \[\begin{align} 6\sum_{t=1}^T &\sum_{h=1}^H b^r_{t,h}(s_{t,h},a_{t,h}) \\ &\leq 3L_{t,\delta}\br*{6 \sqrt{|\mathcal{L}_R| HT } + 10 SAH\log(HT) + 23SAH + \sum_{t=1}^T\br*{6\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + 4SAH\frac{\log(1+ B(t))+1}{B(t)}}}. \end{align}\] The second sum in 20 is bounded via the following standard analysis as follows. \[\begin{align} \sum_{t=1}^T \sum_{h=1}^H \frac{ 1}{n_{t-1,h}( s_{t,h},a_{t,h}) \vee 1} &= \sum_{s,a,h}\sum_{i=0}^{n_{T,h}(s,a)} \frac{ 1}{i \vee 1}\nonumber\\ &\leq \sum_{s,a,h}(2+\log(n_{T,h}(s,a)\vee 1)) \nonumber\\ &\leq SAH(2+\log(TH)) \label{eq:32standard32RL32analysis32sum32of32147n} \end{align}\tag{21}\] where the last relation holds by Jensen’s inequality while using \(\sum_{s,a,h}n_{T,h}(s,a) = TH\). Similarly, we bound \[\begin{align} \sum_{t=1}^T \sum_{h=1}^H \frac{ 1}{\sqrt{n_{t-1,h}( s_{t,h},a_{t,h)} \vee 1}} &= \sum_{s,a,h}\sum_{i=0}^{n_{T,h}(s,a)} \frac{ 1}{\sqrt{i \vee 1}}\nonumber\\ &\leq \sum_{s,a,h}\br*{1+2\sqrt{n_{T,h}(s,a)}} \nonumber\\ &\leq SAH + 2\sqrt{SAH^2T} \label{eq:32standard32RL32analysis32sum32of32147sqrt40n41} \end{align}\tag{22}\] Thus, the second sum in 20 is bounded by \[\begin{align} &\sum_{t=1}^T \sum_{h=1}^H 9H\sqrt{\frac{ L_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + \sum_{t=1}^T \sum_{h=1}^H \frac{ 39 H^2S L_{t,\delta} }{n_{t-1,h}( s_{t,h},a_{t,h}) \vee 1}\\ &\leq 9H \sqrt{L_{T,\delta}}\sum_{t=1}^T \sum_{h=1}^H \sqrt{\frac{1}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}} + 39 H^2S L_{T,\delta} \sum_{t=1}^T \sum_{h=1}^H \frac{ 1}{n_{t-1,h}( s_{t,h},a_{t,h}) \vee 1}is increasing in t}\\ &\leq 18 \sqrt{SAH^4T L_{T,\delta}} +39 H^3S^2A L_{T,\delta}\log(TH) + 87H^3S^2A L_{T,\delta}. , \eqref{eq:32standard32RL32analysis32sum32of32147sqrt40n41} and since L_{T,\delta}\ge1} \end{align}\] Plugging the bounds on the first and second sums in 20 concludes the proof. ◻

lemma-rstBoundCumulativeRewardBonusRL The following bound holds almost surely \[\begin{align} \sum_{t=1}^T \sum_{h=1}^H &CI^r_{t,h}(s_{t,h},a_{t,h}) = 2\sum_{t=1}^T \sum_{h=1}^H b^r_{t,h}(s_{t,h},a_{t,h})\\ &\leq L_{t,\delta}\br*{6 \sqrt{|\mathcal{L}_R| HT } + 10 SAH\log(HT) + 23SAH + \sum_{t=1}^T\br*{6\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + 4SAH^2\frac{\log(1+ B(t))+1}{B(t)}}}. \end{align}\]

We bound this sum based on the analysis technique that was utilized for CBM-UCB and UCB-OFUL.

Proof. Let \(q_{t,h}=1\) be the event reward feedback was queried at the \(h^{th}\) time step of the \(t^{th}\) episode and \(q_{t,h}=0\) be its complement event. The following relations hold. \[\begin{align} & \sum_{t=1}^T \sum_{h=1}^H CI^r_{t,h}(s_{t,h},a_{t,h}) = 2\sum_{t=1}^T \sum_{h=1}^H b^r_{t,h}(s_{t,h},a_{t,h}) \nonumber \\ &=\underbrace{\sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}}CI^r_{t,h}(s_{t,h},a_{t,h})}_{(i)} + \underbrace{\sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=0}}CI^r_{t,h}(s_{t,h},a_{t,h})}_{(ii)} \label{eq:32central32term32reward32bonus32lemma} \end{align}\tag{23}\]

Bound on term \((i)\), episodes in which feedback is queried. The following relations hold. \[\begin{align} (i) &= 2\sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}}b^r_{t,h}(s_{t,h},a_{t,h})\\ &\leq 2\sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}}\sqrt{ \frac{2 \widehat{\mathrm{Var}}_{r,t-1,h}(s_{t,h},a_{t,h}) L_{t,\delta}}{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}} + 2\sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=1}}\frac{5 L_{t,\delta}}{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}\\ &\overset{(a)}{\leq} 3 \sqrt{L_{T,\delta}}\sum_{s,a,h\in \mathcal{L}_R} \sum_{i=0}^{n^q_{T,h}(s,a)}\sqrt{ \frac{1}{n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1}} + 10L_{T,\delta}\sum_{s,a,h} \sum_{i=0}^{n_{T,h}(s,a)} \frac{1}{ n^q_{t-1,h}(s_{t,h},a_{t,h})\vee 1} \\ &\leq 6 \sqrt{|\mathcal{L}_R|B^q(T) L_{T,\delta} } + 10 L_{T,\delta}SAH\log(B^q(T)) + 23SAHL_{T,\delta} ,\eqref{eq:32standard32RL32analysis32sum32of32147sqrt40n41}, \& \sum_{s,a,h}n^q_{T,h}(s,a) = B^q(T)}\\ &\leq 6 \sqrt{|\mathcal{L}_R| TH L_{T,\delta} } + 10 L_{T,\delta}SAH\log(TH)+ 23SAHL_{T,\delta}, \end{align}\] Relation \((a)\) holds since \(\widehat{\mathrm{Var}}_{r,t-1,h}(s_{t,h},a_{t,h})=0\) for all rewards with deterministic reward (and zero reward is deterministic); for non-deterministic rewards, \(\widehat{\mathrm{Var}}_{r,t-1,h}(s_{t,h},a_{t,h})\leq 1\).

Bound on term \((ii)\), episodes in which feedback is not queried. Due to Lemma 10 it holds that \(B^q(T)\leq B(T)\), that is, the budget constraint is never violated. For this reason, if reward is not queried, it does not satisfy the query rule of CBM-UCBVI. Using this, we get the following relations. \[\begin{align} (ii) &= \sum_{t=1}^T \sum_{h=1}^H 1{\brc*{q_{t,h}=0}}CI^r_{t,h}(s_{t,h},a_{t,h})\\ &\leq \sum_{t=1}^T \sum_{h=1}^H \br*{L_{t,\delta}\br*{6\sqrt{\frac{|\mathcal{L}_R|}{B(t)}} + 4SAH \frac{\log(1+B(t))+1}{B(t)}}}\\ &\leq L_{T,\delta}\sum_{t=1}^T \sum_{h=1}^H \br*{6\sqrt{\frac{|\mathcal{L}_R|}{B(t)}} +4SAH \frac{\log(1+B(t))+1}{B(t)}}. \end{align}\]

Combining the bounds. Combining the bounds on \((i)\) and \((ii)\) we conclude the proof, \[\begin{align} \eqref{eq:32central32term32reward32bonus32lemma} \leq L_{t,\delta}\br*{6 \sqrt{|\mathcal{L}_R| HT } + 10 SAH\log(HT) + 23SAH + \sum_{t=1}^T\br*{6\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + 4SAH^2\frac{\log(1+ B(t))+1}{B(t)}}}. \end{align}\] ◻

13 Confidence Budget Matching for Reinforcement Learning – CBM-ULCVI↩︎

Figure 7: CBM-ULCVI

In the previous section, we analyzed the performance of CBM-UCBVI algorithm, which incorporates the CBM principle into the Hoeffding-based UCBVI-CH [4]. However, the performance of CBM-UCBVI is worse by a factor of \(\sqrt{H}\) relatively to the minimax performance even when the budget is \(B(t)=Ht\). Then, the minimax regret bound is \(\sqrt{SAH^3T}\) [35]. Building on ideas from [4], [13] we analyze the CBM Upper Lower Confidence Interval VI (CBM-ULCVI), which uses tighter CI to shave an additional \(\sqrt{H}\) from the asymptotic performance.

The idea is essentially the one used in [4], [12][15]. Instead of bounding \(\mathrm{Var}_{P(\cdot|s,a)} V^*_{h+1}\leq H^2\) and constructing the bonus as \(b^p_{t,h}(s,a)\sim \frac{H}{\sqrt{n_{t-1,h}(s,a)}}\) (see Section 12), we build the following bonus to compensate on errors in transition model: \[\begin{align} b^p_{t,h}(s,a)\sim \frac{\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot |s,a)}(\bar{V}_{h+1}^{k})} }{\sqrt{n_{t-1,h}(s,a)}} + \frac{1}{n_{t-1,h}(s,a)}. \label{eq:32sketch32b95p32cbvi32UL} \end{align}\tag{24}\] This allows to get a performance guarantee that depends on the sum of variances along the trajectories \(\sum_{t}\sum_{h} \mathrm{Var}_{P_{h}(\cdot|s_{t,h},a_{t,h})}\). These can be bounded by \(\sim H^2T\) via the law of total variance [4]. Ultimately, this shaves a \(\sqrt{H}\) factor in the final bound: a ‘naïve’ bound, without applying the law of total variance, would result in \(H^3T\). Our actual bonus is similar to the one used in [13], i.e., we use proper lower and upper value functions in addition to the bonus 24 . However, our analysis is more ‘direct’ relatively to [13]; we bound the regret by on-policy errors, and not expected on-policy errors as in [13]. This becomes crucial due to the usage in the CBM scheme in our algorithm. Specifically, the CBM allows us to bound only \[CI^R_{t,h}(s_{t,h},a_{t,h})1{\brc*{q_{t,h}=0}}\leq \tilde{\mathcal{O}}\br*{\sqrt{\frac{|\mathcal{L}_R|}{B(t)}} +\frac{SAH}{B(t)}},\] only on encountered state-action pairs, i.e., not under expectation.

Formally, we work with the following bonuses: \[\begin{align} &b_{t,h}^r(s,a) = \sqrt{ \frac{2 \widehat{\mathrm{Var}}_{R,t-1,h}(s,a) L_{t,\delta} }{n^q_{t-1,h}(s,a)\vee 1}} + \frac{5 L_{t,\delta}}{ n^q_{t-1,h}(s,a)\vee 1},\\ &b_{t,h}^{p}(s,a; \bar{V}_{t,h+1},\underaccent{\bar}{V}_{t,h+1}) = \sqrt{\frac{2\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1}) L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{44H^2S L_{t,\delta}}{n_{t-1,h}(s,a) \vee 1} \\ &\qquad\qquad\qquad\qquad\qquad\quad + \frac{1}{16H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs{\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t,h+1}(s')} \end{align}\] where \(L_{t,\delta}=\log \frac{16S^2AH t^2(t+1)}{\delta}\). As with CBM-UCBVI, we define \(CI_{t,h}^R(s_{t,h},a_{t,h}) = 2b_{t,h}^r(s,a)\) and similarly ask for feedback only if \[\begin{align} CI_{t,h}^R(s_{t,h},a_{t,h}) \geq L_{t,\delta}\br*{6\sqrt{\frac{|\mathcal{L}_R|}{B(t)}} + 4SAH\frac{\log(1+B(t))+1}{B(t)}}, \end{align}\] where \(\mathcal{L}_R\) is the set of rewarding state-actions, defined in 12. This leads to 7, which has the following regret guarantees:

Theorem 4 (CBM-ULCVI). For any adversarially adaptive sequence \(\brc*{B(t),s_{t,1}}_{t\geq 1}\) of budget and initial states the regret of CBM-ULCBVI is upper bounded by \[\mathrm{Reg}(T) \leq 45 L_{T,\delta}^2 \br*{\sqrt{SAH^3 T} + \sum_{t=1}^T\br*{\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + SAH^2\frac{\log(1+ B(t))+1}{B(t)}}}+ 2904 H^3S^2A L^2_{T,\delta}.\] for any \(T\geq 1\) with probability greater than \(1-\delta\).

Figure 8: Optimistic-Pessimistic Value Iteration

13.1 The First Good Event - Concentration↩︎

Define the following events: \[\begin{align} &E^r(t) = \brc*{\forall s\in S,a \in A:\;|\bar{r}_{t-1,h}(s,a) -r_h(s,a)| \leq \sqrt{ \frac{2 \widehat{\mathrm{Var}}_{R,t-1,h}(s,a)\log\frac{16SAH t^2(t+1)}{\delta} }{n^q_{t-1,h}(s,a)\vee 1}} + \frac{5\log \frac{16SAH t^2(t+1)}{\delta}}{ n^q_{t-1,h}(s,a)\vee 1}} \\ &E^p(t) = \brc*{\forall s,s'\in S, a\in A:\;|P_h\br*{s'|s,a} - \bar{P}_{t-1,h}\br*{s'|s,a}| \le \sqrt{\frac{2P(s'|s,a)\log\frac{16S^2AH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{2\log \frac{16S^2AH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)\vee 1}} \\ &E^{pv1}(t)=\brc*{\forall s,a,h:\;\abs*{\br*{\bar{P}_{t-1,h}(\cdot \mid s,a)-P_h(\cdot \mid s,a)}^T V_{h+1}^*} \leq \sqrt{\frac{2\mathrm{Var}_{P_h(\cdot| s,a)}(V^*_{t+1})\log \frac{16SAH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{5H\log \frac{16SAH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)\vee 1}}\\ &E^{pv2}(t)=\brc*{\forall s,a,h:\;\abs*{ \sqrt{\mathrm{Var}_{P_h(\cdot| s,a )}(V_{h+1}^*)} - \sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a )}(V_{h+1}^*)} } \leq \sqrt{\frac{12 H^2 \log \frac{16SAH t^2(t+1)}{\delta}}{n_{t-1,h}(s,a)\vee 1}} }\\ \end{align}\] For brevity, we denote \[\begin{align} b_{t,h}^{pv1}(s,a) = \sqrt{\frac{2\mathrm{Var}_{P_h(\cdot| s,a)}(V^*_{t+1})L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{5HL_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}. \end{align}\]

Lemma 12 (The First Good Event). Let \(\mathbb{G}_1 = \cap_{t\geq 1} E^r(t) \cap_{t\geq 1} E^p(t) \cap_{t\geq 1} E^{pv1}(t) \cap_{t\geq 1} E^{pv2}(t)\) be the good event. It holds that \(\Pr(\mathbb{G}_1)\geq 1-\delta/2\).

Proof. Each one of the events \(\cap_t E^r(t), \cap_t E^p(t),\cap_{t} E^{pv1}(t)\) holds with probability greater than \(1-\delta/8\) via similar analysis as in Lemma 7. We now turn to establish the high probability guarantee for the rest of events.

The event \(\cap_t E^{pv2}(t)\) holds with high probability. The event holds with high probability due to [22]. To see this, fix \(s,a,h\) and assume it was sampled for a fixed number of times \({n_{t-1,h}(s,a)=n>1}\). Let \(V_{s,a,h,n} = \frac{1}{2n(n-1)} \sum_{i,j} (V^*_{h+1}(s_i) - V^*_{h+1}(s_j))^2\) where \(s_i\sim P_{h}(\cdot|s,a)\) and are i.i.d.. See that this is an unbiased estimator for the variance, i.e., \(\mathbb{E}[V_{s,a,h,n}] = \mathrm{Var}_{P_h(\cdot| s,a )}(V_{h+1}^*)\). Applying [22], we get that \[\begin{align} \Pr&\br*{\abs*{\sqrt{V_{s,a,h,n}} - \sqrt{\mathbb{E}[V_{s,a,h,n}]}} \leq \sqrt{\frac{2H^2\log(2/\delta)}{n-1}}} \nonumber\\ &\qquad\qquad\qquad\qquad= \Pr\br*{\abs*{\sqrt{V_{s,a,h,n}} - \sqrt{\mathrm{Var}_{P_h(\cdot| s,a )}(V_{h+1}^*)}} \leq \sqrt{\frac{2H^2\log(2/\delta)}{n-1}}}\leq \delta. \label{eq:32event32PV232maurer32theorem3210} \end{align}\tag{25}\] On the other hand, \[\begin{align} V_{s,a,h,n} = \frac{1}{2n(n-1)} \sum_{i,j=1}^n (V^*_{h+1}(s_i) - V^*_{h+1}(s_j))^2 &= \sum_{s'} \frac{N(s')}{n} V^*_{h+1}(s')^2 - \br*{\sum_{s'}\frac{N(s')}{n} V^*_{h+1}(s')}^2\\ &\quad + \frac{1}{n(n-1)}\sum_{i=1}^n V^*_{h+1}(s_i)^2 - \frac{1}{n-1}\br*{\frac{1}{n}\sum_{i=1}^n V^*_{h+1}(s_i)}^2, \end{align}\] where \(N(s')\) is the number of times \(s'\) was sampled. By definition, \(\frac{N(s')}{n}\equiv \bar{P}_{n,h}(s'|s,a)\), that is, \(\frac{N(s')}{n}\) is the estimated transition model. Thus, the \(\mathrm{Var}_{\bar{P}_{n,h}(\cdot|s,a)} =\sum_{s'} \frac{N(s')}{n} V^*_{h+1}(s')^2 - \br*{\sum_{s'}\frac{N(s')}{n} V^*_{h+1}(s_i)}^2\). This, together with \(|V^*_{h}(s)|\leq H\), implies that \(\abs*{V_{s,a,h,n} - \mathrm{Var}_{\bar{P}_{n,h}(\cdot| s,a )}(V_{h+1}^*)} \leq \frac{H^2}{n-1}\), and, thus \[\begin{align} \abs*{ \sqrt{V_{s,a,h,n}} - \sqrt{\mathrm{Var}_{\bar{P}_{n,h}(\cdot| s,a )}(V_{h+1}^*)}} \leq \sqrt{\abs*{V_{s,a,h,n} - \mathrm{Var}_{\bar{P}_{n,h}(\cdot| s,a )}(V_{h+1}^*)}}\leq \sqrt{\frac{H^2}{n-1}},\label{eq:32event32PV232maurer32theorem321032relation321} \end{align}\tag{26}\] by \(\abs{\sqrt{a}-\sqrt{b}}\leq \sqrt{\abs*{a-b}}\). Combining 25 and 26 yields \[\begin{align} \Pr\br*{\abs*{\sqrt{\mathrm{Var}_{\bar{P}_{n,h}(\cdot| s,a )}(V_{h+1}^*)} - \sqrt{\mathrm{Var}_{P_h(\cdot| s,a )}(V_{h+1}^*)}} \leq \sqrt{ \frac{12H^2\log(2/\delta)}{n\vee 1}}}\leq \delta, \end{align}\] since \(\frac{2}{n\vee 1}\geq \frac{1}{n-1}\) for \(n\geq 2\) and for \(n\leq 1\) the bound trivially holds. Utilizing the same techniques as in 7 to generalize this result to hold for any (random) value of \(n=n_{t-1,h}(s,a)\) and any \(s,a,h\) establishes the high probability guarantee.

Combining the results. Taking a union bound concludes the proof. ◻

13.2 Optimism and Pessimism of Upper and Lower Value Functions↩︎

We can prove that the value is optimistic using standard techniques.

Lemma 13 (Upper Value Function is Optimistic, Lower Value Function is Pessimistic). Conditioned on the first good event \(\mathbb{G}_1\) the value function of CBM-UCBVI is optimism for all \(s\in \mathcal{S},h\in [H]\), i.e., \[\begin{align} \forall s\in \mathcal{S},h\in[H]:\;\underaccent{\bar}{V}_{t,h}(s) \leq V^{\pi_t}_h(s)\leq V^*_h(s)\leq \bar{V}_{t,h}(s). \end{align}\]

Proof. Since \(V^\pi_h(s)\leq V^*_h(s)\) for all \(\pi,s\in \mathcal{S},h\in[H]\), we only need to prove the leftmost and rightmost inequalities of the claim. We prove this result via induction.

Base case, the claim holds for \(h=H\).

Rightmost inequality, optimism, . Let \(a^*(s)\in \arg\max_{a\in \mathcal{A}} r_{H}(s,a)\). For any \(s\in \mathcal{S}\) it holds that \[\begin{align} &V^*_{H}(s) -\bar{V}_{t,H}(s) = r_{H}(s,a^*(s)) - \min\brc*{\max_a \brc*{\bar{r}_{t,H}(s,a) + b_{t,H}^r(s,a)},1}. \label{eq:32optimism32base32case32ulcvi32rel321} \end{align}\tag{27}\] Assume that \(\max_a \bar{r}_{t,H}(s,a) + b_{t,H}^r(s,a) < 1\) (otherwise, the inequality holds since \(r(s,a)\leq 1\)). Then, \[\begin{align} \eqref{eq:32optimism32base32case32ulcvi32rel321} &\leq r_{H}(s,a^*(s)) - \bar{r}_{t,H}(s,a^*(s)) - b_{t,H}^r(s,a^*(s))\\ &\leq b_{t,H}^r(s,a^*(s)) - b_{t,H}^r(s,a^*(s))\leq 0 . \end{align}\] Thus, \(V^*_{H}(s) \leq \bar{V}_{t,H}(s)\) for all \(s\in \mathcal{S}\) for \(h=H\).

Leftmost inequality, pessimism. For any \(s\in \mathcal{S}\) it holds that \[\begin{align} &V^{\pi_t}_{H}(s) -\underaccent{\bar}{V}_{t,H}(s) = r_{H}(s,\pi_{t,h}(s)) - \max(\bar{r}_{t,H}(s,\pi_{t,h}(s)) - b_{t,H}^r(s,\pi_{t,h}(s)),0). \label{eq:32optimism32base32case32ucbvi32UL32rel32132pessimsm} \end{align}\tag{28}\] Assume that \(\bar{r}_{t,H}(s,\pi_{t,h}(s)) - b_{t,H}^r(s,\pi_{t,h}(s)) > 0\) (otherwise, the inequality holds since \(r(s,a)\geq 0\)). Then, \[\begin{align} &\eqref{eq:32optimism32base32case32ucbvi32UL32rel32132pessimsm} \geq -b_{t,H}^r(s,\pi_{t,h}(s)) + b_{t,H}^r(s,\pi_{t,h}(s))\geq 0 . \end{align}\] Thus, \(V^*_{H}(s) \geq \underaccent{\bar}{V}_{t,H}(s)\) for all \(s\in \mathcal{S}\) for \(h=H\).

Induction step, prove for \(h\in [H]\) assuming the claim holds for all \(h+1\leq h'\leq H\).

Rightmost inequality, optimism. Let \(a^*(s)\in \arg\max_{a\in \mathcal{A}} Q^{*}_h(s,a)\). The following relations hold. \[\begin{align} &V^*_h(s)- \bar{V}_{t,h}(s) = Q^{*}_h(s,a^*(s))- \min\brc*{\max_a\bar{Q}_{t,h}(s,a),H-h+1} \label{eq:32optimism32base32case32ucbvi32rel32232UL} \end{align}\tag{29}\] Assume that \(\max_a\bar{Q}^{\pi}_{t,h}(s,a)< H-h+1\) (otherwise, the inequality is satisfied since \(Q^*_h(s,a)\leq H-h+1\)). Then, \[\begin{align} \eqref{eq:32optimism32base32case32ucbvi32rel32232UL} &\leq Q^{*}_h(s,a^*(s))- \bar{Q}_{t,h}(s,a^*(s)) \nonumber \\ &= r_h(s,a^*(s)) - \bar{r}_{t-1,h}(s,a^*(s)) - b_{t,h}^r(s,a^*(s)) - b_{t,h}^{p}(s,a^*(s)) \nonumber\\ &\quad + (P_h- \bar{P}_{t-1,h})(\cdot| s,a^*(s))V^*_{h+1} + \mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a^*(s))}[ \underbrace{V^{*}_{h+1}(s') - \bar{V}_{t,h+1}(s')}_{\leq 0\;\mathrm{Induction\;hypothesis}}] \nonumber\\ &\leq b_{t,h}^r(s,a^*(s)) - b_{t,h}^r(s,a^*(s)) - b_{t,h}^{p}(s,a^*(s)) + b_{t,h}^{pv1}(s,a^*(s)) (t)\;\&\;\cap_t E^{r}(t) holds} \nonumber\\ &= b_{t,h}^{pv1}(s,a^*(s)) - b_{t,h}^{p}(s,a^*(s)) \label{eq:32optimism32base32case32ucbvi32rel32332UL} \end{align}\tag{30}\] We now analyze this term. \[\begin{align} \eqref{eq:32optimism32base32case32ucbvi32rel32332UL} &= b_{t,h}^{pv1}(s,a^*(s)) - b_{t,h}^{p}(s,a^*(s)) \nonumber \\ &\overset{(a)}{\leq} \sqrt{\frac{2\mathrm{Var}_{P(\cdot| s,a^*(s))}(V^*_{h+1})L_{t,\delta}}{n_{t-1,h}(s,a^*(s)) \vee1}} +\frac{5H L_{t,\delta}}{n_{t-1,h}(s,a^*(s))\vee 1} \nonumber \\ &\quad -\sqrt{\frac{2\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot|s,a^*(s))}(\bar{V}_{t,h+1})L_{t,\delta}}{n_{t-1,h}(s,a^*(s)) \vee 1}} - \frac{18H^2L_{t,\delta}}{n_{t-1,h}(s,a^*(s))\vee 1} - \frac{1}{16H} \mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')} \nonumber\\ &= \sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{P_h(\cdot|s,a^*(s))}(V^*_{h+1})} -\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a^*(s))}(\bar{V}_{t,h+1})}}{\sqrt{n_{t-1,h}(s,a^*(s)) \vee1}} \nonumber\\ &\quad - \frac{1}{16H} \mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')}- \frac{13H^2 L_{t,\delta}}{n_{t-1,h}(s,a^*(s))\vee 1} \nonumber\\ &\overset{(b)}{\leq} \frac{1}{16H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')} + \frac{13H^2L_{t,\delta}}{ n_{t-1,h}(s,a)\vee 1} \nonumber\\ &\quad - \frac{1}{16H} \mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')} - \frac{13H^2L_{t,\delta}}{n_{t-1,h}(s,a^*(s)) \vee1} = 0 \nonumber \end{align}\] where \((a)\) holds by plugging the bonus and bounding \(-44 H^2S L_{t,\delta} \leq -18H^2 L_{t,\delta}\), and by the induction hypothesis (\(\underaccent{\bar}{V}_{t-1,h+1}(s)\le V^*_{h+1}(s),\forall s\in\mathcal{S}\)). \((b)\) holds by Lemma 19 while setting \(\alpha= 16H\) and bounding \((5H+ H\alpha/2)\leq 13H^2\). Combining all the above we conclude the proof of the rightmost inequality since \[\begin{align} V^*_h(s)- \bar{V}_{t,h}(s) \leq \eqref{eq:32optimism32base32case32ucbvi32rel32232UL} \leq \eqref{eq:32optimism32base32case32ucbvi32rel32332UL}\leq 0. \end{align}\]

Leftmost inequality, pessimism. The following relations hold. \[\begin{align} &V^{\pi_t}_h(s)- \underaccent{\bar}{V}_{t,h}(s) = Q^{\pi_t}_h(s,\pi_{t,h}(s))- \max(\bar{Q}_{t,h}(s,\pi_{t,h}(s)),0). \label{eq:32optimism32base32case32ucbvi32UL32rel3224432pessimsm} \end{align}\tag{31}\] Assume that \(\bar{Q}_{t,h}(s,\pi_{t,h}(s))>0\) (otherwise, the claim holds since \(Q^{\pi_t}_h(s,\pi_{t,h}(s))\geq 0\)). Then, \[\begin{align} \eqref{eq:32optimism32base32case32ucbvi32UL32rel3224432pessimsm} &= Q^{\pi_t}_h(s,\pi_{t,h}(s))- \underline{Q}_{t,h}(s,\pi_{t,h}(s)) \nonumber \\ &= r_h(s,\pi_{t,h}(s)) - \bar{r}_{t-1,h}(s,\pi_{t,h}(s)) + b_{t,h}^r(s,\pi_{t,h}(s)) + b_{t,h}^{p}(s,\pi_{t,h}(s)) \nonumber\\ &\quad + (P_h-\bar{P}_{t-1,h})(\cdot| s,\pi_{t,h}(s))V^{\pi_t}_{h+1} + \mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}[ \underbrace{V^{\pi_t}_{h+1}(s') - \underaccent{\bar}{V}_{t,h+1}(s')}_{\geq 0\;\mathrm{Induction\;hypothesis}}|s_h=s,a_h=\pi_{t,h}(s)] \nonumber\\ &\geq -b_{t,h}^r(s,\pi_{t,h}(s)) + b_{t,h}^r(s,\pi_{t,h}(s)) + b_{t,h}^{p}(s,\pi_{t,h}(s)) + (P_h-\bar{P}_{t-1,h})(\cdot| s,\pi_{t,h}(s))V^{\pi_t}_{h+1} (t) holds} \nonumber \\ &= b_{t,h}^{p}(s,\pi_{t,h}(s)) + (P_h-\bar{P}_{t-1,h})(\cdot| s,\pi_{t,h}(s))V^{\pi_t}_{h+1}. \label{eq:32optimism32base32case32ucbvi32UL32rel3234432pessimsm} \end{align}\tag{32}\] We now focus on the last term. Observe that \[\begin{align} &(P_h-\bar{P}_{t-1,h})(\cdot| s,\pi_{t,h}(s))V^{\pi_t}_{h+1} = (P_h-\bar{P}_{t-1,h})(\cdot| s,\pi_{t,h}(s))V^{*}_{h+1} + (P_h-\bar{P}_{t-1,h})(\cdot| s,\pi_{t,h}(s))(V^{\pi_t}_{h+1} - V^*_{h+1})\\ & \geq -b^{pv1}_{t-1,h}(s,\pi_{t,h}(s))+(P_h-\bar{P}_{t-1,h})(\cdot| s,\pi_{t,h}(s))(V^{\pi_t}_{h+1} - V^*_{h+1}) (t) holds}\\ &\overset{(a)}{\geq} -b^{pv1}_{t-1,h}(s,\pi_{t,h}(s)) - \frac{18H^2 SL_{t,\delta}}{n_{t-1,h}(s,\pi_{t,h}(s))\vee 1} - \frac{1}{32H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,\pi_{t,h}(s))}\brs*{(V^{\pi_t}_{h+1} - V^*_{h+1})(s')} \\ &\geq -b^{pv1}_{t-1,h}(s,\pi_{t,h}(s)) - \frac{18H^2SL_{t,\delta}}{n_{t-1,h}(s,\pi_{t,h}(s))\vee 1} - \frac{1}{32H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,\pi_{t,h}(s))}\brs*{(\bar{V}_{t,h+1} - \underaccent{\bar}{V}_{t-1,h+1})(s')} \\ &\geq - \sqrt{\frac{2\mathrm{Var}_{P_h(\cdot| s,\pi_{t,h}(s))}(V^*_{h+1})L_{t,\delta}}{n_{t-1,h}(s,\pi_{t,h}(s))\vee 1 }}- \frac{23H^2SL_{t,\delta}}{n_{t-1,h}(s,\pi_{t,h}(s))\vee 1} - \frac{1}{32H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,\pi_{t,h}(s))}\brs*{(\bar{V}_{t,h+1} - \underaccent{\bar}{V}_{t-1,h+1})(s')} _{t-1,h} and elementary bounds}, \end{align}\] where \((a)\) holds by applying Lemma 21 while setting \(\alpha=32H, C_1=2L_{t,\delta},C_2=2 L_{t,\delta}\) and bounding \(HS(C_2+ \alpha C_1/4)\le 18H^2S L_{t,\delta}\) (assumption holds since \(\cap_t E^{p}(t)\) holds). Plugging this back into 32 and plugging the explicit form of the bonus \(b^p_{t,h}(s,a)\) we get \[\begin{align} \eqref{eq:32optimism32base32case32ucbvi32UL32rel3234432pessimsm} &= \sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,\pi_{t,h}(s))}(\bar{V}_{t,h+1})} - \sqrt{\mathrm{Var}_{P_h(\cdot| s,\pi_{t,h}(s))}(V^*_{h+1})}}{\sqrt{n_{t-1,h}(s,\pi_{t,h}(s))\vee 1}} \\ &\quad + \frac{21H^2SL_{t,\delta}}{n_{t-1,h}(s,\pi_{t,h}(s))\vee 1} + \frac{1}{32H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,\pi_{t,h}(s))}\brs*{\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t-1,h+1}(s')}\\ &\overset{(a)}{\geq} -\frac{1}{32H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,\pi_{t,h}(s))}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')} - \frac{21H^2 L_{t,\delta}}{n_{t-1,h}(s,\pi_{t,h}(s))}\\ &\quad + \frac{1}{32H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,\pi_{t,h}(s))}\brs*{\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t-1,h+1}(s')} + \frac{21H^2S L_{t,\delta}}{n_{t-1,h}(s,\pi_{t,h}(s))}\geq 0 \end{align}\] where \((a)\) holds by Lemma 19 while setting \(\alpha=32H\) and bounding \((5H+ H\alpha/2)L_{t,\delta}\leq 21H^2 L_{t,\delta}\). Combining all the above we concludes the proof as \[\begin{align} V^{\pi_t}_h(s)- \underaccent{\bar}{V}_{t,h}(s)\geq\eqref{eq:32optimism32base32case32ucbvi32UL32rel3224432pessimsm}\geq \eqref{eq:32optimism32base32case32ucbvi32UL32rel3234432pessimsm}\geq 0. \end{align}\] ◻

13.3 The Good Event↩︎

We now prove an additional high probability bound which holds alongside first good event \(\mathbb{G}_1\).

Lemma 14 (The Good Event). Let \(\mathbb{G}_1\) be the event defined in Lemma 12. Let \(\brc*{Y_{1, t ,h}, Y_{2, t, h}}_{t\geq 1}\) the following random variables. \[\begin{align} &Y_{1, t ,h} \stackrel{\text{def}}{=}\bar{V}_{t,h+1}(s_{t,h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{t,h+1})\\ &Y_{2, t, h} = \mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}( V^{\pi_t}_{h+1}). \end{align}\] The second good event is the intersection of two events \(\mathbb{G}_2 =E^{OP} \cap E^{\mathrm{Var}}\) defined as follows. \[\begin{align} &E^{OP}=\brc*{\forall h\in[H], T\geq 1:\;\sum_{t=1}^T \mathbb{E}[Y_{1, t ,h}|F_{t,h-1}]\leq \br*{1+\frac{1}{2H}} \sum_{t=1}^T Y_{1, t ,h} + 18H^2 \log\frac{4HT(T+1)}{\delta}}\\ &E^{\mathrm{Var}}= \brc*{ T\geq 1:\; \sum_{t=1}^T \sum_{h=1}^H Y_{2, t, h}\leq 2\sum_{t=1}^T \sum_{h=1}^H\mathbb{E}[Y_{2, t, h}|F_{t-1}] + 4H^3 \log\frac{4HT(T+1)}{\delta}}, \end{align}\] Then, the good event \(\mathbb{G}= \mathbb{G}_1\cap \mathbb{G}_2\) holds with probability greater than \(1-\delta\).

Proof. Event \(E^{OP}\). The proof follows the lines of 9 while noting that \(0\leq \bar{V}_{t,h+1}(s_{t,h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{t,h+1})\leq H\) (replacing \(\bar{V}_{t,h+1}(s_{t,h+1}) - V^{\pi_t}_{h}(s_{t,h})\) as in Lemma 9). This holds conditioned on the first good event due to the optimism-pessimism lemma (Lemma 13). Notice that we replaced \(\delta\to\delta/2\), and therefore, the proof results with \(\Pr(\overline{E^{OP}}\cap \mathbb{G}_1)\le\frac{\delta}{4}\).

Event \(E^{\mathrm{Var}}\). Fix \(h\in [H]\). Set \(Y_t = Y_{2, t, h} = \mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}( V^{\pi_t}_{h+1})\), and the filtration as \(\brc*{F_{t}}_{t\geq 0}\) (observe that \(Y_t\) is \(F_{t}\) measurable). Furthermore, see that \(0\leq Y_{2, t, h}\leq H\) a.s. . Applying the second statement of 20 we get that \[\begin{align} \sum_{t=1}^T Y_{2, t, h} \leq 2\sum_{t=1}^T\mathbb{E}[Y_{2, t, h}|F_{t-1}] + 4H^2 \log\frac{1}{\delta}. \end{align}\] By taking union bound, as in the proof of the first statement of the lemma and on all \(h\in [H]\) and summing over \(h\in [H]\), we get that with probability greater than \(1-\delta/4\) for all \(T\geq1\) it holds that \[\begin{align} \sum_{t=1}^T \sum_{h=1}^H Y_{2, t, h} \leq 2\sum_{t=1}^T\sum_{h=1}^H \mathbb{E}[Y_{2, t, h}|F_{t-1}] + 4H^3 \log\frac{4HT(T+1)}{\delta}. \end{align}\]

Combining all the above We bound the probability of \(\overline{G}\) as follows: \[\begin{align} \Pr(\overline{\mathbb{G}}) \le \Pr(\overline{\mathbb{G}_1}) + \Pr(\overline{E^{OP}}\cap\mathbb{G}_1) + \Pr(\overline{E^{\mathrm{Var}}}) \le \frac{\delta}{2} + \frac{\delta}{4} +\frac{\delta}{4}= \delta. \end{align}\] ◻

13.4 CBM-ULCBVI: Budget Constraint is Satisfied↩︎

Similarly to all algorithms that follow the CBM paradigm, CBM-ULCBVI does not violate the budget constraint. That is, it queries reward feedback only if there is an available budget. The proof of this result is identical to the one of 10 (i.e., for the CBM-UCBVI algorithm), since the reward bonus and query rule for rewards of the two algorithms are the same, except to the log-factors. We restate the result here for convenience.

Lemma 15 (CBM-ULCBVI: Budget Constraint is Satisfied). For any \(T\geq 1\) the budget constraint is not violated, that is \(B^q(T)\leq B(T)\) almost surely.

13.5 Proof of Theorem 4↩︎

As in the proof of CBM-UCBVI, before establishing the proof of Theorem 4 we establish the following key lemma that bounds the on-policy errors at time step \(h\) by the on-policy errors at time step \(h+1\) and additional additive terms. Given this result, the analysis follows with relative ease.

Lemma 16 (CBM-ULCBVI, Key Recursion Bound). Conditioned on the good event \(\mathbb{G}\), the following bound holds for all \(h\in [H]\). \[\begin{align} \sum_{t=1}^{T} \bar{V}_{t,h}(s_{t,h}) - \underaccent{\bar}{V}_{t,h}(s_{t,h}) &\leq 27H^2\log\br*{\frac{4HT(T+1)}{\delta}}+ 2\sum_{t=1}^T b^r_{t,h}(s_{t,h},a_{t,h}) +\sum_{t=1}^T\frac{224H^2S L_{t,\delta}}{ n_{t-1,h}(s_{t,h},a_{t,h})\vee 1} \\ &\quad+ 2\sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{P_{h}(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})}}{\sqrt{n_{t,h}(s_{t,h},a_{t,h})\vee 1}} + \br*{1+ \frac{1}{2H}}^2\sum_{t=1}^T \bar{V}_{t,h+1}(s_{t,h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{t,h+1}). \end{align}\]

Proof. We bound each of the terms in the sum as follows. \[\begin{align} &\bar{V}_{t,h}(s_{t,h}) - \underaccent{\bar}{V}_{t,h}(s_{t,h}) \nonumber \\ &= 2b^r_{t,h}(s_{t,h},a_{t,h}) + 2b^{p}_{t-1}(s_{t,h},a_{t,h}) + \br*{1+\frac{1}{16H}}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot| s_{t,h},a_{t,h})}[ \bar{V}_{t,h+1}(s_{h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{h+1})] \nonumber \\ &= 2b^r_{t,h}(s_{t,h},a_{t,h}) + 2b^{p}_{t-1}(s_{t,h},a_{t,h}) + \br*{1+\frac{1}{16H}}\mathbb{E}[ \bar{V}_{t,h+1}(s_{h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{h+1}) | F_{t,h-1}] \nonumber\\ &\quad + \br*{1+\frac{1}{16H}}(\bar{P}_{t-1,h}-P_h)(\cdot |s,a)^T \br*{\bar{V}_{t,h+1} - \underaccent{\bar}{V}_{t,h+1}}\nonumber\\ &\leq 2b^r_{t,h}(s_{t,h},a_{t,h}) + 2b^{p}_{t-1}(s_{t,h},a_{t,h}) + \frac{6SH^2L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}+ \br*{1+\frac{1}{4H}}\mathbb{E}[ \bar{V}_{t,h+1}(s_{h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{h+1}) | F_{t,h-1}] \label{eq:32central32theorem32UL32RL32relation321}, \end{align}\tag{33}\] where the last relation holds by Lemma 21 while setting \(\alpha=8H,C_1=C_2=2L_{t,\delta}\) and bounding \(HS( C_2+ \alpha S C_1/4)\le 6SH^2 L_{t,\delta}\) (the assumption of the lemma holds since the event \(\cap_t E^p(t)\) holds). By Lemma 17 it holds that \[\begin{align} \sum_{t=1}^T b^p_{t,h}(s_{t,h},a_{t,h})\leq &\sum_{t=1}^T\frac{109H^2S L_{t,\delta}}{ n_{t-1,h}(s_{t,h},a_{t,h})\vee 1} + \sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{P_{h}(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})}}{\sqrt{n_{t,h}(s_{t,h},a_{t,h})\vee 1}} \\ & + \frac{1}{8H}\sum_{t=1}^T \mathbb{E}[\bar{V}_{t,h+1}(s_{t,h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{t,h+1})| F_{t,h-1}]. \end{align}\] Plugging this into 33 and rearranging the terms we get \[\begin{align} \sum_{t=1}^T\bar{V}_{t,h}(s_{t,h}) - \underaccent{\bar}{V}_{t,h}(s_{t,h}) &\leq 2\sum_{t=1}^T b^r_{t,h}(s_{t,h},a_{t,h}) + \sum_{t=1}^T\frac{224H^2S L_{t,\delta}}{ n_{t-1,h}(s_{t,h},a_{t,h})\vee 1} + 2\sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{P_{h}(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})}}{\sqrt{n_{t,h}(s_{t,h},a_{t,h})\vee 1}} \\ &\quad+ \br*{1+ \frac{1}{2H}}\sum_{t=1}^T \mathbb{E}[\bar{V}_{t,h+1}(s_{t,h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{t,h+1})| F_{t,h-1}]\\ &\leq 27H^2\log\br*{\frac{4HT(T+1)}{\delta}}+ 2\sum_{t=1}^T b^r_{t,h}(s_{t,h},a_{t,h}) +\sum_{t=1}^T\frac{224H^2S L_{t,\delta}}{ n_{t-1,h}(s_{t,h},a_{t,h})\vee 1} \\ &\quad+ 2\sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{P_{h}(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})}}{\sqrt{n_{t,h}(s_{t,h},a_{t,h})\vee 1}} + \br*{1+ \frac{1}{2H}}^2\sum_{t=1}^T \bar{V}_{t,h+1}(s_{t,h+1}) - \underaccent{\bar}{V}_{t,h+1}(s_{t,h+1}),holds (the second good event)} \end{align}\] where in the last relation we also bounded \(18\br*{1+\frac{1}{2H}}\le 27\). ◻

We are now ready to establish Theorem 4.

Proof. Start by conditioning on the good event which holds with probability greater than \(1-\delta\). Applying the optimism-pessimism of the upper and lower value function we get \[\begin{align} \sum_{t=1}^{T} V_{1}^*(s_{t,1}) - V_{1}^{\pi_t}(s_{t,1}) \leq \sum_{t=1}^{T} \bar{V}_{t,1}(s_{t,1}) - \underaccent{\bar}{V}_{t,1}(s_{t,1}). \label{eq:32central32thm32UL32RL32132relation} \end{align}\tag{34}\] Iteratively applying 16 and bound the exponential growth by \(\br*{1+\frac{1}{2H}}^{2h}\leq e\leq 3\) for any \(h\in\brc*{0,\dots,H}\), The following upper bound on the cumulative regret is obtained. \[\begin{align} &\eqref{eq:32central32thm32UL32RL32132relation} \leq 81H^3 \log\br*{ \frac{HT(T+1)}{\delta}} + 6\sum_{t=1}^T \sum_{h=1}^H b^r_{t,h}(s_{t,h},a_{t,h}) + \sum_{t=1}^T \sum_{h=1}^H\frac{ 672 H^2SL_{t,\delta}}{n_{t-1,h}^{p}( s_{t,h},a_{t,h})\vee 1} \nonumber \\ &\quad\quad +9\sum_{t=1}^T \sum_{h=1}^H \frac{\sqrt{L_{t,\delta}\mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1}) }}{\sqrt{n_{t-1,h}(s_{t,h},a_{t,h})}}. \label{eq:32rl32final32bound32relation32232UL} \end{align}\tag{35}\] The first sum in 35 is bounded in [lemma:32bound32on32cummulative32reward32bonus32RL] (the reward bonus is exactly the same as for CBM-UCBVI which implies the same upper bound on the sum of bonuses hold) by \[\begin{align} &6\sum_{t=1}^T \sum_{h=1}^H b^r_{t,h}(s_{t,h},a_{t,h})\\ &\leq 3L_{t,\delta}\br*{6 \sqrt{|\mathcal{L}_R| HT } + 10 SAH\log(HT) + 23SAH + \sum_{t=1}^T\br*{6\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + 4SAH^2\frac{\log(1+ B(t))+1}{B(t)}}}. \end{align}\] The second sum is bounded via standard analysis as follows: \[\begin{align} \sum_{t=1}^T \sum_{h=1}^H\frac{ 672 H^2SL_{t,\delta}}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1} &\leq 672 H^2SL_{T,\delta} \sum_{t=1}^T \sum_{h=1}^H\frac{1}{n_{t-1,h}( s_{t,h},a_{t,h})\vee 1}increasing in t}\\ &= 672 H^2S L_{T,\delta} \sum_{s,a,h} \sum_{i=0}^{n_{T,h}(s,a)} \frac{1}{i\vee 1} \\ &\leq 672 H^2S L_{T,\delta} \sum_{s,a,h} (2+\log(n_{T,h}(s,a)\vee1))\\ &\leq 672 H^3S^2AL_{T,\delta}(2+\log(TH))n_{T,h}(s,a)=HT} \\& \leq 2688 H^3S^2AL_{T,\delta}\log(TH+1) \end{align}\] The third sum in 35 is bounded in Lemma 18 by \[\begin{align} &9\sum_{t=1}^T \sum_{h=1}^H \frac{\sqrt{L_{t,\delta}\mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1}) }}{\sqrt{n_{t-1,h}(s_{t,h},a_{t,h})}} \leq 9 \sqrt{L_{T,\delta}}\sum_{t=1}^T \sum_{h=1}^H \frac{\sqrt{\mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1}) }}{\sqrt{n_{t-1,h}(s_{t,h},a_{t,h})}}increasing in t}\\ &\leq 27\sqrt{ SAH^3 T \log(TH+1)L_{T,\delta}} + 36H^2\sqrt{SA \log(TH+1) \log\br*{\frac{4HT(T+1)}{\delta}}L_{T,\delta}} \end{align}\] Combining the above bounds with proper simplification yields a bound on 35 and concludes the proof, \[\begin{align} \eqref{eq:32rl32final32bound32relation32232UL}\leq 45 L_{T,\delta}^2 \br*{\sqrt{SAH^3 T} + \sum_{t=1}^T\br*{\sqrt{\frac{|\mathcal{L}_R|H^2}{B(t)}} + SAH^2\frac{\log(1+ B(t))+1}{B(t)}}}+ 2904 H^3S^2A L^2_{T,\delta}. \end{align}\] ◻

13.6 Results that Hold Conditioned on the Good Event↩︎

Lemma 17 (Bound on the Cumulative Transition Model Bonus). Conditioning on the good event \(\mathbb{G}_1\) the following bound holds for all \(h\in [H]\). \[\begin{align} \sum_{t=1}^T b^{p}_t(s_{t,h},a_{t,h}) &\leq \sum_{t=1}^T\frac{109H^2SL_{t,\delta}}{ n_{t-1,h}(s_{t,h},a_{t,h})\vee 1} + \sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{P_{h}(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})}}{\sqrt{n_{t-1,h}(s_{t,h},a_{t,h})\vee 1}} \\ & + \frac{1}{8H}\sum_{t=1}^T \mathbb{E}[\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t,h+1}(s')|F_{t,h-1}]. \end{align}\]

Proof. First, observe that \[\begin{align} &\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs{\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t,h+1}(s')} \nonumber \\ & = \mathbb{E}_{P_{h}(\cdot|s,a)}\brs{\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t,h+1}(s')} + (\bar{P}_{t-1,h}- P_h)(\cdot|s,a)^T\brs*{\bar{V}_{t,h+1}(s')- \underaccent{\bar}{V}_{t,h+1}(s')} \nonumber\\ &\leq \frac{9}{8}\mathbb{E}_{P_{h}(\cdot|s,a)}\brs{\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t,h+1}(s')} + \frac{ 6H^2S L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}, \label{eq:32useful32relation32bound32on32bonus32bp} \end{align}\tag{36}\] by applying Lemma 21 with \(\alpha=8H,C_1=C_2=2L_{t,\delta}\) and \(HS(C_2+ \alpha C_1/4)\le 6H^2S\) (applicable since \(\cap_t E^p(t)\) holds).

The bonus \(b^p_{t,h}(s,a)\) can be upper bounded as follows. \[\begin{align} &b^p_{t,h}(s,a)\leq \sqrt{2}\sqrt{\frac{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1}) L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{1}{16H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs{\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t,h+1}(s')} + \frac{ 44H^2S L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1} \nonumber \\ &\leq \sqrt{2}\sqrt{\frac{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1}) L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{9}{128H}\mathbb{E}_{P_{h}(\cdot|s,a)}\brs{\bar{V}_{t,h+1}(s') - \underaccent{\bar}{V}_{t,h+1}(s')} + \frac{50H^2S L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}\label{eq:3232bound32on32bp32UL32RL32relation321}, \end{align}\tag{37}\] by 36 . We bound the first term to establish the lemma.

Bound on the first term of 37 It holds that \[\begin{align} &\sqrt{2L_{t,\delta}}\sqrt{\frac{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1}) }{n_{t-1,h}(s,a)\vee 1}}\\ &=\underbrace{\sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1})} - \sqrt{\mathrm{Var}_{P_{h}(\cdot| s,a)}(V^*_{h+1})} }{\sqrt{n_{t-1,h}(s,a)\vee 1}} }_{(i)} +\underbrace{\sqrt{2L_{t,\delta}}\frac{ \sqrt{\mathrm{Var}_{P_{h}(\cdot| s,a)}(V^*_{h+1})} - \sqrt{\mathrm{Var}_{P_{h}(\cdot| s,a)}(V^{\pi_t}_{h+1})}}{\sqrt{n_{t-1,h}(s,a)\vee 1}}}_{(ii)} \\ &\quad\quad +\frac{\sqrt{2L_{t,\delta}}\sqrt{\mathrm{Var}_{P_{h}(\cdot| s,a)}(V^{\pi_t}_{h+1})}}{\sqrt{n_{t-1,h}(s,a)\vee 1}}. \end{align}\] Term \((i)\) is bounded by Lemma 19 (by setting \(\alpha=32H\) and \((5H+ H\alpha/2)\leq 21H^2\)), \[\begin{align} \sqrt{2L_{t,\delta}}\frac{\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1})} - \sqrt{\mathrm{Var}_{P_{h}(\cdot| s,a)}(V^*_{h+1})} }{\sqrt{n_{t-1,h}(s,a)\vee 1}} \leq \frac{1}{32H}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')} + \frac{21H^2L_{t,\delta}}{ n_{t-1,h}(s,a)\vee 1}. \end{align}\] Following the same steps as in 36 , we get \[\begin{align} &\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')} \leq \frac{9}{8}\mathbb{E}_{P_{h}(\cdot|s,a)}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')} + \frac{6H^2S L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}, \end{align}\] and, thus, \[\begin{align} (i) \leq \frac{9}{256H}\mathbb{E}_{P_{h}(\cdot|s,a)}\brs*{\bar{V}_{t-1,h+1}(s')- V^*_{h+1}(s')} + \frac{27 H^2S L_{t,\delta}}{ n_{t-1,h}(s,a)\vee 1}. \end{align}\] Term \((ii)\) is bounded as follows. \[\begin{align} &(ii)\leq \sqrt{2L_{t,\delta}}\frac{ \sqrt{\mathrm{Var}_{P_{h}(\cdot| s,a)}(V^*_{h+1} - V^{\pi_t}_{h+1})}}{\sqrt{n_{t-1,h}(s,a)\vee 1}} }\\ &\leq \sqrt{2L_{t,\delta}}\frac{ \sqrt{\mathbb{E}_{P_{h}(\cdot|s,a)}[(V^*_{h+1}(s') - V^{\pi_t}_{h+1}(s'))^2]}}{\sqrt{n_{t-1,h}(s,a)\vee 1}}\\ &\leq \sqrt{2L_{t,\delta}}\frac{ \sqrt{H\mathbb{E}_{P_{h}(\cdot|s,a)}[(V^*_{h+1}(s') - V^{\pi_t}_{h+1}(s'))]}}{\sqrt{n_{t-1,h}(s,a)\vee 1}} (s') - V^{\pi_t}_{h+1}(s')\leq H }\\ &\leq \frac{1}{64H}\mathbb{E}_{P_{h}(\cdot|s,a)}[(V^*_{h+1}(s') - V^{\pi_t}_{h+1}(s'))] + \frac{32H^2L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}. {\alpha}a^2 + \frac{\alpha}{4}b^2 for \alpha=64H} \end{align}\] Thus, applying \(\underaccent{\bar}{V}_{h+1}\leq V^{\pi_t}_{h+1}\leq V^*_{h+1}\leq \bar{V}_{h+1}\) (Lemma 13) in the bounds of \((i)\) and \((ii)\) we get \[\begin{align} &b^p_{t,h}(s,a)\leq \frac{1}{8H}\mathbb{E}_{P_{h}(\cdot|s,a)}[(\bar{V}_{t,h}(s') - \underaccent{\bar}{V}_{t,h}(s'))] +\frac{109H^2S L_{t,\delta}}{ n_{t-1,h}(s,a)\vee 1} + \frac{\sqrt{2L_{t,\delta}}\sqrt{\mathrm{Var}_{P_{h}(\cdot| s,a)}(V^{\pi_t}_{h+1})}}{\sqrt{n_{t-1,h}(s,a)\vee 1}}. \end{align}\] and summing over \(t\) concludes the proof. ◻

Lemma 18 (Bound on Variance Term). Conditioning on the good event \(E^{\mathrm{Var}}\) it holds that \[\begin{align} &\sum_{t=1}^T\sum_{h=1}^H \frac{\sqrt{\mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1}) }}{\sqrt{n_{t-1,h}(s_{t,h},a_{t,h})}} \leq 3\sqrt{ SAH^3 T \log(TH+1)} + 4H^2\sqrt{SA \log(TH+1) \log\br*{\frac{4HT(T+1)}{\delta}}}. \end{align}\]

Proof. Applying Cauchy-Schwartz inequality we get \[\begin{align} &\sum_{t=1}^T\sum_{h=1}^H \frac{\sqrt{\mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1}) }}{\sqrt{n_{t-1,h}(s_{t,h},a_{t,h}) \vee 1}}\\ &\leq\sqrt{\sum_{t=1}^T\sum_{h=1}^H \mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})} \sqrt{\sum_{t=1}^T\sum_{h=1}^H \frac{1}{n_{t-1,h}(s_{t,h},a_{t,h})\vee 1}} \\ &\leq \sqrt{\sum_{t=1}^T\sum_{h=1}^H \mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})} \sqrt{SAH (2+\log(TH))} }\\ &\leq 2\sqrt{2\sum_{t=1}^T \mathbb{E}\brs*{\sum_{h=1}^H \mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})| F_{t-1} } +4H^3\log\br*{\frac{4HT(T+1)}{\delta}}}\sqrt{SAH \log(TH+1)} } holds} \\ &\leq 3\sqrt{\sum_{t=1}^T \mathbb{E}\brs*{\sum_{h=1}^H \mathrm{Var}_{P_h(\cdot|s_{t,h},a_{t,h})}(V^{\pi_t}_{h+1})| F_{t-1}}} \sqrt{SAH \log(TH+1)} + 4H^2\sqrt{SA \log(TH+1) \log\br*{\frac{4HT(T+1)}{\delta}}} \leq \sqrt{a} + \sqrt{b}}\\ &=3\sqrt{\sum_{t=1}^T \mathbb{E}\brs*{\br*{ V_1^{\pi_t}(s_1) - \sum_{h=1}^H r_h(s_{t,h},a_{t,h})}^2 \bigg\vert F_{t-1}}} \sqrt{SAH \log(TH+1)} + 4H^2\sqrt{SA \log(TH+1)) \log\br*{\frac{4HT(T+1)}{\delta}}} , see Lemma~\ref{lemma:32law32of32total32variance32for32RL} }\\ &\leq 3\sqrt{ SAH^3 T \log(TH+1)} + 4H^2\sqrt{SA\log(TH+1) \log\br*{\frac{4HT(T+1)}{\delta}}} . (s)\in[0,H],\;r_h(s,a)\in[0,1]} \end{align}\] ◻

Lemma 19 (Variance Difference is Upper Bounded by Value Difference). Assume that the value at time step \(h+1\) is optimistic, \(\bar{V}_{t,h+1}(s)\geq V^*_{h+1}(s)\) for all \(s\in \mathcal{S}\). Conditioning on the event \(\cap_t E^{pv2}(t)\) it holds for all \(s,a\in \mathcal{S}\times \mathcal{A},\in[H]\) that \[\begin{align} \sqrt{2L_{t,\delta}} \frac{ \abs*{\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1})} - \sqrt{\mathrm{Var}_{P_h(\cdot| s,a)}(V^*_{h+1})}}}{\sqrt{n_{t-1,h}(s,a)}}\leq \frac{1}{\alpha}\mathbb{E}_{\bar{P}_{t-1,h}(\cdot|s,a)}\brs*{\bar{V}_{t,h+1}(s')- V^*_{h+1}(s')} + \frac{(5H+ H\alpha/2)L_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}. \end{align}\]

Proof. Conditioning on the first good event the following relations hold. \[\begin{align} & \abs*{\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1})} - \sqrt{\mathrm{Var}_{P_h(\cdot| s,a)}(V^*_{h+1})}}\\ &\leq \abs*{\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1})} - \sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(V^*_{h+1})}} + \sqrt{\frac{12H^2 L_{t,\delta}}{n_{t-1,h}(s,a) \vee 1}} (t) holds} \nonumber\\ &\leq \sqrt{\mathrm{Var}_{\bar{P}_{t-1}(\cdot| s,a)}(V^*_{h+1} - \bar{V}_{t,h+1})} + \sqrt{\frac{12H^2 L_{t,\delta}}{n_{t-1,h}(s,a) \vee 1}} }\\ &\leq \sqrt{\mathbb{E}_{\bar{P}_{t-1,h}}\brs*{(V^*_{h+1}(s') - \bar{V}_{t,h+1}(s'))^2}} + \sqrt{\frac{12H^2 L_{t,\delta}}{n_{t-1,h}(s,a) \vee 1}} \\ &\leq \sqrt{H\mathbb{E}_{\bar{P}_{t-1,h}}\brs*{\bar{V}_{t,h+1}(s') - V^*_{h+1}(s')}} + \sqrt{\frac{12H^2 L_{t,\delta}}{n_{t-1,h}(s,a) \vee 1}} , \end{align}\] where the last relation holds since \(V^*_{h+1}(s'),\bar{V}_{t,h+1}(s')\in [0,H]\) (the first, by model assumption, and the second, by the update rule) and since \(V^*_{h+1}(s')\leq \bar{V}_{t,h+1}(s')\) by the assumption the value is optimistic. Thus, \[\begin{align} &\sqrt{2L_{t,\delta}}\frac{ \abs*{\sqrt{\mathrm{Var}_{\bar{P}_{t-1,h}(\cdot| s,a)}(\bar{V}_{t,h+1})} - \sqrt{\mathrm{Var}_{P_h(\cdot| s,a)}(V^*_{h+1})}}}{\sqrt{n_{t-1,h}(s,a)}}\\ &\leq \sqrt{\mathbb{E}_{\bar{P}_{t-1,h}}\brs*{\bar{V}_{t,h+1}(s') - V^*_{h+1}(s')}} \sqrt{\frac{2HL_{t,\delta}}{n_{t-1,h}(s,a)\vee 1}} + \frac{\sqrt{24}H L_{t,\delta}}{n_{t-1,h}(s,a) \vee 1}\\ &\leq \frac{1}{\alpha} \mathbb{E}_{\bar{P}_{t-1,h}}\brs*{\bar{V}_{t,h+1}(s') - V^*_{h+1}(s')} + \frac{(5H+H\alpha/2)L_{t,\delta}}{n_{t-1,h}(s,a) \vee 1} {\alpha}a^2 + \frac{\alpha}{4}b^2}. \end{align}\] ◻

14 Useful Results↩︎

Lemma 20 (Consequences of Freedman’s Inequality for Bounded and Positive Sequence of Random Variables). Let \(\brc{Y_t}_{t\geq 1}\) be a real valued sequence of random variables adapted to a filtration \(\brc*{F_t}_{t\geq 0}\). Assume that for all \(t\geq 1\) it holds that \(0\leq Y_{t}\leq C\) a.s., and \(T\in \mathbb{N}\). Then each of the following inequalities hold with probability greater than \(1-\delta\). \[\begin{align} &\sum_{t=1}^T \mathbb{E}[Y_t|F_{t-1}]\leq \br*{1+\frac{1}{2C}} \sum_{t=1}^T Y_t + 2(2C+1)^2 \log\frac{1}{\delta},\\ &\sum_{t=1}^T Y_t \leq 2\sum_{t=1}^T \mathbb{E}[Y_t|F_{t-1}] + 4C\log\frac{1}{\delta}. \end{align}\]

Proof. First statement. Let \(X_{t} \stackrel{\text{def}}{=}\mathbb{E}[Y_t|F_{t-1}] - Y_t.\) Observe that \(X_{t}\) is a martingale difference sequence w.r.t. to \(\brc*{F_{t}}_{t\geq 0}\), and that \(|X_{t}|\leq C\) a.s.. Furthermore, observe that \[\begin{align} &\mathbb{E}[X^2_{t}|F_{t-1}] \leq 2\mathbb{E}[(\mathbb{E}[Y_t|F_{t-1}])^2|F_{t-1}] + 2\mathbb{E}[Y_t^2|F_{t-1}]\nonumber\\ &\leq 4\mathbb{E}[Y_t^2|F_{t-1}]\nonumber\\ &\leq 4C \mathbb{E}[Y_t|F_{t-1}], \label{eq:32second32moment32for32freedman} \end{align}\tag{38}\] where the last relation holds since \(Y_t\geq 0\) and \(Y_t\leq C\). Applying Freedman’s inequality we get that \[\begin{align} \sum_{t=1}^T \br*{\mathbb{E}[Y_t|F_{t-1}] - Y_t } = \sum_{t=1}^T X_{t} &\leq \eta\sum_{t=1}^T \mathbb{E}[X_{t}^2|F_{t-1}] + \frac{\log(1/\delta)}{\eta} }\\ &\leq \eta \sum_{t=1}^T 4C\mathbb{E}[Y_t|F_{t-1}] + \frac{\log(1/\delta)}{\eta}. } \end{align}\] Choosing \(\eta =\frac{1}{4C(2C+1)}\in (0,\frac{1}{C})\) and rearranging we get \[\begin{align} \sum_{t=1}^T \br*{1 - \frac{1}{2C+1}}\mathbb{E}[Y_t|F_{t-1}] &= \sum_{t=1}^T \br*{\frac{2C}{2C+1}}\mathbb{E}[Y_t|F_{t-1}]\\ &\leq \sum_{t=1}^T Y_t + 4C(2C+1)\log(1/\delta). \end{align}\] Thus, \[\begin{align} \sum_{t=1}^T \mathbb{E}[Y_t|F_{t-1}] \leq \sum_{t=1}^T \br*{1+\frac{1}{2C}}Y_t + 2(2C+1)^2\log(1/\delta). \end{align}\]

Second statement. Let \(X_{t} \stackrel{\text{def}}{=}Y_t - \mathbb{E}[Y_t|F_{t-1}].\) Similarly to before, it holds that \(X_{t}\) is a martingale difference sequence w.r.t. to the filtration \(F_{t-1}\), and that \(|X_{t,h}|\leq C\) a.s. . Similarly to 38 which is sign invariant we get \(\mathbb{E}[X^2_{t}|F_{t-1}] \leq 4C \mathbb{E}[Y_t|F_{t-1}]\). Applying Freedman’s inequality we get \[\begin{align} \sum_{t=1}^T Y_t- \mathbb{E}[Y_t|F_{t-1}] = \sum_{t=1}^T X_{t} &\leq \eta\sum_{t=1}^T \mathbb{E}[X_{t}^2|F_{t-1}] + \frac{\log(1/\delta)}{\eta} }\\ &\leq \eta\sum_{t=1}^T 4C \mathbb{E}[Y_t|F_{t-1}] + \frac{\log(1/\delta)}{\eta}. \end{align}\] Setting \(\eta = 1/4C\) and rearranging concludes the proof of the second statement. ◻

Lemma 21 (Transition Difference to Next State Expectation). Let \(Y\in \mathbb{R}^{S}\) be a vector such that \(0\leq Y(s) \leq H\) for all \(s\in \mathcal{S}\). Let \(P_1\) and \(P_2\) be two transition models and \(n\in \mathbb{R}^{SA}_+\). Let \(\Delta P_{h} (\cdot| s,a)\in \mathbb{R}^{S}\) and \(\Delta P_{h} (s'| s,a)\stackrel{\text{def}}{=}P_{1,h} (s'| s,a) - P_{2,h} (s'| s,a)\). Assume that \[\begin{align} \brc*{\forall s,a,s'\in \mathcal{S}\times\mathcal{A}\times \mathcal{S}, h\in [H]:\;|\Delta P_{h} (s'| s,a)| \le \sqrt{\frac{ C_1 L_{t,\delta} P_{1,h}(s'|s,a) }{n(s,a) \vee 1}} + \frac{C_2 L_{t,\delta}}{n(s,a)\vee 1}}, \end{align}\] for some \(C_1,C_2>0\), then, for any \(\alpha>0\), \[\abs*{\Delta P_{h} (\cdot| s,a)Y}\leq \frac{1}{\alpha} \mathbb{E}_{P_1(\cdot|s,a)}\brs*{ Y(s')} + \frac{H S L_{t,\delta}(C_2+ \alpha C_1/4)}{n(s,a)\vee 1},\]

Proof. The following relations hold. \[\begin{align} \abs*{\Delta P_{h} (\cdot| s,a)Y} & \le \sum_{s'}\abs*{\Delta P_{h} (s'| s,a)}\cdot\abs*{Y(s')}\\ & \leq \sum_{s'}\br*{\sqrt{\frac{C_1 P_{1,h}(s'| s,a )}{n(s,a)\vee 1}}Y(s') + \frac{H C_2}{n(s,a)\vee 1}} }\\ & = \sum_{s'}\sqrt{\frac{C_1 P_{1,h}(s'| s,a)Y^2(s')}{n(s,a)\vee 1}} + \frac{H S C_2 }{n(s,a)\vee 1}\\ &\leq \sum_{s'}\sqrt{P_{1,h}(s'| s,a)Y(s')}\sqrt{\frac{HC_1}{n(s,a)\vee 1}} + \frac{H S C_2 }{n(s,a)\vee 1} \\ &\leq \sqrt{\sum_{s'} P_{1,h}(s'| s,a)Y(s')}\sqrt{\frac{S HC_1}{n(s,a)\vee 1}} + \frac{H S C_2 }{n(s,a)\vee 1} \tag{ Cauchy–Schwarz inequality}\\ &\overset{(*)}{\leq} \frac{1}{2\alpha }\sum_{s'} P_{1,h}(s'| s,a)Y(s')+ \frac{ \alpha S HC_1}{2n(s,a)\vee 1}+ \frac{H S C_2}{n(s,a)\vee 1}, \end{align}\] where \((*)\) is by Young’s inequality, namely, \(ab\leq \frac{a^2}{2\alpha} + \frac{\alpha}{2}b^2\) for any \(\alpha>0\). Re-scaling \(2 \alpha =\alpha'\) we conclude the proof. ◻

15 Useful Existing Results↩︎

Lemma 22 (Freedman’s Inequality, [36], Theorem 1). Let \(\brc{X_t}_{t\geq 1}\) be a real valued martingale difference sequence adapted to a filtration \(\brc*{F_t}_{t\geq 0}\). If \(|X_t|\leq R\) a.s. then for any \(\eta\in (0,1/R], T\in \mathbb{N}\) it holds with probability greater than \(1-\delta\), \[\begin{align} \sum_{t=1}^T X_t \leq \eta \sum_{t=1}^T \mathbb{E}[X_t^2| F_{t-1}] +\frac{\log(1/\delta)}{\eta}. \end{align}\]

Theorem 5 ([9], Theorem 1). Let \(\brc*{F_t}_{t=0}^\infty\) be a filtration. Let \(\brc*{\eta_t}_{t=0}^\infty\) be a real-valued stochastic process such that \(\eta_t\) is \(F_t\)-measurable and \(\eta_t\) is conditionally \(\sigma\)-sub-Gaussian for \(\sigma\geq 0\). Let \(\brc*{x_t}_{t=0}^\infty\) be an \(\mathbb{R}^d\)-valued stochastic process s.t. \(X_t\) is \(F_{t-1}\)-measurable and \(\norm{x_t}\leq L\). Assume that \(V\) is a \(d\times d\) positive-definite matrix. For any \(t\geq 0\), define \(V_t = V + \sum_{s=1}^t x_s x_s^T\), and \(S_t = \sum_{s=1}^t \eta_s X_s\). Then, for any \(\delta>0\), with a probability of at least \(1-\delta\), for all \(t\geq 0\), \[\norm{S_t}^2_{V_t^{-1}} \leq 2\sigma^2 \log\br*{\frac{\text{det}\br*{V_t}^{1/2} \text{det}\br*{V}^{-1/2}}{\delta}}.\]

The following results is an adaptation of [9], Theorem 2. It establishes a concentration guarantee for the least square estimator with a skipping process.

Theorem 6 (Concentration of Least-Square with Skipping Process). Let \(\hat{\theta}_t = (X_t^TX_t+\lambda I_d)^{-1} X_t^T Y_t,\) where \(X_t\) is the matrix whose rows are \(1{\brc*{q_1=1}}x_1^T,..,1{\brc*{q_t=1}}x_t^T\), \(Y_t = (1{\brc*{q_1}} y_1,..,1{\brc*{q_t}}y_t)^T\), \(y_t=\inner{x_t,\theta^*} + \eta_t\), and \(\brc*{q_t}_{t\geq 1}\) is a sequence of binary \(F_{t-1}\) measurable events. Also assume that \(\norm{\theta^*}\le D\). Then, for any \(\delta>0\) with a probability of at least \(1-\delta\) for all, \(t\geq 0\), \(\theta^*\) lies in the set \[\begin{align} &C_t\stackrel{\text{def}}{=}\brc*{\theta\in \mathbb{R}^d: \norm{\hat{\theta}_t - \theta}_{V_t} \leq \sigma\sqrt{d\log\br*{\frac{1+ tL^2/\lambda}{\delta}}} + \lambda^{1/2}D}. \end{align}\]

Proof. Let \(\eta = (1{\brc*{q_1}}\eta_1,.,,1{\brc*{q_t}}\eta_t)^T\) and denote \(X=X_t,Y=Y_t\). Observe that \[\begin{align} \hat{\theta}_t &= (X^TX+\lambda I_d)^{-1} X^T(X\theta^* + \eta)\\ &= (X^TX+\lambda I_d)^{-1} X^T\eta +\theta^* - \lambda(X^TX+\lambda I_d)^{-1}\theta^*. \end{align}\] Thus, for any \(x\in \mathbb{R}^d\) \[\begin{align} \inner{x, \hat{\theta}_t-\theta^*} = \inner{x, X^T\eta}_{V_t^{-1}} - \lambda\inner{x, \theta^*}_{V_{t}^{-1}}, \end{align}\] where \(V_t = X^TX+\lambda I\). Since \(V_t\) is positive definite and symmetric the inner product is well define. By Cauchy-Schwartz inequality, we get \[\begin{align} | \inner{x, \hat{\theta}_t-\theta^*}| &\leq \norm{x}_{V_t^{-1}} \br*{\norm{X^T\eta}_{V_t^{-1}} +\lambda\norm{\theta^*}_{V_t^{-1}}} \nonumber \\ & \leq \norm{x}_{V_t^{-1}} \br*{\norm{X^T\eta}_{V_t^{-1}} +\lambda^{1/2}\norm{\theta^*}}. \label{eq:32yassin32analysis321} \end{align}\tag{39}\]

We now apply Theorem 5 to bound \(\norm{X^T\eta}_{V_t^{-1}}\). Let \[\begin{align} X^T\eta = \sum_{s=1}^t x_t 1{\brc*{q_t=1}}^2 \eta_t = \sum_{s=1}^t x_t 1{\brc*{q_t=1}} \eta_t = \sum_{s=1}^t x'_t \eta_t \stackrel{\text{def}}{=}S_t, \end{align}\] where we defined \(x'_t = x_t 1{\brc*{q_t=1}}\). See that \(x'_t\) is \(F_{t-1}\) measurable since both \(x_{t}\) and \(1{\brc*{q_t=1}}\) are \(F_{t-1}\) measurable. Thus, we can apply Theorem 5 and get the following bound with probability greater than \(1-\delta\) for all \(t\geq 0\) \[\begin{align} \norm{X^T\eta}_{V_t^{-1}} \leq \sqrt{2\sigma^2 \log\br*{\frac{\text{det}\br*{V_t}^{1/2} \text{det}\br*{V}^{-1/2}}{\delta}}}. \end{align}\] Conditioning on the event this bound holds and setting \(x = V_t(\hat{\theta}_t -\theta^*)\) in 39 and using \(\norm{\theta^*}\leq D\) we get \[\begin{align} \norm{\hat{\theta}_t - \theta^*}_{V_t}^2 \leq \norm{V_t(\hat{\theta}_t - \theta^*)}_{V_t^{-1}} \br*{ \sqrt{2\sigma^2 \log\br*{\frac{\text{det}\br*{V_t}^{1/2} \text{det}\br*{V}^{-1/2}}{\delta}}} +\lambda^{1/2}D}. \end{align}\] Using \(\norm{V_t(\hat{\theta}_t - \theta^*)}_{V_t^{-1}} = \norm{\hat{\theta}_t - \theta^*}_{V_t}\) and rearranging leads to \[\begin{align} \norm{\hat{\theta}_t - \theta^*}_{V_t} \leq \sigma\sqrt{2\log\br*{\frac{\text{det}\br*{V_t}^{1/2} \text{det}\br*{V}^{-1/2}}{\delta}}} +\lambda^{1/2}D. \label{eq:32yassin32analysis322} \end{align}\tag{40}\]

To obtain the final form, we us bound the term \(\log\br*{\text{det}\br*{V_t}^{1/2} \text{det}\br*{V}^{-1/2}}.\) The trace of \(V_t\) is bounded by \(\text{trace}\br*{V} + tL^2\) since \(\norm{x_t'}\leq \norm{x_t}\leq L\). Hence, \(\text{det}\br*{V_t} = \prod_{i=1}^d \lambda_i\leq \br*{\frac{\text{trace}\br*{V} + t L^2}{d}}^d\) by the GM-AM inequality and \(\sum_{i} \lambda_i = \text{trace}\br*{V_t}\). Therefore, \[\begin{align} \log\br*{\text{det}\br*{V_t} \text{det}\br*{V}^{-1}}=\log \text{det}\br*{V_t} - d\log \lambda \leq d \log\br*{\frac{\lambda+t L^2}{d}} - d\log \lambda = d \log\br*{\frac{1+t L^2/\lambda}{d}}. \end{align}\] Plugging this back into 40 concludes the proof. ◻

Lemma 23 (Elliptical Potential Lemma, [9], Lemma 11). Let \(\brc*{x_t}_{t=1}^\infty\) be a sequence in \(\mathbb{R}^d\) and \(V_t= V+\sum_{i=1}^t x_i x_i^T\). Assume \(\norm{x_t}\leq L\) for all \(t\). Then, \[\begin{align} \sum_{i=1}^t \min\br*{\norm{x_i}_{V_{i-1}^{-1}}^2,1} \leq 2\log\br*{\frac{\text{det}\br*{V_t}}{\text{det}\br*{V}}} \leq 2d\log\br*{\frac{\text{trace}\br*{V} + tL^2}{d}} -2\log{\text{det}\br*{V}}. \end{align}\]

Furthermore, if \(\lambda_{min}(V)\geq \max(1,L^2)\) then \[\begin{align} \sum_{i=1}^t \norm{x_i}_{V_{i-1}^{-1}}^2 \leq 2\log{\frac{\text{det}\br*{V_t}}{\text{det}\br*{V}}} \leq 2d\log{\frac{\text{trace}\br*{V} + tL^2}{d}}. \end{align}\]

The next result appears in [14], proposition 2, lines 48-51, and is a variation of a result utilized by [4].

Lemma 24 (Standard Deviation Difference [14]). Let \(V_1,V_2: \mathcal{S}\rightarrow \mathbb{R}\) be fixed mappings. Let \(P(s)\) be a probability measure over the state space. Then, \(\sqrt{\mathrm{Var}(V_1)} - \sqrt{\mathrm{Var}(V_2)}\leq \sqrt{\mathrm{Var}(V_1-V_2)}\).

Lemma 25 (Law of Total Variance, e.g., [4], [14]). For any \(\pi\) the following holds. \[\begin{align} \mathbb{E}\brs*{\sum_{h=1}^H\mathrm{Var}_{P_h(\cdot |s_{h},a_h)}(V^\pi_{h+1} ) |\pi} = \mathbb{E}\brs*{\br*{\sum_{h=1}^H r(s_h,a_h) - V_1^\pi(s_1) }^2|\pi}. \end{align}\]

16 Useful Identities↩︎

Lemma 26. Let \(C= \brc{\theta: \norm{\bar{\theta}-\theta}_{A}\leq \alpha}\) for some \(\bar\theta\in \mathbb{R}^d,\alpha\in \mathbb{R}\) and \(A\in \mathbb{R}^{d\times d}\) a PD matrix. Then, for any \(x\in \mathbb{R}^d\) \[\begin{align} \max_{\theta\in C}\inner{x,\theta - \bar{\theta}} = \max_{\theta\in C}\inner{x,\bar{\theta} - \theta } = \alpha \norm{x}_{A^{-1}}. \end{align}\]

Proof. The following relations hold. \[\begin{align} \max_{\theta\in C}\inner{x,\theta - \bar{\theta}} &= \max_{\theta\in C}\inner{A^{-1/2}x,A^{1/2}(\theta - \bar{\theta})}\\ &\leq \norm{x}_{A^{-1}} \max_{\theta\in C}\norm{\theta - \bar{\theta}}_{A} \\ &\leq \alpha \norm{x}_{A^{-1}} . \end{align}\] Setting \(\theta - \bar{\theta} = \frac{\alpha}{\norm{x}^2}A^{-1/2}x\) the above inequalities hold with equality (see that \(\norm{\theta - \bar{\theta}}_{A} =\alpha\) which implies that \(\theta - \bar{\theta}\in C\)). Thus, \[\begin{align} \max_{\theta\in C}\inner{x,\theta - \bar{\theta}} = \alpha \norm{x}_{A^{-1}}. \end{align}\] Lastly, since \(\norm{x}_{A^{-1}}= \norm{-x}_{A^{-1}}\) we conclude that \[\begin{align} \max_{\theta\in C}\inner{x,\bar{\theta} - \theta } = \max_{\theta\in C}\inner{-x,\theta -\bar{\theta} }= \alpha \norm{-x}_{A^{-1}} = \alpha \norm{x}_{A^{-1}}. \end{align}\] ◻

References↩︎

[1]
Mnih, V., Kavukcuoglu, K., Silver, D., Rusu, A. A., Veness, J., Bellemare, M. G., Graves, A., Riedmiller, M., Fidjeland, A. K., Ostrovski, G., et al. Human-level control through deep reinforcement learning. Nature, 518 (7540): 529, 2015.
[2]
Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A., et al. Mastering the game of Go without human knowledge. Nature, 550 (7676): 354, 2017.
[3]
Garivier, A. and Cappé, O. The kl-ucb algorithm for bounded stochastic bandits and beyond. In Conference on Learning Theory, pp. 359–376, 2011.
[4]
Azar, M. G., Osband, I., and Munos, R. Minimax regret bounds for reinforcement learning. arXiv preprint arXiv:1703.05449, 2017.
[5]
Auer, P., Cesa-Bianchi, N., and Fischer, P. Finite-time analysis of the multiarmed bandit problem. Machine learning, 47 (2-3): 235–256, 2002.
[6]
Kaufmann, E., Korda, N., and Munos, R. Thompson sampling: An asymptotically optimal finite-time analysis. In International conference on algorithmic learning theory, pp. 199–213. Springer, 2012.
[7]
Agrawal, S. and Goyal, N. Analysis of thompson sampling for the multi-armed bandit problem. In Conference on learning theory, pp. 39–1, 2012.
[8]
Dani, V., Hayes, T. P., and Kakade, S. M. Stochastic linear optimization under bandit feedback. In Conference on Learning Theory, pp. 355–366, 2008.
[9]
Abbasi-Yadkori, Y., Pál, D., and Szepesvári, C. Improved algorithms for linear stochastic bandits. In Advances in Neural Information Processing Systems, pp. 2312–2320, 2011.
[10]
Agrawal, S. and Goyal, N. Thompson sampling for contextual bandits with linear payoffs. In International Conference on Machine Learning, pp. 127–135, 2013.
[11]
Abeille, M., Lazaric, A., et al. Linear thompson sampling revisited. Electronic Journal of Statistics, 11 (2): 5165–5197, 2017.
[12]
Jin, C., Allen-Zhu, Z., Bubeck, S., and Jordan, M. I. Is q-learning provably efficient? In Advances in Neural Information Processing Systems, pp. 4863–4873, 2018.
[13]
Dann, C., Li, L., Wei, W., and Brunskill, E. Policy certificates: Towards accountable reinforcement learning. In International Conference on Machine Learning, pp. 1507–1516, 2019.
[14]
Zanette, A. and Brunskill, E. Tighter problem-dependent regret bounds in reinforcement learning without domain knowledge using value function bounds. arXiv preprint arXiv:1901.00210, 2019.
[15]
Efroni, Y., Merlis, N., Ghavamzadeh, M., and Mannor, S. Tight regret bounds for model-based reinforcement learning with greedy policies. In Advances in Neural Information Processing Systems, pp. 12224–12234, 2019.
[16]
Simchowitz, M. and Jamieson, K. G. Non-asymptotic gap-dependent regret bounds for tabular mdps. In Advances in Neural Information Processing Systems, pp. 1153–1162, 2019.
[17]
Tarbouriech, J., Garcelon, E., Valko, M., Pirotta, M., and Lazaric, A. No-regret exploration in goal-oriented reinforcement learning. In International Conference on Machine Learning, pp. 9428–9437. PMLR, 2020.
[18]
Cohen, A., Kaplan, H., Mansour, Y., and Rosenberg, A. Near-optimal regret bounds for stochastic shortest path. arXiv preprint arXiv:2002.09869, 2020.
[19]
Zhang, Z., Ji, X., and Du, S. S. Is reinforcement learning more difficult than bandits? a near-optimal algorithm escaping the curse of horizon. arXiv preprint arXiv:2009.13503, 2020.
[20]
Garivier, A., Ménard, P., and Stoltz, G. Explore first, exploit next: The true shape of regret in bandit problems. Mathematics of Operations Research, 44 (2): 377–399, 2019.
[21]
Degenne, R. and Perchet, V. Anytime optimal algorithms in stochastic multi-armed bandits. In International Conference on Machine Learning, pp. 1587–1595. PMLR, 2016.
[22]
Maurer, A. and Pontil, M. Empirical bernstein bounds and sample variance penalization. arXiv preprint arXiv:0907.3740, 2009.
[23]
Seldin, Y., Bartlett, P., Crammer, K., and Abbasi-Yadkori, Y. Prediction with limited advice and multiarmed bandits with paid observations. In International Conference on Machine Learning, pp. 280–287. PMLR, 2014.
[24]
Yun, D., Proutiere, A., Ahn, S., Shin, J., and Yi, Y. Multi-armed bandit with additional observations. Proceedings of the ACM on Measurement and Analysis of Computing Systems, 2 (1): 1–22, 2018.
[25]
Badanidiyuru, A., Kleinberg, R., and Slivkins, A. Bandits with knapsacks. In 2013 IEEE 54th Annual Symposium on Foundations of Computer Science, pp. 207–216. IEEE, 2013.
[26]
Sinha, D., Sankararaman, K. A., Kazerouni, A., and Avadhanula, V. Multi-armed bandits with cost subsidy. In International Conference on Artificial Intelligence and Statistics, pp. 3016–3024. PMLR, 2021.
[27]
Efroni, Y., Merlis, N., and Mannor, S. Reinforcement learning with trajectory feedback. arXiv preprint arXiv:2008.06036, 2020.
[28]
Maillard, O.-A., Mann, T. A., and Mannor, S. How hard is my mdp?" the distribution-norm to the rescue". Advances in Neural Information Processing Systems, 27: 1835–1843, 2014.
[29]
Foster, D. J., Krishnamurthy, A., and Luo, H. Model selection for contextual bandits. arXiv preprint arXiv:1906.00531, 2019.
[30]
Foster, D. J., Rakhlin, A., Simchi-Levi, D., and Xu, Y. Instance-dependent complexity of contextual bandits and reinforcement learning: A disagreement-based perspective. arXiv preprint arXiv:2010.03104, 2020.
[31]
Merlis, N. and Mannor, S. Batch-size independent regret bounds for the combinatorial multi-armed bandit problem. In Conference on Learning Theory, pp. 2465–2489. PMLR, 2019.
[32]
Merlis, N. and Mannor, S. Tight lower bounds for combinatorial multi-armed bandits. In Conference on Learning Theory, pp. 2830–2857. PMLR, 2020.
[33]
Lattimore, T. and Szepesvári, C. Bandit algorithms. Cambridge University Press, 2020.
[34]
Bretagnolle, J. and Huber, C. Estimation des densités: risque minimax. Zeitschrift für Wahrscheinlichkeitstheorie und verwandte Gebiete, 47 (2): 119–137, 1979.
[35]
Jin, T. and Luo, H. Learning adversarial mdps with bandit feedback and unknown transition. arXiv preprint arXiv:1912.01192, 2019.
[36]
Beygelzimer, A., Langford, J., Li, L., Reyzin, L., and Schapire, R. Contextual bandit algorithms with supervised learning guarantees. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 19–26, 2011.

  1. A bit more generally, our results holds would we define the set of \((s,a,h)\) with deterministic reward, \(\brc{(s,a,h)\in \mathcal{S}\times \mathcal{A}\times[H]: \mathrm{Var}(R_h(s,a))=0}\). However, since sparse reward is a more natural measure, we chose to work with the set that defined in 12 .↩︎