No-Regret Algorithms for Unconstrained Online Convex Optimization

Matthew Streeter, H. Brendan McMahan

Introduction

Over the past several years, online convex optimization has emerged as a fundamental tool for solving problems in machine learning (see, e.g., for an introduction). The reduction from general online convex optimization to online linear optimization means that simple and efficient (in memory and time) algorithms can be used to tackle large-scale machine learning problems. The key theoretical techniques behind essentially all the algorithms in this field are the use of a fixed or increasing strongly convex regularizer (for gradient descent algorithms, this is equivalent to a fixed or decreasing learning rate sequence). In this paper, we show that a fundamentally different type of algorithm can offer significant advantages over these approaches. Our algorithms adjust their learning rates based not just on the number of rounds, but also based on the sum of gradients seen so far. This allows us to start with small learning rates, but effectively increase the learning rate if the problem instance warrants it.

The Unconstrained Experts Problem and Portfolio Management

In the classic problem of predicting with expert advice (e.g., ), there are nn experts, and on each round tt the player selects an expert (say ii), and obtains reward gt,ig_{t,i} from a bounded interval (say $).Typically,oneusesanalgorithmthatproposesaprobabilitydistribution). Typically, one uses an algorithm that proposes a probability distributionp_{t}onexperts,sotheexpectedrewardison experts, so the expected reward isp_{t}\cdot g_{t}$.

Our algorithms apply to an unconstrained version of this problem: there are still nn experts with payouts in $,butratherthanselectinganindividualexpert,theplayercanplacea“bet”of, but rather than selecting an individual expert, the player can place a “bet” ofx_{t,i}oneachexperton each experti,andthenreceivesreward, and then receives reward\sum_{i}x_{t,i}g_{t,i}=x_{t}\cdot g_{t}.Thebetsareunconstrained(bettinganegativevaluecorrespondstobettingagainsttheexpert).Inthissetting,anaturalgoalisthefollowing:placebetssoastoachieveasmuchrewardaspossible,subjecttotheconstraintthattotallossesareboundedbyaconstant(whichcanbesetequaltosomestartingbudgetwhichistobeinvested).Ouralgorithmscansatisfyconstraintsofthisformbecauseregretwithrespectto. The bets are unconstrained (betting a negative value corresponds to betting against the expert). In this setting, a natural goal is the following: place bets so as to achieve as much reward as possible, subject to the constraint that total losses are bounded by a constant (which can be set equal to some starting budget which is to be invested). Our algorithms can satisfy constraints of this form because regret with respect to\mathring{x}=0$ (which equals total loss) is bounded by a constant.

It is useful to contrast our results in this setting to previous applications of online convex optimization to portfolio management, for example and . By applying algorithms for exp-concave loss functions, they obtain log-wealth within O(log⁡(T))\mathcal{O}(\log(T)) of the best constant rebalanced portfolio. However, this approach requires a “no-junk-bond” assumption: on each round, for each investment, you always retain at least an α>0\alpha>0 fraction of your initial investment. While this may be realistic (though not guaranteed!) for blue-chip stocks, it certainly is not for bets on derivatives that can lose all their value unless a particular event occurs (e.g., a stock price crosses some threshold). Our model allows us to handle such investments: if we play xi>0x_{i}>0, an outcome of gi=−1g_{i}=-1 corresponds exactly to losing 100% of that investment. Our results imply that if even one investment (out of exponentially many choices) has significant returns, we will increase our wealth exponentially.

Notation and Problem Statement

We use the compressed summation notation g1:t=∑s=1tgsg_{1:t}=\sum_{s=1}^{t}g_{s} for both vectors and scalars. We study the reward of our algorithms, and their regret against a fixed comparator x˚\mathring{x}:

Comparison of Regret Bounds

Table 1 compares the bounds for Reward-Doubling (this paper) to those of two previous algorithms: online gradient descent and projected exponentiated gradient descent . For each algorithm, we consider a fixed choice of parameter settings and then look at how regret changes as we vary the comparator point x˚\mathring{x}.

Gradient descent is minimax-optimal when the comparator point is contained in a hypershere whose radius is known in advance (∥x˚∥2≤R\|\mathring{x}\|_{2}\leq R) and gradients are sparse (∥gt∥2≤1\|g_{t}\|_{2}\leq 1, top table). Exponentiated gradient descent excels when gradients are dense (∥gt∥∞≤1\|g_{t}\|_{\infty}\leq 1, bottom table) but the comparator point is sparse (∥x˚∥1≤R\|\mathring{x}\|_{1}\leq R for RR known in advance). In both these cases, the bounds for Reward-Doubling match those of the previous algorithms up to logarithmic factors, even when they are tuned optimally with knowledge of RR.

