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 tt the learner observes a context XtX_{t} drawn from a context distribution ρ\rho, pulls an arm AtA_{t}, and receives a reward YtY_{t} drawn from a distribution whose expected value is a linear combination between dd-dimensional features ϕ(Xt,At)\phi(X_{t},A_{t}) describing context and arm, and an unknown parameter θ⋆\theta^{\star}. 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 θ⋆\theta^{\star} and thus the optimal arm. Optimistic algorithms naturally discard suboptimal arms and thus may miss the chance to acquire information about θ⋆\theta^{\star} 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 ∣A∣|\mathcal{A}|. Finally, the regret analysis reveals a critical dependence on the inverse of the smallest probability of a context (i.e., min⁡xρ(x)\min_{x}\rho(x)), 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 log⁡∣A∣\log|\mathcal{A}| and without any dependence on min⁡xρ(x)\min_{x}\rho(x). To this purpose, we introduce a new concentration bound for regularized least-squares that scales as O(log⁡t+dlog⁡log⁡t)\mathcal{O}(\log t+d\log\log t), hence removing the dlog⁡td\log t dependence of the bound in . Moreover, we establish a O~((d+∣X∣)dn)\widetilde{\mathcal{O}}((\sqrt{d}+|\mathcal{X}|)\sqrt{dn}) worst-case regret bound for any CLB problem with ∣X∣|\mathcal{X}| contexts, dd features, and horizon nn. Notably, this is implies that SOLID is the first algorithm to be simultaneously asymptotically optimal and minimax optimal when ∣X∣≤d|\mathcal{X}|\leq\sqrt{d} (e.g., in non-contextual linear bandits, when ∣X∣=1|\mathcal{X}|=1).

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 θ⋆\theta^{\star} using tt samples as θ^t:=V‾t−1Ut\widehat{\theta}_{t}:=\overline{V}_{t}^{-1}U_{t}, where V‾t:=∑s=1tϕ(Xs,As)ϕ(Xs,As)T+νI\overline{V}_{t}:=\sum_{s=1}^{t}\phi(X_{s},A_{s})\phi(X_{s},A_{s})^{\mathsf{T}}+\nu I, with ν≥max⁡{L2,1}\nu\geq\max\{L^{2},1\} and II the d×dd\times d identity matrix, and Ut:=∑s=1tϕ(Xs,As)YsU_{t}:=\sum_{s=1}^{t}\phi(X_{s},A_{s})Y_{s}. The estimator θ^t\widehat{\theta}_{t} satisfies the following concentration inequality (see App. J for the proof and exact formulation).

Let δ∈(0,1)\delta\in(0,1), n≥3n\geq 3, and θ^t\widehat{\theta}_{t} be a regularized least-square estimator obtained using t∈[n]t\in[n] samples collected using an arbitrary bandit strategy π:={πt}t≥1\pi:=\{\pi_{t}\}_{t\geq 1}. Then,

where cn,δc_{n,\delta} is of order O(log⁡(1/δ)+dlog⁡log⁡n)\mathcal{O}(\log(1/\delta)+d\log\log n).

