Stochastic AUC Maximization with Deep Neural Networks

Mingrui Liu, Zhuoning Yuan, Yiming Ying, Tianbao Yang

Introduction

Deep learning has been witnessed with tremendous success for various tasks, including computer vision (Krizhevsky et al., 2012; Simonyan & Zisserman, 2014; He et al., 2016; Ren et al., 2015), speech recognition (Hinton et al., 2012; Mohamed et al., 2012; Graves, 2013), natural language processing (Bahdanau et al., 2014; Sutskever et al., 2014; Devlin et al., 2018), etc. From an optimization perspective, all of them are solving an empirical risk minimization problem in which the objective function is a surrogate loss of the prediction error made by a deep neural network in comparison with the ground-truth label. For example, for image classification task, the objective function is often chosen as the cross entropy between the probability distribution calculated by forward propagation of a convolutional neural network and the vector encoding true label information (Krizhevsky et al., 2012; Simonyan & Zisserman, 2014; He et al., 2016), where the cross entropy is a surrogate loss of the misclassification rate. However, when the data is imbalanced, this formulation is not reasonable since the data coming from minor class have little effect in this case and the model is almost determined by the data from the majority class.

To address this issue, AUC maximization has been proposed as a new learning paradigm (Zhao et al., 2011). Statistically, AUC (short for Area Under the ROC curve) is defined as the probability that the prediction score of a positive example is higher than that of a negative example (Hanley & McNeil, 1982; 1983) . Compared with misclassification rate and its corresponding surrogate loss, AUC is more suitable for imbalanced data setting (Elkan, 2001). Several online or stochastic algorithms for AUC maximization have been developed based on a convex surrogate loss (Zhao et al., 2011; Gao et al., 2013; Ying et al., 2016; Liu et al., 2018; Natole et al., 2018). However, all of these works only consider learning a linear predictive model. This naturally motivates the following question:

How to design stochastic algorithms with provable guarantees to solve the AUC maximization problem with a deep neural network as the predictive model?

In this paper, we make some efforts to answer this question. We design two algorithms with state-of-the-art complexities for this problem. Based on a surrogated loss of AUC and inspired by the min-max reformulation in (Ying et al., 2016), we cast the problem into a non-convex concave min-max stochastic optimization problem, where it is nonconvex in the primal variable and concave in the dual variable. This allows us to leverage the inexact proximal point algorithmic framework proposed in (Rafique et al., 2018) to solve stochastic AUC maximization with a deep neural network. However, their algorithms are limited for stochastic AUC maximization with a deep neural network due to three reasons. First, their algorithms are general and do not utilize the underlying favorable property of the the objective function induced by an overparameterized deep neural network, which prevents them from designing better algorithms with faster convergence. Second, these algorithms use a polynomially decaying step size scheme instead of the widely used geometrically decaying step size scheme in deep neural network training. Third, the algorithm in (Rafique et al., 2018) with the best attainable complexity only applies to the finite-sum setting, which needs to go through all data at the end of each stage and are not applicable to the pure stochastic setting.

To address these limitations, we propose to leverage the Polyak-Łojasiewicz (PL) condition of the objective function for AUC maximization with a deep neural network. The PL condition (or its equivalent condition) has been proved for a class of linear and non-linear neural networks (Hardt & Ma, 2016; Charles & Papailiopoulos, 2017; Zhou & Liang, 2017). It is the key to recent developments that prove that (stochastic) gradient descent can find a global minimum for an overparameterized deep neural network (Allen-Zhu et al., 2018; Du et al., 2018b). It is also observed in practice for learning deep neural networks (Li & Yuan, 2017; Kleinberg et al., 2018). From an optimization perspective, the PL condition has been considered extensively for designing faster optimization algorithms in the literature (Karimi et al., 2016; Reddi et al., 2016; Lei et al., 2017). However, there still remains a big gap between existing algorithms that focus on solving a minimization problem and the considered min-max problem of AUC maximization. It is a non-trivial task to leverage the PL condition of a non-convex minimization objective for developing faster primal-dual stochastic algorithms to solve its equivalent non-convex concave min-max problem. The main theoretical contributions in this paper are to solve this issue. Our contributions are:

We propose a stochastic algorithm named Proximal Primal-Dual Stochastic Gradient (PPD-SG) for solving a min-max formulation of AUC maximization under the PL condition of the surrogated AUC objective with a deep neural network. We establish a convergence rate in the order of O(1/ϵ)O(1/\epsilon), which is faster than that achieved by simply applying the result in (Rafique et al., 2018) to the considered problem under the PL condition, i.e., O(1/ϵ3)O(1/\epsilon^{3}) and O(n/ϵ)O(n/\epsilon) with nn being the size of training set.

In addition, we propose an AdaGrad-style primal-dual algorithm named Proximal Primal-Dual Adagrad (PPD-Adagrad), and show that it enjoys better adaptive complexity when the growth of cumulative stochastic gradient is slow. This is the first time an adaptive convergence of a stochastic AdaGrad-style algorithm is established for solving non-convex concave min-max problems.

