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 ∂f(x)\partial f(x) denotes the Clarke subdifferential . Informally, the set ∂f(x)\partial f(x) is the convex hull of limits of gradients at nearby differentiable points. In classical circumstances, the subdifferential reduces to more familiar objects. Namely, when ff is C1C^{1}-smooth at xx, the subdifferential ∂f(x)\partial f(x) consists only of the gradient ∇f(x)\nabla f(x), while for convex functions, it reduces to the subdifferential in the sense of convex analysis. The positive sequence {αk}k≥0\{\alpha_{k}\}_{k\geq 0} 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 ∑kαk=∞\sum_{k}\alpha_{k}=\infty and ∑kαk2<∞\sum_{k}\alpha_{k}^{2}<\infty. Finally, the stochasticity is modeled by the random (noise) sequence {ξk}k≥1\{\xi_{k}\}_{k\geq 1}. We make the standard assumption that conditioned on the past, each random variable ξk\xi_{k} 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 f(x,y)=(∣x∣−∣y∣)2f(x,y)=(|x|-|y|)^{2} and f(x)=(1−max⁡{x,0})2f(x)=(1-\max\{x,0\})^{2}. 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 xkx_{k} 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 ff strictly decreases along any trajectory x(⋅)x(\cdot) of the differential inclusion x˙(t)∈−∂f(x(t))\dot{x}(t)\in-\partial f(x(t)) 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 ff, 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(⋅\cdot) 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 xx satisfies x˙(t)∈−∂f(x(t))\dot{x}(t)\in-\partial f(x(t)) a.e., then automatically −x˙(t)-\dot{x}(t) is the minimal norm element of ∂f(x(t))\partial f(x(t)). 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 ff such that each subgradient v∈∂f(x)v\in\partial f(x) defines a linear lower-estimator of ff 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 f(x)=(1−max⁡{x,0})2f(x)=(1-\max\{x,0\})^{2}. It is worthwhile to mention that one can not expect (1.3) to always hold. Indeed, there are pathological locally Lipschitz functions ff 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 ff, which guarantees the validity of (1.2) and therefore of the descent condition (1.3). We will assume that the graph of the function ff admits a partition into finitely many smooth manifolds, which fit together in a regular pattern. Formally, we require the graph of ff 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 x↦exx\mapsto e^{x} 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 t2t^{2}, hinge losses max⁡{0,t}\max\{0,t\}, and log-exp log⁡(1+et)\log(1+e^{t}) 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 ff and gg are locally-Lipschitz continuous functions and X\mathcal{X} 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 ff, gg, or X\mathcal{X}.

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 xx is automatically contained in X\mathcal{X}, since arcs are continuous and X\mathcal{X} 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 GG, the reader should keep in mind that the most important example for us will be G=−∂fG=-\partial f, where ff is a locally Lipschitz function.

Throughout, we will consider the following iteration sequence:

Here αk>0\alpha_{k}>0 is a sequence of step-sizes, yky_{k} should be thought of as an approximate evaluation of GG at some point near xkx_{k}, and ξk\xi_{k} is a sequence of “errors”.

Our immediate goal is to isolate reasonable conditions, under which the sequence {xk}\{x_{k}\} 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 {xk}\{x_{k}\} lie in X\mathcal{X}.

The iterates are bounded, i.e., sup⁡k≥1∥xk∥<∞\sup_{k\geq 1}\|x_{k}\|<\infty and sup⁡k≥1∥yk∥<∞\sup_{k\geq 1}\|y_{k}\|<\infty.

The sequence {αk}\{\alpha_{k}\} is nonnegative, square summable, but not summable:

The weighted noise sequence is convergent: ∑k=1nαkξk→v\sum_{k=1}^{n}\alpha_{k}\xi_{k}\rightarrow v for some vv as k→∞k\rightarrow\infty.

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 ξk\xi_{k} does not grow too quickly relative to the rate at which αk\alpha_{k} decrease. The key Condition 5 summarizes the way in which the values yky_{k} are approximate evaluations of GG, up to convexification.

To formalize the idea of asymptotic approximation, let us define the time points t0=0t_{0}=0 and tm=∑k=1m−1αkt_{m}=\sum_{k=1}^{m-1}\alpha_{k}, for m≥1m\geq 1. Let x(⋅)x(\cdot) now be the linear interpolation of the discrete path:

