Black-Box Reductions for Parameter-free Online Learning in Banach Spaces

Ashok Cutkosky, Francesco Orabona

Parameter Free Online Learning

Our primary contribution is a series of three reductions that simplify the design of parameter-free algorithms,The name “parameter-free” was first used by Chaudhuri et al. for an expert algorithm that does not need to know the entropy of the competitor to achieve the optimal regret bound for any competitor. that is algorithms whose regret bound is optimal without the need to tune parameters (e.g. learning rates). First, we show that algorithms for online exp-concave optimization imply parameter-free algorithms for OLO (Section 2). Second, we show a general reduction from online learning in arbitrary dimensions with any norm to one-dimensional online learning (Section 3). Finally, given any two convex sets W⊂VW\subset V, we construct an online learning algorithm over WW from an online learning algorithm over VV (Section 4).

First, we use our reductions to design a new parameter-free algorithm that improves upon the prior regret bounds, achieving

Notation. The dual of a Banach space BB over a field FF, denoted B⋆B^{\star}, is the set of all continuous linear maps B→FB\to F. We will use the notation ⟨v,w⟩\langle v,w\rangle to indicate the application of a dual vector v∈B⋆v\in B^{\star} to a vector w∈Bw\in B. B⋆B^{\star} is also a Banach space with the dual norm: ∥v∥⋆=sup⁡w∈B, ∥v∥=1⟨w,v⟩\|v\|_{\star}=\sup_{w\in B,\ \|v\|=1}\langle w,v\rangle. For completeness, in Appendix A we recall some more background on Banach spaces.

Online Newton Step to Online Linear Optimization via Betting Algorithms

In this section we show how to use the Online Newton Step (ONS) algorithm to construct a 1D parameter-free algorithm. Our approach relies on the coin-betting abstraction for the design of parameter-free algorithms. Coin betting strategies record the wealth of the algorithm, which is defined by some initial (i.e. user-specified) ϵ\epsilon plus the total “reward” ∑t=1T−gtwt\sum_{t=1}^{T}-g_{t}w_{t} it has gained:

Given this wealth measurement, coin betting algorithms “bet” a signed fraction vt∈(−1,1)v_{t}\in(-1,1) of their current wealth on the outcome of the “coin” gt∈g_{t}\in by playing wt=vtWealthT−1w_{t}=v_{t}\text{Wealth}_{T-1}, so that WealthT=WealthT−1−gtvtWealthT−1\text{Wealth}_{T}=\text{Wealth}_{T-1}-g_{t}v_{t}\text{Wealth}_{T-1}. The advantage of betting algorithms lies in the fact that high wealth is equivalent to a low regret , but lower-bounding the wealth of an algorithm is conceptually simpler than upper-bounding its regret because the competitor w˚\mathring{w} does not appear in (1). Thus the question is how to pick betting fractions vtv_{t} that guarantee high wealth. This is usually accomplished through careful design of bespoke potential functions and meticulous algebraic manipulation, but we take a different and simpler path.

At a high level, our approach is to re-cast the problem of choosing betting fractions vtv_{t} as itself an online learning problem. We show that this online learning problem has exp-concave losses rather than linear losses. Exp-concave losses are known to be much easier to optimize than linear losses and it is possible to obtain ln⁡(T)\ln(T) regret rather than the T\sqrt{T} limit for linear optimization . So by using an exp-concave optimization algorithm such as the Online Newton Step (ONS), we find the optimal betting fraction v˚\mathring{v} very quickly, and obtain high wealth. The pseudocode for the resulting strategy is in Algorithm 1.

Later (in Section 7), we will see that this same 1D argument holds seamlessly in Banach spaces, where now the betting fraction vtv_{t} is a vector in the Banach space and the outcome of the coin gtg_{t} is a vector in the dual space with norm bounded by 1. We therefore postpone computing exact constants for the Big-O notation in Theorem 1 to the more general Theorem 8.

It is important to note that ONS in 1D is extremely simple to implement. Even the projection onto a bounded set becomes just a truncation between two real numbers, so that Algorithm 1 can run quickly. We can show the following regret guarantee:

For ∣gt∣≤1|g_{t}|\leq 1, Algorithm 1, guarantees the regret bound:

Define WealthT(v˚)\text{Wealth}_{T}(\mathring{v}) to be wealth of the betting algorithm that bets the constant (signed) fraction v˚\mathring{v} on every round, starting from initial wealth ϵ>0\epsilon>0.

We begin with the regret-reward duality that is the start of all coin-betting analyses . Suppose that we obtain a bound WealthT≥fT(−∑t=1Tgt)\text{Wealth}_{T}\geq f_{T}\left(-\sum_{t=1}^{T}g_{t}\right) for some fTf_{T}. Then,

where fT⋆f_{T}^{\star} indicates the Fenchel conjugate, defined by fT⋆(x)=sup⁡θ θx−fT(θ)f_{T}^{\star}(x)=\sup_{\theta}\ \theta x-f_{T}(\theta).

So, now it suffices to prove a wealth lower bound. First, observing that WealthT=WealthT−1−WealthT−1gtvt\text{Wealth}_{T}=\text{Wealth}_{T-1}-\text{Wealth}_{T-1}g_{t}v_{t}, we derive a simple expression for ln⁡WealthT\ln\text{Wealth}_{T} by recursion:

Similarly, we have ln⁡WealthT(v˚)=ln⁡(ϵ)+∑t=1Tln⁡(1−v˚gt)\ln\text{Wealth}_{T}(\mathring{v})=\ln(\epsilon)+\sum_{t=1}^{T}\ln(1-\mathring{v}g_{t}). We subtract the identities to obtain

where RTv(v˚)R_{T}^{v}(\mathring{v}) is the regret of our method for choosing vtv_{t}.

For the next step, observe that −ln⁡(1−gtv)-\ln(1-g_{t}v) is exp-concave (a function ff is exp-concave if exp⁡(−f)\exp(-f) is concave), so that choosing vtv_{t} is an online exp-concave optimization problem. Prior work on exp-concave optimization allows us to obtain RTv(v˚)=O(ln⁡(∑t=1Tgt2))R^{v}_{T}(\mathring{v})=O\left(\ln\left(\sum_{t=1}^{T}g_{t}^{2}\right)\right) for any ∣v˚∣≤12|\mathring{v}|\leq\tfrac{1}{2} using the ONS algorithm. Therefore (dropping all constants for simplicity), we use (3) to obtain WealthT≥WealthT(v˚)/∑t=1Tgt2\text{Wealth}_{T}\geq\text{Wealth}_{T}(\mathring{v})/\sum_{t=1}^{T}g_{t}^{2} for all ∣v˚∣≤12|\mathring{v}|\leq\tfrac{1}{2}.

Finally, we need to show that there exists v˚\mathring{v} such that WealthT(v˚)/∑t=1Tgt2\text{Wealth}_{T}(\mathring{v})/\sum_{t=1}^{T}g_{t}^{2} is high enough to guarantee low regret on our original problem. Consider v˚=−∑t=1Tgt2∑t=1Tgt2+2∣∑t=1Tgt∣∈[−1/2,1/2]\mathring{v}=\tfrac{-\sum_{t=1}^{T}g_{t}}{2\sum_{t=1}^{T}g_{t}^{2}+2\left|\sum_{t=1}^{T}g_{t}\right|}\in[-1/2,1/2]. Then, we invoke the tangent bound ln⁡(1+x)≥x−x2\ln(1+x)\geq x-x^{2} for x∈[−1/2,1/2]x\in[-1/2,1/2] (e.g. see ) to see:

where fT(x)=ϵexp⁡[x2/(4∑t=1Tgt2+4∣x∣)]/∑t=1Tgt2f_{T}(x)=\epsilon\exp[x^{2}/(4\sum_{t=1}^{T}g_{t}^{2}+4|x|)]/\sum_{t=1}^{T}g_{t}^{2}. To obtain the desired result, we recall that WealthT≥fT(∑t=1Tgt)\text{Wealth}_{T}\geq f_{T}\left(\sum_{t=1}^{T}g_{t}\right) implies RT(w˚)≤ϵ+fT⋆(w˚)R_{T}(\mathring{w})\leq\epsilon+f_{T}^{\star}(\mathring{w}), and calculate fT⋆f_{T}^{\star} (see Lemma 19).

In order to implement the algorithm, observe that our reference betting fraction v˚\mathring{v} lies in [−1/2,1/2][-1/2,1/2], so we can run ONS restricted to the domain [−1/2,1/2][-1/2,1/2]. Exact constants can be computed by substituting the constants coming from the ONS regret guarantee, as we do in Theorem 8. ∎

From 1D Algorithms to Dimension-Free Algorithms

