Instance-Dependent Complexity of Contextual Bandits and Reinforcement Learning: A Disagreement-Based Perspective

Dylan J. Foster, Alexander Rakhlin, David Simchi-Levi, Yunzong Xu

Introduction

How can we adaptively allocate measurements to exploit problem structure in the presence of rich, high-dimensional, and potentially stateful contextual information? In this paper, we investigate this question in the contextual bandit problem and its stateful relative, the problem of reinforcement learning with rich observations.

The contextual bandit is a fundamental problem in sequential decision making. At each round, the learner receives a context, selects an action, and receives a reward; their goal is to select actions so as to maximize the total long-term reward. This model has been successfully deployed in news article recommendation (Li et al., 2010; Agarwal et al., 2016), where actions represent articles to display and rewards represent clicks, and healthcare (Tewari and Murphy, 2017; Bastani and Bayati, 2020), where actions represent treatments to prescribe and rewards represent the patient’s response. Reinforcement learning with rich observations (Krishnamurthy et al., 2016; Jiang et al., 2017) is a substantially more challenging generalization in which the learner’s actions influence the evolution of the contexts, and serves as a stylized model for reinforcement learning with function approximation.

For both settings, our aim is to develop instance-dependent algorithms that adapt to gaps between actions in the underlying reward function to obtain improved regret. In the classical (non-contextual) multi-armed bandit problem, this issue has enjoyed extensive investigation beginning with the work of Lai and Robbins (1985). Here, it is well-understood that when the mean reward function admits a constant gap between the best and second-best action, well-designed algorithms can obtain logarithmic (in TT, the number of rounds) regret, which offers significant improvement over the worst-case minimax rate of T\sqrt{T}. Subsequent work has developed a sharp understanding of optimal instance-dependent regret, both asymptotically and with finite samples (Burnetas and Katehakis, 1996; Garivier et al., 2016; Kaufmann et al., 2016; Lattimore, 2018; Garivier et al., 2019). Beyond the obvious appeal of lower regret, instance-dependent algorithms are particularly compelling for applications such as clinical trials—where excessive randomization may be undesirable or unethical—because they identify and eliminate suboptimal actions more quickly than algorithms that only aim for worst-case optimality.

We take the first step towards developing a similar theory for contextual bandits and reinforcement learning with general function approximation. We focus on the “realizable” or “well-specified” setting in which the learner has access to a class of regression functions F\mathcal{F} that is flexible enough to capture the true reward function or value function. Our aim is to develop learning-theoretic guarantees for rich, potentially nonparametric function classes that 1) scale only with the statistical capacity of the class, and 2) are efficient in terms of basic computational primitives for the class.

For contextual bandits, instance-dependent regret bounds are not well-understood. Positive results are known for simple classes of functions such as linear classes (Dani et al., 2008; Abbasi-Yadkori et al., 2011; Hao et al., 2019) or nonparametric Lipschitz/Hölder classes (Rigollet and Zeevi, 2010; Perchet and Rigollet, 2013; Hu et al., 2020). On the other hand, for arbitrary finite function classes, it is known that gap-dependent regret bounds are not possible in general (Foster and Rakhlin, 2020). One line of work develops algorithms which attain instance-dependent bounds for general classes under additional structural assumptions or distributional assumptions (Russo and Van Roy, 2013; Bietti et al., 2018; Foster et al., 2018), but it is not clear whether these assumptions are fundamental (in particular, they are not required to obtain minimax rates). For reinforcement learning, the situation is more dire: while instance-dependent rates have been explored in the finite state/action setting (Burnetas and Katehakis, 1996; Tewari and Bartlett, 2008; Ok et al., 2018; Simchowitz and Jamieson, 2019), very little is known for the general setting with high dimensional states and function approximation.

Beyond the basic issue of what instance-dependent rates can be achieved for general function classes, an important question is whether they can be achieved efficiently, using practical algorithms. A recent line of work (Foster et al., 2018; Foster and Rakhlin, 2020; Simchi-Levi and Xu, 2020; Xu and Zeevi, 2020) develops algorithms that are efficient in terms calls to an oracle for (offline/online) supervised regression. A secondary goal in this work is to develop practical instance-dependent algorithms based on this primitive.

For contextual bandits and reinforcement learning with rich observations, what properties of the function class enable us to adapt to the gap, and what are the fundamental limits?

More ambitiously, can we get the best of both worlds: Adapt to the gap and obtain the minimax rate simultaneously?

For contextual bandits, we address each of these issues. We introduce a family of new complexity measures which are both necessary (in a certain sense) and sufficient to obtain fast gap-dependent regret bounds. We introduce new oracle-efficient algorithms which adapt to the gap and to these complexity measures whenever possible, while also obtaining the minimax rate. We prove new structural results which—in conjunction with our lower bounds—tie together a number of complexity measures previously proposed in contextual bandits, reinforcement learning, and active learning and provide new insight into their role in determining the optimal instance-dependent regret. We then extend these complexity measures to reinforcement learning with function approximation and give new oracle-efficient algorithms that adapt to them. Overall, our results for RL are somewhat less complete, but we believe they suggest a number of exciting new directions for future research.

We assume that the learner has access to a class of value functions F⊂(X×A→[0,1])\mathcal{F}\subset(\mathcal{X}\times\mathcal{A}\to\left[0,1\right]) (e.g., regression trees or neural networks) that is flexible enough to model the true reward distribution. In particular, we make the following standard realizability assumption (Chu et al., 2011; Agarwal et al., 2012; Foster et al., 2018).

For each regression function f∈Ff\in\mathcal{F}, let πf(x)=⋆⁡arg maxa∈Af(x,a)\pi_{f}(x)=\operatorname\star{arg\,max}_{a\in\mathcal{A}}f(x,a) denote the induced policy (with ties broken arbitrarily, but consistently), and let Π={πf∣f∈F}\Pi=\left\{\pi_{f}\mid{}f\in\mathcal{F}\right\} be the induced policy class. The goal of the learner is to ensure low regret to the optimal policy:

where π⋆:=πf⋆\pi^{\star}\vcentcolon={}\pi_{f^{\star}}. For simplicity, we assume that ⋆⁡arg maxa∈Af⋆(x,a)\operatorname\star{arg\,max}_{a\in\mathcal{A}}f^{\star}(x,a) is unique for all xx, but our results extend when this is not the case.

Consider the simple case where F\mathcal{F} is finite. For general finite classes F\mathcal{F} under 1, the minimax rate for contextual bandits is Θ(ATlog⁡∣F∣)\Theta(\sqrt{A{}T\log\lvert\mathcal{F}\rvert}) (Agarwal et al., 2012). The main question we investigate is to what extent this rate can be improved when the instance has a uniform gapThis is sometimes referred to as the Massart noise condition, which has been widely studied in statistical learning theory in the context of obtaining faster rates for classification. in the sense that for all x∈Xx\in\mathcal{X},

This is impossible in a fairly strong sense: Foster and Rakhlin (2020) show that exist function classes F\mathcal{F} for which any algorithm must haveFoster and Rakhlin (2020) prove this lower bound for adversarial contexts. Our Theorem 2.2 implies an analogous lower bound for stochastic contexts.

Since F\mathcal{F} is exponentially large for most models, polynomial dependence on ∣F∣\lvert\mathcal{F}\rvert is unacceptable. The natural question then, and the one we address, is what structural properties of F\mathcal{F} allow for bounds of the form Eq. 3 that scale only logarithmically with the size of the value function class. We primarily present results on finite classes for simplicity, but our lower bounds and structural results concern infinite classes, and our algorithms make no assumption on the structure.

We show that variants of the disagreement coefficient, a key parameter in empirical process theory and active learning (Alexander, 1987; Hanneke and Yang, 2015), play a fundamental role in determining the optimal gap-dependent regret bounds for contextual bandits with rich function classes.

Our most basic results concern a parameter we call the policy disagreement coefficient,In fact, for binary actions the policy disagreement coefficient is the same as the usual disagreement coefficient from active learning (Hanneke and Yang, 2015); we adopt the name policy disagreement coefficient only to distinguish from other parameters we introduce. defined as

Informally, the policy disagreement coefficient measures how likely we are to encounter a context on which some near-optimal policy disagrees with π⋆\pi^{\star}. Low disagreement coefficient means that all the near-optimal policies deviate from π⋆\pi^{\star} only in a small, shared region of the context space, while large disagreement coefficient means that the points on which disagreement occurs are more prevalent throughout the context space (w.r.t D\mathcal{D}), so that many samples are required to rule out all of these policies.

We introduce a new contextual bandit algorithm, AdaCB, which adapts to the gap whenever the policy disagreement coefficient is bounded. In particular, we show the following.

with no prior knowledge of Δ\Delta or θpol(Π,ε)\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon).

so that AdaCB enjoys logarithmic regret. We emphasize that while Theorem 2.1 concerns finite classes, this is only a stylistic choice: AdaCB places no assumption on the structure of F\mathcal{F}, and the analysis trivially generalizes by replacing log⁡∣F∣\log\left\lvert\mathcal{F}\right\rvert with standard learning-theoretic complexity measures such as the pseudodimension.

While this is certainly encouraging, it is not immediately clear whether the rate in Eq. 5 is fundamental. To this end, we prove that dependence on the disagreement coefficient is qualitatively necessary.

Theorem 2.2 shows that the regret bound Eq. 5 attained by AdaCB cannot be improved without further assumptions on F\mathcal{F}. However, it leaves the possibility of more refined complexity measures that are tighter than θpol(Π,ε)\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon) for most instances, yet coincide on the construction that realizes the lower bound in Theorem 2.2. To this end, we introduce a second complexity measure, the value function disagreement coefficient, which can exploit the scale-sensitive nature of the value function class F\mathcal{F} to provide tighter bounds. The value function disagreement coefficient is defined as

We show that AdaCB, with a slightly different parameter configuration, can adapt to value function disagreement coefficient in a best-of-both-worlds fashion.

where εT∝log⁡∣F∣/T\varepsilon_{T}\propto\sqrt{\log\lvert\mathcal{F}\rvert/T}.

We show (Theorem 2.4) that this dependence on θval(F,Δ,ε)\boldsymbol{\theta}^{\mathsf{val}}\left(\mathcal{F},\Delta,\varepsilon\right) is qualitatively necessary, meaning that AdaCB is adapts near-optimally without additional assumptions.

Beyond contextual bandits, our scale-sensitive generalization of the disagreement coefficient is new to both empirical process theory and active learning to our knowledge, and may be of independent interest.

While the distribution-dependent nature of our disagreement-based upper bounds can lead to tight guarantees for benign distributions, it is natural to ask: For what classes Π\Pi (resp. F\mathcal{F}) can we ensure the policy (resp. value) disagreement coefficient is bounded for any distribution D\mathcal{D}? Hanneke and Yang (2015) show that the policy disagreement coefficient is always bounded by a combinatorial parameter for Π\Pi called the (policy) star number.In fact, the star number exactly coincides with the worst-case value of the disagreement coefficient over all possible distributions and scale parameters. An immediate consequence (via Theorem 2.1) is that AdaCB enjoys logarithmic regret even in the distribution-free setting for classes with bounded policy star number. More interestingly, we show (Theorem 2.6) that for any class Π\Pi, bounded policy star number is necessary to obtain logarithmic regret in the worst-case (with respect to both D\mathcal{D} and the class F\mathcal{F} realizing Π\Pi). Thus, we have the following characterization.

For any policy class Π\Pi, bounded policy star number is necessary and sufficient to obtain logarithmic regret.

Compared to our disagreement-based lower bounds, which rely on specially designed function classes, this lower bound holds for any policy class.

This characterization motivates us to define a scale-sensitive analogue of the star number called the value function star number. The value function star number is a new combinatorial parameter even within the broader literature on active learning and empirical process theory, and we show (Theorem 2.7) that it bounds the value function disagreement coefficient for all choices of the context distribution D\mathcal{D} and scale parameter ε\varepsilon. We then show (Theorem 2.8) that a weak version of the value function disagreement coefficient is necessary to obtain logarithmic regret for worst-case context distributions, leading to the following characterization.

For any value function class F\mathcal{F}, bounded value function star number is (weakly) necessary and sufficient to obtain logarithmic regret.

The value function star number is closely related to—and in particular always upper bounded by—the (value function) eluder dimension of Russo and Van Roy (2013). The eluder dimension was introduced to prove regret bounds for the generalized UCB algorithm and Thompson sampling for contextual bandits with adversarial contexts, and more recently has been used to analyze algorithms for reinforcement learning with function approximation (Osband and Van Roy, 2014; Wen and Van Roy, 2017; Ayoub et al., 2020; Wang et al., 2020). An immediate consequence of the (disagreement coefficient)  ≤  \;\leq\;(star number)  ≤  \;\leq\;(eluder dimension) connection is that boundedness of the eluder dimension suffices to obtain logarithmic regret with AdaCB. Unlike the star number though, bounded eluder dimension is not required for the stochastic setting we consider. However, building on our previous lower bounds, we show (Theorem 2.9) that a weak version of the eluder dimension is necessary to obtain logarithmic regret under adversarial contexts, and give a tighter analysis of the generalized UCB algorithm to show that it attains this rate (this is not a best-of-both-worlds guarantee). This result places the eluder dimension on more solid footing and shows that while it is not required for minimax rates, it plays a fundamental role for instance-dependent rates.

The relationship between all of our complexity measures, old and new, is summarized in Fig. 1. Beyond expanding the scope of settings for which logarithmic regret is achievable, we hope our structural results and lower bounds provide a new lens through which to understand existing algorithms and instance-dependent rates, and provide new clarity.

As a disclaimer, we mention that the primary goal of this work is to understand how contextual information shapes the optimal instance-dependent rates for contextual bandits. We believe that this question is challenging and interesting even in the finite-action regime (in fact, even when A=2A=2!) and as such, we do not focus on obtaining optimal dependence on AA in our upper or lower bounds, nor do we handle infinite actions. Fully understanding the interplay between contexts and actions is a fascinating open problem, and we hope to see this addressed in future work.

Our main algorithm, AdaCB, is oracle-efficient. That is, it accesses the value function class F\mathcal{F} only through a weighted least squares regression oracle capable of solving problems of the form

We replicated the large-scale empirical contextual bandit evaluation setup of Bietti et al. (2018), which compares a number of state-of-the art general-purpose contextual bandit algorithms across more than 500 datasets. We found that our new algorithm, AdaCB, typically gives comparable or superior results to existing baselines, particularly on challenging datasets with many actions.

2 Overview of Results: Reinforcement Learning

Building on our contextual bandit results, we provide disagreement-based guarantees for episodic reinforcement learning with function approximation in a model called the block MDP (Krishnamurthy et al., 2016; Du et al., 2019a), which is an important type of contextual decision process (Jiang et al., 2017).

The block MDP may be thought of as a generalization of the contextual bandit problem. Each round of interaction is replaced by an episode of length HH. While the initial context x1x_{1} (now referred to as a state) in each episode is drawn i.i.d. as in the contextual bandit, the evolution of the subsequent states x2,…,xHx_{2},\ldots,x_{H} is influenced by the learner’s actions. Now, without further assumptions, this is simply a general MDP, and function approximation provides no benefits in the worst-case. To allow for sample-efficient learning guarantees, the block MDP model assumes there is an unobserved latent MDP with SS states, and that each observed state xhx_{h} is drawn from an emission distribution for the current latent state shs_{h}. When H=1H=1 and S=1S=1, this recovers the contextual bandit, and in general the goal is to use an appropriate value function class F\mathcal{F} to attain sample complexity guarantees that are polynomial in SS, but not ∣X∣\left\lvert\mathcal{X}\right\rvert (which, as in the contextual bandit, is typically infinite and high-dimensional).

More formally, the block MDP setup we consider is a layered episodic Markov decision process with horizon HH, state space X=X1∪⋯∪XH\mathcal{X}=\mathcal{X}_{1}\cup\cdots\cup\mathcal{X}_{H} (with Xi∩Xj=∅\mathcal{X}_{i}\cap\mathcal{X}_{j}=\emptyset), and action space A\mathcal{A} with ∣A∣=A\left\lvert\mathcal{A}\right\rvert=A. We proceed in KK episodes. Within each episode we observe rewards and observations through the following protocol, beginning with x1∼μx_{1}\sim\mu.

Observe reward rhr_{h} and next state xh+1∼Ph⋆(⋅∣xh,ah)x_{h+1}\sim P^{\star}_{h}(\cdot\mid{}x_{h},a_{h}).

As mentioned above, the state space is potentially rich and high-dimensional, and dependence on ∣X∣\left\lvert\mathcal{X}\right\rvert is unacceptable. Hence, to enable sample-efficient reinforcement learning guarantees with function approximation, the block MDP model assumes the existence of a latent state space S=S1∪⋯∪SH\mathcal{S}=\mathcal{S}_{1}\cup\cdots\cup\mathcal{S}_{H}, and assumes that each state x∈Xx\in\mathcal{X} can be uniquely attributed to a latent state s∈Ss\in\mathcal{S}. More precisely, we assume that for each hh, Ph⋆P^{\star}_{h} factorizes, so that we can view xh+1x_{h+1} as generated by the process sh+1∼Ph⋆(⋅∣xh,ah)s_{h+1}\sim P^{\star}_{h}(\cdot\mid{}x_{h},a_{h}), xh+1∼ψ(sh+1)x_{h+1}\sim\psi(s_{h+1}), where ψ:S→Δ(X)\psi:\mathcal{S}\to\Delta(\mathcal{X}) is an (unknown) emission distribution, and sh+1s_{h+1} is the latent state for layer h+1h+1. We make the following standard decodability assumption (Krishnamurthy et al., 2016; Jiang et al., 2017; Du et al., 2019a).

This assumption implies that the optimal policy π⋆\pi^{\star} depends only on the current context xhx_{h}. We write the optimal QQ-function for layer hh as Qh⋆(x,a)\mathbf{Q}^{\star}_{h}(x,a) and let Vh⋆(x)=max⁡a∈AQh⋆(x,a)\mathbf{V}^{\star}_{h}(x)=\max_{a\in\mathcal{A}}\mathbf{Q}^{\star}_{h}(x,a) be the optimal value function.

As in the contextual bandit setting, take as a given class of functions F\mathcal{F} that attempts to model the optimal value function. We let Fh⊆(X×A→[0,H])\mathcal{F}_{h}\subseteq(\mathcal{X}\times\mathcal{A}\to\left[0,H\right]) be the value function class for layer hh (with F=F1×⋯×Fh\mathcal{F}=\mathcal{F}_{1}\times\cdots\times\mathcal{F}_{h}), and we make the following optimistic completeness assumption (Jin et al., 2020; Wang et al., 2019, 2020).

For all hh and all functions V:Xh+1→[0,H]V:\mathcal{X}_{h+1}\to\left[0,H\right], we have that

3 implies that Qh⋆∈Fh\mathbf{Q}^{\star}_{h}\in\mathcal{F}_{h}, generalizing the realizability assumption (1) but it is significantly stronger, as it requires that the function class contains Bellman backups for arbitrary functions.

We develop a new instance-dependent algorithm that adapts to the gap in the optimal value function Q⋆\mathbf{Q}^{\star} to attain improved sample complexity. Define Δ(x,a)=Vh⋆(x)−Qh⋆(x,a)\Delta(x,a)=\mathbf{V}^{\star}_{h}(x)-\mathbf{Q}^{\star}_{h}(x,a), and define the worst-case gap as

Our main result is an oracle-efficient algorithm, RegRL, which attains a tight gap-dependent PAC-RL guarantee whenever an appropriate generalization of the value function disagreement coefficient θval\boldsymbol{\theta}^{\mathsf{val}} is bounded.

This theorem has two key features. First, when θval=O~(1)\boldsymbol{\theta}^{\mathsf{val}}=\widetilde{\mathcal{O}}(1), the scaling of ε\varepsilon and Δ\Delta in the term log⁡∣F∣ε⋅Δ\frac{\log\left\lvert\mathcal{F}\right\rvert}{\varepsilon\cdot\Delta} is optimal even for in the special case of contextual bandits, and improves over the minimax rate, which scales as 1ε2\frac{1}{\varepsilon^{2}}. Second, and perhaps more importantly, RegRL is computationally efficient, and only requires a regression oracle for the value function class. Previous works require stronger oracles and typically do not attain optimal dependence on ε\varepsilon, but are not fully comparable in terms of statistical assumptions (Krishnamurthy et al., 2016; Jiang et al., 2017; Dann et al., 2018; Du et al., 2019b, a; Misra et al., 2019; Feng et al., 2020; Agarwal et al., 2020); see Section 3 for a detailed comparison. At a conceptual level, the design and analysis of RegRL use several new techniques that leverage our disagreement-based perspective, and we hope that they will find broader use.

3 Additional Notation

4 Organization

Section 2 contains our main contextual bandit results. Sections 2.1, 2.2 and 2.3 contain our main algorithm, AdaCB, and disagreement-based best-of-both-worlds guarantees and lower bounds. Section 2.4 and Section 2.5 contain structural results and guarantees for worst-case distributions and adversarial contexts. Section 3 contains disagreement-based guarantees for reinforcement learning with function approximation. In Section 4 we show in detail how to implement all of our algorithms for contextual bandits and reinforcement learning using regression oracles for the value function class. Section 5 contains experiments with AdaCB, and we conclude in Section 6 with discussion and open problems. Proofs are deferred to the appendix.

Contextual Bandits

We now introduce our contextual bandit algorithm, AdaCB, and give regret bounds based on the policy and value function disagreement coefficients, as well as matching lower bounds. We then show how to relate these quantities to other structural parameters for the distribution-free and adversarial settings, and instantiate our bounds for concrete settings of interest.

Our main algorithm, AdaCB, is presented in Algorithm 1. Exploration in AdaCB is based on a probability selection strategy introduced by Abe and Long (1999) (see also Abe et al. (2003)) and extended to contextual bandits with general function classes by Foster and Rakhlin (2020) and Simchi-Levi and Xu (2020) for online and offline regression oracles, respectively. We utilize a general version of the Abe-Long strategy which we refer to by the more descriptive name “inverse gap weighting” (IGW). The strategy is parameterized by a learning rate γ\gamma and a subset A′⊆A\mathcal{A}^{\prime}\subseteq\mathcal{A} of actions. Given a context xx and reward predictor f^∈F\widehat{f}\in\mathcal{F}, we define a probability distribution IGWA′,γ(x;f^)∈Δ(A)\textsf{IGW}_{\mathcal{A}^{\prime},\gamma}(x;\widehat{f})\in\Delta(\mathcal{A}) by

where a^:=⋆⁡arg maxa∈A′f^(x,a)\widehat{a}\vcentcolon={}\operatorname\star{arg\,max}_{a\in\mathcal{A}^{\prime}}\widehat{f}(x,a). Both Foster and Rakhlin (2020) and Simchi-Levi and Xu (2020) apply this strategy with A′=A\mathcal{A}^{\prime}=\mathcal{A}, and with the learning rate γ\gamma selected either constant or following a fixed non-adaptive schedule. Building on this approach, AdaCB follows the same general template as the FALCON algorithm of Simchi-Levi and Xu (2020), but with two key differences. First, rather than applying the IGW scheme to all actions, we restrict only to actions aa which are “plausible” in the sense that they are induced by a version space Fm\mathcal{F}_{m} maintained (implicitly) by the algorithm. Second, we choose the learning rate γm\gamma_{m} in a data-driven fashion.

In more detail, we operate in a doubling epoch schedule. Letting τm=2m\tau_{m}=2^{m} with τ0=0\tau_{0}=0, each epoch m≥1m\geq{}1 consists of rounds τm−1+1,…,τm\tau_{m-1}+1,\dots,\tau_{m}, and there are M=⌈log⁡2T⌉M=\lceil\log_{2}T\rceil epochs in total. At the beginning of each epoch mm, we compute an estimator f^m\widehat{f}_{m} for the Bayes regression function f⋆f^{\star} by performing least-squares regression on data collected so far (2). We also maintain a version space Fm\mathcal{F}_{m}, which is the set of all plausible predictors that cannot yet be eliminated based on square loss confidence bounds (3). Based on Fm\mathcal{F}_{m}, we select the learning rate γm\gamma_{m} for the current epoch adaptively by estimating a parameter called the instance-dependent scale factor (λm\lambda_{m}) which is closely related to the policy disagreement coefficient (Option I) and the value function disagreement coefficient (Option II). Then, when a context xtx_{t} in epoch mm arrives, AdaCB first computes the candidate action set At:=A(xt;Fm)\mathcal{A}_{t}\vcentcolon={}\mathcal{A}(x_{t};\mathcal{F}_{m}) (9), which is the set of actions that are optimal for some predictor f∈Fmf\in\mathcal{F}_{m}, and thus could plausibly be equal to π⋆(xt)\pi^{\star}(x_{t}). The algorithm then sets pt=IGWAt,γm(xt;f^m)p_{t}=\textsf{IGW}_{\mathcal{A}_{t},\gamma_{m}}(x_{t};\widehat{f}_{m}) (10), samples at∼pta_{t}\sim{}p_{t}, and proceeds to the next round.

The adaptive learning rate γm\gamma_{m} balances the algorithm’s efforts between exploration and exploitation: a larger learning rate leads to more aggressive exploitation (following the least-squares predictor f^m\widehat{f}_{m}), while a smaller learning rate leads to more conservative exploration over the candidate action set. AdaCB’s learning rate γm\gamma_{m} (6) has two components: the instance-dependent scale factor λm\lambda_{m}, which is adaptively determined by the collected data; and a non-adaptive component propositional to Anm−1/log⁡∣F∣\sqrt{An_{m-1}/\log|\mathcal{F}|}, where nm−1n_{m-1} is the length of the epoch m−1m-1. While the non-adaptive component is the same as the learning rate in FALCON and is sufficient if one only aims to achieve the minimax regret, the adaptive factor λm\lambda_{m}, combined with the action elimination procedure above, is essential for AdaCB to achieve near-optimal instance-dependent regret. We offer two different schemes to select λm\lambda_{m}: The first adapts to the policy disagreement coefficient, while the second adapts to the value function disagreement coefficient.

Option I (policy-based exploration). This option selects λm\lambda_{m} as a sample-based approximation to the quantity

Option II (value-based exploration). While the disagreement probability used in Option I is a useful quantity that provides information on the hardness of the problem instance, it does not fully utilize the value function structure. In particular, it is only sensitive to the occurrence of disagreement on each context, but is not sensitive to the scale of disagreement (i.e., how much it would cost if we chose a disagreeing action) on each context. This motivates Option II, which is based on a refined confidence width w(x;Fm)w(x;\mathcal{F}_{m}) that accounts for both the occurrence and the scale of disagreement. Specifically, w(x;Fm)w(x;\mathcal{F}_{m}) measures the worst-case cost of exploring a sub-optimal action in the candidate action set for xx, and Option II selects λm\lambda_{m} as a sample-based approximation to the quantity