For each τ≥0\tau\geq 0, define the time-shifted curve xτ(⋅)=x(τ+⋅)x^{\tau}(\cdot)=x(\tau+\cdot).

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 xˉ\bar{x} of the sequence {xk}\{x_{k}\}, 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 φ(⋅)\varphi(\cdot) 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 xˉ\bar{x} of {xk}\{x_{k}\} indeed satisfies the inclusion 0∈G(xˉ)0\in G(\bar{x}). 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 {xk}k≥1\{x_{k}\}_{k\geq 1} lies in G−1(0)G^{-1}(0) and the function values {φ(xk)}k≥1\{\varphi(x_{k})\}_{k\geq 1} 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 φ\varphi 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 lim⁡k→∞∥xk+1−xk∥=0\lim_{k\to\infty}\|x_{k+1}-x_{k}\|=0 holds.

From the recurrence (3.2), we have ∥xk+1−xk∥≤αk∥yk∥+αk∥ξk∥.\|x_{k+1}-x_{k}\|\leq\alpha_{k}\|y_{k}\|+\alpha_{k}\|\xi_{k}\|. Assumption A guarantees αk→0\alpha_{k}\to 0 and {yk}\{y_{k}\} are bounded, and therefore αk∥yk∥→0\alpha_{k}\|y_{k}\|\to 0. Moreover, since the sequence ∑k=1nαkξk\sum_{k=1}^{n}\alpha_{k}\xi_{k} is convergent, we deduce αk∥ξk∥→0\alpha_{k}\|\xi_{k}\|\to 0. The result follows. ∎

Clearly, the inequalities ≤\leq and ≥\geq hold in (3.5), respectively. We will argue that the reverse inequalities are valid. To this end, let τi→∞\tau_{i}\to\infty be an arbitrary sequence with x(τi)x(\tau_{i}) converging to some point x∗x^{*} as i→∞i\to\infty.

Lemma 3.3 implies that the right-hand-side tends to zero, and hence xki→x∗x_{k_{i}}\to x^{*}. Continuity of φ\varphi then directly yields the guarantee φ(xki)→φ(x∗)\varphi(x_{k_{i}})\rightarrow\varphi(x^{*}).

In particular, we may take τi→∞\tau_{i}\to\infty to be a sequence realizing liminf⁡t→∞φ(x(t))\operatornamewithlimits{liminf}_{t\to\infty}\varphi(x(t)). Since the curve x(⋅)x(\cdot) is bounded, we may suppose that up to taking a subsequence, x(τi)x(\tau_{i}) converges to some point x∗x^{*}. 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 φ(x(t))\varphi(x(t)) have a limit as t→∞t\to\infty.

Choose any ϵ>0\epsilon>0 satisfying ϵ∉φ(G−1(0))\epsilon\notin\varphi(G^{-1}(0)). Note that by Assumption B, we can let ϵ>0\epsilon>0 be as small as we wish. By the first equality in (3.5), there are infinitely many indices kk such that φ(xk)<ϵ\varphi(x_{k})<\epsilon. The following elementary observation shows that for all large kk, if xkx_{k} lies in Lϵ\mathcal{L}_{\epsilon} then the next iterate xk+1x_{k+1} lies in L2ϵ\mathcal{L}_{2\epsilon}.

xi1+1∈L2ϵ∖Lϵx_{i_{1}+1}\in\mathcal{L}_{2\epsilon}\setminus\mathcal{L}_{\epsilon}, and

Then let i2>i1i_{2}>i_{1} 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 {xk}\{x_{k}\} exits L2ϵ\mathcal{L}_{2\epsilon} 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 xk∈L2ϵx_{k}\in\mathcal{L}_{2\epsilon} for all large kk. Since ϵ>0\epsilon>0 can be made arbitrarily small, we deduce lim⁡k→∞φ(xk)=0\lim_{k\to\infty}\varphi(x_{k})=0. Equation (3.5) then directly implies lim⁡t→∞φ(x(t))=0\lim_{t\to\infty}\varphi(x(t))=0, as claimed.

By construction, we have φ(xij)≤ϵ\varphi(x_{i_{j}})\leq\epsilon and φ(xij+1)>ϵ\varphi(x_{i_{j}+1})>\epsilon. We therefore deduce