We evaluate the proposed algorithms on several large-scale benchmark datasets. The experimental results show that our algorithms have superior performance than other baselines.

To the best of our knowledge, this is the first work incorporating PL condition into stochastic AUC maximization with a deep neural network as the predictive model, and more generally into solving a non-convex concave min-max problem. Our results achieve the state-of-the-art iteration complexity for non-convex concave min-max problems.

Related Work

Stochastic AUC Maximization. Stochastic AUC maximization in the classical online setting is challenging due to its pairwise nature. There are several studies trying to update the model each time based on a new sampled/received training data. Instead of storing all examples in the memory, Zhao et al. (2011) employ reservoir sampling technique to maintain representative samples in a buffer, based on which their algorithms update the model. To get optimal regret bound, their buffer size needs to be O(n)O(\sqrt{n}), where nn is the number of received training examples. Gao et al. (2013) design a new algorithm which is not buffer-based. Instead, their algorithm needs to maintain the first-order and second-order statistics of the received data to compute the stochastic gradient, which is prohibitive for high dimensional data. Based on a novel saddle-point reformulation of a surrogate loss of AUC proposed by (Ying et al., 2016), there are several studies (Ying et al., 2016; Liu et al., 2018; Natole et al., 2018) trying to design stochastic primal-dual algorithms. Ying et al. (2016) employ the classical primal-dual stochastic gradient (Nemirovski et al., 2009) and obtain O~(1/t)\widetilde{O}(1/\sqrt{t}) convergence rate. Natole et al. (2018) add a strongly convex regularizer, invoke composite mirror descent (Duchi et al., 2010) and achieve O~(1/t)\widetilde{O}(1/t) convergence rate. Liu et al. (2018) leverage the structure of the formulation, design a multi-stage algorithm and achieve O~(1/t)\widetilde{O}(1/t) convergence rate without strong convexity assumptions. However, all of them only consider learning a linear model, which results in a convex objective function.

Non-Convex Min-max Optimization. Stochastic optimization of non-convex min-max problems have received increasing interests recently (Rafique et al., 2018; Lin et al., 2018; Sanjabi et al., 2018; Lu et al., 2019; Jin et al., 2019). When the objective function is weakly convex in the primal variable and is concave in the dual variable, Rafique et al. (2018) design a proximal guided algorithm in spirit of the inexact proximal point method (Rockafellar, 1976), which solves a sequence of convex-concave subproblems constructed by adding a quadratic proximal term in the primal variable with a periodically updated reference point. Due to the potential non-smoothness of objective function, they show the convergence to a nearly-stationary point for the equivalent minimization problem. In the same vein as (Rafique et al., 2018), Lu et al. (2019) design an algorithm by adopting the block alternating minimization/maximization strategy and show the convergence in terms of the proximal gradient. When the objective is weakly convex and weakly concave, Lin et al. (2018) propose a proximal algorithm which solves a strongly monotone variational inequality in each epoch and establish its convergence to stationary point. Sanjabi et al. (2018) consider non-convex non-concave min-max games where the inner maximization problem satisfies a PL condition, based on which they design a multi-step deterministic gradient descent ascent with convergence to a stationary point. It is notable that our work is different in that (i) we explore the PL condition for the outer minimization problem instead of the inner maximization problem; (ii) we focus on designing stochastic algorithms instead of deterministic algorithms.

Leveraging PL Condition for Minimization. PL condition is first introduced by Polyak (Polyak, 1963), which shows that gradient descent is able to enjoy linear convergence to a global minimum under this condition. Karimi et al. (2016) show that stochastic gradient descent, randomized coordinate descent, greedy coordinate descent are able to converge to a global minimum with faster rates under the PL condition. If the objective function has a finite-sum structure and satisfies PL condition, there are several non-convex SVRG-style algorithms (Reddi et al., 2016; Lei et al., 2017; Nguyen et al., 2017; Zhou et al., 2018; Li & Li, 2018; Wang et al., 2018), which are guaranteed to converge to a global minimum with a linear convergence rate. However, the stochastic algorithms in these works are developed for a minimization problem, and hence is not applicable to the min-max formulation for stochastic AUC maximization. To the best of our knowledge, Liu et al. (2018) is the only work that leverages an equivalent condition to the PL condition (namely quadratic growth condition) to develop a stochastic primal-dual algorithm for AUC maximization with a fast rate. However, as mentioned before their algorithm and analysis rely on the convexity of the objective function, which does not hold for AUC maximization with a deep neural network.