A common strategy for designing parameter-free algorithms is to first create an algorithm for 1D problems (as we did in the previous section), and then invoke some particular algorithm-specific analysis to extend the algorithm to high dimensional spaces [23; 6; 20]. This strategy is unappealing for a couple of reasons. First, these arguments are often somewhat tailored to the algorithm at hand, and so a new argument must be made for a new 1D algorithm (indeed, it is not clear that any prior dimensionality extension arguments apply to our Algorithm 1). Secondly, all such arguments we know of apply only to Hilbert spaces and so do not allow us to design algorithms that consider norms other than the standard Euclidean 22-norm. In this section we address both concerns by providing a black-box reduction from optimization in any Banach space to 1D optimization. In further contrast to previous work, our reduction can be proven in just a few lines.

Given these inputs, the reduction uses the 1D algorithm A1D\mathcal{A_{\text{1D}}} to learn a “magnitude” zz and the unit-ball algorithm AS\mathcal{A}_{S} to learn a “direction” yy. This direction and magnitude are multiplied together to form the final output w=zyw=zy. Given a gradient gg, the “magnitude error” is given by ⟨g,y⟩\langle g,y\rangle, which is intuitively the component of the gradient parallel to ww. The “direction error” is just gg. Our reduction is described formally in Algorithm 2.

Where by slight abuse of notation we set w˚/∥w˚∥=0\mathring{w}/\|\mathring{w}\|=0 when w˚=0\mathring{w}=0. Further, the subgradients sts_{t} sent to A1D\mathcal{A_{\text{1D}}} satisfy ∣st∣≤∥gt∥⋆|s_{t}|\leq\|g_{t}\|_{\star}.

First, observe that ∣st∣≤∥gt∥⋆∥yt∥≤∥gt∥⋆|s_{t}|\leq\|g_{t}\|_{\star}\|y_{t}\|\leq\|g_{t}\|_{\star} since ∥yt∥≤1\|y_{t}\|\leq 1 for all tt. Now, compute:

With this reduction in hand, designing dimension-free and parameter-free algorithms is now exactly as easy as designing 1D algorithms, so long as we have access to a unit-ball algorithm AS\mathcal{A}_{S}. As mentioned, for any Hilbert space we indeed have such an algorithm. In general, algorithms AS\mathcal{A}_{S} exist for most other Banach spaces of interest , and in particular one can achieve RTAS(w˚)≤O(1λ∑t=1T∥gt∥⋆2)R^{\mathcal{A}_{S}}_{T}(\mathring{w})\leq O\left(\sqrt{\tfrac{1}{\lambda}\sum_{t=1}^{T}\|g_{t}\|_{\star}^{2}}\right) whenever BB is (2,λ)(2,\lambda)-uniformly convex using the Follow-the-Regularized-Leader algorithm with regularizers scaled by λ∑i=1t∥gi∥⋆2\tfrac{\sqrt{\lambda}}{\sqrt{\sum_{i=1}^{t}\|g_{i}\|_{\star}^{2}}} .

Applying Algorithm 2 to our 1D Algorithm 1, for any (2,λ)(2,\lambda)-uniformly convex BB, we obtain:

Not only does this provide the fastest known parameter-free algorithm for an arbitrary norm, it is also the first parameter-free algorithm to obtain a dependence on the gradients of ∥gt∥⋆2\|g_{t}\|_{\star}^{2} rather than ∥gt∥⋆\|g_{t}\|_{\star}Independently, achieved the same runtime in the supervised prediction setting, but with no adaptivity to gtg_{t}.. This improved bound immediately implies much lower regret in easier settings, such as smooth losses with small loss values at w˚\mathring{w} .

Reduction to Constrained Domains

The previous algorithms have dealt with optimization over an entire vector space. Although common and important case in practice, sometimes we must perform optimization with constraints, in which each wtw_{t} and the comparison point w˚\mathring{w} must lie in some convex domain WW that is not an entire vector space. This constrained problem is often solved with the classical Mirror Descent or Follow-the-Regularized-Leader analysis. However, these approaches have drawbacks: for unbounded sets, they typically maintain regret bounds that have suboptimal dependence on w˚\mathring{w}, or, for bounded sets, they depend explicitly on the diameter of WW. We will address these issues with a simple reduction. Given any convex domain V⊃WV\supset W and an algorithm A\mathcal{A} that maintains regret RTA(w˚)R^{\mathcal{A}}_{T}(\mathring{w}) for any w˚∈V\mathring{w}\in V, we obtain an algorithm that maintains 2RTA(w˚)2R^{\mathcal{A}}_{T}(\mathring{w}) for any w˚\mathring{w} in WW.

Before giving the reduction, we define the distance to a convex set WW as SW(x)=inf⁡d∈W∥x−d∥S_{W}(x)=\inf_{d\in W}\|x-d\| as well as the projection to WW as ΠW(x)={d∈W:∥d−x∥≤∥c−x∥,∀c∈W}\Pi_{W}(x)=\{d\in W:\|d-x\|\leq\|c-x\|,\forall c\in W\}. Note that if BB is reflexive,All Hilbert spaces and finite-dimensional Banach spaces are reflexive. ΠW(x)≠∅\Pi_{W}(x)\neq\emptyset and that it is a singleton if BB is a Hilbert space [16, Exercise 4.1.4].

The intuition for our reduction is as follows: given a vector zt∈Vz_{t}\in V from A\mathcal{A}, we predict with any wt∈ΠW(zt)w_{t}\in\Pi_{W}(z_{t}). Then give A\mathcal{A} a subgradient at ztz_{t} of the surrogate loss function ⟨gt,⋅⟩+∥gt∥⋆SW\langle g_{t},\cdot\rangle+\|g_{t}\|_{\star}S_{W}, which is just the original linearized loss plus a multiple of SWS_{W}. The additional term SWS_{W} serves as a kind of Lipschitz barrier that penalizes A\mathcal{A} for predicting with any zt∉Wz_{t}\notin W. Pseudocode for the reduction is given in Algorithm 3.

Assume that the algorithm A\mathcal{A} obtains regret RTA(w˚)R^{\mathcal{A}}_{T}(\mathring{w}) for any w˚∈V\mathring{w}\in V. Then Algorithm 3 guarantees regret:

Before proving this Theorem, we need a small technical Proposition, proved in Appendix D.

SWS_{W} is convex and 11-Lipschitz for any closed convex set WW in a reflexive Banach space BB.

We conclude this section by observing that in many cases it is very easy to compute an element of ΠW\Pi_{W} and a subgradient of SWS_{W}. For example, when WW is a unit ball, it is easy to see that ΠW(x)=x∥x∥\Pi_{W}(x)=\tfrac{x}{\|x\|} and ∂SW(x)=∂∥x∥\partial S_{W}(x)=\partial\|x\| for any xx not in the ball. In general, we provide the following result that often simplifies computing the subgradient of SWS_{W} (proved in Appendix D):

Let BB be a reflexive Banach space such that for every 0≠b∈B0\neq b\in B, there is a unique dual vector b⋆b^{\star} such that ∥b⋆∥⋆=1\|b^{\star}\|_{\star}=1 and ⟨b⋆,b⟩=∥b∥\langle b^{\star},b\rangle=\|b\|. Let W⊂BW\subset B a closed convex set. Given x∈Bx\in B and x∉Wx\notin W, let p∈ΠW(x)p\in\Pi_{W}(x). Then {(x−p)⋆}=∂SW(x)\{(x-p)^{\star}\}=\partial S_{W}(x).

Reduction for Multi-Scale Experts

In this section, we apply our reductions to the multi-scale experts problem considered in [9; 1]. Our algorithm improves upon both prior algorithms: the approach of has a mildly sub-optimal dependence on the prior distribution, while the approach of takes time O(T)O(T) per update, resulting in a quadratic total runtime. Our algorithm matches the regret bound of while running in the same time complexity as online gradient descent.

We accomplish this through two reductions. First, given any distribution (π1,…,πN)(\pi_{1},\dots,\pi_{N}) and any family of 1-dimensional OLO algorithms A(ϵ)\mathcal{A}(\epsilon) that guarantees R(u)≤O(ϵ+∣u∣log⁡(∣u∣T/ϵ)T)R(u)\leq O\left(\epsilon+|u|\sqrt{\log(|u|T/\epsilon)T}\right) on 1-Lipschitz losses for any given ϵ\epsilon (such as our Algorithm 1 or many other parameter-free algorithms), we apply the classic “coordinate-wise updates” trick to generate an NN-dimensional OLO algorithm with regret RT(u)=O(ϵ+∑i=1N∣ui∣log⁡(∣ui∣T/(ϵπi))T)R_{T}(u)=O\left(\epsilon+\sum_{i=1}^{N}|u_{i}|\sqrt{\log\left(|u_{i}|T/(\epsilon\pi_{i})\right)T}\right) on losses that are 11-Lipschitz with respect to the 11-norm.