We make a few additional remarks. First, the learning rate and confidence width parameters in Algorithm 1 (and consequently our main theorems) consider a general finite class F\mathcal{F}. This is only a stylistic choice: AdaCB works as-is for general function classes, with the dependence on log⁡∣F∣\log|\mathcal{F}| in these parameters replaced by standard learning-theoretic complexity measures such as the pseudodimension; see Section 2.7. Second, Algorithm 1 takes TT as input. One can straightforwardly extend Algorithm 1 to work with unknown TT using the standard doubling trick. Finally, we emphasize that Option I and Option II are designed based on different techniques and lead to different instance-dependent guarantees. Designing a single option that simultaneously achieving the goals of Option I and Option II is an interesting future direction.

AdaCB can be implemented efficiently with a weighted least squares regression oracle Oracle (see Eq. RO) as follows.

At each epoch mm, call Oracle to compute the square loss empirical risk minimizer f^m\widehat{f}_{m}.

For any given context xx, the candidate action set A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) can be computed using either O~(A)\widetilde{\mathcal{O}}(A) oracle calls when F\mathcal{F} is convex or O~(AT2)\widetilde{\mathcal{O}}(AT^{2}) oracle calls for general (in particular, finite) classes.

For Option II, the function w(x;Fm)w(x;\mathcal{F}_{m}) can be computed in a similar fashion to A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) using O~(A)\widetilde{\mathcal{O}}(A) or O~(AT2)\widetilde{\mathcal{O}}(A{}T^{2}) oracle calls in the convex and general case, respectively.

Altogether, since A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) and w(x;Fm)w(x;\mathcal{F}_{m}) are computed for O(1)\mathcal{O}(1) different contexts per round amortized, the algorithm requires O(AT)\mathcal{O}(AT) calls to Oracle overall when F\mathcal{F} is convex. The reduction is described in full in Section 4.

2 Disagreement-Based Guarantees

We are now ready to state our first main regret guarantee for AdaCB, which is based on the policy disagreement coefficient Eq. 4. The theorem also includes a more general result in terms of an intermediate quantity we call the cost-sensitive policy disagreement coefficient, which we define by

For any instance with uniform gap Δ\Delta, Algorithm 1 with Option I ensures that

More generally, Algorithm 1 with Option I ensures that for every instance, without any gap assumption,

Let us describe some key features of Theorem 2.1.

For example, for the classical multi-armed bandit setup where X\mathcal{X} is a singleton, we have θpol(Π,ε)=1\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon)=1, recovering the usual instance-dependent rate (up to logarithmic factors). We give some more examples where logarithmic regret can be attained in a moment.

More generally, since the function ε↦εΔT\varepsilon\mapsto\varepsilon\Delta{}T is increasing in ε\varepsilon and θpol(Π,ε)\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon) is decreasing, the best choice for the bound Eq. 9 (up to constant factors) is the critical radius εT\varepsilon_{T} that satisfies the balance

For example, if θpol(Π,ε)∝ε−ρ\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon)\propto\varepsilon^{-\rho} for some ρ∈(0,1)\rho\in(0,1), then choosing εT∝(Alog⁡∣F∣(Δ2T)−1)11+ρ\varepsilon_{T}\propto(A\log\lvert\mathcal{F}\rvert(\Delta^{2}T)^{-1})^{\frac{1}{1+\rho}}, leads to

The critical radius also plays an important role in the proof of Theorem 2.1.

With no assumption on the gap or θpol\boldsymbol{\theta}^{\mathsf{pol}}, we may always take θcsc(Π,ε)≤1/ε\boldsymbol{\theta}^{\mathsf{csc}}(\Pi,\varepsilon)\leq{}1/\varepsilon, so that Eq. 10 implies the minimax rate ATlog⁡∣F∣\sqrt{A{}T\log\left\lvert\mathcal{F}\right\rvert}.

We now show that the regret bound attained by AdaCB in Theorem 2.1 is near-optimal, in the sense that it cannot be improved beyond log factors without making additional assumptions on the class F\mathcal{F} or the contextual bandit instance.

Formally, we model a contextual bandit algorithm A as a sequence of mappings At:(X×A×[0,1])t−1×X→Δ(A)\textsf{A}_{t}:(\mathcal{X}\times\mathcal{A}\times{}\left[0,1\right])^{t-1}\times{}\mathcal{X}\to\Delta(\mathcal{A}), so that

is the algorithm’s action distribution after observing context xtx_{t} at round tt.

For a given function class F\mathcal{F}, we define

Our main lower bound shows that there exists a function class F\mathcal{F} for which the constrained minimax complexity matches the upper bound Eq. 9.

All f∈Ff\in\mathcal{F} have uniform gap Δ\Delta.

The constrained minimax complexity is lower bounded by

where Ω~(⋅)\widetilde{\Omega}(\cdot) hides factors logarithmic in AA and ε−1\varepsilon^{-1}.

This lower bound has a simple interpretation: The term εΔT\varepsilon\Delta{}T is the regret incurred if we commit to playing a particular policy π∈Πε\pi\in\Pi_{\varepsilon} for any “simple” instance in which the gap is no larger than O(Δ)\mathcal{O}(\Delta) for all actions, while the term θpol(Π,ε)Alog⁡∣F∣Δ\frac{\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon)A\log{}\left\lvert\mathcal{F}\right\rvert}{\Delta} is the cost of exploration to find such a policy.

The first implication of this lower bound is that without an assumption such as the disagreement coefficient, logarithmic regret is impossible even when the gap is constant; this alone is not surprising since Foster and Rakhlin (2020) already showed a similar impossibility for non-stochastic contexts, but Theorem 2.2 strengthens this result since it holds for stochastic contexts. More importantly, the lower bound shows that the tradeoff in Theorem 2.1 is tight as a function of Δ,ε,A,log⁡∣F∣\Delta,\varepsilon,A,\log\left\lvert\mathcal{F}\right\rvert, and θpol\boldsymbol{\theta}^{\mathsf{pol}}, so additional assumptions are required to attain stronger instance-dependent regret bounds for specific classes. We explore such assumptions in the sequel.

We mention one important caveat: Compared to instance-dependent lower bounds for multi-armed bandits (e.g., Garivier et al. (2019)), the quantification for Theorem 2.2 is slightly weaker. Rather than lower bounding the regret for any particular instance (assuming uniformly good performance in a neighborhood), we only show existence of a particular realizable instance with gap for which the regret lower bound holds. We suspect that strengthening the lower bound in this regard will be difficult unless one is willing to sacrifice dependence on log⁡F\log{}F.

The (policy) disagreement coefficient has been studied extensively in active learning, and many bounds are known for different function classes and distributions of interest. We refer to Hanneke (2014) for a comprehensive survey and summarize some notable examples here (restricting to the binary/two-action case, which has been the main focus of active learning literature).

When F\mathcal{F} is a dd-dimensional linear function class, θpol(Π,ε)≤O~(d1/2log⁡(1/ε))\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon)\leq{}\widetilde{\mathcal{O}}(d^{1/2}\log(1/\varepsilon)) whenever D\mathcal{D} is isotropic log-concave (Balcan and Long, 2013). More generally, θpol(Π,ε)=o(1/ε)\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon)=o(1/\varepsilon) as long as D\mathcal{D} admits a density (Hanneke, 2014).

3 Scale-Sensitive Guarantees

We now give instance-dependent regret guarantees based on the value function disagreement coefficient, which is defined via

Compared to the policy disagreement coefficient, the value function disagreement coefficient is somewhat easier to bound directly when the value function class F\mathcal{F} has simple structure. For example, when F\mathcal{F} is linear, we can bound θval\boldsymbol{\theta}^{\mathsf{val}} in terms of the dimension for any distribution with a simple linear algebraic calculation.

More generally—as we show in the next section—the value function disagreement coefficient is always bounded by the so-called eluder dimension for F\mathcal{F}, allowing us to leverage existing results for this parameter (Russo and Van Roy, 2013). However, the value function disagreement coefficient can be significantly tighter because—among other reasons—it can leverage benign distributional structure.

We now show that AdaCB can simultaneously attain the minimax regret bound and adapt to the value function disagreement coefficient.

For any instance, Algorithm 1 with Option II ensures that

where εT∝log⁡(∣F∣T)/T\varepsilon_{T}\propto\sqrt{{\log(\left\lvert\mathcal{F}\right\rvert T)}/{T}}.

As with our policy disagreement-based result, we complement Theorem 2.3 with a lower bound. To state the result, we define

which is the value-based analogue of the constrained minimax complexity Eq. 13. Our main lower bound is as follows.

All f∈Ff\in\mathcal{F} have uniform gap Δ\Delta.

The constrained minimax complexity is lower bounded by

where Ω~(⋅)\widetilde{\Omega}(\cdot) hides factors logarithmic in AA and Δ/ε\Delta/\varepsilon.

As with Theorem 2.2, the lower bound Eq. 17 has a simple interpretation: The term ε2ΔT\frac{\varepsilon^{2}}{\Delta{}}T is an upper bound on the regret of any policy πf\pi_{f} for which the predictor ff is within L2L_{2}-radius ε\varepsilon of f⋆f^{\star} (under gap Δ\Delta), and the term θval(F,Δ/2,ε)Alog⁡∣F∣Δ\frac{\boldsymbol{\theta}^{\mathsf{val}}\left(\mathcal{F},\Delta/2,\varepsilon\right)A{}\log{}\left\lvert\mathcal{F}\right\rvert}{\Delta} is the exploration cost to find such a predictor.

This implies that the instance-dependent term in Eq. 15 is nearly optimal in this regime, in that the parameter εT=log⁡∣F∣/T\varepsilon_{T}=\sqrt{{\log\left\lvert\mathcal{F}\right\rvert}/{T}} used by the algorithm can at most be increased by a sub-polynomial factor. In general, however, Eq. 15 does not exactly match the tradeoff in Eq. 17, but we suspect that AdaCB can be improved to close the gap.With a-priori knowledge of θval\boldsymbol{\theta}^{\mathsf{val}}, this is fairly straightforward.

4 Distribution-Free Guarantees

The disagreement coefficients introduced in the previous section depend strongly on the context distribution D\mathcal{D}. On one hand, this is a desirable feature, since it means we may pay very little to adapt to the gap Δ\Delta for benign distributions. On the other hand, in practical applications, we may not have prior knowledge of how favorable D\mathcal{D} is, or whether we should expect to do any better than the minimax rate. A natural question then is for what function classes we can guarantee logarithmic regret for any distribution D\mathcal{D}. An important result of Hanneke and Yang (2015) shows that in the binary setting, the policy disagreement coefficient is always bounded by a combinatorial parameter called the (policy) star number. We give distribution-free results based on two multiclass generalizations of this parameter

For any policy π⋆\pi^{\star} and policy class Π\Pi, let the weak policy star number s‾π⋆pol(Π)\underline{\mathfrak{s}}^{\mathsf{pol}}_{\pi^{\star}}(\Pi) denote the largest number mm such that there exist contexts x(1),…,x(m)x^{{\scriptscriptstyle(1)}},\ldots,x^{{\scriptscriptstyle(m)}} and policies π(1),…,π(m)\pi^{{\scriptscriptstyle(1)}},\ldots,\pi^{{\scriptscriptstyle(m)}} such that for all ii,

For any policy π⋆\pi^{\star} and policy class Π\Pi, let the strong policy star number sπ⋆pol(Π)\mathfrak{s}^{\mathsf{pol}}_{\pi^{\star}}(\Pi) denote the largest number mm such that there exist context-action pairs (x(1),a(1)),…,(x(m),a(m))(x^{{\scriptscriptstyle(1)}},a^{{\scriptscriptstyle(1)}}),\ldots,(x^{{\scriptscriptstyle(m)}},a^{{\scriptscriptstyle(m)}}) and policies π(1),…,π(m)\pi^{{\scriptscriptstyle(1)}},\ldots,\pi^{{\scriptscriptstyle(m)}} such that for all ii,

These definitions are closely related: It is simple to see that

This result immediately implies that AdaCB enjoys logarithmic regret for any function class with bounded policy star number.

For any function class F\mathcal{F}, AdaCB with Option I has

One slightly unsatisfying feature of our lower bounds based on the disagreement coefficient (Theorem 2.2/Theorem 2.4) is that they are worst-case in nature, and rely on an adversarially constructed policy class. Our next theorem shows that Eq. 20 is near-optimal for any policy class Π\Pi (albeit, in the worst case over all value function classes F\mathcal{F} inducing Π\Pi). This means that if we take the policy class Π\Pi as a given rather than the value function class F\mathcal{F}, bounded policy star number is both necessary and sufficient for logarithmic regret.

Let a policy class Π\Pi, π⋆∈Π\pi^{\star}\in\Pi, and gap Δ∈(0,1/8)\Delta\in(0,1/8) be given. Then there exists a value function class F\mathcal{F} such that

Π={πf∣f∈F}\Pi=\left\{\pi_{f}\mid{}f\in\mathcal{F}\right\}, and in particular some f⋆∈Ff^{\star}\in\mathcal{F} has π⋆=πf⋆\pi^{\star}=\pi_{f^{\star}}.

Each f∈Ff\in\mathcal{F} has uniform gap Δ\Delta.

This bound scales with the strong variant of the policy disagreement coefficient rather than the (smaller) weak variant, but does not directly scale with the number of actions. Hence, the dependence matches the upper bound of AdaCB in Eq. 20 whenever the second inequality in Eq. 18 saturates (since sπ⋆pol(Π)\mathfrak{s}^{\mathsf{pol}}_{\pi^{\star}}(\Pi) can itself scale with the number of actions). We suspect that the lower bound is tight and that the upper bound can be improved to scale with sπ⋆pol(Π)\mathfrak{s}^{\mathsf{pol}}_{\pi^{\star}}(\Pi), with no explicit dependence on the number of actions.

Unlike the upper bound Eq. 20, the lower bound Eq. 21 does not scale with log⁡∣F∣\log\left\lvert\mathcal{F}\right\rvert. This does not appear to be possible to resolve without additional assumptions, as there are classes for which Eq. 21 is tight (consider dd independent multi-armed bandit problems), as well as classes for which Eq. 20 is tight (cf. Theorem 2.2). Similar issues arise in lower bounds for active learning (Hanneke and Yang, 2015). However in the full version of Theorem 2.6 (Section D.3), we are able to strengthen the lower bound to roughly \Omega\Big{(}\frac{\mathfrak{s}^{\mathsf{pol}}_{\pi^{\star}}(\Pi)+\log\left\lvert\mathcal{F}\right\rvert}{\Delta}\Big{)} for Natarajan classes.

We now extend our development based on the star number to give distribution-free upper bounds on the value function disagreement coefficient. Compared to the policy-based setting, where we were able to simply appeal to upper bounds from Hanneke and Yang (2015), scale-sensitive analogues of the star number have not been studied in the literature to our knowledge. This leads us to introduce the following definition.

Let sˇf⋆val(F,Δ)\check{\mathfrak{s}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta) be the length of the longest sequence of context-action pairs (x(1),a(1)),…,(x(m),a(m))(x^{{\scriptscriptstyle(1)}},a^{{\scriptscriptstyle(1)}}),\ldots,(x^{{\scriptscriptstyle(m)}},a^{{\scriptscriptstyle(m)}}) such that for all ii, there exists f(i)∈Ff^{{\scriptscriptstyle(i)}}\in\mathcal{F} such that

The value function star number is defined as sf⋆val(F,Δ0):=sup⁡Δ>Δ0sˇf⋆val(F,Δ)\mathfrak{s}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta_{0})\vcentcolon=\sup_{\Delta>\Delta_{0}}\check{\mathfrak{s}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta).

When the function class F\mathcal{F} is {0,1}\left\{0,1\right\}-valued, the value function star number coincides with the policy star number, i.e. sf⋆val(F,1)=sf⋆pol(F)\mathfrak{s}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},1)=\mathfrak{s}^{\mathsf{pol}}_{f^{\star}}(\mathcal{F}). In general though, for a given class F\mathcal{F}, the policy star number for the induced class can be arbitrarily large compared to the value function star number.Interestingly, this construction also shows that in general, the value function star number for F\mathcal{F} can be arbitrarily small compared to the fat-shattering dimension. This is somewhat counterintuitive because the star number for a policy class always upper bounds its VC dimension.

Generalizing the result of Hanneke and Yang (2015), we show that the value function star number bounds the value function disagreement coefficient for all distributions and all scale levels.

For any uniform Glivenko-Cantelli class F\mathcal{F} and f⋆:X×A→[0,1]f^{\star}:\mathcal{X}\times\mathcal{A}\to\left[0,1\right],

Compared to the bound for the policy star number (Theorem 2.5), Theorem 2.7 is worse by a quadratic factor when specialized to discrete function classes. Improving Eq. 22 to be linear in the star number is an interesting technical question. The assumption that F\mathcal{F} is uniform Glivenko-Cantelli is quite weak and arises for technical reasons: compared to the policy star number, which always bounds the VC/Natarajan dimension, boundedness of the value function star number is not sufficient to ensure that F\mathcal{F} enjoys uniform convergence.

The main takeaway from Theorem 2.7 is that AdaCB with Option II guarantees

for any distribution. Following our development for the policy star number, we now turn our attention to establishing the necessity of the value function star number for gap-dependent regret bounds. Our lower bound depends on the following “weak” variant of the parameter.

For any Δ∈(0,1)\Delta\in(0,1) and ε∈(0,Δ/2)\varepsilon\in(0,\Delta/2), define s‾f⋆val(F,Δ,ε)\underline{\mathfrak{s}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta,\varepsilon) be the length of the largest sequence of points x(1),…,x(m)x^{{\scriptscriptstyle(1)}},\ldots,x^{{\scriptscriptstyle(m)}} such that for all ii, there exists f(i)∈Ff^{{\scriptscriptstyle(i)}}\in\mathcal{F}, such that

f(i)(x(i),πf(i)(x(i)))≥max⁡a≠πf(i)(x(i))f(i)(x(i),a)+Δf^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}},\pi_{f^{{\scriptscriptstyle(i)}}}(x^{{\scriptscriptstyle(i)}}))\geq{}\max_{a\neq{}\pi_{f^{{\scriptscriptstyle(i)}}}(x^{{\scriptscriptstyle(i)}})}f^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}},a)+\Delta and πf(i)(x(i))≠π⋆(x(i))\pi_{f^{{\scriptscriptstyle(i)}}}(x^{{\scriptscriptstyle(i)}})\neq{}\pi^{\star}(x^{{\scriptscriptstyle(i)}}).

max⁡a∣f(i)(x(i),a)−f⋆(x(i),a)∣≤2Δ\max_{a}\left\lvert f^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}},a)-f^{\star}(x^{{\scriptscriptstyle(i)}},a)\right\rvert\leq{}2\Delta

∑j≠imax⁡a∣f(i)(x(j),a)−f⋆(x(j),a)∣2<ε2\sum_{j\neq{}i}\max_{a}\left\lvert f^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(j)}},a)-f^{\star}(x^{{\scriptscriptstyle(j)}},a)\right\rvert^{2}<\varepsilon^{2}.

Relative to the basic value function star number, the key difference above is that we allow a separate scale parameter to control the sum constraint in Item 3 above. This is important to prevent passive information leakage in our lower bound construction, but we suspect this condition can be relaxed to more closely match Definition 2.3. Our main lower bound is as follows.To avoid technical conditions involving the boundary of the interval [0,1]\left[0,1\right], we allow for unit Gaussian rewards with means in [0,1]\left[0,1\right] for this lower bound.

Let a function class F\mathcal{F} and f⋆∈Ff^{\star}\in\mathcal{F} with uniform gap Δ\Delta be given. Let εT∈(0,Δ/4)\varepsilon_{T}\in(0,\Delta/4) be the largest solution to the equationThere is always at least one solution to Eq. 24, since we can take εT=0\varepsilon_{T}=0.

As mentioned before, we suspect that the linear scaling in Eq. 25 is correct and that Eq. 23 can be improved to match. The dependence on the additional scale parameter εT\varepsilon_{T} is more subtle, and requires further investigation.

5 Adversarial Contexts and the Eluder Dimension

Let eˇf⋆val(F,Δ)\check{\mathfrak{e}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta) be the length of the longest sequence of context-action pairs (x(1),a(1)),…,(x(m),a(m))(x^{{\scriptscriptstyle(1)}},a^{{\scriptscriptstyle(1)}}),\ldots,(x^{{\scriptscriptstyle(m)}},a^{{\scriptscriptstyle(m)}}) such that for all ii, there exists f(i)∈Ff^{{\scriptscriptstyle(i)}}\in\mathcal{F} such that

The value function eluder dimension is defined as ef⋆val(F,Δ0)=sup⁡Δ>Δ0eˇval(F,Δ)\mathfrak{e}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta_{0})=\sup_{\Delta>\Delta_{0}}\check{\mathfrak{e}}^{\mathsf{val}}(\mathcal{F},\Delta).

The only difference between the value function star number and the value function eluder dimension is whether the sum in Eq. 26 takes the form “∑j≠i\sum_{j\neq{}i}” or “∑j<i\sum_{j<i}”; the latter reflects the stronger sequential structure present when contexts are adversarial. It is immediate that

However, the separation between the two parameters can be arbitrarily large in general.

While Eq. 27 shows that boundedness of the eluder dimension is sufficient for AdaCB achieve logarithmic regret for stochastic contexts (via Eq. 23), Proposition 2.3, shows that it may lead to rather pessimistic upper bounds. This is not surprising, since the eluder dimension was designed to accomodate adversarially chosen contexts. The next result, which is a small refinement of the analysis of Russo and Van Roy (2013), shows that bounded eluder dimension indeed suffices to guarantee logarithmic regret for the adversarial setting; we defer a precise description of the algorithm to the proof.

For the adversarial context setting, the general function class UCB algorithm—when configured appropriately—guarantees that

for any instance with uniform gap Δ\Delta.

Paralleling our results for the value function star number, we show that boundedness of a weak variant of the value function eluder dimension is required for logarithmic regret with adversarial contexts.

For any Δ∈(0,1)\Delta\in(0,1) and ε∈(0,Δ/4)\varepsilon\in(0,\Delta/4), define e‾f⋆val(F,Δ,ε)\underline{\mathfrak{e}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta,\varepsilon) be the length of the largest sequence of contexts x(1),…,x(m)x^{{\scriptscriptstyle(1)}},\ldots,x^{{\scriptscriptstyle(m)}} such that for all ii, there exists f(i)∈Ff^{{\scriptscriptstyle(i)}}\in\mathcal{F}, such that

f(i)(x(i),πf(i)(x(i)))≥max⁡a≠πf(i)(x(i))f(i)(x(i),a)+Δf^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}},\pi_{f^{{\scriptscriptstyle(i)}}}(x^{{\scriptscriptstyle(i)}}))\geq{}\max_{a\neq{}\pi_{f^{{\scriptscriptstyle(i)}}}(x^{{\scriptscriptstyle(i)}})}f^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}},a)+\Delta and πf(i)(x(i))≠π⋆(x(i))\pi_{f^{{\scriptscriptstyle(i)}}}(x^{{\scriptscriptstyle(i)}})\neq{}\pi^{\star}(x^{{\scriptscriptstyle(i)}}).

max⁡a∣f(i)(x(i),a)−f⋆(x(i),a)∣≤2Δ\max_{a}\left\lvert f^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}},a)-f^{\star}(x^{{\scriptscriptstyle(i)}},a)\right\rvert\leq{}2\Delta

∑j<imax⁡a∣f(i)(x(j),a)−f⋆(x(j),a)∣2<ε2\sum_{j<i}\max_{a}\left\lvert f^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(j)}},a)-f^{\star}(x^{{\scriptscriptstyle(j)}},a)\right\rvert^{2}<\varepsilon^{2}.

Our main lower bound here shows that—with the same caveats as Theorem 2.8—the scaling in Eq. 28 is near-optimal.As with Theorem 2.8, we allow for unit Gaussian rewards with means in [0,1]\left[0,1\right] for this lower bound.

Let a function class F\mathcal{F} and f⋆∈Ff^{\star}\in\mathcal{F} with uniform gap Δ\Delta be given. Let εT∈(0,Δ/4)\varepsilon_{T}\in(0,\Delta/4) be the largest solution to the equation

An immediate consequence of Theorem 2.7 and Eq. 27 is that we always have θval(F,Δ,ε)≤O(eval(F,Δ)2)\boldsymbol{\theta}^{\mathsf{val}}\left(\mathcal{F},\Delta,\varepsilon\right)\leq\mathcal{O}(\mathfrak{e}^{\mathsf{val}}(\mathcal{F},\Delta)^{2}). While this bound scales quadratically, we can show through a more direct argument that the value function disagreement coefficient grows at most linearly with the eluder dimension.

For any uniform Glivenko-Cantelli class F\mathcal{F} and f⋆:X×A→[0,1]f^{\star}:\mathcal{X}\times\mathcal{A}\to\left[0,1\right],

This result strongly suggests that the quadratic dependence on the value function star number in Theorem 2.7 can be improved.

Previous work which uses the eluder dimension to analyze algorithms for contextual bandits and reinforcement learning (Russo and Van Roy, 2013; Osband and Van Roy, 2014; Ayoub et al., 2020; Wang et al., 2020) only works with the value function-based formulation in Definition 2.5. In light of our results for the disagreement coefficient and star number, we propose the following policy-based variant of the eluder dimension.

For any policy π⋆\pi^{\star} and policy class Π\Pi, let the policy eluder dimension eπ⋆pol(Π)\mathfrak{e}^{\mathsf{pol}}_{\pi^{\star}}(\Pi) denote the largest number mm such that there exist context-action pairs (x(1),a(1)),…,(x(m),a(m))(x^{{\scriptscriptstyle(1)}},a^{{\scriptscriptstyle(1)}}),\ldots,(x^{{\scriptscriptstyle(m)}},a^{{\scriptscriptstyle(m)}}) and policies π(1),…,π(m)\pi^{{\scriptscriptstyle(1)}},\ldots,\pi^{{\scriptscriptstyle(m)}} such that for all ii,

We are not yet aware of any upper bounds based on the policy eluder dimension, but we can show that boundedness of this parameter is indeed necessary for logarithmic regret in the adversarial context setting (in a worst-case sense).

Consider the adversarial context setting. Let a policy class Π\Pi, π⋆∈Π\pi^{\star}\in\Pi, and gap Δ∈(0,1/8)\Delta\in(0,1/8) be given. Then there exists a value function class F\mathcal{F} such that:

Π={πf∣f∈F}\Pi=\left\{\pi_{f}\mid{}f\in\mathcal{F}\right\}, and in particular some f⋆∈Ff^{\star}\in\mathcal{F} has π⋆=πf⋆\pi^{\star}=\pi_{f^{\star}}.

Each f∈Ff\in\mathcal{F} has uniform gap Δ\Delta.

6 Discussion