Finally, we notice that PL condition is the key to many recent works in deep learning for showing there is no spurious local minima or for showing global convergence of gradient descent and stochastic gradient descent methods (Hardt & Ma, 2016; Li & Yuan, 2017; Arora et al., 2018; Allen-Zhu et al., 2018; Du et al., 2018b; a; Li & Liang, 2018; Allen-Zhu et al., 2018; Zou et al., 2018; Zou & Gu, 2019). Using the square loss, it has also been proved that the PL condition holds globally or locally for deep linear residual network (Hardt & Ma, 2016), deep linear network, one hidden layer neural network with Leaky ReLU activation (Charles & Papailiopoulos, 2017; Zhou & Liang, 2017). Several studies (Li & Yuan, 2017; Arora et al., 2018; Allen-Zhu et al., 2018; Du et al., 2018b; Li & Liang, 2018) consider the trajectory of (stochastic) gradient descent on learning neural networks, and their analysis imply the PL condition in a certain form. For example, Du et al. (2018b) show that when the width of a two layer neural network is sufficiently large, a global optimum would lie in the ball centered at the initial solution, in which PL condition holds. Allen-Zhu et al. (2018) extends this insight further to overparameterized deep neural networks with ReLU activation, and show that the PL condition holds for a global minimum around a random initial solution.

Preliminaries and Notations

where H\mathcal{H} denotes a hypothesis class. All previous works of AUC maximization assume h(x)=w⊤xh(\mathbf{x})=\mathbf{w}^{\top}\mathbf{x} for simplicity. Instead, we consider learning a general nonlinear model parameterized by w\mathbf{w}, i.e. h(w;x)h(\mathbf{w};\mathbf{x}), which is not necessarily linear or convex in terms of w\mathbf{w} (e.g., h(w;x)h(\mathbf{w};\mathbf{x}) can be a score function defined by a neural network with weights denoted by w\mathbf{w}). Hence, the corresponding optimization problem becomes

The following proposition converts the original optimization problem (1) into a saddle-point problem, which is similar to Theorem 1 in (Ying et al., 2016). For completeness, the proof is included in the supplement.

The optimization problem (1) is equivalent to

Remark: It is notable that the min-max formulation (2) is more favorable than the original formulation (1) for developing a stochastic algorithm that updates the model parameters based on one example or a mini-batch of samples. For stochastic optimization of (1), one has to carefully sample both positive and negative examples, which is not allowed in an online setting. It is notable that in the classical batch-learning setting, pp becomes the ratio of positive training examples and the expectation in (2) becomes average over nn individual functions. However, our algorithms are applicable to both batch-learning setting and online learning setting.

Define v=(w⊤,a,b)⊤\mathbf{v}=(\mathbf{w}^{\top},a,b)^{\top}, ϕ(v)=max⁡αf(v,α)\phi(\mathbf{v})=\max_{\alpha}f(\mathbf{v},\alpha). It is clear that min⁡wP(w)=min⁡vϕ(v)\min_{\mathbf{w}}P(\mathbf{w})=\min_{\mathbf{v}}\phi(\mathbf{v}) and P(w)≤ϕ(v)P(\mathbf{w})\leq\phi(\mathbf{v}) for any v=(w⊤,a,b)⊤\mathbf{v}=(\mathbf{w}^{\top},a,b)^{\top}. The following assumption is made throughout the paper.

Remark: The first condition is inspired by a PL condition on the objective function P(w)P(\mathbf{w}) for learning a deep neural network. and the following Lemma 1 establishes the connection. h(w;x)∈h(\mathbf{w};\mathbf{x})\in holds when hh is defined as the sigmoid function composited with the forward propagation function of a neural network.

Remark: The PL condition of P(w)P(\mathbf{w}) could be proved for learning a neural network similar to existing studies, which is not the main focus of this paper. Nevertheless, In Appendix A.7, we provide an example for AUC maximization with one-hidden layer neural network.

Warmup. We first discuss the algorithms and their convergence results of (Rafique et al., 2018) applied to the considered min-max problem. They have algorithms for problems in batch-learning setting and online learning setting. Since the algorithms for the batch-learning setting have complexities scaling with nn, we will concentrate on the algorithm for the online learning setting. The algorithm is presented in Algorithm 1, which is a direct application of Algorithm 2 of (Rafique et al., 2018) to an online setting. Since their analysis requires the domain of the primal and the dual variable to be bounded, hence we add a ball constraint on the primal variable and the dual variable as well. As long as R1R_{1} and R2R_{2} is sufficiently large, they should not affect the solution. The convergence result of Algorithm 1 is stated below.

We can see that this complexity result under the PL condition of ϕ(v)\phi(\mathbf{v}) is worse than the typical complexity result of stochastic gradient descent method under the PL condition (i.e., O(1/ϵ)O(1/\epsilon)) (Karimi et al., 2016). It remains an open problem how to design a stochastic primal-dual algorithm for solving min⁡vmax⁡αF(v,α)\min_{\mathbf{v}}\max_{\alpha}F(\mathbf{v},\alpha) in order to achieve a complexity of O(1/ϵ)O(1/\epsilon) in terms of minimizing ϕ(v)\phi(\mathbf{v}). A naive idea is to solve the inner maximization problem of α\alpha first and the use SGD on the primal variable v\mathbf{v}. However, this is not viable since exact maximization over α\alpha is a non-trivial task.

