Upper Counterfactual Confidence Bounds: a New Optimism Principle for Contextual Bandits
Yunbei Xu, Assaf Zeevi
Introduction
Algorithms that rely on the “optimism principle” have been a major cornerstone in the study of multi-armed bandit (MAB) and reinforcement learning problems. Roughly speaking, optimistic algorithms are those that choose a deterministic action at each round, based on some optimistic estimate of future rewards. Perhaps the most representative example is the celebrated Upper Confidence Bounds (UCB) algorithm and its many variants. Popularity of optimistic algorithms stems from their simplicity and effectiveness: the analysis of UCB-type algorithms are usually more straightforward than alternative approaches, so they have become the “meta-algorithms” for more complex settings. They are also often preferable to weighted allocations among actions because of the ability to discard sub-optimal actions and achieve superior instance-dependent empirical performances.
Despite their prevalent use in traditional bandit problems, existing UCB-type algorithms have a glaring drawback in contextual MAB settings: their regret often scales with the cardinality of the context space. (Notable exceptions are the special “linear payoff” formulation and its generalized-linear variant .) In particular, despite encouraging empirical observations , optimism-based algorithms provably achieve sub-linear regret only under restrictive distributional assumptions . This motivates the main problem studied in the paper:
Is there a generic principle that ensures that optimistic algorithms are optimal and efficient for general contextual bandit problems?
Interestingly, whether computationally efficient or not, almost all existing solutions to general contextual bandits rely on weighted, randomized allocations among actions at each round—we refer to these as “randomized algorithms” in the paper. Moreover, there is little focus on contextual MAB with infinite actions, which we believe to be a natural setting to illustrate simplicity and universality of optimism-based algorithms. These observations motivate us to search for a new optimism principle in the presence of large context spaces.e is little focus on contextual MAB with infinite actions, which we believe to be a natural setting to illustrate simplicity and universality of optimism-based algorithms. These observations motivate us to search for a new optimism principle in the presence of large context spaces.
2 The contextual MAB problem
The canonical stochastic contextual bandit problem can be described as follows. Let be the action set (in the initial parts of the paper, one can think of as the integer set , which we generalize later on), and be the space of contexts that supports the distribution (e.g., can be a subset of Euclidean space). For all , denote a reward distribution determined by context and action . At each round , the agent first observes a context drawn i.i.d. according to . She then chooses an action based on and the history generated by , and finally observes the reward , which is conditionally independent and distributed according to the distribution . We assume the rewards take values in the interval $\{H_{t-1},x_{t}\}a_{t}t$.
Previous literature on contextual MAB problems can be sorted into two categories: the realizable setting and the agnostic setting. In the realizable setting, the agent has access to a function class , with its members being mappings from to $$. The following is referred to as the realizability condition :
We call a mapping from the context space to the action set a “policy.” (Those mappings may be referred to more precisely as “deterministic stationary policies;” in this paper we often just refer to them as “policies” with slight abuse of terminology.) Let , defined by , be the “ground truth” optimal policy. The cumulative (pathwise) regret of a contextual bandit algorithm Alg compared with the optimal policy after rounds is
and the agent aims to minimize this cumulative regret. The agnostic setting , on the other hand, does not make such realizability assumption; instead, algorithms are compared with the best policy within a given policy class. In this paper we focus on the realizable setting which lends itself more naturally to the design of optimism-based algorithms.
We present some examples of the realizable setting. The most well-studied contextual MAB problems are simple variants of the “linear payoff” model
One motivation towards general function classes is to encompass models of the form
On the computation side, we make the rather benign assumption the the agent has access to a pre-specified least square oracle over . Formally, after the agent inputs the historical data , the least square oracle outputs a solution that provides the best fit, namely,
This is the simplest optimization oracle assumed in the contextual bandit literature. We assume the least square oracle to be deterministic, for simplicity, as there may be multiple solutions to (1.3).
3 Introducing UCCB: two equivalent viewpoints
This subsection will describe the UCCB principle introduced in this paper from two equivalent viewpoints: 1) implicitly, it is an upper confidence bound rule in policy space; and 2) explicitly, it calculates the upper confidence bound via simulating counterfactual action trajectories rather than using the original action trajectory. For illustration purpose we focus on the finite-action setting where ; extension to infinite action spaces will be discussed later in Section 4.
Let be the policy space that contains all deterministic stationary policies . The core idea of UCCB is to choose policies that maximize certain upper confidence bounds in the policy space . After initialization, for each round , data is sent to an offline least square oracle to compute the estimator . Without the need to “see” , the agent selects the optimistic policy (which is a mapping from to the action set ) such that
The distribution is unknown so there are both statistical and computational challenges in the optimization over policies. However, since our proposed policy optimization problem (1.4) is decomposable across contexts, there is an equivalent strategy where no explicit policy optimization is required: at round , after observing , the agent selects the optimistic action
(ties broken by choosing the action with the smallest index), where is the counterfactual action trajectory for context , defined as realizations of all past chosen policies on the context . To recover the counterfactual actions, at round , the agent runs an inner loop to sequentially generate : for ,
(ties are broken by choosing the action with the smallest index). Our approach is clearly quite distinct from previous variants of UCB, as we construct confidence bounds by using simulated counterfactual actions rather than using the actual selected actions.
The UCCB principle leads to provably efficient optimism-based algorithms for general function classes: their regret bounds do not scale with the cardinality of the context spaces, and the required offline least square oracle is feasible for most natural function classes.
4 Related literature
We review previous works in the following three areas.
In this paper, we focus on the realizable contextual bandits setting. Here, the minimax regret of stochastic contextual bandits is for a general finite function class . In the non-efficient algorithm Regressor Elimination was proposed to achieve optimal regret. proposed the use of an online regression oracle and gave an optimal and oracle-efficient algorithm called SquareCB, however the online regression oracle is only computationally efficient for specific function classes.
The open problem of optimal realizable contextual MAB with an offline least square oracle was first solved by , with a randomized algorithm called FALCON. One very inspiring aspect of FALCON is that weighted allocation in policy space can be implicitly achieved by weighted allocation over actions under the realizability assumption—this implication was referred to as “bypassing the monster” in . This motivates the investigation in the present paper that considers implicit optimization over policies when designing optimistic algorithms. Unlike the FALCON algorithm, our approach is predicated on computing counterfactual action trajectories.
Variants of LinUCB are well-known to be regret-optimal and efficient for simple variants of (1.1). However, for general function classes, existing variants of UCB typically have their regret scaling with , except under strong assumptions on the data distribution . UCB has also been used as a subroutines in contextual bandits when the functions in admit smoothness or Lipchitz continuity over . These works are usually based on discretization of .
There is far less discussion of the infinite-action contextual bandit problem with general function classes. studies how to reduce realizable contextual MAB with infinite actions to an online learning oracle called knows-what-it-knows (KWIK), but this oracle is only known to exist for restricted function classes. studies how to combine general function classes with a linear action model (our illustrative example (4.1) in Section 4). However, their results crucially rely on the restrictive assumption that the action set is the unit ball, and they assume access to the online regression oracle which is not computationally efficient in general. Lastly, studies infinite-action contextual bandits in a quite general agnostic setting. Their formulation and results are quite different from ours, and they do not provide a computationally efficient algorithm.
5 Organization
In Section 2 we introduce an optimal and efficient optimistic algorithm in the finite-action setting, and explain the key ideas underlying its principles. For illustrative purpose we assume the function class to be finite in Section 2, and present extensions to infinite function classes in Section 3. In Section 4 we introduce a unified framework for contextual bandits with infinite action spaces, and present several interesting examples for which our work gives rise to the first efficient solutions. In Section 5 we propose an optimistic subroutine to generalize randomized algorithms to the infinite-action setting.
Upper counterfactual confidence bounds
Under Assumption 1 and fixing , set the parameter in Algorithm 1 to be
Then with probability at least , for all , the regret of Algorithm 1 after rounds is upper bounded by
Remark: Recall that our offline regression step can be solved by first-order algorithms and does not require any computation related to the confidence interval (i.e., maintaining a subset of or inverting the Hessian). Therefore, despite having much broader applicability, Algorithm 1 is also simpler than many variants of UCB from a computational perspective. The only comparable algorithm to Algorithm 1 is a randomized algorithm—FALCON in , which requires maximizations over actions and calls to the offline least square oracle. However, we believe our optimistic solution should be preferable in many practical settings as we do not require randomization and our regret bound exhibits much smaller constants.
2 Key ideas underlying UCCB
We now explain three key ideas underlying UCCB.
Previous literature typically refers to the optimism principle as choosing the optimistic action that has the largest estimate on the current context —optimism is analyzed in the action space. In contrast, we view policies as decisions and build confidence bounds in policy space. The key step in our approach is to characterize the confidence bounds of the function estimate , which is the output of the least square oracle given the history .
For an admissible non-randomized contextual bandit algorithm, at each round there exists a deterministic stationary policy such that the chosen action is equal to for any realization of . Equivalently, the algorithm selects based on and chooses the action at round . Through this viewpoint, the following lemma is applicable to all admissible non-randomized contextual bandit algorithms:
Consider an admissible non-randomized contextual bandit algorithm that selects based on (and chooses the action ) at each round . Then , with probability at least , for all and all , the estimation error on the expected reward of is bounded by
The proof of Lemma 1 may be interesting in its own right; a proof ketch will be presented in Section 2.3, and full details are deferred to Appendix A.2.
Let be the policy that chooses action regardless of for , and from round up to , its actions are given by any deterministic stationary policy. Then for all ,
The above lemma applies to all admissible non-randomized contextual bandit algorithms that choose each action once at the first rounds, regardless of the order by which they are chosen. Proof of this lemma follows from the observation that for every , the historical sum of will never exceeds a “per-context entropy” . In short, analyzing confidence bounds in policy space helps us take expectation over the “per-context entropy,” and successfully avoid the dependence on .
Following Lemma 1 and Lemma 2, a natural “upper confidence bound” strategy is to choose the policy that maximizes the following (unrelaxed) upper confidence bound:
where is the policy class defined by , which contains . While we can prove this strategy leads to optimal regret bounds, it is not directly feasible: 1) the distribution is unknown; and 2) the optimization over policies is computationally intractable. To solve this issue, we introduce two relaxations: we “agnostically” optimize over the full policy space rather than ; and we use a simple inequality to relax the confidence bound proved in Lemma 1, which we call the “square trick”.
The inequality (2.1) can be further relaxed to
Simply relax (2.1) by the Arithmetic Mean-Geometric Mean inequality. ∎
By performing the two relaxations stated above, we only need to consider the optimization problem
This is a “per context” optimization problem, where optimality at every context implies optimality of over the full policy space . The algorithm does not need to calculate explicitly in every step. Instead, the algorithm observes , and calculates all the counterfactual actions as if the past policies were applied at . Using these counterfactual actions, the algorithm calculates a counterfactual confidence, and chooses an optimistic action that maximize the upper confidence bound stated in (2.3).
The formula to calculate the counterfactual action ,
requires us to the compute the sequence in a recursive manner: for , compute
And finally we take . Therefore, we can explain the explicit steps in Algorithm 1 via the following (obvious) equivalence:
After the first initialization rounds, Algorithm 1 produce the same pathwise actions as those produced by the policies chosen by the upper-confidence-bound rule (2.3) and a specific tie-breaking rule (i.e., when there are multiple solutions to (2.3), taking to be the unique solution such that for all other solutions to (2.3) and all , the index of the action is smaller than the index of the action ).
Based on all the lemmas that we introduce in this subsection, one can prove the regret bound for Algorithm 1 through relatively standard techniques. The full proof is deferred to Appendix A, and a sketch is provided below.
3 Proof sketch of Theorem 1 and Lemma 1
In this subsection we present a proof sketch of Theorem 1 (the cumulative regret of Algorithm 1) and Lemma 1 (confidence bounds in policy space, whose relaxation leads to Lemma 3).
From Lemma 4, we know Algorithm 1 implicitly chooses the optimistic policy (i.e., solution of (2.3)) at each round . We prove the regret bound on the event where the inequality (2.2) holds true for all . From Lemma 3, the measure of this event is at least .
Optimism of Algorithm 1 in policy space suggests that for all ,
where the first and the last inequality are due to Lemma 3; and the second inequality due to maximization over policies. Therefore, the expected regret incurred at round is bounded by
Taking the telescoping sum of (2.4) and applying the contextual potential lemma (Lemma 2), we can prove
By Azuma’s inequality and Lemma 4, with probability at least , we can bound the regret by
Finally we combine (2.5) and (2.6) by a union bound to finish the proof.
The proof of Lemma 1 includes three key steps: characterization of the estimation error (inequality (5)); a counting argument (inequality (2.3)); and applying Cauchy-Schwartz inequality to (2.3). Now we describe these key steps.
The following lemma, which holds for arbitrary algorithms, characterizes the estimation errors of an arbitrary sequence of estimators.
For an arbitrary contextual bandit algorithm, , with probability at least ,
uniformly over all and all fixed sequence .
Proof of Lemma (5) can be found in Appendix A.2.
We then apply Cauchy-Schwartz inequality to lower bound the left hand side of (2.3), and take be the least square solutions to upper bound the right hand side of (2.3).
Generalization to infinite ℱ\mathcal{F}
Extensions of our theory to “infinite” with statistical complexity notions of covering number and parametric dimension are straightforward. Technically speaking, we only require some standard uniform convergence arguments to modify Lemma 5. We will first show that our results trivially generalizes to parametric with suitable continuity, and then extend our results to general function classes following some more careful covering arguments.
uniformly over and . This case clearly covers many previous structured models (variants of the “linear payoff” formulation (1.1)).
Under Assumption 1 and the assumption (3.1) and fixing , set the parameter in Algorithm 1 to be
Then Algorithm 1 satisfies that with probability at least , for all ,
Remark: While this regret bound has a worse dependence on in the “linear payoff” formulation (1.1) compared with SupLinUCB in (whose regret is logarithmic in ), Algorithm 1 can be applied in more general parametric settings and enjoys much lower computational demands (there is no need to invert any Hessian). While the square-root dependence on can not be improved for general (see the lower bound in ), we can improve this dependence for structured models by applying our results in Section 4.
Our results can be extended to general (possibly non-parametric) function classes via covering numbers and standard uniform convergence techniques. We consider formulation (3.2)—a major target of previous works on general contextual bandits . We assume access to a general function class that contains mappings from to $$, and assume
Given careful covering arguments proved in , the following extension is straightforward:
Under Assumption 1 and the assumption (3.2), given and , by setting all the parameters in Algorithm 1 to be a fixed value
Then, Algorithm 1 satisfies that with probability at least ,
A unified framework for infinite action spaces
In this section we study infinite-action contextual bandits to illustrate the simplicity and applicability of the UCCB principle. In context-free settings, discussion on infinite actions can be sorted into two streams. The first stream studies variants of the linear action model. Prominent examples include linearly parametrized bandit , and parametrized bandit with generalized linear model . The second stream is based on discretization over actions and reduction to the finite-action setting (e.g., Lipchitz bandit (). We focus on the first stream here, as it exhibits additional challenges of efficient exploration beyond the finite-action setting.
To focus on the core messages, we assume to be finite and function in take values in $$. We propose a generic algorithm (Algorithm 2) that achieves
Consider a broader choice of models, which contains generalized linear action models and allows a mapping :
Many real-world, customized pricing and personalized healthcare applications have a high dimensional action set , but the “effective dimension” of available actions after observing is usually much smaller. To model these applications, consider the reward model
where for all we assume a compact action set , and assume is contained in a dimensional subspace. When the agent observes context , she can only choose her action from .
2 Counterfactual action divergence
The main modification required for infinite-action settings is predicated on a central concept called “counterfactual action divergence,” which generalizes the term that was used in Algorithm 1. This new concept characterizes “how much information” is learned from action given a sequence , on the “fixed--model.”
For fixed integer , a context , an action and a sequence of actions , we say is a proper choice of the counterfactual action divergence between and evaluated at , if
We define in the case .
Using the definition of counterfactual action divergence, the expectation
can be used to construct an upper confidence bound on the expected reward of policy given the past chosen policies . Similar to the finite-action setting, the agent chooses the optimistic policy that maximizes this confidence bound, and chooses without explicitly computing —this is achieved by sequentially recovering counterfactual actions, as will be illustrated in our proposed Algorithm.
Convenient choices of should be taken case by case for different problems. In the following lemma, we present closed-form choices of in all our illustrative examples.
In the illustrative examples, the counterfactual action divergences are given as follows (and taken as when inverse of matrices is not well-defined):
generalized linear action model with heterogeneous action sets (4.3):
where is the coefficient vector of with a basis of , i.e.,
3 The algorithm and regret bound
Algorithm 2 essentically provide a reduction from contextual models to the “fixed--models.” The regret of an optimistic algorithm is usually upper bounded by the sum of confidence bounds. In our case, the sum of expectations (4.4) is decomposable over contexts, so tractability of the “fixed--models” suffices to make Algorithm 2 provably efficient. Formally, we require regularity conditions so that the “fixed--models” are solvable by the optimism principle. Motivated by the standard potential arguments used in the linear bandit literature, we make Assumption 2 below. Verification of this assumption on Examples 1-3 will be presented in the next section.
There exists counterfactual action divergences such that the following are satisfied:
i)for all , there exists actions such that for all .
ii) For all , there exists such that for all and all sequences that satisfy , we have
for all , where is a fixed polynomial-scale function.
Besides the least-square oracle, Algorithm 2 uses two other optimization oracles that are necessary in the infinite-action setting: 1) a deterministic initialization oracle which returns satisfying Assumption 2 after inputting (this is standard for Examples 1-3 using the theory of barycentric spanners, see the next subsection); and 2) a deterministic action maximization oracle whose output is a maximizer of a function over the feasible region .
After imposing the regularity conditions proposed in Assumption 2, the regret of Algorithm 2 can be bounded as the follows.
Under Assumptions 1 and 2 and fixing , let
Then with probability at least , for all the regret of Algorithm 2 after rounds is upper bounded by
This theorem immediately provides regret bounds for all our illustrative examples, which we will discuss in the next subsection.
Finally, we give a high-level interpretation of the average decision entropy : if the expectation (4.4) is the “discrete” partial gradient of a potential function, then the historical sum has the path independence property—that is, the historical sum of (4.4) can be bounded by the maximum value of a potential function, which is characterized by the average decision entropy . Since is the average rather than the sum of the effective complexities of all “fixed--models,” UCCB provides a generic solution to achieve optimal regret bounds that do not scale with .
4 Applications in illustrative examples
In this subsection we will carefully go through the three illustrative examples. We summarize the conclusions in the following corollary:
Examples 1-3 satisfy Assumptions 2 with the average decision entropy given by
linear action model (4.1): .
Now we give a verification in the remaining parts of this subsection.
We begin with contextual bandits with linear action model (4.1), with the homogeneous action set . For this problem, Algorithm 1 only needs to compute the initialization actions once, and use them during the first rounds. This suffices to complete the required initialization for all contexts.
Based on well-known results in the linear bandit literature, it is straightforward to show that , because we can take for every per-context model. The details are as follows.
As shown in Statement 1, for all , we choose the counterfactual action divergence between any and any sequence evaluated at to be
Following the standard approach in the linear bandit literature (e.g., see ), we choose the initialization actions to be the barycentric spanner of . A barycentric spanner is a set of vectors, all contained in , such that every vector in can be expressed as a linear combination of the spanner with coefficients in $$. An efficient algorithm to find the barycentric spanner for an arbitrary compact set is given in .
Therefore, we obtain for all and all ,
By taking to be a barycentric spanner of , setting , and taking , Assumption 2 holds for problem (4.1). Despite the illustration here, we also note that our Assumption 2 is not restricted to any particular choice of initialization actions and : there are other ways to choose linearly independent initialization actions, giving rise to a slightly different term in Assumption 2 (see, e.g. [1, Lemma 11]).
4.2 Contextual bandits with generalized linear action model (Example 2).
As shown in Statement 1, given , we choose the counterfactual action divergence between any and any sequence evaluated at to be
Given , we take such that consists of a barycentric spanner of in formulation (4.2) we have asked to preserve compactness with respect to (e.g. the continuous ones), so such barycentric spanner must exists.. Note that a different basis should be computed for each . From our previous result (4.6) and the fact , for all and all sequences that satisfy ,
4.3 Contextual bandits with heterogeneous action set (Example 3)
We consider the problem formulation (4.3) where the action set is heterogeneous for different . Note that is a compact set contained in a dimensional subspace. Given , we choose as the barycentric spanner of and take for . As stated in Statement 1, given , the counterfactual action divergence between and evaluated at is
where is the coefficient vector of with respect to the basis . From our previous result (4.6) and the fact , for all and all sequences that satisfy ,
Using “optimistic subroutines” to generalize randomized algorithms
What is the connection between our proposed optimistic algorithms and existing randomized algorithms? In this section, we show that by combining the idea of counterfactual confidence bounds and a non-trivial “optimistic subroutine,” we can also generalize an existing randomized algorithm to the infinite-action setting. However, the analysis and implementation of the resulting randomized algorithm is much more complex than the optimistic algorithm we introduced before. Through this extension, we see the simplicity and importance of the optimism principle for complex settings like infinite-action spaces.
The first least-square-oracle-efficient randomized algorithm in the general realizable contextual bandits, FALCON from , is restricted to the finite-action setting. FALCON performs implicit optimization in policy space, but the allocation of policies reduces to a closed-form weighted allocation rule for actions (this design principle also influences the design of UCCB). We find that it becomes more crucial to exploit the counterfactual confidence bounds in the infinite-action setting: the optimization of weighted allocation rules no longer has closed-form solutions, and we need to design a technical “optimistic subroutine” to find feasible weighted allocations.
Algorithm 3 runs in an epoch schedule and only calls the least square oracle at the pre-specified rounds . We take for all to simplify the statement of the theorem, though other choices of the epoch schedule are also possible .
Consider the problem formulation (4.1) stated in Example 1, under Assumption 1. Take the epoch schedule for . Let
for , and . Then with probability at least , for all , the regret of Algorithm 3 after rounds is upper bounded by
Theorem 6 can be obtained by modifying the regret analysis of the original FALCON algorithm. (We refer the readers to for the background and intuition of the original FALCON algorithm, especially the “Observation 2” in that paper.) However, the key challenge is to provide an efficient algorithm to find a weighted allocation rule that satisfy both (5.1) and (5.2) in Algorithm 3.
At each round within epoch , Algorithm 4 outputs a probability distribution that satisfies (5.1) and (5.2) within at most iterations.
According to this proposition, the optimistic subroutine outputs an efficient solution that satisfies the requirements (5.1) and (5.2) within finite number of iterations at every rounds. One advantage of Algorithm 3 is that it requires only calls to the least-square oracle. However, the design and analysis of the optimistic subroutine becomes challenging in the infinite-action setting, especially for complex problem formulations. On the other hand, Algorithm 2 exhibits much cleaner structure and a principled analysis that covers many problem formulations of interest.
Conclusion and future directions
In this paper we propose UCCB, a simple generic principle to design optimistic algorithms in the presence of large context spaces. Key ideas underlying UCCB include: 1) confidence bounds in policy space rather than in action space; and 2) the potential function perspective that explains the power of optimism in the contextual setting. We present the first optimal and efficient optimistic algorithm for realizable contextual bandits with general function classes. Besides the traditional finite-action setting, we also discuss the infinite-action setting and provide the first solutions to many interesting models of practical interest.
Moving forward, there are many interesting future directions that may leverage the ideas presented in this work. The principle of optimism in the face of uncertainty plays an essential role in reinforcement learning. Currently the majority of existing provably efficient algorithms are developed for the “tabular” case, and their regret scales with the cardinality of the state space. However, empirical reinforcement learning problems typically have a large state space and rely on function approximation . Motivated by this challenge, a natural next step is to adapt the UCCB principle to reinforcement learning problems with large state space. This paper can be viewed as an initial step towards this goal, as the contextual MAB problem is a special case of episodic reinforcement learning where the episode length is equal to one. Within the scope of bandit problems, UCB-type algorithms are often the “meta-algorithms” for many complex formulations when there is no contextual information. Since UCCB improves over UCB-type algorithms in several fundamental contextual settings, this work may be a building block to combine contextual information and function approximation with more complex formulations such as Gaussian process optimization , bandits with long-term constraints , and bandits in non-stationary environments . We leave these directions to future work.
References
Appendix A Proofs for the finite-action setting
We prove the theorem on the clean event stated in Lemma 3, whose measure is at least . For all ,
where the first and the last inequality are due to Lemma 3; the second inequality due to maximization over policies.
where the first line uses the equivalence proved in Lemma 4; the second line is due to (A.1); the third line is due to and ; and the last line is due to the contextual potential lemma (Lemma 2).
By Azuma’s inequality, with probability at least , we can bound the regret by
Therefore, by a union bound and inequalities (A.1) (A.3), with probability at least , the regret of Algorithm 1 after rounds is upper bounded by
A.2 Analysis on the confidence
The main goal of this subsection is to prove Lemma 1. For a fixed , we denote , .
For a fixed , when conditioned on , we have
where the first equation is because and the fact that is completely determined by ; the second equation is because the independence between and ; and the third inequality is because depends on only through .
Applying Lemma 5, we know that , with probability at least ,
uniformly over all and all fixed sequence .
where the first inequalities are due to and the second inequality is (A.4).
Since Algorithm 1 pick all actions exactly once during the first rounds, will ensure .
From Cauchy-Schwarz’s inequality, , ,
Combine the above inequality with (A.2.1), we prove
Taking in the above inequality, and use the fact (as the least square solution minimizes ), we obtain: with probability at least , , ,
A.2.2 Proof of Lemma 5
We now prove Lemma 5 and the supporting lemmas required to prove Lemma 5.
Fix a . Take , and apply a union bound to Lemma 6 with all . From
we know that with probability at least ,
uniformly over all and all fixed sequence .
For a fixed and a fixed , with probability at least , we have
We have . From Lemma 7, for , with probability at least ,
Applying union bound to all , we obtain that with probability at least ,
which further implies ,
This finish the proof to Lemma 6.
The following two lemmas are used in the proof of Lemma 6.
Suppose is a martingale difference sequence with for all . Then for any , with probability at least ,
Fix a function . Suppose we sample from the data distribution , and from . Define the random variable
A.3 Proof of Lemma 2
where the last inequality is due to Jensen’s inequality. By taking expectation on both sides of the above inequality, we prove the lemma.
Appendix B Proofs for the extensions to infinite function classes
From the well-known result on the covering of dimensional balls , the covering number of a dimensional ball with radius and discretization error is bounded by , so there exists a set of size no more than that contains and satisfies
We see . , take to be the closest point to in , we have
Sine is a finite function class, we can prove a slight modification of Lemma 6, with the result (A.6) becomes
Following the same path in the proof of Lemma 5, we can prove a slight modification of Lemma 5: with probability at least ,
uniformly over all and all fixed sequence .
By setting the parameter to be
in Algorithm 1, we can prove a slight modification of Theorem 1, with the result being
B.2 Proof of Corollary 3
We introduce the following Lemma adopt from :
, with probability at least ,
for all and .
We then prove a slight modification of Lemma 5, with the result (5) becomes
uniformly over all and all fixed sequence .
By setting the parameter in Algorithm 1 to be the fixed value
we can prove a slight modification of Theorem 1, with the result being
Appendix C Proofs for the infinite-action setting
We prove the theorem on the clean event stated in Lemma 10, whose measure is at least . For all ,
where the first and the last inequalities are due to Lemma 10; the second inequality is due to the definition of in Lemma 11. The above argument implies that for all
When , inequality (C.1) trivially holds true, because by definition. So inequality (C.1) holds true for all .
When , we can bound the regret by . We now give the regret bound for the case . We have the following:
where the first line uses the equivalence proved in Lemma 11; the second line is due to (C.1); the third line is due to ; the fourth line is due to and when ; and the sixth line is due to the condition II in Assumption 2. By Azuma’s inequality, with probability at least , we can bound the regret by
Therefore, by a union bound and inequalities (C) (C.3), with probability at least , the regret of Algorithm 1 after rounds is upper bounded by
Combine the case and we finish the proof.
Consider a non-randomized contextual bandit algorithm that selects based on and chooses the action at all rounds . Then , with probability at least , we have
uniformly over all and all .
For a fixed , we denote , . From Lemma 5, , with probability at least , we have
uniformly over all and all fixed sequence .
Use the fact that is completely determined by and independent with , we obtain:
From the definition of counterfactual action divergence, we know ,
Applying the AM-GM inequality to the above inequality, we obtain
Since is bounded by $$, we further obtain
By taking expectation on both side of (C) and using (C.5), we obtain that with probability at least ,
uniformly over all , all and all fixed sequence . Here the first inequality is due to the triangle inequality; the second inequality is due to (C); the last inequality is due to (C.5).
By taking the the least square solution that minimizes , we have and finish the proof.
Consider an algorithm that choose policy by
( is determined the initialization oracle and the input ; the “argmax” problem when is computed via the action maximization oracle.) Then this algorithm produces the same actions as those produced by Algorithm 2.
The proof to this lemma is straightforward. ∎
Appendix D Proofs for the “optimistic subroutine” in Section 5
In this subsection we prove Proposition 1. Our proof is motivated by Agarwal et. al. [4, Lemma 6, Lemma 7].
We aim to minimize the potential function
where is the coefficient vector of when the basis is the barycentric spanner . We prove that after each iteration, either Algorithm 4 outputs a desired distribution that satisfies both (5.1) and (5.2), or
Since function is bounded the algorithm must halt within finite iterations. (D.2) is a consequence of the following two lemmas:
If Algorithm 4 does not halt at round , then after the coordinate descent step (5.5) in Algorithm 4, we always have
Now we present the proof of Proposition 1, as well as proofs of Lemma 12 and Lemma 13.
Proof of Proposition 1. From Lemma 12 and Lemma 13 we know that if the algorithm does not halt at round , then . Assume Algorithm 4 does not halt after rounds. Then we have
Since the initialization actions consist of a barycentric spanner of , all coordinates of is within $\forall a\in\mathcal{A}\|b_{a}\|\leq\sqrt{d}a\in\mathcal{A}q_{t}d+tq_{t}=\sum_{i=1}^{d+t}q_{t}(A_{i})\mathds{1}_{A_{i}}$.
So Algorithm 4 must halt within at most iterations. When it halts, it is straightforward to verify that the output distribution is proper and satisfies both (5.1) and (5.2).
Proof of Lemma 12. Denote . Given an arbitrary improper distribution , we view as a function on the scaling factor . By the chain rule, we can compute the derivative of this function with respect to ,
then the coordinate descent step (5.5) is .
Combine this inequality with (D.6) we obtain