Our proof of Theorem 2.1 builds on the regret analysis framework established in Simchi-Levi and Xu (2020), which interprets IGW as maintaining a distribution over policies in the universal policy space AX\mathcal{A}^{\mathcal{X}}, and shows that the induced distribution of policies is a solution to an implicit optimization problem which (when configured appropriately) provides a sufficient condition for minimax contextual bandit learning. Following this framework, we also view AdaCB’s sequential IGW procedure as implicitly maintaining a sequence of distributions over policies, but with an additional key property: the support of the implicit distribution over policies is adaptively shrinking. This is enabled by AdaCB’s elimination procedure and is essential to our instance-dependent analysis. We show that the implicit distribution over policies given by AdaCB is a solution to a novel data-driven implicit optimization problem (Lemma C.6), which, when configured appropriately by adaptively selecting the learning rate with Option I, provides a sufficient condition for optimal policy disagreement-based instance-dependent contextual bandit learning. Our proof introduces several new techniques to instance-dependent analysis of contextual bandits, including using disagreement-based indicators and disagreement probability to obtain faster policy convergence rates (Lemmas C.8, C.10 and C.11). We also remark that the selection of the adaptive learning rate is non-trivial, and we derive the schedule Option I by carefully balancing key quantities appearing in our analysis.

Our lower bounds build on the work of Raginsky and Rakhlin (2011), which provides information-theoretic lower bounds for passive and active learning in terms of the disagreement coefficient. As in this work, we rely on a specialized application of the Fano method using the reverse KL-divergence, but with some refinements to make the technique more suited for regret lower bounds. For Theorem 2.2, we also incorporate improvements to the method suggested by Hanneke (2014) to obtain the correct dependence on log⁡∣F∣\log\lvert\mathcal{F}\rvert.

The proof of Theorem 2.7 is somewhat different from the proof of the analogous policy-based result by Hanneke and Yang (2015). The key step toward proving LABEL:{thm:disagreement_to_star} is to prove an empirical analogue of the result that holds whenever D\mathcal{D} is uniform over a finite sequence of examples. This result is given in Lemma E.1, and is motivated by a property of the eluder dimension established in Proposition 3 of Russo and Van Roy (2013), with their “∑j<i\sum_{j<i}”-based definition changed to our “∑j≠i\sum_{j\neq i}”-based definition. The proof of Lemma E.1 trickier, however, as our “∑j≠i\sum_{j\neq i}”-based definition breaks several combinatorial properties utilized in the proof of Russo and Van Roy (2013). We address this challenge by proving a new combinatorial lemma (Lemma E.3), which is fairly general and may be interesting on its own right. Nevertheless, our upper bound is quadratic in sf⋆val(F,Δ)\mathfrak{s}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta) rather than linear, and we hope that this dependence can be improved in future work.

Gap-dependent regret bounds for contextual bandits have not been systematically studied at the level of generality we consider here, and we are not aware of any prior lower bounds beyond the linear setting. Most prior work has focused on structured function classes such as linear (Dani et al., 2008; Abbasi-Yadkori et al., 2011; Hao et al., 2019) and nonparametric Lipschitz/Hölder classes (Rigollet and Zeevi, 2010; Perchet and Rigollet, 2013; Hu et al., 2020).

Our work draws inspiration from Krishnamurthy et al. (2017), who defined variants of the disagreement coefficient which depend on scale-sensitive properties of the class F\mathcal{F} in the context of cost-sensitive multiclass active learning. Compared to these results, the key difference is that our value function disagreement coefficient is defined in terms of the L2L_{2} ball for the class F\mathcal{F} rather than the excess risk ball for the induced policy class. This change is critical to ensure that the value function disagreement coefficient is bounded by the value function star number, and in particular that it is always bounded for linear classes.

Our work also builds on Foster et al. (2018), who give instance-dependent guarantees for the generalized UCB algorithm and an action elimination variant for general function classes based on the cost-sensitive multiclass disagreement coefficients introduced in Krishnamurthy et al. (2017). We improve upon this result on several fronts: 1) As mentioned above, our notion of value function disagreement coefficient is tighter, and is always bounded by the value function star number and value function eluder dimension 2) we attain optimal dependence on the gap, 3) our algorithms are guaranteed to attain the minimax rate in the worst case, and 4) we complement these results with lower bounds.

Lastly, we mention that while there are no prior lower bounds for contextual bandits based on the eluder dimension, Wen and Van Roy (2017) give an eluder-based lower bound for reinforcement learning with deterministic transitions and known rewards. This result is closer in spirit to our disagreement-based lower bounds (Theorems 2.2 and 2.4), is it applies to a carefully constructed function class rather than holding for all function classes, and mainly serves to demonstrate the worst-case tightness of a particular upper bound.

7 Extensions

We conclude this section by presenting some basic extensions of our contextual bandit results, including extensions of our regret bounds to handle infinite classes and weaker noise conditions.

As we have mentioned, Algorithm 1, Theorem 2.1 and Theorem 2.3 trivially extend to infinite F\mathcal{F}, with the dependence on log⁡∣F∣\log|\mathcal{F}| in the algorithm’s parameters and the regret bounds replaced by standard learning-theoretic complexity measures such as the pseudodimension, (localized) Rademacher complexity, or metric entropy. This is because the analysis of AdaCB (see Appendix C) does not rely on any complexity assumptions for F\mathcal{F}, except for Lemma C.1, which uses a standard uniform martingale concentration bound for the square loss to show that the empirical risk minimizer f^m\widehat{f}_{m} has low excess risk at each epoch. Therefore, to extend our results to infinite F\mathcal{F}, one only needs to replace Lemma C.1 with an analogous uniform martingale concentration inequality for infinite classes. Such results have already been established in the literature, see, e.g., Krishnamurthy et al. (2017) and Foster et al. (2018).

Beyond uniform gap, AdaCB can also adapt to the Tsybakov noise condition (Mammen and Tsybakov, 1999; Tsybakov, 2004; Audibert et al., 2007; Rigollet and Zeevi, 2010; Hu et al., 2020), as the following proposition shows.

Suppose there exist constants α,β≥0\alpha,\beta\geq 0 such that

Then Algorithm 1 with Option I ensures that

The supremum over the action distribution pp in the definition Eq. 14 of the value function disagreement coefficient is more pessimistic than what is actually required to analyze AdaCB. Consider the following action distribution-dependent definition:

The regret bound in Theorem 2.3 can be tightened to depend on sup⁡p∈PθD,p;f⋆val(F,Δ/2,εT)\sup_{p\in\mathcal{P}}\boldsymbol{\theta}^{\mathsf{val}}_{\mathcal{D},p;f^{\star}}(\mathcal{F},\Delta/2,\varepsilon_{T}), where P\mathcal{P} is a set of action distributions with favorable properties that can lead to tighter bounds. In particular, the proof of Theorem 2.3 implies that for any instance with uniform gap Δ\Delta, if θD,p;f⋆val(F,Δ/2,εT)≤θ\boldsymbol{\theta}^{\mathsf{val}}_{\mathcal{D},p;f^{\star}}(\mathcal{F},\Delta/2,\varepsilon_{T})\leq\theta for all pp such that p(π⋆(x)∣x)≥A−1p(\pi^{\star}(x)|x)\geq A^{-1} for all xx, then AdaCB with Option II ensures that

The following result shows that this property leads to dimension-independent bounds for sparse linear function classes.

for all pp such that p(π⋆(x)∣x)≥αp(\pi^{\star}(x)|x)\geq{}\alpha for all xx.

For simplicity, we assume that arg⁡max⁡a∈Af⋆(x,a)\arg\max_{a\in\mathcal{A}}f^{\star}(x,a) is unique for all xx in the main body of the paper. When such assumption does not hold, we keep the original definition of π⋆(x)\pi^{\star}(x) (which makes π⋆(x)\pi^{\star}(x) unique for each x∈Xx\in\mathcal{X}), while defining

We then make the following modifications to our framework. First, we modify the uniform gap condition Eq. 2 to require that for all x∈Xx\in\mathcal{X},

Second, we modify the definition of policy disagreement coefficient to

Reinforcement Learning

We now give disagreement-based guarantees for reinforcement learning with function approximation in the block MDP setting (cf. Section 1.2.1). Before proceeding, let us introduce some additional notation.

We also define the Bayes reward function as

1 The Algorithm

Our main reinforcement learning algorithm, RegRL, is presented in Algorithm 2. The algorithm follows the optimistic least-squares value iteration framework (Jin et al., 2020; Wang et al., 2019, 2020), with few key changes that allow us to prove guarantees based on a suitable notion of value function disagreement coefficient rather than stronger complexity measures such as the eluder dimension. The most interesting aspect of the algorithm is a feature we call the star hull upper confidence bound: Compared to the classical UCB approach, which computes an optimistic QQ-function by taking largest predicted reward amongst all value function in an L2L_{2} ball around an empirical risk minimizer, we add an additional step which first “lightly convexifies” this set. This step is based on techniques from the literature on aggregation in least squares (Audibert, 2008; Liang et al., 2015), and leads to more stable predictions.

In more detail, the algorithm proceeds in KK iterations.We use the term “iteration” distinctly from the term “episode”, as each iteration consists of multiple episodes. In each iteration kk, we compute an optimistic Q-function \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111(k)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}^{{\scriptscriptstyle(k)}} such that

We then take the greedy argmax policy defined by π(k)(x)=⋆⁡arg maxa∈A\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h(k)(x,a)\pi^{{\scriptscriptstyle(k)}}(x)=\operatorname\star{arg\,max}_{a\in\mathcal{A}}\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h}^{{\scriptscriptstyle(k)}}(x,a) for x∈Xhx\in\mathcal{X}_{h}, and gather HH trajectories as follows: For each hh, we roll in to layer hh with π(k)\pi^{{\scriptscriptstyle(k)}}, then choose actions uniformly at random for the rest of the episode. These trajectories are used to refine our value function estimates for subsequent iterations, with the hhth trajectory used for estimation at layer hh. Choosing actions uniformly ensures that the data gathered from these trajectories is useful regardless of the action distribution in subsequent iterations.

Let us now elaborate on the upper confidence bound computation. Let iteration kk and layer hh be fixed, and suppose we have already computed \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}} and \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)(x):=max⁡a∈A\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)(x,a)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}}(x)\vcentcolon={}\max_{a\in\mathcal{A}}\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}}(x,a). The first step, following the usual optimistic LSVI schema, is to estimate a value function for layer hh by regressing onto the empirical Bellman backups from the next layer (5):

At this point, the usual optimistic value function for layer hh (cf. Russo and Van Roy (2013); Foster et al. (2018) for contextual bandits and Jin et al. (2020); Wang et al. (2019, 2020) for RL) is defined as

where βh\beta_{h} is a confidence parameter. As observed in Jin et al. (2020); Wang et al. (2020), however, this UCB function can be unstable, leading to issues with generalization when we use it as a target for least squares at layer h−1h-1. Our approach to address this problem is to expand the supremum above to include the star hull of Fh\mathcal{F}_{h} centered at f^h(k)\widehat{f}_{h}^{{\scriptscriptstyle(k)}}. Define the star hull of Fh\mathcal{F}_{h} centered at f∈Fhf\in\mathcal{F}_{h} by

We define the star hull upper confidence bound (7) by

RegRL is oracle-efficient, and can be implemented using an offline regression oracle as follows.

At each iteration, the empirical risk minimizer in 5 can be computed with a single oracle call.

For any (x,a)(x,a) pair, the star hull UCB function in 7 can be computed by reduction to a regression oracle. In particular, to compute an ε\varepsilon-approximate UCB:

For convex function classes, O(log⁡(1/ε))\mathcal{O}(\log(1/\varepsilon)) calls are required.

For general (in particular, finite) classes, O~(ε−3)\widetilde{\mathcal{O}}(\varepsilon^{-3}) oracle calls are required. The key idea here is that we can reduce ERM over the star hull to ERM over the original class.

2 Main Result

We now state the main guarantee for RegRL. Our guarantee depends on the following “per-state” gap and worst-case gap:

and define θmax⁡val(F,ε)=max⁡hmax⁡s∈Shθsval(Fh,ε)\boldsymbol{\theta}^{\mathsf{val}}_{\max}(\mathcal{F},\varepsilon)=\max_{h}\max_{s\in\mathcal{S}_{h}}\boldsymbol{\theta}^{\mathsf{val}}_{s}(\mathcal{F}_{h},\varepsilon).

Our main theorem bounding the error of RegRL is as follows. As with our contextual bandit results, we focus on finite classes F\mathcal{F} for simplicity, but the result trivially extends to general function classes.

and does so using at most HKHK trajectories. More generally, the algorithm guarantees that

where CM:=∑h=1H∑s∈Shθsval(Fh,βhK−1/2)Δ(s)C_{\mathcal{M}}\vcentcolon=\sum_{h=1}^{H}\sum_{s\in\mathcal{S}_{h}}\frac{\boldsymbol{\theta}_{s}^{\mathsf{val}}(\mathcal{F}_{h},\beta_{h}K^{-1/2})}{\Delta(s)}.

Let us describe a few key features of this theorem and interpret the result.

In light of the results in Section 2 this implies that one can attain the fast 1Δmin⁡ε\frac{1}{\Delta_{\min}\varepsilon} rate whenever the value function star number for F\mathcal{F} is bounded.

We emphasize that while the dependence on all of the parameters in Theorem 3.1 can almost certainly be improved, we hope this result will open the door for further disagreement-based algorithms and analysis techniques in reinforcement learning.

3 Discussion

The proof of Theorem 3.1 has two main components. The first part of the proof shows that with high probability, for all iterations kk and layers hh, the set \mathcal{F}_{h}^{{\scriptscriptstyle(k)}}\vcentcolon=\big{\{}f\in\mathcal{F}_{h}\mid{}\|f-\widehat{f}_{h}^{{\scriptscriptstyle(k)}}\|_{\mathcal{Z}_{h}^{{\scriptscriptstyle(k)}}}\leq{}\beta_{h}\big{\}} contains the Bellman backup [Ph⋆\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)](x,a)+f⋆(x,a)\left[P^{\star}_{h}\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}}\right](x,a)+f^{\star}(x,a) of the value function from the next layer, which ensures that \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h(k)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h}^{{\scriptscriptstyle(k)}} is optimistic in the sense of Eq. 35 and leads to exploration. Then, in the second part, we prove a regret decomposition which shows that whenever the optimistic property holds, the suboptimality of π(k)\pi^{{\scriptscriptstyle(k)}} is controlled by the gap Δ\Delta and the value function disagreement coefficient θval\boldsymbol{\theta}^{\mathsf{val}}.

The first part of the proof (Appendix G) boils down to showing that the empirical risk minimizer in f^h(k)\widehat{f}_{h}^{{\scriptscriptstyle(k)}} in Eq. 36 has favorable concentration properties. This is highly non-trivial because the targets \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}} in Eq. 36 depend on the entire dataset, which breaks the independence assumptions required to apply standard generalization bounds for least squares. Instead, following Jin et al. (2020); Wang et al. (2020), we opt for a uniform generalization bound which holds uniformly over all possible choices of \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}}. To do so, we must show that \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}} is approximated by a relatively low complexity function class, which we accomplish as follows. First, we show that—thanks to a certain Lipschitz property granted by the star hull—\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}} is well approximated by a function

where β~h+1≈βh+1\widetilde{\beta}_{h+1}\approx\beta_{h+1}, and where

is the latent state norm, which measures the expected squared error conditioned on the sequence of latent states Lh+1(k):=(s(1,h+1),…,s(k−1,h+1))\mathcal{L}_{h+1}^{{\scriptscriptstyle(k)}}\vcentcolon=(s^{{\scriptscriptstyle(1,h+1)}},\ldots,s^{{\scriptscriptstyle(k-1,h+1)}}) encountered in the trajectories gathered for layer h+1h+1. This approximation argument is rather non-trivial, and involves a recursion across all layers that we manage using the disagreement coefficient. With this taken care of, the next step is to use the block MDP structure to argue that Q~h+1(k)\widetilde{\mathbf{Q}}_{h+1}^{{\scriptscriptstyle(k)}} has low complexity. To see this, observe that Q~h+1(k)\widetilde{\mathbf{Q}}_{h+1}^{{\scriptscriptstyle(k)}} is completely determined by the center f^h+1(k)\widehat{f}^{{\scriptscriptstyle(k)}}_{h+1} and the latent state sequence above. Since the latent state constraint does not depend on the ordering of the latent states, we can use a counting argument to show that there are at most ∣F∣KO(S)\left\lvert\mathcal{F}\right\rvert K^{\mathcal{O}(S)} possible choices for Q~h+1(k)\widetilde{\mathbf{Q}}_{h+1}^{{\scriptscriptstyle(k)}} overall. This suffices to prove the desired concentration guarantee.

The second part of the proof (Appendix F) proceeds as follows. Define the Bellman surplus as

which measures the width for our upper confidence bound. We use a “clipped” regret decomposition from Simchowitz and Jamieson (2019) to show that whenever the concentration event from the first part of the proof holds, the suboptimality of π(k)\pi^{{\scriptscriptstyle(k)}} is controlled by the confidence widths:

In particular, let n(k,h)(s)n^{{\scriptscriptstyle(k,h)}}(s) denote the number of times the latent state ss was encountered in the layer hh trajectories prior to iteration kk. Our key observation is that bounded disagreement coefficient implies that for each state ss,

In other words, the disagreement coefficient controls the rate at which the confidence width shrinks. Moreover, since the width for latent state ss is proportional to the number of times we have visited the state (even though the algorithm cannot observe this quantity), we can bound the overall suboptimality across all iterations using similar arguments to those employed in the tabular setting (Azar et al., 2017; Simchowitz and Jamieson, 2019).

Our result is closely related to that of Wang et al. (2020), who gave regret bounds for a variant of optimistic LSVI based on the eluder dimension of F\mathcal{F}. Compared to this result, we require the additional block MDP assumption and finite actions, but our bounds scale with the value function disagreement coefficient, which can be arbitrarily small compared to the eluder dimension (Proposition 2.3). On the technical side, their algorithm stabilizes the upper confidence bounds using a sensitivity sampling procedure, whereas we address this issue using the star hull. Ayoub et al. (2020) give similar eluder dimension-based guarantees for a model-based algorithm, though the notion of eluder dimension is somewhat stronger, and it is not clear whether this algorithm can be made oracle-efficient.

Reinforcement learning with function approximation in block MDPs has been the subject of extensive recent investigation (Krishnamurthy et al., 2016; Jiang et al., 2017; Dann et al., 2018; Du et al., 2019b, a; Misra et al., 2019; Feng et al., 2020; Agarwal et al., 2020). In terms of assumptions, we require the rather strong optimistic completeness condition, but do not require any reachability conditions or any clusterability-type assumptions that facilitate the use of unsupervised learning. The main advantages of our results are 1) we require only a basic regression oracle for the value function class, and 2) we attain the optimal ε−1\varepsilon^{-1} fast rate in the presence of the gap and bounded disagreement coefficient.

We should also mention that the gap for Q⋆\mathbf{Q}^{\star} has been used in a number of recent results on reinforcement learning with function approximation (Du et al., 2019b, 2020a, 2020b), albeit for a somewhat different purpose. These results use the gap to prove that certain “non-optimistic” algorithms succeed, whereas we use it to beat the minimax rate.

Lastly, we note that the value function disagreement coefficient is similar to the “low variance” parameter used in Du et al. (2019b) to give guarantees for reinforcement learning with linear function approximation, but can be considerably smaller when applied to block MDPs. For example, in the trivial case in which each emission distribution ψ(s)\psi(s) is a singleton, the value function disagreement coefficient is automatically bounded by 11, while the low variance assumption may not be satisfied unless the latent MDP is near-deterministic.

Implementing the Algorithms with Regression Oracles

In Section 2.1 and Section 3.1, we mentioned that both AdaCB (Algorithm 1) and RegRL (Algorithm 2) can be efficiently implemented with an offline regression oracle. In this section, we provide more details on this implementation, and on the overall computational complexity of our algorithms. Throughout this section, we deal with general (possibly infinite) function classes.

To start with, we introduce the regression oracle that we assume. Let us first consider the contextual bandit setup where F\mathcal{F} is the value function class. Given F\mathcal{F}, we assume a weighted least squares regression oracle, which is an offline optimization oracle capable of solving problems of the form

When one solves the regression problem Eq. RO using gradient-based methods like stochastic gradient descent (SGD), the convergence rate typically depends on the Lipschitz constants of gradients, which further depend on the range of weights and targets. Motivated by this fact, we further define a range parameter bb which describes the range of weights and targets that our oracle accepts. Formally, for all b>0b>0, we define

Clearly Oracleb\textsf{Oracle}_{b} becomes a stronger as bb increases. While access to Oracleb\textsf{Oracle}_{b} is generally a very mild assumption even when bb is large, in order to achieve better computational efficiency, in this section we will be precise about bb and aim to invoke Oracleb\textsf{Oracle}_{b} with bb as small as possible.

In the block MDP setup, there are multiple value function classes F1,⋯ ,FH\mathcal{F}_{1},\cdots,\mathcal{F}_{H}. For this setting, we assume access to the regression oracle Eq. RO for each of the classes F1,…,FH\mathcal{F}_{1},\ldots,\mathcal{F}_{H}.For notational convenience, in this section, when we use the notation F\mathcal{F} in the block MDP setting, it can stand for any one of F1,…,FH\mathcal{F}_{1},\dots,\mathcal{F}_{H}, rather than the full function class F1×⋯×FH\mathcal{F}_{1}\times\cdots\times\mathcal{F}_{H} defined in Section 3. Again, we use Oracleb\textsf{Oracle}_{b} to denote our oracle, where bb denotes that the oracle accepts [−b,b][-b,b]-valued weights and targets.

We first show how to implement AdaCB with the regression oracle. There are three computational tasks in the algorithm which require us to invoke the oracle.

2 requires computing the empirical risk minimizer f^m\widehat{f}_{m}.

9 and Option I (4) require computing the candidate action set A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) for any given xx.

Option II (4) requires computing the confidence width w(x;Fm)w(x;\mathcal{F}_{m}) for any given xx.

The first task is exactly a least squares problem, and we directly solve it using Oracle1\textsf{Oracle}_{1}. The second and third tasks are more complicated, and we need to design additional subroutines to reduce them to weighted least squares regression. Lying at the heart of the reductions are two basic computational subroutines: ConfBound and ConfBoundDiff, which we present in Algorithm 3 and Algorithm 4 respectively. Specifically,

ConfBound is designed to efficiently compute the upper confidence bound

for any given context-action pair (x,a)∈X×A(x,a)\in\mathcal{X}\times\mathcal{A}, based on a sample history H\mathcal{H} and confidence radius β\beta. It can be efficiently implemented with Oracleβ/α\textsf{Oracle}_{\beta/\alpha} given precision α\alpha, as pointed out in Krishnamurthy et al. (2017) and Foster et al. (2018).

ConfBoundDiff is designed to efficiently compute the action difference lower confidence bound

for any given context x∈Xx\in\mathcal{X} and actions a1,a2∈Aa_{1},a_{2}\in\mathcal{A}, based on a sample history H\mathcal{H} and confidence radius β\beta. It can be used to identify whether an action a1a_{1} is guaranteed to dominate another action a2a_{2} on a context xx, and can be efficiently implemented with Oracleβ/α\textsf{Oracle}_{\beta/\alpha} given precision α\alpha.

Building on ConfBound and ConfBoundDiff, we design a subroutine CandidateSet (see Algorithm 5) that accomplishes the the second task above, i.e., (approximately) computing A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) for any xx. Then, building further on CandidateSet and ConfBound, we design a subroutine ConfWidth (see Algorithm 6) that accomplishes the third task above, i.e., computing w(x;Fm)w(x;\mathcal{F}_{m}) for any xx. Therefore, by applying ConfBound, ConfBoundDiff, CandidateSet and ConfWidth as subroutines, we can efficiently implement AdaCB using Oracleβ/α\textsf{Oracle}_{\beta/\alpha}.

We now show how to implement RegRL with the regression oracle. There are two computational tasks in RegRL which require us to invoke the oracle.

5 requires computing the empirical risk minimizer f^m\widehat{f}_{m}.

7 requires computing the star hull upper confidence bound \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h(k)(x,a)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h}^{(k)}(x,a) for any given (x,a)(x,a) pair.

The first task is exactly a least squares problem, and we directly solve it using Oracle1\textsf{Oracle}_{1}. The second task can be accomplished by the subroutine ConfBound (Algorithm 3), as long as we can solve weighted least squares regression over the star hull of each Fh\mathcal{F}_{h}

Suppose weights in Eq. Star-RO are bounded by WW and targets are bounded by BB. Then for any α>0\alpha>0, we can find an α\alpha-approximate solution to Eq. Star-RO using O(BW/α)\mathcal{O}(BW/\alpha) calls to OracleO(BW/α)\textsf{Oracle}_{\mathcal{O}(BW/\alpha)} for Eq. RO.

Therefore, by applying ConfBound with the reduction above as a subroutine, RegRL can be efficiently implemented with Oracleβ/α2\textsf{Oracle}_{\beta/\alpha^{2}}.

2 Computational Complexity

Theoretical guarantees for the subroutines ConfBound, ConfBoundDiff, CandidateSet and ConfWidth are deferred to Appendix A. Here we summarize the total computational complexity for our algorithms based on these reductions.

For AdaCB, we set the precision α=O(1/T)\alpha=\mathcal{O}(1/T) for ConfBound, ConfBoundDiff, CandidateSet and ConfWidth so that the error does not degrade the algorithm’s instance-dependent performance beyond additive constants. In total, when F\mathcal{F} is convex, AdaCB calls OracleO~(T)\textsf{Oracle}_{\widetilde{\mathcal{O}}(T)} for O~(AT)\widetilde{\mathcal{O}}(AT) times over TT rounds, and when F\mathcal{F} is non-convex, AdaCB calls OracleO~(T)\textsf{Oracle}_{\widetilde{\mathcal{O}}(T)} for O~(AT3)\widetilde{\mathcal{O}}(AT^{3}) times over TT rounds. We remark that the total time spent by AdaCB outside of these regression oracle calls is O(A)O(A) in each round.

Experiments

To evaluate the empirical performance of AdaCB, we replicated a simplified version of the large-scale contextual bandit evaluation setup of Bietti et al. (2018), which compares a number of contextual bandit algorithms based on either cost-sensitive classification oracles or regression oracles on over 500 multiclass, multi-label, and cost-sensitive classification datasets. We found that AdaCB typically enjoys superior performance, especially on challenging datasets with many actions.

Following Bietti et al. (2018), we use a collection of 516 multiclass classification datasets from the openml.org platform.We omit datasets {8,189,197,209,223,227,287,294,298}\{8,189,197,209,223,227,287,294,298\} from the collection used in Bietti et al. (2018), as these are regression datasets that were rounded to integer targets. This brings the count from 525 to 516. This collection includes many standard datasets, including the UCI datasets used in Foster et al. (2018); see Bietti et al. (2018) for details. Beyond this collection, Bietti et al. (2018) also used 5 multilabel datasets and 3 cost-sensitive datasets; we omit these for simplicity.