Suppose for any ϵ>0\epsilon>0, A(ϵ)\mathcal{A}(\epsilon) guarantees regret

for 1-dimensional losses bounded by 11. Then Algorithm 4 guarantees regret

With this in hand, notice that applying our reduction Algorithm 3 with the 11-norm easily yields an algorithm over the probability simplex WW with the same regret (up to a factor of 2), as long as ∥gt∥∞≤1\|g_{t}\|_{\infty}\leq 1. Then, we apply an affine change of coordinates to make our multi-scale experts losses have ∥gt∥∞≤1\|g_{t}\|_{\infty}\leq 1, so that applying this algorithm yields the desired result (see Algorithm 5).

If gtg_{t} satisfies ∣gt,i∣≤ci|g_{t,i}|\leq c_{i} for all tt and ii and A(ϵ)\mathcal{A}(\epsilon) satisfies the conditions of Theorem 5, then, for any w˚\mathring{w} in the probability simplex, Algorithm 5 satisfies the regret bound

In Appendix E we show how to compute the projection ΠS\Pi_{S} and a subgradient of SWS_{W} in O(N)O(N) time via a simple greedy algorithm. As a result, our entire reduction runs in O(N)O(N) time per update.

Reduction to Adapt to Curvature

In this section, we present a black-box reduction to make a generic online learning algorithm over a Banach space adaptive to the curvature of the losses. Given a set WW of diameter D=sup⁡x,y∈W∥x−y∥D=\sup_{x,y\in W}\|x-y\|, our reduction obtains O(log⁡(TD)2/μ)O(\log(TD)^{2}/\mu) regret on online μ\mu-strongly convex optimization problems, but still guarantees O(log⁡(TD)2DT)O(\log(TD)^{2}D\sqrt{T}) regret for online linear optimization problems, both of which are only log factors away from the optimal guarantees. We follow the intuition of , who suggest adding a weighted average of previous wtw_{t}s to the outputs of a base algorithm as a kind of “momentum” term. We improve upon their regret guarantee by a log factor and by the ∥gt∥⋆2\|g_{t}\|_{\star}^{2} terms instead of ∥gt∥⋆\|g_{t}\|_{\star}. More importantly, their algorithm involves an optimization step which may be very slow for most domains (e.g. the unit ball). In contrast, thanks to our fast reduction in Section 4, we keep the same running time as the base algorithm. Finally, previous results for algorithms with similar regret (e.g. [7; 30]) show logarithmic regret only for stochastic strongly convex problems. We give a two-line argument extending this to the adversarial case as well.

Let A\mathcal{A} be an online linear optimization algorithm that outputs wtw_{t} in response to gtg_{t}. Suppose WW is a convex closed set of diameter DD. Suppose A\mathcal{A} guarantees for all tt and v˚\mathring{v}:

for constants AA, BB and CC and ϵ\epsilon independent of tt. Then for all w˚∈W\mathring{w}\in W, Algorithm 6 guarantees

Where we have used ∥gt∥⋆≤1\|g_{t}\|_{\star}\leq 1.

Banach-space betting through ONS

Let BB be a dd-dimensional real Banach space and u∈Bu\in B be an arbitrary unit vector. Then, there exists a linear operator LL such that using the Algorithm 7, we have for any w˚∈B\mathring{w}\in B,

The main particularity of this bound is the presence of the terms d∑t=1T⟨gt,w˚⟩2\sqrt{d\sum_{t=1}^{T}\langle g_{t},\mathring{w}\rangle^{2}} rather than the usual ∥w˚∥∑t=1T∥gt∥⋆2\|\mathring{w}\|\sqrt{\sum_{t=1}^{T}\|g_{t}\|_{\star}^{2}}. We can interpret this bound as being adaptive to any sequence of norms ∥⋅∥1,…,∥⋅∥t\|\cdot\|_{1},\dots,\|\cdot\|_{t} because d∑t=1T⟨gt,w˚⟩2≤d∑t=1T∥w˚∥t2(∥gt∥t)⋆2\sqrt{d\sum_{t=1}^{T}\langle g_{t},\mathring{w}\rangle^{2}}\leq\sqrt{d\sum_{t=1}^{T}\|\mathring{w}\|_{t}^{2}(\|g_{t}\|_{t})_{\star}^{2}}. A similar kind of “many norm adaptivity” was recently achieved in , which competes with the best fixed LpL_{p} norm (or the best fixed norm in any finite set). Our bound in Theorem 8 is a factor of d\sqrt{d} worse,The dependence on dd is unfortunately unimprovable, as shown by . but we can compete with any possible sequence of norms rather than with any fixed one.

Conclusions

We have introduced a sequence of three reductions showing that parameter-free online learning algorithms can be obtained from online exp-concave optimization algorithms, that optimization in a vector space with any norm can be obtained from 1D optimization, and that online optimization with constraints is no harder than optimization without constraints. Our reductions result in simpler arguments in many cases, and also often provide better algorithms in terms of regret bounds or runtime. We therefore hope that these tools will be useful for designing new online learning algorithms.

Acknowledgments

This material is based upon work partly supported by the National Science Foundation under grant no. 1740762 “Collaborative Research: TRIPODS Institute for Optimization and Learning” and by a Google Research Award for FO.

References

Appendix

In Section A we collect some background information about Banach spaces, their duals, and other properties.

In Section B we provide an analysis of the ONS algorithm in Banach spaces that is useful for proving Theorem 8.

In Section C we apply this analysis of ONS in Banach spaces to prove Theorem 8, and provide the missing Fenchel conjugate calculation required to prove Theorem 1, which are our reductions from parameter-free online learning to Exp-concave optimization.

In Section D we prove Proposition 1, used in our reduction from constrained optimization to unconstrained optimization in Section 4. In this section we also prove Theorem 4, which simplifies computing subgradients of SWS_{W} in many cases.

In Section E we show how to compute ΠW\Pi_{W} and a subgradient of SWS_{W} on O(N)O(N) time for use in our multi-scale experts algorithm.

Finally, in Section F we prove Theorem 7, our regret bound for an algorithm that adapts to stochastic curvature.

Appendix A Banach Spaces

Given any vector space VV, there is a natural injection V→V⋆⋆V\to V^{\star\star} given by x↦⟨⋅,x⟩x\mapsto\langle\cdot,x\rangle. When this injection is an isomorphism of Banach spaces, then the space VV is called reflexive. All finite-dimensional Banach spaces are reflexive.

Given any linear map of Banach spaces T:X→YT:X\to Y, we define the adjoint map T⋆:Y⋆→X⋆T^{\star}:Y^{\star}\to X^{\star} by T⋆(y⋆)(x)=⟨y⋆,T(x)⟩T^{\star}(y^{\star})(x)=\langle y^{\star},T(x)\rangle. T⋆T^{\star} has the property (by definition) that ⟨y⋆,T(x)⟩=⟨T⋆(y⋆),x⟩\langle y^{\star},T(x)\rangle=\langle T^{\star}(y^{\star}),x\rangle. As a special case, if BB is a reflexive Banach space and T:B→B⋆T:B\to B^{\star}, then we can use the natural identification between B⋆⋆B^{\star\star} and BB to view T⋆T^{\star} as T⋆:B→B⋆T^{\star}:B\to B^{\star}. Thus, in this case it is possible to have T=T⋆T=T^{\star}, in which case we call TT self-adjoint.

We define a Banach space BB as (p,D)(p,D) uniformly convex if :

From this definition, we can see that if BB is (2,D)(2,D) uniformly convex, then ∥⋅∥2\|\cdot\|^{2} is a DD-strongly convex function with respect to ∥⋅∥\|\cdot\|:

Let f(x)f(x) a convex function that satisfies

Then, ff satisfies f(x+δ)≥f(x)+g(δ)+D∥δ∥ppf(x+\delta)\geq f(x)+g(\delta)+D\frac{\|\delta\|^{p}}{p} for any subgradient g∈∂f(x)g\in\partial f(x). In particular for p=2p=2, ff is DD strongly convex with respect to ∥⋅∥\|\cdot\|.

that implies Dp∥2δ∥p≤Rx(2δ)\frac{D}{p}\|2\delta\|^{p}\leq R_{x}(2\delta). So that f(x+τ)=f(x)+g(τ)+Rx(τ)≥f(x)+g(τ)+Dp∥τ∥pf(x+\tau)=f(x)+g(\tau)+R_{x}(\tau)\geq f(x)+g(\tau)+\frac{D}{p}\|\tau\|^{p} as desired. ∎