The advantage of Reward-Doubling shows up when the guess of RR used to tune the competing algorithms turns out to be wrong. When x˚=0\mathring{x}=0, Reward-Doubling offers constant regret compared to Ω(T)\Omega(\sqrt{T}) for the other algorithms. When x˚\mathring{x} can be arbitrary, only Reward-Doubling offers sub-linear regret (and in fact its regret bound is optimal, as shown in Theorem 8).

In order to guarantee constant origin-regret, Reward-Doubling frequently “jumps” back to playing the origin, which may be undesirable in some applications. In Section 4 we introduce Smooth-Reward-Doubling, which achieves similar guarantees without resetting to the origin.

Related Work

Our work is related, at least in spirit, to the use of a momentum term in stochastic gradient descent for back propagation in neural networks . These results are similar in motivation in that they effectively yield a larger learning rate when many recent gradients point in the same direction.

Hazan and Kale give regret bounds in terms of the variance of the gtg_{t}. Letting G=∣g1:t∣G=|g_{1:t}| and H=∑t=1Tgt2H=\sum_{t=1}^{T}g_{t}^{2}, they prove regret bounds of the form O(V)\mathcal{O}(\sqrt{V}) where V=H−G2/TV=H-G^{2}/T. This result has some similarity to our work in that G/T=H−VG/\sqrt{T}=\sqrt{H-V}, and so if we hold HH constant, then when VV is low, the critical ratio G/TG/\sqrt{T} that appears in our bounds is large. However, they consider the case of a known feasible set, and their algorithm (gradient descent with a constant learning rate) cannot obtain bounds of the form we prove.

Reward and Regret

In this section we present a general result that converts lower bounds on reward into upper bounds on regret, for one-dimensional online linear optimization. In the unconstrained setting, this result will be sufficient to provide guarantees for general nn-dimensional online convex optimization.

Consider an algorithm for one-dimensional online linear optimization that, when run on a sequence of gradients g1,g2,…,gTg_{1},g_{2},\ldots,g_{T}, with gt∈g_{t}\in for all tt, guarantees

where γ,κ>0\gamma,\kappa>0 and ϵ≥0\epsilon\geq 0 are constants. Then, against any comparator x˚∈[−R,R]\mathring{x}\in[-R,R], we have

letting 0log⁡0=00\log 0=0 when R=0R=0. Further, any algorithm with the regret guarantee of Eq. (2) must guarantee the reward of Eq. (1).

We give a proof of this theorem in the appendix. The duality between reward and regret can also be seen as a consequence of the fact that exp⁡(x)\exp(x) and ylog⁡y−yy\log y-y are convex conjugates. The γ\gamma term typically contains a dependence on TT like 1/T1/\sqrt{T}. This bound holds for all RR, and so for some small RR the log⁡\log term becomes negative; however, for real algorithms the ϵ\epsilon term will ensure the regret bound remains positive. The minus one can of course be dropped to simplify the bound further.

Gradient Descent with Increasing Learning Rates

In this section we show that allowing the learning rate of gradient descent to sometimes increase leads to novel theoretical guarantees.

To build intuition, consider online linear optimization in one dimension, with gradients g1,g2,…,gTg_{1},g_{2},\ldots,g_{T}, all in $$. In this setting, the reward of unconstrained gradient descent has a simple closed form:

Consider unconstrained gradient descent in one dimension, with learning rate η\eta. On round tt, this algorithm plays the point xt=ηg1:t−1x_{t}=\eta g_{1:t-1}. Letting G=∣g1:t∣G=|g_{1:t}| and H=∑t=1Tgt2H=\sum_{t=1}^{T}g_{t}^{2}, the cumulative reward of the algorithm is exactly

We give a simple direct proof in Appendix A. Perhaps surprisingly, this result implies that the reward is totally independent of the order of the linear functions selected by the adversary. Examining the expression in Lemma 2, we see that the optimal choice of learning rate η\eta depends fundamentally on two quantities: the absolute value of the sum of gradients (GG), and the sum of the squared gradients (HH). If G2>HG^{2}>H, we would like to use as large a learning rate as possible in order to maximize reward. In contrast, if G2<HG^{2}<H, the algorithm will obtain negative reward, and the best it can do is to cut its losses by setting η\eta as small as possible.

One of the motivations for this work is the observation that the state-of-the-art online gradient descent algorithms adjust their learning rates based only on the observed value of HH (or its upper bound TT); for example . We would like to increase reward by also accounting for GG. But unlike HH, which is monotonically increasing with time, GG can both increase and decrease. This makes simple guess-and-doubling tricks fail when applied to GG, and necessitates a more careful approach.