For each dataset, we simulate bandit feedback by withholding the true label. We work with losses rather than rewards, and provide a loss of if the learner predicts the correct label, and 11 otherwise. We randomly shuffle the examples in each dataset, but use the same fixed shuffle across all algorithms.

All of our baseline algorithms are based on classification or regression oracles. We use their implementations in VW, which incorporate modifications to allow them to run in an online fashion with the oracle above. For the classification-based algorithms, VW uses an additional reduction layer which reduces classification to regression. Following Bietti et al. (2018), we use the following algorithms.

The standard ε\varepsilon-Greedy exploration strategy (Langford and Zhang, 2008), as well as a purely greedy variant, Greedy.

Bagging, also known as bootstrap Thompson sampling (Agarwal et al., 2014; Eckles and Kaptein, 2014; Osband et al., 2016), which attempts to approximate the Thompson sampling algorithm.

Online Cover, a heuristic version of the ILTCB strategy of Agarwal et al. (2014). ILTCB itself provides an optimal and efficient reduction from stochastic contextual bandits to cost-sensitive classification, and represents the state of the art from that line of research.

RegCB (Russo and Van Roy, 2013; Foster et al., 2018), an approximate version of the general function class UCB algorithm based on regression oracles. This algorithm was found to have the best overall performance in Bietti et al. (2018), though it does not achieve the minimax rate for contextual bandits. We only evaluate the optimistic variant (RegCB-Opt), not the elimination-based variant (RegCB-Elim), as the former typically performs much better.

We refer to Bietti et al. (2018) for more details on the algorithm configurations and hyperparameters.

Beyond these algorithms, we also evaluate against SquareCB (Foster and Rakhlin, 2020), which is the first optimal online regression oracle-based contextual bandit algorithm. SquareCB applies the inverse gap weighting strategy in Eq. 7, but uses all actions rather than adaptively narrowing to a smaller candidate set as in AdaCB. Our implementation applies IGW at each step tt with a learning rate γt\gamma_{t}. We set γt=γ0tρ\gamma_{t}=\gamma_{0}t^{\rho}, where γ0∈{10,50,100,400,700,103}\gamma_{0}\in\{10,50,100,400,700,10^{3}\} and ρ∈{.25,.5}\rho\in\left\{.25,.5\right\} are hyperparameters.

We implemented a variant of AdaCB in VW, with a few practical simplifications.The precise version of VW used to run the experiments may be found at https://github.com/canondetortugas/vowpal_wabbit/tree/. First, rather than using an offline ERM oracle (as in Eq. RO), we modify the algorithm to work with the online regression oracle provided in VW by following the strategy of Foster and Rakhlin (2020). The protocol for the oracle is as follows: At each round, we provide the context xtx_{t}, the oracle provides a predicted reward y^t(a)\hat{y}_{t}(a) for each action, then we select an action ata_{t} and update the oracle with (xt,at,rt(at))(x_{t},a_{t},r_{t}(a_{t})). Instead than applying IGW to the empirical risk minimizer as in Algorithm 1, we simply apply it to y^t\hat{y}_{t}. This strategy is natural because the protocol above is exactly what is implemented by the base learner in VW, and thus allows us to take advantage of VW’s fast online regression implementation.

For our second simplification, rather than computing At(x;Ft)\mathcal{A}_{t}(x;\mathcal{F}_{t}) using the reductions from Section 4 (which also require an offline oracle), we use a sensitivity-based heuristic that takes advantage of the online oracle. This is described in Section 7.1 of Krishnamurthy et al. (2017), and is also used by the VW implementation of RegCB.

Finally, rather than using a data-dependent learning rate, we set γt=γ0tρ\gamma_{t}=\gamma_{0}t^{\rho}, where γ0∈{10,50,100,400,700,103}\gamma_{0}\in\{10,50,100,400,700,10^{3}\} and ρ∈{.25,.5}\rho\in\left\{.25,.5\right\} are hyperparameters (the same as for SquareCB). We set the confidence radius as βt2=c0log⁡(Kt)\beta^{2}_{t}=c_{0}\log(Kt), where c0∈{10−1,10−2,10−3}c_{0}\in\{10^{-1},10^{-2},10^{-3}\} is another hyperparameter.

We evaluate the performance of each algorithm on a given dataset using the progressive validation (PV) loss (Blum et al., 1999). For each algorithm above, we choose the best hyperparameter configuration for a given dataset based on the PV loss.

To compare each pair of algorithms on a given dataset, we use the notion of a statistically significant win or loss defined in Bietti et al. (2018), which is based on an approximate Z-test. For each algorithm pair, we count the total number of significant wins / losses, using the best configuration for each dataset.

To evaluate performance on hard exploration problems, we restricted only to datasets with A≥3A\geq{}3 actions. Head-to-head results are displayed in Table 1. For this subset of datasets, we find that AdaCB has the best overall performance, and has a (large) positive win-loss difference against all of the baselines. This suggests that AdaCB may be a promising approach for solving challenging exploration problems.

Head-to-head results across all datasets are displayed in Table 2. We find that for the full collection of datasets, RegCB (Foster et al., 2018) has the best overall performance, with a positive win-loss difference against every algorithm. AdaCB has strong performance overall, but narrowly loses to RegCB and Online Cover, with a positive win-loss difference against all other algorithms. The strong performance of RegCB mirrors the findings of Bietti et al. (2018). They observed that many of the datasets in the OpenML collection are “easy” for exploration in the sense that 1) they have few actions (in fact, around 400 datasets have only 2 actions), and 2) even the simple greedy strategy performs well; RegCB seems to be good at exploiting this. It would be interesting to understand whether we can make AdaCB eliminate actions even more aggressively for the easy problems on which RegCB excels, and whether we can develop theory to support this.

Discussion

We have developed efficient, instance-dependent algorithms for contextual bandits and reinforcement learning with function approximation. We showed that disagreement coefficients and related combinatorial parameters play a fundamental role in determining the optimal instance-dependent rates, and that algorithms that adapt to these parameters can be simple and practically effective. Our results suggest many fruitful directions for future research.

For contextual bandits, there are a number of very interesting and practically relevant questions:

For adversarial contexts, can we develop instance-dependent algorithms that are efficient in terms of online regression oracles, as in Foster and Rakhlin (2020)?

Can we extend our algorithms and complexity measures to optimally handle infinite actions?

Beyond these questions, we hope to see the various gaps between our upper and lower bounds closed.

For reinforcement learning, we are excited to see whether our analysis techniques can be applied more broadly, and to develop more refined lower bounds that better reflect the role of disagreement in determining the difficulty of exploration. On the technical side, there are many possible improvements to Theorem 3.1. For example, is it possible to develop best-of-both-worlds guarantees similar to those attained by AdaCB, or even to efficiently attain the minimax rate in the absence of bounded gap and disagreement coefficient? Can we improve the dependence on SS, AA, and so forth to match the optimal rates for the tabular setting?

We thank Alekh Agarwal, Haipeng Luo, Akshay Krishnamurthy, Max Simchowitz, and Yunbei Xu for helpful discussions. We thank Alberto Bietti for help with replicating the setup from Bietti et al. (2018). DF acknowledges the support of NSF Tripods grant #1740751. AR acknowledges the support of ONR awards #N00014-20-1-2336 and #N00014-20-1-2394. DSL and YX acknowledge the support of the MIT-IBM Watson AI Lab.

References

Organization of Appendix

This appendix is organized as follows. Appendix A contains details for the computational results presented in Section 4. Part I contains proofs for our contextual bandit results, and Part II contain proofs for our reinforcement learning results.

Appendix A Computational Guarantees

In what follows, we establish computational guarantees for the subroutines ConfBound, ConfBoundDiff, CandidateSet and ConfWidth.

We first provide guarantees for ConfBound and ConfBoundDiff, in Lemma A.1 and Lemma A.2 respectively. Lemma A.1 is adapted from known results in the literature. The proof of Lemma A.2 can be found in Section A.1.

Consider the AdaCB setting. Let Hm={(xt,at,rt(at))}t=1tm−1\mathcal{H}_{m}=\{(x_{t},a_{t},r_{t}(a_{t}))\}_{t=1}^{t_{m-1}}. If the function class F\mathcal{F} is convex and closed under pointwise convergence, then for any x∈Xx\in\mathcal{X}, the computation procedures

terminate after O(log⁡(1/α))\mathcal{O}(\log(1/\alpha)) calls to Oracle1\textsf{Oracle}_{1}, and the returned values satisfy

If the function class F\mathcal{F} is non-convex, then the required number of oracle calls is O(1/α2log⁡(1/α))\mathcal{O}(1/\alpha^{2}\log(1/\alpha)).

Consider the AdaCB setting. Let Hm={(xt,at,rt(at))}t=1tm−1\mathcal{H}_{m}=\{(x_{t},a_{t},r_{t}(a_{t}))\}_{t=1}^{t_{m-1}}. If the function class F\mathcal{F} is convex and closed under pointwise convergence, then for any x∈Xx\in\mathcal{X} and a1,a2∈Aa_{1},a_{2}\in\mathcal{A}, the computation procedure

terminates after O(log⁡(1/α))\mathcal{O}(\log(1/\alpha)) calls to Oracle1/α\textsf{Oracle}_{1/\alpha}, and the returned values satisfy

If the function class F\mathcal{F} is non-convex, then the required number of oracle calls is O(1/α2log⁡(1/α))\mathcal{O}(1/\alpha^{2}\log(1/\alpha)).

Lemma A.1 and Lemma A.2 show that ConfBound and ConfBoundDiff compute the desired confidence bounds up to a precision of α\alpha in O(log⁡(1/α))\mathcal{O}(\log(1/\alpha)) or O(1/α2log⁡(1/α))\mathcal{O}(1/\alpha^{2}\log(1/\alpha)) iterations. Note that both Lemma A.1 and Lemma A.2 are stated in the AdaCB setting. For the sake of brevity, we omit the guarantee of ConfBound for the RegRL setting here, as it is essentially the same as Lemma A.1, with only notations changing.

We now provide guarantees for ConfBoundDiff and ConfWidth. All the results in this part are stated in the AdaCB setting, as CandidateSet and ConfWidth are only required for AdaCB.

We discuss two cases: when F\mathcal{F} is a product function class, it is possible for CandidateSet to precisely compute A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}); when F\mathcal{F} is not a product function class, precisely computing A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) becomes difficult, yet it is possible for CandidateSet to precisely determine whether ∣A(x;Fm)∣>1|\mathcal{A}(x;\mathcal{F}_{m})|>1, which is already sufficient for ConfWidth to precisely compute w(x;Fm)w(x;\mathcal{F}_{m}) and for AdaCB to achieve all the statistical guarantees stated in Section 2.

When F\mathcal{F} is a product function class, i.e. F=GA\mathcal{F}=\mathcal{G}^{\mathcal{A}} for some function class G\mathcal{G}, it is possible for AdaCB to maintain each version space Fm\mathcal{F}_{m} as a product function class, which makes it especially simple to compute A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}). To ensure the product structure of Fm\mathcal{F}_{m}, we need to make slight modifications to the definition of Fm\mathcal{F}_{m} in 3 of AdaCB.

If F\mathcal{F} is a product function class, i.e., F=GA\mathcal{F}=\mathcal{G}^{\mathcal{A}} for some G\mathcal{G}, then at 3 of Algorithm 1, we define Fm=∏a∈AGm,a\mathcal{F}_{m}=\prod_{a\in\mathcal{A}}\mathcal{G}_{m,a}, where

It is not difficult to see that the above modifications do not affect AdaCB’s statistical guarantees in Section 2,In order to achieve the same regret bound, we need to adjust the configuration of βm\beta_{m} from 16(M−m+1)log⁡(2∣F∣T2/δ)16(M-m+1)\log(2|\mathcal{F}|T^{2}/\delta) to 16(M−m+1)log⁡(2∣G∣AT2/δ)16(M-m+1)\log(2|\mathcal{G}|AT^{2}/\delta). or ConfBound’s computational guarantee in Lemma A.1. The following lemma demonstrates the value of the product structure of Fm\mathcal{F}_{m}.

If F′⊂F\mathcal{F}^{\prime}\subset\mathcal{F} is a product function class, then for any x∈Xx\in\mathcal{X},

Lemma A.3 implies that if F\mathcal{F} is a product function class (and thus Fm\mathcal{F}_{m} is a product function class under Definition A.1), then both A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) and w(x;Fm)w(x;\mathcal{F}_{m}) can be explicitly expressed in terms of the upper and lower confidence bounds sup⁡f∈Fmf(x,a)\sup_{f\in\mathcal{F}_{m}}f(x,a) and inf⁡f∈Fmf(x,a)\inf_{f\in\mathcal{F}_{m}}f(x,a). Since ConfBound enables us to compute sup⁡f∈Fmf(x,a)\sup_{f\in\mathcal{F}_{m}}f(x,a) and inf⁡f∈Fmf(x,a)\inf_{f\in\mathcal{F}_{m}}f(x,a) for all a∈Aa\in\mathcal{A} with high accuracy (see Lemma A.1), we can precisely compute A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) and w(x;Fm)w(x;\mathcal{F}_{m}) by calling CandidateSet(x,Hm,βm,α)\textsf{CandidateSet}(x,\mathcal{H}_{m},\beta_{m},\alpha) and ConfWidth(x,Hm,βm,α)\textsf{ConfWidth}(x,\mathcal{H}_{m},\beta_{m},\alpha) with sufficiently small α\alpha, which can be efficiently implemented with Oracleβ/α\textsf{Oracle}_{\beta/\alpha} (as ConfBound can be efficiently implemented with Oracleβ/α\textsf{Oracle}_{\beta/\alpha}).

If F\mathcal{F} is not a product function class, then it is impossible to maintain Fm\mathcal{F}_{m} as a product function class. In this case, our implementation of CandidateSet uses both ConfBound and ConfBoundDiff to approximately compute A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}).We use the following observation.

For any F′⊂F\mathcal{F}^{\prime}\subset\mathcal{F}, for any x∈Xx\in\mathcal{X}, define a~=arg⁡max⁡a∈Asup⁡f∈F′f(x,a)\widetilde{a}=\arg\max_{a\in\mathcal{A}}\sup_{f\in\mathcal{F}^{\prime}}f(x,a), and define

A(x;F′)⊂A^(x;F′).\mathcal{A}(x;\mathcal{F}^{\prime})\subset\widehat{\mathcal{A}}(x;\mathcal{F}^{\prime}).

If ∣A(x;F′)∣=1|\mathcal{A}(x;\mathcal{F}^{\prime})|=1, then, A(F′,x)=A^(x;F′)={a~}.\mathcal{A}(\mathcal{F}^{\prime},x)=\widehat{\mathcal{A}}(x;\mathcal{F}^{\prime})=\left\{\widetilde{a}\right\}.

Parts 1 and 2 of Lemma A.4 imply that, for a general function class F\mathcal{F}, we are able to compute A^(x;Fm)\widehat{\mathcal{A}}(x;\mathcal{F}_{m}) by calling ConfBoundDiff(x,Hm,βm,α)\textsf{ConfBoundDiff}(x,\mathcal{H}_{m},\beta_{m},\alpha) with sufficiently small α\alpha, which serves as an approximation to the true candidate action set A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}), with the following two properties:

The computed set A^(x;Fm)\widehat{\mathcal{A}}(x;\mathcal{F}_{m}) always contain the true set A(x;Fm){\mathcal{A}}(x;\mathcal{F}_{m}).

The computed set A^(x;Fm)\widehat{\mathcal{A}}(x;\mathcal{F}_{m}) coincides with the true set A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) when ∣A(x;Fm)∣=1|\mathcal{A}(x;\mathcal{F}_{m})|=1.

Parts 3 and 4 state two consequences of the above properties:

Note that it is sufficient for AdaCB to use A^(x;Fm)\widehat{\mathcal{A}}(x;\mathcal{F}_{m}) (rather than the true candidate action set A(x;Fm){\mathcal{A}}(x;\mathcal{F}_{m})) and w(x;Fm)w(x;\mathcal{F}_{m}) to obtain the near-optimal instance-dependent regret stated in Theorem 2.1 and Theorem 2.3. In particular, in the proofs of Theorem 2.1 and Theorem 2.3, if we replace A(x;Fm){\mathcal{A}}(x;\mathcal{F}_{m}) by its approximation A^(x;Fm)\widehat{\mathcal{A}}(x;\mathcal{F}_{m}), then all the arguments hold as long as the following three conditions hold:

π⋆(x)∈A^(x;Fm)\pi^{\star}(x)\in\widehat{\mathcal{A}}(x;\mathcal{F}_{m}) with high probability;

A^(x;Fm)=A(x;Fm)\widehat{\mathcal{A}}(x;\mathcal{F}_{m})={\mathcal{A}}(x;\mathcal{F}_{m}) when ∣A(x;Fm)∣=1|\mathcal{A}(x;\mathcal{F}_{m})|=1.

The first condition holds because A(x;Fm)⊂A^(x;Fm)\mathcal{A}(x;\mathcal{F}_{m})\subset\widehat{\mathcal{A}}(x;\mathcal{F}_{m}) and AdaCB guarantees that π⋆(x)∈A(x;Fm)\pi^{\star}(x)\in\mathcal{A}(x;\mathcal{F}_{m}) with high probability. The second and third conditions are exactly A^(x;Fm)\widehat{\mathcal{A}}(x;\mathcal{F}_{m})’s properties. As a result, CandidateSet and ConfWidth work.

A.1 Deferred Proofs

which can be seen as an instance Oracleb/ε\textsf{Oracle}_{b/\varepsilon}. Letting ftf_{t} denote the solution above, we return f=tft+(1−t)f^f=tf_{t}+(1-t)\widehat{f} for the (t,ft)(t,f_{t}) pair that minimizes Eq. 41. Since all the arguments to the square loss in Eq. 41 are bounded by BB and w≤Ww\leq{}W, it is clear that this leads to an O(BWε)\mathcal{O}(BW\varepsilon)-approximate minimizer.

Therefore, to compute inf⁡f∈Fm(f(x,a1)−f(x,a2))\inf_{f\in\mathcal{F}_{m}}(f(x,a_{1})-f(x,a_{2})) with to an error up to 2α2\alpha, we only need to compute

with an error up to α\alpha. This can be efficiently accomplished through a binary search procedure similar to the procedures in Foster et al. (2018) and Krishnamurthy et al. (2017). This procedure requires access to Oracleβ/α\textsf{Oracle}_{\beta/\alpha}. ∎

Part I Proofs for Contextual Bandit Results

Let (Xt)t≤T(X_{t})_{t\leq{T}} be a real-valued sequence of random variables adapted to a filtration Gt\mathfrak{G}_{t}. If ∣Xt∣≤R\left\lvert X_{t}\right\rvert\leq{}R almost surely, then with probability at least 1−δ1-\delta,

Let X1,…,XnX_{1},\dots,X_{n} be i.i.d. $−valuedrandomvariableswithmean-valued random variables with mean\muandvarianceand variance\sigma^{2}.Forany. For any\delta>0,withprobabilityatleast, with probability at least1-2\delta$,

B.2 Information Theory

For a pair of distributions P≪QP\ll{}Q with densities pp and qq, we define

Let PP and QQ be probability measures over a measurable space (Ω,F)(\Omega,\mathcal{F}). Then for any measurable subset A∈FA\in\mathcal{F},

Appendix C Proofs for Upper Bounds

This section is dedicated to the proof of Theorem 2.1 and Theorem 2.3. For a brief overview of the proof ideas, we refer the reader to Section 2.6.1.

For simplicity, in this section, we assume that Algorithm 1 exactly compute A(x;Fm)\mathcal{A}(x;\mathcal{F}_{m}) and w(x;Fm)w(x;\mathcal{F}_{m}) for all x∈Xx\in\mathcal{X} and all mm (rather than approximately, using the oracle machinery of Section 4). While we specify δ=1/T\delta=1/T in the pseudocode of Algorithm 1, throughout this section we deal with a general value δ∈(0,1]\delta\in(0,1]. Likewise, we analyze a slightly more general version of the update in 6, which sets the learning rate as

to be the sum of conditional expectations of the instantaneous regret.

For all epoch m∈[M]m\in[M], for all round tt in epoch mm, we define the following quantities, all of which are Gτm−1\mathfrak{G}_{\tau_{m-1}}-measurable. First, we define the greedy policy for epoch mm by

Next, we denote the algorithm’s probability distribution for epoch mm by

Finally, we define the following disagreement-related quantities:

We define the universal policy space (Simchi-Levi and Xu, 2020) as Ψ:=AX\Psi\vcentcolon={}\mathcal{A}^{\mathcal{X}}, and for all π∈Ψ\pi\in\Psi we define

For all rounds tt in epoch mm, we define the following quantities for all π∈Ψ\pi\in\Psi:

Let Cδ:=16log⁡(2∣F∣T2δ)C_{\delta}\vcentcolon={}16\log\left(\frac{2|\mathcal{F}|T^{2}}{\delta}\right). Define

With probability at least 1−δ/21-\delta/2, it holds that

for all f∈Ff\in\mathcal{F} and τ,τ′∈[T]\tau,\tau^{\prime}\in[T].

We let E\mathcal{E} denote the high-probability event from Lemma C.1. We have the following consequence.

For all m∈[M]m\in[M], for all βm≥0\beta_{m}\geq 0,

If βm≥Cδ/2\beta_{m}\geq C_{\delta}/2 for all m∈[M]m\in[M], then f⋆∈Fmf^{\star}\in\mathcal{F}_{m} for all m∈[M]m\in[M].

If βm=(M−m+1)Cδ\beta_{m}={(M-m+1)C_{\delta}} for all m∈[M]m\in[M], then f⋆∈FM⊂FM−1⊂⋯⊂F1f^{\star}\in\mathcal{F}_{M}\subset\mathcal{F}_{M-1}\subset\cdots\subset\mathcal{F}_{1}.

Part 1 follows from Lemma C.1 and the fact that f^m\widehat{f}_{m} minimizes the empirical square loss. Parts 2 and 3 are adapted from Lemma 10 of Foster et al. (2018). ∎

For any δ∈(0,1]\delta\in(0,1], if we set μm=64log⁡(4M/δ)/nm−1\mu_{m}={64\log(4M/\delta)}/{n_{m-1}} for all m∈[M]m\in[M], then with probability at least 1−δ/21-\delta/2, the following event holds:

For m=1m=1, ϱm=q1+128log⁡(4M/δ){\varrho_{m}}=q_{1}+128\log(4M/\delta), ϱ^m=1+128log⁡(4M/δ){\widehat{\varrho}_{m}}=1+128\log(4M/\delta), so 23ϱ1≤ϱ^1≤43ϱ1\frac{2}{3}{\varrho_{1}}\leq{\widehat{\varrho}_{1}}\leq\frac{4}{3}{\varrho_{1}} trivially holds.

Fix any m∈[M]∖{1}m\in[M]\setminus\{1\}. Since xtm−1+1,…,xτm−1x_{t_{m-1}+1},\dots,x_{\tau_{m-1}} are independent of Fm\mathcal{F}_{m}, we have

with probability at least 1−δ/(2M)1-\delta/(2M). Note that to apply Lemma B.3, we have used that our sample splitting schedule guarantees that the contexts xtm−1+1,…,τm−1x_{t_{m-1}+1},\ldots,\tau_{m-1} used to form q^m\widehat{q}_{m} are independent of Fm\mathcal{F}_{m}. Continuing, we have

where the first inequality follows from Eq. 45, the second inequality follows from ϱm=qm+μm≥qm{\varrho_{m}}=q_{m}+\mu_{m}\geq q_{m}, and the third inequality follows from log⁡(4M/δ)/nm−1≤μm/64≤ϱm/64\log(4M/\delta)/n_{m-1}\leq\mu_{m}/64\leq{\varrho_{m}}/64.

By a union bound over m∈[M]m\in[M], this implies that with probability at least 1−δ/21-\delta/2,

For m=1m=1, wm≤1<64log⁡(4M/δ)/nm−1w_{m}\leq 1<64\log(4M/\delta)/n_{m-1}, and we likewise do have w^m≤1≤64log⁡(4M/δ)/nm−1\widehat{w}_{m}\leq 1\leq 64\log(4M/\delta)/n_{m-1}.

Fix any m∈[M]∖{1}m\in[M]\setminus\{1\}. Since xtm−1+1,…,xτm−1x_{t_{m-1}+1},\dots,x_{\tau_{m-1}} are independent of Fm\mathcal{F}_{m}, we have

for t=tm−1+1,…,τm−1t=t_{m-1}+1,\dots,\tau_{m-1}. Thus given Fm\mathcal{F}_{m}, w(xtm−1+1;Fm),…,w(xτm−1;Fm)w(x_{t_{m-1}+1};\mathcal{F}_{m}),\dots,w(x_{\tau_{m-1}};\mathcal{F}_{m}) are i.i.d. $−valuedrandomvariableswithmean-valued random variables with meanq_{m}.Since. Since\widehat{q}_{m}=\frac{1}{n_{m-1}/2}\sum_{t=t_{m-1}+1}^{\tau_{m-1}}w(x_{t};\mathcal{F}_{m})$, by Lemma B.3, we know that

with probability at least 1−δ/(2M)1-\delta/(2M). If wm≥64log⁡(4M/δ)/nm−1w_{m}\geq 64\log(4M/\delta)/n_{m-1}, then

where the first inequality follows from Eq. 47 and the second inequality follows from log⁡(4M/δ)/nm−1≤wm/64\log(4M/\delta)/n_{m-1}\leq w_{m}/64. In this case, 2/3wm≤w^m≤4/3wm2/3w_{m}\leq\widehat{w}_{m}\leq 4/3w_{m}. If wm<64log⁡(4M/δ)/nm−1w_{m}<64\log(4M/\delta)/n_{m-1}, then

where the first inequality follows from Eq. 47 and the second inequality follows from wm≤log⁡(4M/δ)/nm−1w_{m}\leq\log(4M/\delta)/n_{m-1}. In this case, w^m≤wm+log⁡(4M/δ)/nm−1<65log⁡(4M/δ)/nm−1\widehat{w}_{m}\leq w_{m}+\log(4M/\delta)/n_{m-1}<65\log(4M/\delta)/n_{m-1}.

By a union bound over m∈[M]m\in[M], we know that with probability at least 1−δ/21-\delta/2,

C.2 Analysis in Policy Space

As mentioned in Section 2.6.1, our regret analysis builds on a framework established in Simchi-Levi and Xu (2020), which analyzes contextual bandit algorithms in the universal policy space Ψ\Psi. In this section, we prove a number of structural properties for the action distribution pmp_{m} selected in Algorithm 1 by focusing on a data-dependent subspace of Ψ\Psi at each epoch (this is closely related to the elimination procedure of our algorithm and is essential to our instance-dependent analysis).

