An Asymptotically Optimal Primal-Dual Incremental Algorithm for Contextual Linear Bandits
Andrea Tirinzoni, Matteo Pirotta, Marcello Restelli, Alessandro Lazaric
Introduction
We study the contextual linear bandit (CLB) setting [e.g., 1], where at each time step the learner observes a context drawn from a context distribution , pulls an arm , and receives a reward drawn from a distribution whose expected value is a linear combination between -dimensional features describing context and arm, and an unknown parameter . The objective of the learner is to maximize the reward over time, that is to minimize the cumulative regret w.r.t. an optimal strategy that selects the best arm in each context. This setting formalizes a wide range of problems such as online recommendation systems, clinical trials, dialogue systems, and many others . Popular algorithmic principles, such as optimism-in-face-of-uncertainty and Thompson sampling , have been applied to this setting leading to algorithms such as OFUL and LinTS with strong finite-time worst-case regret guarantees. Nonetheless, Lattimore & Szepesvari recently showed that these algorithms are not asymptotically optimal (in a problem-dependent sense) as they fail to adapt to the structure of the problem at hand. In fact, in the CLB setting, the values of different arms are tightly connected through the linear assumption and a possibly suboptimal arm may provide a large amount of information about and thus the optimal arm. Optimistic algorithms naturally discard suboptimal arms and thus may miss the chance to acquire information about and significantly reduce the regret.
Early attempts to exploit general structures in MAB either adapted UCB-based strategies or focused on different criteria, such as regret to information ratio . While these approaches succeed in improving the finite-time performance of optimism-based algorithms, they still do not achieve asymptotic optimality. An alternative approach to exploit the problem structure was introduced in for (non-contextual) linear bandits. Inspired by approaches for regret minimization and best-arm identification in MAB, Lattimore & Szepesvari proposed to compute an exploration strategy by solving the (estimated) optimization problem characterizing the asymptotic regret lower bound for linear bandits. While the resulting algorithm matches the asymptotic logarithmic lower bound with tight leading constant, it performs rather poorly in practice. Combes et al. followed a similar approach and proposed OSSB, an asymptotically optimal algorithm for bandit problems with general structure (including, e.g., linear, Lipschitz, unimodal). Unfortunately, once instantiated for the linear bandit case, OSSB suffers from poor empirical performance due to the large dependency on the number of arms. Recently, Hao et al. introduced OAM, an asymptotically optimal algorithm for the CLB setting. While OAM effectively exploits the linear structure and outperforms other bandit algorithms, it suffers from major limitations. From an algorithmic perspective, at each exploration step, OAM requires solving the optimization problem of the regret lower bound, which can hardly scale beyond problems with a handful of contexts and arms. Furthermore, OAM implements a forcing exploration strategy that often leads to long periods of linear regret and introduces a linear dependence on the number of arms . Finally, the regret analysis reveals a critical dependence on the inverse of the smallest probability of a context (i.e., ), thus suggesting that OAM may suffer from poor finite-time performance in problems with unbalanced context distributions.Interestingly, Hao et al. explicitly mention in their conclusions the importance of properly managing the context distribution to achieve satisfactory finite-time performance. Degenne et al. recently introduced SPL, which significantly improves over previous algorithms for MAB problems with general structures. Inspired by algorithms for best-arm identification , Degenne et al. reformulate the optimization problem in the lower bound as a saddle-point problem and show how to leverage online learning methods to avoid recomputing the exploration strategy from scratch at each step. Furthermore, SPL removes any form of forced exploration by introducing optimism into the estimated optimization problem. As a result, SPL is computationally efficient and achieves better empirical performance in problems with general structures.
Contributions. In this paper, we follow similar steps as in and introduce SOLID, a novel algorithm for the CLB setting. Our main contributions can be summarized as follows.
We first reformulate the optimization problem associated with the lower bound for contextual linear bandits by introducing an additional constraint to guarantee bounded solutions and by explicitly decoupling the context distribution and the exploration policy. While we bound the bias introduced by the constraint, we also illustrate how the resulting exploration policy is better adapted to unbalanced context distributions.
Leveraging the Lagrangian dual formulation associated with the constrained lower-bound optimization problem, we derive SOLID, an efficient primal-dual learning algorithm that incrementally updates the exploration strategy at each time step. Furthermore, we replace forced exploration with an optimistic version of the optimization problem by specifically leveraging the linear structure of the problem. Finally, SOLID does not require any explicit tracking step and it samples directly from the current exploration strategy.
We establish the asymptotic optimality of SOLID, while deriving a finite-time problem-dependent regret bound that scales only with and without any dependence on . To this purpose, we introduce a new concentration bound for regularized least-squares that scales as , hence removing the dependence of the bound in . Moreover, we establish a worst-case regret bound for any CLB problem with contexts, features, and horizon . Notably, this is implies that SOLID is the first algorithm to be simultaneously asymptotically optimal and minimax optimal when (e.g., in non-contextual linear bandits, when ).
We empirically compare to a number of state-of-the-art methods for contextual linear bandits and show how SOLID is more computationally efficient and often has the smallest regret.
A thorough comparison between SOLID and related work is reported in App. B.
Preliminaries
Regularized least-squares estimator. We introduce the regularized least-square estimate of using samples as , where , with and the identity matrix, and . The estimator satisfies the following concentration inequality (see App. J for the proof and exact formulation).
Let , , and be a regularized least-square estimator obtained using samples collected using an arbitrary bandit strategy . Then,
where is of order .
For the usual choice , is of order , which illustrates how the dependency on is on a lower-order term w.r.t. (as opposed to the well-known concentration bound derived in ). This result is the counterpart of [7, Thm. 8] for the concentration on the reward parameter estimation error instead of the prediction error and we believe it is of independent interest.
Lower Bound
Let by a uniformly good bandit strategy then,
where is the value of the optimization problem
where is the probability simplex. We denote by the optimal solution of (Pz) and its associated value (if the problem is unfeasible we set ). Inspecting (Pz), we notice that serves as a global constraint on the number of samples. In fact, for any , the associated number of samples allocated to a context-arm pair is now . Since is a distribution over and in each context, the total number of samples sums to . As a result, (Pz) admits a minimum and it is more amenable to designing a learning algorithm based on its Lagrangian relaxation. Furthermore, we notice that can be interpreted as defining a more “finite-time” formulation of the lower bound. Finally, we remark that the total number of samples that can be assigned to a context is indeed constrained to . This constraint crucially makes (Pz) more context aware and forces the solution to be more adaptive to the context distribution. In Sect. 4, we leverage these features to design an incremental algorithm whose finite-time regret does not depend on , thus improving over previous algorithms , as supported by the empirical results in Sect. 6. The following lemma provides a characterization of (Pz) and its relationship with (P) (see App. C for the proof and further discussion).
The first result characterizes the range of for which (Pz) is feasible. Interestingly, is the inverse of the sample complexity of the best-arm identification problem and the associated solution is the one that maximizes the amount of information gathered about the reward model . As increases, becomes less aggressive in favoring informative context-arm pairs and more sensitive to the regret minimization objective. The second result quantifies the bias w.r.t. the optimal solution of (Pz). For , the error decreases approximately at a rate showing that the solution of (Pz) can be made arbitrarily close to .
In designing our learning algorithm, we build on the Lagrangian relaxation of (Pz). For any , let denote the objective function and denote the KL constraint
We introduce the Lagrangian relaxation problem
Asymptotically Optimal Linear Primal Dual Algorithm
We introduce SOLID (aSymptotic Optimal Linear prImal Dual), which combines a primal-dual approach to incrementally compute the solution of an optimistic estimate of the Lagrangian relaxation (Pλ) within a scheme that, depending on the accuracy of the estimate , separates exploration steps, where arms are pulled according to the exploration policy , and exploitation steps, where the greedy arm is selected. The values of the input parameters for which SOLID enjoys regret guarantees are reported in Sect. 5. In the following, we detail the main ingredients composing the algorithm (see Alg. 1).
Accuracy test and tracking. Similar to previous algorithms leveraging asymptotic lower bounds, we build on the generalized likelihood ratio test [e.g., 18] to verify the accuracy of the estimate . At the beginning of each step , SOLID first computes , where is the set of alternative models. This quantity measures the accuracy of the algorithm, where the infimum over alternative models defines the problem that is closest to and yet different in the optimal arm of at least one context.In practice, it is more efficient to take the infimum only over problems with different optimal arm in the last observed context . This is indeed what we do in our experiments and all our theoretical results follow using this alternative definition with only minor changes. This serves as a worst-case scenario for the true , since if then selecting arms according to would lead to linear regret. If the accuracy exceeds a threshold , then SOLID performs an exploitation step, where the estimated optimal arm is selected in the current context. On the other hand, if the test fails, the algorithm moves to an exploration step, where an arm is sampled according to the estimated exploration policy . While this approach is considerably simpler than standard tracking strategies (e.g., selecting the arm with the largest gap between the policy and the number of pulls), in Sect. 5 we show that sampling from achieves the same level of tracking efficiency.
Optimistic primal-dual subgradient descent. At each step , we define an estimated optimistic version of the Lagrangian relaxation (Pλ) as
where is a suitable parameter defining the size of the confidence interval.
Notice that we do not use optimism on the context distribution, which is simply replaced by its empirical estimate. Therefore, is not necessarily optimistic with respect to the original Lagrangian function . Nonetheless, we prove in Sect. 5 that this level of optimism is sufficient to induce enough exploration to have accurate estimates of . This is in contrast with the popular forced exploration strategy [e.g. 7, 15, 19, 16], which prescribes a minimum fraction of pulls such that at any step , any of the arms with less than pulls is selected, where is the number of exploration rounds so far. While this strategy is sufficient to guarantee a minimum level of accuracy for and to obtain asymptotic regret optimality, in practice it is highly inefficient as it requires selecting all arms in each context regardless of their value or amount of information.
At each step , SOLID updates the estimates of the optimal exploration policy and the Lagrangian multiplier . In particular, given the sub-gradient of , SOLID updates and by performing one step of projected sub-gradient descent with suitable learning rates and . In the update of , we perform the projection onto the simplex using an entropic metric, while the multiplier is clipped in . While this is a rather standard primal-dual approach to solve the Lagrangian relaxation (Pλ), the interplay between estimates , , the optimism used in , and the overall regret performance of the algorithm is at the core of the analysis in Sect. 5.
This approach significantly reduces the computational complexity compared to , which require solving problem P at each exploratory step. In Sect. 6, we show that the incremental nature of SOLID allows it to scale to problems with much larger context-arm spaces. Furthermore, we leverage the convergence rate guarantees of the primal-dual gradient descent to show that the incremental nature of SOLID does not compromise the asymptotic optimality of the algorithm (see Sect. 5).
The parameter. While the primal-dual algorithm is guaranteed to converge to the solution of (Pz) for any fix , it may be difficult to properly tune to control the error w.r.t. (P). SOLID leverages the fact that the error scales as (Lem. 1 for sufficiently large) and it increases over time. Given as input two non-decreasing sequences and , at each phase , SOLID uses in the computation of the subgradient of and in the definition of and . After explorative steps, it resets the policy and the multiplier and transitions to phase . Since is the number of explorative steps of phase starting at time , the actual number of steps during may vary. Notice that at the end of each phase only the optimization variables are reset, while the learning variables (i.e., , , and ) use all the samples collected through phases.
Regret Analysis
Before reporting the main theoretical result of the paper, we introduce the following assumption.
The maximum multiplier used by SOLID is such that .
While an assumption on the maximum multiplier is rather standard for the analysis of primal-dual projected subgradient [e.g., 22, 23], we conjecture that it may be actually relaxed in our case by replacing the fixed by an increasing sequence as done for .
Consider a contextual linear bandit problem with contexts , arms , reward parameter , features bounded by , zero-mean Gaussian noise with variance and context distribution satisfying Asm. 1. If SOLID is run with confidence values and , where is defined as in Thm. 1, learning rates and increasing sequences and , for some , then it is asymptotically optimal with the same constant as in the lower bound of Prop. 1. Furthermore, for any finite the regret of SOLID is bounded as
The sub-logarithmic terms in the regret have only logarithmic dependency on the number of arms. This is better than existing algorithms based on exploration strategies built from lower bounds. OSSB indeed depends on directly in the main regret terms. While the regret analysis of OAM is asymptotic, it is possible to identify several lower-order terms depending linearly on . In fact, OAM as well as OSSB require forced exploration on each context-arm pair, which inevitably translates into regret. In this sense, the dependency on is hard-coded into the algorithm and cannot be improved by a better analysis. SPL depends linearly on in the explore/exploit threshold (the equivalent of our ) and in other lower-order terms due to the analysis of the tracking rule. On the other hand, SOLID never requires all arms to be repeatedly pulled and we were able to remove the linear dependence on through a refined analysis of the sampling procedure (see App. E). This is inline with the experimental results where we did not notice any explicit linear dependence on .
The constant regret term depends on the context distribution through (Lem. 1). Nonetheless, this dependency disappears whenever is a fraction . This is in striking contrast with OAM, whose analysis includes several terms depending on the inverse of the context probability . This confirms that SOLID is able to better adapt to the distribution generating the contexts. While the phase schedule of Thm. 2 leads to an asymptotically-optimal algorithm and sublinear-regret in finite time, it may be possible to find a different schedule having the same asymptotic performance and better finite-time guarantees, although this may depend on the horizon . Refer to App. G.3 for a regret bound highlighting the explicit dependence on the sequences and .
Worst-case analysis. The constant terms in Thm. 2 are due to a naive bound which assumes linear regret in those phases where is small (e.g., when the optimization problem is infeasible). While this simplifies the analysis for asymptotic optimality, we verify that SOLID always suffers sub-linear regret, regardless of the values of . For the following result, we do not require Asm. 2 to hold.
Let be arbitrary, for some constant , and the other parameters be the same as in Thm. 2. Then, for any the regret of SOLID is bounded as
Notably, this bound removes the dependencies on and , while its derivation is agnostic to the values of . Interestingly, we could set and the algorithm would completely ignore the KL constraint, thus focusing only on the objective function. This is reflected in the worst-case bound since all terms with a dependence on or a quadratic dependence on disappear. The key result is that the objective function alone, thanks to optimism, is sufficient for proving sub-linear regret but not for proving asymptotic optimality. More precisely, the bound is , which matches the minimax optimal rate apart from the dependence on (see , Sec. 24.1). We believe the latter could be reduced to by a refined analysis. It remains an open question how to design an asymptotically optimal algorithm for the contextual case whose regret does not scale with .
Numerical Simulations
We compare SOLID to LinUCB, LinTS, and OAM. For SOLID, we set and (i.e., we remove all numerical constants) and we use the exponential schedule for phases defined in Thm. 2. For OAM, we use the same for the explore/exploit test and we try different values for the forced-exploration parameter . LinUCB uses the confidence intervals from Thm. 2 in with the log-determinant of the design matrix, and LinTS is as defined in but without the extra-sampling factor used to prove its frequentist regret. All plots are the results of runs with Student’s t confidence intervals. See App. K for additional details and results on a real dataset.
Toy contextual linear bandit with structure. We start with a CLB problem with and . Let () be the -th context (arm). We have , , , , , and . We consider a balanced context distribution . This is a two-context counterpart of the example presented by to show the asymptotic sub-optimality of optimism-based strategies. The intuition is that, for small, an optimistic strategy pulls in and in only a few times since their gap is quite large, and suffers high regret (inversely proportional to ) to figure out which of the remaining arms is optimal. On the other hand, an asymptotically optimal strategy allocates more pulls to “bad" arms as they bring information to identify , which in turns avoids a regret scaling with . This indeed translates into the empirical performance reported in Fig. 1-(left), where SOLID effectively exploits the structure of the problem and significantly reduces the regret compared to LinTS and LinUCB. Actually, not only the regret is smaller but the “trend” is better. In fact, the regret curves of LinUCB and LinTS have a larger slope than SOLID’s, suggesting that the gap may increase further with , thus confirming the theoretical finding that the asymptotic performance of SOLID is better. OAM has a similar behavior, but the actual performance is worse than SOLID and it seems to be very sensitive to the forced exploration parameter, where the best performance is obtained for , which is not theoretically justified.
We also study the influence of the context distribution. We first notice that solving (P) leads to an optimal exploration strategy where the only sub-optimal arm with non-zero pulls is in since it yields lower regret and similar information than in . This means that the lower bound prescribes a greedy policy in , deferring exploration to alone. In practice, tracking this optimal allocation might lead to poor finite-time performance when the context distribution is unbalanced towards , in which case the algorithm would take time proportional to before performing any meaningful exploration. We verify these intuitions empirically by considering the case of and (middle and right plots in Fig. 1 respectively). SOLID is consistently better than all other algorithms, showing that its performance is not negatively affected by . On the other hand, OAM is more severely affected by the context distribution. In particular, its performance with significantly decreases when increasing and the algorithm reduces to an almost greedy strategy, thus suffering linear regret in some problems. In this specific case, forcing exploration leads to slightly better finite-time performance since the algorithm pulls the informative arm in , which is however not prescribed by the lower bound.
Random problems. We evaluate the impact of the number of actions in randomly generated structured problems with and . We run each algorithm for steps. For OAM, we set forced-exploration and solve (P) every rounds to speed-up execution as computation becomes prohibitive. The plots in Fig. 2 show the regret over time for . This test confirms the advantage of SOLID over the other methods. Interestingly, the regret of SOLID does not seem to significantly increase as a function of , thus supporting its theoretical analysis. On the other hand, the regret of OAM scales poorly with since forced exploration pulls all arms in a round robin fashion.
Conclusion
We introduced SOLID, a novel asymptotically-optimal algorithm for contextual linear bandits with finite-time regret and computational complexity improving over similar methods and better empirical performance w.r.t. state-of-the-art algorithms in our experiments. The main open question is whether SOLID is minimax optimal for contextual problems with . In future work, our method could be extended to continuous contexts, which would probably require a reformulation of the lower bound and the adoption of parametrized policies. Furthermore, it would be interesting to study finite-time lower bounds, especially for problems in which bounded regret is achievable . Finally, we could use algorithmic ideas similar to SOLID to go beyond the realizable linear bandit setting.
Broader Impact
This work is mainly a theoretical contribution. We believe it does not present any foreseeable societal consequence.
Funding Transparency Statement
Marcello Restelli was partially funded by the Italian MIUR PRIN 2017 Project ALGADIMAR “Algorithms, Games, and Digital Market”.
Acknowledgements
The authors would like to thank Rémy Degenne, Han Shao, and Wouter Koolen for kindly sharing the draft of their paper before publication. We also would like to thank Pierre Ménard for carefully reading the paper and for providing insightful feedback.
References
Appendix
We provide this table for easy reference. Notation will also be defined as it is introduced.
Appendix B Comparison to Related Work
In Table 2 we compare several bandit algorithms along several dimensions:
Setting refers to whether the algorithm is designed for general multi-armed bandit (non-contextual) structured problems or it is for the linear contextual case.
Objective function refers to the optimization problem solved by the algorithm. It can be either the original constrained optimization in (P) or a saddle point problem (either obtained by taking the ratio of objective and constraints or the Lagrangian relaxation in (Pz)).
Optimization variables refers to the variables that are optimized by the algorithm: counts is the variables in (P), rates is the ratio fraction of regret, policies is the variables in (Pz).
Asymptotic optimality is either order optimal when only a logarithmic rate is proved with non-optimal constants, or optimal, in which case the leading constant is as in Prop. 1.
Finite-time bound is whether finite-time guarantees are reported.
Explore/exploit refers to the separation between exploration and exploitation steps and whether it is based on a tracking performance test or on the generalized likelihood ratio test (GLRT).Notice that none of the algorithms implement the exact form of the GLRT, but slight variations that provide equivalent guarantees.
Tracking refers to how arms are selected during the exploration phase.
Optimization refers to whether the optimization problem is solved exactly at each step or using an incremental method. SPL combines an incremental method using an exact computation of a best response solution.
Exploration level refers to the technique used during exploration steps to guarantee a minimum level of exploration. The first option is forcing all arms to satisfy a hard threshold of minimal pulls. The second option is to include a form of optimism in the optimization problem.
Parameters list the major parameters in the definition of the algorithm. This is often difficult since some algorithms directly pick theoretical values for some input parameters, while others may provide specific values only during the analysis. OSSB requires tuning the forcing parameter and the parameter used in the exploration/exploitation test. OAM has a forcing parameter and needs to properly tune the GLRT. SPL requires clipping the gap estimates from below, tuning the GLRT, and designing suitable confidence intervals for optimism. SOLID requires an upper bound for the multiplier, tuning of the GLRT, confidence intervals, and phases to tune the normalization factor .
The major insights from this comparison can be summarized as follows:
Comparison SOLID/OAM: This is the more direct comparison, since both algorithms are designed for contextual linear (see Sect. 6 for the empirical comparison). SOLID improves over OAM in almost all dimensions. On the theoretical side, we provide explicit finite-time regret bounds showing that SOLID successfully adapts to the context distribution, while the performance of OAM is significantly affected by . Furthermore, in many lower-order regret terms in the analysis of OAM the cardinality of the arm space appears linearly, while the regret of SOLID only depends on . On the algorithmic side, SOLID leverages a primal-dual gradient descent that greatly improves the computational complexity compared to the exact solution of the constrained optimization problem done in OAM at each exploration step. Furthermore, replacing the forcing strategy with an optimistic version of the optimization problem allows SOLID to better adapt to the problem and avoid pulling highly suboptimal/non-informative arms.
Comparison SOLID/SPL: The comparison is more on the algorithmic and theoretical properties rather than the actual algorithms, since they are designed for different settings.While the general structured bandit problem does contain the linear case, it is unclear how it can manage the contextual linear case. While both algorithms replace the constrained problem in the lower bound by a saddle point problem, SPL takes the ratio between constraints and regret, while in SOLID we take a more straightforward Lagrangian relaxation. As a result, in SOLID we rely on a rather standard primal-dual gradient approach to optimize (Pz), while SPL relies on online learning algorithms for the solution of the saddle-point problem. Finally, both algorithms replace forcing by an optimistic version of the optimization problem. Nonetheless, SPL uses separate confidence intervals for each arm that ignore the structure of the problem, while SOLID relies on confidence intervals build specifically for the linear case. Finally, the regret bound of SPL, similarly to the one of OAM, depends linearly on in several lower-order terms, even when instantiated for linear structures. SOLID, on the other hand, has only dependence.
Appendix C Lower Bound
We start from the first result in Lem. 1, which states the minimal value of for which (Pz) is feasible. Clearly, the maximal value that the left-hand side of the KL constraint can assume is
which can also be interpreted as the solution to the associated pure-exploration (or best-arm identification) problem [e.g., 18]. Therefore,
This proves the first statement in Lem. 1.
In order to prove the second result, let us rewrite (Pz) in the following more convenient form:
Note that () is obtained from (Pz) in the main paper by performing the change of variables , hence the two problems are equivalent. Recall that is the optimal value of (P) and is the optimal value of () and (Pz) (if there exists one). We are interested in bounding the deviation between and as a function of .
Let us first define the following set of confusing models:
We now prove the bound on reported in Lem. 1.
We start from the Lagrangian version of ().
subject to for each context . Here is the optimal value of the Lagrange multiplier for the same problem. We distinguish two cases.
where is the optimal solution of (P). Since , we have that is less or equal to the value of the Lagrangian for , i.e.,
since . Since the KL divergence is lower-bounded by zero, in case 1 we have
where, as before, is the optimal solution of (P). Since for any , is well defined. Since also sums to for each context, we have that is less or equal to the value of the Lagrangian for , i.e.,
We first lower bound the infimum on the right hand side. We have
By definition of and , the infimum over the set of confusing models can be written as
where the equality holds since the KLs are zero in the optimal arms, which are the only arms where the values of differ from those of , and the inequality holds since is feasible. Regarding the infimum over the non-confusing models,
We partition the set of non-confusing models in two subsets:
Setting ,
Finally, we show that the optimal multiplier is bounded (regardless of which case falls into). Let , where is the pure-exploration solution obtained solving problem (Pz) with . Recall from the first statement of Lem. 1 that
since by assumption. Using the Slater’s condition (see e.g., Lem. 3 in ),
C.2 Discussion About Problem (Pz)
In this section we provide more intuition about the effect of explicitly adding the context distribution in the formulation of the lower bound. As mentioned in Sect. 3 the infimum in the original problem (P) may not be attainable, thus making it difficult to solve it and build a learning algorithm around it. A simple way to address this issue is to introduce a global constraint so that the sum of is constrained to a parameter . This leads to the optimization
Let be the optimal solution of () and be its associated optimal value. On the other hand, the problem (Pz) we propose can be easily rewritten as
where the constraint is now on each context and it depends on the context distribution ().Notice that the constraint directly implies . The crucial difference w.r.t. () is that now the number of samples prescribed by needs to be “compatible” with the amount of samples that can be collected within steps from each context depending on its probability . Let be the optimal solution of () and be its associated objective value. In order to understand how this difference may translate into a different behavior when integrated in an actual algorithm, let compare the two solutions and if executed for steps.We recall that, as discussed in Sect. 3, introduces a more finite-time flavor into the lower bound, where pulls should now be allocated so as to satisfy the KL-information constraint within steps. Since neither of them can be “played” (i.e., only one arm can be selected at each step), we need to define a specific execution strategy to “realize” an allocation . For the ease of exposition, let consider a simple strategy where in each context , an arm is pulled at random proportionally to . Let and the expected number of samples generated in each context-arm pair when sampling from and respectively. Then we have
which reveals how , which was explicitly optimized under the constraint that the total number of samples was , may not really be “realizable” in practice, since it ignores the context distribution and the number of samples that can be actually generated at each context . On the other hand, on average the desired allocation can always be realized within steps. Interestingly, the mismatch between and would no longer guarantee neither the performance “promised” by nor the feasibility for () (i.e., may not satisfy the KL-information constraint). This would make considerably more difficult to build a learning algorithm on than on .
As it can be noticed in Eq. 26, the level mismatch is due to the execution strategy used to realize the allocation (in this case, a simple sampling approach) and better solutions may exist. We could even consider to directly optimize the execution strategy so as to achieve a mismatch that induce an allocation that performs best in terms of regret minimization under the KL-information constraint. Given the obtained from (), we define the optimization problem
Interestingly, a simple change of variables reveals that () does coincide with () that we originally introduced (i.e., minimizes the problem). This illustrates that solving () indeed leads to the optimal allocation compatible with the context distribution and the constraint of realizations.
Appendix D Lagrangian Formulation
We discuss in more details the Lagrangian formulation presented in Section 3. Consider the following variant of (Pz):
This problem differs from (Pz) since we replaced the action gaps with the means in the objective function and avoided scaling the latter by . Let the optimal solution of () and be its associated value (if the problem is unfeasible we set ). Since the feasibility set is equivalent in (Pz) and () as we only changed the objective function, the following proposition is immediate.
Both (Pz) and () are feasible for ;
.
Due to the equivalence demonstrated in Prop. 3, in the remaining we shall occasionally write to denote both and .
We recall the Lagrangian relaxation problem of Sec. 3. For any , let denote the objective function and denote the KL constraint
The Lagrangian relaxation problem of () isIn the main text we actually state that (Pλ) is the Lagrangian relaxation of (Pz) instead of (). This is motivated by the fact that (Pλ) and (Pz) have the same optimal solution (see Prop. 3), though different optimal objective values.
We now verify that strong duality holds for the Lagrangian formulation (Pλ) (with respect to ()) when . This is immediate from the existence of a Slater point, as shown in the following proposition.
For any , there exists a strictly feasible solution , i.e., .
This is a direct consequence of the fact that
Thus, the optimal solution of (Pλ) is .
For any , if is a Slater point for (),
Using Lemma 2, we can prove the following result which will be very useful for the regret analysis.
For any ,
From Prop. 4, (the solution of the associated pure-exploration problem) is a Slater point for problem (Pz). Then, by Lemma 2,
where the last inequality holds for . This concludes the proof. ∎
Appendix E Action Sampling
SOLID does not use standard tracking approaches for action selection (e.g., cumulative tracking or direct tracking ) but a sampling strategy. Despite being simpler and more practical than tracking, we show that sampling from enjoys nice theoretical guarantees.
In the following lemmas we define the filtration as the -algebra generated by the -step history, .
Let be such that and is -measurable. Let be a sequence of i.i.d. contexts distributed according to and be such that . Then,
Let and be a random variable such that the -th exploration round occurs at time . Notice that is a strictly-increasing sequence (i.e., ) of stopping times w.r.t. . Furthermore, define
and let . Using Lem. 10 in , we have that is a martingale difference sequence. Therefore, by Azuma’s inequality
Let and rewrite . Fix any . Then,
In the last inequality, we used the fact that . Taking expectations and applying Azuma’s inequality with ,
The results holds for all , and the proof is concluded by summing over contexts and arms. ∎
Let be such that and is -measurable. Let be a sequence of i.i.d. contexts distributed according to and be such that . Let be a sequence of functions such that is -measurable for all . Then,
The proof follows the same steps as the one of Lemma 4. Fix . Let and be a random variable such that the -th exploration round occurs at time . Notice that is a strictly-increasing sequence (i.e., ) of stopping times w.r.t. . Furthermore, define
and let . Using Lem. 10 in , we have that is a martingale difference sequence (with differences bounded by ). Therefore, by Azuma’s inequality
Let and fix some . Then,
In the last inequality, we used the fact that . Taking expectations and applying Azuma’s inequality with ,
The results holds for all and the proof follows by summing over all . ∎
Lemma 4 provides an analogous result to those obtained by tracking strategies, where the empirical pull counts are shown close to the sequence of conditional probabilities computed by the optimizer. Despite being simpler, our sampling rule achieves similar efficiency as existing tracking rules. In particular, our bound scales with , a factor that appears in the tightest known analysis of cumulative tracking . The factor is not typically found in tracking strategies for MABs. However, we note that such dependency would naturally appear when generalizing these strategies to the contextual case.
Lemma 5 extends Lemma 4 to bound the deviation between expectations of measurable functions under the sequence of conditional probabilities and the same functions evaluated at the observed contexts/arms. This result will be very useful in the regret analysis to avoid undesirable linear dependencies on the number of arms.
Appendix F High-Probability Events
In this section, we report the high-probability events used through the paper. Refer to App. I.1 for concentration inequalities.
Let . We define the following events:
Furthermore, we define as the “good” event and let be the number of exploration rounds in which the good event does not hold. This can be bounded in expectation as follows.
Let be the number of exploration rounds in which the good event does not hold, then
Using the definition of together with the union bound,
The first and second term can be bounded by Lemma 5 by noticing that and that is -measurable and upper-bounded by at all time steps. Thus,
Similarly, the third term can be bounded by Lemma 5 by taking a union bound over all elements of (for a total of elements) and noting that each term is bounded by . Thus,
Here we used the fact that the absolute difference between two consecutive empirical means with samples bounded by cannot be larger than . We also used Lemma 7 to bound the second term. Finally, the fifth term can be directly bounded by Lemma 8:
Combining the five bounds concludes the proof. ∎
Appendix G Regret Proof
We start decomposing the regret based on whether holds or not:
Throughout the proof, as stated in the main theorem, we use and .
(App. G.2) Using the confidence set derived in App. J, we show that the regret suffered when the algorithm enters the exploitation step is finite;
(App. G.3.1) Using the properties of our action sampling strategy, we reduce the regret incurred during exploration rounds to the sum of objective values of the policies computed incrementally by primal-dual gradient ascent;
(App. G.3.2) By combining standard tools from convex optimization with the properties of our confidence intervals, we relate the sum of objective values at each phase to the corresponding optimal value and constraint violations;
(App. G.3.3) We relate the sum of constraints to the exploitation test used by SOLID. In particular, using the fact that the algorithm is not in the exploitation step, we show that the sum of constraints cannot be larger than ;
(App. G.3.5) By relating the upper bound on the sum of constraints computed at Step 3 and a lower bound on the same quantity, we obtain an upper bound on as a function of the chosen sequences ;
(App. G.3.6) We derive the final result by combining the bound on of Step 5 using the exponential schedule for with the partial regret bound of Step 4.
G.2 Regret during Exploitation
We show that the regret suffered when exploitation occurs is finite. Let , where was defined in Thm. 1. Then is the event under which the true model belongs to the confidence set, which holds with probability at least by the same theorem. We leverage this to decompose the regret during exploitation as:
The expectation of the second term is bounded by
where the first inequality is due to the fact that the good event holds and Cor. 1. This is a contradiction with respect to . Therefore, and cannot hold at the same time and the algorithm suffers no regret. Combining these results, we conclude
G.3 Regret under Exploration
The key challenge is to bound the regret during the exploration rounds. We proceed by following the steps outlined in App. G.1.
We decompose the regret incurred during exploration as
Refer to App. F for the definition of . The second term is , the number of exploration rounds in which the good event does not hold, and can be bounded in expectation by using Lem. 6. The first one can be bounded by using the good event. Suppose, without loss of generality, that and hold (if they do not, the following reasoning can be repeated for the last time step at which these events hold). Then, using (see App. F),
Using the definition of phase, we can rewrite the first summation as
which yields at most finite regret since is increasing. Let us now fix a phase and bound the regret during its exploration rounds (). Note that the optimization problem in each phase is feasible (see App. D). We have
Here we defined and as the number of exploration rounds during phase where the good event does not hold. The last term can be bounded by . Regarding the remaining two,
The second term will be bounded shortly over all phases by means of Lemma 12. We now provide a lower bound to term (b). The first step is to relate this to the objective function optimized by the algorithm. Using the definition of and Lem. 10,
In the last step, we used (which is by definition ) and defined .
To wrap-up the regret bound we have obtained so far, summing over all phases,
can be bounded by Lemma 12 and by Lemma 13. Both terms are of order . In order to simplify notation, we keep the specific bounds implicit in the remaining. Therefore, our partial regret bound is
Our goal here is to lower bound the sum of objective values. As before, fix some phase index and let be arbitrary. By recalling that the optimization process is reset at the beginning of each phase and using Corollary 2 with and (the optimal solution of problem (P)),
We recall that and are the maximum sub-gradients in and , respectively. We now lower-bound the first term on the right-hand side. Since , , , and , this term, evaluated on those steps where does not hold, can be lower-bounded by . For any step in which holds, the optimism property (Lemma 11) yields
Combining these two and using ,
Note that since by assumption is feasible for the optimization problem . Furthermore, . Therefore, we obtain the following lower-bound on the sum of optimal objective values:
where, for simplicity, we defined . Summing over all phases,
where we used , , and .
Our next step is to upper bound , the sum of constraints of the policies played by the algorithm during feasible phases (those with ). The intuition is that this term cannot be large (i.e., it cannot be above ), otherwise the exploitation test would trigger and we would not be exploring at step . Using the definition of (Eq. 3) and splitting the sum based on the good event
Note that in the first step above we implicitly upper bounded the sum of KLs on the feasible phases with the sum of KLs over all exploration rounds. We can use the definition of and the optimism (Lemma 11) to upper bound the first sum by
Furthermore, the first term can be upper bounded by replacing each set over which the infimum is taken by (if the two sets were different, such term would be zero). Therefore,
where we moved the infimum outside the outer sum and added the remaining steps where does not hold. Let and be the design matrix of the exploration rounds. Using the definition of ,
Recall that holds. Then, by using the definition of to bound the norm,
Here we used and upper bounded the KL at round by its maximum value. Moreover, similarly to Lem. 11 we can show that
The upper bound on the second term can be extracted from the proof of Lemma 13. The first term can be finally related to the exploitation test:
where the second-last inequality holds since , and the last inequality holds since the algorithm is exploring at step . By gathering all the results together, we get
So far we have (1) reduced the total regret during exploration to the sum of objective values (Eq. G.3.1), (2) related this quantity to the optimal values of each phase (Eq. 40), and (3) derived an upper bound to the total sum of constraints (Eq. 42). We now combine all these results. If we first plug (40) into (G.3.1),
Then, plugging (42) into this inequality,
Let us simplify this expression so that it becomes more readable. First, we note that
Taking the expectation of both sides, we obtain
The remaining expectations on the right-hand side are due to the fact that (hence ) is still random. Setting and combining the second and fourth terms, we get
where was defined in Lem. 1. For , we can use the perturbation bound (Lem. 1) on both terms. We obtain,
Plugging these bounds into the expected regret,
The six terms constituting the bound are (from left to right):
finite regret suffered in the phases where the optimization problem is infeasible;
finite regret suffered in the phases in which we do not know much about the convergence rate of to . This term is likely an artefact of the analysis;
regret suffered due to the incremental gradient updates and inversely proportional to the step sizes;
regret suffered due to the fact that we solve (Pz) instead of (P);
other low-order terms mostly due to the concentration bounds.
Note that, since and as ,
which is the asymptotically-optimal regret rate as prescribed by (P).
So far we proved an upper bound on the regret incurred during exploration which depends on the (random) number of phases. We now upper bound this random variable as a function of and . In particular, we achieve this by focusing on the constraints only. The intuition is that, if the primal-dual algorithm works, then the sequence of policies played cannot violate the constraints at each phase too much. At the same time, these policies cannot satisfy the constraints too much, otherwise the exploitation test would trigger and the algorithm would not be exploring at step . Relating these two we obtain a bound on .
Recall that, as we assumed before, is an exploration step in which the good event holds. Using (G.3.3) and the equations thereafter, we have
where the last two terms are .
We now provide a lower-bound on the same quantity. Fix a phase index . From (39), we have
The left-hand side can be upper-bounded by using the optimism property to obtain the true objective and constraint. Regarding the objective function, we have
Regarding the sum over the good events, using Lem. 11,
We can follow the same reasoning to upper bound the sum of constraints. Since the KLs are upper-bounded by ,
Let be the average policy played in phase . Since is linear and is concave, . We now set
Combining this with (G.3.5), we obtain the following inequality:
Recall that, by definition, . Furthermore, by Cauchy-Schwartz inequality, . Simplifying this a little,
We choose the exponential schedule and , where will be specified later. The left-hand side of (50) is
For , the resulting inequality yields , i.e., by definition of . Let us recall (G.3.4):
where we used that, from the definition of and , it must be that . Thus,
The total number of exploration rounds is
We consider two cases, based on which of the inner terms is the maximum. In the first case, we need to bound
Since , this term is . If the other term is the maximum, then the same procedure yields a dependency. Thus,
We have as in Term IV.
Using , we obtain the following bound on the expected regret during exploration:
Appendix H Worst-case Analysis (Proof of Thm. 3)
The proof follows a similar argument as the one of Thm. 2 but it is considerably simpler and shorter. In particular, the main simplifications come from two worst-case arguments. (1) While bounding the regret during exploration rounds, we use the naive bound . This is equivalent to assuming that SOLID never enters the exploitation step and it allows us to entirely avoid the bound on the number of phases of App. G.3.5. (2) We completely ignore the sequence and proceed as if the optimization problem (Pz) was infeasible in all phases. This makes the multiplier saturate to and facilitate the analysis of the resulting LagrangianRecall that the regret of SOLID is not defined in terms of the optimization problem (Pz) or its Lagrangian, but only in terms of the rewards of the chosen arms compared to those of the optimal arms. This makes it possible to obtain good regret guarantees even when solving an infeasible optimization problem.. An outline of the proof, together with the main differences w.r.t. the one of Thm. 2, is as follows.
We decompose the regret suffered during exploitation and exploration rounds. Using the same steps as in App. G, we bound the former by a constant and reduce the latter to the sum of objective values.
Instead of relating to the objective values of the optimal policies at each phase (as was done in App. G.3.2, we reduce our bound to the optimal solution of our bandit problem, i.e., the policy that only pulls optimal arms. This makes the sum of objective values cancel since the optimal policy achieves zero regret.
Using the results of App. G.3.3, we show that the sum of constraints is .
We use the naive bound to conclude the proof.
H.2 Proof
We start from the same regret decomposition as in App. G,
Refer to App. F for the definition of . The second term is , the number of exploration rounds in which the good event does not hold, and can be bounded in expectation by using Lem. 6. The first one can be bounded by using the good event. Suppose, without loss of generality, that and hold (if they do not, the following reasoning can be repeated for the last time step at which these events hold). Then, using (see App. F),
We now proceed using similar steps as in App. G.3.1, except that we ignore the phases. We decompose the first term as
The last term can be bounded by . Regarding the remaining two,
For the sake of readability, we keep the dependence on explicit. We will bound this term by Lem. 12 at the end of the proof. Regarding term (b), using the definition of and Lem. 10,
We recall that and . As for , we keep the dependence on explicit and defer bounding this term to the end of the proof. Using the bounds on (a) and (b) and plugging everything back into (H.2) and then into (52), we obtain
We now lower bound the sum of objective values. Here we proceed in a slightly different way with respect to the proof of the asymptotically optimal regret bound. Instead of relating to the objective values of the optimal policies at each phase , we reduce our bound to the optimal solution of our bandit problem, i.e., the policy that only pulls optimal arms. Let
Recall that . Fix some phase index and let be arbitrary. Using Corollary 2 with and ,
and and are the maximum sub-gradients in and , respectively. Note that, since we apply Corollary 2 to bound the sum of objective values over the whole phase, we have . We now lower-bound the first term on the right-hand side. We have
where (c) uses the definition of and (see Eq. 3 and Eq. 4), (d) uses the positivity of KL divergences and confidence intervals, and (e) uses and . Let us focus on the sum of objective values. Since , we have . For any step in which holds, the optimism property (see App. F and Lem. 11) yields
where we used the fact that by definition (56) and (54) and . Plugging this back into (H.2) and then into (57),
Summing over all phases and recalling that , , and , we obtain
Using the definition of (see Eq. 3),
By the definition of phase, the second term is . The first term can be bounded using exactly the same steps as in App. G.3.3.Note that the bound on the sum of constraints of App. G.3.3 uses only the properties of the confidence intervals and of the exploitation test. Thus, it is applicable regardless of the feasibility of the optimization problems at each phase. We obtain
If we now set and plug (H.2) into (60),
We can finally plug this into (55), thus obtaining
Let , then . Using the exponential schedule , and
After bounding , by Lem. 13, , while, by Lem. 12, Here we hide logarithmic terms in and .. Moreover, both and are by definition of the confidence set. Introducing ,
Recalling that the regret during exploitation rounds was bounded by and noting that , the regret term (first term of the bound above plus ) can be bounded by . Hence, the final regret bound can be written as
Appendix I Auxiliary Results
The proof follows Lem. B.1 in . Fix some and . Then,
where is the random time the -th exploration round occurs. Thus, by taking the expectation of both sides,
Since is a stopping-time upper bounded by and the number of samples used to compute is at least , we can apply Lemma 4.3 of :
The reasoning above holds for any and . Summing over concludes the proof. ∎
With some abuse of notation, let . Then, under the same conditions as in Theorem 1,
Let be a sequence of stopping times with respect to such that if , then the -th exploration round occurs at time . Then,
Since , we have . Taking expectations and applying Theorem 1,
I.2 Supporting Lemmas
The following result shows that any projection onto a non-empty convex set using a norm weighted by a positive definite matrix is a non-expansion. That is, the distance (in the chosen weighted norm) between the projected vector and any point in the set cannot increase w.r.t. the unprojected vector. We are not sure about a suitable citation for this result, so we include its proof.
Since ,
Let be any time step in which the good event holds. Then,
If holds, then . Since by definition, the set is non-empty (it contains itself). Then, the result follows from Lem. 9. ∎
The following result is immediate from the definition of good event and the non-expansion property of the projection used to compute .
Let be any time step in which the good event holds. Then,
Fix any and . Then,
where (a) is from Cauchy-Schwartz inequality, (b) from Cor. 1, and (c) from the definition of . ∎
Let and . Then, for any time step in which the good event (see App. F) holds,
Since and are non-negative, the first inequality is trivial by upper bounding the true mean for each by using the definition of and Lemma 10. Let us prove the second one. Fix any model . By using the definition of KL divergence of Gaussians with fixed variance, we have that:
where the first inequality is from and the second one is once again from the definition of and Lemma 10. Therefore,
We now upper bound the infimum over models in the alternative set. Note that such set can be fully specified once we assign an optimal arm to each context. Let and define
Note that . Then,
To see the last inequality, note that for all which do not contain only the optimal arms of (i.e., ), we have Recall that, by definition, ., and therefore the infimum is zero. Thus, the maximum must be attained by , which yields . This concludes the proof. ∎
and . ∎
Let be such that both and occur and suppose . Define
We start by noticing that, for all and ,
and thus . Here and denote the maximum and minimum eigenvalue of a matrix, respectively. Splitting the steps where the good event does and does not hold,
where in the first and second inequality we bounded the expected feature-norms by their maximum value and added/subtracted the first term with the true context distribution. In the last step we applied Lemma 12. We now focus exclusively on the third term. Using the fact that the good event holds at time ,
Finally, let denote the regularized design matrix computed using only the exploration rounds. Then, we have (since sum of rank-one matrices), which implies and thus . Here denotes the Loewner ordering, i.e., for two symmetric matrices we have () if is positive semi-definite (positive definite). Therefore,
where in (a) we equivalently rewritten the first term as a sum over exploration rounds, (b) is from Cauchy-Schwartz inequality, in (c) we used Lemma 11 of , and in (d) we used the determinant-trace inequality (Lemma 10 of ) to bound the determinant of by . The final statement follows by combining the previous bounds. ∎
I.3 Online Convex Optimization
Here we recall some basic results from online convex optimization. See [e.g., 29] for detailed proofs and discussion of these results.
Recall that the optimization process is reset at the beginning of each phase. Let be a random variable indicating the time at which the -th exploration round of phase occurs. Note that . In order to simplify the exposition, and with some abuse of notation, let and . By definition of the update rule, for each ,
Dividing by and rearranging,
Summing over all up to and noting that the first sum on the right-hand side is telescopic,
The proof is concluded by upper-bounding the second term by zero and mapping the exploration counter back to time steps. ∎
[Recursion bound for Online Mirror Descent (OMD)] Let be the uniform distribution over actions for each context and . For any phase , , and , the OMD updates of Algorithm 1 satisfy
We can follow the same steps as before, mapping time steps to exploration counters and then applying the standard recursion bound for OMD [e.g., 29]. ∎
The proof is straightforward by expanding and combining Lemma 15 with Lemma 14. ∎
Appendix J Confidence Set for Regularized Least-Squares (Proof of Thm. 1)
The following theorem is the extended version of Thm. 1. It provides a refined confidence set for the parameters estimated by regularized least-squares.
Let and . Then,
where , , and
Finally, we set and .
It is important to note that .
J.1 Proof of Thm. 4
The proof can be summarized in three main steps:
We extend Theorem 8 of to bound uniformly over all , instead of the prediction errors uniformly over all contexts/arms. This requires a second -cover (we shall call it ) of the set . The result is reported in Lemma 16.
The resulting bound is of order , which requires tuning to cancel the bias of the first cover asymptotically without compromising the size of the cover itself.
Hence vectors with norm at most actually suffice and thus we can set . Then we upper bound the size of this cover as
To recap, our cover has the following properties:
(this follows from the discretization used in and it implies that )
We use an extension of Thm. 8 of to bound the prediction error at vectors in the cover after applying the linear transformation .
and and .
The specific shape of the bound is obtained by exploiting the properties of the cover derived in the first step, where and .
We finally tune to obtain the final bound. With probability at least , we have that
where follows from Eq. 76, (b) from the fact that , holds with probability at least by Lem. 16 and by properties 1 and 3 of the cover . The statement of the theorem follows by setting and rearranging.
J.2 Proof of Lem. 16
The proof follows similar steps as in [7, Thm. 8].
Take any and . Then,
where (a) is from the definition of , (b) since with , (c) from the definition of , and (d) after rearranging. Let us bound (i). Since , we have
where we used . Therefore,
where the second inequality is by Cauchy-Schwartz inequality. Since , . This yields
Let us consider the second term. Since is random, we proceed using the same covering argument as in the proof in [7, Thm. 8]. Let (whose value will be specified later). Recall that our input is a finite set of -dimensional vectors such that and hold for all and . Note that the latter condition implies . Our goal is to build an -covering set of . Since this set is random, we build a deterministic one that contains the former almost surely and cover it instead. Note that, for any , is such that (1) , (2) , and (3) . Let denote the set of matrices with these properties, that is,
Then, we can show the following covering property in -norm.
(2) If , by the geometrical cover, we can find a point such that . Too see this, suppose, without loss of generality, that is positive. Note that, since lies in the range which is covered geometrically, there exists a real value such that . Then, if we set , we can easily verify the desired property. This implies
where the left-hand side is from the reverse triangle inequality. The statement follows by combining the two cases. ∎
Let us now go back to bounding term (ii) in Eq. 77. Let be the vector in our cover which is the closest to uniformly over all components. Then,
where in (d) we used the triangle inequality ( denotes the d-dimensional vector of ones), in (e) we used , and in (f) we upper bounded the maximum eigenvalue of by . Therefore, we conclude,
Term (b) can be bounded by Lemma 17. For any , with probability at least ,
Term (c) can be bounded by Lemma 20 (whose bound holds uniformly over all elements in ). Recall that for all . For any and , with probability at least ,
Note that, by definition of , . Hence, setting ,
where the last inequality is from for . This yields
Let us now bound . We have
where in the last inequality we used the previous bound on .
Putting (a), (b), and (c) together we obtain the following bound on (ii):
If we now set , we have . Setting and using , . Thus,
Furthermore, using (78), the log-size of the cover is
To conclude the proof, we notice that the derivation above holds uniformly for all and with probability at least since we applied both Lemma 17 (for term (b) in (ii)) and Lemma 20 (for term (c) in (ii)). Thus, the statement follows by setting . ∎
J.3 Auxiliary Results
[Lemma 9 of ] Let be a stopping time with respect to filtration and . Then, for any , with probability at least ,
The following result is a specialization of Lemma 2.6 of or Lemma 4.2 of .
The result follows straightforwardly from Lemma 2.6 of or Lemma 4.2 of after optimizing for . ∎
The proof uses the same peeling argument as in but follows different steps.
where (a) uses a union bound, (b) holds since is non-decreasing, and (c) is from Lemma 18. Using the definition of ,
Since , we have that suffices to have . Setting ,
The result follows by setting and . ∎
The following result can be derived using a similar argument as in the proof of Lemma 15 of .
where and are those defined in Lemma 19.
is a sum of Gaussian random variables adapted to such that
where the last inequality is from . Therefore, using Lemma 19, with probability at least ,
The result follows after taking a union bound over all elements in . ∎
Appendix K Additional Experiments
In our implementation of SOLID, we ignore the projection of the parameters computed by regularized least squares onto . Moreover, we remove the restriction that the alternative parameters should lie in . That is, we use
and similarly for . In this case, for linear bandits with Gaussian noise, the infimum over alternative models in the constraint of (P) can be computed in closed form as
where and . The same closed-form can be used for the infimum in the constraint (3). Regarding the exploitation test, we restrict the set of alternative reward parameters to those with “incompatible” optimal arm in the last observed context. That is, we use the test
K.2 Experiment Configurations
We provide the detailed configurations of the experiments reported in the main paper. We use the same confidence intervals in all experiments. For SOLID, we set and as prescribed by Thm. 1 (without numerical constants). For OAM, we use the same for the exploitation test. For LinUCB, we use the confidence set of without numerical constants. Similarly, we implement LinTS as defined in but without the extra-sampling factor used to prove its frequentist regret. All plots are the results of runs with Student’s t confidence intervals.
In both experiments, for SOLID we set , , and we normalize the gradients by context in -norm. We do not reset the optimizer at the beginning of each phase. We use the theoretical exponential schedule for and as defined in Thm. 2. We set , for the first experiment and , for the second one. The reward noise is in the first experiment and in the second one.
K.3 Parameter Analysis
We provide an empirical study of how different choices for the relevant parameters of SOLID affect the algorithm’s performance in the toy problem of Sec. 6. We note that the purpose of this section is to build some intuition on how SOLID behaves with different parameters rather than assessing which configurations are globally better.
We use the two-context toy problem of Sec. 6 with and . We study the effect of the following parameters, with corresponding default values.
(default ): the initial normalization factor;
(default ): the initial multiplier;
(default ): learning rate for . We keep it fixed instead of decreasing with the phase length as suggested by the theory;
(default ): learning rate for . We keep it fixed as for ;
(default , ): the schedule for the phase length. We use the one for which we derive regret guarantees by default but we also experiment with other schedules. By default we do not reset the optimizer at the beginning of each phase.
We vary each parameter in a suitable range while keeping all the others fixed to their default values. The results are described in the following paragraphs.
As mentioned in the main paper, the initial value of the parameter controls both the feasibility of the optimization problem and the trade-off between minimizing regret and gathering information about the optimal arms when is small. While a small value of might lead SOLID to collect a large amount of information, this might bring high finite regret as derived in the regret bound. Fig. 3(left) confirms this claim, where the value suffers high initial regret but the resulting curve has a better slope.
Though the initial multiplier has no particular impact on the regret bound, in practice it induces a behavior similar to , where larger values lead SOLID to collect more information about in the very first learning steps (see Fig. 3(right)).
Fig. 4 shows the effect of varying and . In this particular case, seems to have no remarkable effect on SOLID’s performance. On the other hand, the algorithm is quite sensible to the choice of , with very small values performing poorly since the policy is updated rarely and remains close to uniform for a long time. More aggressive step sizes seem to yield the best performance.
We test different schedules for and with respect to the one prescribed by the theory. We have (exp-exp), (lin-exp), (lin-pol), and (lin-lin). Fig. 5(left) shows the result (here we set to better highlight the contribution of the different schedules). The exponential schedules are as expected more conservative since the algorithm spends more time optimizing with small values of (i.e., seeks more information). The linear and polynomial schedules behave, on the other hand, more greedily and suffer less regret, though the resulting curve has larger slope.
We also test the effect of resetting the optimizer (middle and right plots in Fig. 5). We see that resetting the optimizer does not significantly affect the algorithm’s performance both in case and . This is likely due to the fact that phases are long (thanks to the exponential schedule) and that the algorithm spends many steps in the exploit phase, where no optimization is performed.
We compare the sampling strategy adopted by SOLID with the popular direct and cumulative tracking rules. Interestingly, Fig. 6(left) shows that sampling from constitutes a nice trade-off between cumulative tracking and the more aggressive direct tracking. Note that, while our theoretical results can be easily derived for cumulative tracking, we do not know whether the same can be done for direct tracking.
We note that the test performed by SOLID in order to decide whether to explore or exploit is slightly different from the one adopted in OAM. In fact, the closed-form of the infimum over the alternative set (Eq. 80) leads to terms of the form while OAM uses . We verify empirically (Fig. 6(right)) that the two tests lead to very similar performance.
K.4 Real Dataset
We report additional results on real data. We use the Jester Dataset which consists of joke ratings in a continuous range from to for a total of jokes and 73421 users. We select a subset of 40 jokes and 19181 users rating all these 40 jokes.
We build a linear contextual problem as follows. We first extract separate -dimensional user (context) and joke (arm) features via a low-rank matrix factorization. Then, we concatenate these user and joke features (thus obtaining vectors with entries) and fit a neural-network with ReLU non-linearities to predict the ratings of a random subset of of the users, using these feature vectors as inputs. We obtain on the remaining users. Finally, we take the features extracted in the last layer of the network as the features for our bandit problem and the parameters of the same layer as . Rewards in our bandit problem are generated from this linear model by perturbing the prediction with noise. We thus obtain a problem with (the hidden neurons plus the bias term), arms (the jokes), and a total of users.
We run the algorithms for steps, with each run randomizing a subset of of the total users (hence = 191) and using all arms. For SOLID, we use the same parameters as in the experiment with random models. Due to the computational bottleneck demonstrated in the previous experiments, we could not run OAM on this problem. The results are shown in Figure 7 and confirm that SOLID achieves superior performance than the other baselines.