Dynamic Online Gradient Descent with Improved Query Complexity: A Theoretical Revisit
Yawei Zhao, En Zhu, Xinwang Liu, and Jianping Yin

TL;DR
This paper introduces a new theoretical analysis framework for online gradient descent in dynamic environments, achieving optimal regret with fewer gradient queries, especially benefiting ill-conditioned problems.
Contribution
The paper presents a novel analysis framework that reduces gradient query complexity to O(1) for dynamic regret, improving over previous methods that depended on condition number.
Findings
Achieves state-of-the-art dynamic regret without extra gradient queries
Reduces gradient query complexity from O(κ) to O(1) for strongly convex and smooth functions
Significantly benefits ill-conditioned problems with large condition numbers
Abstract
We provide a new theoretical analysis framework to investigate online gradient descent in the dynamic environment. Comparing with the previous work, the new framework recovers the state-of-the-art dynamic regret, but does not require extra gradient queries for every iteration. Specifically, when functions are strongly convex and smooth, to achieve the state-of-the-art dynamic regret, the previous work requires with queries of gradients at every iteration. But, our framework shows that the query complexity can be improved to be , which does not depend on . The improvement is significant for ill-conditioned problems because that their objective function usually has a large .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Bandit Algorithms Research · Stochastic Gradient Optimization Techniques · Machine Learning and Algorithms
Dynamic Online Gradient Descent with Improved Query Complexity: A Theoretical Revisit
Yawei Zhao1, En Zhu1, Xinwang Liu1, and Jianping Yin2
1National University of Defense Technology, Changsha, 410073, China.
2Dongguan University of Technology, Dongguan, Guangdong, 523808, China.
E-mail: {zhaoyawei, enzhu, xinwangliu}@nudt.edu.cn; [email protected]
Abstract
We provide a new theoretical analysis framework to investigate online gradient descent in the dynamic environment. Comparing with the previous work, the new framework recovers the state-of-the-art dynamic regret, but does not require extra gradient queries for every iteration. Specifically, when functions are strongly convex and smooth, to achieve the state-of-the-art dynamic regret, the previous work requires with queries of gradients at every iteration. But, our framework shows that the query complexity can be improved to be , which does not depend on . The improvement is significant for ill-conditioned problems because that their objective function usually has a large . Those ill-conditioned problems wildely exist in image processing applications, e.g., image deblurring.
1 Introduction
Online Gradient Descent (OGD) has drawn much attention in the community of machine learning Zhu and Xu (2015); Hazan and Seshadhri (2007); Hall and Willett (2015); Shalev-Shwartz (2012); Garber (2018); Bedi et al. (2018). It is widely used in various applications such as online recommendation Song et al. (2008), search ranking Moon et al. (2010). Generally, OGD is formulated as a game between a learner and an adversary. At the -th round of the game, the learner submits from the feasible set , and the adversary selects a function . Then, the function is returned to the learner, and incurs the loss .
Recently, there has been a surge of interest in analyzing OGD by using the dynamic regret Zinkevich (2003); Mokhtari et al. (2016); Yang et al. (2016); Lei et al. (2017). The dynamic regret is usually defined as
[TABLE]
where . Unfortunately, it is well-known that a sublinear dynamic regret bound cannot be achieved in the worst case Zinkevich (2003). The reason is that the functions may be changed arbitrarily in the dynamic environment. But, it is possible to upper bound the dynamic regret in terms of certain regularity of the comparator sequence. Those regularities are usually defined as the path length Mokhtari et al. (2016); Yang et al. (2016):
[TABLE]
or squared path length Zhang et al. (2017):
[TABLE]
They capture the cumulative Euclidean norm or the square of Euclidean norm of the difference between successive comparators. When all the functions are -strongly convex and -smooth, the dynamic regret is bounded by Mokhtari et al. (2016). When the local variations are small, is much smaller than . Thus, the state-of-the-art dynamic regret of OGD is improved to be Zhang et al. (2017).
But, to achieve the state-of-the-art dynamic regret, i.e., , the variant of OGD in Zhang et al. (2017) has to query gradients for every iteration. Here, represents the condition number for the smooth and strongly convex objective function . For a large , the extremely large query complexity makes it not practical in the online setting. In the paper, we investigate the basic online gradient descent, and provide a new theoretical analysis framework. Using the new analysis framework, we show that the dynamic regret can be achieved with , instead of queries of gradients in Zhang et al. (2017). Main theoretical results are outlined in Table 1 briefly.
The improvement of the query complexity is vitally important for ill-conditioned111‘ill-conditioned’ may be notated by ‘ill-posed’ or ‘badly posed’ in some literatures. problems Tarantola (2004); Hansen et al. (2006); Marroquin et al. (1987) whose objective function usually has a large condition number, i.e., . Let us take the image deblurring problem as an example Hansen et al. (2006). Suppose we have a blurred image , which is modeled by using an unknown real image and a blurring matrix . That is, . Here, is usually a non-singular matrix with a large condition number, e.g., . We want to recover the real image from the blurred image , that is, . Comparing with the method in Zhang et al. (2017), our new analysis framework shows that OGD is good enough, and the required queries of gradients can be reduced by multiple orders.
The paper is organized as follows. Section 2 reviews the related work. Section 3 presents the preliminaries. Section 4 presents our theoretical analysis framework. Section 5 presents the improved bounds of regret and query complexity for the strongly convex case. Section 6 concludes the paper.
2 Related work
2.1 Regrets of OGD in the static environment.
Online gradient descent in the static environment has been extensively investigated over the last ten years. The sublinear static regrets for smooth or strongly convex functions have been obtained in many literatures Shalev-Shwartz (2012); Hazan (2016); Duchi et al. (2011); Zinkevich (2003). Specifically, when is strongly convex, the regret of online gradient descent is Hazan (2016). When is convex but not strongly convex, the regret of online gradient descent is Hazan (2016).
2.2 Regrets of OGD in the dynamic environment.
When all the functions are strongly-convex and smooth, the dynamic regret of OGD is Mokhtari et al. (2016); Yang et al. (2016). If OGD queries gradients at every iteration, the dynamic regret of OGD can be improved to be Zhang et al. (2017). But, our analysis framework shows that the gradient queries for every iteration is enough to obtain dynamic regret. Additionally, there are some other regularities including the functional variation Zhu and Xu (2015); Besbes, Omar et al. (2015) and the gradient variation Chiang et al. (2012). Those regularities measure different aspects of the variation in the dynamic environment. Since they are not comparable directly, some researchers consider to bound the dynamic regret by using the mixed regularity Jadbabaie et al. (2015). Extending our theoretical framework to different regularities is an interesting avenue for future work.
Besides, the new proposed theoretical analysis framework is inspired by Joulani et al. (2017). Joulani et al. (2017) provides a theoretical analysis framework in the static environment, but our theoretical analysis framework works in the dynamic environment.
3 Preliminaries
3.1 Notations and assumptions
We use the following notation.
- •
The bold lower-case letters, e.g., represent vectors. The normal letters, e.g., represent a scalar number.
- •
represents the learning rate of Algorithm 1 at the -th iteration, and .
- •
The condition number is defined by for any smooth and strongly convex function .
- •
represents the norm of a vector.
- •
represents the projection to a set .
- •
represents the minimizer set at the -th iteration.
- •
Bregman divergence is defined by for any function .
In the paper, functions are assumed to be convex and smooth (defined as follows).
Definition 1** ( smoothness).**
A function is smooth, if, for any and , we have .
If the function is smooth, according to the definition of the Bregman divergence, we have holds for any and . The other assumptions used in the paper are presented as follows.
Assumption 1** ( strong convexity).**
For any , the function is strongly convex. That is, for any and , .
Assumption 2** (Boundedness of gradients).**
We assume for any .
Assumption 3** (Boundedness of the domain of ).**
We assume for any .
The above assumptions, i.e., Assumptions 1-3, are the basic assumptions, which are used widely in previous researches Shalev-Shwartz (2012); Hazan (2016); Duchi et al. (2011); Zinkevich (2003). Additionally, we make the following assumption, which is used to model the dynamic environment.
The above assumptions, i.e., Assumptions 1-3, are the basic assumptions, which are used widely in previous researches Shalev-Shwartz (2012); Hazan (2016); Duchi et al. (2011); Zinkevich (2003). Additionally, we make the following assumption, which allows the environment to change within a range. It is a mild assumption for many tasks such as time-serise prediction Kuznetsov and Mohri (2016); Anava et al. (2013), traffic forecasting Buch et al. (2011), time-varying medical image analysis Wang et al. (2008); Lee and Shen (2009), online recommendation Chang et al. (2017).
Assumption 4** (Boundedness of variations in the dynamic environment.).**
Denote . For any and , when and , there exists a constant such that .
3.2 Algorithm
Recall the algorithm of the OGD. At the -th iteration, it submits , and receives the loss function . Querying the gradient of , it updates by using the projected gradient descent method. The details are presented in Algorithm 1.
Comparing with the state-of-the-art method, i.e., Algorithm 2, OGD only requires one query of gradient for every iteration, while Algorithm 2 requires queries of gradient. When is large, the query complexity of Algorithm 2 is much higher than OGD. Comparing with OMGD, i.e., Algorithm 2, our new theoretical analysis framework shows that OGD is good enough to recover the state-of-the-art dyanmic regret yielded by OMGD, but it only leads to query of gradient, instead of queries of gradient required by OMGD.
4 A new theoretical analysis framework
In the section, we first provide a modular analysis framework, which does not depend on the assumption on the functions. Then, equipped with the strongly convex assumption, it yields specific results.
4.1 High-level thought
Our original goal is equivalent to investigate whether the basic OGD, i.e., Algorithm 1 can obtain the state-of-the-art dynamic regret, i.e., . Using the divide-and-control strategy, we divide the dynamic regret of OGD into two parts.
The first part, denoted by , is caused by the online setting in the dynamic environment. It does not depend on the strongly convex assumption on the function . 2. 2.
The second part, denoted by , is due to the projected gradient descent step in Algorithm 1. It depends on the assumption on the function such as convexity or strong convexity.
In the paper, our first contribution is to provide an upper bound of without the strongly convex assumption of . Then, benefiting from the rich theoretical tools in the static optimization, we successfully bound by using the strongly convex assumption of .
4.2 Meta framework
Generally, the dynamic regret of OGD is bounded as follows.
Theorem 1**.**
For any in Algorithm 1, the dynamic regret of OGD defined in (1) is bounded by
[TABLE]
where
[TABLE]
and
[TABLE]
In Theorem 1, represents the regret due to the online setting, and represents the regret due to the projected gradient descent updating step in Algorithm 1.
Remark 1**.**
Note that the upper bound of depends on the strongly convex assumption of the function .
Theorem 2**.**
Use Assumption 4, and set in Algorithm 1. Denote and . For any , the regret due to the online setting, i.e., is bounded by
[TABLE]
Remark 2**.**
Note that this upper bound of does not depend on the strongly convex assumption of the function . It still holds for the convex function .
Lemma 1** (Appeared in Proposition in Mokhtari et al. (2016)).**
Use Assumption 1. Let and . Denote . If and , we have .
According to Lemma 1, when ’s are strongly convex, (See Lemma 1). When ’s are just convex, (that is, ). Recall that depends on the strongly convex assumption of ’s. Equipped by Lemma 1, we find that as long as is further bounded, we are able to provide an upper bound for the dynamic regret.
5 Improved query complexity for strongly convex
When all ’s are smooth and strongly convex, the dynamic regret of our method OGD is upper bounded by the following theorem.
Theorem 3**.**
Use Assumptions 1, 2, 3 and 4. Setting in Algorithm 1, and , we bound the dynamic regret of OGD as
[TABLE]
where
[TABLE]
and
[TABLE]
Corollary 1**.**
Suppose . According to Theorem 3, the dynamic regret of OGD is bounded by
[TABLE]
where and are defined in Theorem 3.
Proof.
Recall Assumption 3, and we have . When , we have . Similarly, we have . Thus, we finally obtain
[TABLE]
It completes the proof.
∎
Recall the previous method, i.e., Algorithm 2. Its dynamic regret has been proved, and we present it as follows.
Lemma 2** (Appeared in Theorem and Corollary in Zhang et al. (2017).).**
Use Assumptions 1, 2, and 3, and choose in Algorithm 2. Denote the dynamic regret of Algorithm 2 by . Then, for any constant , is bounded by
[TABLE]
where
[TABLE]
Furthermore, suppose , and we thus have .
Comparing with Lemma 2, our new result achieves the same bound of the regret. But, OGD, i.e., Algorithm 1, only requires one query of gradient for every iteration, which does not depend on , and thus outperforms Algorithm 2 by reduing the query complexity significantly. The following remarks hightlight the advantages of our analysis framework.
Remark 3**.**
Our analysis framework achieves the state-of-the-art dynamic regret presented in Zhang et al. (2017) with a constant factor, and outperforms the dynamic regret presented in Mokhtari et al. (2016).
Remark 4**.**
Our analysis framework shows that queries of gradients for every iteration is enough to achieve the state-of-the-art dynamic regret, but Zhang et al. (2017) requires queries of gradients for every iteration.
6 Conclusion
We provide a new theoretical analysis framework to analyze the regret and query complexity of OGD in the dynamic environment. Comparing with the previous work, our framework achieves the state-of-the-art dynamic regret, and improve the required queries of gradient to be .
Proof of theorems.
Proof of Theorem 1:
Proof.
[TABLE]
Now, we begin to bound . According to Lemma 4, we obtain
[TABLE]
After that, we begin to bound .
[TABLE]
The last inequality holds because that all ’s are smooth. Substituting (3) and (4) into (2), we finally complete the proof. ∎
Proof of Theorem 2:
Proof.
According to the cosine theorem, we have
[TABLE]
According to Lemma 1, if is convex and smooth, holds for . Specifically, holds when is strongly convex, and holds when is just convex. We thus have
[TABLE]
Let , , and we thus have
[TABLE]
that is, . Thus, we have
[TABLE]
Summing up, we obtain
[TABLE]
holds due to letting .
Substituting (6) into (5), we obtain,
[TABLE]
**Case . ** When , according to (7), we have
[TABLE]
holds according to Assumption 4.
**Case . ** When , according to (7), we have
[TABLE]
Combining Case and Case , we obtain
[TABLE]
Thus, we obtain
[TABLE]
Here, . holds due to (10). Dividing on both sides, we complete the proof. ∎
Proof of Theorem 3:
Proof.
When the function is strongly convex, we have
[TABLE]
Substituting (11) into Theorem 1, we obtain
[TABLE]
holds due to (16) in Lemma 5 by setting and . holds because of for . The last inequality holds due to Theorem 2.
Combining Lemma 6, we finally complete the proof.
∎
Proof of lemmas.
Lemma 3**.**
Denote . If , we have
[TABLE]
Proof.
Consider the following convex optimization problem
[TABLE]
Denote the optimum set is , that is, for any , holds.
According to the first-order optimality condition Boyd and Vandenberghe (2004), we have, for any and ,
[TABLE]
Recall that . Thus, we have
[TABLE]
That is, satisfies the first-order optimality condition of (12). It completes the proof. ∎
Lemma 4**.**
Use Assumption 3. For any minimizer and , we have
[TABLE]
Proof.
First, we construct an auxiliary function . According to Lemma 3, we have . Let with .
[TABLE]
Dividing on both sides, we obtain
[TABLE]
holds because that (15) holds for any . Re-arranging the items, we prove the conclusion. ∎
Lemma 5**.**
Suppose that all ’s are smooth. For any , and any minimizer , we have
[TABLE]
Proof.
For any and , we have
[TABLE]
The last inequality holds because that all ’s are smooth. Re-arranging the items, we thus complete the proof. ∎
Lemma 6** (Appeared in Theorem in Mokhtari et al. (2016) ).**
Suppose that Assumptions 1-3 hold, and all are smooth. Thus, with . Set in OGD, i.e., Algorithm 1. The dynamic regret of OGD is bounded as
[TABLE]
Acknowledgment
This work was supported by the National Key R & D Program of China 2018YFB1003203 and the National Natural Science Foundation of China (Grant No. 61672528, 61773392, and 61671463).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Anava et al. [2013] O. Anava, E. Hazan, S. Mannor, and O. Shamir. Online learning for time series prediction. In Proceedings of the 26th Annual Conference on Learning Theory , volume 30, pages 172–184, 12–14 Jun 2013.
- 2Bedi et al. [2018] A. S. Bedi, P. Sarma, and K. Rajawat. Tracking moving agents via inexact online gradient descent algorithm. IEEE Journal of Selected Topics in Signal Processing , 12(1):202–217, Feb 2018.
- 3Besbes, Omar et al. [2015] Besbes, Omar, Gur, Yonatan, and Zeevi, Assaf J. Non-Stationary Stochastic Optimization. Operations Research , 63(5):1227–1244, 2015.
- 4Boyd and Vandenberghe [2004] S. Boyd and L. Vandenberghe. Convex Optimization . Cambridge University Press, New York, NY, USA, 2004. ISBN 0521833787.
- 5Buch et al. [2011] N. Buch, S. A. Velastin, and J. Orwell. A review of computer vision techniques for the analysis of urban traffic. Trans. Intell. Transport. Sys. , 12(3):920–939, Sept. 2011.
- 6Chang et al. [2017] S. Chang, Y. Zhang, J. Tang, D. Yin, Y. Chang, M. A. Hasegawa-Johnson, and T. S. Huang. Streaming recommender systems. In Proceedings of the 26th International Conference on World Wide Web , WWW ’17, pages 381–389, 2017.
- 7Chiang et al. [2012] C. K. Chiang, T. Yang, C. J. Lee, M. Mahdavi, C. J. Lu, R. Jin, and S. Zhu. Online optimization with gradual variations. Journal of Machine Learning Research , 23, 2012.
- 8Duchi et al. [2011] J. Duchi, E. Hazan, and Y. Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research (JMLR) , 12:2121–2159, 2011.
