ArticleslgStudy

mathematics

Adjoint state method

Adjoint state 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 Adjoint state method rather than just read about it. In short: The adjoint state method is a numerical method for efficiently computing the gradient of a function or operator in a numerical optimization problem. It has applications in geophysics, seismic imaging, photonics and more recently in neural networks.

Key takeaways

  • Adjoint state 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 Adjoint state method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Adjoint state method from memory before moving on to harder problems.

Reference excerpt

The adjoint state method is a numerical method for efficiently computing the gradient of a function or operator in a numerical optimization problem. It has applications in geophysics, seismic imaging, photonics and more recently in neural networks. The adjoint state space is chosen to simplify the physical interpretation of equation constraints. Adjoint state techniques allow the use of integration by parts, resulting in a form which explicitly contains the physically interesting quantity. An adjoint state equation is introduced, including a new unknown variable. The adjoint method formulates the gradient of a function towards its parameters in a constraint optimization form. By using the dual form of this constraint optimization problem, it can be used to calculate the gradient very fast. A nice property is that the number of computations is independent of the number of parameters for which you want the gradient. The adjoint method is derived from the dual problem and is used e.g. in the Landweber iteration method. The name adjoint state method refers to the dual form of the problem, where the adjoint matrix A∗=A‾T is used. When the initial problem consists of calculating the product sTx and x must satisfy Ax=b, the dual problem can be realized as calculating the product rTb (=sTx), where r must satisfy A∗r=s. And r is called the adjoint state vector.

General case The original adjoint calculation method goes back to Jean Céa, with the use of the Lagrangian of the optimization problem to compute the derivative of a functional with respect to a shape parameter. For a state variable u∈𝒰, an optimization variable v∈𝒱, an objective functional J:𝒰×𝒱→ℝ is defined. The state variable u is often implicitly dependent on v through the (direct) state equation Dv(u)=0 (usually the weak form of a partial differential equation), thus the considered objective is j(v)=J(uv,v), where uv is the solution of the state equation given the optimization variables v. Usually, one would be interested in calculating ∇j(v) using the chain rule:

∇j(v)=∇vJ(uv,v)+∇uJ(uv,v)∇vuv. Unfortunately, the term ∇vuv is often very hard to differentiate analytically since the dependence is defined through an implicit equation. The Lagrangian functional can be used as a workaround for this issue. Since the state equation can be considered as a constraint in the minimization of j, the problem

minimize j(v)=J(uv,v) subject to Dv(uv)=0 has an associate Lagrangian functional ℒ:𝒰×𝒱×𝒰→ℝ defined by

ℒ(u,v,λ)=J(u,v)+⟨Dv(u),λ⟩, where λ∈𝒰 is a Lagrange multiplier or adjoint state variable and ⟨⋅,⋅⟩ is an inner product on 𝒰. The method of Lagrange multipliers states that a solution to the problem has to be a stationary point of the lagrangian, namely

{duℒ(u,v,λ;δu)=duJ(u,v;δu)+⟨δu,Dv∗(λ)⟩=0∀δu∈𝒰,dvℒ(u,v,λ;δv)=dvJ(u,v;δv)+⟨dvDv(u;δv),λ⟩=0∀δv∈𝒱,dλℒ(u,v,λ;δλ)=⟨Dv(u),δλ⟩=0∀δλ∈𝒰, where dxF(x;δx) is the Gateaux derivative of F with respect to x in the direction δx. The last equation is equivalent to Dv(u)=0, the state equation, to which the solution is uv. The first equation is the so-called adjoint state equation,

⟨δu,Dv∗(λ)⟩=−duJ(uv,v;δu)∀δu∈𝒰, because the operator involved is the adjoint operator of Dv, Dv∗. Resolving this equation yields the adjoint state λv. The gradient of the quantity of interest j with respect to v is ⟨∇j(v),δv⟩=dvj(v;δv)=dvℒ(uv,v,λv;δv) (the second equation with u=uv and λ=λv), thus it can be easily identified by subsequently resolving the direct and adjoint state equations. The process is even simpler when the operator Dv is self-adjoint or symmetric since the direct and adjoint state equations differ only by their right-hand side.

Example: Linear case In a real finite dimensional linear programming context, the objective function could be J(u,v)=⟨Au,v⟩, for v∈ℝn, u∈ℝm and A∈ℝn×m, and let the state equation be Bvu=b, with Bv∈ℝm×m and b∈ℝm. The Lagrangian function of the problem is ℒ(u,v,λ)=⟨Au,v⟩+⟨Bvu−b,λ⟩, where λ∈ℝm. The derivative of ℒ with respect to λ yields the state equation as shown before, and the state variable is uv=Bv−1b. The derivative of ℒ with respect to u is equivalent to the adjoint equation, which is, for every δu∈ℝm,

du[⟨Bv⋅−b,λ⟩](u;δu)=−⟨A⊤v,δu⟩⟺⟨Bvδu,λ⟩=−⟨A⊤v,δu⟩⟺⟨Bv⊤λ+A⊤v,δu⟩=0⟺Bv⊤λ=−A⊤v. Thus, we can write symbolically λv=−Bv−⊤A⊤v. The gradient would be

⟨∇j(v),δv⟩=⟨Auv,δv⟩+⟨∇vBv:λv⊗uv,δv⟩, where ∇vBv=∂Bij∂vk is a third-order tensor, λv⊗uv=λv⊤uv is the dyadic product between the direct and adjoint states and : denotes a double tensor contraction. It is assumed that Bv has a known analytic expression that can be differentiated easily.

Numerical consideration for the self-adjoint case If the operator Bv was self-adjoint, Bv=Bv⊤, the direct state equation and the adjoint state equation would have the same left-hand side. In the goal of never inverting a matrix, which is a very slow process numerically, a LU decomposition can be used instead to solve the state equation, in O(m3) operations for the decomposition and O(m2) operations for the resolution. That same decomposition can then be used to solve the adjoint state equation in only O(m2) operations since the matrices are the same.

See also Adjoint equation Backpropagation Method of Lagrange multipliers Shape optimization

References

External links A well written explanation by Errico: What is an adjoint Model? Another well written explanation with worked examples, written by Bradley [1] More technical explanation: A review of the adjoint-state method for computing the gradient of a functional with geophysical applications MIT course [2] MIT notes [3]

Worked examples

Example 1 — a first encounter with Adjoint state method

Start with the simplest possible case. Write down what Adjoint state 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 Adjoint state 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 Adjoint state 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 Adjoint state method

In research
Adjoint state 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 Adjoint state 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
Adjoint state method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Applied mathematics stubs, Numerical analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Adjoint state 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 “Adjoint state method” →

How to study Adjoint state method in 20 minutes

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

Frequently asked questions

What is Adjoint state method in simple terms?

The adjoint state method is a numerical method for efficiently computing the gradient of a function or operator in a numerical optimization problem. It has applications in geophysics, seismic imaging, photonics and more recently in neural networks.

Why does Adjoint state 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 Adjoint state 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 Adjoint state method.

Tags

  • Applied mathematics stubs
  • Numerical analysis

Keep exploring