In this section we analyze algorithm Reward-Doubling-1D (Algorithm 1), which consists of a series of epochs. We suppose for the moment that an upper bound Hˉ\bar{H} on H=∑t=1Tgt2H=\sum_{t=1}^{T}g_{t}^{2} is known in advance. In the first epoch, we run gradient descent with a small initial learning rate η=η1\eta=\eta_{1}. Whenever the total reward accumulated in the current epoch reaches ηHˉ\eta\bar{H}, we double η\eta and start a new epoch (returning to the origin and forgetting all previous gradients except the most recent one).

Applied to a sequence of gradients g1,g2,…,gTg_{1},g_{2},\ldots,g_{T}, all in $,where, whereH=\sum_{t=1}^{T}g_{t}^{2}\leq\bar{H}$, Reward-Doubling-1D obtains reward satisfying

Suppose round TT occurs during the kk’th epoch. Because epoch ii can only come to an end if Qi≥ηiHˉQ_{i}\geq\eta_{i}\bar{H}, where ηi=2i−1η1\eta_{i}=2^{i-1}\eta_{1}, we have

We now lower bound QkQ_{k}. For i=1,…,ki=1,\dots,k let tit_{i} denote the round on which QiQ_{i} is initialized to 0, with t1≡1t_{1}\equiv 1, and define tk+1≡Tt_{k+1}\equiv T. By construction, QiQ_{i} is the total reward of a gradient descent algorithm that is active on rounds tit_{i} through ti+1t_{i+1} inclusive, and that uses learning rate ηi\eta_{i} (note that on round tit_{i}, this algorithm gets 0 reward and we initialize QiQ_{i} to 0 on that round). Thus, by Lemma 2, we have that for any ii,

Applying this bound to epoch kk, we have Qk≥−12ηkHˉ=−2k−2η1HˉQ_{k}\geq-\frac{1}{2}\eta_{k}\bar{H}=-2^{k-2}\eta_{1}\bar{H}. Substituting into (4) gives

We now show that k≥∣g1:T∣3Hˉk\geq\frac{|g_{1:T}|}{\sqrt{3\bar{H}}}. At the end of round ti+1−1t_{i+1}-1, we must have had Qi<ηiHˉQ_{i}<\eta_{i}\bar{H} (otherwise epoch i+1i+1 would have begun earlier). Thus, again using Lemma 2,

so ∣gti:ti+1−1∣≤3Hˉ|g_{t_{i}:t_{i+1}-1}|\leq\sqrt{3\bar{H}}. Thus,

Rearranging gives k≥∣g1:T∣3Hˉk\geq\frac{|g_{1:T}|}{\sqrt{3\bar{H}}}, and combining with Eq. (5) proves the lemma. ∎

We can now apply Theorem 1 to the reward (given by Eq. (3)) of Reward-Doubling-1D to show

for any x˚∈[−R,R]\mathring{x}\in[-R,R], where b=a−1=3/log⁡(2)<2.5b=a^{-1}=\sqrt{3}/\log(2)<2.5. When the feasible set is also fixed in advance, online gradient descent with a fixed learning obtains a regret bound of O(RT)\mathcal{O}(R\sqrt{T}). Suppose we use the estimate Hˉ=T\bar{H}=T. By choosing η1=1T\eta_{1}=\frac{1}{T}, we guarantee constant regret against the origin, x˚=0\mathring{x}=0 (equivalently, constant total loss). Further, for any feasible set of radius RR, we still have worst-case regret of at most O(RTlog⁡((1+R)T))\mathcal{O}(R\sqrt{T}\log((1+R)T)), which is only modestly worse than that of gradient descent with the optimal RR known in advance.

The need for an upper bound Hˉ\bar{H} can be removed using a standard guess-and-doubling approach, at the cost of a constant factor increase in regret (see appendix for proof).

Consider algorithm Reward-Doubling-1D-Guess, which behaves as follows. On each era ii, the algorithm runs Reward-Doubling-1D with an upper bound of Hˉi=2i−1\bar{H}_{i}=2^{i-1}, and initial learning rate η1i=ϵ2−2i\eta_{1}^{i}=\epsilon 2^{-2i}. An era ends when Hˉi\bar{H}_{i} is no longer an upper bound on the sum of squared gradients seen during that era. Letting c=22−1c=\frac{\sqrt{2}}{\sqrt{2}-1}, this algorithm has regret at most

2 Extension to n𝑛n dimensions

To extend our results to general online convex optimization, it is sufficient to run a separate copy of Reward-Doubling-1D-Guess for each coordinate, as is done in Reward-Doubling (Algorithm 2). The key to the analysis of this algorithm is that overall regret is simply the sum of regret on nn one-dimensional subproblems which can be analyzed independently.