The analysis in this subsection deals with an arbitrary choice for the scale factor schedule {λm}m=1M\left\{\lambda_{m}\right\}_{m=1}^{M} rather than the explicit specification in Algorithm 1, and serves as a foundation of the proofs of the main theorems in Section C.3 and Section C.4 (where we instantiate the learning rate using Option I and Option II).

For each epoch m∈[M]m\in[M] and any round tt in epoch mm, for any possible realization of γm\gamma_{m}, f^m\widehat{f}_{m} and Fm\mathcal{F}_{m}, we define a (data-dependent) subspace of Ψ\Psi:

Let Qm(⋅)Q_{m}(\cdot) be the equivalent policy distribution for pm(⋅∣⋅)p_{m}(\cdot\mid\cdot), i.e.,

Note that both Ψm\Psi_{m} and Qm(⋅)Q_{m}(\cdot) are Gτm−1\mathfrak{G}_{\tau_{m-1}}-measurable. We refer to Section 3.2 of Simchi-Levi and Xu (2020) for more detailed intuition for Qm(⋅)Q_{m}(\cdot) and proof of existence. By Lemma 4 of Simchi-Levi and Xu (2020), we know that for all epoch m∈[M]m\in[M] and all rounds tt in epoch mm,

For all epoch m∈[M]m\in[M] and all rounds tt in epoch mm, Qm(⋅)Q_{m}(\cdot) is a feasible solution to the following Implicit Optimization Problem:

Let mm and tt in epoch mm be fixed. We have

Now, given any context x∈Xx\in\mathcal{X}, we have

The result in Eq. 48 follows immediately by taking an expectation over x∼Dx\sim\mathcal{D}.

For Eq. 49, we first observe that for any policy π∈Ψm\pi\in\Psi_{m}, given any context x∈Xx\in\mathcal{X},

We now formulate a more refined disagreement-based version of the implicit optimization problem.

For all epoch m∈[M]m\in[M], all rounds tt in epoch mm, Qm(⋅)Q_{m}(\cdot) is a feasible solution to the following constraints:

Fix epoch mm and round tt. Eq. 50 directly follows from Eq. 48. We now show that Eq. 51 holds. For any π∈Ψm\pi\in\Psi_{m}, we have

where the first inequality follows from Eq. 49. ∎

Assume that E\mathcal{E} holds and f⋆∈Fmf^{\star}\in\mathcal{F}_{m} for all m∈[M]m\in[M]. For all epoch m∈[M]m\in[M], all rounds tt in epoch mm, and all policies π∈Ψm\pi\in\Psi_{m}, we have

Since f^m∈Fm\widehat{f}_{m}\in\mathcal{F}_{m} and f⋆∈Fmf^{\star}\in\mathcal{F}_{m}, for all π∈Ψm\pi\in\Psi_{m}, if ∣A(x;Fm)∣=1|\mathcal{A}(x;\mathcal{F}_{m})|=1, then π(x)=πf⋆(x)=π^m(x)\pi(x)=\pi_{f^{\star}}(x)=\widehat{\pi}_{m}(x). The result follows immediately from this observation. ∎

Assume that E\mathcal{E} holds and f⋆∈FM⊂⋯⊂F1f^{\star}\in\mathcal{F}_{M}\subset\cdots\subset\mathcal{F}_{1}. For all epochs m>1m>1, all rounds tt in epoch mm, and all policies π∈Ψm\pi\in\Psi_{m}, if γm>0\gamma_{m}>0, then

Fix any epoch m>1m>1, any round tt in epoch mm, and any policy π∈Ψm\pi\in\Psi_{m}. By the definitions of R^tDis(π)\widehat{\mathcal{R}}_{t}^{\rm Dis}(\pi) and RtDis(π)\mathcal{R}_{t}^{\rm Dis}(\pi), we have

For all s=tm−2+1,…,tm−1s=t_{m-2}+1,\dots,t_{m-1}, we have

where the first inequality follows from Fm⊂Fm−1\mathcal{F}_{m}\subset\mathcal{F}_{m-1}, the second inequality follows from Eq. 43, and the third inequality follows from Eq. 52. To proceed, note that we have

where the first inequality follows from Cauchy-Schwarz and the second inequality follows uses convexity of the L1L_{1} norm. Now, from the definition of γm\gamma_{m}, we have

C.3 Proof of Theorem 2.1

We now prove Theorem 2.1, which concerns AdaCB with Option I, where

for all m∈[M]m\in[M] (for m=1m=1, we have defined λ1=1\lambda_{1}=1). Note that since λm>0\lambda_{m}>0 for all m∈[M]m\in[M], we have γm>0\gamma_{m}>0 for all m∈[M]m\in[M]. We consider general values for {βm}m=1M\left\{\beta_{m}\right\}_{m=1}^{M} unless explicitly specified.

Assume that Edp\mathcal{E}_{\rm dp} holds and FM⊂⋯⊂F1\mathcal{F}_{M}\subset\cdots\subset\mathcal{F}_{1}. Then γm/ϱ^m\gamma_{m}/{\widehat{\varrho}_{m}} is monotonically non-decreasing in mm, i.e., γ1/ϱ^1≤⋯≤γM/ϱ^M.{\gamma_{1}}/{{\widehat{\varrho}_{1}}}\leq\cdots\leq{\gamma_{M}}/{{\widehat{\varrho}_{M}}}.

We have γ1ϱ^1=c1ϱ^1A/2log⁡(2∣F∣T2/δ)\frac{\gamma_{1}}{{\widehat{\varrho}_{1}}}={c}\frac{1}{{\widehat{\varrho}_{1}}}\sqrt{\frac{A/2}{\log(2|\mathcal{F}|T^{2}/\delta)}} (since λ1=1\lambda_{1}=1) and

for all m∈[M]∖{1}m\in[M]\setminus\{1\}. Since ϱ^1=q^1+μ1≥q^1=1{\widehat{\varrho}_{1}}=\widehat{q}_{1}+\mu_{1}\geq\widehat{q}_{1}=1, we have

For all m∈[M]∖{1,2}m\in[M]\setminus\{1,2\}, we have

where the first inequality follows from Eq. 44 and the second inequality follows from ϱm−1=qm−1+μm−1≤qm−2+μm−2=ϱm−2{\varrho_{m-1}}=q_{m-1}+\mu_{m-1}\leq q_{m-2}+\mu_{m-2}={\varrho_{m-2}} (since FM⊂⋯⊂F1\mathcal{F}_{M}\subset\cdots\subset\mathcal{F}_{1}). ∎

Assume that both E\mathcal{E} and Edp\mathcal{E}_{\rm dp} hold, and f⋆∈FM⊂⋯⊂F1f^{\star}\in\mathcal{F}_{M}\subset\cdots\subset\mathcal{F}_{1}. Let c1:=200c2+3c_{1}\vcentcolon={}200{c}^{2}+3. For all epochs m∈[M]m\in[M], all rounds tt in epoch mm, and all policies π∈Ψm\pi\in\Psi_{m},

We prove Lemma C.10 via induction on mm. We first consider the base case where m=1m=1 and 1≤t≤τ11\leq t\leq\tau_{1}. In this case, since q^1=1\widehat{q}_{1}=1 and γ1=cA/2log⁡(2∣F∣T2/δ)\gamma_{1}={c}\sqrt{\frac{A/2}{\log(2|\mathcal{F}|T^{2}/\delta)}}, we know that ∀π∈Ψ1\forall\pi\in\Psi_{1},

For the inductive step, fix some epoch m>1m>1. Assume that for epoch m−1m-1, all rounds t′t^{\prime} in epoch m−1m-1, and all π∈Ψm−1\pi\in\Psi_{m-1},

We first show that for all rounds tt in epoch mm and all π∈Ψm\pi\in\Psi_{m},

where (i) is by Lemma C.7, (ii) is by πf⋆∈Ψm\pi_{f^{\star}}\in\Psi_{m} and the optimality of π^m(⋅)\widehat{\pi}_{m}(\cdot) for R^t(⋅)\widehat{\mathcal{R}}_{t}(\cdot) over Ψm\Psi_{m}, (iii) is by the triangle inequality, (iv) is by Lemma C.8, and (v) is by the AM-GM inequality. By Eq. 51 and πf⋆∈Ψm−1\pi_{f^{\star}}\in\Psi_{m-1},

Combining the above two inequalities with qm−1≤ϱm−1q_{m-1}\leq{\varrho_{m-1}} and Eq. 54, we have

We now show that for all rounds tt in epoch mm and all π∈Ψm\pi\in\Psi_{m},

Similar to Section C.3, for any round tt in epoch mm we have

Combining Section C.3, Section C.3 and Section C.3, we have

where in the third inequality we use the fact that both πf\pi_{f} and πf⋆\pi_{f^{\star}} belongs to Ψm−1\Psi_{m-1}, as well as Lemma C.2. By Eq. 44, Lemma C.10, Eq. 51, and the fact that round tm−1t_{m-1} belongs to epoch m−1m-1, we have

Plugging the above two inequalities into Section C.3, we have

This follows from Lemma C.11 and part 3 of Lemma C.2. ∎

At this point, can bound the regret within each epoch using Corollary C.1, which gives a bound in terms of the empirical disagreement probability ϱ^m{\widehat{\varrho}_{m}}. To proceed, we relate this quantity to the policy disagreement coefficient.

We observe that for all m∈[M]m\in[M], since πf∈Πηmcsc\pi_{f}\in\Pi_{\eta_{m}}^{\mathsf{csc}} for all f∈Fmf\in\mathcal{F}_{m}, we have

The following lemma uses this result to upper bound regret in terms of the disagreement coefficient.

Set βm=(M−m+1)Cδ\beta_{m}=(M-m+1)C_{\delta} and μm=64log⁡(4M/δ)/nm−1\mu_{m}=64\log(4M/\delta)/n_{m-1} for all m∈[M]m\in[M]. Assume that both E\mathcal{E} and Edp\mathcal{E}_{\rm dp} hold. Then for all m∈[M]∖{1}m\in[M]\setminus\{1\}, for all f∈Fmf\in\mathcal{F}_{m},

where the second inequality invokes the definition of the disagreement coefficient.

On the other hand, suppose qm−1<μm−1q_{m-1}<\mu_{m-1}. Since f⋆∈Fm⊂Fm−1f^{\star}\in\mathcal{F}_{m}\subset\mathcal{F}_{m-1} (by part 3 of Lemma C.2) and since ∣f(x,a)∣≤1\left\lvert f(x,a)\right\rvert\leq{}1 for all f∈Ff\in\mathcal{F}, for all f∈Fmf\in\mathcal{F}_{m} we have

We now solve the recurrence in Lemma C.12 to obtain an absolute upper bound on ηm\eta_{m} for each round.

Set βm=(M−m+1)Cδ\beta_{m}=(M-m+1)C_{\delta} and μm=64log⁡(4M/δ)/nm−1\mu_{m}=64\log(4M/\delta)/n_{m-1} for all m∈[M]m\in[M]. Assume that both E\mathcal{E} and Edp\mathcal{E}_{\rm dp} hold. Fix any ε>0\varepsilon>0. For every epoch m∈[M]m\in[M], if ηm>ε\eta_{m}>\varepsilon, then

We prove this result by induction. The hypothesis trivially holds for m=1m=1. Now assume that the hypothesis holds for m−1m-1 where m>1m>1. If ηm≤ε\eta_{m}\leq\varepsilon then we are done. If ηm>ε\eta_{m}>\varepsilon, then by part 3 of Lemma C.2, we have ηm−1≥ηm>ε\eta_{m-1}\geq\eta_{m}>\varepsilon. We consider two cases.

Case 1: ηm≥12ηm−1\eta_{m}\geq\frac{1}{2}\eta_{m-1}. In this case, by Lemma C.12 we have

and by ηm−1≥ηm>ε\eta_{m-1}\geq\eta_{m}>\varepsilon, we have

Case 2: ηm<12ηm−1\eta_{m}<\frac{1}{2}\eta_{m-1}. Since ηm−1≥ηm>ε\eta_{m-1}\geq\eta_{m}>\varepsilon, by the induction assumption we have

and by ηm<12ηm−1\eta_{m}<\frac{1}{2}\eta_{m-1} we know that

where we use that fact that nm−1=2nm−2n_{m-1}=2n_{m-2}.

Combining Case 1 and Case 2, we have that the hypothesis holds for mm, concluding the inductive proof. ∎

Assume that both E\mathcal{E} and Edp\mathcal{E}_{\rm dp} hold, and f⋆∈FM⊂⋯⊂F1f^{\star}\in\mathcal{F}_{M}\subset\cdots\subset\mathcal{F}_{1}. For every epoch m∈[M]m\in[M],

where the first inequality follows from Lemma C.10, the second inequality follows from Eq. 50, and the third inequality follows from qm≤ϱm≤32ϱ^mq_{m}\leq{\varrho_{m}}\leq\frac{3}{2}{\widehat{\varrho}_{m}} by Lemma C.3. ∎

Set βm=(M−m+1)Cδ\beta_{m}=(M-m+1)C_{\delta} and μm=64log⁡(4M/δ)/nm−1\mu_{m}=64\log(4M/\delta)/n_{m-1} for all m∈[M]m\in[M]. Assume that both E\mathcal{E} and Edp\mathcal{E}_{\rm dp} hold. Fix any ε>0\varepsilon>0. For every epoch m∈[M]m\in[M],

Case 2: qm−1<μm−1q_{m-1}<\mu_{m-1}. By Part 3 of Lemma C.2 and Lemma C.7, and using that ∣f⋆(x,a)∣≤1\left\lvert f^{\star}(x,a)\right\rvert\leq{}1, we have

For any δ∈(0,1]\delta\in(0,1], c>0c>0, by setting βm=(M−m+1)Cδ\beta_{m}=(M-m+1)C_{\delta} and μm=64log⁡(4M/δ)/nm−1\mu_{m}=64\log(4M/\delta)/n_{m-1} for all m∈[M]m\in[M], Algorithm 1 with Option I ensures that for every instance,

By Lemma C.1, Lemma C.2 and Lemma C.3, the choice of {βm}m=1M\{\beta_{m}\}_{m=1}^{M} and {μm}m=1M\{\mu_{m}\}_{m=1}^{M} ensures that E\mathcal{E} and Edp\mathcal{E}_{\rm dp} simultaneously hold with probability at least 1−δ1-\delta, and f⋆∈FM⊂⋯⊂F1f^{\star}\in\mathcal{F}_{M}\subset\cdots\subset\mathcal{F}_{1}. By Lemma C.15, conditional on the occurrence of E\mathcal{E} and Edp\mathcal{E}_{\rm dp}, for any ε>0\varepsilon>0, we have

The θcsc\boldsymbol{\theta}^{\mathsf{csc}}-based upper bound in Theorem 2.1 can be directly obtained from Lemma C.16: By taking δ=1/T\delta=1/T and c=1{c}=1, we have

The θpol\boldsymbol{\theta}^{\mathsf{pol}}-based upper bound (under the uniform gap assumption) in Theorem 2.1 is an immediate corollary of the θcsc\boldsymbol{\theta}^{\mathsf{csc}}-based upper bound. ∎

C.4 Proof of Theorem 2.3

We now prove that AdaCB with Option II, i.e. with

for all m∈[M]m\in[M], attains the regret bound in Theorem 2.3.

Assume that E\mathcal{E} holds and f⋆∈Fmf^{\star}\in\mathcal{F}_{m} for all m∈[M]m\in[M]. Then for all epoch m∈[M]m\in[M] and all rounds tt in epoch mm,

Consider any epoch m∈[M]m\in[M], any round tt in epoch mm. We have

For all xx such that ∣A(x;Fm)∣=1|\mathcal{A}(x;\mathcal{F}_{m})|=1, since f⋆∈Fmf^{\star}\in\mathcal{F}_{m}, we have pm(π⋆(x)∣x)=1p_{m}(\pi^{\star}(x)|x)=1 and w(x;Fm)=0w(x;\mathcal{F}_{m})=0, thus

For all xx such that ∣A(x;Fm)∣>1|\mathcal{A}(x;\mathcal{F}_{m})|>1, for all a∈A(x;Fm)a\in\mathcal{A}(x;\mathcal{F}_{m}), there exists f∘∈Fmf^{\circ}\in\mathcal{F}_{m} such that πf∘(x)=a\pi_{f^{\circ}}(x)=a, thus

Hence for all xx such that ∣A(x;Fm)∣>1|\mathcal{A}(x;\mathcal{F}_{m})|>1,

Before we derive sharp instance-dependent guarantees for AdaCB with Option II, we first show that Option II will never degrade the algorithm’s worst-case performance, i.e., AdaCB with Option II always guarantees the minimax rate O~(ATlog⁡∣F∣)\widetilde{\mathcal{O}}(\sqrt{AT\log|\mathcal{F}|}).

For all epoch m∈[M]m\in[M], all round tt in epoch mm, Qm(⋅)Q_{m}(\cdot) is a feasible solution to:

This is a direct corollary of Lemma C.5. ∎

For any epoch m∈[M]m\in[M], if γm>0\gamma_{m}>0, then γm≥max⁡{γ1,…,γm−1}\gamma_{m}\geq\max\{\gamma_{1},\dots,\gamma_{m-1}\}.

If γm>0\gamma_{m}>0, then λm=1\lambda_{m}=1, thus γm=c(Anm−1)/log⁡(2∣F∣T2)/δ\gamma_{m}=c\sqrt{(An_{m-1})/\log(2|\mathcal{F}|T^{2})/\delta}. For any m′∈{1,…,m−1}m^{\prime}\in\{1,\dots,m-1\},

Assume that E\mathcal{E} holds, and f⋆∈Fmf^{\star}\in\mathcal{F}_{m} for all m∈[M]m\in[M]. Let c1:=200c2+3c_{1}\vcentcolon={}200c^{2}+3. For all epochs m∈[M]m\in[M] such that γm>0\gamma_{m}>0,

The proof is based on slight modifications of Lemma 7, Lemma 8 and Lemma 9 of Simchi-Levi and Xu (2020), which (essentially) proves the same result based on the following two conditions

For any epoch m∈[M]m\in[M], γm≥max⁡{γ1,…,γm−1}\gamma_{m}\geq\max\{\gamma_{1},\dots,\gamma_{m-1}\}.

While our Corollary C.2 is weaker than their first condition (specifically, Eq. 64 holds for ∀π∈Ψm\forall\pi\in\Psi_{m} while Eq. 65 requires ∀π∈Ψ\forall\pi\in\Psi), their proof still works under our condition, as we have assumed that f⋆∈Fmf^{\star}\in\mathcal{F}_{m} for all m∈[M]m\in[M]. While our Lemma C.18 is weaker than their second condition, this difference does not affect Lemma C.19, as Lemma C.19 only considers epochs mm such that γm>0\gamma_{m}>0. As a result, Lemma C.19 is indeed implied by their result. ∎

For any δ∈(T−2,1]\delta\in(T^{-2},1], c>0c>0, by setting βm≥Cδ/2\beta_{m}\geq C_{\delta}/2 for all m∈[M]m\in[M], Algorithm 1 with Option II ensures that for every instance,

By Lemma C.1 and Lemma C.4, E\mathcal{E} and Ew\mathcal{E}_{\rm w} simultaneously hold with probability at least 1−δ1-\delta. In the rest of the proof, we assume that both E\mathcal{E} and Ew\mathcal{E}_{\rm w} hold. By Lemma C.2, the specification of {βm}m=1T\{\beta_{m}\}_{m=1}^{T} in Algorithm 1 ensures that f⋆∈Fmf^{\star}\in\mathcal{F}_{m} for m∈[M]m\in[M].

Consider any epoch m∈[M]m\in[M], any round tt in epoch mm. When wm<3ATlog⁡(∣F∣/δ)2nm−1w_{m}<\frac{3\sqrt{AT\log(|\mathcal{F}|/\delta)}}{2n_{m-1}}, by Lemma C.17,

When wm≥3ATlog⁡(∣F∣/δ)2nm−1w_{m}\geq\frac{3\sqrt{AT\log(|\mathcal{F}|/\delta)}}{2n_{m-1}}, we have wm≥3ATlog⁡(∣F∣/δ)2nm−1≥64log⁡(4M/δ)nm−1w_{m}\geq\frac{3\sqrt{AT\log(|\mathcal{F}|/\delta)}}{2n_{m-1}}\geq\frac{64\log(4M/\delta)}{n_{m-1}}, and thus by Eq. 46,

which implies γm>0\gamma_{m}>0. By Lemma C.19, we have

We now show that whenever the uniform gap condition

holds, AdaCB with Option II enjoys the θvallog⁡∣F∣Δ\frac{\boldsymbol{\theta}^{\mathsf{val}}\log|\mathcal{F}|}{\Delta}-type instance-dependent rate in Theorem 2.3.

Assume E\mathcal{E} holds and that f⋆∈FM⊂⋯⊂F1f^{\star}\in\mathcal{F}_{M}\subset\cdots\subset\mathcal{F}_{1}. For all m>1m>1, for all choices for βm≥0\beta_{m}\geq 0, it holds that

Consider any epoch m>1m>1. Define εm=2βm+Cδ\varepsilon_{m}=\sqrt{2\beta_{m}+C_{\delta}}. We first observe that for all xx such that ∣A(x;Fm)∣>1|\mathcal{A}(x;\mathcal{F}_{m})|>1, there exists f∘∈Fmf^{\circ}\in\mathcal{F}_{m} such that πf∘(x)≠πf⋆(x)\pi_{f^{\circ}}(x)\neq\pi_{f^{\star}}(x) and

where the last inequality utilizes f⋆∈Fmf^{\star}\in\mathcal{F}_{m}.

Therefore, sup⁡a∈A(x;Fm)sup⁡f′∈Fm∣f(x,a)−f⋆(x,a)∣≥Δ/2\sup_{a\in\mathcal{A}(x;\mathcal{F}_{m})}\sup_{f^{\prime}\in\mathcal{F}_{m}}\left|f(x,a)-f^{\star}(x,a)\right|\geq\Delta/2 whenever ∣A(x;Fm)∣>1|\mathcal{A}(x;\mathcal{F}_{m})|>1. We then have

where the last inequality utilizes Fm−1⊂Fm\mathcal{F}_{m-1}\subset\mathcal{F}_{m}.

Let ω>0\omega>0 be fixed. For all x∈Xx\in\mathcal{X}, the definition of pm−1p_{m-1} implies that

Hence, for all ω∈(0,1]\omega\in(0,1], by the definition of θval\boldsymbol{\theta}^{\mathsf{val}}, we have

Combining Section C.4.2, Section C.4.2, Section C.4.2, we have

We are now ready to state our instance-dependent regret bound, which is a best-of-both-worlds guarantee.

For any δ∈(T−2,1]\delta\in(T^{-2},1], c>0c>0, by setting βm=(M−m+1)Cδ\beta_{m}=(M-m+1)C_{\delta} for all m∈[M]m\in[M], Algorithm 1 with Option II ensures that for any instance with uniform gap Δ>0\Delta>0,

By Lemma C.1 and Lemma C.4, E\mathcal{E} and Ew\mathcal{E}_{\rm w} simultaneously hold with probability at least 1−δ1-\delta. In the rest of the proof, we assume that both E\mathcal{E} and Ew\mathcal{E}_{\rm w} hold. By Lemma C.2, the specification of {βm}m=1T\{\beta_{m}\}_{m=1}^{T} in Algorithm 1 ensures that f⋆∈FM⊂⋯⊂F1f^{\star}\in\mathcal{F}_{M}\subset\cdots\subset\mathcal{F}_{1} whenever E\mathcal{E} holds.

Since βm=(M−m+1)Cδ\beta_{m}=(M-m+1)C_{\delta} for all m∈[M]m\in[M], we have

for all m∈[M]m\in[M]. In what follows, we prove that γ1=⋯=γM=0\gamma_{1}=\cdots=\gamma_{M}=0 via induction.

Base case: Since w^1=1<ATlog⁡(∣F∣/δ)/n0\widehat{w}_{1}=1<\sqrt{AT\log(|\mathcal{F}|/\delta)}/n_{0}, we have λ1=0\lambda_{1}=0, thus γ1=0\gamma_{1}=0.

Assume that γm−1=0\gamma_{m-1}=0. Then by Lemma C.21,

If wm≥64log⁡(4M/δ)/nm−1w_{m}\geq 64\log(4M/\delta)/n_{m-1}, then by Eq. 46,

Therefore, γ1=⋯=γM=0\gamma_{1}=\cdots=\gamma_{M}=0.

By Lemma C.21, since γ1=⋯=γM=0\gamma_{1}=\cdots=\gamma_{M}=0, we now have that for all m∈[M]m\in\left[M\right],

By the definition of w(x;Fm)w(x;\mathcal{F}_{m}), we have

Combining the above two cases with Lemma C.20, we know that

Theorem 2.3 can be directly obtained from Lemma C.22: by taking δ=1/T\delta=1/T and c=1c=1, we have

Appendix D Proofs for Lower Bounds

For the proofs in this section, we let Gt=σ((x1,a1,r1(a1)),…,(xt,at,rt(at)))\mathfrak{G}_{t}=\sigma((x_{1},a_{1},r_{1}(a_{1})),\ldots,(x_{t},a_{t},r_{t}(a_{t}))) be the natural filtration, and define

to be the sum of conditional expectations of the instantaneous regret. We define pt(x,a)p_{t}(x,a) to be the algorithm’s action distribution at time tt when xt=xx_{t}=x, i.e.

We also define pˉ=1T∑t=1Tpt\bar{p}=\frac{1}{T}\sum_{t=1}^{T}p_{t} to be the average action distribution (or, the result of applying online-to-batch-conversion to the algorithm).

The following lemmas are used in multiple proofs in this section.

This result follows by using the uniform gap property, then repeatedly invoking Jensen’s inequality.

Sample m⋆∼[M]m^{\star}\sim\left[M\right] uniformly.

This is established in Raginsky and Rakhlin (2011), but we re-prove the lemma in detail for completeness.

We choose ϕ(u)=−log⁡(u)\phi(u)=-\log(u). Then we have

Using Lemma D.1, for all choices f⋆=f(i)f^{\star}=f^{{\scriptscriptstyle(i)}}, we have

In particular, by Markov’s inequality, this implies that

has i^=i\hat{i}=i. Indeed, conditioned on the event above, we have ∥pˉ−πf(i)∥≤ε\left\|\bar{p}-\pi_{f^{{\scriptscriptstyle(i)}}}\right\|\leq\varepsilon, and the packing property implies that

D.2 Proof of Theorem 2.2 and Theorem 2.4

The roadmap for this proof is as follows. First, we construct a family of hard instances as a function of the parameters in Theorem 2.2 and show that it leads to the lower bound in terms of the policy disagreement coefficient. Then, at the end of the theorem, we show how the same construction immediately implies Theorem 2.4 using a different choice of problem parameters.