Algorithms and Theoretical Analysis

In this section, we present two primal-dual algorithms for solving the min-max optimization problem (2) with corresponding theoretical convergence results. For simplicity, we first assume the positive ratio pp is known in advance, which is true in the batch-learning setting. Handling the unknown pp in an online learning setting is a simple extension, which will be discussed in Section 4.3. The proposed algorithms follow the same proximal point framework proposed in (Rafique et al., 2018), i.e., we solve the following convex-concave problems approximately and iteratively:

where γ<1/L\gamma<1/L to ensure that the new objective function becomes convex and concave, and v0\mathbf{v}_{0} is periodically updated.

Our first algorithm named Proximal Primal-Dual Stochastic Gradient (PPD-SG) is presented in Algorithm 2. Similar to Algorithm 1, it has a nested loop, where the inner loop is to approximately solve a regularized min-max optimization problem (3) using stochastic primal-dual gradient method, and the outer loop updates the reference point and learning rate. One key difference is that PPD-SG uses a geometrically decaying step size scheme, while Algorithm 1 uses a polynomially decaying step size scheme. Another key difference is that at the end of kk-th outer loop, we update the dual variable αˉk\bar{\alpha}_{k} in Step 12, which is motivated by its closed-form solution given vˉk\bar{\mathbf{v}}_{k}. In particular, the given vˉk\bar{\mathbf{v}}_{k}, the dual solution that optimizes the inner maximization problem is given by:

In the algorithm, we only use a small number of samples in Step 11 to compute an estimation of the optimal α\alpha given vˉk\bar{\mathbf{v}}_{k}. These differences are important for us to achieve lower iteration complexity of PPD-SG. Next, we present our convergence results of PPD-SG.

Remark: The above complexity result is similar to that of (Karimi et al., 2016) for solving non-convex minimization problem under the PL condition up to a logarithmic factor. Compared with the complexity result of Algorithm 1 discussed earlier, i.e., O~(1/(μ3ϵ3))\widetilde{O}(1/(\mu^{3}\epsilon^{3})), the above complexity in the order of O~(1/(μ2ϵ))\widetilde{O}(1/(\mu^{2}\epsilon)) is much better - it not only improves the dependence on ϵ\epsilon but also improves the dependence on μ\mu.

2 Proximal Primal-Dual Adagrad

Our second algorithm named Proximal Primal-Dual Adagrad (PPD-Adagrad) is a AdaGrad-style algorithm. Since it only differs from PPD-SG in the updates of the inner loop, we only present the inner loop in Algorithm 3. The updates in the inner loop are similar to the adaptive updates of traditional AdaGrad (Duchi et al., 2011). We aim to achieve an adaptive convergence by using PPD-AdaGrad. The analysis of PPD-AdaGrad is inspired by the analysis of AdaGrad for non-convex minimization problems (Chen et al., 2019). The key difference is that we have to carefully deal with the primal-dual updates for the non-convex min-max problem. We summarize the convergence results of PPD-AdaGrad below.

Remark: When the cumulative growth of stochastic gradient is slow, i.e., α<1/2\alpha<1/2, the number of iterations is less than that in Theorem 2, which exhibits adaptive iteration complexity.

3 Extensions

Setting ηk,Tk,mk\eta_{k},T_{k},m_{k}. It is notable that the setting of ηk,Tk,mk\eta_{k},T_{k},m_{k} depends on unknown parameters μ\mu, LL, etc., which are typically unknown. One heuristic to address this issue is that we can decrease ηk\eta_{k} by a constant factor larger than 11 (e.g., 2 or 5 or 10), and similarly increase TkT_{k} and mkm_{k} by a constant factor. Another heuristic is to decrease the step size by a constant factor when the performance on a validation data saturates (Krizhevsky et al., 2012).

Variants when pp is unknown. In the online learning setting when pp is unknown, the stochastic gradients of ff in both v\mathbf{v} and α\alpha are not directly available. To address this issue, we can keep unbiased estimators for both pp and p(1−p)p(1-p) which are independent of the new arrived data, and update these estimators during the optimization procedure. All values depending on pp and p(1−p)p(1-p) (i.e., F,gv,gαF,\mathbf{g}_{\mathbf{v}},\mathbf{g}_{\alpha}) are estimated by substituting pp and p(1−p)p(1-p) by p^\widehat{p} and p(1−p)^\widehat{p(1-p)} (i.e., F^,g^v,g^α\hat{F},\hat{\mathbf{g}}_{\mathbf{v}},\hat{\mathbf{g}}_{\alpha}) respectively. The approach for keeping unbiased estimator p^\hat{p} and p(1−p)^\widehat{p(1-p)} during the optimization is described in Algorithm 4, where jj is the global index, and mm is the number of examples received.

