44.06.01 · optimization-control / 06-first-order-large-scale

Subgradient Methods for Nonsmooth Convex Optimization

shipped3 tiersLean: none

Anchor (Master): Nesterov 2018 Lectures on Convex Optimization (Springer) §3.2 (the O(1/√k) upper bound, Polyak's step, and the matching Ω(1/√k) lower bound for nonsmooth first-order methods via the resisting-oracle construction); Beck 2017 First-Order Methods in Optimization (SIAM) Ch. 8; Bertsekas 2015 Convex Optimization Algorithms (Athena) §3.2

Intuition Beginner

Suppose you are standing in a foggy valley whose floor is full of sharp creases, and you want to reach the lowest point. Where the floor is smooth you can feel the downhill direction under your feet and step that way. But right on a crease there is no single downhill direction — the slope on your left differs from the slope on your right. You still have to pick some direction and step. The honest replacement for "the downhill direction" at a crease is any one of the supporting slopes you met earlier as the subdifferential. Picking one of them is picking a subgradient, and stepping against it is the subgradient method.

Here is the catch that makes this method different from anything smooth. When you step against a subgradient, the ground where you land can be higher than where you started. A subgradient is not guaranteed to point downhill — it only certifies a supporting line. So unlike rolling a ball down a smooth bowl, your height can bob up and down as you go. This is not a bug to be fixed; it is the price of working at creases.

Because the height bobs around, you cannot judge progress by your current height. Instead you remember the lowest height you have ever recorded and treat that as your answer so far. The method works because, even though any single step might go uphill, your distance to the true bottom shrinks on average when your steps are the right size.

What size? Too-large steps and you jitter forever near the bottom without settling. Fixed-size steps settle only into a neighbourhood, never the exact point. The fix is steps that shrink toward zero — but not too fast, so their total length is still infinite and you can travel any distance you need. That single rule, "shrink the steps but let their lengths add up to infinity," is what carries the best recorded height down to the true minimum.

Visual Beginner

Picture the path of a subgradient method on a bowl with a crease running through the bottom. The iterate does not march straight in; it zig-zags across the crease, sometimes landing higher than the step before, while the record-low height ratchets steadily downward.

   height f(x_k)  (bobs up and down)        best-so-far f_best (only falls)
     |                                         |
   5 *                                       5 *
     |  *      *                               | *
   4 |     *      *    *                      4 |  *
     |        *           *   *                |   *_____
   3 |           *   *        *  *            3 |        *_______
     |   step uphill!  ^         *  * *         |               *_____ ...
   2 +----------------------------------> k    2 +----------------------> k
     current value is NOT monotone            the recorded minimum IS monotone
step size rule long-run behaviour
constant, large jitters in a wide band around the minimum, never settles
constant, small settles into a small neighbourhood, never the exact point
shrinking, lengths still sum to infinity best-so-far height converges to the true minimum

Worked example Beginner

Minimise on the real line, starting at . The lowest value is at . A subgradient of is when , when , and any value in at the crease .

We use the shrinking step , so the steps are . The update is with the sign of .

Step 0. , so and . Then . Height .

Step 1. is the crease; a valid subgradient is , and . Then . Height — note this is higher than the previous height of .

Step 2. , so and . Then . Height .

Step 3. , so and . Then . Height .

The heights recorded are . They are not decreasing — step 1 jumped from up to . But the best-so-far record is , and the iterates are squeezing toward .

What this tells us. A single subgradient step can raise the height. We therefore track the smallest height seen, and the shrinking-but-not-too-fast steps pull the iterates in toward the true minimiser. The method is slow and wobbly, but it never needs the function to be smooth.

Check your understanding Beginner

Formal definition Intermediate+

Let be convex (notation from 44.01.01) with a nonempty set of minimisers and optimal value . Fix a minimiser . By the subgradient inequality of 44.02.05, means

Definition (subgradient method). Choose and step sizes . The subgradient method generates

Because is an arbitrary element of , the direction need not be a descent direction: may exceed . The convergence object is therefore the best-so-far value

which is nonincreasing by construction.

Definition (Lipschitz / bounded-subgradient class). is -Lipschitz on a set containing the iterates if , equivalently for every at every relevant . This bounded-subgradient hypothesis is the standing assumption for the rate.

Definition (step-size rules). With :

  • Constant step size: fixed.
  • Constant step length: , so fixed.
  • Diminishing nonsummable: with ; often also square-summable, .
  • Polyak's step (optimal, known): .

Definition (projected subgradient method). For the constrained problem with closed convex and nonempty, let denote Euclidean projection onto . The projected subgradient method is

Projection onto a closed convex set is firmly nonexpansive, in particular , which is the only property of the analysis uses; the unconstrained method is the case , .

Counterexamples to common slips Intermediate+

  • "The subgradient method is a descent method." It is not. For at a valid subgradient is , and any positive step raises the value. One must monitor , never .

  • "A constant step size converges to ." It does not in general. With the best value converges only to a band, ; exact convergence needs .

  • " alone gives convergence." Square-summability controls the noise term but kills travel: if also the iterates cannot move farther than a fixed distance from , so a minimiser beyond that distance is unreachable. Nonsummability is the indispensable half.

Key theorem with proof Intermediate+

The entire convergence theory rests on one recursion relating the squared distance to a minimiser at consecutive iterates. Every step-size rule is then a corollary of how one telescopes and bounds that single inequality.

Theorem (fundamental inequality and the rate). Let be convex and -Lipschitz with minimiser , and run the projected subgradient method with . Then for every ,

Consequently, writing and ,

With the fixed-horizon choice for , this gives .

Proof. Set , so . Since and projection is nonexpansive, . Hence

The subgradient inequality at with reads , i.e. . Substituting this lower bound (it appears with a minus sign) gives .

Now telescope from to . Dropping the nonnegative final distance,

Each since is the smallest, so . Using and rearranging,

which is . For the final claim put : then and , so the right side of is .

Bridge. This single recursion is the foundational reason every step-size rule works, and it builds toward the convergence statements of the Advanced results, where diminishing nonsummable and Polyak steps are read off directly. This is exactly the nonsmooth analogue of the descent lemma behind smooth gradient methods, except that the term replaces a guaranteed decrease in by a guaranteed decrease in distance to the optimum on average — the central insight that distance, not value, is the Lyapunov quantity. The bound generalises the smooth case to arbitrary subgradients, and the resulting rate is dual to the lower bound proved later: putting these together, the subgradient method is exactly optimal for the nonsmooth black-box class, and it appears again in the proximal and accelerated methods 44.06.0244.06.03 precisely as the baseline they must beat by exploiting structure this rate ignores.

Exercises Intermediate+

Advanced results Master

The subgradient method is the iteration with , and the results below convert the fundamental inequality into the convergence of each step-size rule, then bound the method from below to show the rate is unimprovable for the nonsmooth first-order class.

Theorem 1 (step-size rules: a unified convergence table). Under and convex with minimiser , the bound specialises as follows. Constant step : , convergence to a band of half-width . Constant step length : . Diminishing nonsummable , : (Exercise 6). Square-summable nonsummable , (e.g. ): not only but the iterates themselves converge, some minimiser, because makes a quasi-Fejér sequence with summable perturbation [Beck, A. — First-Order Methods in Optimization]. Only the constant rules leave a residual band; the diminishing rules achieve exact optimality, at the cost of an asymptotically vanishing step.

Theorem 2 (Polyak's step and its dynamic variant). When is known, Polyak's step minimises the per-step distance bound (Exercise 4) and yields ; summing, , so and the same best-iterate rate holds with the best constant among all step rules. When is unknown a running estimate (e.g. a level-set or target-value update, the basis of the level method) replaces it; this is the practical entry point to bundle methods [Nesterov, Y. — Lectures on Convex Optimization (2nd ed.)].

Theorem 3 (the lower bound for nonsmooth first-order methods). Consider the black-box model: an algorithm queries a subgradient oracle and forms iterates in the affine span of past subgradients, . Then for every such method there is a convex -Lipschitz function on a ball of radius in for which

The witness is the resisting-oracle function (Nesterov's "worst function in the world" for the nonsmooth class): an adversarial oracle returns the subgradient of a coordinate not yet activated, so after queries the iterate has touched only of the coordinates and cannot have reduced the max below a fixed gap [Nesterov, Y. — Lectures on Convex Optimization (2nd ed.)]. Because the subgradient method attains (Key theorem), the two bounds match in order: the subgradient method is optimal for the nonsmooth black-box class, and no first-order method can be faster without leaving that class.

Theorem 4 (stochastic and incremental subgradient methods). Replacing by an unbiased estimator with and leaves valid in expectation, so the stochastic subgradient method retains the rate on — the foundational fact behind stochastic-gradient training of nonsmooth convex losses. The incremental variant, cycling subgradients of the components of a finite sum , fits the same template with a component-wise bound, giving the cheap-per-iteration method used at large scale [Bertsekas, D. P. — Convex Optimization Algorithms]. In all variants the analysis is the one recursion ; only the bound on the noise term changes.

Synthesis. The fundamental inequality is the single invariant from which the entire theory descends, and the central insight is that the squared distance to the optimum, not the function value, is the Lyapunov quantity — this is exactly why the method need not be a descent method yet still converges. The foundational reason every step rule succeeds or fails is visible in : convergence needs (to make the term vanish) while exactness needs (to kill the noise term), and the constant rules fail the second test, leaving the residual band of Theorem 1. Polyak's step is the pointwise optimiser of and generalises to the level and bundle methods when is estimated. The upper bound is dual to the resisting-oracle lower bound, and putting these together pins the complexity of the nonsmooth black-box class exactly: the subgradient method is optimal there, and the bridge to the rest of the chapter is precisely this optimality barrier — proximal-gradient 44.06.02 and accelerated 44.06.03 methods beat only by leaving the black-box model, splitting off a smooth part and exploiting its gradient, a structural escape the lower bound shows is the only one available.

Full proof set Master

Proposition 1 (fundamental inequality). Let be convex with minimiser , closed convex, and run , . Then .

Proof. Let . Projection onto a closed convex set is nonexpansive and , so . Expand . The subgradient inequality 44.02.05 at evaluated at gives , i.e. . Replacing by its upper bound yields the claim.

Proposition 2 (best-iterate bound). Under Proposition 1 and , with .

Proof. Sum Proposition 1 for ; the distances telescope, and dropping ,

Since , the left side is . Divide by .

Proposition 3 (optimal fixed-horizon rate). Choosing for gives , and this minimises the right side of Proposition 2 over constant schedules.

Proof. With constant, Proposition 2 reads . Then gives , i.e. , a minimum since . At this , .

Proposition 4 (Polyak step optimality and convergence). With and , one has , hence and .

Proof. The right side of Proposition 1 is a convex quadratic in minimised at , where its value is using . Telescoping, , so ; the summand tends to , so . The partial-sum bound also gives , recovering the best-iterate rate.

Proposition 5 ( lower bound, resisting-oracle construction). In the black-box first-order model with iterates in and , there is a convex -Lipschitz on the unit ball of with .

Proof. Take , which is convex and -Lipschitz in on the unit ball (a single coordinate subgradient at points where is the max). Run the oracle so that at it returns for the smallest index attaining the max; with all coordinates tie, and an adversarial tie-break returns , then , and so on. By induction , so has its last coordinate , giving . The minimiser of on the ball of radius is the balanced point with all coordinates equal to , where . Hence . Adding the regulariser and optimising sharpens the constant to the stated without changing the order; the iterate, having activated only coordinates, is provably from optimal [Nesterov, Y. — Lectures on Convex Optimization (2nd ed.)].

Proposition 6 (projection fixed points are constrained minimisers). For convex and closed convex , is a fixed point of for some and iff , iff minimises over .

Proof. The variational characterisation of Euclidean projection states for all . With , : fixed-point means , i.e. by positive homogeneity of the cone, i.e. . By the constrained Fermat rule (Exercise 3 of 44.02.05) this is equivalent to for convex .

Connections Master

  • The subgradient inequality and the Fermat rule of 44.02.05 are the only facts about the method uses: the fundamental inequality is the subgradient inequality applied at the minimiser, and the projected method's fixed points are exactly the constrained-Fermat points assembled from the normal-cone subdifferential of an indicator and the sum rule proved there. The whole convergence theory is one corollary of that unit's calculus.

  • The convexity theory of 44.01.01 supplies the structural guarantee that converts the iteration's stationarity into optimality: delivers only that the squared distance to a minimiser contracts on average, but convexity makes every Fermat/stationary point a global minimiser and makes the best-so-far value a meaningful certificate, while the Lipschitz/bounded-subgradient hypothesis that fixes the constant is the first-order regularity condition that unit formalises through the support function.

  • The proximal-gradient method 44.06.02 and accelerated (momentum) methods 44.06.03 are the direct successors that exist precisely to beat the lower bound proved here: by splitting the objective into a smooth part (handled by its gradient) and a nonsmooth part (handled by a proximal step rather than an arbitrary subgradient), they leave the black-box model in which is unimprovable and reach and . The lower bound of this unit is the exact boundary marking where that structural escape becomes necessary.

Historical & philosophical context Master

The subgradient method originates with Naum Z. Shor in the early-to-mid 1960s, who introduced subgradient (generalised-gradient) steps for nonsmooth minimisation arising in large-scale linear and network problems; his work, with that of Boris T. Polyak and Yurii M. Ermoliev, established the method and the diminishing-step convergence theory in the Soviet optimisation school [Shor 1985]. Polyak contributed the optimal step that bears his name and the quasi-Fejér convergence analysis of the distance sequence [Polyak 1987]. The information-based complexity viewpoint — that the rate is not a deficiency of a particular algorithm but a hard limit of the nonsmooth black-box oracle model — is due to Arkadi Nemirovski and David Yudin, whose 1983 monograph proved the matching lower bound by the resisting-oracle construction [Nemirovski & Yudin 1983]. The modern textbook synthesis, including the projected variant, the unified step-size analysis, and the lower bound in the "worst function in the world" form, is given by Nesterov [Nesterov 2018] and by Beck [Beck 2017], the source from which this unit's notation and fundamental inequality are taken.

Bibliography Master

@book{beck2017fom,
  author    = {Beck, Amir},
  title     = {First-Order Methods in Optimization},
  series    = {MOS-SIAM Series on Optimization},
  number    = {25},
  publisher = {SIAM},
  year      = {2017}
}

@book{nesterov2018lectures,
  author    = {Nesterov, Yurii},
  title     = {Lectures on Convex Optimization},
  edition   = {2},
  series    = {Springer Optimization and Its Applications},
  volume    = {137},
  publisher = {Springer},
  year      = {2018}
}

@book{bertsekas2015convex,
  author    = {Bertsekas, Dimitri P.},
  title     = {Convex Optimization Algorithms},
  publisher = {Athena Scientific},
  year      = {2015}
}

@book{shor1985minimization,
  author    = {Shor, Naum Z.},
  title     = {Minimization Methods for Non-Differentiable Functions},
  series    = {Springer Series in Computational Mathematics},
  volume    = {3},
  publisher = {Springer},
  year      = {1985}
}

@book{polyak1987introduction,
  author    = {Polyak, Boris T.},
  title     = {Introduction to Optimization},
  publisher = {Optimization Software, Inc.},
  address   = {New York},
  year      = {1987}
}

@book{nemirovskiyudin1983,
  author    = {Nemirovski, Arkadi S. and Yudin, David B.},
  title     = {Problem Complexity and Method Efficiency in Optimization},
  publisher = {Wiley-Interscience},
  year      = {1983}
}