For the usual choice δ=1/n\delta=1/n, cn,1/nc_{n,1/n} is of order O(log⁡n+dlog⁡log⁡n)\mathcal{O}(\log n+d\log\log n), which illustrates how the dependency on dd is on a lower-order term w.r.t. nn (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 π:={πt}t≥1\pi:=\{\pi_{t}\}_{t\geq 1} by a uniformly good bandit strategy then,

where v⋆(θ⋆)v^{\star}(\theta^{\star}) is the value of the optimization problem

where Ω={ω(x,a)≥0∣∀x∈X:∑a∈Aω(x,a)=1}\Omega=\{\omega(x,a)\geq 0\mid\forall x\in\mathcal{X}:\sum_{a\in\mathcal{A}}\omega(x,a)=1\} is the probability simplex. We denote by ωz,θ⋆⋆\omega^{\star}_{z,\theta^{\star}} the optimal solution of (Pz) and u⋆(z,θ⋆)u^{\star}(z,\theta^{\star}) its associated value (if the problem is unfeasible we set u⋆(z,θ⋆)=+∞u^{\star}(z,\theta^{\star})=+\infty). Inspecting (Pz), we notice that zz serves as a global constraint on the number of samples. In fact, for any ω∈Ω\omega\in\Omega, the associated number of samples η(x,a)\eta(x,a) allocated to a context-arm pair (x,a)(x,a) is now zρ(x)ω(x,a)z\rho(x)\omega(x,a). Since ρ\rho is a distribution over X\mathcal{X} and ∑aω(x,a)=1\sum_{a}\omega(x,a)=1 in each context, the total number of samples sums to zz. 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 zz 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 xx is indeed constrained to zρ(x)z\rho(x). This constraint crucially makes (Pz) more context aware and forces the solution ω\omega 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 ρmin⁡\rho_{\min}, 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 zz for which (Pz) is feasible. Interestingly, z‾(θ⋆)<+∞\underline{z}(\theta^{\star})<+\infty 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 θ⋆\theta^{\star}. As zz increases, ωz,θ⋆⋆\omega^{\star}_{z,\theta^{\star}} 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 z≥z‾(θ⋆)z\geq\overline{z}(\theta^{\star}), the error decreases approximately at a rate 1/z1/\sqrt{z} showing that the solution of (Pz) can be made arbitrarily close to v⋆(θ⋆)v^{\star}(\theta^{\star}).

In designing our learning algorithm, we build on the Lagrangian relaxation of (Pz). For any ω∈Ω\omega\in\Omega, let f(ω;θ⋆)f(\omega;\theta^{\star}) denote the objective function and g(ω,z;θ⋆)g(\omega,z;\theta^{\star}) 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 θ^t\widehat{\theta}_{t}, separates exploration steps, where arms are pulled according to the exploration policy ωt\omega_{t}, 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 θ^t\widehat{\theta}_{t}. At the beginning of each step tt, SOLID first computes inf⁡θ′∈Θ‾t−1∥θ~t−1−θ′∥V‾t−12\inf_{\theta^{\prime}\in\overline{\Theta}_{t-1}}\|\widetilde{\theta}_{t-1}-\theta^{\prime}\|_{\overline{V}_{t-1}}^{2}, where Θ‾t−1={θ′∈Θ ∣ ∃x∈X, aθ~t−1⋆(x)≠aθ′⋆(x)}\overline{\Theta}_{t-1}=\{\theta^{\prime}\in\Theta\ |\ \exists x\in\mathcal{X},\ a^{\star}_{\widetilde{\theta}_{t-1}}(x)\neq a^{\star}_{\theta^{\prime}}(x)\} is the set of alternative models. This quantity measures the accuracy of the algorithm, where the infimum over alternative models defines the problem θ′\theta^{\prime} that is closest to θ~t−1\widetilde{\theta}_{t-1} 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 XtX_{t}. 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 θ⋆\theta^{\star}, since if θ∗=θ′\theta^{*}=\theta^{\prime} then selecting arms according to θ~t−1\widetilde{\theta}_{t-1} would lead to linear regret. If the accuracy exceeds a threshold βt−1\beta_{t-1}, then SOLID performs an exploitation step, where the estimated optimal arm aθ~t−1⋆(Xt)a^{\star}_{\widetilde{\theta}_{t-1}}(X_{t}) is selected in the current context. On the other hand, if the test fails, the algorithm moves to an exploration step, where an arm AtA_{t} is sampled according to the estimated exploration policy ωt(Xt,⋅)\omega_{t}(X_{t},\cdot). While this approach is considerably simpler than standard tracking strategies (e.g., selecting the arm with the largest gap between the policy ωt\omega_{t} and the number of pulls), in Sect. 5 we show that sampling from ωt\omega_{t} achieves the same level of tracking efficiency.

Optimistic primal-dual subgradient descent. At each step tt, we define an estimated optimistic version of the Lagrangian relaxation (Pλ) as

where γt\gamma_{t} 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, hth_{t} is not necessarily optimistic with respect to the original Lagrangian function hh. Nonetheless, we prove in Sect. 5 that this level of optimism is sufficient to induce enough exploration to have accurate estimates of θ⋆\theta^{\star}. This is in contrast with the popular forced exploration strategy [e.g. 7, 15, 19, 16], which prescribes a minimum fraction of pulls ϵ\epsilon such that at any step tt, any of the arms with less than ϵSt\epsilon S_{t} pulls is selected, where StS_{t} is the number of exploration rounds so far. While this strategy is sufficient to guarantee a minimum level of accuracy for θ^t\widehat{\theta}_{t} 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 tt, SOLID updates the estimates of the optimal exploration policy ωt\omega_{t} and the Lagrangian multiplier λt\lambda_{t}. In particular, given the sub-gradient qtq_{t} of ht(ωt,λt,zKt)h_{t}(\omega_{t},\lambda_{t},z_{K_{t}}), SOLID updates ωt\omega_{t} and λt\lambda_{t} by performing one step of projected sub-gradient descent with suitable learning rates αKtω\alpha^{\omega}_{K_{t}} and αKtλ\alpha^{\lambda}_{K_{t}}. In the update of ωt\omega_{t}, we perform the projection onto the simplex Ω\Omega using an entropic metric, while the multiplier is clipped in [0,λmax⁡][0,\lambda_{\max}]. While this is a rather standard primal-dual approach to solve the Lagrangian relaxation (Pλ), the interplay between estimates θ^t\widehat{\theta}_{t}, ρt\rho_{t}, the optimism used in hth_{t}, 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 zz parameter. While the primal-dual algorithm is guaranteed to converge to the solution of (Pz) for any fix zz, it may be difficult to properly tune zz to control the error w.r.t. (P). SOLID leverages the fact that the error scales as 1/z1/\sqrt{z} (Lem. 1 for zz sufficiently large) and it increases zz over time. Given as input two non-decreasing sequences {pk}k\{p_{k}\}_{k} and {zk}k\{z_{k}\}_{k}, at each phase kk, SOLID uses zkz_{k} in the computation of the subgradient of hth_{t} and in the definition of ftf_{t} and gtg_{t}. After pkp_{k} explorative steps, it resets the policy ωt\omega_{t} and the multiplier λt\lambda_{t} and transitions to phase k+1k+1. Since pk=STk+1−1−STk−1p_{k}=S_{T_{k+1}-1}-S_{T_{k}-1} is the number of explorative steps of phase kk starting at time TkT_{k}, the actual number of steps during kk may vary. Notice that at the end of each phase only the optimization variables are reset, while the learning variables (i.e., θ^t\widehat{\theta}_{t}, V‾t\overline{V}_{t}, and ρ^t\widehat{\rho}_{t}) 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 λmax⁡≥2BLz‾(θ⋆)\lambda_{\max}\geq 2BL\underline{z}(\theta^{\star}).

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 λmax⁡\lambda_{\max} by an increasing sequence as done for {zk}k\{z_{k}\}_{k}.

Consider a contextual linear bandit problem with contexts X\mathcal{X}, arms A\mathcal{A}, reward parameter θ⋆\theta^{\star}, features bounded by LL, zero-mean Gaussian noise with variance σ2\sigma^{2} and context distribution ρ\rho satisfying Asm. 1. If SOLID is run with confidence values βt−1=cn,1/n\beta_{t-1}=c_{n,1/n} and γt=cn,1/St2\gamma_{t}=c_{n,1/S_{t}^{2}}, where cn,δc_{n,\delta} is defined as in Thm. 1, learning rates αkλ=αkω=1/pk\alpha_{k}^{\lambda}=\alpha_{k}^{\omega}=1/\sqrt{p_{k}} and increasing sequences zk=z0ekz_{k}=z_{0}e^{k} and pk=zke2kp_{k}=z_{k}e^{2k}, for some z0≥1z_{0}\geq 1, then it is asymptotically optimal with the same constant as in the lower bound of Prop. 1. Furthermore, for any finite nn 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 ∣A∣|\mathcal{A}| directly in the main O(log⁡n)\mathcal{O}(\log n) regret terms. While the regret analysis of OAM is asymptotic, it is possible to identify several lower-order terms depending linearly on ∣A∣|\mathcal{A}|. 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 ∣A∣|\mathcal{A}| is hard-coded into the algorithm and cannot be improved by a better analysis. SPL depends linearly on ∣A∣|\mathcal{A}| in the explore/exploit threshold (the equivalent of our βt\beta_{t}) 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 ∣A∣|\mathcal{A}| 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 ∣A∣|\mathcal{A}|.

The constant regret term depends on the context distribution through z‾(θ⋆)\overline{z}(\theta^{\star}) (Lem. 1). Nonetheless, this dependency disappears whenever z0z_{0} is a fraction z‾(θ⋆)\overline{z}(\theta^{\star}). This is in striking contrast with OAM, whose analysis includes several terms depending on the inverse of the context probability ρmin⁡\rho_{\min}. 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 nn. Refer to App. G.3 for a regret bound highlighting the explicit dependence on the sequences {zk}\{z_{k}\} and {pk}\{p_{k}\}.

Worst-case analysis. The constant terms in Thm. 2 are due to a naive bound which assumes linear regret in those phases where zkz_{k} 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 zkz_{k}. For the following result, we do not require Asm. 2 to hold.

Let zkz_{k} be arbitrary, pk=erkp_{k}=e^{rk} for some constant r≥1r\geq 1, and the other parameters be the same as in Thm. 2. Then, for any nn the regret of SOLID is bounded as

Notably, this bound removes the dependencies on z‾(θ⋆)\underline{z}(\theta^{\star}) and z‾(θ⋆)\overline{z}(\theta^{\star}), while its derivation is agnostic to the values of zkz_{k}. Interestingly, we could set λmax⁡=0\lambda_{\max}=0 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 σ2\sigma^{2} or a quadratic dependence on BLBL 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 O~((d+∣X∣)dn+log⁡∣A∣n)\widetilde{\mathcal{{O}}}((\sqrt{d}+|\mathcal{X}|)\sqrt{dn}+\log|\mathcal{A}|\sqrt{n}), which matches the minimax optimal rate apart from the dependence on ∣X∣|\mathcal{X}| (see , Sec. 24.1). We believe the latter could be reduced to ∣X∣\sqrt{|\mathcal{X}|} 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 ∣X∣|\mathcal{X}|.

Numerical Simulations

We compare SOLID to LinUCB, LinTS, and OAM. For SOLID, we set βt=σ2(log⁡(t)+dlog⁡log⁡(n))\beta_{t}=\sigma^{2}(\log(t)+d\log\log(n)) and γt=σ2(log⁡(St)+dlog⁡log⁡(n))\gamma_{t}=\sigma^{2}(\log(S_{t})+d\log\log(n)) (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 βt\beta_{t} for the explore/exploit test and we try different values for the forced-exploration parameter ϵ\epsilon. 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 d\sqrt{d} used to prove its frequentist regret. All plots are the results of 100100 runs with 95%95\% 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 ∣X∣=2|\mathcal{X}|=2 and ∣A∣,d=3|\mathcal{A}|,d=3. Let xix_{i} (aia_{i}) be the ii-th context (arm). We have ϕ(x1,a1)=\phi(x_{1},a_{1})=, ϕ(x1,a2)=\phi(x_{1},a_{2})=, ϕ(x1,a3)=[1−ξ,2ξ,0]\phi(x_{1},a_{3})=[1-\xi,2\xi,0], ϕ(x2,a1)=[0,0.6,0.8]\phi(x_{2},a_{1})=[0,0.6,0.8], ϕ(x2,a2)=\phi(x_{2},a_{2})=, ϕ(x2,a3)=[0,ξ/10,1−ξ]\phi(x_{2},a_{3})=[0,\xi/10,1-\xi] and θ⋆=\theta^{\star}=. We consider a balanced context distribution ρ(x1)=ρ(x2)=0.5\rho(x_{1})=\rho(x_{2})=0.5. 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 ξ\xi small, an optimistic strategy pulls a2a_{2} in x1x_{1} and a1a_{1} in x2x_{2} only a few times since their gap is quite large, and suffers high regret (inversely proportional to ξ\xi) 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 θ⋆\theta^{\star}, which in turns avoids a regret scaling with ξ\xi. 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 nn, 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 ϵ=0.0\epsilon=0.0, 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 η⋆\eta^{\star} where the only sub-optimal arm with non-zero pulls is a1a_{1} in x2x_{2} since it yields lower regret and similar information than a2a_{2} in x1x_{1}. This means that the lower bound prescribes a greedy policy in x1x_{1}, deferring exploration to x2x_{2} alone. In practice, tracking this optimal allocation might lead to poor finite-time performance when the context distribution is unbalanced towards x1x_{1}, in which case the algorithm would take time proportional to 1/ρ(x2)1/\rho(x_{2}) before performing any meaningful exploration. We verify these intuitions empirically by considering the case of ρ(x1)=0.9\rho(x_{1})=0.9 and ρ(x1)=0.99\rho(x_{1})=0.99 (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 ρmin⁡\rho_{\min}. On the other hand, OAM is more severely affected by the context distribution. In particular, its performance with ϵ=0\epsilon=0 significantly decreases when increasing ρ(x1)\rho(x_{1}) 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 a2a_{2} in x1x_{1}, which is however not prescribed by the lower bound.

Random problems. We evaluate the impact of the number of actions ∣A∣|\mathcal{A}| in randomly generated structured problems with d=8d=8 and ∣X∣=4|\mathcal{X}|=4. We run each algorithm for n=50000n=50000 steps. For OAM, we set forced-exploration ϵ=0.01\epsilon=0.01 and solve (P) every 100100 rounds to speed-up execution as computation becomes prohibitive. The plots in Fig. 2 show the regret over time for ∣A∣=4,8,16,32|\mathcal{A}|=4,8,16,32. 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 ∣A∣|\mathcal{A}|, thus supporting its theoretical analysis. On the other hand, the regret of OAM scales poorly with ∣A∣|\mathcal{A}| 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 ∣X∣>d|\mathcal{X}|>\sqrt{d}. 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 η\eta variables in (P), rates is the ratio fraction of regret, policies is the ω\omega 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 v⋆(θ)v^{\star}(\theta) 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 zz.

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 ρmin⁡\rho_{\min}. 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 log⁡(∣A∣)\log(|\mathcal{A}|). 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 ∣A∣|\mathcal{A}| in several lower-order terms, even when instantiated for linear structures. SOLID, on the other hand, has only log⁡(∣A∣)\log(|\mathcal{A}|) dependence.

Appendix C Lower Bound

We start from the first result in Lem. 1, which states the minimal value of zz 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 (Pz′\text{P}^{\prime}_{z}) is obtained from (Pz) in the main paper by performing the change of variables η(x,a)=zω(x,a)\eta(x,a)=z\omega(x,a), hence the two problems are equivalent. Recall that v⋆(θ⋆)v^{\star}(\theta^{\star}) is the optimal value of (P) and u⋆(z,θ⋆)u^{\star}(z,\theta^{\star}) is the optimal value of (Pz′\text{P}^{\prime}_{z}) and (Pz) (if there exists one). We are interested in bounding the deviation between u⋆(z,θ⋆)u^{\star}(z,\theta^{\star}) and v⋆(θ⋆)v^{\star}(\theta^{\star}) as a function of zz.

Let us first define the following set of confusing models:

We now prove the bound on u⋆(z,θ)u^{\star}(z,\theta) reported in Lem. 1.

We start from the Lagrangian version of (Pz′\text{P}^{\prime}_{z}).

subject to ∑a∈Aη(x,a)=z\sum_{a\in\mathcal{A}}\eta(x,a)=z for each context x∈Xx\in\mathcal{X}. Here λ⋆(z,θ⋆)\lambda^{\star}(z,\theta^{\star}) is the optimal value of the Lagrange multiplier for the same problem. We distinguish two cases.

where η⋆\eta^{\star} is the optimal solution of (P). Since ∑aη‾(x,a)=z\sum_{a}\overline{\eta}(x,a)=z, we have that u⋆(z,θ⋆)u^{\star}(z,\theta^{\star}) is less or equal to the value of the Lagrangian for η=η‾\eta=\overline{\eta}, i.e.,

since Δθ⋆(x,aθ⋆⋆(x))=0\Delta_{\theta^{\star}}(x,a^{\star}_{\theta^{\star}}(x))=0. Since the KL divergence dx,a(θ⋆,θ′)d_{x,a}(\theta^{\star},\theta^{\prime}) is lower-bounded by zero, in case 1 we have

where, as before, η⋆\eta^{\star} is the optimal solution of (P). Since z≥∑a≠aθ⋆⋆(x)η⋆(x,a)/ρ(x)z\geq\sum_{a\neq a^{\star}_{\theta^{\star}}(x)}\eta^{\star}(x,a)/\rho(x) for any x∈Xx\in\mathcal{X}, η‾\overline{\eta} is well defined. Since η‾\overline{\eta} also sums to zz for each context, we have that u⋆(z,θ)u^{\star}(z,\theta) is less or equal to the value of the Lagrangian for η=η‾\eta=\overline{\eta}, i.e.,

We first lower bound the infimum on the right hand side. We have

By definition of η‾\overline{\eta} and η⋆\eta^{\star}, 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 η‾\overline{\eta} differ from those of η⋆\eta^{\star}, and the inequality holds since η⋆\eta^{\star} is feasible. Regarding the infimum over the non-confusing models,

We partition the set of non-confusing models in two subsets:

Setting ϵz=2σ2z\epsilon_{z}=\sqrt{\frac{2\sigma^{2}}{z}},

Finally, we show that the optimal multiplier λ⋆(z,θ⋆)\lambda^{\star}(z,\theta^{\star}) is bounded (regardless of which case zz falls into). Let η‾=zω‾\underline{\eta}=z\underline{\omega}, where ω‾=ωz‾,θ⋆⋆\underline{\omega}=\omega^{\star}_{\underline{z},\theta^{\star}} is the pure-exploration solution obtained solving problem (Pz) with z‾(θ⋆)\underline{z}(\theta^{\star}). Recall from the first statement of Lem. 1 that

since z>z‾(θ⋆)z>\underline{z}(\theta^{\star}) 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 η\eta is constrained to a parameter zz. This leads to the optimization

Let η~z⋆\widetilde{\eta}^{\star}_{z} be the optimal solution of (P~z\widetilde{P}_{z}) and u~z⋆\widetilde{u}^{\star}_{z} 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 (ω(x,a)=η(x,a)zρ(x)\omega(x,a)=\frac{\eta(x,a)}{z\rho(x)}).Notice that the constraint directly implies ∑x,aη(x,a)=z\sum_{x,a}\eta(x,a)=z. The crucial difference w.r.t. (P~z\widetilde{P}_{z}) is that now the number of samples prescribed by η\eta needs to be “compatible” with the amount of samples that can be collected within zz steps from each context xx depending on its probability ρ(x)\rho(x). Let ηz⋆\eta^{\star}_{z} be the optimal solution of (PzP_{z}) and uz⋆u^{\star}_{z} 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 η~z⋆\widetilde{\eta}^{\star}_{z} and ηz⋆\eta^{\star}_{z} if executed for zz steps.We recall that, as discussed in Sect. 3, zz 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 zz 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 η\eta. For the ease of exposition, let consider a simple strategy where in each context xx, an arm aa is pulled at random proportionally to η(x,a)\eta(x,a). Let ζ~z(x,a)\widetilde{\zeta}_{z}(x,a) and ζz(x,a)\zeta_{z}(x,a) the expected number of samples generated in each context-arm pair (x,a)(x,a) when sampling from η~z⋆\widetilde{\eta}^{\star}_{z} and ηz⋆\eta^{\star}_{z} respectively. Then we have

which reveals how η~z⋆(x,a)\widetilde{\eta}^{\star}_{z}(x,a), which was explicitly optimized under the constraint that the total number of samples was zz, 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 xx. On the other hand, on average the desired allocation ηz⋆\eta^{\star}_{z} can always be realized within zz steps. Interestingly, the mismatch between η~z⋆(x,a)\widetilde{\eta}^{\star}_{z}(x,a) and ζ~z(x,a)\widetilde{\zeta}_{z}(x,a) would no longer guarantee neither the performance u~z⋆\widetilde{u}^{\star}_{z} “promised” by η~z⋆\widetilde{\eta}^{\star}_{z} nor the feasibility for (P~z\widetilde{P}_{z}) (i.e., ζ~z(x,a)\widetilde{\zeta}_{z}(x,a) may not satisfy the KL-information constraint). This would make considerably more difficult to build a learning algorithm on η~z⋆\widetilde{\eta}^{\star}_{z} than on ηz⋆\eta^{\star}_{z}.

As it can be noticed in Eq. 26, the level mismatch is due to the execution strategy used to realize the allocation η~z⋆\widetilde{\eta}^{\star}_{z} (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 αz(x,a)\alpha_{z}(x,a) that induce an allocation ζ~z(x,a)\widetilde{\zeta}_{z}(x,a) that performs best in terms of regret minimization under the KL-information constraint. Given the η~z⋆\widetilde{\eta}^{\star}_{z} obtained from (P~z\widetilde{P}_{z}), we define the optimization problem

Interestingly, a simple change of variables reveals that (P~α\widetilde{P}_{\alpha}) does coincide with (PzP_{z}) that we originally introduced (i.e., α⋆(x,a)=ηz⋆(x,a)η~z⋆(x,a)\alpha^{\star}(x,a)=\frac{\eta^{\star}_{z}(x,a)}{\widetilde{\eta}^{\star}_{z}(x,a)} minimizes the problem). This illustrates that solving (PzP_{z}) indeed leads to the optimal allocation compatible with the context distribution and the constraint of zz 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 zz. Let ω‾z,θ⋆⋆\overline{\omega}^{\star}_{z,\theta^{\star}} the optimal solution of (P‾z\overline{P}_{z}) and u‾⋆(z,θ⋆)\overline{u}^{\star}(z,\theta^{\star}) be its associated value (if the problem is unfeasible we set u‾⋆(z,θ⋆)=+∞\overline{u}^{\star}(z,\theta^{\star})=+\infty). Since the feasibility set is equivalent in (Pz) and (P‾z\overline{P}_{z}) as we only changed the objective function, the following proposition is immediate.

Both (Pz) and (P‾z\overline{P}_{z}) are feasible for z≥z‾(θ⋆)z\geq\underline{z}(\theta^{\star});

ωz,θ⋆⋆=ω‾z,θ⋆⋆{\omega}^{\star}_{z,\theta^{\star}}=\overline{\omega}^{\star}_{z,\theta^{\star}}.

Due to the equivalence demonstrated in Prop. 3, in the remaining we shall occasionally write ωz⋆\omega^{\star}_{z} to denote both ωz,θ⋆⋆{\omega}^{\star}_{z,\theta^{\star}} and ω‾z,θ⋆⋆\overline{\omega}^{\star}_{z,\theta^{\star}}.

We recall the Lagrangian relaxation problem of Sec. 3. For any ω∈Ω\omega\in\Omega, let f(ω;θ⋆)f(\omega;\theta^{\star}) denote the objective function and g(ω,z;θ⋆)g(\omega,z;\theta^{\star}) denote the KL constraint

The Lagrangian relaxation problem of (P‾z\overline{P}_{z}) isIn the main text we actually state that (Pλ) is the Lagrangian relaxation of (Pz) instead of (P‾z\overline{P}_{z}). 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 (P‾z\overline{P}_{z})) when z>z‾(θ⋆)z>\underline{z}(\theta^{\star}). This is immediate from the existence of a Slater point, as shown in the following proposition.

For any z>z‾(θ⋆)z>\underline{z}(\theta^{\star}), there exists a strictly feasible solution ω‾\underline{\omega}, i.e., g(ω‾;z,θ⋆)>0g(\underline{\omega};z,\theta^{\star})>0.

This is a direct consequence of the fact that

Thus, the optimal solution of (Pλ) is (λ⋆(z,θ⋆),ωz⋆)\left(\lambda^{\star}(z,\theta^{\star}),\omega^{\star}_{z}\right).

For any z>z‾(θ⋆)z>\underline{z}(\theta^{\star}), if ω‾z\overline{\omega}_{z} is a Slater point for (P‾z\overline{P}_{z}),

Using Lemma 2, we can prove the following result which will be very useful for the regret analysis.

For any z≥2z‾(θ⋆)z\geq 2\underline{z}(\theta^{\star}),

From Prop. 4, ω‾\underline{\omega} (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 z≥2z‾(θ⋆)z\geq 2\underline{z}(\theta^{\star}). 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 ωt\omega_{t} enjoys nice theoretical guarantees.

In the following lemmas we define the filtration Ft\mathcal{F}_{t} as the σ\sigma-algebra generated by the tt-step history, Ht=(X1,A1,Y1,…,Xt,At,Yt)H_{t}=(X_{1},A_{1},Y_{1},\dots,X_{t},A_{t},Y_{t}).

Let {ωt}t≥1\{\omega_{t}\}_{t\geq 1} be such that ωt∈Ω\omega_{t}\in\Omega and ωt\omega_{t} is Ft−1\mathcal{F}_{t-1}-measurable. Let {Xt}t≥1\{X_{t}\}_{t\geq 1} be a sequence of i.i.d. contexts distributed according to ρ\rho and {At}t≥1\{A_{t}\}_{t\geq 1} be such that At∼ωt(Xt,⋅)A_{t}\sim\omega_{t}(X_{t},\cdot). Then,

Let Zt:=\mathds1{Xt=x,At=a}Z_{t}:=\mathds{1}\left\{X_{t}=x,A_{t}=a\right\} and τs\tau_{s} be a random variable such that the ss-th exploration round occurs at time τs+1\tau_{s}+1. Notice that {τs}s≥1\{\tau_{s}\}_{s\geq 1} is a strictly-increasing sequence (i.e., τs+1>τs\tau_{s+1}>\tau_{s}) of stopping times w.r.t. {Ft}t≥1\{\mathcal{F}_{t}\}_{t\geq 1}. Furthermore, define

and let Gs:=Fτs+1\mathcal{G}_{s}:=\mathcal{F}_{\tau_{s+1}}. Using Lem. 10 in , we have that {Ws,Gs}s≥1\{W_{s},\mathcal{G}_{s}\}_{s\geq 1} is a martingale difference sequence. Therefore, by Azuma’s inequality

Let at:=St2log⁡(St2∣X∣∣A∣)a_{t}:=\sqrt{\frac{S_{t}}{2}\log\left(S_{t}^{2}|\mathcal{X}||\mathcal{A}|\right)} and rewrite NtE(x,a)=∑s≤t:EsZsN_{t}^{E}(x,a)=\sum_{s\leq t:E_{s}}Z_{s}. Fix any t‾≥1\overline{t}\geq 1. Then,

In the last inequality, we used the fact that aτs+1=slog⁡sa_{\tau_{s}+1}=\sqrt{s\log s}. Taking expectations and applying Azuma’s inequality with δ=2s2∣X∣∣A∣\delta=\frac{2}{s^{2}|\mathcal{X}||\mathcal{A}|},

The results holds for all t‾\overline{t}, and the proof is concluded by summing over contexts and arms. ∎

Let {ωt}t≥1\{\omega_{t}\}_{t\geq 1} be such that ωt∈Ω\omega_{t}\in\Omega and ωt\omega_{t} is Ft−1\mathcal{F}_{t-1}-measurable. Let {Xt}t≥1\{X_{t}\}_{t\geq 1} be a sequence of i.i.d. contexts distributed according to ρ\rho and {At}t≥1\{A_{t}\}_{t\geq 1} be such that At∼ωt(Xt,⋅)A_{t}\sim\omega_{t}(X_{t},\cdot). Let {φti}t≥1,i∈[m]\{\varphi_{t}^{i}\}_{t\geq 1,i\in[m]} be a sequence of functions φti:X×A→[−b,b]\varphi_{t}^{i}:\mathcal{X}\times\mathcal{A}\rightarrow[-b,b] such that φti(x,a)\varphi_{t}^{i}(x,a) is Ft−1\mathcal{F}_{t-1}-measurable for all i∈[m]i\in[m]. Then,

The proof follows the same steps as the one of Lemma 4. Fix i∈[m]i\in[m]. Let Zt:=φti(Xt,At)Z_{t}:=\varphi_{t}^{i}(X_{t},A_{t}) and τs\tau_{s} be a random variable such that the ss-th exploration round occurs at time τs+1\tau_{s}+1. Notice that {τs}s≥1\{\tau_{s}\}_{s\geq 1} is a strictly-increasing sequence (i.e., τs+1>τs\tau_{s+1}>\tau_{s}) of stopping times w.r.t. {Ft}t≥1\{\mathcal{F}_{t}\}_{t\geq 1}. Furthermore, define

and let Gs:=Fτs+1\mathcal{G}_{s}:=\mathcal{F}_{\tau_{s+1}}. Using Lem. 10 in , we have that {Ws,Gs}s≥1\{W_{s},\mathcal{G}_{s}\}_{s\geq 1} is a martingale difference sequence (with differences bounded by bb). Therefore, by Azuma’s inequality

Let at:=bSt2log⁡(mSt2)a_{t}:=b\sqrt{\frac{S_{t}}{2}\log\left(mS_{t}^{2}\right)} and fix some tˉ≥1\bar{t}\geq 1. Then,

In the last inequality, we used the fact that aτs+1=bs2log⁡(ms2)a_{\tau_{s}+1}=b\sqrt{\frac{s}{2}\log(ms^{2})}. Taking expectations and applying Azuma’s inequality with δ=2ms2\delta=\frac{2}{ms^{2}},

The results holds for all tˉ\bar{t} and the proof follows by summing over all i∈[m]i\in[m]. ∎

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 log⁡∣A∣\log|\mathcal{A}|, a factor that appears in the tightest known analysis of cumulative tracking . The factor Stlog⁡St\sqrt{S_{t}\log S_{t}} 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 Φx,a:=ϕ(x,a)ϕ(x,a)T\Phi_{x,a}:=\phi(x,a)\phi(x,a)^{T}. We define the following events:

Furthermore, we define Gt:={GtΔ,Gtϕ,Gtd,,Gtρ,Gtθ}G_{t}:=\{G_{t}^{\Delta},G_{t}^{\phi},G_{t}^{d},,G_{t}^{\rho},G_{t}^{\theta}\} as the “good” event and let Mt=∑s=1t\mathds1{Es,¬Gs}M_{t}=\sum_{s=1}^{t}\mathds{1}\left\{E_{s},\neg G_{s}\right\} be the number of exploration rounds in which the good event does not hold. This can be bounded in expectation as follows.

Let Mt=∑s=1t\mathds1{Es,¬Gs}M_{t}=\sum_{s=1}^{t}\mathds{1}\left\{E_{s},\neg G_{s}\right\} be the number of exploration rounds in which the good event does not hold, then

Using the definition of GsG_{s} together with the union bound,

The first and second term can be bounded by Lemma 5 by noticing that Δθ⋆(x,a)≤2LB\Delta_{\theta^{\star}}(x,a)\leq 2LB and that ∥ϕ(x,a)∥Vˉs−1−1\|\phi(x,a)\|_{\bar{V}_{s-1}^{-1}} is Fs−1\mathcal{F}_{s-1}-measurable and upper-bounded by Lν\frac{L}{\nu} at all time steps. Thus,

Similarly, the third term can be bounded by Lemma 5 by taking a union bound over all elements of Φx,a\Phi_{x,a} (for a total of d2d^{2} elements) and noting that each term is bounded by L2L^{2}. Thus,

Here we used the fact that the absolute difference between two consecutive empirical means with samples bounded by 11 cannot be larger than 2s\frac{2}{s}. 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 EtE_{t} holds or not:

Throughout the proof, as stated in the main theorem, we use βt−1:=cn,1/n\beta_{t-1}:=c_{n,1/n} and γt:=cn,1/St2\gamma_{t}:=c_{n,1/S_{t}^{2}}.

(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 O(log⁡n)\mathcal{O}(\log n);

(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 KnK_{n} as a function of the chosen sequences pk,zkp_{k},z_{k};

(App. G.3.6) We derive the final result by combining the bound on KnK_{n} of Step 5 using the exponential schedule for pk,zkp_{k},z_{k} 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 βt−1:=cn,1/n\beta_{t-1}:=c_{n,1/n}, where cn,δc_{n,\delta} was defined in Thm. 1. Then Ft:=\mathds1{∥θ^t−1−θ⋆∥V‾t−12≤cn,1/n}F_{t}:=\mathds{1}\left\{\|\widehat{\theta}_{t-1}-\theta^{\star}\|_{\overline{V}_{t-1}}^{2}\leq c_{n,1/n}\right\} is the event under which the true model belongs to the confidence set, which holds with probability at least 1−1/n1-1/n 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 FtF_{t} holds and Cor. 1. This is a contradiction with respect to FtF_{t}. Therefore, ¬Et\neg E_{t} and FtF_{t} 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 GtG_{t}. The second term is MnM_{n}, 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 EnE_{n} and GnG_{n} hold (if they do not, the following reasoning can be repeated for the last time step at which these events hold). Then, using GtΔG_{t}^{\Delta} (see App. F),

Using the definition of phase, we can rewrite the first summation as

which yields at most finite regret since {pk}\{p_{k}\} is increasing. Let us now fix a phase k≥k‾k\geq\underline{k} and bound the regret during its exploration rounds (TkE\mathcal{T}_{k}^{E}). Note that the optimization problem in each phase k≥k‾k\geq\underline{k} is feasible (see App. D). We have

Here we defined μ⋆:=∑x∈Xρ(x)μθ⋆⋆(x)\mu^{\star}:=\sum_{x\in\mathcal{X}}\rho(x)\mu^{\star}_{\theta^{\star}}(x) and Mn,kM_{n,k} as the number of exploration rounds during phase kk where the good event does not hold. The last term can be bounded by Mn,kBLM_{n,k}BL. Regarding the remaining two,

The second term ζn,k\zeta_{n,k} 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 GtG_{t} and Lem. 10,

In the last step, we used γt≤γn\sqrt{\gamma_{t}}\leq\sqrt{\gamma_{n}} (which is by definition O(log⁡Sn)\mathcal{O}(\log S_{n})) and defined Ψn,k:=∑t∈TkE∑x∈Xρ^t−1(x)∑a∈Aωt(x,a)∥ϕ(x,a)∥Vˉt−1−1\Psi_{n,k}:=\sum_{t\in\mathcal{T}_{k}^{E}}\sum_{x\in\mathcal{X}}\hat{\rho}_{t-1}(x)\sum_{a\in\mathcal{A}}\omega_{t}(x,a)\|\phi(x,a)\|_{\bar{V}_{t-1}^{-1}}.

To wrap-up the regret bound we have obtained so far, summing over all phases,

ζn\zeta_{n} can be bounded by Lemma 12 and Ψn\Psi_{n} by Lemma 13. Both terms are of order O(Snlog⁡Sn)\mathcal{O}(\sqrt{S_{n}\log S_{n}}). 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 k≥k‾k\geq\underline{k} and let λ≥0\lambda\geq 0 be arbitrary. By recalling that the optimization process is reset at the beginning of each phase and using Corollary 2 with αkλ=αkω=1/pk\alpha_{k}^{\lambda}=\alpha_{k}^{\omega}=1/\sqrt{p_{k}} and ω=ωzk⋆\omega=\omega^{\star}_{z_{k}} (the optimal solution of problem (Pzk{}_{z_{k}})),

We recall that bλb_{\lambda} and bωb_{\omega} are the maximum sub-gradients in λ\lambda and ω\omega, respectively. We now lower-bound the first term on the right-hand side. Since ht(ωzk⋆,λt,zk)=ft(ωzk⋆)+λtgt(ωzk⋆,zk)h_{t}(\omega^{\star}_{z_{k}},\lambda_{t},z_{k})=f_{t}(\omega^{\star}_{z_{k}})+\lambda_{t}g_{t}(\omega^{\star}_{z_{k}},z_{k}), ft(ωzk⋆)≥−LBf_{t}(\omega^{\star}_{z_{k}})\geq-LB, gt(ωzk⋆,zk)≥−1zkg_{t}(\omega^{\star}_{z_{k}},z_{k})\geq-\frac{1}{z_{k}}, and λt≤λmax⁡\lambda_{t}\leq\lambda_{\max}, this term, evaluated on those steps where GtG_{t} does not hold, can be lower-bounded by ∑t∈TkE:¬Gtht(ωzk⋆,λt,zk)≥−(LB+λmax⁡/zk)Mn,k\sum_{t\in\mathcal{T}_{k}^{E}:\neg G_{t}}h_{t}(\omega^{\star}_{z_{k}},\lambda_{t},z_{k})\geq-(LB+\lambda_{\max}/z_{k})M_{n,k}. For any step t∈TkEt\in\mathcal{T}_{k}^{E} in which GtG_{t} holds, the optimism property (Lemma 11) yields

Combining these two and using λt≤λmax⁡\lambda_{t}\leq\lambda_{\max},

Note that g(ωzk⋆)≥0g(\omega^{\star}_{z_{k}})\geq 0 since by assumption ωzk⋆\omega^{\star}_{z_{k}} is feasible for the optimization problem (Pzk)(P_{z_{k}}). Furthermore, ∑t∈TkE:Gtf(ωzk⋆)=∑t∈TkEf(ωzk⋆)−∑t∈TkE:¬Gtf(ωzk⋆)⏟∣⋅∣≤LB≥pkf(ωzk⋆)−LBMn,k\sum_{t\in\mathcal{T}_{k}^{E}:G_{t}}f(\omega^{\star}_{z_{k}})=\sum_{t\in\mathcal{T}_{k}^{E}}f(\omega^{\star}_{z_{k}})-\sum_{t\in\mathcal{T}_{k}^{E}:\neg G_{t}}\underbrace{f(\omega^{\star}_{z_{k}})}_{|\cdot|\leq LB}\geq p_{k}f(\omega^{\star}_{z_{k}})-LBM_{n,k}. Therefore, we obtain the following lower-bound on the sum of optimal objective values:

where, for simplicity, we defined aλ:=(log⁡∣A∣+bω2+bλ22+(λ−λ1)22)a_{\lambda}:=\left(\log|\mathcal{A}|+\frac{b_{\omega}^{2}+b_{\lambda}^{2}}{2}+\frac{(\lambda-\lambda_{1})^{2}}{2}\right). Summing over all phases,

where we used ∑k≥k‾KnMn,k≤Mn\sum_{k\geq\underline{k}}^{K_{n}}M_{n,k}\leq M_{n}, ∑k≥k‾Knζn,k≤ζn\sum_{k\geq\underline{k}}^{K_{n}}\zeta_{n,k}\leq\zeta_{n}, and zk≥1z_{k}\geq 1.

Our next step is to upper bound ∑k≥k‾Kn∑t∈TkEgt(ωt,zk)\sum_{k\geq\underline{k}}^{K_{n}}\sum_{t\in\mathcal{T}_{k}^{E}}g_{t}(\omega_{t},z_{k}), the sum of constraints of the policies played by the algorithm during feasible phases (those with zk≥2z‾(θ⋆)z_{k}\geq 2\underline{z}(\theta^{\star})). The intuition is that this term cannot be large (i.e., it cannot be above O(log⁡n)\mathcal{O}(\log n)), otherwise the exploitation test would trigger and we would not be exploring at step nn. Using the definition of gt(ω,zk)g_{t}(\omega,z_{k}) (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 GtG_{t} and the optimism (Lemma 11) to upper bound the first sum by

Furthermore, the first term can be upper bounded by replacing each set Θˉt−1\bar{\Theta}_{t-1} over which the infimum is taken by Θalt{\Theta}_{alt} (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 GtG_{t} does not hold. Let Φx,a:=ϕ(x,a)ϕ(x,a)T\Phi_{x,a}:=\phi(x,a)\phi(x,a)^{T} and Vn,e:=∑t≤n:EtΦXt,AtV_{n,e}:=\sum_{t\leq n:E_{t}}\Phi_{X_{t},A_{t}} be the design matrix of the exploration rounds. Using the definition of dx,ad_{x,a},

Recall that GnG_{n} holds. Then, by using the definition of GdG^{d} to bound the norm,

Here we used Nn(x,a)=Nn−1(x,a)+\mathds1{Xn=x,An=a}N_{n}(x,a)=N_{n-1}(x,a)+\mathds{1}\left\{X_{n}=x,A_{n}=a\right\} and upper bounded the KL at round nn 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 Vˉn−1⪰Vn−1\bar{V}_{n-1}\succeq V_{n-1}, and the last inequality holds since the algorithm is exploring at step nn. 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 KnK_{n} (hence SnS_{n}) is still random. Setting λ=v⋆(θ⋆)\lambda=v^{\star}(\theta^{\star}) and combining the second and fourth terms, we get

where zˉ(θ⋆):=max⁡x∈X∑a≠aθ⋆⋆(x)η⋆(x,a)ρ(x)\bar{z}(\theta^{\star}):=\max_{x\in\mathcal{X}}\sum_{a\neq a^{\star}_{\theta^{\star}}(x)}\frac{\eta^{\star}(x,a)}{\rho(x)} was defined in Lem. 1. For k≥k‾k\geq\underline{k}, 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 u⋆(z,θ⋆)u^{\star}(z,\theta^{\star}) to v⋆(θ⋆)v^{\star}(\theta^{\star}). 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 βn−1=cn,1/n\beta_{n-1}=c_{n,1/n} and cn,1/n→2σ2log⁡nc_{n,1/n}\rightarrow 2\sigma^{2}\log n as n→∞n\rightarrow\infty,

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 zkz_{k} and pkp_{k}. 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 nn. Relating these two we obtain a bound on KnK_{n}.

Recall that, as we assumed before, nn is an exploration step in which the good event GnG_{n} holds. Using (G.3.3) and the equations thereafter, we have

where the last two terms are O(Snlog⁡Sn)\mathcal{O}(\sqrt{S_{n}\log S_{n}}).

We now provide a lower-bound on the same quantity. Fix a phase index k≥k‾k\geq\underline{k}. 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 2B2L2/σ22B^{2}L^{2}/\sigma^{2},

Let ωˉt,k:=1pk∑t∈TkEωt\bar{\omega}_{t,k}:=\frac{1}{p_{k}}\sum_{t\in\mathcal{T}_{k}^{E}}\omega_{t} be the average policy played in phase kk. Since ff is linear and gg is concave, ∑t∈TkE(f(ωt)+λg(ωt,zk))≤pkf(ωˉt,k)+λpkg(ωˉt,k,zk)\sum_{t\in\mathcal{T}_{k}^{E}}\left(f(\omega_{t})+\lambda g(\omega_{t},z_{k})\right)\leq p_{k}f(\bar{\omega}_{t,k})+\lambda p_{k}g(\bar{\omega}_{t,k},z_{k}). We now set

Combining this with (G.3.5), we obtain the following inequality:

Recall that, by definition, Sn=∑k=0KnpkS_{n}=\sum_{k=0}^{K_{n}}p_{k}. Furthermore, by Cauchy-Schwartz inequality, ∑k=0Knpk≤Kn∑k=0Knpk\sum_{k=0}^{K_{n}}\sqrt{p_{k}}\leq\sqrt{K_{n}\sum_{k=0}^{K_{n}}p_{k}}. Simplifying this a little,

We choose the exponential schedule zk=z0ekz_{k}=z_{0}e^{k} and pk=zkerkp_{k}=z_{k}e^{rk}, where rr will be specified later. The left-hand side of (50) is

For r>1r>1, the resulting inequality yields Kn≤O(1rlog⁡βn−1)K_{n}\leq\mathcal{O}(\frac{1}{r}\log\beta_{n-1}), i.e., Kn≤O(1rlog⁡log⁡n)K_{n}\leq\mathcal{O}(\frac{1}{r}\log\log n) by definition of βn−1\beta_{n-1}. Let us recall (G.3.4):

where we used that, from the definition of k‾\underline{k} and zkz_{k}, it must be that k<log⁡(2z‾(θ⋆)/z0)k<\log(2\underline{z}(\theta^{\star})/z_{0}). 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 Kn≤O(1rlog⁡log⁡n)K_{n}\leq\mathcal{O}(\frac{1}{r}\log\log n), this term is O((log⁡n)r−1/2r)\mathcal{O}((\log n)^{\frac{r-1/2}{r}}). If the other term is the maximum, then the same procedure yields a O((log⁡n)r−1r)\mathcal{O}((\log n)^{\frac{r-1}{r}}) dependency. Thus,

We have  VI≤O((log⁡n)r+12r)\text{ {VI}}\leq\mathcal{O}((\log n)^{\frac{r+1}{2r}}) as in Term IV.

Using r=2r=2, 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 Sn≤nS_{n}\leq n. 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 zkz_{k} and proceed as if the optimization problem (Pz) was infeasible in all phases. This makes the multiplier saturate to λmax⁡\lambda_{\max} 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 ωzk⋆\omega^{\star}_{z_{k}} at each phase kk (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 O(log⁡n)\mathcal{O}(\log n).

We use the naive bound Sn≤nS_{n}\leq n 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 GtG_{t}. The second term is MnM_{n}, 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 EnE_{n} and GnG_{n} hold (if they do not, the following reasoning can be repeated for the last time step at which these events hold). Then, using GtΔG_{t}^{\Delta} (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 MnBLM_{n}BL. Regarding the remaining two,

For the sake of readability, we keep the dependence on ζn\zeta_{n} explicit. We will bound this term by Lem. 12 at the end of the proof. Regarding term (b), using the definition of GtG_{t} and Lem. 10,

We recall that γt≤γn\sqrt{\gamma_{t}}\leq\sqrt{\gamma_{n}} and Ψn:=∑t≤n:Et∑x∈Xρ^t−1(x)∑a∈Aωt(x,a)∥ϕ(x,a)∥Vˉt−1−1\Psi_{n}:=\sum_{t\leq n:E_{t}}\sum_{x\in\mathcal{X}}\widehat{\rho}_{t-1}(x)\sum_{a\in\mathcal{A}}\omega_{t}(x,a)\|\phi(x,a)\|_{\bar{V}_{t-1}^{-1}}. As for ζn\zeta_{n}, we keep the dependence on Ψn\Psi_{n} 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 ωzk⋆\omega^{\star}_{z_{k}} at each phase kk, we reduce our bound to the optimal solution of our bandit problem, i.e., the policy that only pulls optimal arms. Let

Recall that ∑t≤n:Etft(ωt)=∑k=0Kn∑t∈TkEft(ωt)\sum_{t\leq n:E_{t}}f_{t}(\omega_{t})=\sum_{k=0}^{K_{n}}\sum_{t\in\mathcal{T}_{k}^{E}}f_{t}(\omega_{t}). Fix some phase index k≥0k\geq 0 and let λ≥0\lambda\geq 0 be arbitrary. Using Corollary 2 with αkλ=αkω=1/pk\alpha_{k}^{\lambda}=\alpha_{k}^{\omega}=1/\sqrt{p_{k}} and ω=ωθ⋆⋆\omega=\omega^{\star}_{\theta^{\star}},

and bλb_{\lambda} and bωb_{\omega} are the maximum sub-gradients in λ\lambda and ω\omega, respectively. Note that, since we apply Corollary 2 to bound the sum of objective values over the whole phase, we have Sn,k=pkS_{n,k}=p_{k}. We now lower-bound the first term on the right-hand side. We have

where (c) uses the definition of hth_{t} and gtg_{t} (see Eq. 3 and Eq. 4), (d) uses the positivity of KL divergences and confidence intervals, and (e) uses λt≤λmax⁡\lambda_{t}\leq\lambda_{\max} and Sn,k:=∣TkE∣S_{n,k}:=|\mathcal{T}_{k}^{E}|. Let us focus on the sum of objective values. Since ft(ωθ⋆⋆)≥−LBf_{t}(\omega^{\star}_{\theta^{\star}})\geq-LB, we have ∑t∈TkE:¬Gtft(ωθ⋆⋆)≥−Mn,kBL\sum_{t\in\mathcal{T}_{k}^{E}:\neg G_{t}}f_{t}(\omega^{\star}_{\theta^{\star}})\geq-M_{n,k}BL. For any step t∈TkEt\in\mathcal{T}_{k}^{E} in which GtG_{t} holds, the optimism property (see App. F and Lem. 11) yields

where we used the fact that f(ωθ⋆⋆)=μ⋆f(\omega^{\star}_{\theta^{\star}})=\mu^{\star} by definition (56) and (54) and ∑t∈TkE\mathds1{Gt}=∑t∈Tk\mathds1{Et}−∑t∈Tk\mathds1{Et,¬Gt}=Sn,k−Mn,k\sum_{t\in\mathcal{T}_{k}^{E}}\mathds{1}\left\{G_{t}\right\}=\sum_{t\in\mathcal{T}_{k}}\mathds{1}\left\{E_{t}\right\}-\sum_{t\in\mathcal{T}_{k}}\mathds{1}\left\{E_{t},\neg G_{t}\right\}=S_{n,k}-M_{n,k}. Plugging this back into (H.2) and then into (57),

Summing over all phases and recalling that ∑k=0KnSn,k=Sn\sum_{k=0}^{K_{n}}S_{n,k}=S_{n}, ∑k=0KnMn,k=Mn\sum_{k=0}^{K_{n}}M_{n,k}=M_{n}, and ∑k=0Knζn,k=ζn\sum_{k=0}^{K_{n}}\zeta_{n,k}=\zeta_{n}, we obtain

Using the definition of gtg_{t} (see Eq. 3),

By the definition of phase, the second term is ∑t≤n:Et1zKt=∑k=0KnSn,kzk\sum_{t\leq n:E_{t}}\frac{1}{z_{K_{t}}}=\sum_{k=0}^{K_{n}}\frac{S_{n,k}}{z_{k}}. 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 λ=λmax⁡\lambda=\lambda_{\max} and plug (H.2) into (60),

We can finally plug this into (55), thus obtaining

Let kˉn:=min⁡{k:pk≥n}\bar{k}_{n}:=\min\{k:p_{k}\geq n\}, then Kn≤kˉnK_{n}\leq\bar{k}_{n}. Using the exponential schedule pk=erkp_{k}=e^{rk}, kˉn=⌈1rlog⁡n⌉\bar{k}_{n}=\lceil\frac{1}{r}\log n\rceil and

After bounding Sn≤nS_{n}\leq n, by Lem. 13, Ψn≤O~(L∣X∣nlog⁡n+ndlog⁡n)\Psi_{n}\leq\widetilde{\mathcal{O}}\left(L|\mathcal{X}|\sqrt{n\log n}+\sqrt{nd\log n}\right), while, by Lem. 12, ζn≤O~(∣X∣nlog⁡n)\zeta_{n}\leq\widetilde{\mathcal{O}}\left(|\mathcal{X}|\sqrt{n\log n}\right)Here we hide logarithmic terms in ∣X∣|\mathcal{X}| and dd.. Moreover, both γn\gamma_{n} and βn\beta_{n} are O(log⁡n+dlog⁡log⁡n)\mathcal{O}(\log n+d\log\log n) by definition of the confidence set. Introducing Cλmax⁡:=(1+λmax⁡BLσ2)C_{\lambda_{\max}}:=\left(1+\frac{\lambda_{\max}BL}{\sigma^{2}}\right),

Recalling that the regret during exploitation rounds was bounded by 2BL2BL and noting that 2<3π222<\frac{3\pi^{2}}{2}, the O(1)\mathcal{O}(1) regret term (first term of the bound above plus 2BL2BL) can be bounded by 12BLπ2Cλmax⁡12BL\pi^{2}C_{\lambda_{\max}}. Hence, the final regret bound can be written as

Appendix I Auxiliary Results

The proof follows Lem. B.1 in . Fix some t‾≥1\overline{t}\geq 1 and x∈Xx\in\mathcal{X}. Then,

where τs\tau_{s} is the random time the ss-th exploration round occurs. Thus, by taking the expectation of both sides,

Since τs\tau_{s} is a stopping-time upper bounded by t‾\overline{t} and the number of samples used to compute ρ^τs(x)\widehat{\rho}_{\tau_{s}}(x) is at least ss, we can apply Lemma 4.3 of :

The reasoning above holds for any t‾\overline{t} and x∈Xx\in\mathcal{X}. Summing over X\mathcal{X} concludes the proof. ∎

With some abuse of notation, let γt:=cn,1/St2\gamma_{t}:=c_{n,1/S_{t}^{2}}. Then, under the same conditions as in Theorem 1,

Let {τs}s≥1\{\tau_{s}\}_{s\geq 1} be a sequence of stopping times with respect to F\mathcal{F} such that if τs=t\tau_{s}=t, then the ss-th exploration round occurs at time t+1t+1. Then,

Since Sτs+1=sS_{\tau_{s}+1}=s, we have γτs+1=cn,1/s2\gamma_{\tau_{s}+1}=c_{n,1/s^{2}}. 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 ∇f(x)=2V(x−θ^)\nabla f(x)=2V(x-\widehat{\theta}),

Let t∈[n]t\in[n] be any time step in which the good event GtG_{t} holds. Then,

If GtG_{t} holds, then θ⋆∈Ct−1\theta^{\star}\in\mathcal{C}_{t-1}. Since ∥θ⋆∥2≤B\|\theta^{\star}\|_{2}\leq B by definition, the set Ct−1∩Θ\mathcal{C}_{t-1}\cap\Theta is non-empty (it contains θ⋆\theta^{\star} 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 θ~t\widetilde{\theta}_{t}.

Let t∈[n]t\in[n] be any time step in which the good event GtG_{t} holds. Then,

Fix any x∈Xx\in\mathcal{X} and a∈Aa\in\mathcal{A}. Then,

where (a) is from Cauchy-Schwartz inequality, (b) from Cor. 1, and (c) from the definition of GtG_{t}. ∎

Let γt:=cn,1/St2\gamma_{t}:=c_{n,1/S_{t}^{2}} and n≥3n\geq 3. Then, for any time step tt in which the good event GtG_{t} (see App. F) holds,

Since ρ^\widehat{\rho} and ω\omega are non-negative, the first inequality is trivial by upper bounding the true mean μθ⋆(x,a)\mu_{\theta^{\star}}(x,a) for each x,ax,a by using the definition of GtθG_{t}^{\theta} and Lemma 10. Let us prove the second one. Fix any model θ′∈Θ\theta^{\prime}\in\Theta. By using the definition of KL divergence of Gaussians with fixed variance, we have that:

where the first inequality is from ∣(a−c)2−(b−c)2∣=∣(a+b−2c)(a−b)∣≤4LB∣a−b∣|(a-c)^{2}-(b-c)^{2}|=|(a+b-2c)(a-b)|\leq 4LB|a-b| and the second one is once again from the definition of GtG_{t} 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 {ax}x∈X\{a_{x}\}_{x\in\mathcal{X}} and define

Note that Θalt=Θ({aθ⋆⋆(x)}x∈X)\Theta_{alt}=\Theta(\{a^{\star}_{\theta^{\star}}(x)\}_{x\in\mathcal{X}}). Then,

To see the last inequality, note that for all {ax}x∈X\{a_{x}\}_{x\in\mathcal{X}} which do not contain only the optimal arms of θ~t−1\widetilde{\theta}_{t-1} (i.e., {ax}x∈X≠{aθ~t−1⋆(x)}x∈X\{a_{x}\}_{x\in\mathcal{X}}\neq\{a^{\star}_{\widetilde{\theta}_{t-1}}(x)\}_{x\in\mathcal{X}}), we have θ~t−1∈Θ({ax}x∈X)\widetilde{\theta}_{t-1}\in\Theta(\{a_{x}\}_{x\in\mathcal{X}})Recall that, by definition, θ~t−1∈Θ\widetilde{\theta}_{t-1}\in\Theta., and therefore the infimum is zero. Thus, the maximum must be attained by {aθ~t−1⋆(x)}x∈X\{a^{\star}_{\widetilde{\theta}_{t-1}}(x)\}_{x\in\mathcal{X}}, which yields Θ({aθ~t−1⋆(x)}x∈X)=Θ‾t−1\Theta(\{a^{\star}_{\widetilde{\theta}_{t-1}}(x)\}_{x\in\mathcal{X}})=\overline{\Theta}_{t-1}. This concludes the proof. ∎

and ∑t=1m1t≤log⁡m+1\sum_{t=1}^{m}\frac{1}{t}\leq\log m+1. ∎

Let tt be such that both EtE_{t} and GtG_{t} occur and suppose ν≥1\nu\geq 1. Define

We start by noticing that, for all x,ax,a and s≥0s\geq 0,

and thus ∥ϕ(x,a)∥Vˉs−1−1≤L/ν\|\phi(x,a)\|_{\bar{V}_{s-1}^{-1}}\leq L/\sqrt{\nu}. Here σmax⁡(⋅)\sigma_{\max}(\cdot) and σmin⁡(⋅)\sigma_{\min}(\cdot) 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 tt,

Finally, let Vˉe,t:=∑s≤t:Esϕ(Xs,As)ϕ(Xs,As)T+νI\bar{V}_{e,t}:=\sum_{s\leq t:E_{s}}\phi(X_{s},A_{s})\phi(X_{s},A_{s})^{T}+\nu I denote the regularized design matrix computed using only the exploration rounds. Then, we have Vˉt⪰Vˉe,t\bar{V}_{t}\succeq\bar{V}_{e,t} (since sum of rank-one matrices), which implies Vˉt−1⪯Vˉe,t−1\bar{V}_{t}^{-1}\preceq\bar{V}_{e,t}^{-1} and thus ∥ϕ(x,a)∥Vˉs−1−1≤∥ϕ(x,a)∥Vˉe,s−1−1\|\phi(x,a)\|_{\bar{V}_{s-1}^{-1}}\leq\|\phi(x,a)\|_{\bar{V}_{e,s-1}^{-1}}. Here ⪰\succeq denotes the Loewner ordering, i.e., for two symmetric matrices A,BA,B we have A⪰BA\succeq B (A≻BA\succ B) if A−BA-B 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 Vˉe,t\bar{V}_{e,t} by (ν+StL2/d)d(\nu+S_{t}L^{2}/d)^{d}. 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 τs,k\tau_{s,k} be a random variable indicating the time at which the ss-th exploration round of phase kk occurs. Note that λτ1,k=λ1\lambda_{\tau_{1,k}}=\lambda_{1}. In order to simplify the exposition, and with some abuse of notation, let λs=λτs,k\lambda_{s}=\lambda_{\tau_{s,k}} and gs=gτs,k(ωτs,k,zk)g_{s}=g_{\tau_{s,k}}(\omega_{\tau_{s,k}},z_{k}). By definition of the update rule, for each s≥1s\geq 1,

Dividing by 2αkλ2\alpha_{k}^{\lambda} and rearranging,

Summing over all ss up to StS_{t} 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 ss back to time steps. ∎

[Recursion bound for Online Mirror Descent (OMD)] Let ω1\omega_{1} be the uniform distribution over actions for each context and sup⁡t≥1:Et∥qt∥∞≤bω\sup_{t\geq 1:E_{t}}\|q_{t}\|_{\infty}\leq b_{\omega}. For any phase k≥0k\geq 0, t∈TkEt\in\mathcal{T}_{k}^{E}, and ω∈Ω\omega\in\Omega, 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 ∑s≤t:s∈TkEhs(ωs,λs,zk)=∑s≤t:s∈TkE(fs(ωs)+λsgs(ωs,zk))\sum_{s\leq t:s\in\mathcal{T}_{k}^{E}}h_{s}(\omega_{s},\lambda_{s},z_{k})=\sum_{s\leq t:s\in\mathcal{T}_{k}^{E}}(f_{s}(\omega_{s})+\lambda_{s}g_{s}(\omega_{s},z_{k})) 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 δ∈(0,1)\delta\in(0,1) and n≥3n\geq 3. Then,

where cn,δ:=γn1−1log⁡nκn,δ\sqrt{c_{n,\delta}}:=\frac{\gamma_{n}}{1-\frac{1}{\log n}}\sqrt{\kappa_{n,\delta}}, γn:=1+1log⁡n\gamma_{n}:=1+\frac{1}{\log n}, and

Finally, we set Υn:=dlog⁡(52+2log⁡nd)+dlog⁡(2+4dlog⁡(4γnd(log⁡n)2ν+L2ndν)log⁡n)\Upsilon_{n}:=d\log\left(\frac{5}{2}+2\log n\sqrt{d}\right)+d\log\left(2+4d\log\left(4\gamma_{n}d(\log n)^{2}\sqrt{\frac{\nu+L^{2}n}{d\nu}}\right)\log n\right) and χn:=ν2vmin⁡216dL2(ν+L2n)(log⁡n)4γn4\chi_{n}:=\frac{\nu^{2}v_{\min}^{2}}{16dL^{2}(\nu+L^{2}n)(\log n)^{4}\gamma_{n}^{4}}.

It is important to note that lim⁡n→∞cn,1/n2σ2log⁡n=1\lim_{n\rightarrow\infty}\frac{c_{n,1/n}}{2\sigma^{2}\log n}=1.

J.1 Proof of Thm. 4

The proof can be summarized in three main steps:

We extend Theorem 8 of to bound (θ^t−θ⋆)TV‾t1/2v(\widehat{\theta}_{t}-\theta^{\star})^{T}\overline{V}_{t}^{1/2}v uniformly over all v∈C1v\in\mathcal{C}_{1}, instead of the prediction errors (θ^t−θ⋆)Tϕ(x,a)(\widehat{\theta}_{t}-\theta^{\star})^{T}\phi(x,a) uniformly over all contexts/arms. This requires a second ϵ2\epsilon_{2}-cover (we shall call it C2\mathcal{C}_{2}) of the set {V‾t−1/2v:t∈[n],v∈C1}\{\overline{V}_{t}^{-1/2}v:t\in[n],v\in\mathcal{C}_{1}\}. The result is reported in Lemma 16.

The resulting bound is of order O(log⁡(1/δ)+dlog⁡(1/ϵ1))\mathcal{O}(\log(1/\delta)+d\log(1/\epsilon_{1})), which requires tuning ϵ1=1log⁡n\epsilon_{1}=\frac{1}{\log n} to cancel the bias of the first cover asymptotically without compromising the size of the cover itself.

Hence vectors with norm at most (1+ϵ1)(1+\epsilon_{1}) actually suffice and thus we can set C1=C~1∖{v∈C~1:∥v∥2>(1+ϵ1)}\mathcal{C}_{1}=\widetilde{\mathcal{C}}_{1}\setminus\{v\in\widetilde{\mathcal{C}}_{1}:\|v\|_{2}>(1+\epsilon_{1})\}. Then we upper bound the size of this cover as

To recap, our cover C1\mathcal{C}_{1} has the following properties:

∣C1∣≤(52+2dϵ1)d|\mathcal{C}_{1}|\leq\left(\frac{5}{2}+\frac{2\sqrt{d}}{\epsilon_{1}}\right)^{d}

∀v∈C1:∥v∥2≤vmax⁡:=1+ϵ1\forall v\in\mathcal{C}_{1}:\|v\|_{2}\leq v_{\max}:=1+\epsilon_{1}

∀v∈C1,i∈[d]:∣vi∣≥vmin⁡:=ϵ12d\forall v\in\mathcal{C}_{1},i\in[d]:|v_{i}|\geq v_{\min}:=\frac{\epsilon_{1}}{2\sqrt{d}} (this follows from the discretization used in C~1\widetilde{\mathcal{C}}_{1} and it implies that ∥v∥2≥vmin⁡d=ϵ12\|v\|_{2}\geq v_{\min}\sqrt{d}=\frac{\epsilon_{1}}{2})

We use an extension of Thm. 8 of to bound the prediction error at vectors in the cover C1\mathcal{C}_{1} after applying the linear transformation V‾t1/2\overline{V}_{t}^{1/2}.

and Υn=log⁡(∣C∣)+dlog⁡(2+4dlog⁡(2dlog⁡nvmax⁡vmin⁡ν+L2ndν)log⁡n)\Upsilon_{n}=\log(|\mathcal{C}|)+d\log\left(2+4d\log\left(2d\log n\frac{v_{\max}}{v_{\min}}\sqrt{\frac{\nu+L^{2}n}{d\nu}}\right)\log n\right) and χn=ν2vmin⁡24L2(ν+L2n)(log⁡n)2vmax⁡2γn2\chi_{n}=\frac{\nu^{2}v_{\min}^{2}}{4L^{2}(\nu+L^{2}n)(\log n)^{2}v_{\max}^{2}\gamma_{n}^{2}}.

The specific shape of the bound is obtained by exploiting the properties of the cover C1\mathcal{C}_{1} derived in the first step, where vmax⁡=1+ϵ1v_{\max}=1+\epsilon_{1} and vmin⁡=ϵ12dv_{\min}=\frac{\epsilon_{1}}{2\sqrt{d}}.

We finally tune ϵ1\epsilon_{1} to obtain the final bound. With probability at least 1−δ1-\delta, we have that

where (a)(a) follows from Eq. 76, (b) from the fact that zt∈Zz_{t}\in\mathcal{Z}, (c)(c) holds with probability at least 1−δ1-\delta by Lem. 16 and (d)(d) by properties 1 and 3 of the cover C1\mathcal{C}_{1}. The statement of the theorem follows by setting ϵ1=1log⁡n\epsilon_{1}=\frac{1}{\log n} and rearranging.

J.2 Proof of Lem. 16

The proof follows similar steps as in [7, Thm. 8].

Take any v∈C1v\in\mathcal{C}_{1} and t∈[n]t\in[n]. Then,

where (a) is from the definition of θ^t\widehat{\theta}_{t}, (b) since Ys=ϕ(Xs,As)Tθ⋆+ξsY_{s}=\phi(X_{s},A_{s})^{T}\theta^{\star}+\xi_{s} with ξs∼N(0,σ2)\xi_{s}\sim\mathcal{N}(0,\sigma^{2}), (c) from the definition of VtV_{t}, and (d) after rearranging. Let us bound (i). Since θ⋆=V‾t−1V‾tθ⋆\theta^{\star}=\overline{V}_{t}^{-1}\overline{V}_{t}\theta^{\star}, we have

where we used V‾t=νI+Vt\overline{V}_{t}=\nu I+V_{t}. Therefore,

where the second inequality is by Cauchy-Schwartz inequality. Since V‾t⪰νI\overline{V}_{t}\succeq\nu I, ∥θ⋆∥V‾t−1≤1ν∥θ⋆∥2≤Bν\|\theta^{\star}\|_{\overline{V}_{t}^{-1}}\leq\frac{1}{\sqrt{\nu}}\|\theta^{\star}\|_{2}\leq\frac{B}{\sqrt{\nu}}. This yields

Let us consider the second term. Since V‾t−1/2\overline{V}_{t}^{-1/2} is random, we proceed using the same covering argument as in the proof in [7, Thm. 8]. Let ϵ2>0\epsilon_{2}>0 (whose value will be specified later). Recall that our input is a finite set of dd-dimensional vectors C1\mathcal{C}_{1} such that ∥v∥2≤vmax⁡<∞\|v\|_{2}\leq v_{\max}<\infty and ∣vi∣≥vmin⁡>0|v_{i}|\geq v_{\min}>0 hold for all v∈C1v\in\mathcal{C}_{1} and i∈[d]i\in[d]. Note that the latter condition implies ∥v∥2≥vmin⁡d\|v\|_{2}\geq v_{\min}\sqrt{d}. Our goal is to build an ϵ2\epsilon_{2}-covering set of {V‾t−1/2v:t∈[n],v∈C1}\{\overline{V}_{t}^{-1/2}v:t\in[n],v\in\mathcal{C}_{1}\}. Since this set is random, we build a deterministic one that contains the former almost surely and cover it instead. Note that, for any t∈[n]t\in[n], V‾t−1/2\overline{V}_{t}^{-1/2} is such that (1) V‾t−1/2≻0\overline{V}_{t}^{-1/2}\succ 0, (2) ∥V‾t−1/2∥2=σmax⁡(V‾t−1/2)≤1ν\|\overline{V}_{t}^{-1/2}\|_{2}=\sigma_{\max}(\overline{V}_{t}^{-1/2})\leq\frac{1}{\sqrt{\nu}}, and (3) σmin⁡(V‾t−1/2)≥1ν+L2n\sigma_{\min}(\overline{V}_{t}^{-1/2})\geq\frac{1}{\sqrt{\nu+L^{2}n}}. Let D\mathcal{D} denote the set of d×dd\times d matrices with these properties, that is,

Then, we can show the following covering property in l∞l_{\infty}-norm.

(2) If ∣bi∣≥ϵ2∥v∥2ν+L2n|b_{i}|\geq\frac{\epsilon_{2}\|v\|_{2}}{\sqrt{\nu+L^{2}n}}, by the geometrical cover, we can find a point wiw_{i} such that 1≤∣wi∣∣bi∣≤1+ϵ21\leq\frac{|w_{i}|}{|b_{i}|}\leq 1+\epsilon_{2}. Too see this, suppose, without loss of generality, that bib_{i} is positive. Note that, since bib_{i} lies in the range [ϵ2∥v∥2ν+L2n,vmax⁡ν][\frac{\epsilon_{2}\|v\|_{2}}{\sqrt{\nu+L^{2}n}},\frac{v_{\max}}{\sqrt{\nu}}] which is covered geometrically, there exists a real value 0≤k≤jˉ0\leq k\leq\bar{j} such that bi=ϵ2∥v∥2ν+L2n(1+ϵ2)kb_{i}=\frac{\epsilon_{2}\|v\|_{2}}{\sqrt{\nu+L^{2}n}}(1+\epsilon_{2})^{k}. Then, if we set wi=ϵ2∥v∥2ν+L2n(1+ϵ2)⌈k⌉w_{i}=\frac{\epsilon_{2}\|v\|_{2}}{\sqrt{\nu+L^{2}n}}(1+\epsilon_{2})^{\lceil k\rceil}, 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 w‾v,t:=argmin⁡w∈C2∥V‾t−1/2v−w∥1\overline{w}_{v,t}:=\operatornamewithlimits{argmin}_{w\in\mathcal{C}_{2}}\left\|\overline{V}_{t}^{-1/2}v-w\right\|_{1} be the vector in our cover C2\mathcal{C}_{2} which is the closest to V‾t−1/2v\overline{V}_{t}^{-1/2}v uniformly over all components. Then,

where in (d) we used the triangle inequality (1d\bm{1}_{d} denotes the d-dimensional vector of ones), in (e) we used ∥1d∥V‾t≤∥V‾t1/2∥2∥1d∥2\left\|\bm{1}_{d}\right\|_{\overline{V}_{t}}\leq\left\|\overline{V}_{t}^{1/2}\right\|_{2}\left\|\bm{1}_{d}\right\|_{2}, and in (f) we upper bounded the maximum eigenvalue of ∥V‾t1/2∥2\left\|\overline{V}_{t}^{1/2}\right\|_{2} by ν+L2n\sqrt{\nu+L^{2}n}. Therefore, we conclude,

Term (b) can be bounded by Lemma 17. For any δ′∈(0,1)\delta^{\prime}\in(0,1), with probability at least 1−δ′1-\delta^{\prime},

Term (c) can be bounded by Lemma 20 (whose bound holds uniformly over all elements in C2\mathcal{C}_{2}). Recall that ∥w∥2≤wmax⁡\|w\|_{2}\leq w_{\max} for all w∈C2w\in\mathcal{C}_{2}. For any χ>0\chi>0 and δ′∈(0,1)\delta^{\prime}\in(0,1), with probability at least 1−δ′1-\delta^{\prime},

Note that, by definition of C2\mathcal{C}_{2}, ∥w‾v,t∥V‾t2≥σmin⁡(V‾t)∥w‾v,t∥22≥νdϵ22∥v∥2ν+L2n≥νd2ϵ22vmin⁡2ν+L2n\|\overline{w}_{v,t}\|_{\overline{V}_{t}}^{2}\geq\sigma_{\min}(\overline{V}_{t})\|\overline{w}_{v,t}\|_{2}^{2}\geq\frac{\nu d\epsilon_{2}^{2}\|v\|^{2}}{\nu+L^{2}n}\geq\frac{\nu d^{2}\epsilon_{2}^{2}v_{\min}^{2}}{\nu+L^{2}n}. Hence, setting χ←χn′:=νd2ϵ22vmin⁡2ν+L2n\chi\leftarrow\chi_{n}^{\prime}:=\frac{\nu d^{2}\epsilon_{2}^{2}v_{\min}^{2}}{\nu+L^{2}n},

where the last inequality is from log⁡(1+1log⁡n)≥12log⁡n\log(1+\frac{1}{\log n})\geq\frac{1}{2\log n} for n≥2n\geq 2. This yields

Let us now bound ∥w‾v,t∥V‾t2\left\|\overline{w}_{v,t}\right\|_{\overline{V}_{t}}^{2}. We have

where in the last inequality we used the previous bound on (a)=∥w‾v,t−V‾t−1/2v∥V‾t(a)=\left\|\overline{w}_{v,t}-\overline{V}_{t}^{-1/2}v\right\|_{\overline{V}_{t}}.

Putting (a), (b), and (c) together we obtain the following bound on (ii):

If we now set ϵ2←12dlog⁡n\epsilon_{2}\leftarrow\frac{1}{2d\log n}, we have χn′=νvmin⁡24(ν+L2n)(log⁡n)2\chi_{n}^{\prime}=\frac{\nu v_{\min}^{2}}{4(\nu+L^{2}n)(\log n)^{2}}. Setting χn′′=χn′/(wmax⁡2L2)\chi_{n}^{\prime\prime}=\chi_{n}^{\prime}/(w_{\max}^{2}L^{2}) and using wmax⁡=vmax⁡ν(1+ϵ2(1+d))≤vmax⁡νγnw_{\max}=\frac{v_{\max}}{\sqrt{\nu}}\left(1+\epsilon_{2}(1+\sqrt{d})\right)\leq\frac{v_{\max}}{\sqrt{\nu}}\gamma_{n}, χn′′≥ν2vmin⁡24L2(ν+L2n)(log⁡n)2vmax⁡2γn2=χn\chi_{n}^{\prime\prime}\geq\frac{\nu^{2}v_{\min}^{2}}{4L^{2}(\nu+L^{2}n)(\log n)^{2}v_{\max}^{2}\gamma_{n}^{2}}=\chi_{n}. Thus,

Furthermore, using (78), the log-size of the cover C2\mathcal{C}_{2} is

To conclude the proof, we notice that the derivation above holds uniformly for all v∈C1v\in\mathcal{C}_{1} and t∈[n]t\in[n] with probability at least 1−2δ′1-2\delta^{\prime} 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 δ=2δ′\delta=2\delta^{\prime}. ∎

J.3 Auxiliary Results

[Lemma 9 of ] Let τ\tau be a stopping time with respect to filtration {Ft}t=1∞\{\mathcal{F}_{t}\}_{t=1}^{\infty} and Wt:=∑s=1tϕ(Xs,As)ξsW_{t}:=\sum_{s=1}^{t}\phi(X_{s},A_{s})\xi_{s}. Then, for any δ∈(0,1)\delta\in(0,1), with probability at least 1−δ′1-\delta^{\prime},

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 ζ\zeta. ∎

The proof uses the same peeling argument as in but follows different steps.

where (a) uses a union bound, (b) holds since ff is non-decreasing, and (c) is from Lemma 18. Using the definition of {vj}j≥−1\{v_{j}\}_{j\geq-1},

Since vkn=γnknv0v_{k_{n}}=\gamma_{n}^{k_{n}}v_{0}, we have that kn=⌈log⁡(nb/v0)log⁡(γn)⌉k_{n}=\left\lceil\frac{\log(nb/v_{0})}{\log(\gamma_{n})}\right\rceil suffices to have vkn≥nbv_{k_{n}}\geq nb. Setting v0←γnϵv_{0}\leftarrow\gamma_{n}\epsilon,

The result follows by setting δ←δ′Γb,ϵ\delta\leftarrow\delta^{\prime}\Gamma_{b,\epsilon} and τ←min⁡{t≤n:∑s=1tYs>2γnPtlog⁡Γb,ϵδ}\tau\leftarrow\min\left\{t\leq n:\sum_{s=1}^{t}Y_{s}>\sqrt{2\gamma_{n}P_{t}\log\frac{\Gamma_{b,\epsilon}}{\delta}}\right\}. ∎

The following result can be derived using a similar argument as in the proof of Lemma 15 of .

where γn\gamma_{n} and Γb2L2,ϵ\Gamma_{b^{2}L^{2},\epsilon} are those defined in Lemma 19.

is a sum of Gaussian random variables adapted to F\mathcal{F} such that

where the last inequality is from Vt⪯V‾tV_{t}\preceq\overline{V}_{t}. Therefore, using Lemma 19, with probability at least 1−δ′1-\delta^{\prime},

The result follows after taking a union bound over all elements in C\mathcal{C}. ∎

Appendix K Additional Experiments

In our implementation of SOLID, we ignore the projection of the parameters computed by regularized least squares onto Θ\Theta. Moreover, we remove the restriction that the alternative parameters should lie in Θ\Theta. That is, we use

and similarly for Θ‾t\overline{\Theta}_{t}. 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 Vη=∑x,aη(x,a)ϕ(x,a)ϕ(x,a)TV_{\eta}=\sum_{x,a}\eta(x,a)\phi(x,a)\phi(x,a)^{\mathsf{T}} and ϕθ⋆⋆(x)=ϕ(x,aθ⋆⋆(x))\phi_{\theta^{\star}}^{\star}(x)=\phi(x,a^{\star}_{\theta^{\star}}(x)). 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 βt=σ2(log⁡(t)+dlog⁡log⁡(n))\beta_{t}=\sigma^{2}(\log(t)+d\log\log(n)) and γt=σ2(log⁡(St)+dlog⁡log⁡(n))\gamma_{t}=\sigma^{2}(\log(S_{t})+d\log\log(n)) as prescribed by Thm. 1 (without numerical constants). For OAM, we use the same βt\beta_{t} 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 d\sqrt{d} used to prove its frequentist regret. All plots are the results of 100100 runs with 95%95\% Student’s t confidence intervals.

In both experiments, for SOLID we set αω=1\alpha_{\omega}=1, αλ=0.5\alpha_{\lambda}=0.5, and we normalize the gradients by context in l2l_{2}-norm. We do not reset the optimizer at the beginning of each phase. We use the theoretical exponential schedule for zkz_{k} and pkp_{k} as defined in Thm. 2. We set z0=1z_{0}=1, λ1=0\lambda_{1}=0 for the first experiment and z0=∣A∣z_{0}=|\mathcal{A}|, λ1=50\lambda_{1}=50 for the second one. The reward noise is σ=0.5\sigma=0.5 in the first experiment and σ=1\sigma=1 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 ξ=0.1\xi=0.1 and σ2=1\sigma^{2}=1. We study the effect of the following parameters, with corresponding default values.

z0z_{0} (default 3030): the initial normalization factor;

λ1\lambda_{1} (default ): the initial multiplier;

αω\alpha^{\omega} (default 0.10.1): learning rate for ω\omega. We keep it fixed instead of decreasing with the phase length as suggested by the theory;

αλ\alpha^{\lambda} (default 0.50.5): learning rate for λ\lambda. We keep it fixed as for αω\alpha^{\omega};

zk,pkz_{k},p_{k} (default zk=z0ekz_{k}=z_{0}e^{k}, pk=zke2kp_{k}=z_{k}e^{2k}): 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 zz controls both the feasibility of the optimization problem and the trade-off between minimizing regret and gathering information about the optimal arms when tt is small. While a small value of z0z_{0} 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 z0=1z_{0}=1 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 z0z_{0}, where larger values lead SOLID to collect more information about θ⋆\theta^{\star} in the very first learning steps (see Fig. 3(right)).

Fig. 4 shows the effect of varying αω\alpha^{\omega} and αλ\alpha^{\lambda}. In this particular case, αλ\alpha^{\lambda} seems to have no remarkable effect on SOLID’s performance. On the other hand, the algorithm is quite sensible to the choice of αω\alpha^{\omega}, 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 zkz_{k} and pkp_{k} with respect to the one prescribed by the theory. We have zk=z0ek,pk=zke2kz_{k}=z_{0}e^{k},p_{k}=z_{k}e^{2k} (exp-exp), zk=z0(1+k),pk=zkekz_{k}=z_{0}(1+k),p_{k}=z_{k}e^{k} (lin-exp), zk=z0(1+k),pk=zk(1+k)2z_{k}=z_{0}(1+k),p_{k}=z_{k}(1+k)^{2} (lin-pol), and zk=z0(1+k),pk=zk(1+k)z_{k}=z_{0}(1+k),p_{k}=z_{k}(1+k) (lin-lin). Fig. 5(left) shows the result (here we set z0=1z_{0}=1 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 zz (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 z=1z=1 and z=30z=30. 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 ω\omega 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 Δθ^t(x,a)2/∥ϕ(x,a)−ϕ(x)⋆∥V‾t−12\Delta_{\widehat{\theta}_{t}}(x,a)^{2}/\|\phi(x,a)-\phi(x)^{\star}\|_{\overline{V}_{t}^{-1}}^{2} while OAM uses Δθ^t(x,a)2/∥ϕ(x,a)∥V‾t−12\Delta_{\widehat{\theta}_{t}}(x,a)^{2}/\|\phi(x,a)\|_{\overline{V}_{t}^{-1}}^{2}. 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 −10-10 to 1010 for a total of 100100 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 3636-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 7272 entries) and fit a 64×6464\times 64 neural-network with ReLU non-linearities to predict the ratings of a random subset of 75%75\% of the users, using these feature vectors as inputs. We obtain R2≃0.95R^{2}\simeq 0.95 on the remaining 25%25\% 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 θ⋆\theta^{\star}. Rewards in our bandit problem are generated from this linear model by perturbing the prediction with N(0,0.52)\mathcal{N}(0,0.5^{2}) noise. We thus obtain a problem with d=65d=65 (the 6464 hidden neurons plus the bias term), 4040 arms (the jokes), and a total of 1918119181 users.

We run the algorithms for 2⋅1062\cdot 10^{6} steps, with each run randomizing a subset of 1%1\% of the total users (hence ∣X∣|\mathcal{X}| = 191) and using all 4040 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.