ArticleslgStudy

mathematics

Subgradient method

Subgradient method is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Subgradient method rather than just read about it. In short: Subgradient methods are convex optimization methods which use subderivatives. Originally developed by Naum Z.

Key takeaways

  • Subgradient method belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Subgradient method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Subgradient method from memory before moving on to harder problems.

Reference excerpt

Subgradient methods are convex optimization methods which use subderivatives. Originally developed by Naum Z. Shor and others in the 1960s and 1970s, subgradient methods are convergent when applied even to a non-differentiable objective function. When the objective function is differentiable, subgradient methods for unconstrained problems use the same search direction as the method of gradient descent. Subgradient methods are slower than Newton's method when applied to minimize twice continuously differentiable convex functions. However, Newton's method fails to converge on problems that have non-differentiable kinks. In recent years, some interior-point methods have been suggested for convex minimization problems, but subgradient projection methods and related bundle methods of descent remain competitive. For convex minimization problems with very large number of dimensions, subgradient-projection methods are suitable, because they require little storage. Subgradient projection methods are often applied to large-scale problems with decomposition techniques. Such decomposition methods often allow a simple distributed method for a problem.

Classical subgradient rules Let f:ℝn→ℝ be a convex function with domain ℝn. A classical subgradient method iterates x(k+1)=x(k)−αkg(k) where g(k) denotes any subgradient of f at x(k), and x(k) is the kth iterate of x. If f is differentiable, then its only subgradient is the gradient vector ∇f itself. It may happen that −g(k) is not a descent direction for f at x(k). We therefore maintain a list fbest that keeps track of the lowest objective function value found so far, i.e. fbest(k)=min⁡{fbest(k−1),f(x(k))}.

Step size rules Many different types of step-size rules are used by subgradient methods. This article notes five classical step-size rules for which convergence proofs are known:

Constant step size, αk=α. Constant step length, αk=γ/‖g(k)‖2, which gives ‖x(k+1)−x(k)‖2=γ. Square summable but not summable step size, i.e. any step sizes satisfying αk≥0,∑k=1∞αk2<∞,∑k=1∞αk=∞. Nonsummable diminishing, i.e. any step sizes satisfying αk≥0,limk→∞αk=0,∑k=1∞αk=∞. Nonsummable diminishing step lengths, i.e. αk=γk/‖g(k)‖2, where γk≥0,limk→∞γk=0,∑k=1∞γk=∞. For all five rules, the step-sizes are determined "off-line", before the method is iterated; the step-sizes do not depend on preceding iterations. This "off-line" property of subgradient methods differs from the "on-line" step-size rules used for descent methods for differentiable functions: Many methods for minimizing differentiable functions satisfy Wolfe's sufficient conditions for convergence, where step-sizes typically depend on the current point and the current search-direction. An extensive discussion of stepsize rules for subgradient methods, including incremental versions, is given in the books by Bertsekas and by Bertsekas, Nedic, and Ozdaglar.

Convergence results For constant step-length and scaled subgradients having Euclidean norm equal to one, the subgradient method converges to an arbitrarily close approximation to the minimum value, that is

limk→∞fbest(k)−f∗<ϵ by a result of Shor. These classical subgradient methods have poor performance and are no longer recommended for general use. However, they are still used widely in specialized applications because they are simple and they can be easily adapted to take advantage of the special structure of the problem at hand.

Subgradient-projection and bundle methods During the 1970s, Claude Lemaréchal and Phil Wolfe proposed "bundle methods" of descent for problems of convex minimization. The meaning of the term "bundle methods" has changed significantly since that time. Modern versions and full convergence analysis were provided by Kiwiel. Contemporary bundle-methods often use "level control" rules for choosing step-sizes, developing techniques from the "subgradient-projection" method of Boris T. Polyak (1969). However, there are problems on which bundle methods offer little advantage over subgradient-projection methods.

Constrained optimization

Projected subgradient One extension of the subgradient method is the projected subgradient method, which solves the constrained optimization problem

minimize f(x) subject to x∈𝒞 where 𝒞 is a convex set. The projected subgradient method uses the iteration x(k+1)=P(x(k)−αkg(k)) where P is projection on 𝒞 and g(k) is any subgradient of f at x(k).

General constraints The subgradient method can be extended to solve the inequality constrained problem

minimize f0(x) subject to fi(x)≤0,i=1,…,m where fi are convex. The algorithm takes the same form as the unconstrained case x(k+1)=x(k)−αkg(k) where αk>0 is a step size, and g(k) is a subgradient of the objective or one of the constraint functions at x. Take g(k)={∂f0(x) if fi(x)≤0∀i=1…m∂fj(x) for some j such that fj(x)>0 where ∂f denotes the subdifferential of f. If the current point is feasible, the algorithm uses an objective subgradient; if the current point is infeasible, the algorithm chooses a subgradient of any violated constraint.

See also Stochastic gradient descent – Optimization algorithm

References

Further reading Bertsekas, Dimitri P. (1999). Nonlinear Programming. Belmont, MA.: Athena Scientific. ISBN 1-886529-00-0. Bertsekas, Dimitri P.; Nedic, Angelia; Ozdaglar, Asuman (2003). Convex Analysis and Optimization (Second ed.). Belmont, MA.: Athena Scientific. ISBN 1-886529-45-0. Bertsekas, Dimitri P. (2015). Convex Optimization Algorithms. Belmont, MA.: Athena Scientific. ISBN 978-1-886529-28-1. Shor, Naum Z. (1985). Minimization Methods for Non-differentiable Functions. Springer-Verlag. ISBN 0-387-12763-1. Ruszczyński, Andrzej (2006). Nonlinear Optimization. Princeton, NJ: Princeton University Press. pp. xii+454. ISBN 978-0691119151. MR 2199043.

External links EE364A and EE364B, Stanford's convex optimization course sequence.

Worked examples

Example 1 — a first encounter with Subgradient method

Start with the simplest possible case. Write down what Subgradient method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Subgradient method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Subgradient method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Subgradient method

In research
Subgradient method appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Subgradient method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Subgradient method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Convex analysis, Convex optimization, Mathematical optimization, so understanding it makes those chapters shorter.
In everyday life
Look for Subgradient method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Subgradient method” →

How to study Subgradient method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Subgradient method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Subgradient method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Subgradient method in simple terms?

Subgradient methods are convex optimization methods which use subderivatives. Originally developed by Naum Z.

Why does Subgradient method matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Subgradient method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Subgradient method.

Tags

  • Convex analysis
  • Convex optimization
  • Mathematical optimization
  • Optimization algorithms and methods

Keep exploring