For each partition X(i)\mathcal{X}^{{\scriptscriptstyle(i)}}, we take Π(i)⊆(X(i)→A\Pi^{{\scriptscriptstyle(i)}}\subseteq(\mathcal{X}^{{\scriptscriptstyle(i)}}\to\mathcal{A}) to be a collection of policies {π(i,l,b)}\left\{\pi^{{\scriptscriptstyle(i,l,b)}}\right\} where, for each l∈{1,…,k}l\in\left\{1,\ldots,k\right\} and b∈A0:=A∖{a(1)}b\in\mathcal{A}_{0}\vcentcolon={}\mathcal{A}\setminus\left\{a^{{\scriptscriptstyle(1)}}\right\}, we have π(i,l,b)(x(i,0))=a(1)\pi^{{\scriptscriptstyle(i,l,b)}}(x^{{\scriptscriptstyle(i,0)}})=a^{{\scriptscriptstyle(1)}} and

We also include a policy π(i,0)\pi^{{\scriptscriptstyle(i,0)}} that always selects a(1)a^{{\scriptscriptstyle(1)}}. We define Π\Pi obtained by stitching together Π(1),…,Π(d)\Pi^{{\scriptscriptstyle(1)}},\ldots,\Pi^{{\scriptscriptstyle(d)}} over their respective subsets of the domain. The resulting policy class consists of all policies which deviate from a(1)a^{{\scriptscriptstyle(1)}} on a subset of contexts of size at most dd, and for which this subset intersects with each X(i)\mathcal{X}^{{\scriptscriptstyle(i)}} at most once.

We now choose a regression function class F\mathcal{F} that induces Π\Pi. For each subset X(i)\mathcal{X}^{{\scriptscriptstyle(i)}} we define a class of regression functions F(i):X(i)→[0,1]\mathcal{F}^{{\scriptscriptstyle(i)}}:\mathcal{X}^{{\scriptscriptstyle(i)}}\to\left[0,1\right] as follows. First, we let f(i,0)(x(i,j),⋅)=μ0:=(\nicefrac12+Δ,\nicefrac12,…,\nicefrac12)f^{{\scriptscriptstyle(i,0)}}(x^{{\scriptscriptstyle(i,j)}},\cdot)=\mu_{0}\vcentcolon={}(\nicefrac{{1}}{{2}}+\Delta,\nicefrac{{1}}{{2}},\ldots,\nicefrac{{1}}{{2}}) for all jj. Next, for each b∈A0b\in\mathcal{A}_{0} let

with the \nicefrac12+2Δ\nicefrac{{1}}{{2}}+2\Delta entry on the bbth coordinate. Next, for each l∈{1,…,k}l\in\{1,\ldots,k\} and b∈A0b\in\mathcal{A}_{0} we let

As with Π\Pi, we obtain F\mathcal{F} by stitching together F(1),…,F(d)\mathcal{F}^{{\scriptscriptstyle(1)}},\ldots,\mathcal{F}^{{\scriptscriptstyle(d)}} over their respective subsets of the domain. It is easily verified that Π\Pi is precisely the set of argmax policies for F\mathcal{F}.

We define the context distribution D\mathcal{D} as follows:

Let D(i)\mathcal{D}^{{\scriptscriptstyle(i)}} be the distribution over X(i)\mathcal{X}^{{\scriptscriptstyle(i)}} which takes each of x(i,1),…,x(i,k)x^{{\scriptscriptstyle(i,1)}},\ldots,x^{{\scriptscriptstyle(i,k)}} with probability ε\varepsilon and takes x(i,0)x^{{\scriptscriptstyle(i,0)}} with probability 1−kε≥01-k\varepsilon\geq{}0.

Let D=1d∑i=1dD(i)\mathcal{D}=\frac{1}{d}\sum_{i=1}^{d}\mathcal{D}^{{\scriptscriptstyle(i)}}.

We now choose the parameter dd and verify that ∣F∣\left\lvert\mathcal{F}\right\rvert, θpol\boldsymbol{\theta}^{\mathsf{pol}}, and θval\boldsymbol{\theta}^{\mathsf{val}} are bounded appropriately. We first observe that since each value function f∈Ff\in\mathcal{F} deviates from the vector μ0\mu_{0} on at most dd contexts, and since it can switch to one of the A−1A-1 vectors {μb}b∈A0\{\mu_{b}\}_{b\in\mathcal{A}_{0}} each such context,

We choose dd to be the largest possible value such that (e2Ak)d≤F(e^{2}Ak)^{d}\leq{}F; this is possible by the assumption that θ≤e−2F/A\theta\leq{}e^{-2}F/A. Since (e2Ak)d+1≥F(e^{2}Ak)^{d+1}\geq{}F, we have

where the last expression uses that ε≤1\varepsilon\leq{}1 and A≥2A\geq{}2. Hence, going forward, we focus our attention to lower bounding the regret in terms of dd, which is equivalent to log⁡F\log{}F up to logarithmic factors.

It follows that θpol(Π,ε)≤k≤θ\boldsymbol{\theta}^{\mathsf{pol}}(\Pi,\varepsilon)\leq{}k\leq\theta for any choice of π⋆\pi^{\star}. Since θ≥1\theta\geq{}1, we also have k≥θ/2k\geq{}\theta/2.

For each ii, set vi=0v_{i}=0 with probability 1/21/2. Otherwise, select viv_{i} uniformly from {1,…,k}\left\{1,\ldots,k\right\}. Select bib_{i} uniformly from {2,…,A}\left\{2,\ldots,A{}\right\}.

Note that when vi=0v_{i}=0 we disregard the value of bib_{i}. Let πα\pi_{\alpha} denote the optimal policy under α\alpha, and let πα(i)\pi_{\alpha}^{{\scriptscriptstyle(i)}} denote its restriction to X(i)\mathcal{X}^{{\scriptscriptstyle(i)}}.

where pˉ=1T∑t=1Tpt\bar{p}=\frac{1}{T}\sum_{t=1}^{T}p_{t}. Moreover, we have

where πα(i)\pi_{\alpha}^{{\scriptscriptstyle(i)}} is the restriction of πα\pi_{\alpha} to X(i)\mathcal{X}^{{\scriptscriptstyle(i)}}.

where A0:=A−1A_{0}\vcentcolon={}A-1. In particular, we conclude that

Let I⊆[d]\mathcal{I}\subseteq\left[d\right] denote the set of indices ii for which

We consider two cases. First, if ∣I∣≤d/2\left\lvert\mathcal{I}\right\rvert\leq{}d/2, then Eq. 74 implies that

so we are done. For the other case, we have ∣I∣≥d/2\left\lvert\mathcal{I}\right\rvert\geq{}d/2, and we argue that the algorithm must solve a hypothesis test for each index in this set. Let i∈Ii\in\mathcal{I} be fixed. First, observe that for any (l,b)≠(l′,b′)(l,b)\neq(l^{\prime},b^{\prime}), we have

by Markov’s inequality. Hence, if we define (l^,b^)=⋆⁡arg minl′,b′∥pˉ−π(i,l′,b′)∥L1(D(i))(\hat{l},\hat{b})=\operatorname\star{arg\,min}_{l^{\prime},b^{\prime}}\left\|\bar{p}-\pi^{{\scriptscriptstyle(i,l^{\prime},b^{\prime})}}\right\|_{L_{1}(\mathcal{D}^{{\scriptscriptstyle(i)}})}, we have that

where we have used Lemma B.5 and that Δ≤1/4\Delta\leq{}1/4. Thus, taking the average, we have

Since we have assumed that ∣I∣≥d2\left\lvert\mathcal{I}\right\rvert\geq{}\frac{d}{2}, this expression combined with Eq. 76 implies that

To prove Theorem 2.4 with parameters AA, FF, Δ\Delta, ε\varepsilon, and θ\theta, we apply the construction above with parameter ε0:=ε2Δ2\varepsilon_{0}\vcentcolon={}\frac{\varepsilon^{2}}{\Delta^{2}}, which is admissible for any choice of θ≤1/ε0∧e−2A/F\theta\leq{}1/\varepsilon_{0}\wedge{}e^{-2}A/F. Since we have already shown that this construction ensures that any algorithm has

for some instance, all that remains is to verify that θval(F,Δ/2,ε)≤θ\boldsymbol{\theta}^{\mathsf{val}}\left(\mathcal{F},\Delta/2,\varepsilon\right)\leq\theta.

For any fixed f⋆∈Ff^{\star}\in\mathcal{F}, we have

since all of the value functions in F\mathcal{F} agree on x(i,0)x^{{\scriptscriptstyle(i,0)}} for all ii. Furthermore, since ∣f(x,a)−f⋆(x,a)∣≤Δ\left\lvert f(x,a)-f^{\star}(x,a)\right\rvert\leq{}\Delta for all f∈Ff\in\mathcal{F}, we also have

for all Δ′≥Δ\Delta^{\prime}\geq{}\Delta. It follows that

so that θval(F,Δ/2,ε)≤k≤θ\boldsymbol{\theta}^{\mathsf{val}}\left(\mathcal{F},\Delta/2,\varepsilon\right)\leq{}k\leq\theta.

D.3 Proof of Theorem 2.6

Rather than proving Theorem 2.6 directly, in this section we first state a more general theorem which implies it, then prove this theorem. To state the stronger theorem, we recall the definition of the graph dimension, which is a multiclass analogue of the VC dimension.

The graph dimension dG(Π,π⋆)d_{\mathcal{G}}(\Pi,\pi^{\star}) is the largest number dd such that there exists S⊆XS\subseteq\mathcal{X} with ∣S∣=d\left\lvert S\right\rvert=d such that for all T⊆ST\subseteq{}S, there exists π∈Π\pi\in\Pi such that

Let a policy class Π\Pi, π⋆∈Π\pi^{\star}\in\Pi, and Δ∈(0,1/8)\Delta\in(0,1/8) be given. Then there exist F\mathcal{F}, D\mathcal{D}, and f⋆∈Ff^{\star}\in\mathcal{F} with πf⋆=π⋆\pi_{f^{\star}}=\pi^{\star} such that the following properties hold:

{πf∣f∈F}⊆Π\left\{\pi_{f}\mid{}f\in\mathcal{F}\right\}\subseteq\Pi.

for some instance in which f⋆f^{\star} is the Bayes reward function.

We choose f⋆=f(0)f^{\star}=f^{{\scriptscriptstyle(0)}} as the reference regression function in the theorem statement.

Let π(1),…,π(N)\pi^{{\scriptscriptstyle(1)}},\ldots,\pi^{{\scriptscriptstyle(N)}} be the policies accompanying z(1),…,z(N)z^{{\scriptscriptstyle(1)}},\ldots,z^{{\scriptscriptstyle(N)}} that witness the strong star number. For each ii, define a regression function f(i)f^{{\scriptscriptstyle(i)}} to have f(i)(x(j),a)=f(0)(x(j),a)f^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(j)}},a)=f^{{\scriptscriptstyle(0)}}(x^{{\scriptscriptstyle(j)}},a) for all x≠x(i)x\neq{}x^{{\scriptscriptstyle(i)}}, and let

For x∉{x(1),…,x(N)}x\notin\left\{x^{{\scriptscriptstyle(1)}},\ldots,x^{{\scriptscriptstyle(N)}}\right\}, we simply define

For all ii, we have π(i)=πf(i)\pi^{{\scriptscriptstyle(i)}}=\pi_{f^{{\scriptscriptstyle(i)}}}.

Let ii be fixed. For x∉{x(1),…,x(N)}x\notin\left\{x^{{\scriptscriptstyle(1)}},\ldots,x^{{\scriptscriptstyle(N)}}\right\} the result is immediate. For x(j)≠x(i)x^{{\scriptscriptstyle(j)}}\neq{}x^{{\scriptscriptstyle(i)}}, Definition 2.2 requires that π(i)(x(j))=π⋆(x(j))\pi^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(j)}})=\pi^{\star}(x^{{\scriptscriptstyle(j)}}), and we have πf(i)(x(j))=πf⋆(x(j))=π⋆(x(j))\pi_{f^{{\scriptscriptstyle(i)}}}(x^{{\scriptscriptstyle(j)}})=\pi_{f^{\star}}(x^{{\scriptscriptstyle(j)}})=\pi^{\star}(x^{{\scriptscriptstyle(j)}}). Finally, we have πf(i)(x(i))=π(i)(x(i))\pi_{f^{{\scriptscriptstyle(i)}}}(x^{{\scriptscriptstyle(i)}})=\pi^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}}) by construction. ∎

Observe that all of the regression functions have uniform gap Δ\Delta. Moreover, for all i≠ji\neq{}j for i,j≥1i,j\geq{}1, we have

as long as Δ≤1/8\Delta\leq{}1/8 (by Lemma B.5). Since the tuples (x(i),a(i))(x^{{\scriptscriptstyle(i)}},a^{{\scriptscriptstyle(i)}}) are distinct, this implies that

Finally, we use that since f(0)f^{{\scriptscriptstyle(0)}} has uniform gap Δ\Delta, we have

For each v∈{±1}dv\in\left\{\pm{}1\right\}^{d}, let πv∈Π\pi_{v}\in\Pi be such that πv(y(i))=π⋆(y(i))\pi_{v}(y^{{\scriptscriptstyle(i)}})=\pi^{\star}(y^{{\scriptscriptstyle(i)}}) if vi=1v_{i}=1 and πv(y(i))≠π⋆(y(i))\pi_{v}(y^{{\scriptscriptstyle(i)}})\neq{}\pi^{\star}(y^{{\scriptscriptstyle(i)}}) if vi=−1v_{i}=-1; these policies are guaranteed to exist by the definition of the graph number. Let f(0)f^{{\scriptscriptstyle(0)}} be defined as before, and for each vv define

for each ii. For x∉{y(1),…,y(d)}x\notin\left\{y^{{\scriptscriptstyle(1)}},\ldots,y^{{\scriptscriptstyle(d)}}\right\}, define

Our starting point is the following lemma.

With our choice of D\mathcal{D}, for any Bayes reward function f⋆f^{\star} with gap Δ\Delta, we have

By the definition of the total variation distance, we can lower bound this by

where the last inequality is Pinsker. Rearranging, we have

since Δ≤1/8\Delta\leq 1/8 (by Lemma B.5). As a result, we have

Finally, observe that for any vv, we have

Hence, under vv drawn from the uniform distribution, we have

D.4 Proof of Theorem 2.8

Let Δ∈(0,1)\Delta\in(0,1) and f⋆∈Ff^{\star}\in\mathcal{F} be given. Let TT be fixed and recall that εT\varepsilon_{T} is chosen as the largest value such that

Take the context distribution D\mathcal{D} to be uniform over {x1,…,xm}\left\{x_{1},\ldots,x_{m}\right\}.

Choose r(a)∼N(f(i)(x,a),1)∣xr(a)\sim{}\mathcal{N}(f^{{\scriptscriptstyle(i)}}(x,a),1)\mid{}x.

Let π(i)\pi^{{\scriptscriptstyle(i)}} denote the optimal policy for instance ii. Since f⋆f^{\star} has gap Δ\Delta for every context, the conditions characterizing the star number ensure the following.

f(i)f^{{\scriptscriptstyle(i)}} has gap Δ2\frac{\Delta}{2} over {x1,…,xm}\left\{x_{1},\ldots,x_{m}\right\}.

π(i)(x(j))=π(0)(x(j))\pi^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(j)}})=\pi^{{\scriptscriptstyle(0)}}(x^{{\scriptscriptstyle(j)}}) for all i≠ji\neq{}j.

π(i)(x(i))≠π(0)(x(i))\pi^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}})\neq\pi^{{\scriptscriptstyle(0)}}(x^{{\scriptscriptstyle(i)}}).

The third item is immediate. For the first item, we have two cases. First, for x(i)x^{{\scriptscriptstyle(i)}}, that f(i)f^{{\scriptscriptstyle(i)}} has gap Δ/2\Delta/2 is immediate from Item 1 of Definition 2.4. For j≠ij\neq{}i, Item 3 ensures that

In particular, since ε≤Δ/4\varepsilon\leq{}\Delta/4, we have

In particular, choosing c=164c=\frac{1}{64}, this implies that

In particular, the choice for εT\varepsilon_{T} in Eq. 24 ensures that εT2T/m≤1\varepsilon_{T}^{2}T/m\leq{}1. Hence, rearranging, we have

D.5 Proof of Theorem 2.9

Let Δ∈(0,1)\Delta\in(0,1) and f⋆∈Ff^{\star}\in\mathcal{F} be given. We consider instances defined by a value function f∈Ff\in\mathcal{F} and sequence x1,…,xTx_{1},\ldots,x_{T}, in which the contexts in the sequence are presented one-by-one non-adaptively and rewards are drawn as rt(a)∼N(f(xt,a),1)r_{t}(a)\sim{}\mathcal{N}(f(x_{t},a),1). For each such (f,x1:T)(f,x_{1:T}) pair, we let

be the sum of conditional-expected instantaneous regrets under this process, which is a random variable.

For each TT, we let dT=e‾f⋆val(F,Δ/2,εT)d_{T}=\underline{\mathfrak{e}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta/2,\varepsilon_{T}), where we recall that εT\varepsilon_{T} is chosen such that

In particular, it will be useful to note that dTd_{T} is non-increasing with TT, so that dT≤Td_{T}\leq{}T for TT sufficiently large.

Fix TT sufficiently large such that d≤Td\leq{}T. Let x(1),…,x(d)x^{{\scriptscriptstyle(1)}},\ldots,x^{{\scriptscriptstyle(d)}} and f(1),…,f(d)f^{{\scriptscriptstyle(1)}},\ldots,f^{{\scriptscriptstyle(d)}} realize the eluder dimension, and let f(0)=f⋆f^{{\scriptscriptstyle(0)}}=f^{\star}. Let π(0),…,π(d)\pi^{{\scriptscriptstyle(0)}},\ldots,\pi^{{\scriptscriptstyle(d)}} be the induced policies. We have the following result.

f(i)f^{{\scriptscriptstyle(i)}} has gap Δ2\frac{\Delta}{2} over {x1,…,xi}\left\{x_{1},\ldots,x_{i}\right\}.

π(i)(x(j))=π(0)(x(j))\pi^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(j)}})=\pi^{{\scriptscriptstyle(0)}}(x^{{\scriptscriptstyle(j)}}) for all j<ij<i.

π(i)(x(i))≠π(0)(x(i))\pi^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(i)}})\neq\pi^{{\scriptscriptstyle(0)}}(x^{{\scriptscriptstyle(i)}}).

Let XT={x1,…,xT}X_{T}=\left\{x_{1},\ldots,x_{T}\right\} denote the sequence that plays x(1)x^{{\scriptscriptstyle(1)}} for the first ⌊T/d⌋\lfloor T/d\rfloor rounds, x(2)x^{{\scriptscriptstyle(2)}} for the second ⌊T/d⌋\lfloor T/d\rfloor rounds, and so forth, and choose an arbitrary fixed context to fill out the remaining rounds. Let XT(i)X_{T}^{{\scriptscriptstyle(i)}} denote the subsequence consisting of the first ii blocks of contexts. Let Ii⊂[T]\mathcal{I}_{i}\subset\left[T\right] denote the rounds within the iith block. Set M=⌊T/d⌋M=\lfloor T/d\rfloor.

Let the index ii be fixed, and let NT(i)=∣{t∈Ii∣at≠π⋆(x(i))}∣N_{T}^{{\scriptscriptstyle(i)}}=\left\lvert\left\{t\in\mathcal{I}_{i}\mid{}a_{t}\neq{}\pi^{\star}(x^{{\scriptscriptstyle(i)}})\right\}\right\rvert be the number of times the algorithm deviates from π⋆\pi^{\star} in block ii when the sequence is XTX_{T}. Then we have

which follows from the fact that f⋆f^{\star} has gap Δ\Delta, and

which follows from the first part of Lemma D.7 (i.e., π⋆\pi^{\star} is Δ/2\Delta/2-suboptimal under f(i)f^{{\scriptscriptstyle(i)}} on context x(i)x^{{\scriptscriptstyle(i)}}).

Using Item 1 and Item 2 of Definition 2.6, as well as the fact that rewards are Gaussian, we have

Our choice of εT\varepsilon_{T} ensures that εT2T/d≤1\varepsilon_{T}^{2}T/d\leq{}1. It follows that

Combining this inequality with Eq. 83 and rearranging, we get

since NT(i)N_{T}^{{\scriptscriptstyle(i)}} is a measurable function of the data up to and including the iith block. Finally, under f⋆f^{\star}, we have

D.6 Proof of Theorem 2.11

Fix T≥eπ⋆pol(Π)T\geq\mathfrak{e}^{\mathsf{pol}}_{\pi^{\star}}(\Pi) and let (x(1),a(1)),…,(x(m),a(m))(x^{{\scriptscriptstyle(1)}},a^{{\scriptscriptstyle(1)}}),\ldots,(x^{{\scriptscriptstyle(m)}},a^{{\scriptscriptstyle(m)}}) and π(1),…,π(N)\pi^{{\scriptscriptstyle(1)}},\ldots,\pi^{{\scriptscriptstyle(N)}} witness the policy eluder dimension. Define

We choose f⋆=f(0)f^{\star}=f^{{\scriptscriptstyle(0)}} as the reference regression function in the theorem statement. For each 1≤i≤N1\leq{}i\leq{}N, define a regression function f(i)f^{{\scriptscriptstyle(i)}} to have f(i)(x(j),a)=f(0)(x(j),a)f^{{\scriptscriptstyle(i)}}(x^{{\scriptscriptstyle(j)}},a)=f^{{\scriptscriptstyle(0)}}(x^{{\scriptscriptstyle(j)}},a) for all j<ij<i with x(j)≠x(i)x^{{\scriptscriptstyle(j)}}\neq{}x^{{\scriptscriptstyle(i)}}, and set

Finally, for all x∉{x(1),…,x(i)}x\notin\left\{x^{{\scriptscriptstyle(1)}},\ldots,x^{{\scriptscriptstyle(i)}}\right\}, set

Let XT={x1,…,xT}X_{T}=\left\{x_{1},\ldots,x_{T}\right\} denote the sequence that plays x(1)x^{{\scriptscriptstyle(1)}} for the first ⌊T/m⌋\lfloor T/m\rfloor rounds, x(2)x^{{\scriptscriptstyle(2)}} for the second ⌊T/m⌋\lfloor T/m\rfloor rounds, and so forth, and choose an arbitrary fixed context to fill out the remaining rounds. Let XT(i)X_{T}^{{\scriptscriptstyle(i)}} denote the subsequence consisting of the first ii blocks of contexts. Let Ii⊂[T]\mathcal{I}_{i}\subset\left[T\right] denote the rounds within the iith block. Set M=⌊T/m⌋M=\lfloor T/m\rfloor.

Let the index ii be fixed, and let NT(i)=∣{t∈Ii∣at≠π⋆(x(i))}∣N_{T}^{{\scriptscriptstyle(i)}}=\left\lvert\left\{t\in\mathcal{I}_{i}\mid{}a_{t}\neq{}\pi^{\star}(x^{{\scriptscriptstyle(i)}})\right\}\right\rvert be the number of times the algorithm deviates from π⋆\pi^{\star} in block ii when the sequence is XTX_{T}. Then we have

since both instances have uniform gap Δ\Delta over block ii.Note that if x(j)=x(i)x^{{\scriptscriptstyle(j)}}=x^{{\scriptscriptstyle(i)}} for some j≤ij\leq{}i the latter lower bound may be pessimistic, since the algorithm will incur regret by following π⋆\pi^{\star} in block jj as well.

Now, since f⋆f^{\star} and f(i)f^{{\scriptscriptstyle(i)}} agree on x(j)x^{{\scriptscriptstyle(j)}} for all j<ij<i with x(j)≠x(i)x^{{\scriptscriptstyle(j)}}\neq{}x^{{\scriptscriptstyle(i)}}, we have

since Δ≤1/8\Delta\leq{}1/8. Rearranging, we have

since ∣{t≤τi:xt=x(i),at=a(i)}∣\left\lvert\left\{t\leq{}\tau_{i}:x_{t}=x^{{\scriptscriptstyle(i)}},a_{t}=a^{{\scriptscriptstyle(i)}}\right\}\right\rvert is a measurable function of the data up to and including the iith block. Finally, since this argument holds for all 1≤i≤m1\leq{}i\leq{}m, under f⋆f^{\star} we have

Appendix E Additional Proofs from Section 2

To bound the value function disagreement coefficient for the general case, we use that

From here, we proceed exactly as in the linear case to get the result. ∎

Since this holds for all choices of Δ\Delta and ε\varepsilon, the result is established. ∎

E.2 Proofs for Star Number Results

Let Δ∈(0,2/3)\Delta\in(0,2/3) be fixed. Let X=[d]\mathcal{X}=\left[d\right] and A={0,1}\mathcal{A}=\left\{0,1\right\}. Set f⋆(x,0)=12Δf^{\star}(x,0)=\frac{1}{2}\Delta and f⋆(x,1)=Δf^{\star}(x,1)=\Delta for all xx. For each ii, define a function fif_{i} as follows.

Let F={f⋆,f1,…,fd}\mathcal{F}=\left\{f^{\star},f_{1},\ldots,f_{d}\right\}. Clearly we have sπ⋆pol(Π)=d\mathfrak{s}^{\mathsf{pol}}_{\pi^{\star}}(\Pi)=d, since for each ii, πfi(i)≠π⋆(i)\pi_{f_{i}}(i)\neq{}\pi^{\star}(i), and πfi(j)=π⋆(j)\pi_{f_{i}}(j)=\pi^{\star}(j) for all j≠ij\neq{}i.

Now, consider the value function star number. Observe that for any ii, and for any set of points I⊆[d]\mathcal{I}\subseteq\left[d\right], we have

Since any fif_{i} has ∣fi(x,a)−f⋆(x,a)∣≥Δ\left\lvert f_{i}(x,a)-f^{\star}(x,a)\right\rvert\geq\Delta only if x=ix=i and a=0a=0, we conclude the following:

sˇf⋆val(F,Δ′)=0\check{\mathfrak{s}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta^{\prime})=0 for all Δ′≥Δ\Delta^{\prime}\geq{}\Delta.

sˇf⋆val(F,Δ′)≤5\check{\mathfrak{s}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta^{\prime})\leq{}5 for all Δ′<Δ\Delta^{\prime}<\Delta, since we must have Δ24(∣I∣−1)≤(Δ′)2\frac{\Delta^{2}}{4}(\left\lvert\mathcal{I}\right\rvert-1)\leq(\Delta^{\prime})^{2} for any set I\mathcal{I} that witnesses the star number.

It follows that sf⋆val(F,Δ′)≤5\mathfrak{s}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta^{\prime})\leq{}5 for all Δ′\Delta^{\prime}.