Extensions to multi-class problems. In the previous analysis, we only consider the binary classification problem. We can extend it to the multi-class setting. To this end, we first introduce the definition of AUC in this setting according to (Hand & Till, 2001). Suppose there are cc classes, we have cc scoring functions for each class, namely h(w1;x),…,h(wc;x)h(\mathbf{w}_{1};\mathbf{x}),\ldots,h(\mathbf{w}_{c};\mathbf{x}). We assume that these scores are normalized such that ∑k=1ch(wc;x)=1\sum_{k=1}^{c}h(\mathbf{w}_{c};\mathbf{x})=1. Note that if these functions are implemented by a deep neural network, they can share the lower layers and have individual last layer of connections. The AUC is defined as

Similar to Proposition 1, we can cast the problem into

Then we can modify our algorithms to accommodate the multiple class pairs. We can also add another level of sampling of class pairs into computing the stochastic gradients.

Experimental Results

In this section, we present some empirical results to verify the effectiveness of the proposed algorithms. We compare our algorithms (PPD-SG and PPD-AdaGrad) with three baseline methods including PGA (Algorithm 1), Online AUC method (Ying et al., 2016) (OAUC) that directly employs the standard primal-dual stochastic gradient method with a decreasing step size for solving the min-max formulation, and the standard stochastic gradient descent (SGD) for minimizing cross-entropy loss. Comparing with PGA and OAUC allows us to verify the effectiveness of the proposed algorithms for solving the same formulation, and comparing with SGD allows us to verify the effectiveness of maximizing AUC for imbalanced data. We use a residual network with 20 layers (ResNet-20) to implement the deep neural network for all algorithms.

We use the stagewise step size strategy as in (He et al., 2016) for SGD, i.e. the step size is decreased by 10 times at 40K, 60K. For PPD-SG and PPD-AdaGrad, we set Ts=T03k,ηs=η0/3kT_{s}=T_{0}3^{k},\eta_{s}=\eta_{0}/3^{k}. T0,η0T_{0},\eta_{0} are tuned on a validation data. The value of γ\gamma is tuned for PGA and the same value is used for PPD-SG and PPD-AdaGrad. The initial step size is tuned in [0.1, 0.05, 0.01, 0.008, 0.005] and T0T_{0} is tuned in [200∼2000][200\sim 2000] for each algorithm separately. The batch size is set to 128. For STL10, we use a smaller batch size 32 due to the limited training data.

We conduct the comparisons on four benchmark datasets, i.e., Cat&Dog (C2), CIFAR10 (C10), CIFAR100 (C100), STL10. STL10 is an extension of CIFAR10 and the images are acquired from ImageNet. Cat&Dog is from Kaggle containing 25,000 images of dogs and cats and we choose an 80:20 split to construct training and testing set. We use 19k/1k, 45k/5k, 45k/5k, 4k/1k training/validation split on C2, C10, C100, and STL10 respectively. For each dataset, we construct multiple binary classification tasks with varying imbalanced ratio of number negative examples to number of positive examples. For details of construction of binary classification tasks, please refer to the Appendix A.8.

We report the convergence of AUC on testing data in Figure 1, where the title shows the ratio of the majority class to the minority class. The results about the convergence of AUC versus the time in seconds are also presented in Figure 3. From the results we can see that for the balanced settings with ratio equal to 50%, SGD performs consistently better than other methods on C2 and CIFAR10 data. However, it is worse than AUC optimization based methods on CIFAR100 and STL10. For imbalanced settings, AUC maximization based methods are more advantageous than SGD in most cases. In addition, PPD-SG and PPD-AdaGrad are mostly better than other baseline algorithms. In certain cases, PPD-AdaGrad can be faster than PPD-SG. Finally, we observe even better performance (in Appendix) by a mixed strategy that pre-trains the model with SGD and then switchs to PPD-SG.

Conclusion

In this paper, we consider stochastic AUC maximization problem when the predictive model is a deep neural network. By building on the saddle point reformulation and exploring Polyak-Łojasiewicz condition in deep learning, we have proposed two algorithms with state-of-the-art complexities for stochastic AUC maximization problem. We have also demonstrated the efficiency of our proposed algorithms on several benchmark datasets, and the experimental results indicate that our algorithms converge faster than other baselines. One may consider to extend the analysis techniques to other problems with the min-max formulation.

Acknowledgments

The authors thank the anonymous reviewers for their helpful comments. M. Liu, Z. Yuan and T. Yang are partially supported by National Science Foundation CAREER Award 1844403.

References

Appendix A Appendix

A.2 Proof of Lemma 2

where (a) comes from the definition of ϕk\phi_{k}, (b) holds because min⁡vmax⁡α[f(v,α)+12γ∥v−vˉk−1∥2]≥f(sk,αˉk)+12γ∥sk−vˉk−1∥2\min_{\mathbf{v}}\max_{\alpha}\left[f(\mathbf{v},\alpha)+\frac{1}{2\gamma}\|\mathbf{v}-\bar{\mathbf{v}}_{k-1}\|^{2}\right]\geq f(\mathbf{s}_{k},\bar{\alpha}_{k})+\frac{1}{2\gamma}\|\mathbf{s}_{k}-\bar{\mathbf{v}}_{k-1}\|^{2}, (c) comes from the standard analysis of primal-dual stochastic gradient method.

