Stochastic subgradient method converges on tame functions
Damek Davis, Dmitriy Drusvyatskiy, Sham Kakade, Jason D. Lee
Introduction
In this work, we study the long term behavior of the stochastic subgradient method on nonsmooth and nonconvex functions. Setting the stage, consider the optimization problem
Here denotes the Clarke subdifferential . Informally, the set is the convex hull of limits of gradients at nearby differentiable points. In classical circumstances, the subdifferential reduces to more familiar objects. Namely, when is -smooth at , the subdifferential consists only of the gradient , while for convex functions, it reduces to the subdifferential in the sense of convex analysis. The positive sequence is user specified, and it controls the step-sizes of the algorithm. As is typical for stochastic subgradient methods, we will assume that this sequence is square summable but not summable, meaning and . Finally, the stochasticity is modeled by the random (noise) sequence . We make the standard assumption that conditioned on the past, each random variable has mean zero and its second moment grows at a controlled rate.
Though variants of the stochastic subgradient method (1.1) date back to Robbins-Monro’s pioneering 1951 work , their convergence behavior is still largely not understood in nonsmooth and nonconvex settings. In particular, the following question remains open.
Does the (stochastic) subgradient method have any convergence guarantees on locally Lipschitz functions, which may be neither smooth nor convex?
That this question remains unanswered is somewhat concerning as the stochastic subgradient method forms a core numerical subroutine for several widely used solvers, including Google’s TensorFlow and the open source PyTorch library.
Though widely applicable, these previous results on the convergence of the stochastic subgradient method do not apply to even relatively simple non-pathological functions, such as and . It is not only toy examples, however, that lack convergence guarantees, but the entire class of deep neural networks with nonsmooth activation functions (e.g., ReLU). Since such networks are routinely trained in practice, it is worthwhile to understand if indeed the iterates tend to a meaningful limit.
In this paper, we provide a positive answer to this question for a wide class of locally Lipschitz functions; indeed, the function class we consider is virtually exhaustive in data scientific contexts (see Corollary 5.11 for consequences in deep learning). Aside from mild technical conditions, the only meaningful assumption we make is that strictly decreases along any trajectory of the differential inclusion emanating from a noncritical point. Under this assumption, a standard Lyapunov-type argument shows that every limit point of the stochastic subgradient method is critical for , almost surely. Techniques of this type can be found for example in the monograph of Kushner-Yin [22, Theorem 5.2.1] and the landmark papers of Benaïm-Hofbauer-Sorin . Here, we provide a self-contained treatment, which facilitates direct extensions to “proximal” variants of the stochastic subgradient method.Concurrent to this work, the independent preprint also provides convergence guarantees for the stochastic projected subgradient method, under the assumption that the objective function is “subdifferentially regular” and the constraint set is convex. Subdifferential regularity rules out functions with downward kinks and cusps, such as deep networks with the Relu() activation functions. Besides subsuming the subdifferentially regular case, the results of the current paper apply to the broad class of Whitney stratifiable functions, which includes all popular deep network architectures. In particular, our analysis follows closely the recent work of Duchi-Ruan [17, Section 3.4.1] on convex composite minimization.
An elementary linear algebraic argument then shows that if satisfies a.e., then automatically is the minimal norm element of . Therefore, integrating (1.2) yields the desired descent guarantee
Evidently, exactly the same argument yields the chain rule (1.2) for subdifferentially regular functions. These are the functions such that each subgradient defines a linear lower-estimator of up to first-order; see for example [10, Section 2.4] or [31, Definition 7.25]. Nonetheless, subdifferentially regular functions preclude “downwards cusps”, and therefore still do not capture such simple examples as . It is worthwhile to mention that one can not expect (1.3) to always hold. Indeed, there are pathological locally Lipschitz functions that do not satisfy (1.3); one example is the univariate 1-Lipschitz function whose Clarke subdifferential is the unit interval at every point .
In this work, we isolate a different structural property on the function , which guarantees the validity of (1.2) and therefore of the descent condition (1.3). We will assume that the graph of the function admits a partition into finitely many smooth manifolds, which fit together in a regular pattern. Formally, we require the graph of to admit a so-called Whitney stratification, and we will call such functions Whitney stratifiable. Whitney stratifications have already figured prominently in optimization, beginning with the seminal work . An important subclass of Whitney stratifiable functions consists of semi-algebraic functions – meaning those whose graphs can be written as a finite union of sets each defined by finitely many polynomial inequalities. Semialgebraicity is preserved under all the typical functional operations in optimization (e.g. sums, compositions, inf-projections) and therefore semi-algebraic functions are usually easy to recognize. More generally still, “semianalytic” functions and those that are “definable in an o-minimal structure” are Whitney stratifiable . The latter function class, in particular, shares all the robustness and analytic properties of semi-algebraic functions, while encompassing many more examples. Case in point, Wilkie famously showed that there is an o-minimal structure that contains both the exponential and all semi-algebraic functions.The term “tame” used in the title has a technical meaning. Tame sets are those whose intersection with any ball is definable in some o-minimal structure. The manuscript provides a nice exposition on the role of tame sets and functions in optimization.
The key observation for us, which originates in [16, Section 5.1], is that any locally Lipschitz Whitney stratifiable function necessarily satisfies the chain rule (1.2) along any absolutely continuous curve. Consequently, the descent guarantee (1.3) holds along any subgradient trajectory, and our convergence guarantees for the stochastic subgradient method become applicable. Since the composition of two definable functions is definable, it follows immediately from Wilkie’s o-minimal structure that nonsmooth deep neural networks built from definable pieces—such as quadratics , hinge losses , and log-exp functions—are themselves definable. Hence, the results of this paper endow stochastic subgradient methods, applied to definable deep networks, with rigorous convergence guarantees.
Validity of the chain rule (1.2) for Whitney stratifiable functions is not new. It was already proved in [16, Section 5.1] for semi-algebraic functions, though identical arguments hold more broadly for Whitney stratifiable functions. These results, however, are somewhat hidden in the paper , which is possibly why they have thus far been underutilized. In this manuscript, we provide a self-contained review of the material from [16, Section 5.1], highlighting only the most essential ingredients and streamlining some of the arguments.
Though the discussion above is for unconstrained problems, the techniques we develop apply much more broadly to constrained problems of the form
Here and are locally-Lipschitz continuous functions and is an arbitrary closed set. The popular proximal stochastic subgradient method simply iterates the steps
Combining our techniques with those in quickly yields subsequential convergence guarantees for this algorithm. Note that we impose no convexity assumptions on , , or .
The outline of this paper is as follows. In Section 2, we fix the notation for the rest of the manuscript. Section 3 provides a self-contained treatment of asymptotic consistency for discrete approximations of differential inclusions. In Section 4, we specialize the results of the previous section to the stochastic subgradient method. Finally, in Section 5, we verify the sufficient conditions for subsequential convergence for a broad class of locally Lipschitz functions, including those that are subdifferentially regular and Whitney stratifiable. In particular, we specialize our results to deep learning settings in Corollary 5.11. In the final Section 6, we extend the results of the previous sections to the proximal setting.
Preliminaries
2 Set-valued maps and the Clarke subdifferential
Differential inclusions and discrete approximations
In this section, we discuss the asymptotic behavior of discrete approximations of differential inclusions. All the elements of the analysis we present, in varying generality, can be found in the works of Benaïm-Hofbauer-Sorin , Borkar , and Duchi-Ruan . Out of these, we most closely follow the work of Duchi-Ruan .
Notice that the image of any arc is automatically contained in , since arcs are continuous and is closed. In this work, we will primarily focus on iterative algorithms that aim to asymptotically track a trajectory of the differential inclusion (3.1) using a noisy discretization with vanishing step-sizes. Though our discussion allows for an arbitrary set-valued map , the reader should keep in mind that the most important example for us will be , where is a locally Lipschitz function.
Throughout, we will consider the following iteration sequence:
Here is a sequence of step-sizes, should be thought of as an approximate evaluation of at some point near , and is a sequence of “errors”.
Our immediate goal is to isolate reasonable conditions, under which the sequence asymptotically tracks a trajectory of the differential inclusion (3.1). Following the work of Duchi-Ruan on stochastic approximation, we stipulate the following assumptions.
All limit points of lie in .
The iterates are bounded, i.e., and .
The sequence is nonnegative, square summable, but not summable:
The weighted noise sequence is convergent: for some as .
Some comments are in order. Conditions 1, 2, and 3 are in some sense minimal, though the boundedness condition must be checked for each particular algorithm. Condition 4 guarantees that the noise sequence does not grow too quickly relative to the rate at which decrease. The key Condition 5 summarizes the way in which the values are approximate evaluations of , up to convexification.
To formalize the idea of asymptotic approximation, let us define the time points and , for . Let now be the linear interpolation of the discrete path:
For each , define the time-shifted curve .
2 Subsequential convergence to equilibrium points
A primary application of the discrete process (3.2) is to solve the inclusion
Indeed, one can consider the points satisfying (3.4) as equilibrium (constant) trajectories of the differential inclusion (3.1). Ideally, one would like to find conditions guaranteeing that every limit point of the sequence , produced by the recursion (3.2), satisfies the desired inclusion (3.4). Making such a leap rigorous typically relies on combining the asymptotic convergence guarantee of Theorem 3.1 with existence of a Lyapunov-like function for the continuous dynamics; see e.g. . Let us therefore introduce the following assumption.
As we have alluded to above, the following theorem shows that under Assumptions A and B, every limit point of indeed satisfies the inclusion . We were unable to find this result stated and proved in this generality. Therefore, we record a complete proof in Section 3.3. The idea of the proof is of course not new, and can already be seen for example in . Upon first reading, the reader can safely skip to Section 4.
Suppose that Assumptions A and B hold. Then every limit point of lies in and the function values converge.
3 Proof of Theorem 3.2
In this section, we will prove Theorem 3.2. The argument we present is rooted in the “non-escape argument” for ODEs, using as a Lyapunov function for the continuous dynamics. In particular, the proof we present is in the same spirit as that in [22, Theorem 5.2.1] and [17, Section 3.4.1].
Henceforth, we will suppose that Assumptions A and B hold. We first collect two elementary lemmas.
The equality holds.
From the recurrence (3.2), we have Assumption A guarantees and are bounded, and therefore . Moreover, since the sequence is convergent, we deduce . The result follows. ∎
Clearly, the inequalities and hold in (3.5), respectively. We will argue that the reverse inequalities are valid. To this end, let be an arbitrary sequence with converging to some point as .
Lemma 3.3 implies that the right-hand-side tends to zero, and hence . Continuity of then directly yields the guarantee .
In particular, we may take to be a sequence realizing . Since the curve is bounded, we may suppose that up to taking a subsequence, converges to some point . We therefore deduce
thereby establishing the first equality in (3.5). The second equality follows analogously. ∎
The proof of Theorem 3.3 will follow quickly from the following proposition.
The values have a limit as .
Choose any satisfying . Note that by Assumption B, we can let be as small as we wish. By the first equality in (3.5), there are infinitely many indices such that . The following elementary observation shows that for all large , if lies in then the next iterate lies in .
, and
Then let be the next smallest index satisfying the same property, and so on. See Figure 1 for an illustration. The following claim will be key.
This process must terminate, that is exits only finitely many times.
Before proving the claim, let us see how it immediately yields the validity of the theorem. To this end, observe that Claims 1 and 2 immediately imply for all large . Since can be made arbitrarily small, we deduce . Equation (3.5) then directly implies , as claimed.
By construction, we have and . We therefore deduce
Recall as . Lemma 3.3 in turn implies and therefore as well. Continuity of then guarantees that the right-hand-side of (3.6) tends to , and hence . In particular, is not an equilibrium point of . Hence, Assumption B yields a real such that
In particular, there exists a real satisfying
Appealing to uniform convergence on , we conclude
Hence, for all large , all the curves map into . We conclude that the exit time satisfies
We will show that the bound yields the opposite inequality , which will lead to a contradiction.
The proof of the lemma is now complete. ∎
We can now prove the main convergence theorem.
On the other hand, we successively deduce
where the last two equalities follow from Proposition 3.5 and continuity of . We have thus arrived at a contradiction, and the theorem is proved. ∎
Subgradient dynamical system
Assumptions A and B, taken together, provide a powerful framework for proving subsequential convergence of algorithms to a zero of the set-valued map . Note that the two assumptions are qualitatively different. Assumption A is a property of both the algorithm (3.2) and the map , while Assumption B is a property of alone.
For the rest of our discussion, we apply the differential inclusion approach outlined above to optimization problems. Setting the notation, consider the optimization task
and subsequentially converge to critical points of . Discrete processes of the type (3.2) for the optimization problem (4.1) are often called stochastic approximation algorithms. Here we study two such prototypical methods: the stochastic subgradient method in this section and the stochastic proximal subgradient in Section 6. Each fits under the umbrella of Assumption A.
Setting the stage, the stochastic subgradient method simply iterates the steps:
where is a step-size sequence and is now a sequence of random variables (the “noise”) on some probability space. Let us now isolate the following standard assumptions (e.g. ) for the method and see how they immediately imply Assumption A.
The sequence is nonnegative, square summable, but not summable:
Almost surely, the stochastic subgradient iterates are bounded: .
is a martingale difference sequence w.r.t the increasing -fields
Assumption C guarantees that almost surely Assumption A holds.
Suppose Assumption C holds. Clearly A.1 and A.3 hold vacuously, while A.2 follows immediately from C.2 and local Lipschitz continuity of . Assumption A.5 follows quickly from the fact the outer-semicontinuous and compact-convex valued; we leave the details to the reader. Thus we must only verify A.4, which follows quickly from standard martingale arguments. Indeed, notice from Assumption C, we have
Define the martingale . Thus the limit of the predictable compensator
exists. Applying [15, Theorem 5.3.33(a)], we deduce that almost surely converges to a finite limit. ∎
Thus applying Theorem 3.1, we deduce that under Assumption C, almost surely, the stochastic subgradient path tracks a trajectory of the differential inclusion (4.2). As we saw in Section 3, proving subsequential convergence to critical points requires existence of a Lyapunov-type function for the continuous dynamics. Henceforth, let us assume that the Lyapunov function is itself. Section 5 is devoted entirely to justifying this assumption for two broad classes of functions that are virtually exhaustive in data scientific contexts.
Thus applying Theorem 3.2, we have arrived at the following guarantee for the stochastic subgradient method.
Suppose that Assumptions C and D hold. Then almost surely, every limit point of stochastic subgradient iterates is critical for and the function values converge.
Verifying the descent condition
In light of Theorems 3.2 and 4.2, it is important to isolate a class of functions that automatically satisfy Assumption D.2. In this section, we do exactly that, focusing on two problem classes: (1) subdifferentially regular functions and (2) those functions whose graphs are Whitney stratifiable. We will see that the latter problem class also satisfies D.1.
The material in this section is not new. In particular, the results of this section have appeared in [16, Section 5.1]. These results, however, are somewhat hidden in the paper and are difficult to parse. Moreover, at the time of writing [16, Section 5.1], there was no clear application of the techniques, in contrast to our current paper. Since we do not expect the readers to be experts in variational analysis and semialgebraic geometry, we provide here a self-contained treatment, highlighting only the most essential ingredients and streamlining some of the arguments.
Let us begin with the following definition, whose importance for verifying Property 2 in Assumption D will become clear shortly.
The importance of the chain rule becomes immediately clear with the following lemma.
Then equality holds for a.e. , and therefore
In particular, property 2 of Assumption D holds.
Fix a real satisfying . Observe then the equality
To simplify the notation, set , , and . Appealing to (5.2), we conclude , and therefore trivially we have
Basic linear algebra implies . Noting , we deduce as claimed. Since the reverse inequality trivially holds, we obtain the claimed equality, .
Since admits a chain rule, we conclude for a.e. the estimate
Since is locally Lipschitz, the composition is absolutely continuous. Hence integrating over the interval yields (5.1).
Suppose now that the point is noncritical. Then by outer semi-continuity of , the exists such that is noncritical for any . It follows immediately that the value is strictly increasing in , and therefore by (5.1) that is strictly decreasing. Hence item 2 of Assumption D holds, as claimed. ∎
Thus property 2 of Assumption D is sure to hold as long as admits a chain rule. In the following two sections, we identify two different function classes that indeed admit the chain rule.
The first function class we consider consists of subdifferentially regular functions. Such functions play a prominent role in variational analysis due to their close connection with convex functions; we refer the reader to the monograph for details. In essence, subdifferential regularity forbids downward facing cusps in the graph of the function; e.g. is not subdifferentially regular. We now present the formal definition.
The following lemma shows that any locally Lipschitz function that is subdifferentially regular indeed admits a chain rule.
Any locally Lipschitz function that is subdifferentially regular admits a chain rule and therefore item 2 of Assumption D holds.
Instead, equating with the left limit of the difference quotient yields the reverse inequality . Thus admits a chain rule and item 2 of Assumption D holds by Lemma 5.2. ∎
Thus we have arrived at the following corollary. For ease of reference, we state subsequential convergence guarantees both for the general process (3.2) and for the specific stochastic subgradient method (4.3).
(Stochastic approximation) Consider the iterates produced by (3.2) and suppose that Assumption A holds with . Then every limit point of the iterates is critical for and the function values converge.
(Stochastic subgradient method) Consider the iterates produced by the stochastic subgradient method (4.3) and suppose that Assumption C holds. Then almost surely, every limit point of the iterates is critical for and the function values converge.
Though subdifferentially regular functions are widespread in applications, they preclude “downwards cusps”, and therefore do not capture such simple examples as and . The following section concerns a different function class that does capture these two nonpathological examples.
2 Stratifiable functions
As we saw in the previous section, subdifferential regularity is a local property that implies the desired item 2 of Assumption D. In this section, we instead focus on a broad class of functions satisfying a global geometric property, which eliminates pathological examples from consideration.
Frontier condition: For any two strata and , the implication
Whitney condition (a): For any sequence of points in a stratum converging to a point in a stratum , if the corresponding normal vectors converge to a vector , then the inclusion holds.
The following theorem, which first appeared in [4, Corollary 5], shows that Whitney stratifiable functions automatically satisfy the weak Sard property of Assumption D. We present a quick argument here for completeness. It is worthwhile to mention that such a Sard type result holds more generally for any stratifiable set-valued map; see the original work or the monograph [21, Section 8.4].
Next, we prove the chain rule for any Whitney stratifiable function.
To see this, fix a manifold and let be the set of all such that , the derivative exists, and we have . If we argue that has zero measure, then so does the union and the claim is proved. Fix an arbitrary . There exists a closed interval around such that restricted to intersects only at , since otherwise we would deduce that lies in by definition of the tangent space. We may further shrink such that its endpoints are rational. It follows that may be covered by disjoint closed intervals with rational endpoints. Hence is countable and therefore zero measure, as claimed.
Notice as Thus
where the last equality follows from (5.4). ∎
Putting together Theorems 3.2, 4.2, 5.8 and Lemma 5.7, we arrive at the main result of our paper. Again for ease of reference, we state subsequential convergence guarantees both for the general process (3.2) and for the specific stochastic subgradient method (4.3).
(Stochastic approximation) Consider the iterates produced by (3.2) and suppose that Assumption A holds with . Then every limit point of the iterates is critical for and the function values converge.
(Stochastic subgradient method) Consider the iterates produced by the stochastic subgradient method (4.3) and suppose that Assumption C holds. Then almost surely, every limit point of the iterates is critical for and the function values converge.
Verifying Whitney stratifiability is often an easy task. Indeed, there are a number of well-known and easy to recognize function classes, whose members are automatically Whitney stratifiable. We now briefly review such classes, beginning with the semianalytic setting.
A closed set is called semianalytic if it can be written as a finite union of sets, each having the form
For example, every semialgebraic set is semianalytic, but in contrast to the semianalytic case, semi-algebraic sets are stable with respect to all boolean operations and projections onto subspaces. The latter property is a direct consequence of the celebrated Tarski-Seidenberg Theorem. Moreover, semialgebraic sets are typically easy to recognize using quantifier elimination; see [12, Chapter 2] for a detailed discussion. Importantly, compositions of semialgebraic functions are semialgebraic.
A far reaching axiomatic extension of semialgebraic sets, whose members are also Whitney stratifiable, is built from “o-minimal structures”. Loosely speaking, sets that are definable in an o-minimal structure share the same robustness properties and attractive analytic features as semialgebraic sets. For the sake of completeness, let us give a formal definition, following Coste and van den Dries-Miller.
the elements of are exactly the finite unions of intervals (possibly infinite) and points.
As in the semialgebraic setting, any function definable in an o-minimal structure admits a Whitney stratification, for any (see e.g. ). Beyond semialgebraicity, Wilkie showed that that there is an o-minimal structure that simultaneously contains both the graph of the exponential function and all semi-algebraic sets .
Since the composition of two definable functions is definable, we conclude that nonsmooth deep neural networks built from definable pieces—such as ReLU, quadratics , hinge losses , and SoftPlus functions—are themselves definable. Hence, the results of this paper endow stochastic subgradient methods, applied to definable deep networks, with rigorous convergence guarantees. Due to the importance of subgradient methods in deep learning, we make this observation precise in the following corollary which provides a rigorous convergence guarantee for a wide class of deep learning loss functions that are recursively defined, including convolutional neural networks, recurrent neural networks, and feed-forward networks.
For each given data pair with , recursively define:
are linear maps into the space of matrices.
are definable activation functions applied coordinate wise, such as those whose domain can be decomposed into finitely many intervals on which it coincides with , , , or .
Let be the iterates produced by the stochastic subgradient method on the deep neural network loss , and suppose that the standing assumption C holds.In the assumption, replace with , since we now use to denote the stochastic subgradient iterates. Then almost surely, every limit point of the iterates is critical for , meaning , and the function values converge.
Proximal extensions
In this section, we extend most of the results in Sections 4 and 5 on unconstrained problems to a “proximal” setting and comment on sufficient conditions to ensure boundedness of the iterates. The arguments follow quickly by combining the techniques developed by Duchi-Ruan with those presented in Section 5. Consequently, all the proofs are in Appendix A.
Setting the stage, consider the composite optimization problem
Thus we will be interested in an extension of the stochastic subgradient method that tracks a trajectory of the differential inclusion
and subsequentially converges to a composite critical point of (6.1). Seeking to apply the techniques of Section 3, we can simply set in the notation therein. Note that thus defined is not necessarily a subdifferential of a single function because equality in the subdifferential sum rule [31, Corollary 10.9] can fail when the summands are not subdifferentially regular.
We now aim to describe the proximal stochastic subgradient method for the problem (6.1). There are two ingredients we must introduce: a stochastic subgradient oracle for and the proximity map of , where is the indicator function of . We describe the two ingredients in turn.
Thus after sampling , the vector can serve as a stochastic estimator for a true subgradient of .
Standard deterministic proximal splitting methods utilize the proximal map of , namely:
We can now formally state the algorithm. Given an iterate , the proximal stochastic subgradient method performs the update
is closed, and are locally Lipschitz, and is bounded from below on .
The sequence is nonnegative, square summable, but not summable:
Almost surely, the iterates are bounded: .
For every convergent sequence , we have
and is not a composite critical point of (6.1), there exists a real satisfying
Let us make a few comments. Properties E.1, E.3, E.4, and E.5 are mild and completely expected in light of the results in the previous sections. Property E.6 is a technical condition ensuring that the expected maximal noise in the stochastic subgradient is bounded along any convergent sequence. Finally, property E.2 is a mild technical condition on function that we allow. In particular, it holds for any convex, globally Lipschitz, or coercive locally Lipschitz function. We record this observation in the following lemma.
Fix a point and a point satisfying . Let us look at each case and upper bound the error . Suppose first that is convex. Then for the vector of minimal norm, we have
where . If is globally Lipschitz, then clearly we have
where is identically equal to the global Lipschitz constant of . Finally, in the third case, suppose that is coercive and locally Lipschitz. We deduce
where is the Lipschitz modulus of on the compact sublevel set . Since is locally Lipschitz continuous, in all three cases, the function is bounded on bounded sets. ∎
Under the two assumptions, E and F, we obtain the following subsequential convergence guarantee. The argument in the appendix is an application of Theorem 3.2. To this end, we show that Assumption E implies Assumption A almost surely, while Assumption F is clearly equivalent to Assumption B.
Suppose that Assumptions E and F hold. Then almost surely, every limit point of the iterates produced by the proximal stochastic subgradient method (6.4) is composite critical for (6.1) and the function values converge.
Whenever is Clarke regular or Whitney stratifiable, automatically admits a chain rule. Indeed, the argument is identical to that of Lemma 5.4 and Theorem 5.8. As in the unconstrained case, Assumption F.2 is true as long as , , and admit a chain rule.
Then equality holds for a.e. , and therefore we have the estimate
In particular, property 2 of Assumption F holds.
We now arrive at the main result of the section.
Suppose that Assumption E holds and that , , and are definable in an o-minimal structure. Let be the iterates produced by the proximal stochastic subgradient method (6.4). Then almost surely, every limit point of the iterates is composite critical for the problem (6.1) and the function values converge.
1 Comments on boundedness
Thus far, all of our results have assumed that the subgradient iterates satisfy almost surely. One may enforce this assumption in several ways, most easily by assuming the constraint set is bounded. Beyond boundedness of , proper choice of regularizer may also ensure boundedness of . Indeed, this observation was already made by Duchi-Ruan [17, Lemma 3.15]. Following their work, let us isolate the following assumption.
is convex and -coercive, meaning
There exists such that for with sufficiently large norm.
A natural regularizer satisfying this assumption is for any . The following theorem, whose proof is identical to that of [17, Lemma 3.15], shows that with Assumption G in place, the stochastic proximal subgradient methods produces bounded iterates.
We note that in the special (deterministic) case that for all , the assumption on reduces to , which stipulates that grows more quickly than .
Appendix A Proofs for the proximal extension
Let us now formally define the normal cone constructions of variational analysis. For any point , the proximal normal cone to at is the set
In this subsection, we record a few auxiliary lemmas to be used in the sequel.
where we set .
Let be the function from property E.2. From the definition of the proximal map, we deduce
Dividing both sides by yields the result. ∎
Notice that because is bounded, it follows that is bounded. Now consider the random variable . Due to the estimate
standard results in measure theory (e.g., [33, Exercise 1.5.5]) imply that almost surely. ∎
Almost surely, we have as .
Therefore, the following infinite sum is a.s. finite:
A.2 Proof Theorem 6.2
For each index , define the set-valued map
Note that is a deterministic map, with only signifying the dependence on the deterministic sequence . Define now the noise sequence
Let us now write the proximal stochastic subgradient method in the form (3.2).
Notice that for every index , we have
The following lemma shows that A.4 holds almost surely.
The limit exists almost surely.
We first prove that is an martingale difference sequence, meaning that for all , we have
Notice that because is bounded a.s., it follows that and are bounded a.s. Therefore, because
Now, define the martingale . Thus, the limit of the predictable compensator
exists. Applying [15, Theorem 5.3.33(a)], we deduce that almost surely converges to a finite limit, which completes the proof of the claim. ∎
Almost surely, the sequence is bounded.
Because the sequence is almost surely bounded and is locally Lipschitz, clearly we have
almost surely. Thus, we need only show that
almost surely. To this end, by the triangle inequality and Lemma A.1, we have for any fixed the bound
Therefore, by Jensen’s inequality, we have that
which is almost surely bounded for all . Taking the supremum yields the result. ∎
It will be convenient to prove a more general statement, which is independent of the iterate sequence , and instead only depends on the maps . Namely, consider any sequence converging to a point and an arbitrary sequence . Let be an unbounded increasing sequence of indices. Observe that since is convex and using Jensen’s inequality, we have
Our goal is to prove that the right-hand-side tends to zero almost surely, which directly implies validity of A.5
Our immediate goal is to apply the dominated convergence theorem to each term in the above finite sum to conclude that each term converges to zero. To that end, we must show two properties: for every fixed , each term in the sum tends to zero, and that each term is bounded by an integrable function. We now prove both properties.
Almost surely in , we have that
Optimality conditions [31, Exercise 10.10] of the proximal subproblem imply
for some and , and where denotes the limiting normal cone. Observe that by continuity and the fact that and as a.e. (see Lemma A.2), it follows that
Indeed, setting , we have that by Lemma A.1,
which implies that .
We furthermore deduce that and are bounded almost surely. Indeed, is bounded since is locally Lipschitz and are bounded. Moreover, Lemma A.1 implies
Observe that the right hand-side is a.s. bounded by item 6 of Assumption E. Thus, since and are a.s. bounded, it follows that must also be a.s. bounded, as desired.
Appealing to outer semicontinuity of and (e.g. [31, Propostion 6.6]), the inclusion , and the boundedness of and , it follows that
as . Consequently, almost surely we have that
Let and . Then for all , the functions
are uniformly dominated by an integrable function in .
For each , Lemma A.1 implies the bound
which is integrable by Item 6 of Assumption E. ∎
Applying the dominated convergence theorem, it follows that
as . Notice the simple fact that for any real sequence , it must be that as . Consequently
as . This completes the proof. ∎
We have now verified all parts of Theorem 3.1. Therefore, the proof is complete.
A.3 Verifying Assumption F for composite problems
for a.e. . Adding the three equations yields
Suppose now that satisfies for a.e. . Then the same linear algebraic argument as in Lemma 5.2 yields the equality for a.e. and consequently the equation (6.6).
To complete the proof, we must only show that property 2 of Assumption F holds. To this end, suppose that is not composite critical and let be arbitrary. Appealing to (6.6), clearly . Thus we must only argue . According to (6.6), if this were not the case, then we would deduce for a.e. . Appealing to the equality , we therefore conclude for a.e. . Since is absolutely continuous, it must therefore be constant , but this is a contradiction since . Thus property 2 of Assumption F holds, as claimed. ∎
Consider an arbitrary stratum intersecting (and therefore contained in ) and a point . Consider now the (unique) strata , , and containing . Let and be -smooth functions agreeing with and on a neighborhood of in and , respectively. Appealing to (5.4), we conclude
The Whitney condition in turn directly implies Hence summing yields
where the last inclusion follows from the compatibility and . Notice that agrees with on a neighborhood of in . Hence if the inclusion, , holds it must be that is a critical point of the -smooth function restricted to , in the classical sense. Applying the standard Sard’s theorem to each manifold , the result follows. ∎