for c=22−1c=\frac{\sqrt{2}}{\sqrt{2}-1}, where Hi=∑t=1Tgt,i2H_{i}=\sum_{t=1}^{T}g_{t,i}^{2} and H=∑t=1T∥gt∥22H=\sum_{t=1}^{T}\|g_{t}\|_{2}^{2}.

Fix a comparator x˚\mathring{x}. For any coordinate ii, define

This, together with the fact that log⁡(∣x˚i∣(2Hi+2)5/2)≤log⁡(∥x˚∥22(2H+2)5/2)\log(|\mathring{x}_{i}|(2H_{i}+2)^{5/2})\leq\log(\|\mathring{x}\|_{2}^{2}(2H+2)^{5/2}), suffices to prove second inequality. ∎

In some applications, nn is not known in advance. In this case, we can set ϵi=ϵi2\epsilon_{i}=\frac{\epsilon}{i^{2}} for the iith coordinate we encounter, and get the same bound up to constant factors.

An Epoch-Free Algorithm

In this section we analyze Smooth-Reward-Doubling, a simple algorithm that achieves bounds comparable to those of Theorem 4, without guessing-and-doubling. We consider only the 1-d problem, as the technique of Theorem 5 can be applied to extend to nn dimensions. Given a parameter η>0\eta>0, we achieve

for all TT and RR, which is better (by constant factors) than Theorem 4 when gt∈{−1,1}g_{t}\in\{-1,1\} (which implies T=HT=H). The bound can be worse on a problems where H<TH<T.

The idea of the algorithm is to maintain the invariant that our cumulative reward, as a function of g1:tg_{1:t} and tt, satisfies Reward⁡≥N(g1:t,t)\operatorname{Reward}\geq N(g_{1:t},t), for some fixed function NN. Because reward changes by gtxtg_{t}x_{t} on round tt, it suffices to guarantee that for any g∈g\in,

where xt+1x_{t+1} is the point the algorithm plays on round t+1t+1, and we assume N(0,1)=0N(0,1)=0.

This inequality is approximately satisfied (for small gg) if we choose

This suggests that if we want to maintain reward at least N(g1:t,t)=1t(exp⁡(∣g1:t∣/t)−1)N(g_{1:t},t)=\frac{1}{t}(\exp(|g_{1:t}|/\sqrt{t})-1) , we should set xt+1≈sign⁡(g1:t)t−3/2exp⁡(∣g1:t∣t)x_{t+1}\approx\operatorname{sign}(g_{1:t})t^{-3/2}\exp\left(\frac{|g_{1:t}|}{\sqrt{t}}\right). The following theorem (proved in the appendix) provides an inductive analysis of an algorithm of this form.

Fix a sequence of reward functions ft(x)=gtxf_{t}(x)=g_{t}x with gt∈g_{t}\in, and let Gt=∣g1:t∣G_{t}=|g_{1:t}|. We consider Smooth-Reward-Doubling, which plays on round 11 and whenever Gt=0G_{t}=0; otherwise, it plays

with η>0\eta>0 a learning-rate parameter and

Then, at the end of each round tt, this algorithm has

Two main technical challenges arise in the proof: first, we prove a result like Eq. (8) for N(g_{1:t},t)=(1/t)\exp\big{(}|g_{1:t}|/\sqrt{t}\big{)}. However, this Lemma only holds for t≥6t\geq 6 and when the sign of g1:tg_{1:t} doesn’t change. We account for this by showing that a small modification to NN (costing only a constant over all rounds) suffices.

By running this algorithm independently for each coordinate using an appropriate choice of η\eta, one can obtain a guarantee similar to that of Theorem 5.

Lower Bounds

As with our previous results, it is sufficient to show a lower bound in one dimension, as it can then be replicated independently in each coordinate to obtain an nn dimensional bound. Note that our lower bound contains the factor log⁡(∣x˚∣T)\log(|\mathring{x}|\sqrt{T}), which can be negative when x˚\mathring{x} is small relative to TT, hence it is important to hold x˚\mathring{x} fixed and consider the behavior as T→∞T\rightarrow\infty. Here we give only a proof sketch; see Appendix A for the full proof.

Consider the problem of unconstrained online linear optimization in one dimension, and an online algorithm that guarantees origin-regret at most ϵ\epsilon. Then, for any fixed comparator x˚\mathring{x}, and any integer T0T_{0}, there exists a gradient sequence {gt}∈T\{g_{t}\}\in^{T} of length T≥T0T\geq T_{0} for which the algorithm’s regret satisfies

(Sketch) Assume without loss of generality that x˚>0\mathring{x}>0. Let QQ be the algorithm’s reward when each gtg_{t} is drawn independently uniformly from {−1,1}\{-1,1\}. We have E⁡[Q]=0\operatorname{E}[Q]=0, and because the algorithm guarantees origin-regret at most ϵ\epsilon, we have Q≥−ϵQ\geq-\epsilon with probability 1. Letting G=g1:TG=g_{1:T}, it follows that for any threshold Z=Z(T)Z=Z(T),