Define α~0k=α0k\widetilde{\alpha}_{0}^{k}=\alpha_{0}^{k} and

By first-order optimality condition, we have

where the first inequality holds due to (8). Hence we have

where C=2ln⁡(1max⁡(p,1−p))max⁡(p,1−p)1ln⁡(1/max⁡(p,1−p))C=\frac{2}{\ln(\frac{1}{\max(p,1-p)})}\max(p,1-p)^{\frac{1}{\ln(1/\max(p,1-p))}}, and (a) holds since the function xmax⁡(p,1−p)xx\max(p,1-p)^{x} achieves its maximum at point x=1/ln⁡(1/max⁡(p,1−p))x=1/\ln(1/\max(p,1-p)).

Taking mk−1≥2(σ2+C)p(1−p)ηk2G2Tkm_{k-1}\geq\frac{2(\sigma^{2}+C)}{p(1-p)\eta_{k}^{2}G^{2}T_{k}}, then we have

A.3 Proof of Theorem 2

Note that ϕk(vˉ)\phi_{k}(\bar{\mathbf{v}}) is (γ−1−L)(\gamma^{-1}-L)-strongly convex, and γ=12L\gamma=\frac{1}{2L}, we have

Plugging in sk\mathbf{s}_{k} into Lemma 2 and combining (11) yield

Taking expectation on both sides over all randomness until vˉk−1\bar{\mathbf{v}}_{k-1} is generated and by the tower property, we have

Note that ϕ(v)\phi(\mathbf{v}) is LL-smooth and hence is LL-weakly convex, so we have

where (a) and (b) hold by the definition of ϕk\phi_{k}.

where (a) holds by using ⟨a,b⟩≤12(∥a∥2+∥b∥2)\left\langle\mathbf{a},\mathbf{b}\right\rangle\leq\frac{1}{2}(\|\mathbf{a}\|^{2}+\|\mathbf{b}\|^{2}), and (b) holds by the PL property of ϕ\phi.

Define Δk=ϕ(vˉk)−ϕ(v∗)\Delta_{k}=\phi(\bar{\mathbf{v}}_{k})-\phi(\mathbf{v}_{*}). Combining (14) and (16), we can see that

By setting ηk=η0exp⁡(−(k−1)μ/L5+μ/L)\eta_{k}=\eta_{0}\exp\left(-(k-1)\frac{\mu/L}{5+\mu/L}\right), we have

A.4 Proof of Lemma 3

where (a) comes from the definition of ϕk\phi_{k}, (b) holds because min⁡vmax⁡α[f(v,α)+12γ∥v−vˉk−1∥2]≥f(sk,αˉk)+12γ∥sk−vˉk−1∥2\min\limits_{\mathbf{v}}\max\limits_{\alpha}\left[f(\mathbf{v},\alpha)+\frac{1}{2\gamma}\|\mathbf{v}-\bar{\mathbf{v}}_{k-1}\|^{2}\right]\geq f(\mathbf{s}_{k},\bar{\alpha}_{k})+\frac{1}{2\gamma}\|\mathbf{s}_{k}-\bar{\mathbf{v}}_{k-1}\|^{2}, (c) holds by Jensen’s inequality.

Now we bound I\mathbf{I} and II\mathbf{II} separately. Define ∥u∥H=u⊤Hu\|\mathbf{u}\|_{H}=\sqrt{\mathbf{u}^{\top}H\mathbf{u}}, ψ0k(u)=0\psi_{0}^{k}(\mathbf{u})=0, ψTkk,∗\psi_{T_{k}}^{k,*} to be the conjugate of 1ηkψTkk\frac{1}{\eta_{k}}\psi_{T_{k}}^{k}, which is ψTkk,∗(g)=sup⁡u{⟨g,u⟩−1ηkψTkk(u)}.\psi_{T_{k}}^{k,*}(\mathbf{g})=\sup_{\mathbf{u}}\left\{\langle\mathbf{g},\mathbf{u}\rangle-\frac{1}{\eta_{k}}\psi_{T_{k}}^{k}(\mathbf{u})\right\}. Note that

where the last equality holds by the definition of ψTkk,∗\psi_{T_{k}}^{k,*}.

where (a) holds due to the update of the Algorithm 3, (b) holds since ψt+1k(u)≥ψtk(u)\psi_{t+1}^{k}(\mathbf{u})\geq\psi_{t}^{k}(\mathbf{u}), (c) holds by the ηk\eta_{k}-smoothness of ψtk,∗\psi_{t}^{k,*} with respect to ∥⋅∥ψtk,∗=∥⋅∥(Htk)−1\|\cdot\|_{\psi_{t}^{k,*}}=\|\cdot\|_{(H_{t}^{k})^{-1}}.

