Newton-Type Methods for Non-Convex Optimization Under Inexact Hessian Information
Peng Xu, Fred Roosta, Michael W. Mahoney
Introduction
Consider the generic unconstrained optimization problem
In doing so, we first consider (P0), and study the theoretical convergence properties of variants of these two algorithms in which, under favorable conditions, Hessian is suitably approximated. We show that our Hessian approximation conditions, in many cases, are weaker than the existing ones in the literature. In addition, and in contrast to some prior works, our conditions allow for efficient constructions of the inexact Hessian with a priori guarantees via various approximation methods, of which Randomized Numerical Linear Algebra (RandNLA), , techniques are shown to be highly effective.
Subsequently, to showcase the application of randomized techniques for construction of the approximate Hessian, we consider an important instance of (P0), i.e., large-scale finite-sum minimization, of the form
The rest of this paper is organized as follows. In Section 1.1, we first introduce the notation and definitions used throughout the paper. For completeness, in Section 1.2, we give a brief review of trust region (Section 1.2.1) and cubic regularization (Section 1.2.2) along with related prior works. Our main contributions are summarized in Section 1.3. Theoretical analysis of the proposed algorithms for solving generic non-convex problem (P0) are presented in Section 2. Various randomized sub-sampling strategies as well as theoretical properties of the proposed algorithms for finite-sum minimization problems (P1) and (P2) are given in Section 3. Conclusions and further thoughts are gathered in Section 4.
Unlike convex functions for which “local optimality” and “global optimality” are in fact the same, in non-convex settings, we are often left with designing algorithms that can guarantee convergence to approximate local optimality. In this light, throughout this paper, we make use of the following definition of -Optimality:
We note that -Optimality (even with ) does not necessarily imply closeness to any local minimum, neither in iterate nor in the objective value. However, if the saddle points satisfy the strict-saddle property , then an -optimality guarantees vicinity to a local minimum for sufficiently small and .
2 Background and Related Work
Arguably, the most straightforward approach for globalization of many Newton-type algorithms is the application of line-search. However, near saddle points where the gradient magnitude can be small, traditional line search methods can be very ineffective and in fact produce iterates that can get stuck at a saddle point . Trust region and cubic regularization methods are two elegant globalization alternatives that, specially recently, have attracted much attention. The main advantage of these methods is that they are reliably able to take advantage of the direction of negative curvature and escape saddle points. In this section we briefly review these algorithms as they pertain to the present paper and mention the relevant prior works.
TR methods encompass a general class of iterative methods which specifically define a region around the current iterate within which they trust the model to be a reasonable approximation of the true objective function. The most widely used approximating model, which we consider here, is done via a quadratic function. More specifically, using the current iterate , the quadratic variant of TR algorithm finds the next iterate as where is a solution of the constrained sub-problem
For a smooth non-convex objective and in order to obtain approximate first-order criticality, i.e., for some , the complexity of an (inexact) trust-region method, which ensures at least a Cauchy (steepest-descent-like) decrease at each iteration, is shown to be of the same order as that of steepest descent, i.e., ; e.g., . Recent non-trivial modifications of the classical TR methods have also been proposed which improve upon the complexity to ; see and further extensions to a more general framework in . These bounds can be shown to be tight in the worst case. Under a more general algorithmic framework and in terms of objective function sub-optimality, i.e., , better complexity bounds, in the convex and strongly-convex settings, have been obtained which are of the orders of and , respectively .
For non-convex problems, however, it is more desired to obtain complexity bounds for achieving approximate second-order criticality, i.e., Definition 1. For this, bounds in the orders of and have been obtained in and , respectively. Similar bounds were also given in under probabilistic model. Bounds of this order have shown to be optimal in certain cases .
More closely related to the present paper, there have been several results which study the role of derivative-free and probabilistic models in general, and Hessian approximation in particular, e.g., see and references therein.
2.2 Cubic Regularization
An alternative to the traditional line-search and TR for globalization of Newton-type methods is the application of cubic regularization. Such class of methods is characterized by generating iterates as where is a solution of the following unconstrained sub-problem
where is the cubic regularization parameter chosen for the current iteration. As in the case of TR, the major bottleneck of CR involved solving the sub-problem (2b), for which various techniques have been proposed, e.g., .
To the best of our knowledge, the use of such regularization, was first introduced in the pioneering work of , and subsequently further studied in the seminal works of .From the worst-case complexity point of view, CR has a better dependence on compared to TR. More specifically, showed that, under global Lipschitz continuity assumption on the Hessian, if the sub-problem (2b) is solved exactly, then the resulting CR algorithm achieves the approximate first-order criticality with complexity of . These results were extended by the pioneering and seminal works of to an adaptive variant, which is often referred to as ARC (Adaptive Regularization with Cubics). In particular, the authors showed that the worst case complexity of can be achieved without requiring the knowledge of the Hessian’s Lipschitz constant, access to the exact Hessian, or multi-dimensional global optimization of the sub-problem (2b). These results were further refined in where it was shown that, not only, multi-dimensional global minimization of (2b) is unnecessary, but also the same complexity can be achieved with mere one or two dimensional search. This bound has been shown to be tight . As for the approximate second-order criticality, showed that at least is required. With further assumptions on the inexactness of sub-problem solution, also show that one can achieve , which is shown to be tight . Better dependence on can be obtained if one assumes additional structure, such as convexity, e.g., see as well as the acceleration scheme of .
Recently, for (strongly) convex problems, obtained sub-optimal complexity for ARC and its accelerated variants using Hessian approximations. In the context of stochastic optimization problems, considers cubic regularization with a priori chosen fixed regularization parameter using both approximations of the gradients and Hessian. Specific to the finite-sum problem (P1), and by a direct application of the theoretical results of , presents a sub-sampled variant of ARC, in which the exact Hessian and the gradient are replaced by sub-samples. However, unfortunately, their analysis suffers from a rather vicious circle: the approximate Hessian and gradient are formed based on an a priori unknown step which can only be determined after such approximations are formed.
3 Contributions
In this section, we summarize the key aspects of our contributions. In Section 2, we consider (P0) and establish the worst-case iteration complexities for variants of trust-region and adaptive cubic regularization methods in which the Hessian is suitably approximated. More specifically, our entire analysis is based on the following key condition on the approximate Hessian :
For some , , the approximating Hessian, , satisfies
where and are, respectively, the iterate and the update at iteration .
Under Condition 1, we show that our proposed algorithms (Algorithms 1 and 2) achieve the same worst-case iteration complexity to obtain approximate second order critical solution as that of the exact variants (Theorems 1, 2, and 3).
In Section 3, we describe schemes for constructing to satisfy Condition 1. Specifically, in the context of finite-sum optimization framework, i.e., problems (P1) and (P2), we present various sub-sampling schemes to probabilistically ensure Condition 1 (Lemmas 16 and 17). Our proposed randomized sub-sampling strategies guarantee, with high probability, a stronger condition than (3a), namely
It is clear that (4) implies (3a). We then give optimal iteration complexities for Algorithms 1 and 2 for optimization of non-convex finite-sum problems where the Hessian is approximated by means of appropriate sub-sampling (Theorems 4, 5 and 6).
To establish optimal second-order iteration complexity, many previous works considered Hessian approximation conditions that, while enjoying many advantages, come with certain disadvantages. Our proposed Condition 1 aims to remedy some of these disadvantages. We first briefly review the conditions used in the prior works, and subsequently highlight the merits of Condition 1 in comparison.
For the analysis of trust-region, many authors have considered the following condition
For cubic regularization, the condition imposed on the inexact Hessian is often considered as
for some , e.g., and other follow-up works. In fact, has also established optimal iteration complexity for trust-region algorithm under (5c). Both of (5a) and (5c), are stronger than the celebrated Dennis-Moré condition, i.e.,
Indeed, under certain assumptions, Dennis-Moré condition is satisfied by a number of quasi-Newton methods, although the same cannot be said about (5a) and (5c) .
3.2 Merits of Condition 1
For our trust-region analysis, we require Condition 1 with ; see (11) in Theorem 1. Hence, when is large, e.g., at the beginning of iterations, all the conditions (3a), (5a), and (5b) are equivalent, up to some constants. However, the constants in (5a) and (5b) can be larger than what is implied by (3a), amounting to cruder approximations in practice for when is large. As iterations progress, the trust-region radius will get smaller, and in fact it is expected that will eventually shrink to be . In prior works, e.g., , the convergence analysis is derived using , whereas here we allow . As a result, the requirements (5a) and (5b) can eventually amount to stricter conditions than (3a).
As for (5c), the main drawback lies in the difficulty of enforcing it. Despite the fact that for certain values of and , e.g., , (5c) can be less restrictive than (3a), a priori enforcing (5c) requires one to have already computed the search direction , which itself can be done only after is constructed, hence creating a vicious circle. A posteriori guarantees can be given if one obtains a lower-bound estimate on the yet-to-be-computed step-size, i.e., to have such that . This allows one to consider a stronger condition as , which can be enforced using a variety of methods such as those described in Section 3. However, to obtain such a lower-bound estimate on the next step-size, one has to resort to a recursive procedure, which necessitates repeated constructions of the approximate Hessian and subsequent solutions of the corresponding subproblems. Consequently, this procedure may result in a significant computational overhead and will lead to undesirable theoretical complexities.
In sharp contrast to (5c), the condition (3a) allows for theoretically principled use of many practical techniques to construct . For example, under (3a), the use of quasi-Newton methods to approximate the Hessian is theoretically justified. Further, by considering the stronger condition (4), many randomized matrix approximation techniques can be readily applied, e.g., ; see Section 3. To the best of our knowledge, the only successful attempt at guaranteed a priori construction of using (5c) is done in . Specifically, by considering probabilistic models, which are “sufficiently accurate” in that they are partly based on (5c), studies first-order complexity of a large class of methods, including ARC, and discusses ways to construct such probabilistic models as long as the gradient is large enough, i.e., before first-order approximate-optimality is achieved. Here, by considering (3a), we are able to provide an alternative analysis, which allows us to obtain second-order complexity results.
Requiring (4), as a way of enforcing (3a), offers a variety of other practical advantages, which are not readily available with other conditions. For example, consider distributed/parallel environments where the data is distributed across a network and the main bottleneck of computations is the communications across the nodes. In such settings, since (4) allows for the Hessian accuracy to be set a priori and to remain fixed across all iterations, the number of samples in each node can stay the same throughout iterations. This prevents unnecessary communications to re-distribute the data at every iteration.
Algorithms and Convergence Analysis
We are now ready to present our main algorithms for solving the generic non-convex optimization (P0) along with their corresponding iteration complexity results to obtain a -optimal solution as in (1). More precisely, in Section 2.1 and 2.2, respectively, we present modifications of the TR and ARC methods which incorporate inexact Hessian information, according to Condition 1.
We remind that, though not specifically mentioned in the statement of the theorems or the algorithms, when the computed steps are rejected and an iteration needs to be repeated with different or , the previous may seamlessly be used in the next iteration. This can be a desirable feature in many practical situations and is directly the result of enforcing (4); see also the discussion in Section 1.3.2.
For our analysis throughout the paper, we make the following standard assumption regarding the regularity of the exact Hessian of the objective function .
is twice differentiable and has bounded and Lipschitz continuous Hessian on the piece-wise linear path generated by the iterates, i.e. for some and all iterations
where and are, respectively, the iterate and the update step at iteration .
Although, we do not know of a particular way to, a priori, verify (6a), it is clear that Assumption (6a) is weaker than Lipschitz continuity of the Hessian for all , i.e.,
Despite the fact that theoretically (6a) is weaker than (7), to the best of our knowledge as of yet, (7) is the only practical sufficient condition for verifying (6a).
Algorithm 1 depicts a trust-region algorithm where at each iteration , instead of the true Hessian , only an inexact approximation, , is used. For Algorithm 1, the accuracy tolerance in (3a) is adaptively chosen as , where is the trust region in the t-th iteration and is some fixed threshold. This allows for a very crude approximation at the beginning of iterations, when is large. As iterations progress towards optimality and gets small, the threshold can prevent from getting unnecessarily too small.
In Algorithm 1, we require that the sub-problem (8) is solved only approximately. Indeed, in large-scale problems, where the exact solution of the sub-problem is the main bottleneck of the computations, this is a very crucial relaxation. Such approximate solution of the sub-problem (8) has been adopted in many previous work. Here, we follow the inexactness conditions discussed in , which are widely known as Cauchy and Eigenpoint conditions. Recall that the Cauchy and Eigen directions correspond, respectively, to one dimensional minimization of the sub-problem (8) along the directions given by the gradient and negative curvature.
Assume that we solve the sub-problem (8) approximately to find such that
Here, is defined in (8), (Cauchy point) is along negative gradient direction and is along approximate negative curvature direction such that , for some (see Appendix B for a way to efficiently compute ).
One way to ensure that an approximate solution to the sub-problem (8) satisfies (9), is by replacing (8) with the following reduced-dimension problem, in which the search space is a two-dimensional sub-space containing vectors , and , i.e.,
Of course, any larger dimensional sub-space for which we have would also guarantee (9). In fact, a larger dimensional sub-space implies a more accurate solution to our original sub-problem (8).
We now set out to provide iteration complexity for Algorithm 1. Our analysis follows similar line of reasoning as that in . First, we show the discrepancy between the quadratic model and objective function in Lemma 1.
Given Assumption 1 and Condition (3a) with any , we have
Applying Mean Value Theorem on at gives , for some in the segment of . We have
Combining with Conditions 1 and 2, we get the following two lemmas that characterize sufficient conditions for successful iterations.
Consider any , let for some , and suppose Condition 1 is satisfied with , where is the trust region at the t-th iteration. Given Assumption 1 and Condition 2, if and , then the t-th iteration is successful, i.e. .
Suppose . From (9b) and (10), we have
By the assumption on , we get and the iteration is successful. Now consider . Similar to the above, we have
which again by assumption on and noting , we get and the iteration is successful. ∎∎
Suppose Condition 1 is satisfied with any . Given Assumption 1 and Condition 2, if and
then, the t-th iteration is successful, i.e. .
By assumption on , (9a), and since , we have
where the last inequality follows by assumption on . So , which means the iteration is successful. ∎∎
Lemma 4 gives a lower bound for the trust region radius before the algorithm terminates, i.e., this ensures that the trust region never shrinks to become too small.
Consider any such that and let for some . Further, suppose Condition 1 is satisfied with , where is the trust region at the t-th iteration. For Algorithm 1, under Assumption 1 and Condition 2, we have , where
We prove by contradiction. Assume that the t-th iteration is the first unsuccessful iteration such that , i.e., we have
Suppose . By Lemma 2, since , iteration must have been accepted and we must have , which is a contradiction. Now suppose . By assumption on , we have that , which implies that . Since the function , for any fixed , is decreasing in , and for any fixed , is increasing in , we have
As a result, since , it must satisfy the condition of Lemma 3. This implies that iteration must have been accepted, which is a contradiction. ∎∎
The following lemma follows closely the line of reasoning in [11, Lemma 4.5].
Consider any such that and let for some . Further, suppose Condition 1 is satisfied with , where is the trust region at the t-th iteration. Let denote the set of all the successful iterations before Algorithm 1 stops. Then, under Assumption 1, Condition 2, the number of successful iterations is upper bounded by,
where , and is as defined in Lemma 4.
Suppose Algorithm 1 doesn’t terminate at the t-th iteration. Then we have either or . In the first case, from (9a), we have
where is as defined in Lemma 4. Similarly, in the second case, from (9b), we obtain
Since is monotonically decreasing, we have
Hence, we have . ∎∎
Now we are ready to present the final complexity in Theorem 1.
Consider any such that and let for some where is a hyper-parameter in Algorithm 1, and is as in (9b). Suppose the inexact Hessian, , satisfies Condition 1 with the approximation tolerance, , in (3a) as
where is the trust region at the t-th iteration. For Problem (P0), under Assumption 1 and Condition 2, Algorithm 1 terminates after at most iterations.
Suppose Algorithm 1 terminates at the t-th iteration. Let and denote the sets of all the successful and unsuccessful iterations, respectively. Then and , where is a hyper-parameter of Algorithm 1. From Lemma 4, we have . Hence, , which implies . Combine the result from Lemma 5, we have the total iteration complexity as
where are defined in the proofs of Lemmas 4 and 5, respectively. ∎∎
As it can be seen, the worst-case total number of iterations required by Algorithm 1 before termination, matches the optimal iteration complexity obtained in . Furthermore, from (3a), it follows that upon termination of Algorithm 1 after iterations, in addition to , we have , i.e., the obtained solution satisfies -Optimality as in (1).
For Algorithm 1, the Hessian approximation tolerance is allowed to be chosen per-iteration as . This way, when is large (e.g., at the beginning of iterations), one can employ crude Hessian approximations. As iterations progress towards optimality, can get very small, in which case Hessian accuracy is set in the order of . Note that by Lemma 4, we are always guaranteed to have . As a result, when , e.g., , we can have that . In such cases, the choice ensures that the Hessian approximation tolerance never gets unnecessarily too small.
2 Adaptive Cubic Regularization with Inexact Hessian
Similar to Section 2.1, in this section, we present the algorithm and its corresponding convergence results for the case of adaptive cubic regularization with inexact Hessian. In particular, Algorithm 2 depicts a variant of ARC algorithm where at each iteration , the inexact approximation, , is constructed according to Condition 1. Here, unlike Section 2.1, we were unable to provide convergence guarantees with adaptive tolerance in (3a) and as result, is set fixed a priori to a sufficiently small value, i.e., to guarantee -optimality.
Similar to Algorithm 1, here we also require that the sub-problem (12) in Algorithm 2 is solved only approximately. Although similar inexact solutions to the sub-problem (12) by using Cauchy and Eigenpoint has been considered in several previous work, e.g., , here we provide refined conditions which prove to be instrumental in obtaining iteration complexities with the relaxed Hessian approximation (3a), as opposed to the stronger Condition (5c).
Assume that we solve the sub-problem (12) approximately to find such that
Here is defined in (12), (Cauchy point) is along negative gradient direction and is along approximate negative curvature direction such that for some (see Appendix B for a way to efficiently compute ).
Note that Condition (13) describes the quality of the descent obtained by Cauchy and Eigen directions more accurately than is usually found in similar literature. A natural way to ensure that the approximate solution to the sub-problem (12) satisfies (13), is by replacing the unconstrained high-dimensional sub-problem (12) with the following constrained but lower-dimensional problem, in which the search space is reduced to a two-dimensional sub-space containing vectors , and , i.e.,
and set . As before, any larger dimensional sub-space for which we have would also ensure (13), and, indeed, implies a more accurate solution to our original sub-problem (12).
Lemmas 6 and 7 describe the model reduction obtained by Cauchy and eigen points as required by Condition (3).
Consider the Cauchy direction as where . We have
Consider the function . It is easy to verify that, for , is decreasing function of . Now since , we get
Alternatively, following the proof of [9, Lemma 2.1], for any , we get
Consider the quadratic polynomial . We have for , where
Note that and trivially . Hence, defining , it is easy to see that . With this , we get Therefore
By the first-order necessary optimality condition of , we get , which implies . Next, since is a minimizer of , we have , which implies . Hence, we also obtain . From [11, Lemma 2.1], we get . Now, we have
which gives and . Hence, we have and . ∎∎
The next lemma is used to show sufficient decrease in the objective function using the approximate solution of the sub-problem (12).
Given Assumption 1 and Condition 1, we have
Apply Mean Value Theorem on at gives , for some in the segment of . Now, it follows that
Given Assumption 1, Conditions 1 and 3, suppose
First consider for which we have two cases.
If , then from assumption on , it immediately follows that
If , since , then
The second last inequality follows from (14).
Similarly, for , we have two cases.
If , then from assumption on , it immediately follows that
If , since , then
The second last inequality follows from (15) and the last line follows from . ∎
Given Assumption 1, Conditions 1 and 3, suppose at the t-th iteration, , , and . Then, the t-th iteration is successful, i.e. .
From (13b), Lemma 8, Lemma 9, as well as assumptions on and , we have
Hence, , and the iteration is successful. ∎∎
Given Assumption 1, Conditions 1 and 3, suppose at the t-th iteration, , , and
Then, the t-th iteration is successful, i.e. .
Hence, again, by (13a), Lemma 8 and 9, it follows that
Hence, , and the iteration is successful. ∎∎
Now we can upper bound the cubic regularization parameter before the algorithm terminates, as in Lemma 12.
Consider Assumption 1, Conditions 1 and 3, and
where are, respectively, defined as in (13b), (6a), (3b), and is a hyper-parameter of Algorithm 2. For Algorithm 2 we have for all , .
We prove by contradiction. Assume the t-th iteration is the first unsuccessful iteration such that , which implies that . However, according to Lemmas 10 and 11, respectively, if or , then the iteration is successful and hence we must have , which is a contradiction. ∎∎
Now, similar to [11, Lemma 2.8], we can get the following result about the estimate of the total number of successful iterations before algorithm terminates.
Given Assumption 1, Conditions 1 and 3, let denote the set of all the successful iterations before Algorithm 2 stops. The number of successful iterations is upper bounded by,
where .
Suppose Algorithm 2 doesn’t terminate at the t-th iteration. Then either we have or . In the first case, (13a) and Lemma 12 gives
Similarly, in the case where , from (13b) and Lemma 12, we obtain .
Since is monotonically decreasing, we have
Now we show the final complexity bounds of Algorithm 2 in Theorem 2.
Consider any . Suppose the inexact Hessian, , satisfies Condition 1 with the approximation tolerance, , in (3a) as (16). For Problem (P0), under Assumption 1 and Condition 3, Algorithm 2 terminates after at most iterations.
Suppose Algorithm 2 terminates at the t-th iteration. Let and denote the sets of all the successful and unsuccessful iterations, respectively. Then and . From Lemma 12, we have . Hence, , which, using Lemma 13 gives the total iteration complexity as
where is defined in Lemma 13. ∎∎
In Theorem 2 (as well as Theorem 3 below), we require . This can be rather strict and computationally unattractive, unless either crude solutions are required (e.g., in most machine learning applications very rough solutions are encouraged to avoid over-fitting), or the inexact Hessian is formed from a sub-set of data that is significantly smaller than the original dataset (e.g., see Section 3 in the context of big-data regimes where and ). Nonetheless, the theoretical existence of such tolerance, though small, implies a certain level of robustness of the algorithm, i.e., the complexity of the algorithm is not adversely affected by small errors in Hessian computations.
We note that, for iterations where , (3a) is indeed a more stringent condition than (5c). As iterations progress towards optimality, step-size can become small, in which case (3a) might be theoretically more preferable. Nonetheless, beyond a direct theoretical comparison among various Hessian approximation bounds in terms of their tightness, the main advantage of (3a) should be regarded in light of its simplicity, which allows for direct constructions of with a priori guarantees.
Condition 3 seems to be the bare minimum required to guarantee convergence to an approximate second-order criticality. Intuitively, however, if an approximate solution to the sub-problem (12) satisfies more than (13), i.e., if we solve (12) more exactly than just requiring (13), one could expect to be able to improve upon the iteration complexity of Theorem 2. Indeed, suppose we solve the reduced sub-problem on progressively embedded sub-spaces with increasingly higher dimensions, all of which including “”, and stop when the corresponding solution satisfies the following conditions.
Assume that we solve the sub-problem (12) approximately to find such that, in addition to (13), we have
for some prescribed . Here, is defined in (12).
Conditions on the inexactness of the sub-problems were initially pioneered in . However, the main drawback for these conditions is that the inexactness tolerance is closely tied with the magnitude of the gradient. More specifically, when gradient is small, e.g., near saddle points, the sub-problems are required to be solved exceedingly more accurately. In fact, at a saddle point where , these conditions imply an exact solution to the sub-problem. To the best of our knowledge, Condition 4 represents a novel criterion, which offers the best of both worlds: when gradient is large, we allow for crude solutions to the sub-problem, but near saddle-points where the gradient is small, inexactness will be determined by the step length, which can be significantly larger than the gradient. Using Condition 4, we can obtain the optimal iteration complexity for Algorithm 2, as shown in Theorem 3. First, we prove the following two lemmas which will be used later for the proof of Theorem 3.
Suppose . Given Assumption 1 and Condition 3, let (3a) hold with where is as in (16) and . Furthermore, suppose (12) is solved such that Condition 4 eventually holds. Then, we have , where
First, suppose . Using Condition 4, we get . Noting that , and using Mean Value Theorem for vector-valued functions, (6a) and (3a), we get
where the last equality follows from Lemma 12. From (6b), it follows that
As such, using from Condition 4 as well as the assumption on , we get
which implies that . Now using Condition 4, we consider two cases:
If , then we get . Hence, it follows that .
If , then from assumption on and (18) , we have . Now by assumption on , we get , which, in turn, implies that .
Now suppose, . As above, we have . If , we have , which gives . Otherwise, if , then implies that . From assumption on , it follows that , which in turn gives . ∎∎
be the set of all successful iterations, before Algorithm 2 terminates. Under the conditions of Lemma 14, we must have .
From (13b) and Lemma 12, if , it follows that . Note that where
We bound each of these sets individually. Since is monotonically decreasing, from [9, Lemma 3.3], , and Lemmas 12 and 14, we have
Hence, , where
As for , we have
Hence, , where . Finally, we have , because in such a case, the algorithm stops in one iteration. Putting these bounds all together, we get . ∎∎
Now we can obtain the optimal complexity bound of Algorithm 2 in Theorem 3. The proof follows similarly as that of Theorem 2, and hence is omitted here.
Consider any . Suppose the inexact Hessian, , satisfies Conditions (3) with the approximation tolerance, , in (3a) as where is as in (16), and . For Problem (P0) and under Assumption 1, if the approximate solution to the sub-problem (12) satisfies Conditions 3 and 4, then Algorithm 2 terminates after at most iterations.
From (3a), upon termination of Algorithm 2, the obtained solution satisfies -Optimality as in (1), i.e., and .
Finite-Sum Minimization
In this section, we give concrete and practical examples to demonstrate ways to construct the approximate Hessian, which satisfies Condition 1. By considering finite-sum minimization, a ubiquitous problem arising frequently in machine learning, we showcase the practical benefits of the proposed relaxed requirement (3a) for approximating Hessian, compared to the stronger alternative (5c). In Section 3.1, we describe randomized techniques to appropriately construct the approximate Hessian, followed by the convergence analysis of Algorithms 1 and 2 with such Hessian approximations in Section 3.2.
Indeed, a major advantage of (3a) over (5c) is that there are many approximation techniques that can produce an inexact Hessian satisfying (3a). Of particular interest in our present paper is the application of randomized matrix approximation techniques, which have recently shown great success in the area of RandNLA at solving various numerical linear algebra tasks . For this, we consider the highly prevalent finite-sum minimization problem (P1) and employ random sampling as a way to construct approximations to the exact Hessian, which are, probabilistically, ensured to satisfy (3a). Many machine learning and scientific computing applications involve finite-sum optimization problems of the form (P1) where each is a loss (or misfit) function corresponding to observation (or measurement), e.g., see and references therein.
Here, we consider (P1) in large-scale regime where . In such settings, the mere evaluations of the Hessian and the gradient increase linearly in . Indeed, for big-data problems, the operations with the Hessian, e.g., matrix-vector products involved in the (approximate) solution of the sub-problems (8) and (12), typically constitute the main bottleneck of computations, and in particular when , are computationally prohibitive. For the special case of (P1) in which each is convex, randomized sub-sampling has shown to be effective in reducing such costs, e.g., . We now show that such randomized approximation techniques can indeed be effectively employed for the non-convex settings considered in this paper.
In this light, suppose we have a probability distribution, , over the set , such that for each index , we have and . Consider picking a sample of indices from , at each iteration, randomly according to the distribution . Let and denote the sample collection and its cardinality, respectively and define
to be the sub-sampled Hessian. In big-data regime when , if , such sub-sampling can offer significant computational savings.
In this case, we can naturally consider uniform distribution over , i.e., . Lemma 16 gives the sample size required for the inexact Hessian, , to probabilistically satisfy (3), for when the indices are picked uniformly at random with or without replacement.
Given (20a), (20b) , and , let
Hence, we can apply Operator-Bernstein inequality [35, Theorem 1] to get
Now (21) ensure that , which gives (22). ∎∎
Indeed, if (22) holds, then (3a) follows with the same probability. In addition, if is constructed according to Lemma 16, it is easy to see that (3b) is satisfied with (in fact this is a deterministic statement). These two, together, imply that satisfies Condition 1, with probability .
In certain settings, one might be able to construct a more “informative” distribution, , over the indices in the set , as opposed to oblivious uniform sampling. In particular, it might be advantageous to bias the probability distribution towards picking indices corresponding to those ’s which are more relevant, in certain sense, in forming the Hessian. If this is possible, then we can only expect to require smaller sample size as compared with oblivious uniform sampling. One such setting where this is possible is the finite-sum optimization of the form (P2), which is indeed a special case of (P1) and arise often in many machine learning problems .
It is easy to see that, the Hessian of in this case can be written as , where
Note that the absolute values are needed since for non-convex , we might have (for the convex case where all , one can obtain stronger guarantees than Lemmas 16 and 17; see ). Using non-uniform sampling distribution (23), Lemma 17 gives sampling complexity for the approximate Hessian of (P2) to, probabilistically, satisfy (3).
Given (20a), (20c) and , let
Since and
The bound in (24) can be improved by replacing the dimension with a smaller quantity, known as intrinsic dimension; see Appendix A. As it can be seen from (20b) and (20c), since , the sampling complexity given by Lemma 17 always provides a smaller sample-size compared with that prescribed by Lemma 16. Indeed, the advantage of non-uniform sampling is more pronounced in cases where the distribution of ’s are highly skewed, i.e., a few large ones and many small ones, in which case we can have ; see numerical experiments in . Also, from (25), it follows that the approximate matrix , constructed according to Lemma 17 satisfies (3b) with , with probability , which in turn, implies that Condition 1 is ensured, with probability .
As concrete examples of the problems in the form (P2) where Lemma 17 can be readily used, Table 1 gives estimates for in (20a) for robust linear regression with smooth non-convex bi-weight loss, , as well as non-convex binary-classification using logistic regression with least squares loss, .
2 Probabilistic Convergence Analysis
Now, we are in the position to give iteration complexity for Algorithms 1 and 2 where the inexact Hessian matrix is constructed according to Lemmas 16 or 17. Since the approximation is a probabilistic construction, in order to guarantee success, we need to ensure that we require a small failure probability across all iterations. In particular, in order to get an overall and accumulative success probability of for the entire iterations, the per-iteration failure probability is set as . This failure probability appears only in the “log factor” for sample size in all of our results, and so it is not the dominating cost. Hence, requiring that all iterations are successful for a large , only necessitates a small (logarithmic) increase in the sample size. For example, for , as in Theorem 2, we can set the per-iteration failure probability to , and ensure that when Algorithm 2 terminates, all Hessian approximations have been, accumulatively, successful with probability of .
Using these results, we can have the following probabilistic, but optimal, guarantee on the worst-case iteration complexity of Algorithm 1 for solving finite-sum problem (P1) (or (P2)) and in the case where the inexact Hessian is formed by sub-sampling. Their proofs follow very similar line of reasoning as that used for obtaining the results of Section 2, and hence are omitted.
Consider any . Let be as in (11) and set . Furthermore, for such , let the sample-size be as in (21) (or (24)) and form the sub-sampled matrix as in (19). For Problem (P1) (or (P2)), under Assumption 1 and Condition 2, Algorithm 1 terminates in at most iterations, upon which, with probability , we have that , and .
Similarly, in the setting of optimization problems (P1) and (P2), with appropriate sub-sampling of the Hessian as in Lemmas 16 and 17, we can also obtain probabilistic worst-case iteration complexities for Algorithm 2 as in the deterministic case. Again, the proofs are similar to those in Section 2, and hence are omitted.
Consider any . Let be as in (16) and set . Furthermore, for such , let the sample-size be as in (21) (or (24)) and form the sub-sampled matrix as in (19). For Problem (P1) (or (P2)), under Assumption 1 and Condition 3, Algorithm 2 terminates in at most iterations, upon which, with probability , we have that , and .
Consider any . Let be as in Theorem 3 and set . Furthermore, for such , let the sample-size be as in (21) (or (24)) and form the sub-sampled matrix as in (19). For Problem (P1) (or (P2)), under Assumption 1, Conditions 3 and 4, Algorithm 2 terminates in at most iterations, upon which, with probability , we have that , and .
As it can be seen, the main difference between Theorems 5 and 6 is in the solution to the sub-problem (12). More specifically, if in addition to Condition 3, Condition 4 is also satisfied, then Theorem 6 gives optimal worst-case iteration complexity.
Conclusion
We considered non-convex optimization settings and developed efficient variants of the trust region and adaptive cubic regularization methods in which both the sub-problems as well as the the curvature information are suitably approximated. For all of our proposed variants, we obtained iteration complexities to achieve approximate second order criticality, which are shown to be the same (up to some constant) as that of the exact variants.
As compared with previous works, our proposed Hessian approximation condition offers a range of theoretical and practical advantages. As a concrete example, we considered the large-scale finite-sum optimization problem and proposed uniform and non-uniform sub-sampling strategies as ways to efficiently construct the desired approximate Hessian. We then, probabilistically, established optimal iteration complexity for variants of trust region and adaptive cubic regularization methods in which the Hessian is appropriately sub-sampled.
In this paper, we focused on approximating the Hessian under the exact gradient information. Arguably, the bottleneck of the computations in such second-order methods involves the computations with the Hessian, e.g., matrix-vector products in the (approximate) solution of the sub-problem. In fact, the cost of the exact gradient computation is typically amortized by that of the operations with the Hessian. In spite of this, approximating the gradient in a computationally feasible way and with minimum assumptions could improve upon the efficiency of the methods proposed here. However, care has to be taken as cheaper iterations with inaccurate gradients could in fact result in more iterations overall. This could have the adverse effect of slowing down the algorithm’s convergence. As a result, approximating the gradient has to be done with care to avoid such pitfalls.
Finally, we mention that our focus here has been solely on developing the theoretical foundations of such randomized algorithms. Extensive empirical evaluations of these algorithms on various machine learning applications are given in the .
References
Appendix A: Intrinsic dimension and improving the sampling complexity (24)
The result of Lemma 17 holds with (24) replaced with
where is the intrinsic dimension of the matrix .
Hence, if , we can apply Matrix Bernstein using the intrinsic dimension [59, Theorem 7.7.1] to get for
Applying the same bound for and , followed by the union bound, we get the desired result. ∎∎