Let BB be a (2,D)(2,D) uniformly convex Banach space, then f(x)=12∥x∥2f(x)=\frac{1}{2}\|x\|^{2} is DD-strongly convex.

Let x=u+vx=u+v and y=u−vy=u-v. Then, from the definition of (2,D)(2,D) uniformly convex Banach space, we have

Using Lemma 9, we have the stated bound. ∎

Appendix B Proof of the regret bound of ONS in Banach spaces

First, we need some additional facts about self-adjoint operators. These are straight-forward properties in Hilbert spaces, but may be less familiar in Banach spaces so we present them below for completeness.

Suppose XX and YY are Banach spaces and T:X→YT:X\to Y is invertible. Then, T⋆T^{\star} is invertible and (T−1)⋆=(T⋆)−1(T^{-1})^{\star}=(T^{\star})^{-1}.

Let y⋆∈Y⋆y^{\star}\in Y^{\star}. Let x∈Xx\in X. Recall that by definition ⟨T⋆(y⋆),x⟩=⟨y⋆,T(x)⟩\langle T^{\star}(y^{\star}),x\rangle=\langle y^{\star},T(x)\rangle. Then we have

where we used the definition of adjoint twice. Therefore, (T−1)⋆(T⋆(y⋆))=y⋆(T^{-1})^{\star}(T^{\star}(y^{\star}))=y^{\star} and so (T−1)⋆=(T⋆)−1(T^{-1})^{\star}=(T^{\star})^{-1}. ∎

Suppose BB is a reflexive Banach space and T:B→B⋆T:B\to B^{\star} is such that

for some vectors bi∈B⋆b^{i}\in B^{\star}. Then T⋆=TT^{\star}=T.

Let g,f∈Bg,f\in B. Since BB is reflexive, gg corresponds to the function ⟨⋅,g⟩∈B⋆⋆\langle\cdot,g\rangle\in B^{\star\star}. Now, we compute:

Suppose τ>0\tau>0, BB is a dd-dimensional real Banach space, b1,…,bdb^{1},\dots,b^{d} are a basis for B⋆B^{\star} and g1,…,gTg_{1},\dots,g_{T} are elements of B⋆B^{\star}. Then, A:B→B⋆A:B\to B^{\star} defined by A(x)=τ∑i=1d⟨bi,x⟩bi+∑t=1T⟨gt,x⟩gtA(x)=\tau\sum_{i=1}^{d}\langle b^{i},x\rangle b^{i}+\sum_{t=1}^{T}\langle g_{t},x\rangle g_{t} is invertible and self-adjoint, and ⟨Ax,x⟩>0\langle Ax,x\rangle>0 for all x≠0x\neq 0.

First, AA is self-adjoint by Proposition 5.

Next, we show AA is invertible. Suppose otherwise. Then, since BB and B⋆B^{\star} are both dd-dimensional, AA must have a non-trivial kernel element xx. Therefore,

so that ⟨bi,x⟩=0\langle b^{i},x\rangle=0 for all ii. Since the bib^{i} form a basis for B⋆B^{\star}, this implies ⟨y,x⟩=0\langle y,x\rangle=0 for all y∈B⋆y\in B^{\star}, which implies x=0x=0. Therefore, AA has no kernel and so must be invertible.

Finally, observe that since (5) holds for any xx, we must have ⟨Ax,x⟩>0\langle Ax,x\rangle>0 if x≠0x\neq 0. ∎

Now we state the ONS algorithm in Banach spaces and prove its regret guarantee:

Using the notation of Algorithm 8, suppose L(x)=∑i=1d⟨bi,x⟩L(x)=\sum_{i=1}^{d}\langle b^{i},x\rangle for some basis bi∈B⋆b^{i}\in B^{\star} and that BB is dd-dimensional. Then for any v˚∈S\mathring{v}\in S,

First, observe by Proposition 6 that AtA_{t} is invertible and self-adjoint for all tt.

Now, define xt+1=vt−1βAt−1(zt)x_{t+1}=v_{t}-\frac{1}{\beta}A^{-1}_{t}(z_{t}) so that vt+1=ΠSAt(xt+1)v_{t+1}=\Pi^{A_{t}}_{S}(x_{t+1}). Then, we have

where in the last line we used ⟨At(vt−v˚),At−1(zt)⟩=⟨(vt−v˚),At⋆At−1(zt)⟩\langle A_{t}(v_{t}-\mathring{v}),A^{-1}_{t}(z_{t})\rangle=\langle(v_{t}-\mathring{v}),A_{t}^{\star}A^{-1}_{t}(z_{t})\rangle and At⋆=AtA_{t}^{\star}=A_{t}. We now use the Lemma 8 from , extended to Banach spaces thanks to the last statement of Proposition 6, to have

It remains to choose LL properly and analyze the sum ∑t=1T⟨zt,At−1(zt)⟩\sum_{t=1}^{T}\langle z_{t},A^{-1}_{t}(z_{t})\rangle In order to do this, we introduce the concept of an Auerbach basis (e.g. see Theorem 1.16):

Let BB be a dd-dimensional Banach space. Then there exists a basis of b1,…,bdb_{1},\dots,b_{d} of BB and a basis b1,…,bdb^{1},\dots,b^{d} of B⋆B^{\star} such that ∥bi∥=∥bi∥⋆=1\|b_{i}\|=\|b^{i}\|_{\star}=1 for all ii and ⟨bi,bj⟩=δij\langle b_{i},b^{j}\rangle=\delta_{ij}. Any bases (bi)(b_{i}) and (bi)(b^{i}) satisfying these conditions is called an Auerbach basis.

We will use an Auerbach basis to define LL, and also to provide a coordinate system that makes it easier to analyze the sum ∑t=1T⟨zt,At−1(zt)⟩\sum_{t=1}^{T}\langle z_{t},A^{-1}_{t}(z_{t})\rangle.

Suppose BB is dd-dimensional. Let (bi)(b_{i}) and (bi)(b^{i}) be an Auerbach basis for BB. Set L(x)=∑i=1d⟨bi,x⟩biL(x)=\sum_{i=1}^{d}\langle b^{i},x\rangle b^{i}. Define AtA_{t} as in Algorithm 7. Then, for any v˚∈S\mathring{v}\in S, the following holds

First, we show that β2⟨L(v˚),v˚⟩≤βd2∥v˚∥2\frac{\beta}{2}\langle L(\mathring{v}),\mathring{v}\rangle\leq\frac{\beta d}{2}\|\mathring{v}\|^{2}. To see this, observe that for any x∈Bx\in B,

Since ⟨bi,bj⟩=δij\langle b^{i},b_{j}\rangle=\delta_{ij}, these maps respect the action of dual vectors in B⋆B^{\star}. That is,

Further, since each ∥bi∥=∥bi∥⋆=1\|b_{i}\|=\|b_{i}\|_{\star}=1, we have

Further, when written as a matrix, the ijijth element of M‾\overline{M} is

These maps all commute properly: Mx‾=M‾x‾\overline{Mx}=\overline{M}\overline{x} for any M∈L(B,B⋆)M\in\mathcal{L}(B,B^{\star}) and x∈Bx\in B, and similarly Mx‾=M‾x‾\overline{Mx}=\overline{M}\overline{x} for any M∈L(B⋆,B)M\in\mathcal{L}(B^{\star},B) and x∈B⋆x\in B^{\star}. It follows that M‾−1=M−1‾\overline{M}^{-1}=\overline{M^{-1}} for any MM as well.

Now, let’s calculate L‾ij\overline{L}_{ij}:

so that the matrix L‾\overline{L} is the identity.

Finally, if Mg:B→B⋆M_{g}:B\to B^{\star} is the map Mg(x)=⟨g,x⟩gM_{g}(x)=\langle g,x\rangle g, then a simple calculation shows

With these details described, recall that we are trying to bound the sum

We have ∥zn‾∥≤d∥zn∥⋆\|\overline{z_{n}}\|\leq\sqrt{d}\|z_{n}\|_{\star} and

where in the second inequality we used the fact that the determinant is maximized when all the eigenvalues are equal to ∑t=1T∥zt‾∥2d\frac{\sum_{t=1}^{T}\|\overline{z_{t}}\|^{2}}{d}. ∎

For completeness, we also state the regret bound and the setting of the parameters β\beta and τ\tau to obtain a regret bound for exp-concave functions. Note that we use a different settings in Algorithms 1 and 7, tailored to our specific setting.

Suppose we run Algorithm 7 on α\alpha exp-concave losses. Let DD be the diameter of the domain SS and ∥∇f(x)∥⋆≤Z\|\nabla f(x)\|_{\star}\leq Z for all the xx in SS. Then set β=12min⁡(14ZD,α)\beta=\frac{1}{2}\min\left(\frac{1}{4ZD},\alpha\right) and τ=1β2D2\tau=\frac{1}{\beta^{2}D^{2}}. Then