Recall xij→z(0)x_{i_{j}}\to z(0) as j→∞j\to\infty. Lemma 3.3 in turn implies ∥xij−xij+1∥→0\|x_{i_{j}}-x_{i_{j}+1}\|\to 0 and therefore xij+1→z(0)x_{i_{j}+1}\to z(0) as well. Continuity of φ\varphi then guarantees that the right-hand-side of (3.6) tends to ϵ\epsilon, and hence φ(z(0))=lim⁡j→∞φ(xij)=ϵ\varphi(z(0))=\lim_{j\to\infty}\varphi(x_{i_{j}})=\epsilon. In particular, z(0)z(0) is not an equilibrium point of GG. Hence, Assumption B yields a real T>0T>0 such that

In particular, there exists a real δ>0\delta>0 satisfying φ(z(T))≤ϵ−2δ.\varphi(z(T))\leq\epsilon-2\delta.

Appealing to uniform convergence on [0,T][0,T], we conclude

Hence, for all large jj, all the curves xτjx^{\tau_{j}} map [0,T][0,T] into L2ϵ\mathcal{L}_{2\epsilon}. We conclude that the exit time satisfies

We will show that the bound φ(z(T))≤ϵ−2δ\varphi(z(T))\leq\epsilon-2\delta yields the opposite inequality tej≤τj+Tt_{e_{j}}\leq\tau_{j}+T, 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 φ\varphi. 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 GG. Note that the two assumptions are qualitatively different. Assumption A is a property of both the algorithm (3.2) and the map GG, while Assumption B is a property of GG 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 ff. 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 {αk}k≥1\{\alpha_{k}\}_{k\geq 1} is a step-size sequence and {ξk}k≥1\{\xi_{k}\}_{k\geq 1} 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 {αk}\{\alpha_{k}\} is nonnegative, square summable, but not summable:

Almost surely, the stochastic subgradient iterates are bounded: sup⁡k≥1∥xk∥<∞\sup_{k\geq 1}\|x_{k}\|<\infty.

{ξk}\{\xi_{k}\} is a martingale difference sequence w.r.t the increasing σ\sigma-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 ff. Assumption A.5 follows quickly from the fact the ∂f\partial f 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 L2L^{2} martingale Xk=∑i=1kαiξiX_{k}=\sum_{i=1}^{k}\alpha_{i}\xi_{i}. Thus the limit ⟨X⟩∞\langle X\rangle_{\infty} of the predictable compensator

exists. Applying [15, Theorem 5.3.33(a)], we deduce that almost surely XkX_{k} 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 φ\varphi for the continuous dynamics. Henceforth, let us assume that the Lyapunov function φ\varphi is ff 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 {xk}k≥1\{x_{k}\}_{k\geq 1} is critical for ff and the function values {f(xk)}k≥1\{f(x_{k})\}_{k\geq 1} 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 ∥z˙(t)∥=dist(0,∂f(z(t)))\|\dot{z}(t)\|={\rm dist}(0,\partial f(z(t))) holds for a.e. t≥0t\geq 0, and therefore

In particular, property 2 of Assumption D holds.

Fix a real t≥0t\geq 0 satisfying (f∘z)′(t)=⟨∂f(z(t)),z˙(t)⟩(f\circ z)^{\prime}(t)=\langle\partial f(z(t)),\dot{z}(t)\rangle . Observe then the equality

To simplify the notation, set S:=∂f(z(t))S:=\partial f(z(t)), W:=span(S−S)W:=\text{span}(S-S), and y:=−z˙(t)y:=-\dot{z}(t). Appealing to (5.2), we conclude y∈W⊥y\in W^{\perp}, and therefore trivially we have

Basic linear algebra implies ∥y∥=dist(0;y+W)\|y\|={\rm dist}(0;y+W). Noting ∂f(z(t))⊂y+W\partial f(z(t))\subset y+W, we deduce ∥z˙(t)∥≤dist(0;∂f(z(t)))\|\dot{z}(t)\|\leq{\rm dist}(0;\partial f(z(t))) as claimed. Since the reverse inequality trivially holds, we obtain the claimed equality, ∥z˙(t)∥=dist(0;∂f(z(t)))\|\dot{z}(t)\|={\rm dist}(0;\partial f(z(t))).

Since ff admits a chain rule, we conclude for a.e. τ≥0\tau\geq 0 the estimate

Since ff is locally Lipschitz, the composition f∘zf\circ z is absolutely continuous. Hence integrating over the interval [0,t][0,t] yields (5.1).