We prove a slightly more general version of Theorem 2.7. Consider a setting in which we have a function class G:Z→[0,1]\mathcal{G}:\mathcal{Z}\to\left[0,1\right] and distribution P∈Δ(Z)\mathcal{P}\in\Delta(\mathcal{Z}). We introduce the following generalizations of the value function disagreement coefficient and value function star number. Define

The value function star number is defined as sval(G,Δ0)=sup⁡Δ>Δ0sˇval(G,Δ)\mathfrak{s}^{\mathsf{val}}(\mathcal{G},\Delta_{0})=\sup_{\Delta>\Delta_{0}}\check{\mathfrak{s}}^{\mathsf{val}}(\mathcal{G},\Delta).

Our goal will be to prove the following result.

For any uniform Glivenko-Cantelli class G⊆(Z→[0,1])\mathcal{G}\subseteq(\mathcal{Z}\to\left[0,1\right])

This immediately implies Theorem 2.7 by taking Z=X×A\mathcal{Z}=\mathcal{X}\times\mathcal{A}, G={(x,a)↦∣f(x,a)−f⋆(x,a)∣∣f∈F}\mathcal{G}=\left\{(x,a)\mapsto\left\lvert f(x,a)-f^{\star}(x,a)\right\rvert\mid{}f\in\mathcal{F}\right\}, and P=D⊗p\mathcal{P}=\mathcal{D}\otimes{}p for an arbitrary mapping p:X→Δ(A)p:\mathcal{X}\to\Delta(\mathcal{A}). Note that G\mathcal{G} inherits the uniform Glivenko-Cantelli property from F\mathcal{F} by the contraction principle.

The key step toward proving Theorem E.1 is to prove an analogue of the result that holds whenever P\mathcal{P} is the uniform distribution over a finite set of elements. For any sequence S=(z1,…,zn)S=(z_{1},\dots,z_{n}), define

Define wGS(ε)(x)=sup⁡g∈GS(ε)g(x)w_{\mathcal{G}_{S}(\varepsilon)}(x)=\sup_{g\in\mathcal{G}_{S}(\varepsilon)}g(x). The finite-support analogue of Theorem E.1 is as follows.

For any sequence S=(z1,…,zn)S=(z_{1},\dots,z_{n}), for any ζ>0\zeta>0, ε>0\varepsilon>0,

Before proving this result, we show how it implies Theorem E.1.

Let 1>Δ>ε1>\Delta>\varepsilon be fixed; the result is trivial for all other parameter values. We first appeal to the following lemma.

Let γ>0\gamma>0 be fixed. Let Pn\mathcal{P}_{n} denote the empirical distribution formed from nn independent samples from P\mathcal{P}. By Hoeffding’s inequality, we are guaranteed that for nn sufficiently large, with probability at least 1−γ1-\gamma

Next, we observe that since G\mathcal{G} has the uniform Glivenko-Cantelli property, the class {z↦g2(z)∣g∈G}\left\{z\mapsto{}g^{2}(z)\mid{}g\in\mathcal{G}\right\} does as well (by the contraction principle, since ∣g∣≤1\left\lvert g\right\rvert\leq{}1). This implies that for nn sufficiently large,

If we take nn large enough so that both claims hold and take a union bound, we are guaranteed that with probability at least 1−2γ1-2\gamma,

Since γ≤1/4\gamma\leq{}1/4, this event occurs with probability at least 1/21/2. This establishes the existence of the distribution claimed in the lemma statement ∎

where ε′2:=n(ε2+γ)\varepsilon^{\prime 2}\vcentcolon={}n(\varepsilon^{2}+\gamma). Applying Lemma E.1, we have

where we have used that ε′≥Δ\varepsilon^{\prime}\geq{}\Delta by assumption. Altogether, this implies that

Since both sides are continuous functions of γ\gamma (in fact, the left-hand side does not depend on γ\gamma at all), we may take γ→0\gamma\to{}0 to conclude that

Since this holds for all 1>Δ>ε1>\Delta>\varepsilon, the result is established.

Consider a point zz and a sequence AA such that z∉Az\notin A. We say zz is ζ\zeta-star-dependent on AA with respect to G\mathcal{G} if for all g∈Gg\in\mathcal{G} such that ∑z′∈Ag2(z′)≤ζ2\sum_{z^{\prime}\in A}g^{2}(z^{\prime})\leq{}\zeta^{2}, we have g(z)≤ζg(z)\leq\zeta. We say that zz is ζ\zeta-star-independent of AA w.r.t. G\mathcal{G} if zz is not ζ\zeta-star-dependent on AA.

We first claim that for any i∈[n]i\in[n], if wGS(zi)>ζw_{\mathcal{G}_{S}}(z_{i})>\zeta, then ziz_{i} is ζ\zeta-star-dependent on at most ε2/ζ2\varepsilon^{2}/\zeta^{2} disjoint subsequences of SS (with respect to GS(ε)\mathcal{G}_{S}(\varepsilon)). Indeed, let gg be a function in GS(ε)\mathcal{G}_{S}(\varepsilon) such that g(zi)>ζg(z_{i})>\zeta. If ziz_{i} is ζ\zeta-star-dependent on a particular subsequence (zi1,…,zik)⊂S(z_{i_{1}},\ldots,z_{i_{k}})\subset S but g(zi)>ζg(z_{i})>\zeta, we must have

If there are NN such disjoint sequences, we have

Now we claim that for any sequence (z1,…,zτ)(z_{1},\ldots,z_{\tau}), there is some j∈[τ]j\in[\tau] such that zjz_{j} is ζ\zeta-star-dependent on at least ⌊(τ−1)/d⌋/(d+1)\lfloor(\tau-1)/d\rfloor/(d+1) disjoint subsequences of (z1,…,zτ)(z_{1},\ldots,z_{\tau}) (with respect to GS(ε)\mathcal{G}_{S}(\varepsilon)), where d≡sˇval(GS(ε),ζ)d\equiv\check{\mathfrak{s}}^{\mathsf{val}}(\mathcal{G}_{S}(\varepsilon),\zeta). This is a straightforward corollary of the following lemma, which is purely combinatorial.

Let AA be a finite set with τ\tau elements, and let d<τd<\tau be a positive integer. Consider any function Dependent:2A×A→{\textscTrue,\textscFalse}\mathsf{Dependent}:2^{A}\times{}A\to\left\{\textsc{True},\textsc{False}\right\}, and let us say that xx is dependent on A′⊆AA^{\prime}\subseteq{}A if Dependent(A′,x)=\textscTrue\mathsf{Dependent}(A^{\prime},x)=\textsc{True}. Suppose Dependent\mathsf{Dependent} has the property that for every subset A′⊆AA^{\prime}\subseteq A with ∣A′∣>d|A^{\prime}|>d, there exists x∈A′x\in A^{\prime} such that xx is dependent on A′∖{x}A^{\prime}\setminus\{x\} (i.e., Dependent(A′∖{x},x)=\textscTrue\mathsf{Dependent}(A^{\prime}\setminus\left\{x\right\},x)=\textsc{True}). Then there must exist an element of AA that is dependent on at least ⌊(τ−1)/d⌋/(d+1)\lfloor(\tau-1)/d\rfloor/(d+1) disjoint subsets of AA.

Let (zt1,…,ztτ)(z_{t_{1}},\ldots,z_{t_{\tau}}) consist of all elements of (z1,…,zn)\left(z_{1},\ldots,z_{n}\right) for which wGS(ε)(z)>ζw_{\mathcal{G}_{S}(\varepsilon)}(z)>\zeta. Each element of (zt1,…,ztτ)(z_{t_{1}},\ldots,z_{t_{\tau}}) is ζ\zeta-star-dependent on at most ε2/ζ2\varepsilon^{2}/\zeta^{2} disjoint subsets of (zt1,…,ztτ)(z_{t_{1}},\ldots,z_{t_{\tau}}), and we claim that by Lemma E.3, one element is dependent on at least ⌊(τ−1)/d⌋/(d+1)\lfloor(\tau-1)/d\rfloor/(d+1) disjoint subsets. This implies that ⌊(τ−1)/d⌋/(d+1)≤ε2/ζ2\lfloor(\tau-1)/d\rfloor/(d+1)\leq{}\varepsilon^{2}/\zeta^{2}, so that τ≤(ε2/ζ2)(d2+d)+d+1\tau\leq{}(\varepsilon^{2}/\zeta^{2})(d^{2}+d)+d+1.

Let us carefully verify that we can indeed apply Lemma E.3 here. Take A={1,…,τ}A=\left\{1,\ldots,\tau\right\} to be the index set of (zt1,…,ztτ)\left(z_{t_{1}},\ldots,z_{t_{\tau}}\right), and define Dependent(A′,i)=\textscTrue\mathsf{Dependent}(A^{\prime},i)=\textsc{True} if ztiz_{t_{i}} is ζ\zeta-star-dependent on (zik)k∈A′\left(z_{i_{k}}\right)_{k\in{}A^{\prime}}. With d=sˇval(GS(ε),ζ)d=\check{\mathfrak{s}}^{\mathsf{val}}(\mathcal{G}_{S}(\varepsilon),\zeta), any sequence of more than dd (potentially non-unique) elements of Z\mathcal{Z} cannot witness the value function star number, so for any A′⊆AA^{\prime}\subseteq{}A with ∣A′∣≥d\left\lvert A^{\prime}\right\rvert\geq{}d, there must at least one i∈A′i\in{}A^{\prime} such that for all g∈G(ε)g\in\mathcal{G}(\varepsilon), ∑k∈A′∖{i}g2(ztk)≤ζ2\sum_{k\in{}A^{\prime}\setminus{}\left\{i\right\}}g^{2}(z_{t_{k}})\leq{}\zeta^{2} implies that g(zti)≤ζg(z_{t_{i}})\leq{}\zeta. Such a ztiz_{t_{i}} is ζ\zeta-star-dependent on (ztk)k∈A′∖{i}\left(z_{t_{k}}\right)_{k\in{}A^{\prime}\setminus\left\{i\right\}}, so Dependent\mathsf{Dependent} satisfies the condition of the lemma. Since subsequences of (zt1,…,ztτ)(z_{t_{1}},\ldots,z_{t_{\tau}}) are in one-to-one correspondence with subsets of AA, Lemma E.3 grants the desired result.

We provide two different proofs: One based on the probabilistic method, and one based on a direct counting argument. The first proof leads to slightly worse constants.

Consider A={1,…,τ}A=\left\{1,\ldots,\tau\right\}. Suppose we sample A′⊆AA^{\prime}\subseteq{}A with ∣A′∣=d+1\left\lvert A^{\prime}\right\rvert=d+1 uniformly at random. Then we have

We conclude that there exists some x∈Ax\in{}A and a collection {Xi}\left\{X_{i}\right\} of at least (1−dτ)1d+1⌊τ−1d⌋\left(1-\frac{d}{\tau}\right)\frac{1}{d+1}\left\lfloor\frac{\tau-1}{d}\right\rfloor disjoint subsets of A∖{x}A\setminus\left\{x\right\} such that Dependent(Xi,x)=\textscTrue\mathsf{Dependent}(X_{i},x)=\textsc{True} for all ii.

This is a constructive proof based on a counting argument, which enables us to directly finds an element in AA that is dependent on at least ⌊(τ−1)/d⌋/(d+1)\lfloor(\tau-1)/d\rfloor/(d+1) disjoint subsets of AA.

To simplify notation, let us assign the elements of AA an arbitrary order and represent AA as {1,…,τ}\{1,\dots,\tau\}. For any (d+1)(d+1)-size subset A′A^{\prime} of AA, by the property of Dependent\mathsf{Dependent}, we know that ∃x∈A′\exists x\in A^{\prime} such that xx is dependent on A′\{x}A^{\prime}\backslash\{x\}, and we define

Note that μ(A′)\mu(A^{\prime}) is always well-defined as long as ∣A′∣≥d+1|A^{\prime}|\geq d+1.

Let N>0N>0 and c∈{0,…,d−1}c\in\{0,\dots,d-1\} be integers such that τ−1=Nd+c\tau-1=Nd+c. We define a (1,N×d,c)(1,N\times d,c)-partition of AA as a set-valued sequence

X0,…,XN+1 are disjointX_{0},\dots,X_{N+1}\text{ are disjoint}.

Let \textscPar(A;d)\textsc{Par}(A;d) denote the set of all possible (1,N×d,c)(1,N\times d,c)-partitions of AA. Note that in particular that different permutations of (X1,…,XN)(X_{1},\dots,X_{N}) may yield different (1,N×d,c)(1,N\times d,c)-partitions.

and we use Λ\Lambda to denote the right-hand side of Eq. 87. Consider the single element in X0⋆X^{\star}_{0}, denoted as x⋆x^{\star}. Since X1⋆,…,XN⋆X_{1}^{\star},\dots,X_{N}^{\star} are disjoint and

we know that x⋆x^{\star} is dependent on at least ⌈Λ⌉\lceil\Lambda\rceil disjoint subsets of AA.

In what follows, we calculate the value of Λ\Lambda.

Step 1. We calculate the value of ∣\textscPar(A;d)∣|\textsc{Par}(A;d)| using the following identity:

This holds by a direct counting argument: there are (τ1)=τ{\tau\choose 1}=\tau choices for X0X_{0}, (τ−1−dd){\tau-1-d\choose d} choices for X1X_{1} given each such choice, (τ−1−2dd){\tau-1-2d\choose d} choices for X2X_{2} given the preceding two choices, all the way on to (τ−1−(N−1)dd){\tau-1-(N-1)d\choose d} choices for XNX_{N}; the remaining elements must be assigned to XN+1X_{N+1}.

Here (i)(i) rewrites the sum over partitions to make the choices for X0X_{0} and XnX_{n} explicit, (ii)(ii) rewrites this once more by considering the choice of the XnX_{n} and X0X_{0} as equivalent to the choice of a set A′A^{\prime} with ∣A′∣=d+1\left\lvert A^{\prime}\right\rvert=d+1 and an element x∈A′x\in{}A^{\prime} (so that X0={x}X_{0}=\left\{x\right\} and Xn=A′∖{x}X_{n}=A^{\prime}\setminus\left\{x\right\}), and (iii)(iii) restricts only to elements for which μ(A′)=x\mu(A^{\prime})=x. They key step above is (iv)(iv), which can be seen to hold as follows. For each choice of nn in the outermost sum in line (iv)(iv):

There are (τd+1){\tau\choose d+1} choices for A′A^{\prime} in the middle sum.

For each choice of nn and A′A^{\prime}, the only constraint on X1,…,Xn−1,Xn+1,…,XN+1X_{1},\ldots,X_{n-1},X_{n+1},\ldots,X_{N+1} is that they form a partition of A∖A′A\setminus{}A^{\prime}. There are (τ−(d+1)d){\tau-(d+1)\choose d} choices for X1X_{1}, (τ−(d+1)−dd){\tau-(d+1)-d\choose d} choices for X2X_{2} given each such choice, and eventually (τ−(d+1)−(N−2)dd){\tau-(d+1)-(N-2)d\choose d} choices for XNX_{N} given all the preceding choices; all elements left over from X0,…,XNX_{0},\ldots,X_{N} are assigned to XN+1X_{N+1}.

The final equality above simply substitutes in τ=Nd+c+1\tau=Nd+c+1.

Step 3. Combining Eq. 88 and Eq. 89, we conclude that

This implies that x⋆∈Ax^{\star}\in A is dependent on at least ⌊(τ−1)/d⌋/(d+1)\lfloor(\tau-1)/d\rfloor/(d+1) disjoint subsets of AA. ∎

E.3 Proofs for Eluder Dimension Results

Let F={f⋆,f1,…,fd}\mathcal{F}=\left\{f^{\star},f_{1},\ldots,f_{d}\right\}. We have ef⋆val(F,Δ/2)≥d\mathfrak{e}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta/2)\geq{}d by taking (1,0),…,(d,0)(1,0),\ldots,(d,0) and f1,…,fdf_{1},\ldots,f_{d} as witnesses, since for each ii, ∣fi(i,0)−f⋆(i,0)∣=Δ>Δ/2\left\lvert f_{i}(i,0)-f^{\star}(i,0)\right\rvert=\Delta>\Delta/2 and

We now upper bound the value function star number. Clearly sˇf⋆val(F,Δ′)=0\check{\mathfrak{s}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta^{\prime})=0 for any Δ′≥Δ\Delta^{\prime}\geq{}\Delta, so consider a fixed scale parameter Δ′<Δ\Delta^{\prime}<\Delta. Suppose we have a set of points (i1,0),…,(im,0)(i_{1},0),\ldots,(i_{m},0) and functions fj1,…,fjmf_{j_{1}},\ldots,f_{j_{m}} that witness sˇf⋆val(F,Δ′)\check{\mathfrak{s}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta^{\prime}), with i1<i2<…,imi_{1}<i_{2}<\ldots,i_{m} (we must have as the action for each witness, since all functions agree on the value for action 11). Since ∣fj1(i1,0)−f⋆(i1,0)∣>Δ′\left\lvert f_{j_{1}}(i_{1},0)-f^{\star}(i_{1},0)\right\rvert>\Delta^{\prime}, we must have jm≤imj_{m}\leq{}i_{m}. But on the other hand, we have

since fj1(il,0)=Δf_{j_{1}}(i_{l},0)=\Delta for all l>2l>2. Since we need Δ2(m−1)≤(Δ′)2\Delta^{2}(m-1)\leq{}(\Delta^{\prime})^{2}, we must have m≤2m\leq{}2, so we conclude that sˇf⋆val(F,Δ′)≤2\check{\mathfrak{s}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta^{\prime})\leq{}2 for all Δ′<Δ\Delta^{\prime}<\Delta.

First, we recall the definition of the general function class UCB algorithm. Let zt=(xt,at)z_{t}=(x_{t},a_{t}) and Zt={z1,…,zt}\mathcal{Z}_{t}=\left\{z_{1},\ldots,z_{t}\right\}. Define ∥f∥Z2=∑z∈Zf2(z)\left\|f\right\|^{2}_{\mathcal{Z}}=\sum_{z\in\mathcal{Z}}f^{2}(z). Then the algorithm is defined as follows. At round tt:

Set f^t=⋆⁡arg minf∈F∑i<t(f(xi,ai)−ri(ai))2\widehat{f}_{t}=\operatorname\star{arg\,min}_{f\in\mathcal{F}}\sum_{i<t}\left(f(x_{i},a_{i})-r_{i}(a_{i})\right)^{2}.

Define \mathcal{F}_{t}=\big{\{}f\in\mathcal{F}:\|f-\widehat{f}_{t}\|_{\mathcal{Z}_{t-1}}\leq{}\beta_{t}\big{\}}.

Choose at=⋆⁡arg maxa∈Amax⁡f∈Ftf(xt,a)a_{t}=\operatorname\star{arg\,max}_{a\in\mathcal{A}}\max_{f\in\mathcal{F}_{t}}f(x_{t},a).

In particular, let us define \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111t={f∈F:∥f−f⋆∥Zt−1≤2βt}\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{t}=\left\{f\in\mathcal{F}:\left\|f-f^{\star}\right\|_{\mathcal{Z}_{t-1}}\leq{}2\beta_{t}\right\}. Then by triangle inequality, Ft⊆\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111t\mathcal{F}_{t}\subseteq\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{t}, so if we define wt(z)=sup⁡f∈\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111t[f(z)−f⋆(z)]w_{t}(z)=\sup_{f\in\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{t}}[f(z)-f^{\star}(z)], then

To apply this result, let us order the indices such that wi1(zi1)≥wi2(zi2)≥…≥wiT(ziT)w_{i_{1}}(z_{i_{1}})\geq{}w_{i_{2}}(z_{i_{2}})\geq\ldots\geq{}w_{i_{T}}(z_{i_{T}}). Consider any index tt for which wit(zit)>Δ/2w_{i_{t}}(z_{i_{t}})>\Delta/2. For any particular ζ>Δ/2\zeta>\Delta/2, if we have wit(zit)>ζw_{i_{t}}(z_{i_{t}})>\zeta, then Lemma E.4 (since ζ≤1≤β\zeta\leq{}1\leq\beta) implies that

Since we have restricted to ζ≥Δ/2\zeta\geq\Delta/2, rearranging yields

Now, let T0T_{0} be the greatest index tt such that wit(zit)>Δ/2w_{i_{t}}(z_{i_{t}})>\Delta/2. Then we have

We know that from Eq. 90 that T0≤20β2Δ2eˇf⋆val(F,Δ/2)T_{0}\leq{}\frac{20\beta^{2}}{\Delta^{2}}\check{\mathfrak{e}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\Delta/2), so altogether we have

To conclude, we set δ=1/T\delta=1/T, and the final result follows from the law of total expectation. ∎

Let us adopt the shorthand d=eˇf⋆val(F,ζ)d=\check{\mathfrak{e}}^{\mathsf{val}}_{f^{\star}}(\mathcal{F},\zeta). We begin with a definition. We say zz is ζ\zeta-independent of z1,…,ztz_{1},\ldots,z_{t} if there exists f∈Ff\in\mathcal{F} such that ∣f(z)−f⋆(z)∣>ζ\left\lvert f(z)-f^{\star}(z)\right\rvert>\zeta and ∑i=1t(f(zi)−f⋆(zi))2≤ζ2\sum_{i=1}^{t}\left(f(z_{i})-f^{\star}(z_{i})\right)^{2}\leq\zeta^{2}. We say zz is ζ\zeta-dependent on z1,…,ztz_{1},\ldots,z_{t} if for all f∈Ff\in\mathcal{F} with ∑i=1t(f(zi)−f⋆(zi))2≤ζ2\sum_{i=1}^{t}\left(f(z_{i})-f^{\star}(z_{i})\right)^{2}\leq\zeta^{2}, ∣f(z)−f⋆(z)∣≤ζ\left\lvert f(z)-f^{\star}(z)\right\rvert\leq{}\zeta.

We first claim that for any tt, if wt(zt)>ζw_{t}(z_{t})>\zeta, then ztz_{t} is ζ\zeta-dependent on at most 4β2/ζ24\beta^{2}/\zeta^{2} disjoint subsequences of z1,…,zt−1z_{1},\ldots,z_{t-1}. Indeed, let ff be such that ∣f(zt)−f⋆(zt)∣>ζ\left\lvert f(z_{t})-f^{\star}(z_{t})\right\rvert>\zeta. If ztz_{t} is ζ\zeta-dependent on a particular subsequence zi1,…,zikz_{i_{1}},\ldots,z_{i_{k}} but wt(zt)>ζw_{t}(z_{t})>\zeta, we must have

If there are MM such disjoint sequences, we have

so M≤4β2ζ2M\leq{}\frac{4\beta^{2}}{\zeta^{2}}.

Next we claim that for τ\tau and any sequence (z1,…,zτ)(z_{1},\ldots,z_{\tau}), there is some jj such that zjz_{j} is ζ\zeta dependent on at least ⌊τ/d⌋\lfloor\tau/d\rfloor disjoint subsequences of z1,…,zj−1z_{1},\ldots,z_{j-1}. Let N=⌊τ/d⌋N=\lfloor\tau/d\rfloor, and let B1,…,BNB_{1},\ldots,B_{N} be subsequences of z1,…,zτz_{1},\ldots,z_{\tau}. We initialize with Bi=(zi)B_{i}=(z_{i}). If zN+1z_{N+1} is ζ\zeta-dependent on Bi=(zi)B_{i}=\left(z_{i}\right) for all 1≤i≤N1\leq{}i\leq{}N we are done. Otherwise, choose ii such that zN+1z_{N+1} is ζ\zeta-independent of BiB_{i}, and add it to BiB_{i}. Repeat this process until we reach jj such that either zjz_{j} is ζ\zeta-dependent on all BiB_{i} or j=τj=\tau. In the first case we are done, while in the second case, we have ∑i=1N∣Bi∣≥τ≥dN\sum_{i=1}^{N}\left\lvert B_{i}\right\rvert\geq{}\tau\geq{}dN. Moreover, ∣Bi∣≤d\left\lvert B_{i}\right\rvert\leq{}d, since each zj∈Biz_{j}\in{}B_{i} is ζ\zeta-independent of its prefix. We conclude that ∣Bi∣=d\left\lvert B_{i}\right\rvert=d for all ii, so in this case zτz_{\tau} is ζ\zeta-dependent on all BiB_{i}.

Finally, let (zt1,…,ztτ)(z_{t_{1}},\ldots,z_{t_{\tau}}) be the subsequence z1,…,zTz_{1},\ldots,z_{T} consisting of all elements for which wii(zti)>ζw_{i_{i}}(z_{t_{i}})>\zeta. Each element of the sequence is dependent on at most 4β2/ζ24\beta^{2}/\zeta^{2} disjoint subsequences of (zt1,…,ztτ)(z_{t_{1}},\ldots,z_{t_{\tau}}), and by the argument above, one element is dependent on at least ⌊τ/d⌋\lfloor\tau/d\rfloor disjoint subsequences, so we must have ⌊τ/d⌋≤4β2/ζ2\lfloor\tau/d\rfloor\leq{}4\beta^{2}/\zeta^{2}, and in particular τ≤(4β2/ζ2+1)d\tau\leq{}(4\beta^{2}/\zeta^{2}+1)d. ∎

This proof closely follows that of Theorem 2.7. As with that theorem, we prove a slightly more general result. Let G⊆(Z→[0,1])\mathcal{G}\subseteq(\mathcal{Z}\to\left[0,1\right]) be a function class, and let θPval(G,Δ,ε)\boldsymbol{\theta}_{\mathcal{P}}^{\mathsf{val}}(\mathcal{G},\Delta,\varepsilon) be defined as in Eq. 85. Let eˇval(G,Δ)\check{\mathfrak{e}}^{\mathsf{val}}(\mathcal{G},\Delta) be the length of the longest sequence of points z(1),…,z(m)z^{{\scriptscriptstyle(1)}},\ldots,z^{{\scriptscriptstyle(m)}} such that for all ii, there exists g(i)∈Gg^{{\scriptscriptstyle(i)}}\in\mathcal{G} such that

The value function eluder dimension for G\mathcal{G} is defined as eval(G,Δ0)=sup⁡Δ>Δ0eˇval(G,Δ)\mathfrak{e}^{\mathsf{val}}(\mathcal{G},\Delta_{0})=\sup_{\Delta>\Delta_{0}}\check{\mathfrak{e}}^{\mathsf{val}}(\mathcal{G},\Delta).

For any uniform Glivenko-Cantelli class G⊆(Z→[0,1])\mathcal{G}\subseteq(\mathcal{Z}\to\left[0,1\right])

where ε′2:=n(ε2+γ)\varepsilon^{\prime 2}\vcentcolon={}n(\varepsilon^{2}+\gamma). By Lemma E.4, we can bound

To conclude the result, we take γ→0\gamma\to{}0 (and consequently n→∞n\to\infty), so that the bound above yields

Part II Proofs for Reinforcement Learning Results