By (19) and noting that ∇ψTk−1k,∗(−∑t=1Tk−1g^tk)=uTkk\nabla\psi_{T_{k}-1}^{k,*}\left(-\sum_{t=1}^{T_{k}-1}\hat{\mathbf{g}}_{t}^{k}\right)=\mathbf{u}_{T_{k}}^{k}, we have

Using (20) recursively and noting that ψ0k(u)=0\psi_{0}^{k}(\mathbf{u})=0, we know that

By Lemma 4 of (Duchi et al., 2011) and setting δ≥max⁡t∥g^tk∥∞\delta\geq\max_{t}\|\hat{\mathbf{g}}_{t}^{k}\|_{\infty}, we know that ∑t=1Tk∥g^tk∥ψt−1k,∗2≤2∑i=1d+3∥g^1:Tkk∥2\sum_{t=1}^{T_{k}}\|\hat{\mathbf{g}}_{t}^{k}\|_{\psi_{t-1}^{k,*}}^{2}\leq 2\sum_{i=1}^{d+3}\|\hat{\mathbf{g}}_{1:T_{k}}^{k}\|_{2}, and hence

where the equality holds since vˉk−1−sk\bar{\mathbf{v}}_{k-1}-\mathbf{s}_{k} is measurable with respect to Fk−1\mathcal{F}_{k-1}.

Taking mk−1≥2(σ2+C)p(1−p)(d+3)ηk2m_{k-1}\geq\frac{2(\sigma^{2}+C)}{p(1-p)(d+3)\eta_{k}^{2}}, then we have

Define α~0k=α0k\widetilde{\alpha}_{0}^{k}=\alpha_{0}^{k} and

where ψtk(α)=ψtk(u)\psi_{t}^{k}(\alpha)=\psi_{t}^{k}(\mathbf{u}) in which u=[0,…,0,α]\mathbf{u}=[0,\ldots,0,\alpha] and u0k=[0,…,0,α0k]\mathbf{u}_{0}^{k}=[0,\ldots,0,\alpha_{0}^{k}]. By setting

then TkT_{k} is a stopping time which is bounded almost surely. By stopping time argument, we have

Note that the variance of stochastic gradient is smaller than its second moment, we can follow the similar analysis of bounding I\mathbf{I} to show that

Following the same analysis of bounding the RHS of (23), we know that

A.5 Proof of Theorem 3

Note that ϕk(vˉ)\phi_{k}(\bar{\mathbf{v}}) is (γ−1−L)(\gamma^{-1}-L)-strongly convex, and γ=12L\gamma=\frac{1}{2L}, we have

Plugging in sk\mathbf{s}_{k} into Lemma 3 and combining (27) yield

By taking ηkMkL≥4c\eta_{k}M_{k}L\geq 4c, rearranging the terms, and noting that ϕk(vˉk−1)=ϕ(vˉk−1)\phi_{k}(\bar{\mathbf{v}}_{k-1})=\phi(\bar{\mathbf{v}}_{k-1}), we have

Taking expectation on both sides over all randomness until vˉk−1\bar{\mathbf{v}}_{k-1} is generated and by the tower property, we have

Note that ϕ(v)\phi(\mathbf{v}) is LL-smooth and hence is LL-weakly convex, so we have

where (a) and (b) hold by the definition of ϕk\phi_{k}.

where (a) holds by using ⟨a,b⟩≤12(∥a∥2+∥b∥2)\left\langle\mathbf{a},\mathbf{b}\right\rangle\leq\frac{1}{2}(\|\mathbf{a}\|^{2}+\|\mathbf{b}\|^{2}), and (b) holds by the PL property of ϕ\phi.

Define Δk=ϕ(vˉk)−ϕ(v∗)\Delta_{k}=\phi(\bar{\mathbf{v}}_{k})-\phi(\mathbf{v}_{*}). Combining (30) and (32), we can see that

By setting ηk=η0exp⁡(−(k−1)2μ/L5+μ/L)\eta_{k}=\eta_{0}\exp\left(-\frac{(k-1)}{2}\frac{\mu/L}{5+\mu/L}\right), Mk=4cLη0exp⁡((k−1)2μ/L5+μ/L)M_{k}=\frac{4c}{L\eta_{0}}\exp\left(\frac{(k-1)}{2}\frac{\mu/L}{5+\mu/L}\right) at kk-th stage, we have

Take c=1d+3c=\frac{1}{\sqrt{d+3}}. If ∥g^1:Tk,ik∥2≤δ⋅Tkα\|\hat{\mathbf{g}}_{1:T_{k},i}^{k}\|_{2}\leq\delta\cdot T_{k}^{\alpha} for ∀k\forall k, where 0≤α≤120\leq\alpha\leq\frac{1}{2}, and note that when τ≥1\tau\geq 1,

Noting that c=1d+3c=\frac{1}{\sqrt{d+3}}, we can see that the total iteration complexity is