First, observe that classic analysis of α\alpha exp-concave functions [12, Lemma 3] shows that for any x,y∈Sx,y\in S,

Therefore, by Theorems 11 and 13, we have

Substitute our values for β\beta and τ\tau to conclude

where in the last line we used 1β≤8(ZD+1/α)\frac{1}{\beta}\leq 8(ZD+1/\alpha). ∎

Appendix C Proofs of Theorems 1 and 8

Now, observe that since 1−⟨gt,v˚⟩≥01-\langle g_{t},\mathring{v}\rangle\geq 0 and 1−⟨gt,v⟩≥01-\langle g_{t},v\rangle\geq 0, 1+⟨gt,v−v˚⟩1−⟨gt,v⟩≥01+\frac{\langle g_{t},v-\mathring{v}\rangle}{1-\langle g_{t},v\rangle}\geq 0 as well so that ⟨gt,v−v˚⟩1−⟨gt,v⟩≥−1\frac{\langle g_{t},v-\mathring{v}\rangle}{1-\langle g_{t},v\rangle}\geq-1. Further, since ∥v˚−v∥≤1\|\mathring{v}-v\|\leq 1 and 1−⟨gt,v⟩≥1/21-\langle g_{t},v\rangle\geq 1/2, ⟨gt,v−v˚⟩1−⟨gt,v⟩≤2\frac{\langle g_{t},v-\mathring{v}\rangle}{1-\langle g_{t},v\rangle}\leq 2. Therefore, by Lemma 15 we have

where we have used ∥v˚∥≤1/2\|\mathring{v}\|\leq 1/2. Then observe that ∥zt∥⋆2=∥gt∥⋆2(1+⟨gt,βt⟩)2≤4∥gt∥⋆2\|z_{t}\|_{\star}^{2}=\frac{\|g_{t}\|_{\star}^{2}}{(1+\langle g_{t},\beta_{t}\rangle)^{2}}\leq 4\|g_{t}\|_{\star}^{2} so that ln⁡(1+∑t=1T∥zt∥⋆2)≤ln⁡(1+4∑t=1T∥gt∥⋆2)\ln(1+\sum_{t=1}^{T}\|z_{t}\|_{\star}^{2})\leq\ln(1+4\sum_{t=1}^{T}\|g_{t}\|_{\star}^{2}). Finally, substitute the specified value of β\beta and numerically evaluate to conclude the bound. ∎

Now, we collect some Fenchel conjugate calculations that allow us to convert our wealth lower-bounds into regret upper-bounds:

Let f(x)=aexp⁡(b∣x∣)f(x)=a\exp(b|x|), where a,b>0a,b>0. Then

Let f(x)=aexp⁡(bx2∣x∣+c)f(x)=a\exp(b\frac{x^{2}}{|x|+c}), where a,b>0a,b>0 and c≥0c\geq 0. Then

Case ∣x⋆∣≤c|x^{\star}|\leq c. In this case, we have that f(x⋆)≥aexp⁡(bx22c)f(x^{\star})\geq a\exp(b\frac{x^{2}}{2c}), so

where the last inequality is from Lemma 18 in .

Case ∣x⋆∣>c|x^{\star}|>c. In this case, we have that f(x⋆)≥aexp⁡(b(x⋆)22∣x⋆∣)=aexp⁡(b2∣x⋆∣)f(x^{\star})\geq a\exp\left(b\tfrac{(x^{\star})^{2}}{2|x^{\star}|}\right)=a\exp\left(\tfrac{b}{2}|x^{\star}|\right), so

where the last inequality is from Lemma 18.

Considering the max over the two cases gives the stated bound. ∎

Let uu be an arbitrary unit vector and ∥gt∥⋆≤1\|g_{t}\|_{\star}\leq 1 for t=1,⋯ ,Tt=1,\cdots,T. Then

Recall that ln⁡(1+x)≥x−x2\ln(1+x)\geq x-x^{2} for ∣x∣≤1/2|x|\leq 1/2. Then, we compute

Choose v=u2⟨∑t=1Tgt,u⟩∑t=1T⟨gt,u⟩2+∣⟨∑t=1Tgt,u⟩∣v=\frac{u}{2}\frac{\left\langle\sum_{t=1}^{T}g_{t},u\right\rangle}{\sum_{t=1}^{T}\langle g_{t},u\rangle^{2}+\left|\left\langle\sum_{t=1}^{T}g_{t},u\right\rangle\right|}. Then, clearly ∥v∥≤12\|v\|\leq\frac{1}{2}. Thus, we have

Let uu be an arbitrary unit vector in BB and t>0t>0. Then, using the Algorithm 7, we have

Let’s compute a bound on our wealth, WealthT\text{Wealth}_{T}. We have that

where we have used the calculation of Fenchel conjugate of ff from Lemma 19. Then observe that exp⁡(d/17)≤exp⁡((9d+1)/153)≤29d+1\exp(d/17)\leq\exp((9d+1)/153)\leq 2^{9d+1} to conclude:

Given some w˚\mathring{w}, set u=w˚∥w˚∥u=\frac{\mathring{w}}{\|\mathring{w}\|} and t=∥w˚∥t=\|\mathring{w}\|. Then observe that t2∑t=1T⟨gt,u⟩2=∑t=1T⟨gt,w˚⟩2t^{2}\sum_{t=1}^{T}\langle g_{t},u\rangle^{2}=\sum_{t=1}^{T}\langle g_{t},\mathring{w}\rangle^{2} and apply the previous Lemma 21 to conclude the desired result. ∎

Appendix D Proof of Proposition 1 and Theorem 4

Let x,y∈Bx,y\in B, t∈t\in, x′∈ΠW(x)x^{\prime}\in\Pi_{W}(x), and y′∈ΠW(y)y^{\prime}\in\Pi_{W}(y). Then

For the Lipschitzness, let x∈Bx\in B and x′∈ΠW(x)x^{\prime}\in\Pi_{W}(x), and observe that

Similarly, let x∈Bx\in B, δ\delta such that x+δ∈Bx+\delta\in B and x′∈ΠW(x+δ)x^{\prime}\in\Pi_{W}(x+\delta), then

So that ∣SW(x)−SW(x+δ)∣≤∥δ∥|S_{W}(x)-S_{W}(x+\delta)|\leq\|\delta\|. ∎

Now we restate and prove Theorem 4: See 4

Let x′=x+p2x^{\prime}=\frac{x+p}{2}. Then clearly SW(x′)≤∥x′−p∥=∥x−p∥2=SW(x)−∥x−x′∥S_{W}(x^{\prime})\leq\|x^{\prime}-p\|=\frac{\|x-p\|}{2}=S_{W}(x)-\|x-x^{\prime}\|. Since SWS_{W} is 1-Lipschitz, SW(x′)≥SW(x)−∥x−x′∥S_{W}(x^{\prime})\geq S_{W}(x)-\|x-x^{\prime}\| and so SW(x′)=SW(x)−∥x−x′∥S_{W}(x^{\prime})=S_{W}(x)-\|x-x^{\prime}\|.

Suppose g∈∂SW(x)g\in\partial S_{W}(x). Then ⟨g,x′−x⟩+SW(x)≤SW(x′)=SW(x)−∥x−x′∥\langle g,x^{\prime}-x\rangle+S_{W}(x)\leq S_{W}(x^{\prime})=S_{W}(x)-\|x-x^{\prime}\|. Therefore, ⟨g,x′−x⟩≤−∥x−x′∥\langle g,x^{\prime}-x\rangle\leq-\|x-x^{\prime}\|. Since ∥g∥⋆≤1\|g\|_{\star}\leq 1, we must have ∥g∥⋆=1\|g\|_{\star}=1 and ⟨g,x−p⟩=∥x−p∥\langle g,x-p\rangle=\|x-p\|. By assumption, this uniquely specifies the vector (x−p)⋆(x-p)^{\star}. Since ∂SW\partial S_{W} is not the empty set, {(x−p)⋆}=∂SW(x)\{(x-p)^{\star}\}=\partial S_{W}(x). ∎

In this section we show how to compute ΠW(x)\Pi_{W}(x) and a subgradient of SW(x)S_{W}(x) in Algorithm 5. First we tackle ΠW(x)\Pi_{W}(x). Without loss of generality, assume the cic_{i} are ordered so that c1≥c2≥⋯≥cNc_{1}\geq c_{2}\geq\cdots\geq c_{N}. We also consider Wk={x:xi≥0 for all i and ∑i=1Nxi/ci=k}W_{k}=\{x:x_{i}\geq 0\text{ for all }i\text{ and }\sum_{i=1}^{N}x_{i}/c_{i}=k\} instead of W=W1W=W_{1}. Obviously we are particularly interested in the case k=1k=1, but working in this mild generality allows us to more easily state an algorithm for computing ΠW(x)\Pi_{W}(x) in a recursive manner.