Suppose now that the point z(0)z(0) is noncritical. Then by outer semi-continuity of ∂f\partial f, the exists T>0T>0 such that z(τ)z(\tau) is noncritical for any τ∈[0,T]\tau\in[0,T]. It follows immediately that the value ∫0tdist2(0;∂f(z(τ))) dτ\int_{0}^{t}{\rm dist}^{2}\left(0;\partial f(z(\tau))\right)\,d\tau is strictly increasing in t∈[0,T]t\in[0,T], and therefore by (5.1) that f∘zf\circ z 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 ff 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. f(x)=−∣x∣f(x)=-|x| 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 (f∘x)′(t)(f\circ x)^{\prime}(t) with the left limit of the difference quotient yields the reverse inequality (f∘x)′(t)≤⟨v,x˙(t)⟩(f\circ x)^{\prime}(t)\leq\langle v,\dot{x}(t)\rangle. Thus ff 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 {xk}k≥1\{x_{k}\}_{k\geq 1} produced by (3.2) and suppose that Assumption A holds with G=−∂fG=-\partial f. Then every limit point of the iterates {xk}k≥1\{x_{k}\}_{k\geq 1} is critical for ff and the function values {f(xk)}k≥1\{f(x_{k})\}_{k\geq 1} converge.

(Stochastic subgradient method) Consider the iterates {xk}k≥1\{x_{k}\}_{k\geq 1} produced by the stochastic subgradient method (4.3) and suppose that Assumption C holds. Then almost surely, every limit point of the iterates {xk}k≥1\{x_{k}\}_{k\geq 1} is critical for ff and the function values {f(xk)}k≥1\{f(x_{k})\}_{k\geq 1} converge.

Though subdifferentially regular functions are widespread in applications, they preclude “downwards cusps”, and therefore do not capture such simple examples as f(x,y)=(∣x∣−∣y∣)2f(x,y)=(|x|-|y|)^{2} and f(x)=(1−max⁡{x,0})2f(x)=(1-\max\{x,0\})^{2}. 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 LL and MM, the implication

Whitney condition (a): For any sequence of points zkz_{k} in a stratum MM converging to a point zˉ\bar{z} in a stratum LL, if the corresponding normal vectors vk∈NM(zk)v_{k}\in N_{M}(z_{k}) converge to a vector vv, then the inclusion v∈NL(zˉ)v\in N_{L}(\bar{z}) 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 Mi\mathcal{M}_{i} and let Ωi\Omega_{i} be the set of all t≥0t\geq 0 such that x(t)∈Mix(t)\in\mathcal{M}_{i}, the derivative x˙(t)\dot{x}(t) exists, and we have x˙(t)∉TMi(x(t))\dot{x}(t)\notin T_{\mathcal{M}_{i}}(x(t)). If we argue that Ωi\Omega_{i} has zero measure, then so does the union ∪iΩi\cup_{i}\Omega_{i} and the claim is proved. Fix an arbitrary t∈Ωit\in\Omega_{i}. There exists a closed interval II around tt such that xx restricted to II intersects Mi\mathcal{M}_{i} only at x(t)x(t), since otherwise we would deduce that x˙(t)\dot{x}(t) lies in TMi(x(t))T_{\mathcal{M}_{i}}(x(t)) by definition of the tangent space. We may further shrink II such that its endpoints are rational. It follows that Ωi\Omega_{i} may be covered by disjoint closed intervals with rational endpoints. Hence Ωi\Omega_{i} is countable and therefore zero measure, as claimed.

Notice ∣f(x(t+r))−f(γ(r))∣r≤L∥x(t+r)−x(t)+γ(0)−γ(r)r∥→L∥x˙(t)−γ˙(0)∥=0\tfrac{|f(x(t+r))-f(\gamma(r))|}{r}\leq L\left\|\tfrac{x(t+r)-x(t)+\gamma(0)-\gamma(r)}{r}\right\|\rightarrow L\|\dot{x}(t)-\dot{\gamma}(0)\|=0 as r→0.r\rightarrow 0. 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 {xk}k≥1\{x_{k}\}_{k\geq 1} produced by (3.2) and suppose that Assumption A holds with G=−∂fG=-\partial f. Then every limit point of the iterates {xk}k≥1\{x_{k}\}_{k\geq 1} is critical for ff and the function values {f(xk)}k≥1\{f(x_{k})\}_{k\geq 1} converge.