We choose Z(T)=kTZ(T)=\sqrt{kT}, where k=⌊log⁡(RTϵ)/log⁡(p−1)⌋k=\left\lfloor\log(\frac{R\sqrt{T}}{\epsilon})/\log(p^{-1})\right\rfloor. Here R=∣x˚∣R=|\mathring{x}| and p>0p>0 is a constant chosen using binomial distribution lower bounds so that Pr⁡[G≥Z]≥pk\Pr[G\geq Z]\geq p^{k}. This implies

This implies there exists a sequence with G≥ZG\geq Z and Q<RTQ<R\sqrt{T}. On this sequence, regret is at least Gx˚−Q≥RkT−RT=Ω(RkT)G\mathring{x}-Q\geq R\sqrt{kT}-R\sqrt{T}=\Omega(R\sqrt{kT}). ∎

For each coordinate ii, Theorem 7 implies that there exists a T≥T0T\geq T_{0} and a sequence of gradients gt,ig_{t,i} such that

(The proof of Theorem 7 makes it clear that we can use the same TT for all ii.) Summing this inequality across all nn coordinates then gives the regret bound stated in the theorem. ∎

The following theorem presents a stronger negative result for Follow-the-Regularized-Leader algorithms with a fixed regularizer: for any such algorithm that guarantees origin-regret at most ϵT\epsilon_{T} after TT rounds, worst-case regret with respect to any point outside [−ϵT,ϵT][-\epsilon_{T},\epsilon_{T}] grows linearly with TT.

Consider a Follow-The-Regularized-Leader algorithm that sets

where ψT\psi_{T} is a convex, non-negative function with ψT(0)=0\psi_{T}(0)=0. Let ϵT\epsilon_{T} be the maximum origin-regret incurred by the algorithm on a sequence of TT gradients. Then, for any x˚\mathring{x} with ∣x˚∣>ϵT|\mathring{x}|>\epsilon_{T}, there exists a sequence of TT gradients such that the algorithm’s regret with respect to x˚\mathring{x} is at least T−12(∣x˚∣−ϵT)\frac{T-1}{2}(|\mathring{x}|-\epsilon_{T}).

In fact, it is clear from the proof that the above result holds for any algorithm that selects xt+1x_{t+1} purely as a function of g1:tg_{1:t} (in particular, with no dependence on tt).

Future Work

This work leaves open many interesting questions. It should be possible to apply our techniques to problems that do have constrained feasible sets; for example, it is natural to consider the unconstrained experts problem on the positive orthant. While we believe this extension is straightforward, handling arbitrary non-axis-aligned constraints will be more difficult. Another possibility is to develop an algorithm with bounds in terms of HH rather than TT that doesn’t use a guess and double approach.

References

Appendix A Proofs

This appendix gives the proofs omitted in the body of the paper, with the corresponding lemmas and theorems restated for convenience.

Consider an algorithm for one-dimensional online linear optimization that, when run on a sequence of gradients g1,g2,…,gTg_{1},g_{2},\ldots,g_{T}, with gt∈g_{t}\in for all tt, guarantees

where γ,κ>0\gamma,\kappa>0 and ϵ≥0\epsilon\geq 0 are constants. Then, against any comparator x˚∈[−R,R]\mathring{x}\in[-R,R], we have

letting 0log⁡0=00\log 0=0 when R=0R=0. Further, any algorithm with the regret guarantee of Eq. (2) must guarantee the reward of Eq. (1).

Let GT=∣g1:T∣G_{T}=|g_{1:T}|. By definition, given the reward guarantee of Eq. (1) we have

If R=0R=0, then Eq. (2) follows immediately. Otherwise, note this is a concave function in GTG_{T}, and setting the first derivative equal to zero shows

maximizes regret (for large enough RR we could have G∗>TG^{*}>T, and so this G∗G^{*} is not actually achievable by the adversary, but this is fine for lower bounding regret). Plugging G∗G^{*} into Eq. (11) and simplifying yields the bound of Eq. (2). For the second claim, suppose Eq. (2) holds. Then, again by definition, we must have

This bound is a concave function of RR, and since it holds for any R≥0R\geq 0 by assumption, we can choose the RR that maximizes the bound, namely R∗=γκexp⁡(γG)R^{*}=\gamma\kappa\exp(\gamma G). Note

and so plugging R∗R^{*} into Eq. (12) yields

Consider unconstrained gradient descent in one dimension, with learning rate η\eta. On round tt, this algorithm plays the point xt=ηg1:t−1x_{t}=\eta g_{1:t-1}. Letting G=∣g1:t∣G=|g_{1:t}| and H=∑t=1Tgt2H=\sum_{t=1}^{T}g_{t}^{2}, the cumulative reward of the algorithm is exactly