A.6 Proof of Lemma 1

For any fixed w\mathbf{w}, define (aw∗,bw∗)=arg⁡min⁡a,bϕ(w,a,b)(a_{\mathbf{w}}^{*},b_{\mathbf{w}}^{*})=\arg\min\limits_{a,b}\phi(\mathbf{w},a,b) (ϕ(w,a,b)\phi(\mathbf{w},a,b) is strongly convex in terms of (a,b)(a,b), so the argmin is well-defined and unique). Note that

We bound ϕ(w,a,b)−ϕ(w,aw∗,bw∗)\phi(\mathbf{w},a,b)-\phi(\mathbf{w},a_{\mathbf{w}}^{*},b_{\mathbf{w}}^{*}) and ϕ(w,aw∗,bw∗)−min⁡w,a,bϕ(w,a,b)\phi(\mathbf{w},a_{\mathbf{w}}^{*},b_{\mathbf{w}}^{*})-\min_{\mathbf{w},a,b}\phi(\mathbf{w},a,b) respectively:

Note that ϕ(w,a,b)\phi(\mathbf{w},a,b) is strong convex in (a,b)(a,b) with modulus 2min⁡(p,1−p)2\min(p,1-p), so the PL condition holds, which means that

where the last inequality holds since ϕ(w,a,b)\phi(\mathbf{w},a,b) is strongly convex in (a,b)(a,b) with modulus 2min⁡(p,1−p)2\min(p,1-p).

Combining these two cases, we know that ϕ(v)−ϕ(v∗)≤12μ′∥∇ϕ(v)∥2\phi(\mathbf{v})-\phi(\mathbf{v}_{*})\leq\frac{1}{2\mu^{\prime}}\|\nabla\phi(\mathbf{v})\|^{2}, where μ′=1max⁡(12min⁡(p,1−p)+2G^2μmin⁡(p2,(1−p)2),2μ)\mu^{\prime}=\frac{1}{\max\left(\frac{1}{2\min(p,1-p)}+\frac{2\hat{G}^{2}}{\mu\min(p^{2},(1-p)^{2})},\frac{2}{\mu}\right)}. ∎

A.7 An example that satisfies PL condition

One hidden neural network satisfies h(w;x)=σ(w⊤x)h(\mathbf{w};\mathbf{x})=\sigma(\mathbf{w}^{\top}\mathbf{x}), where σ\sigma is the activation function. We have the following theorem:

Remark: Consider the case that x\mathbf{x} is a zero mean Gaussian distribution with non-degenerate convariance matrix. Then μ>0\mu>0 since the minimum eigenvalue appeared in the expression of μ\mu is positive.

where (∗)(*) holds since λmin(A+B)≥λmin(A)+λmin(B)\lambda_{\text{min}}(A+B)\geq\lambda_{\text{min}}(A)+\lambda_{\text{min}}(B), and the last inequality holds since a2≥min⁡(c12,c22)a^{2}\geq\min(c_{1}^{2},c_{2}^{2}) and b2≥min⁡(c12,c22)b^{2}\geq\min(c_{1}^{2},c_{2}^{2}). ∎

A.8 Dataset Preparation

We construct the datasets in the following ways: For CIFAR10/STL10, we label the first 5 classes as negative ("-") class and the last 5 classes as positive ("+") class, which leads to a 50/50 class ratio. For CIFAR100, we label the first 50 classes as negative ("-") class and the last 50 classes as positve ("+") class. For the imbalanced cases, we randomly remove 90%, 80%, 60% data from negative samples on all training data, which lead to 91/9, 83/17, 71/29 ratio respectively. For testing data, we keep them unchanged.

A.9 More Experiments

Model pretraining is effective in many deep learning tasks, and thus we further evaluate the performance of the proposed methods on pretrained models. We first train the model using SGD up to 2000 iterations with an initial step size of 0.1, and then continue training using PPD-SG. We denote this method as PPD-SG+pretrain and the results are shown in Figure 2. The parameters are tuned in the same range as in Section 5. It is observed that pretraining model helps the convergence of model and it can achieve the better performance in terms of AUC in most cases.

A.10 Additional Experiments with Different Labeling Order

To investigate the effects of labeling order, we also attempt to randomly partition the classes as positive or negative equally. For CIFAR10 and STL10 dataset, we randomly partition the 10 classes into two labels (i.e., randomly select 5 classes as positive label and other 5 classes as negative label). For CIFAR100 dataset, we randomly partition the 100 classes into two labels (i.e., randomly select 50 classes as positive label and other 50 classes as negative label). After that we randomly remove 95%, 90%, from negative samples on all training data, which lead to 20:1, 10:1 ratios respectively. For testing data, we keep them unchanged. We also add AdaGrad for minimizing cross-entropy loss as a new baseline. The corresponding experimental results are included in Figure 3. We can see that PPD-Adagrad and PPD-SG converge faster than other baselines.