(Stochastic subgradient method) Consider the iterates {xk}k≥1\{x_{k}\}_{k\geq 1} produced by the stochastic subgradient method (4.3) and suppose that Assumption C holds. Then almost surely, every limit point of the iterates {xk}k≥1\{x_{k}\}_{k\geq 1} is critical for ff and the function values {f(xk)}k≥1\{f(x_{k})\}_{k\geq 1} 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 QQ 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 O1\mathcal{O}_{1} 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 CpC^{p} stratification, for any p≥1p\geq 1 (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 x↦exx\mapsto e^{x} 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 t2t^{2}, hinge losses max⁡{0,t}\max\{0,t\}, and SoftPlus log⁡(1+et)\log(1+e^{t}) 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 (xj,yj)(x_{j},y_{j}) with j=1,…,nj=1,\ldots,n, recursively define:

Vi(⋅)V_{i}(\cdot) are linear maps into the space of matrices.

ρi\rho_{i} are definable activation functions applied coordinate wise, such as those whose domain can be decomposed into finitely many intervals on which it coincides with log⁡t\log t, exp⁡(t)\exp(t), max⁡(0,t)\max(0,t), or log⁡(1+et)\log(1+e^{t}).

Let {wk}k≥1\{w_{k}\}_{k\geq 1} be the iterates produced by the stochastic subgradient method on the deep neural network loss f(w):=∑j=1nf(w;xj,yj)f(w):=\sum_{j=1}^{n}f(w;x_{j},y_{j}), and suppose that the standing assumption C holds.In the assumption, replace xkx_{k} with wkw_{k}, since we now use wkw_{k} to denote the stochastic subgradient iterates. Then almost surely, every limit point w∗w^{*} of the iterates {wk}k≥1\{w_{k}\}_{k\geq 1} is critical for ff, meaning 0∈∂f(w∗)0\in\partial f(w^{*}), and the function values {f(wk)}k≥1\{f(w_{k})\}_{k\geq 1} 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 G=−∂f−∂g−NXG=-\partial f-\partial g-N_{\mathcal{X}} in the notation therein. Note that GG 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 ff and the proximity map of g+δXg+\delta_{\mathcal{X}}, where δX\delta_{\mathcal{X}} is the indicator function of X\mathcal{X}. We describe the two ingredients in turn.

Thus after sampling ω∼P\omega\sim P, the vector ζ(x,ω)\zeta(x,\omega) can serve as a stochastic estimator for a true subgradient of ff.

Standard deterministic proximal splitting methods utilize the proximal map of g+δXg+\delta_{\mathcal{X}}, namely:

We can now formally state the algorithm. Given an iterate xk∈Xx_{k}\in\mathcal{X}, the proximal stochastic subgradient method performs the update

X\mathcal{X} is closed, ff and gg are locally Lipschitz, and gg is bounded from below on X\mathcal{X}.

The sequence {αk}k≥1\{\alpha_{k}\}_{k\geq 1} is nonnegative, square summable, but not summable:

Almost surely, the iterates are bounded: sup⁡k≥1∥xk∥<∞\sup_{k\geq 1}\|x_{k}\|<\infty.

For every convergent sequence {zk}k≥1\{z_{k}\}_{k\geq 1}, we have

and z(0)z(0) is not a composite critical point of (6.1), there exists a real T>0T>0 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 gg 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 xx and a point zz satisfying g(z)≤g(x)g(z)\leq g(x). Let us look at each case and upper bound the error g(x)−g(z)g(x)-g(z). Suppose first that gg is convex. Then for the vector v∈∂g(x)v\in\partial g(x) of minimal norm, we have

where L(x):=dist(0,∂g(x))L(x):={\rm dist}(0,\partial g(x)). If ff is globally Lipschitz, then clearly we have

where L(x)L(x) is identically equal to the global Lipschitz constant of gg. Finally, in the third case, suppose that gg is coercive and locally Lipschitz. We deduce

where L(x)L(x) is the Lipschitz modulus of gg on the compact sublevel set [g≤g(x)][g\leq g(x)]. Since gg is locally Lipschitz continuous, in all three cases, the function L(⋅)L(\cdot) 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 {xk}k≥1\{x_{k}\}_{k\geq 1} produced by the proximal stochastic subgradient method (6.4) is composite critical for (6.1) and the function values {φ(xk)}k≥1\{\varphi(x_{k})\}_{k\geq 1} converge.

Whenever X\mathcal{X} is Clarke regular or Whitney stratifiable, X\mathcal{X} 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 ff, gg, and X\mathcal{X} admit a chain rule.

Then equality ∥z˙(t)∥=dist(0,G(z(t)))\|\dot{z}(t)\|={\rm dist}(0,G(z(t))) holds for a.e. t≥0t\geq 0, 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 ff, gg, and X\mathcal{X} are definable in an o-minimal structure. Let {xk}k≥1\{x_{k}\}_{k\geq 1} be the iterates produced by the proximal stochastic subgradient method (6.4). Then almost surely, every limit point of the iterates {xk}k≥1\{x_{k}\}_{k\geq 1} is composite critical for the problem (6.1) and the function values {φ(xk)}k≥1\{\varphi(x_{k})\}_{k\geq 1} converge.

1 Comments on boundedness

Thus far, all of our results have assumed that the subgradient iterates {xk}\{x_{k}\} satisfy sup⁡k≥1∥xk∥<∞\sup_{k\geq 1}\|x_{k}\|<\infty almost surely. One may enforce this assumption in several ways, most easily by assuming the constraint set X\mathcal{X} is bounded. Beyond boundedness of X\mathcal{X}, proper choice of regularizer gg may also ensure boundedness of {xk}\{x_{k}\}. Indeed, this observation was already made by Duchi-Ruan [17, Lemma 3.15]. Following their work, let us isolate the following assumption.

gg is convex and β\beta-coercive, meaning lim⁡k→∞g(x)/∥x∥β=∞.\lim_{k\rightarrow\infty}g(x)/\|x\|^{\beta}=\infty.

There exists λ∈(0,1]\lambda\in(0,1] such that g(x)≥g(λx)g(x)\geq g(\lambda x) for xx with sufficiently large norm.

A natural regularizer satisfying this assumption is ∥x∥β+ϵ\|x\|^{\beta+\epsilon} for any ϵ>0\epsilon>0. 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 ζ(x,ω)∈∂f(x)\zeta(x,\omega)\in\partial f(x) for all ω\omega, the assumption on ζ(x,ω)\zeta(x,\omega) reduces to sup⁡ζ∈∂f(x)∥ζ∥≤L(1+∥x∥ν)\sup_{\zeta\in\partial f(x)}\|\zeta\|\leq L(1+\|x\|^{\nu}), which stipulates that gg grows more quickly than ff.

Appendix A Proofs for the proximal extension

Let us now formally define the normal cone constructions of variational analysis. For any point x∈Xx\in\mathcal{X}, the proximal normal cone to X\mathcal{X} at xx is the set

In this subsection, we record a few auxiliary lemmas to be used in the sequel.

where we set x+:=Tα(x−αv)x_{+}:=T_{\alpha}(x-\alpha v).

Let L(⋅)L(\cdot) be the function from property E.2. From the definition of the proximal map, we deduce

Dividing both sides by 12∥x+−x∥\tfrac{1}{2}\|x_{+}-x\| yields the result. ∎

Notice that because {zk}k≥1\{z_{k}\}_{k\geq 1} is bounded, it follows that {p(zk)}\{p(z_{k})\} is bounded. Now consider the random variable Xk=βk2∥ζ(zk,⋅)∥2X_{k}=\beta_{k}^{2}\|\zeta(z_{k},\cdot)\|^{2}. Due to the estimate

standard results in measure theory (e.g., [33, Exercise 1.5.5]) imply that Xk→0X_{k}\rightarrow 0 almost surely. ∎

Almost surely, we have αk∥ζ(xk,ωk)∥→0\alpha_{k}\|\zeta(x_{k},\omega_{k})\|\to 0 as k→∞k\rightarrow\infty.

Therefore, the following infinite sum is a.s. finite:

A.2 Proof Theorem 6.2

For each index kk, define the set-valued map

Note that GkG_{k} is a deterministic map, with kk only signifying the dependence on the deterministic sequence αk\alpha_{k}. Define now the noise sequence

Let us now write the proximal stochastic subgradient method in the form (3.2).

Notice that for every index k≥0k\geq 0, we have

The following lemma shows that A.4 holds almost surely.

The limit lim⁡n→∞∑i=1nαiξi\displaystyle\lim_{n\rightarrow\infty}\sum_{i=1}^{n}\alpha_{i}\xi_{i} exists almost surely.

We first prove that {αkξk}\{\alpha_{k}\xi_{k}\} is an L2L_{2} martingale difference sequence, meaning that for all kk, we have

Notice that because {xk}\{x_{k}\} is bounded a.s., it follows that {L(xk)}\{L(x_{k})\} and {p(xk)}\{p(x_{k})\} are bounded a.s. Therefore, because

Now, define the L2L^{2} martingale Xk=∑i=1kαiξiX_{k}=\sum_{i=1}^{k}\alpha_{i}\xi_{i}. Thus, the limit ⟨X⟩∞\langle X\rangle_{\infty} of the predictable compensator

exists. Applying [15, Theorem 5.3.33(a)], we deduce that almost surely XkX_{k} converges to a finite limit, which completes the proof of the claim. ∎

Almost surely, the sequence {yk}\{y_{k}\} is bounded.

Because the sequence {xk}\{x_{k}\} is almost surely bounded and gg 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 ω∈Ω\omega\in\Omega the bound

Therefore, by Jensen’s inequality, we have that

which is almost surely bounded for all kk. Taking the supremum yields the result. ∎

It will be convenient to prove a more general statement, which is independent of the iterate sequence {xk}\{x_{k}\}, and instead only depends on the maps GkG_{k}. Namely, consider any sequence {zk}⊆X\{z_{k}\}\subseteq\mathcal{X} converging to a point z∈Xz\in\mathcal{X} and an arbitrary sequence wkf∈∂f(zk)w_{k}^{f}\in\partial f(z_{k}). Let {nk}\{n_{k}\} be an unbounded increasing sequence of indices. Observe that since G(z)G(z) 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 ω\omega, 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 ω∼P\omega\sim P, we have that

Optimality conditions [31, Exercise 10.10] of the proximal subproblem imply

for some wkg(ω)∈∂g(Tαnk(zk−αnkζ(zk,ω)))w^{g}_{k}(\omega)\in\partial g(T_{\alpha_{n_{k}}}(z_{k}-\alpha_{n_{k}}\zeta(z_{k},\omega))) and wkX(ω)∈NXL(Tαnk(zk−αnkζ(zk,ω)))w^{\mathcal{X}}_{k}(\omega)\in N_{\mathcal{X}}^{L}(T_{\alpha_{n_{k}}}(z_{k}-\alpha_{n_{k}}\zeta(z_{k},\omega))), and where NXLN_{\mathcal{X}}^{L} denotes the limiting normal cone. Observe that by continuity and the fact that ∑k=1∞αnk2<∞\sum_{k=1}^{\infty}\alpha_{n_{k}}^{2}<\infty and αnkζ(zk,ω)→0\alpha_{n_{k}}\zeta(z_{k},\omega)\rightarrow 0 as k→∞k\rightarrow\infty a.e. (see Lemma A.2), it follows that

Indeed, setting zk+=Tαnk(zk−αnkζ(zk,ω))z_{k}^{+}=T_{\alpha_{n_{k}}}(z_{k}-\alpha_{n_{k}}\zeta(z_{k},\omega)), we have that by Lemma A.1,

which implies that lim⁡k→∞zk+=lim⁡k→∞zk=z\lim_{k\rightarrow\infty}z_{k}^{+}=\lim_{k\rightarrow\infty}z_{k}=z.

We furthermore deduce that wkX(ω)w^{\mathcal{X}}_{k}(\omega) and wkg(ω)w_{k}^{g}(\omega) are bounded almost surely. Indeed, wkg(ω)w_{k}^{g}(\omega) is bounded since gg is locally Lipschitz and zk+z_{k}^{+} 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 wkg(ω)+wkX(ω)w_{k}^{g}(\omega)+w_{k}^{\mathcal{X}}(\omega) and wkg(ω)w_{k}^{g}(\omega) are a.s. bounded, it follows that wkX(ω)w_{k}^{\mathcal{X}}(\omega) must also be a.s. bounded, as desired.

Appealing to outer semicontinuity of ∂f,∂g,\partial f,\partial g, and NXLN^{L}_{\mathcal{X}} (e.g. [31, Propostion 6.6]), the inclusion NXL⊂NXN^{L}_{\mathcal{X}}\subset N_{\mathcal{X}}, and the boundedness of {wkf},{wkg(ω)},\{w^{f}_{k}\},\{w^{g}_{k}(\omega)\}, and {wkX(ω)}\{w^{\mathcal{X}}_{k}(\omega)\}, it follows that

as k→∞k\rightarrow\infty. Consequently, almost surely we have that

Let Lf:=sup⁡k≥1dist(0,∂f(zk))L_{f}:=\sup_{k\geq 1}{\rm dist}(0,\partial f(z_{k})) and Lg:=sup⁡k≥1L(zk)L_{g}:=\sup_{k\geq 1}L(z_{k}). Then for all k≥0k\geq 0, the functions

are uniformly dominated by an integrable function in ω\omega.

For each kk, Lemma A.1 implies the bound

which is integrable by Item 6 of Assumption E. ∎

Applying the dominated convergence theorem, it follows that

as k→∞k\rightarrow\infty. Notice the simple fact that for any real sequence bk→0b_{k}\to 0, it must be that 1n∑k=1nbk→0\frac{1}{n}\sum_{k=1}^{n}b_{k}\rightarrow 0 as n→∞n\rightarrow\infty. Consequently

as n→∞n\rightarrow\infty. 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. t≥0t\geq 0. Adding the three equations yields

Suppose now that z(⋅)z(\cdot) satisfies z˙(t)∈−G(z(t))\dot{z}(t)\in-G(z(t)) for a.e. t≥0t\geq 0. Then the same linear algebraic argument as in Lemma 5.2 yields the equality ∥z˙(t)∥=dist(0;G(z(t)))\|\dot{z}(t)\|={\rm dist}(0;G(z(t))) for a.e. t≥0t\geq 0 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 z(0)z(0) is not composite critical and let T>0T>0 be arbitrary. Appealing to (6.6), clearly sup⁡t∈[0,T]φ(z(t))≤φ(z(0))\sup_{t\in[0,T]}\varphi(z(t))\leq\varphi(z(0)). Thus we must only argue φ(z(T))<φ(z(0))\varphi(z(T))<\varphi(z(0)). According to (6.6), if this were not the case, then we would deduce dist(0;G(z(t)))=0{\rm dist}(0;G(z(t)))=0 for a.e. t∈[0,T]t\in[0,T]. Appealing to the equality ∥z˙∥=dist(0;G(z(t)))\|\dot{z}\|={\rm dist}(0;G(z(t))), we therefore conclude ∥z˙∥=0\|\dot{z}\|=0 for a.e. t∈[0,T]t\in[0,T]. Since z(⋅)z(\cdot) is absolutely continuous, it must therefore be constant z(⋅)≡z(0)z(\cdot)\equiv z(0), but this is a contradiction since 0∉G(z(0))0\notin G(z(0)). Thus property 2 of Assumption F holds, as claimed. ∎

Consider an arbitrary stratum M∈AM\in\mathcal{A} intersecting X\mathcal{X} (and therefore contained in X\mathcal{X}) and a point x∈Mx\in M. Consider now the (unique) strata Mf∈ΠAfM_{f}\in\Pi\mathcal{A}_{f}, Mg∈ΠAgM_{g}\in\Pi\mathcal{A}_{g}, and MX∈AXM_{\mathcal{X}}\in\mathcal{A}_{\mathcal{X}} containing xx. Let f^\widehat{f} and g^\widehat{g} be CdC^{d}-smooth functions agreeing with ff and gg on a neighborhood of xx in MfM_{f} and MgM_{g}, respectively. Appealing to (5.4), we conclude

The Whitney condition in turn directly implies NX(x)⊂NMX(x).N_{\mathcal{X}}(x)\subset N_{M_{\mathcal{X}}}(x). Hence summing yields

where the last inclusion follows from the compatibility M⊂MfM\subset M_{f} and M⊂MgM\subset M_{g}. Notice that f^+g^\widehat{f}+\widehat{g} agrees with f+gf+g on a neighborhood of xx in MM. Hence if the inclusion, 0∈∂f(x)+∂g(x)+NX(x)0\in\partial f(x)+\partial g(x)+N_{\mathcal{X}}(x), holds it must be that xx is a critical point of the CdC^{d}-smooth function f+gf+g restricted to MM, in the classical sense. Applying the standard Sard’s theorem to each manifold MM, the result follows. ∎

References