The algorithm’s cumulative reward after TT rounds is

To verify the second equality, note that (g1:T)2−(g1:T−1)2=gT2+2gT(g1:T−1)(g_{1:T})^{2}-(g_{1:T-1})^{2}=g_{T}^{2}+2g_{T}(g_{1:T-1}), so on round TT the right hand side increases by ηgT(g1:T−1)\eta g_{T}(g_{1:T-1}), as does the left hand side. The equality then follows by induction on TT. ∎

It is worth noting that the standard RTR\sqrt{T} bound can be derived from the above result fairly easily. We have

where the max is achieved by taking G=R/ηG=R/\eta. Taking η=R/T\eta=R/\sqrt{T} then gives the standard bound. However, this bound significantly underestimates the performance of constant-learning-rate gradient descent when GG is large. This is in contrast to our regret bounds, which are always tight with respect to their matching reward bounds.

Consider algorithm Reward-Doubling-1D-Guess, which behaves as follows. On each era ii, the algorithm runs Reward-Doubling-1D with an upper bound of Hˉi=2i−1\bar{H}_{i}=2^{i-1}, and initial learning rate η1i=ϵ2−2i\eta_{1}^{i}=\epsilon 2^{-2i}. An era ends when Hˉi\bar{H}_{i} is no longer an upper bound on the sum of squared gradients seen during that era. Letting c=22−1c=\frac{\sqrt{2}}{\sqrt{2}-1}, this algorithm has regret at most

Suppose round TT occurs in era kk, and let tit_{i} be the round on which era ii starts, with tk+1≡T+1t_{k+1}\equiv T+1. Define Hi=∑s=titi+1−1gs2H_{i}=\sum_{s=t_{i}}^{t_{i+1}-1}g_{s}^{2}. To prove the theorem we will need several inequalities. First, note that H=∑i=1kHi≥∑i=1k−1Hˉi=2k−1−1H=\sum_{i=1}^{k}H_{i}\geq\sum_{i=1}^{k-1}\bar{H}_{i}=2^{k-1}-1, or 2k−1≤H+12^{k-1}\leq H+1. Thus,

Note that the bound of Lemma 3 applies for all TT where H≤HˉH\leq\bar{H}, and thus so does Eq. (6). Thus, we can apply this bound to the regret in era kk on rounds tkt_{k} through TT, as well as on the regret in each earlier era. Then, total regret with respect to the best point in [−R,R][-R,R] is at most the sum of the regret in each era, so

Finally, because Hi≤Hˉi+1≤2Hˉi=2iH_{i}\leq\bar{H}_{i}+1\leq 2\bar{H}_{i}=2^{i}, we have ∑i=1kη1iHi≤∑i=1kϵ2−i≤ϵ\sum_{i=1}^{k}\eta_{1}^{i}H_{i}\leq\sum_{i=1}^{k}\epsilon 2^{-i}\leq\epsilon, which completes the proof. ∎

Fix a sequence of reward functions ft(x)=gtxf_{t}(x)=g_{t}x with gt∈g_{t}\in, and let Gt=∣g1:t∣G_{t}=|g_{1:t}|. We consider Smooth-Reward-Doubling, which plays on round 11 and whenever Gt=0G_{t}=0; otherwise, it plays

with η>0\eta>0 a learning-rate parameter and

Then, at the end of each round tt, this algorithm has

We present a proof for the case where η=1\eta=1; since η\eta simply scales all of the xtx_{t} played by the algorithm (and hence, reward), the result for general η\eta follows immediately. We use the minimum reward function

The proof will be by induction on tt, with the induction hypothesis that the cumulative reward of the algorithm at the end of round tt satisfies

We will then show that the sum of ϵt\epsilon_{t}’s is always bounded by a constant.

For the base case, t=1t=1, we play x=0x=0 so end the round with zero reward, while the RHS of Eq. (15) is N(∣g1∣,6)−N(1,6)≤0N(|g_{1}|,6)-N(1,6)\leq 0.

Now, suppose the induction hypothesis holds at the end of some round t≥1t\geq 1. Without loss of generality, suppose g1:t≥0g_{1:t}\geq 0 so Gt=g1:tG_{t}=g_{1:t}. We consider two cases. First, suppose Gt>0G_{t}>0 and Gt+gt+1>0G_{t}+g_{t+1}>0 (so gt+1>−Gtg_{t+1}>-G_{t}). In this case, g1:tg_{1:t} does not change sign when we add gt+1g_{t+1}; thus, an invariant like that of Eq. (8) is sufficient; we prove such a result in Lemma 10 (given below). More precisely, we play xt+1x_{t+1} according to Eq. (9), and