Let N>1N>1 and Wk={x:xi≥0 for all i and ∑i=1Nxi/ci=k}W_{k}=\{x:x_{i}\geq 0\text{ for all }i\text{ and }\sum_{i=1}^{N}x_{i}/c_{i}=k\}, and let SWk(x)=inf⁡y∈Wk∥x−y∥1S_{W_{k}}(x)=\inf_{y\in W_{k}}\|x-y\|_{1}. Suppose the cic_{i} are ordered so that c1≥c2≥⋯≥cNc_{1}\geq c_{2}\geq\cdots\geq c_{N}. Then for any x=(x1,…,xn)x=(x_{1},\dots,x_{n}), there exists a y=(y1,…,yn)∈ΠWk(x)y=(y_{1},\dots,y_{n})\in\Pi_{W_{k}}(x) such that

First, suppose N=1N=1. Then clearly there is only one element of WkW_{k} and so the choice of ΠWk(x)\Pi_{W_{k}}(x) is forced. So now assume N>1N>1.

Let (y1,…,yN)∈ΠWk(x1,…,xN)(y_{1},\dots,y_{N})\in\Pi_{W_{k}}(x_{1},\dots,x_{N}) be such that ∣y1−x1∣|y_{1}-x_{1}| is as small as possible (such a point exists because WkW_{k} is compact).

We consider three cases: either x1>kc1,x_{1}>kc_{1}, x1<0x_{1}<0 or x1∈[0,kc1]x_{1}\in[0,kc_{1}].

Case 1: x>kc1x>kc_{1}. Suppose y1<kc1y_{1}<kc_{1}. Let ii be the largest index such that yi≠0y_{i}\neq 0. i≠1i\neq 1 since y1/c1<ky_{1}/c_{1}<k. Choose 0<ϵ<min⁡(yic1ci,kc1−y1)0<\epsilon<\min(y_{i}\frac{c_{1}}{c_{i}},kc_{1}-y_{1}). Then let y′y^{\prime} be such that y1′=y1+ϵy^{\prime}_{1}=y_{1}+\epsilon, yi′=yi−ϵcic1y^{\prime}_{i}=y_{i}-\epsilon\frac{c_{i}}{c_{1}} and yj′=yjy^{\prime}_{j}=y_{j} otherwise. Then by definition of ϵ\epsilon, yi′≥0y^{\prime}_{i}\geq 0 and y1′≤kc1y^{\prime}_{1}\leq kc_{1}. Further, ∑j=1Nyj′/cj=ϵ/c1−cic1ϵ/ci+∑j=1Nyj/cj=k\sum_{j=1}^{N}y^{\prime}_{j}/c_{j}=\epsilon/c_{1}-\frac{c_{i}}{c_{1}}\epsilon/c_{i}+\sum_{j=1}^{N}y_{j}/c_{j}=k so that y′∈Wky^{\prime}\in W_{k}. However, since x1>kc1,x_{1}>kc_{1}, ∥y′−x∥1≤∥y−x∥1−ϵ+ϵcic1≤∥y−x∥1\|y^{\prime}-x\|_{1}\leq\|y-x\|_{1}-\epsilon+\epsilon\frac{c_{i}}{c_{1}}\leq\|y-x\|_{1}. Therefore, y′∈ΠWk(x)y^{\prime}\in\Pi_{W_{k}}(x), but ∣y1′−x1∣<∣y1−x1∣|y^{\prime}_{1}-x_{1}|<|y_{1}-x_{1}|, contradicting our choice of y1y_{1}. Therefore, y1=kc1y_{1}=kc_{1}.

Case 2: x<0x<0. This case is very similar to the previous case. Suppose y1>0y_{1}>0. Let ii be the largest index such that yi≠kciy_{i}\neq kc_{i}. i≠1i\neq 1 since otherwise ∑j=1Nyj/cj>∑j=2Nk=k(N−1)≥k\sum_{j=1}^{N}y_{j}/c_{j}>\sum_{j=2}^{N}k=k(N-1)\geq k, which is not possible. Choose 0<ϵ<min⁡(y1,c1(kci−yi)/ci)0<\epsilon<\min(y_{1},c_{1}(kc_{i}-y_{i})/c_{i}). Set y′y^{\prime} such that y1′=y1−ϵy^{\prime}_{1}=y_{1}-\epsilon, yi′=yi+ϵcic1y^{\prime}_{i}=y_{i}+\epsilon\frac{c_{i}}{c_{1}}. Then, again we have y′∈Wky^{\prime}\in W_{k} and ∥y′−x∥1≤∥y−x1∥1−ϵ+ϵcic1≤∥y−x∥1\|y^{\prime}-x\|_{1}\leq\|y-x_{1}\|_{1}-\epsilon+\epsilon\frac{c_{i}}{c_{1}}\leq\|y-x\|_{1} so that y′∈ΠWk(x)y^{\prime}\in\Pi_{W_{k}}(x), but ∣y1′−x1∣<∣y1−x1∣|y^{\prime}_{1}-x_{1}|<|y_{1}-x_{1}|. Therefore, we cannot have y1>0y_{1}>0 and so y1=0y_{1}=0.

Case 3: x∈[0,kc1]x\in[0,kc_{1}]. Suppose y1<x1≤kc1y_{1}<x_{1}\leq kc_{1}. Then by the same the argument as for Case 1, there is some i>1i>1 such that for any 0<ϵ<min⁡(yic1ci,x1−y1)0<\epsilon<\min(y_{i}\frac{c_{1}}{c_{i}},x_{1}-y_{1}), we can construct y′y^{\prime} with y′∈ΠWk(x)y^{\prime}\in\Pi_{W_{k}}(x) and ∣y1′−x1∣<∣y1−x1∣|y^{\prime}_{1}-x_{1}|<|y_{1}-x_{1}|. Therefore, y1≥x1y_{1}\geq x_{1}.

Similarly, if y1>x1y_{1}>x_{1}, then by the same argument as for Case 2, there is some i>1i>1 such that for any 0<ϵ<min⁡(y1−x1,c1(kci−yi)/ci)0<\epsilon<\min(y_{1}-x_{1},c_{1}(kc_{i}-y_{i})/c_{i}), we again construct y′y^{\prime} with y′∈ΠWk(x)y^{\prime}\in\Pi_{W_{k}}(x) and ∣y1′−x1∣<∣y1−x1∣|y^{\prime}_{1}-x_{1}|<|y_{1}-x_{1}|. Therefore, y1=x1y_{1}=x_{1}. ∎

This result suggests an explicit algorithm for choosing y∈ΠW(x)=ΠW1(x)y\in\Pi_{W}(x)=\Pi_{W_{1}}(x). Using the Proposition we can pick y1y_{1} such that there is a y∈ΠW1(x)y\in\Pi_{W_{1}}(x) with first coordinate y1y_{1}. If y∈ΠWk(x)y\in\Pi_{W_{k}}(x) has first coordinate y1y_{1}, then if Wk2={(y2,…,yn):yi≥0 for all i and ∑i=2Nyi/ci=k}W^{2}_{k}=\{(y_{2},\dots,y_{n}):y_{i}\geq 0\text{ for all }i\text{ and }\sum_{i=2}^{N}y_{i}/c_{i}=k\}, then (y2,…,yN)∈ΠWk−y1/c12(x2,…,xN)(y_{2},\dots,y_{N})\in\Pi_{W^{2}_{k-y_{1}/c_{1}}}(x_{2},\dots,x_{N}). Therefore, we can use a greedy algorithm to choose each yiy_{i} in increasing order of ii and obtain a point y∈ΠWk(x)y\in\Pi_{W_{k}}(x) in O(N)O(N) time. This procedure is formalized in Algorithm 9.

Unfortunately, ∥⋅∥1\|\cdot\|_{1} does not satisfy the hypotheses of Theorem 4 and so we need to do a little more work to compute a subgradient.

Let (y1,…,yn)(y_{1},\dots,y_{n}) be the output of Algorithm 9 on input x=(x1,…,xN)x=(x_{1},\dots,x_{N}). Then if i=Ni=N, ∂SW(x)∂xi=sign(xN−yN)\frac{\partial S_{W}(x)}{\partial x_{i}}={\rm sign}(x_{N}-y_{N}). Let MM be the smallest index such that yM=kMcMy_{M}=k_{M}c_{M}, where kik_{i} is defined in Algorithm 9. There exists a subgradient g∈∂SW(x)g\in\partial S_{W}(x) such that

