ArticleslgStudy

earth science

Simultaneous perturbation stochastic approximation

Simultaneous perturbation stochastic approximation is a earth science 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 Simultaneous perturbation stochastic approximation rather than just read about it. In short: Simultaneous perturbation stochastic approximation (SPSA) is an algorithmic method for optimizing systems with multiple unknown parameters. It is a type of stochastic approximation algorithm.

Key takeaways

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

Reference excerpt

Simultaneous perturbation stochastic approximation (SPSA) is an algorithmic method for optimizing systems with multiple unknown parameters. It is a type of stochastic approximation algorithm. As an optimization method, it is appropriately suited to large-scale population models, adaptive modeling, simulation optimization, and atmospheric modeling. Many examples are presented at the SPSA website http://www.jhuapl.edu/SPSA. A comprehensive book on the subject is Bhatnagar et al. (2013). An early paper on the subject is Spall (1987) and the foundational paper providing the key theory and justification is Spall (1992). SPSA is a descent method capable of finding global minima, sharing this property with other methods such as simulated annealing. Its main feature is the gradient approximation that requires only two measurements of the objective function, regardless of the dimension of the optimization problem. Recall that we want to find the optimal control u∗ with loss function J(u):

u∗=arg⁡minu∈UJ(u). Both Finite Differences Stochastic Approximation (FDSA) and SPSA use the same iterative process:

un+1=un−anĝn(un), where un=((un)1,(un)2,…,(un)p)T represents the nth iterate, ĝn(un) is the estimate of the gradient of the objective function g(u)=∂∂uJ(u) evaluated at un, and {an} is a positive number sequence converging to 0. If un is a p-dimensional vector, the ith component of the symmetric finite difference gradient estimator is:

FD: (gn̂(un))i=J(un+cnei)−J(un−cnei)2cn, 1≤i≤p, where ei is the unit vector with a 1 in the ith place, and cn is a small positive number that decreases with n. With this method, 2p evaluations of J for each gn are needed. When p is large, this estimator loses efficiency. Let now Δn be a random perturbation vector. The ith component of the stochastic perturbation gradient estimator is:

SP: (gn̂(un))i=J(un+cnΔn)−J(un−cnΔn)2cn(Δn)i. Remark that FD perturbs only one direction at a time, while the SP estimator disturbs all directions at the same time (the numerator is identical in all p components). The number of loss function measurements needed in the SPSA method for each gn is always 2, independent of the dimension p. Thus, SPSA uses p times fewer function evaluations than FDSA, which makes it a lot more efficient. Simple experiments with p=2 showed that SPSA converges in the same number of iterations as FDSA. The latter follows approximately the steepest descent direction, behaving like the gradient method. On the other hand, SPSA, with the random search direction, does not follow exactly the gradient path. In average though, it tracks it nearly because the gradient approximation is an almost unbiased estimator of the gradient, as shown in the following lemma.

Convergence lemma Denote by

bn=E[ĝn|un]−∇J(un) the bias in the estimator ĝn. Assume that {(Δn)i} are all mutually independent with zero-mean, bounded second moments, and E(|(Δn)i|−1) uniformly bounded. Then bn→0 w.p. 1.

Sketch of the proof The main idea is to use conditioning on Δn to express E[(ĝn)i] and then to use a second order Taylor expansion of J(un+cnΔn)i and J(un−cnΔn)i. After algebraic manipulations using the zero mean and the independence of {(Δn)i}, we get

E[(ĝn)i]=(gn)i+O(cn2) The result follows from the hypothesis that cn→0. Next we resume some of the hypotheses under which ut converges in probability to the set of global minima of J(u). The efficiency of the method depends on the shape of J(u), the values of the parameters an and cn and the distribution of the perturbation terms Δni. First, the algorithm parameters must satisfy the following conditions:

an >0, an→0 when n→∝ and ∑n=1∞an=∞. A good choice would be an=an; a>0; cn=cnγ, where c>0, γ∈[16,12]; ∑n=1∞(ancn)2<∞ Δni must be mutually independent zero-mean random variables, symmetrically distributed about zero, with Δni<a1<∞. The inverse first and second moments of the Δni must be finite. A good choice for Δni is the Rademacher distribution, i.e. Bernoulli +-1 with probability 0.5. Other choices are possible too, but note that the uniform and normal distributions cannot be used because they do not satisfy the finite inverse moment conditions. The loss function J(u) must be thrice continuously differentiable and the individual elements of the third derivative must be bounded: |J(3)(u)|<a3<∞. Also, |J(u)|→∞ as u→∞. In addition, ∇J must be Lipschitz continuous, bounded and the ODE u˙=g(u) must have a unique solution for each initial condition. Under these conditions and a few others, uk converges in probability to the set of global minima of J(u) (see Maryak and Chin, 2008). It has been shown that differentiability is not required: continuity and convexity are sufficient for convergence.

Extension to second-order (Newton) methods It is known that a stochastic version of the standard (deterministic) Newton-Raphson algorithm (a “second-order” method) provides an asymptotically optimal or near-optimal form of stochastic approximation. SPSA can also be used to efficiently estimate the Hessian matrix of the loss function based on either noisy loss measurements or noisy gradient measurements (stochastic gradients). As with the basic SPSA method, only a small fixed number of loss measurements or gradient measurements are needed at each iteration, regardless of the problem dimension p. See the brief discussion in Stochastic gradient descent.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Simultaneous perturbation stochastic approximation

Start with the simplest possible case. Write down what Simultaneous perturbation stochastic approximation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In earth science, 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 Simultaneous perturbation stochastic approximation 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 Simultaneous perturbation stochastic approximation 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 Simultaneous perturbation stochastic approximation

In research
Simultaneous perturbation stochastic approximation appears in earth science 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 Simultaneous perturbation stochastic approximation 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
Simultaneous perturbation stochastic approximation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Numerical climate and weather models, Optimization algorithms and methods, Randomized algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Simultaneous perturbation stochastic approximation 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 “Simultaneous perturbation stochastic approximation” →

How to study Simultaneous perturbation stochastic approximation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Simultaneous perturbation stochastic approximation 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 Simultaneous perturbation stochastic approximation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Simultaneous perturbation stochastic approximation in simple terms?

Simultaneous perturbation stochastic approximation (SPSA) is an algorithmic method for optimizing systems with multiple unknown parameters. It is a type of stochastic approximation algorithm.

Why does Simultaneous perturbation stochastic approximation matter?

Because it connects several earth science 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 Simultaneous perturbation stochastic approximation?

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 Simultaneous perturbation stochastic approximation.

Tags

  • Numerical climate and weather models
  • Optimization algorithms and methods
  • Randomized algorithms
  • Stochastic optimization

Keep exploring