For the remaining case, we have Gt+gt+1≤0G_{t}+g_{t+1}\leq 0, implying gt+1≤−Gt≤0g_{t+1}\leq-G_{t}\leq 0. In this case, we suffer some loss and arrive at Gt+1=∣Gt+gt+1∣=−gt+1−GtG_{t+1}=|G_{t}+g_{t+1}|=-g_{t+1}-G_{t}. Lemma 11 (below) provides the key bound on the additional loss when the sign of g1:tg_{1:t} changes. If Gt>0G_{t}>0, we have

If Gt=0G_{t}=0, we can take gt+1g_{t+1} non-positive without loss of generality, and playing xt+1=0x_{t+1}=0 is no worse than playing B(0,t+5)B(0,t+5), and so we conclude Eq. (15) holds for all tt. Finally,

where γ\gamma is the Euler gamma constant and Ei⁡\operatorname{Ei} is the exponential integral. The upper bound can be found easily using numerical methods. Adding ϵ1=exp⁡(1/6)/6≤0.26\epsilon_{1}=\exp(1/\sqrt{6})/6\leq 0.26 gives ϵ1:T≤1.76\epsilon_{1:T}\leq 1.76 for any TT. ∎

Let G>0G>0 and τ≥6\tau\geq 6. Then, for any g∈g\in such that G+g≥0G+g\geq 0,

where NN is defined by Eq. (14) and BB is defined by Eq. (10).

or equivalently, multiplying by τ3/2(1+τ)/exp⁡(G/τ)≥0\tau^{3/2}(1+\tau)/\exp(G/\sqrt{\tau})\geq 0,

Since τ+1≥τ\tau+1\geq\tau, the exp⁡\exp term is maximized when G=0G=0, so

Now, we consider the case where g<0g<0. In order to show Δ≥0\Delta\geq 0 in this case, we need a tight upper bound on exp⁡(y)\exp(y) for y∈y\in. To derive one, we note that for x≥0x\geq 0, exp⁡(x)≥1+x+12x2\exp(x)\geq 1+x+\frac{1}{2}x^{2} from the series representation of exe^{x}, and so exp⁡(−x)≤(1+x+12x2)−1\exp(-x)\leq(1+x+\frac{1}{2}x^{2})^{-1}. Thus, for y∈y\in we have exp⁡(y)≤(1−y+12y2)−1=Q(y)\exp(y)\leq(1-y+\frac{1}{2}y^{2})^{-1}=Q(y). Then, starting from Eq. (16),

Let Δ2=ΔQ(gτ+1)−1\Delta_{2}=\Delta Q\left(\frac{g}{\sqrt{\tau+1}}\right)^{-1}. Because Δ2\Delta_{2} and Δ\Delta have the same sign, it suffices to show Δ2≥0\Delta_{2}\geq 0. We have

Since g≤0g\leq 0, we have −2gτ+1+gτ≥0-2g\sqrt{\tau+1}+g\sqrt{\tau}\geq 0, and (t+1)−ττ+1≥0(t+1)-\sqrt{\tau}\sqrt{\tau+1}\geq 0, and so we conclude that Δ2\Delta_{2} is increasing in gg, and so taking g=−1g=-1 we have

Taking the derivative with respect to τ\tau reveals this expression is increasing in τ\tau, and taking τ=6\tau=6 produces a positive value, proving this case. ∎

For any g∈g\in and G≥0G\geq 0 such that G+g≤0G+g\leq 0, and any τ≥1\tau\geq 1,

where NN is defined by Eq. (14) and BB is defined by Eq. (10), and

Consider a Follow-The-Regularized-Leader algorithm that sets

where ψT\psi_{T} is a convex, non-negative function with ψT(0)=0\psi_{T}(0)=0. Let ϵT\epsilon_{T} be the maximum origin-regret incurred by the algorithm on a sequence of TT gradients. Then, for any x˚\mathring{x} with ∣x˚∣>ϵT|\mathring{x}|>\epsilon_{T}, there exists a sequence of TT gradients such that the algorithm’s regret with respect to x˚\mathring{x} is at least T−12(∣x˚∣−ϵT)\frac{T-1}{2}(|\mathring{x}|-\epsilon_{T}).

For simplicity, we will prove that regret is at least T2(∣x˚∣−ϵT)\frac{T}{2}(|\mathring{x}|-\epsilon_{T}) when TT is even; if TT is odd, we simply take gT=0g_{T}=0 and consider the first T−1T-1 rounds.

Let T=2MT=2M. We will consider two gradient sequences. First, suppose gt=1g_{t}=1 for t≤Mt\leq M, and gt=−1g_{t}=-1 otherwise. Observe that for any rr, we have g1:M−r=g1:M+rg_{1:M-r}=g_{1:M+r}, which implies xM−r+1=xM+r+1x_{M-r+1}=x_{M+r+1}. Thus, the algorithm’s total reward is