We let τ(k,h)\tau^{{\scriptscriptstyle(k,h)}} denote the hhth trajectory gathered by the algorithm during iteration kk (i.e., the trajectory obtained by rolling in to layer hh with π(k)\pi^{{\scriptscriptstyle(k)}}, then switching to uniform exploration. Throughout the proof, we let s1(k,h),…,sH(k,h)s_{1}^{{\scriptscriptstyle(k,h)}},\ldots,s_{H}^{{\scriptscriptstyle(k,h)}} denote the latent states encountered during τ(k,h)\tau^{{\scriptscriptstyle(k,h)}}, which emphasize are not observed.

We define Lh(k)={sh(1,h),…,sh(k−1,h)}\mathcal{L}_{h}^{{\scriptscriptstyle(k)}}=\left\{s_{h}^{{\scriptscriptstyle(1,h)}},\ldots,s_{h}^{{\scriptscriptstyle(k-1,h)}}\right\}. For any collection L⊆S\mathcal{L}\subseteq\mathcal{S}, we define

We also let H(k)={(s1(k,h),x1(k,h),a1(k,h),r1(k,h)),…,(sH(k,h),xH(k,h),aH(k,h),rH(k,h))}h=1H\mathcal{H}^{{\scriptscriptstyle(k)}}=\left\{(s_{1}^{{\scriptscriptstyle(k,h)}},x_{1}^{{\scriptscriptstyle(k,h)}},a_{1}^{{\scriptscriptstyle(k,h)}},r_{1}^{{\scriptscriptstyle(k,h)}}),\ldots,(s_{H}^{{\scriptscriptstyle(k,h)}},x_{H}^{{\scriptscriptstyle(k,h)}},a_{H}^{{\scriptscriptstyle(k,h)}},r_{H}^{{\scriptscriptstyle(k,h)}})\right\}_{h=1}^{H} denote the entire history for iteration kk.

Let us define an intermediate quantity which is closely related to the value function disagreement coefficient, which we will work with throughout the proof. For each s∈Shs\in\mathcal{S}_{h}, define

We define θˇh(Fhε)=∑s∈Shθˇs(Δ,ε)\check{\boldsymbol{\theta}}_{h}(\mathcal{F}_{h}\varepsilon)=\sum_{s\in\mathcal{S}_{h}}\check{\boldsymbol{\theta}}_{s}(\Delta,\varepsilon) analogously. Lastly, we abbreviate θˇs(ε)≡θˇs(Fh,ε)\check{\boldsymbol{\theta}}_{s}(\varepsilon)\equiv\check{\boldsymbol{\theta}}_{s}(\mathcal{F}_{h},\varepsilon) and θˇh(ε)≡θˇh(Fh,ε)\check{\boldsymbol{\theta}}_{h}(\varepsilon)\equiv\check{\boldsymbol{\theta}}_{h}(\mathcal{F}_{h},\varepsilon). We will pass from this quantity to θval\boldsymbol{\theta}^{\mathsf{val}} at the end of the proof.

be the set used to compute the upper confidence function \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h(k)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h}^{{\scriptscriptstyle(k)}} in iteration kk. Let the Bayes predictor for this round be defined as

Recall that the optimistic completeness assumption implies that fˉh(k)∈Fh\bar{f}_{h}^{{\scriptscriptstyle(k)}}\in\mathcal{F}_{h}.

For any δ∈(0,1)\delta\in(0,1), if we choose β1,…,βH\beta_{1},\ldots,\beta_{H} in Algorithm 2 such that

then with probability at least 1−3δ1-3\delta, fˉh(k)∈F^h(k)\bar{f}_{h}^{{\scriptscriptstyle(k)}}\in\widehat{\mathcal{F}}_{h}^{{\scriptscriptstyle(k)}} for all kk, hh.

Let kk be fixed. We prove the result by induction on hh. First, the property holds trivially for round H+1H+1, since \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111H+1(K)=VH+1⋆=0\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{H+1}^{{\scriptscriptstyle(K)}}=\mathbf{V}^{\star}_{H+1}=0.

Now, consider a fixed timestep hh, and suppose inductively that the property holds for round h+1h+1. Then we have

where we have used that \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)(x)≥Vh+1⋆(x)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}}(x)\geq{}\mathbf{V}^{\star}_{h+1}(x) whenever \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1(k)(x,a)≥Qh+1⋆(x,a)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}^{{\scriptscriptstyle(k)}}(x,a)\geq{}\mathbf{Q}^{\star}_{h+1}(x,a) for all x,ax,a. ∎

F.2 Bounding Regret

We now use the concentration guarantees established above to bound the regret of the policies π(1),…,π(K)\pi^{{\scriptscriptstyle(1)}},\ldots,\pi^{{\scriptscriptstyle(K)}}. That is, we wish to bound

Note that since our algorithm executes policies besides these ones, this is not a bound on the true regret of the algorithm, but rather for an intermediate quantity which is only used for the analysis.

We first state a regret decomposition for QQ-functions and induced policies that are optimistic in the following sense.

A QQ-function \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{} and policy π\pi are said to be optimistic if for all h∈[H]h\in\left[H\right],

We define \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h(x)=max⁡a\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h(x,a)\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h}(x)=\max_{a}\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h}(x,a) as the induced value function.

Let (\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111,π)(\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{},\pi) be optimistic, and let \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h(x,a)=\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h(x,a)−(f⋆(x,a)+[Ph⋆\macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111h+1](x,a))\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h}(x,a)=\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h}(x,a)-\left(f^{\star}(x,a)+[P^{\star}_{h}\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{h+1}](x,a)\right) be the optimistic surplus. Then

where Δˇ(x,a):=Δ(x,a)/4H\check{\Delta}(x,a)\vcentcolon={}\Delta(x,a)/4H.

Since clip[x∣ε]≤x2ε\texttt{clip}\left[x\mid\varepsilon\right]\leq{}\frac{x^{2}}{\varepsilon}, we can further upper bound as

F.3 Bounding the Surplus

We now focus on bounding the surplus terms

Let kk, hh, and s∈Shs\in\mathcal{S}_{h} be fixed. Then we have

We appeal to the following uniform concentration guarantee.

With probability at least 1−δ1-\delta, for all k,hk,h, we have

In particular, if we define qh(k)(s)=∑j<kph(j)(s)q^{{\scriptscriptstyle(k)}}_{h}(s)=\sum_{j<k}p_{h}^{{\scriptscriptstyle(j)}}(s), we are guaranteed that for all f∈F^h(k)f\in\widehat{\mathcal{F}}_{h}^{{\scriptscriptstyle(k)}},

Since fˉh(k)∈F^h(k)\bar{f}_{h}^{{\scriptscriptstyle(k)}}\in\widehat{\mathcal{F}}_{h}^{{\scriptscriptstyle(k)}}, this immediately allows us to bound Eq. 96 by 6βh2qh(k)(s)\frac{6\beta_{h}^{2}}{q_{h}^{{\scriptscriptstyle(k)}}(s)}. To handle Eq. 95 we use the definition of the disagreement coefficient, which gives us that

where we have used that θˇs(⋅)\check{\boldsymbol{\theta}}_{s}(\cdot) is non-increasing and qh(k)≤Kq_{h}^{{\scriptscriptstyle(k)}}\leq{}K. Since θ≥1\theta\geq{}1, we conclude that for all ss,

F.4 Final Regret Bound

Now, consider a fixed state s∈Shs\in\mathcal{S}_{h} and let ks=min⁡{k:qh(k)(s)≥1}k_{s}=\min\{k:q_{h}^{{\scriptscriptstyle(k)}}(s)\geq{}1\}. Then we have qh(k)(s)≤2q_{h}^{{\scriptscriptstyle(k)}}(s)\leq{}2, so we can bound

We apply Eq. 97 to each term in the sum to bound by

Observe that ∑k=ksKph(k)(s)qh(k)(s)=∑k=ksKqh(k+1)(s)−qh(k)(s)qh(k)(s)\sum_{k=k_{s}}^{K}\frac{p_{h}^{{\scriptscriptstyle(k)}}(s)}{q_{h}^{{\scriptscriptstyle(k)}}(s)}=\sum_{k=k_{s}}^{K}\frac{q_{h}^{{\scriptscriptstyle(k+1)}}(s)-q_{h}^{{\scriptscriptstyle(k)}}(s)}{q_{h}^{{\scriptscriptstyle(k)}}(s)} and qh(ks)(s)≥1q_{h}^{{\scriptscriptstyle(k_{s})}}(s)\geq{}1. We appeal to the following lemma.

For any sequence 1≤x1,≤,…,≤xN+11\leq{}x_{1},\leq{},\ldots,\leq{}x_{N+1} with ∣xi−xi+1∣≤1\left\lvert x_{i}-x_{i+1}\right\rvert\leq{}1, ∑i=1Nxi+1−xixi≤2log⁡(xN+1/x1)\sum_{i=1}^{N}\frac{x_{i+1}-x_{i}}{x_{i}}\leq{}2\log(x_{N+1}/x_{1}).

Lemma F.4 grants that ∑k=ksKph(k)(s)qh(k)(s)≤2log⁡(K)\sum_{k=k_{s}}^{K}\frac{p_{h}^{{\scriptscriptstyle(k)}}(s)}{q_{h}^{{\scriptscriptstyle(k)}}(s)}\leq{}2\log(K). Altogether, since βh≥H2\beta_{h}\geq{}H^{2} and θ≥1\theta\geq{}1, we have

To simplify further, we use that for all hh,

where we have used that the regret in each episode is bounded by HH. Finally, we observe that by dividing both sides above by KK, this is equivalent to

We now move to the disagreement coefficient defined in Eq. 40.

Lemma F.5 implies that we have θˇs(Fh,ε)≤θsval(Fh,ε)(16log⁡(H/ε)+8)\check{\boldsymbol{\theta}}_{s}(\mathcal{F}_{h},\varepsilon)\leq{}\boldsymbol{\theta}^{\mathsf{val}}_{s}(\mathcal{F}_{h},\varepsilon)(16\log(H/\varepsilon)+8). We conclude the proof by noting that the value of βh\beta_{h} in Algorithm 2 is simply the recursion in Theorem F.1 with this upper bound substituted in, using the upper bound 16log⁡(HK1/2/βh)+8≤16log⁡(HK1/2e)+8≤24log⁡(HKe)16\log(HK^{1/2}/\beta_{h})+8\leq{}16\log(HK^{1/2}e)+8\leq{}24\log(HKe) recursively to simplify.

F.5 Deferred Proofs

Let kk and hh be fixed. Let H(j)\mathcal{H}^{{\scriptscriptstyle(j)}} denote the entire history for episode jj. Define a filtration

with the convention G0=∅\mathfrak{G}_{0}=\emptyset. This filtration guarantees that (xj(j,h),aj(j,h))(x_{j}^{{\scriptscriptstyle(j,h)}},a_{j}^{{\scriptscriptstyle(j,h)}}) is Gj\mathfrak{G}_{j}-measurable and Gj−1⊆Gj\mathfrak{G}_{j-1}\subseteq\mathfrak{G}_{j}.

Let f,f′∈Fhf,f^{\prime}\in\mathcal{F}_{h} be fixed, and let Xj=(f(xj(j,h),aj(j,h))−f′(xj(j,h),aj(j,h)))2X_{j}=(f(x_{j}^{{\scriptscriptstyle(j,h)}},a_{j}^{{\scriptscriptstyle(j,h)}})-f^{\prime}(x_{j}^{{\scriptscriptstyle(j,h)}},a_{j}^{{\scriptscriptstyle(j,h)}}))^{2}. Observe that ∣Zj∣≤H2\left\lvert Z_{j}\right\rvert\leq{}H^{2}. Applying Lemma B.2 to the process (Xj)\left(X_{j}\right), we are guaranteed that 1−δ1-\delta,

By taking a union bound, we are guaranteed that

since t≤1t\leq{}1. This gives the the result for k,hk,h fixed. We union bound over all (k,h)(k,h) pairs to get the final result. ∎

where we have used the fact that log⁡(1+y)≥yy+1\log(1+y)\geq{}\frac{y}{y+1} for y≥0y\geq{}0, and that xixi+1≥xixi+1≥12\frac{x_{i}}{x_{i+1}}\geq{}\frac{x_{i}}{x_{i}+1}\geq{}\frac{1}{2}. It follows that

Let N=⌈log⁡(R/ε)⌉N=\left\lceil\log(R/\varepsilon)\right\rceil, and let a0=1a_{0}=1 and ai=e−ia_{i}=e^{-i} for i∈[N]i\in\left[N\right]. Then we can bound

since any t∉[aN,1]t\notin\left[a_{N},1\right] has ∣t∣≤ε/R\left\lvert t\right\rvert\leq{}\varepsilon/R. We further upper bound

Appendix G Proof of Theorem F.1

Recall that at round kk, for each layer hh, we solve

where for each round jj, xh(j,h),ah(j,h),xh+1(j,h)x_{h}^{{\scriptscriptstyle(j,h)}},a_{h}^{{\scriptscriptstyle(j,h)}},x_{h+1}^{{\scriptscriptstyle(j,h)}} are obtained by rolling in until time hh with π(j)\pi^{{\scriptscriptstyle(j)}}, then sampling aha_{h} uniformly at random.

This proof is inductive. Let 1≤h≤H−11\leq{}h\leq{}H-1 be fixed. Suppose we can guarantee that for layer h+1h+1, with probability at least 1−δh+11-\delta_{h+1}, we have

G.2 Initial Bound on Least Squares Error

Then using strong convexity of the square loss (following the usual basic inequality argument for least squares), we have

Abbreviating zh(j,h)=(xh(j,h),ah(j,h))z_{h}^{{\scriptscriptstyle(j,h)}}=(x_{h}^{{\scriptscriptstyle(j,h)}},a_{h}^{{\scriptscriptstyle(j,h)}}), we can use this to rewrite the previous expression as

Since f^h(k),fˉh(k)∈Fh\widehat{f}_{h}^{{\scriptscriptstyle(k)}},\bar{f}_{h}^{{\scriptscriptstyle(k)}}\in\mathcal{F}_{h}, if we define Gh=Fh−Fh\mathcal{G}_{h}=\mathcal{F}_{h}-\mathcal{F}_{h}, we can further upper bound as

where ζh(j,h):=f⋆(zh(j,h))−rh(j,h)\zeta_{h}^{{\scriptscriptstyle(j,h)}}\vcentcolon={}f^{\star}(z_{h}^{{\scriptscriptstyle(j,h)}})-r_{h}^{{\scriptscriptstyle(j,h)}}.

and V~h+1(k)(x)=max⁡aQ~h+1(k)(x,a)\widetilde{\mathbf{V}}_{h+1}^{{\scriptscriptstyle(k)}}(x)=\max_{a}\widetilde{\mathbf{Q}}_{h+1}^{{\scriptscriptstyle(k)}}(x,a). Then we can write

In particular, returning to Eq. 100, we have

and likewise [Ph⋆ξh+1(k)](zh(j,h))⋅g(zh(j,h))≤32([Ph⋆ξh+1(k)](zh(j,h)))2+13g2(zh(j,h)),\left[P^{\star}_{h}\xi_{h+1}^{{\scriptscriptstyle(k)}}\right](z_{h}^{{\scriptscriptstyle(j,h)}})\cdot{}g(z_{h}^{{\scriptscriptstyle(j,h)}})\leq{}\frac{3}{2}\left(\left[P^{\star}_{h}\xi_{h+1}^{{\scriptscriptstyle(k)}}\right](z_{h}^{{\scriptscriptstyle(j,h)}})\right)^{2}+\frac{1}{3}g^{2}(z_{h}^{{\scriptscriptstyle(j,h)}}), so we can further upper bound the process above by

where OPh\textsf{OP}_{h} is an offset process and ETh\textsf{ET}_{h} is an error term.

G.3 Bounding the Offset Process

we have V~h+1(k)∈Vh+1(k)\widetilde{\mathbf{V}}_{h+1}^{{\scriptscriptstyle(k)}}\in\mathcal{V}_{h+1}^{{\scriptscriptstyle(k)}}. Note that Vh+1(k)\mathcal{V}_{h+1}^{{\scriptscriptstyle(k)}} is not a random variable, which is critical for the analysis. We can bound the size of Vh+1(k)\mathcal{V}_{h+1}^{{\scriptscriptstyle(k)}} as follows. First, observe that each function in Vh+1(k)\mathcal{V}_{h+1}^{{\scriptscriptstyle(k)}} is uniquely defined by the choice of the center f′f^{\prime} and the set L⊆Sh+1k−1\mathcal{L}\subseteq\mathcal{S}_{h+1}^{k-1}. Moreover, for any two sets L\mathcal{L}, L′\mathcal{L}^{\prime} that are equivalent up to permutation, we have ∥f∥L=∥f∥L′\left\|f\right\|_{\mathcal{L}}=\left\|f\right\|_{\mathcal{L}^{\prime}} for all ff, meaning that the norm in the constraint is determined only by the multiset of states in L\mathcal{L}. By the usual stars-and-bars counting argument, there are only ((kS−1))=(k+S−2S−1)≤(e(K+S−2)S−1)S≤(2eK)S\left(\kern-3.00003pt\left(\genfrac{}{}{0.0pt}{}{k}{S-1}\right)\kern-3.00003pt\right)={k+S-2\choose S-1}\leq{}\left(\frac{e(K+S-2)}{S-1}\right)^{S}\leq\left(2eK\right)^{S} possible such choices (assuming S>1S>1, if not there is clearly at most 11 such choice). Hence, altogether, we have

Let kk and hh be fixed. For any function classes G⊆((Xh×A)→[−H,+H])\mathcal{G}\subseteq((\mathcal{X}_{h}\times\mathcal{A})\to\left[-H,+H\right]) and V⊆(Xh+1→[0,H])\mathcal{V}\subseteq(\mathcal{X}_{h+1}\to\left[0,H\right]) and any constant c∈(0,1]c\in(0,1], with probability at least 1−δ1-\delta,

Using Lemma G.1 along with the bound from Eq. 101, we have that with probability at least 1−δ1-\delta,

G.4 Bounding the Approximation Error

To relate the two terms in the absolute value, we appeal to a uniform concentration lemma.

where cε,δ;h≤2H2log⁡(2∣Fh∣δ−1)εc_{\varepsilon,\delta;h}\leq{}\frac{2H^{2}\log(2\left\lvert\mathcal{F}_{h}\right\rvert\delta^{-1})}{\varepsilon}.

Fix ε\varepsilon, δ\delta to be chosen later. Lemma G.2 implies that with probability at least 1−δ1-\delta,

where we assume for now that ε\varepsilon is chosen such that (1−ε)βh+12−cε,δ;h+1>0(1-\varepsilon)\beta_{h+1}^{2}-c_{\varepsilon,\delta;h+1}>0.

Let xx and aa be fixed, and consider a function f⋆f^{\star} that achieves the value

If the maximum is not achieved, we can simply consider a sequence of functions approaching the supremum, but we omit the details.

where we have used that (1−ε)βh+12−cε,δ;h+1≥0(1-\varepsilon)\beta_{h+1}^{2}-c_{\varepsilon,\delta;h+1}\geq{}0. This means that

As in the analysis for OPh\textsf{OP}_{h}, we argue that this function belongs to a relatively small class. In particular, we have

Through the same counting argument as in the analysis of OPh\textsf{OP}_{h}, we have ∣Wh+1(k)∣≤(2eK)S∣Fh+1∣\left\lvert\mathcal{W}_{h+1}^{{\scriptscriptstyle(k)}}\right\rvert\leq{}(2eK)^{S}\left\lvert\mathcal{F}_{h+1}\right\rvert. We use this to relate

to a conditional-expected variant of the same quantity via a uniform concentration bound.

With probability at least 1−δ1-\delta, for all w∈Wh+1(k)w\in\mathcal{W}_{h+1}^{{\scriptscriptstyle(k)}}, we have

Conditioned on the event in Lemma G.3, we have

by definition. Letting nh(k)(s)=∣{j<k:s(j,h)=s}∣n_{h}^{{\scriptscriptstyle(k)}}(s)=\left\lvert\left\{j<k:s^{{\scriptscriptstyle(j,h)}}=s\right\}\right\rvert for each s∈Shs\in\mathcal{S}_{h}, this implies

Recall that for each latent state s∈Shs\in\mathcal{S}_{h} and f⋆∈Fhf^{\star}\in\mathcal{F}_{h}, we define the disagreement coefficient as

It follows from the discussion above that we have

where we have used that θˇ\check{\boldsymbol{\theta}} is decreasing in ε\varepsilon. Recalling the definition θˇh+1(ε)=∑s∈Sh+1θˇs(ε)\check{\boldsymbol{\theta}}_{h+1}(\varepsilon)=\sum_{s\in\mathcal{S}_{h+1}}\check{\boldsymbol{\theta}}_{s}(\varepsilon), we are guaranteed that

G.5 Putting Everything Together

Combining the bounds on OPh\textsf{OP}_{h} and ETh\textsf{ET}_{h} and taking a union bound, we are guaranteed that with probability at least 1−3δ−δh+11-3\delta-\delta_{h+1},

where we define β^h+1=βh+1K−1/2\hat{\beta}_{h+1}=\beta_{h+1}K^{-1/2}. This bound holds for any ε∈(0,1)\varepsilon\in(0,1) chosen a-priori, so long as (1−ε)βh+12−cε,δ;h+1>0(1-\varepsilon)\beta_{h+1}^{2}-c_{\varepsilon,\delta;h+1}>0. We now make an appropriate choice. Recall that

Assume for now that this constraint holds. Then we can bound

Furthermore, using the AM-GM inequality, we have

Using this, we can (rather coarsely) simplify the error bound to

The critical detail here is that the constant in front of βh+12\beta_{h+1}^{2} is no larger than 11, so there is no exponential blowup as we propagate this constraint backward.

Overall, we get that any sequences (δh)(\delta_{h}), (βh)(\beta_{h}) are admissible as long for all 1≤h≤H−11\leq{}h\leq{}H-1,

for any δ∈(0,1)\delta\in(0,1) chosen a-priori.

For the base case, we observe that since \macc@depth\frozen@everymath\macc@group\macc@set@skewchar\macc@nested@a111H+1(k)(x)=VH+1⋆(x)=0\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{}_{H+1}^{{\scriptscriptstyle(k)}}(x)=\mathbf{V}^{\star}_{H+1}(x)=0 for all kk, we have that for layer HH,

We conclude that the following sequence is admissible:

In particular, this guarantees that with probability at least 1−δ1≥1−3Hδ1-\delta_{1}\geq{}1-3H\delta, we have

for all hh within round kk. By union bound, the same holds for all kk with probability at least 1−3HKδ1-3HK\delta.

G.6 Deferred Proofs

Let g∈Gg\in\mathcal{G}, V∈VV\in\mathcal{V} be fixed, and let Zj=([Ph⋆V](xh(j,h),ah(j,h))−V(xh+1(j,h))+ζh(j,h))⋅g(zh(j,h))Z_{j}=\left(\left[P^{\star}_{h}V\right](x_{h}^{{\scriptscriptstyle(j,h)}},a_{h}^{{\scriptscriptstyle(j,h)}})-V(x_{h+1}^{{\scriptscriptstyle(j,h)}})+\zeta_{h}^{{\scriptscriptstyle(j,h)}}\right)\cdot{}g(z_{h}^{{\scriptscriptstyle(j,h)}}). Observe that ZjZ_{j} is Gj\mathfrak{G}_{j}-measurable and is a martingale difference sequence, since

Since ∣Zj∣≤H(H+1)\left\lvert Z_{j}\right\rvert\leq{}H(H+1), we have by Lemma B.1 that for any η≤1/H(H+1)\eta\leq{}1/H(H+1), with probability at least 1−δ1-\delta,

Hence, by choosing η=c(H+1)2\eta=\frac{c}{(H+1)^{2}}, we are guaranteed that with probability at least 1−δ1-\delta,

The result now follows by taking a union bound over all g∈Gg\in\mathcal{G} and V∈VV\in\mathcal{V}.

Let kk and hh be fixed. Let H(j)\mathcal{H}^{{\scriptscriptstyle(j)}} denote the entire history for episode jj. Define a filtration

with the convention G0=σ((s1(j,h),x1(j,h),a1(j,h)),…,(sh−1(j,h),xh−1(j,h),ah−1(j,h)),sh(j,h))\mathfrak{G}_{0}=\sigma((s_{1}^{{\scriptscriptstyle(j,h)}},x^{{\scriptscriptstyle(j,h)}}_{1},a_{1}^{{\scriptscriptstyle(j,h)}}),\ldots,(s_{h-1}^{{\scriptscriptstyle(j,h)}},x^{{\scriptscriptstyle(j,h)}}_{h-1},a_{h-1}^{{\scriptscriptstyle(j,h)}}),s_{h}^{{\scriptscriptstyle(j,h)}}). This filtration guarantees that (xj(j,h),aj(j,h))(x_{j}^{{\scriptscriptstyle(j,h)}},a_{j}^{{\scriptscriptstyle(j,h)}}) is Gj\mathfrak{G}_{j}-measurable and Gj−1⊆Gj\mathfrak{G}_{j-1}\subseteq\mathfrak{G}_{j}.

By taking a union bound over all f,f′∈Fhf,f^{\prime}\in\mathcal{F}_{h}, and by choosing λ=ε/H2\lambda=\varepsilon/H^{2}, we are guaranteed that

Let w∈Wh+1(k)w\in\mathcal{W}_{h+1}^{{\scriptscriptstyle(k)}} be fixed, and recall that ∣w∣≤H2\left\lvert w\right\rvert\leq{}H^{2}. Define Zj=w(xh+1(j,h))Z_{j}=w(x_{h+1}^{{\scriptscriptstyle(j,h)}}) and

with the convention G0=σ((s1(j,h),x1(j,h),a1(j,h)),…,(sh(j,h),xh(j,h),ah(j,h)),sh+1(j,h))\mathfrak{G}_{0}=\sigma((s_{1}^{{\scriptscriptstyle(j,h)}},x^{{\scriptscriptstyle(j,h)}}_{1},a_{1}^{{\scriptscriptstyle(j,h)}}),\ldots,(s_{h}^{{\scriptscriptstyle(j,h)}},x^{{\scriptscriptstyle(j,h)}}_{h},a_{h}^{{\scriptscriptstyle(j,h)}}),s_{h+1}^{{\scriptscriptstyle(j,h)}}), where H(j)\mathcal{H}^{{\scriptscriptstyle(j)}} denotes the entire history for episode jj. Lemma B.2 implies that with probability at least 1−δ1-\delta,

This proves the first statement for this choice of ww. To prove the second statement, we define a new filtration

Lemma B.2 implies that with probability at least 1−δ1-\delta,

The final result now follows from a union bound over all (2eK)S∣Fh+1∣(2eK)^{S}\left\lvert\mathcal{F}_{h+1}\right\rvert possible functions in Wh+1(k)\mathcal{W}_{h+1}^{{}^{{\scriptscriptstyle(k)}}}. ∎