We start with a few reductions. First, we show that by a small perturbation argument we can assume xM≠kMcMx_{M}\neq k_{M}c_{M}. Next, we show that it suffices to prove that SWS_{W} is linear on a small L∞L_{\infty} ball near xx. Then we go about proving the Proposition for that L∞L_{\infty} ball, which is the meat of the argument.

Before we start the perturbation argument, we need a couple observations about MM. First, observe that ki=yi=0k_{i}=y_{i}=0 for all i>Mi>M.

Next, we show that either have M=NM=N, or xM≥kMcMx_{M}\geq k_{M}c_{M}. If M≠NM\neq N, then by inspection of the Algorithm 9, we must have xM≤0x_{M}\leq 0 and kM=0k_{M}=0 or xM≥kMcMx_{M}\geq k_{M}c_{M}. If kM=0k_{M}=0, then we have 0=kM=kM−1−yM−1cM−10=k_{M}=k_{M-1}-\frac{y_{M-1}}{c_{M-1}}. This implies kM−1cM−1=yM−1k_{M-1}c_{M-1}=y_{M-1}, which contradicts our choice of MM as the smallest index with yM=kMcMy_{M}=k_{M}c_{M}. Therefore, we must have xM≥kMcMx_{M}\geq k_{M}c_{M}. Therefore, we must have M=NM=N, or xM≥kMcMx_{M}\geq k_{M}c_{M}.

Now, we show that we may assume xM≠kMcMx_{M}\neq k_{M}c_{M}. Let δ>0\delta>0. If xM≠kMcMx_{M}\neq k_{M}c_{M}, set xδ=xx_{\delta}=x. Otherwise, set xδ=x+δeMx_{\delta}=x+\delta e_{M}. By inspecting Algorithm 9, we observe that the output on xδx_{\delta} is unchanged from the output on xx, and MM is still the smallest index such that yi=kiciy_{i}=k_{i}c_{i}.

We claim that it suffices to prove g∈∂SW(xδ)g\in\partial S_{W}(x_{\delta}) for all δ\delta rather than g∈∂SW(x)g\in\partial S_{W}(x). To see this, observe that by 1-Lipschitzness, ∣SW(xδ)−SW(x)∣≤δ|S_{W}(x_{\delta})-S_{W}(x)|\leq\delta, so that if g∈∂SW(xδ)g\in\partial S_{W}(x_{\delta}), then for any ww,

By taking δ→0\delta\to 0, we see that gg must be a subgradient of SWS_{W} at xx if g∈∂SW(xδ)g\in\partial S_{W}(x_{\delta}) for all δ\delta. This implies that if we prove the Proposition for any xδx_{\delta}, which has xM≠kMcMx_{M}\neq k_{M}c_{M}, we have proved the proposition for xx.

Following this perturbation argument, for the rest of the proof we consider only the case xM≠kMcMx_{M}\neq k_{M}c_{M}.

Therefore, gg is a subgradient of SWS_{W} at xx.

Next, we turn to identifying the particular L∞L_{\infty} ball we will work with. Let

Clearly, xx is on the boundary of BB. Now, we proceed to show that SWS_{W} is linear on the interior of BB, which will prove the Proposition by the above discussion.

Let x′=x+ϵx^{\prime}=x+\epsilon be an element of BB. We will compute SW(x′)S_{W}(x^{\prime}) by computing the output y′y^{\prime} of running Algorithm 9 on x′x^{\prime}. We will also refer to the internally generated variables kik_{i} as ki′k^{\prime}_{i} to distinguish between the kks generated when computing yy versus when computing y′y^{\prime}. The overall strategy is to show that all of the conditional branches in Algorithm 9 will evaluate to the same branch on xx as on x′x^{\prime}.

Specifically we show the following claim by induction:

First we do the base case. Observe that k1′=k1k^{\prime}_{1}=k_{1}. Then we consider three cases, either x1≤0x_{1}\leq 0, x1∈(0,k1c1]x_{1}\in(0,k_{1}c_{1}], or x1>k1c1x_{1}>k_{1}c_{1}. These cases correspond to y1=0y_{1}=0, y1=x1y_{1}=x_{1}, or y1=k1c1y_{1}=k_{1}c_{1}.

Case 1 (x1≤0x_{1}\leq 0): Since ϵ1≤0\epsilon_{1}\leq 0, we have x1′=x1+ϵ1≤0x^{\prime}_{1}=x_{1}+\epsilon_{1}\leq 0. Therefore, by inspecting the condition blocks in Algorithm 9, y1′=y1=0y^{\prime}_{1}=y_{1}=0 and k2′=k2k^{\prime}_{2}=k_{2}.

Case 2 (x1∈(0,k1,c1]x_{1}\in(0,k_{1},c_{1}]): Since x1>0x_{1}>0, we have ∣ϵ1∣≤q≤x1/2|\epsilon_{1}|\leq q\leq x_{1}/2. Therefore, x1′>0x^{\prime}_{1}>0. Since ϵ1≤0\epsilon_{1}\leq 0, x1′≤x1≤k1c1=k1′c1x^{\prime}_{1}\leq x_{1}\leq k_{1}c_{1}=k^{\prime}_{1}c_{1} so that x1′∈(0,k1′c1]x^{\prime}_{1}\in(0,k^{\prime}_{1}c_{1}]. This implies y1′=x1′y^{\prime}_{1}=x^{\prime}_{1} and

Case 3 (x1>k1c1x_{1}>k_{1}c_{1}): In this last case, observe that ∣ϵ1∣<d≤(x1−k1c1)/2|\epsilon_{1}|<d\leq(x_{1}-k_{1}c_{1})/2 so that x1≥x1′>k1c1=k1′c1x_{1}\geq x^{\prime}_{1}>k_{1}c_{1}=k^{\prime}_{1}c_{1}. This implies y1′=k1′c1=k1c1y^{\prime}_{1}=k^{\prime}_{1}c_{1}=k_{1}c_{1} and k2′=0k^{\prime}_{2}=0.

The values for ∣y1′−x1′∣|y^{\prime}_{1}-x^{\prime}_{1}| can also be checked via the casework. First, suppose 1=M1=M. Then we must have x1>k1c1x_{1}>k_{1}c_{1} (because we assume xM≠kMcMx_{M}\neq k_{M}c_{M} by our perturbation argument). Therefore, y1=y1′=k1c1y_{1}=y^{\prime}_{1}=k_{1}c_{1} and the base case is true.

When 1<M1<M, then we consider the cases x1≤0x_{1}\leq 0 and x1∈(0,k1c1]x_{1}\in(0,k_{1}c_{1}]. The case x1>k1c1x_{1}>k_{1}c_{1} does not occur because 1<M1<M. When x1≤0x_{1}\leq 0, then by the above casework we must have x1′≤0x^{\prime}_{1}\leq 0 and y1′=y1=0y^{\prime}_{1}=y_{1}=0. Therefore,

where we have used ϵ1≤0\epsilon_{1}\leq 0 to conclude ∣x1′∣=∣x1∣+∣ϵ1∣|x^{\prime}_{1}|=|x_{1}|+|\epsilon_{1}|.

When x1∈(0,k1c1]x_{1}\in(0,k_{1}c_{1}], we have y1=x1y_{1}=x_{1}, and by the above casework we have and y1′=x1′y^{\prime}_{1}=x^{\prime}_{1}. Thus ∣y1′−x1′∣=0=∣y1−x1∣|y^{\prime}_{1}-x^{\prime}_{1}|=0=|y_{1}-x_{1}|. This concludes the base case of the induction.

Now, we move on to the inductive step. Suppose the claim holds for all j<ij<i. To show the claim also holds for ii, we consider the three cases i<Mi<M, i=Mi=M and i>Mi>M separately:

Case 1 (i<Mi<M): We must consider two sub-cases, either xi≤0x_{i}\leq 0, or xi∈(0,kici]x_{i}\in(0,k_{i}c_{i}]. The case xi>kicix_{i}>k_{i}c_{i} does not occur because i<Mi<M.

Case 1a (xi≤0x_{i}\leq 0): In this case, we have yi=0y_{i}=0 and ki+1=kik_{i+1}=k_{i}. By definition, ϵi≤0\epsilon_{i}\leq 0 so that xi′≤0x^{\prime}_{i}\leq 0. Then by inspection of Algorithm 9, yi′=0=yiy^{\prime}_{i}=0=y_{i} so that ki+1′=ki′k^{\prime}_{i+1}=k^{\prime}_{i}. By the induction assumption, this implies

Also, ki+1′=ki′≥ki=ki+1k^{\prime}_{i+1}=k^{\prime}_{i}\geq k_{i}=k_{i+1} and also