Because x1=0x_{1}=0, we get that on this sequence the algorithm has origin-regret x^≡xM+1\hat{x}\equiv x_{M+1}, and so by assumption x^≤ϵT\hat{x}\leq\epsilon_{T}.

Next, suppose g1=1g_{1}=1 for t≤Mt\leq M, and gt=0g_{t}=0 otherwise. For this sequence, we will have xt≤x^≤ϵTx_{t}\leq\hat{x}\leq\epsilon_{T} for all tt, so total reward is at most MϵTM\epsilon_{T}. For any positive x˚\mathring{x} with x˚>ϵT\mathring{x}>\epsilon_{T}, this means that regret with respect to x˚\mathring{x} is at least

For x˚<−ϵT\mathring{x}<-\epsilon_{T}, we can use a similar argument with the sign of the gradients reversed (for both gradient sequences) to get the same bound. ∎

In proving Theorem 7, we will use the following lemma.

Let GT=∑i=1TgiG_{T}=\sum_{i=1}^{T}g_{i} be the sum of TT random variables, each drawn uniformly from {−1,1}\{-1,1\}. Then, for any integer kk that is a factor of TT, we have

First, for any TT define pT=Pr⁡[GT≥T]p_{T}=\operatorname{Pr}[G_{T}\geq\sqrt{T}], and define

For any TT, we have pT≥2−Tp_{T}\geq 2^{-T} trivially, and by the Central Limit Theorem, lim⁡T→∞pT=1−N0,1(1)>0\lim_{T\rightarrow\infty}p_{T}=1-\mathcal{N}_{0,1}(1)>0, where N0,1\mathcal{N}_{0,1} is the standard normal cumulative distribution function. It follows that p>0p>0, and using numerical methods we find p=p6=726=0.109375p=p_{6}=\frac{7}{2^{6}}=0.109375.

Now, divide the length TT sequence into kk sequences of length Tk\frac{T}{k}. Let ZiZ_{i} be the sum of gradients for the iith of these sequences. Observe that if Zi≥TkZ_{i}\geq\sqrt{\frac{T}{k}} for all ii, then GT=∑i=1kZi≥kTk=kTG_{T}=\sum_{i=1}^{k}Z_{i}\geq k\sqrt{\frac{T}{k}}=\sqrt{kT}. Furthermore, for any ii, we have

Consider the problem of unconstrained online linear optimization in one dimension, and an online algorithm that guarantees origin-regret at most ϵ\epsilon. Then, for any fixed comparator x˚\mathring{x}, and any integer T0T_{0}, there exists a gradient sequence {gt}∈T\{g_{t}\}\in^{T} of length T≥T0T\geq T_{0} for which the algorithm’s regret satisfies

Let k=k(T)=⌊log⁡(RTϵ)/log⁡(p−1)⌋k=k(T)=\left\lfloor\log(\frac{R\sqrt{T}}{\epsilon})/\log(p^{-1})\right\rfloor, and choose T≥T0T\geq T_{0} large enough so that 4≤k≤T4\leq k\leq T and also so that TT is a multiple of kk (the latter is possible since k(T)k(T) grows much more slowly than TT). Let QQ be the algorithm’s reward when each gtg_{t} is drawn uniformly from {−1,1}\{-1,1\}. Let G=g1:TG=g_{1:T}. As shown in the proof sketch, we have

By Lemma 12, Pr⁡[G≥kT]≥pk\Pr[G\geq\sqrt{kT}]\geq p^{k}. Thus,

If the algorithm guaranteed Q≥RTQ\geq R\sqrt{T} whenever G≥kTG\geq\sqrt{kT}, then we would have E⁡[Q∣G≥kT]≥RT\operatorname{E}[Q|G\geq\sqrt{kT}]\geq R\sqrt{T}, a contradiction. Thus, there exists a sequence where G≥kTG\geq\sqrt{kT} and Q<RTQ<R\sqrt{T}, so on this sequence we have

Because k≥4k\geq 4, we have 12k≥1\frac{1}{2}\sqrt{k}\geq 1 or k−1≥12k\sqrt{k}-1\geq\frac{1}{2}\sqrt{k}, so regret is at least 12RkT=bRTlog⁡(RTϵ)\frac{1}{2}R\sqrt{kT}=bR\sqrt{T\log\left(\frac{R\sqrt{T}}{\epsilon}\right)}, where b=121log⁡p−1>0.336b=\frac{1}{2}\sqrt{\frac{1}{\log p^{-1}}}>0.336 (and pp is the constant from Lemma 12). ∎