Finally, since yi′=0=yiy^{\prime}_{i}=0=y_{i} and xi,xi′≤0x_{i},x^{\prime}_{i}\leq 0, we have

Thus all parts of the claim continue to hold.

Case 1b (xi∈(0,kici]x_{i}\in(0,k_{i}c_{i}]): In this case we show that xi′∈(0,ki′,ci]x^{\prime}_{i}\in(0,k^{\prime}_{i},c_{i}]. Observe that yi=xiy_{i}=x_{i} and ki+1=ki−xi/cik_{i+1}=k_{i}-x_{i}/c_{i}. By definition again, ϵi≤0\epsilon_{i}\leq 0, and also ∣ϵi∣≤q≤xi/2|\epsilon_{i}|\leq q\leq x_{i}/2, so that xi′>0x^{\prime}_{i}>0. Finally, since ki′≥kik^{\prime}_{i}\geq k_{i},

Therefore, xi′∈(0,ki′ci]x^{\prime}_{i}\in(0,k^{\prime}_{i}c_{i}] so that yi′=xi′y^{\prime}_{i}=x^{\prime}_{i} and

where the last equality uses the induction assumption. Now, since ϵj≤0\epsilon_{j}\leq 0 for all jj, this implies ki+1′≥ki+1k^{\prime}_{i+1}\geq k_{i+1}. Further, ∣ϵi/ci∣≤dcN/(Nci)≤d/N|\epsilon_{i}/c_{i}|\leq dc_{N}/(Nc_{i})\leq d/N and by the inductive assumption, ∣ki′−ki∣≤di−1N|k^{\prime}_{i}-k_{i}|\leq d\frac{i-1}{N} so that ∣ki+1′−ki+1∣≤diN|k^{\prime}_{i+1}-k_{i+1}|\leq d\frac{i}{N} as desired. Finally, since yi′=xi′y^{\prime}_{i}=x^{\prime}_{i} and yi=xiy_{i}=x_{i}, ∣yi′−xi′∣=0=∣yi−xi∣|y^{\prime}_{i}-x^{\prime}_{i}|=0=|y_{i}-x_{i}|.

Case 2 (i=Mi=M): First we show that yi′=ki′ciy^{\prime}_{i}=k^{\prime}_{i}c_{i}, which implies ki+1′=0k^{\prime}_{i+1}=0, and then we prove the expression for ∣yi′−xi′∣|y^{\prime}_{i}-x^{\prime}_{i}|. Since xM≠kMcMx_{M}\neq k_{M}c_{M}, we must have either either xi>kicix_{i}>k_{i}c_{i} or M=NM=N.

If M=NM=N, then the claim yi′=ki′ciy^{\prime}_{i}=k^{\prime}_{i}c_{i} is immediate by inspection of Algorithm 9. So suppose xi>kicix_{i}>k_{i}c_{i}. By the inductive assumption, ki′≤ki+diN≤ki+dk^{\prime}_{i}\leq k_{i}+d\frac{i}{N}\leq k_{i}+d. Now, we observe that d≤12c1(xi−ciki)≤12ci(xi−ciki)d\leq\frac{1}{2c_{1}}(x_{i}-c_{i}k_{i})\leq\frac{1}{2c_{i}}(x_{i}-c_{i}k_{i}), which implies

Next, observe that d≤12(xi−ciki)d\leq\frac{1}{2}(x_{i}-c_{i}k_{i}) to conclude

Therefore, xi′≥ki′cix^{\prime}_{i}\geq k^{\prime}_{i}c_{i}, so that yi′=ciki′y^{\prime}_{i}=c_{i}k^{\prime}_{i}.

It remains to compute ∣yi′−xi′∣|y^{\prime}_{i}-x^{\prime}_{i}|. By the induction assumption, we have

Observe that ϵM+cM∑j<i, xj∈(0,kjcj]ϵj/cj≤0\epsilon_{M}+c_{M}\sum_{j<i,\ x_{j}\in(0,k_{j}c_{j}]}\epsilon_{j}/c_{j}\leq 0 since ϵi≤0\epsilon_{i}\leq 0 for all i≤Mi\leq M. Now, since cM≤cjc_{M}\leq c_{j} for j≤Mj\leq M, we have

Now, since xM≠xMkMx_{M}\neq x_{M}k_{M}, and i=Mi=M, we have d≤∣xi−ciki∣2d\leq\frac{|x_{i}-c_{i}k_{i}|}{2} by definition so that

where in the last line we have used ∣ϵM+cM∑j<i, xj∈(0,kjcj]ϵj/cj∣≤∣xi−yi∣2\left|\epsilon_{M}+c_{M}\sum_{j<i,\ x_{j}\in(0,k_{j}c_{j}]}\epsilon_{j}/c_{j}\right|\leq\frac{|x_{i}-y_{i}|}{2}. Therefore, we have

Since ki′=0k^{\prime}_{i}=0 by inductive hypothesis, we must have yi′=0y^{\prime}_{i}=0 as desired. Further, observe that as observed in the beginning of the proof, ki=0k_{i}=0 for all i>Mi>M as well so that we have yi=0y_{i}=0. Finally, if xi>0x_{i}>0, we have xi+ϵi≥xi/2>0x_{i}+\epsilon_{i}\geq x_{i}/2>0 since ∣ϵi∣≤q≤xi/2|\epsilon_{i}|\leq q\leq x_{i}/2 so that sign(xi′)=sign(xi){\rm sign}(x^{\prime}_{i})={\rm sign}(x_{i}). Therefore, we can conclude

Since yi=0y_{i}=0, ∣xi∣=∣yi−xi∣|x_{i}|=|y_{i}-x_{i}| and this is the desired form for ∣yi′−xi′∣|y^{\prime}_{i}-x^{\prime}_{i}|.

From the expression for ∣yi′−xi′∣|y^{\prime}_{i}-x^{\prime}_{i}| we see that if gg is given by

then SW(x+ϵ)=SW(x)+⟨g,ϵ⟩S_{W}(x+\epsilon)=S_{W}(x)+\langle g,\epsilon\rangle. Finally, observe that our perturbation xδx_{\delta} has the property sign((xδ)M−yM)=1{\rm sign}((x_{\delta})_{M}-y_{M})=1 if xM=kMyMx_{M}=k_{M}y_{M} to prove the Proposition. ∎

Appendix F Proof of Theorem 7

We re-state Theorem 7 below for reference: See 7

To prove the theorem, we are going to show for any w˚∈W\mathring{w}\in W,

Observe that, by triangle inequality and the definition of dual norm, ⟨gt,z⟩+∥gt∥⋆SW(z)≥⟨gt,x⟩\langle g_{t},z\rangle+\|g_{t}\|_{\star}S_{W}(z)\geq\langle g_{t},x\rangle for all zz and x∈ΠW(z)x\in\Pi_{W}(z), with equality when z∈Wz\in W. Hence, we have

for all w˚∈W\mathring{w}\in W, where in the last inequality we used Proposition 1. Using this inequality with the regret guarantee of A\mathcal{A}, we have

Note that the first term is exactly what we want, so we only have to upper bound the second one. This is readily done through Lemma 22 that immediately gives us the stated result. ∎

Under the hypotheses of Theorem 7, we have

where M=A1+ln⁡(2D2TCϵ2+3TC)M=A\sqrt{1+\ln\left(\frac{2D^{2}T^{C}}{\epsilon^{2}}+3T^{C}\right)} and K=1+Bln⁡(∑t=1T∥gt∥⋆DTCϵ+2TC)K=1+B\ln\left(\frac{\sum_{t=1}^{T}\|g_{t}\|_{\star}DT^{C}}{\epsilon}+2T^{C}\right).

where in the first inequality we have used the fact that the domain is bounded.

Now, we relate ∥x‾t−x‾t−1∥\|\overline{x}_{t}-\overline{x}_{t-1}\| to ∥xt−x‾t∥\|x_{t}-\overline{x}_{t}\|:

So, putting together the last inequalities, we have

We now focus on the the term ∑t=1T∥gt∥⋆2Zt−1\sum_{t=1}^{T}\frac{\|g_{t}\|_{\star}^{2}}{Z_{t-1}} that is easily bounded:

where in the last inequality we used the well-known inequality ∑t=1Tata0+∑i=1tai≤ln⁡(1+∑t=1Tata0), ∀at≥0\sum_{t=1}^{T}\frac{a_{t}}{a_{0}+\sum_{i=1}^{t}a_{i}}\leq\ln(1+\frac{\sum_{t=1}^{T}a_{t}}{a_{0}}),\ \forall a_{t}\geq 0.

where the third equality comes from bias-variance decomposition and the fourth one comes from (10). Hence, we have

Putting all together, we have the stated bound. ∎