Skip to main content

Augmented-Wave-Equation Reflection FWI in the Z/mZ Parameterization

This note rewrites the augmented wave equation of McLeman et al. (2021), Reflection FWI with an augmented wave equation and quasi-Newton adaptive gradient scheme (SEG, doi:10.1190/segam2021-3582659.1), equation (4), in the squared-slowness / impedance pair used by Devito Horizon. It covers the isotropic acoustic and Zhang TTI propagators and builds on ISIC and FWI-ISIC, whose notation it follows.

Throughout,

\[ m=\frac{1}{c^2},\qquad Z=\rho c,\qquad \rho=Z\sqrt{m},\qquad b=\frac{1}{\rho}, \]

\(u\) is the forward pressure, \(\lambda\) the adjoint wavefield, and every gradient is stated up to the global adjoint-source sign convention, as in ISIC and FWI-ISIC.

1 The paper’s equations

The paper starts from the variable-density acoustic equation

\[ \frac{1}{c^2}u_{tt}-\rho\,\nabla\cdot\left(\frac{1}{\rho}\nabla u\right) =\rho\,s\,\delta(\mathbf{x}-\mathbf{x}_0), \tag{1} \]

rewrites it without nested derivatives,

\[ \frac{1}{c^2}u_{tt}+\nabla\log\rho\cdot\nabla u-\nabla^2u =\rho\,s\,\delta(\mathbf{x}-\mathbf{x}_0), \tag{2} \]

notes that the density term resembles the AVA intercept,

\[ R(\theta=0)=\frac12\left(\frac{\Delta c}{c}+\frac{\Delta\rho}{\rho}\right) \simeq\frac12\nabla\left(\log c+\log\rho\right), \tag{3} \]

and generalizes the density term to a free scattering vector \(\nabla r_i\):

\[ \frac{1}{c^2}u_{tt}+\nabla r_i\cdot\nabla u-\nabla^2u =\rho\,s\,\delta(\mathbf{x}-\mathbf{x}_0). \tag{4} \]

Velocity and \(\nabla r_i\) are then inverted simultaneously. Only equation (4) is treated here, not the AVA-gradient and directivity extensions (5)-(6).

2 Equation (4) is the Horizon PDE divided by \(b\)

The recipes propagate

\[ m\,b\,u_{tt}-\nabla\cdot(b\nabla u)=s, \]

with the source scaled by src_scale \(=\Delta t^2/(m\,b)\). Since

\[ \frac{1}{b}\nabla\cdot(b\nabla u)=\nabla^2u+\nabla\log b\cdot\nabla u, \]

dividing by \(b\) gives

\[ m\,u_{tt}-\nabla^2u+\nabla r\cdot\nabla u=\rho\,s, \qquad r=\log\rho=-\log b, \]

which is equation (2), and equation (4) with \(\nabla r_i=\nabla\log\rho\). The \(\rho s\) source is the Horizon source scaling.

In Horizon’s variables,

\[ \boxed{\;r=\log\rho=\zeta+\tfrac12\log m,\qquad \zeta:=\log Z.\;} \]

The paper’s intercept (3) is also a Horizon quantity: \(\log c+\log\rho=\log Z\), so

\[ R_0\simeq\tfrac12\nabla\zeta . \]

The paper’s intercept reflectivity is the impedance, in log form.

3 Gradients of the augmented operator in \((m,r)\)

Write the augmented operator as

\[ A(m,r)\,u=m\,u_{tt}-\nabla^2u+\nabla r\cdot\nabla u . \]

The two parameters are decoupled: \(m\) appears only in the mass term and \(r\) only in the scattering term. For perturbations \(\delta m\), \(\delta r\),

\[ \delta A\,u=\delta m\,u_{tt}+\nabla\delta r\cdot\nabla u , \]

and the adjoint-state identity \(\delta J=\langle\lambda,\delta A\,u\rangle\) gives

\[ \delta J=\int\left(\delta m\,u_{tt}\lambda +\lambda\,\nabla\delta r\cdot\nabla u\right)dx\,dt =\int\left(\delta m\,u_{tt}\lambda -\delta r\,\nabla\cdot(\lambda\nabla u)\right)dx\,dt , \]

after one integration by parts in space. Define the vector image

\[ \mathbf{W}=\sum_t\lambda\,\nabla u . \]

Then

\[ \boxed{ g_m\big|_r=\sum_t u_{tt}\lambda, \qquad g_r\big|_m=-\nabla\cdot\mathbf{W}. } \]

If the scattering vector is inverted as a free field \(\mathbf{w}=\nabla r\) (the paper’s “vector derivative quantity”), its gradient is \(g_{\mathbf{w}}=\mathbf{W}\), and \(g_r=-\nabla\cdot g_{\mathbf{w}}\) is the gradient-field restriction of it.

4 Chain rule to the Z/mZ pair

With \(r=\zeta+\tfrac12\log m\), a perturbation in \((\log m,\log Z)\) maps to

\[ \delta m=m\,\delta\log m, \qquad \delta r=\delta\log Z+\tfrac12\,\delta\log m . \]

So

\[ \boxed{ \begin{aligned} g_{\log Z}\big|_m &= g_r\big|_m = -\nabla\cdot\mathbf{W},\\[4pt] g_{\log m}\big|_Z &= m\,g_m\big|_r+\tfrac12\,g_r\big|_m =\sum_t m\,u_{tt}\lambda-\tfrac12\nabla\cdot\mathbf{W}. \end{aligned}} \]

The Z/mZ pair therefore needs only two accumulators, the mass correlation \(\sum_t u_{tt}\lambda\) and the vector image \(\mathbf{W}\), combined with weights:

direction weight on \(m\sum_t u_{tt}\lambda\) weight on \(-\nabla\cdot\mathbf{W}\)
Z (\(\log Z\) at fixed \(m\)) \(0\) \(1\)
mZ (\(\log m\) at fixed \(Z\)) \(1\) \(\tfrac12\)

4.1 Consistency with the existing ISIC kernels

Expand the divergence,

\[ \nabla\cdot\mathbf{W}=\sum_t\left(\nabla\lambda\cdot\nabla u +\lambda\nabla^2u\right), \]

and relate \(\lambda\) to the adjoint \(\lambda_b\) of the \(b\)-multiplied operator the recipes propagate. Since \(A_b=b\,A\), \(A_b^T\lambda_b=A^T(b\lambda_b)\) and

\[ \lambda=b\,\lambda_b . \]

Then

\[ \nabla\cdot(b\lambda_b\nabla u) =b\left[\nabla\lambda_b\cdot\nabla u +\lambda_b\left(\nabla^2u+\nabla\log b\cdot\nabla u\right)\right] =b\left[\nabla\lambda_b\cdot\nabla u+\lambda_b\,m\,u_{tt}\right], \]

using \(\nabla^2u+\nabla\log b\cdot\nabla u=\frac1b\nabla\cdot(b\nabla u)=m\,u_{tt}\) away from the source and the absorbing layer. Hence

\[ \begin{aligned} g_{\log Z}\big|_m&=-b\sum_t\left(m\,u_{tt}\lambda_b+\nabla u\cdot\nabla\lambda_b\right) =-\mathrm{IC}_{Z|m},\\[4pt] g_{\log m}\big|_Z&=m\,b\sum_t u_{tt}\lambda_b -\tfrac12 b\sum_t\left(m\,u_{tt}\lambda_b+\nabla u\cdot\nabla\lambda_b\right) =\tfrac12\,b\sum_t\left(m\,u_{tt}\lambda_b-\nabla u\cdot\nabla\lambda_b\right) =\tfrac12\,\mathrm{IC}_{m|Z}. \end{aligned} \]

These are exactly the kernels of ISIC and FWI-ISIC: the recipes accumulators with sign = +1 (Z) and sign = -1 (mZ). The Z accumulator is the buoyancy gradient \(g_b\) and the mZ one is \(2(m/b)\,g_m-g_b\), so _apply_gradient_chain_rule in physics/devito.py takes \(g_{\log m}|_Z=\tfrac12 b\,\mathrm{acc}_{mZ}\) and \(g_{\log Z}|_m=-b\,\mathrm{acc}_Z\), then divides by \(m\) and \(Z\). The \(\nabla\log b\) terms cancel exactly, so the augmented form and the nested-divergence form agree in the continuum.

The divergence form \(-\nabla\cdot\mathbf{W}\) does not need the PDE identity, so unlike the mass-plus-stiffness form it is exact at the source as well.

5 The vector reflectivity

The paper inverts the scattering vector itself, not a scalar whose gradient it is. In the Z/mZ coordinates that is a free vector field \(\mathbf{Z}\) in place of \(\nabla\zeta=\nabla\log Z\), one component per space dimension, and

\[ \boxed{\; m\,u_{tt}-\nabla^2u+\mathbf{w}\cdot\nabla u=\rho\,s, \qquad \mathbf{w}=\mathbf{Z}+\tfrac12\nabla\log m .\;} \]

For \(\mathbf{Z}=\nabla\log Z\) this is the variable-density equation of the previous sections; in general \(\mathbf{Z}\) has a rotational part no density contrast produces, the freedom the paper uses for angle-dependent reflectivity. The inverted parameters are mZ, squared slowness at fixed \(\mathbf{Z}\), and the vector Z.

5.1 Gradients

The derivation of the \((m,r)\) section applies with \(\nabla\delta r\) replaced by \(\delta\mathbf{w}\). With the vector image \(\mathbf{W}=\sum_t\lambda\nabla u\),

\[ \boxed{ g_{\mathbf{Z}}\big|_m=\mathbf{W}, \qquad g_{\log m}\big|_{\mathbf{Z}}=\sum_t m\,u_{tt}\lambda-\tfrac12\nabla\cdot\mathbf{W}. } \]

The mZ gradient keeps the isochrone cancellation of the scalar case: the \(\tfrac12\nabla\log m\) that ties \(\mathbf{w}\) to \(m\) contributes \(-\tfrac12\nabla\cdot\mathbf{W}\), the same correlation the reflectivity takes whole. The reflectivity gradient is the vector image itself, not its divergence.

5.2 Born sources

\[ m\,\delta u_{tt}-\nabla^2\delta u+\mathbf{w}\cdot\nabla\delta u =-\left[\delta m\,u_{tt}+\delta\mathbf{w}\cdot\nabla u\right], \]

with \(\delta\mathbf{w}=\tfrac12\nabla(\delta m/m)\) for mZ and \(\delta\mathbf{w}=\delta\mathbf{Z}\) for Z.

5.3 Zhang TTI

Let \(\mathbf{n}\) be the symmetry axis, \(P_n=\mathbf{n}\mathbf{n}^T\), \(P_\perp=I-P_n\), \(\hat\varepsilon=1+2\varepsilon\), \(\hat\delta=\sqrt{1+2\delta}\) and \(G_{zz}q=\nabla\cdot(\mathbf{n}\,\mathbf{n}\cdot\nabla q)\), \(G_{xx}=\nabla^2-G_{zz}\). The conservative Zhang equation expands exactly, tilt varying or not, to the projected form below with \(\mathbf{w}=\nabla\log\rho\); the vector reflectivity takes \(\mathbf{w}\) free:

\[ \boxed{ \begin{aligned} m\,u_{tt}-\hat\varepsilon G_{xx}u-\hat\delta G_{zz}v +\hat\varepsilon\,\mathbf{w}\cdot P_\perp\nabla u +\hat\delta\,\mathbf{w}\cdot P_n\nabla v&=\rho\,s,\\ m\,v_{tt}-\hat\delta G_{xx}u-G_{zz}v +\hat\delta\,\mathbf{w}\cdot P_\perp\nabla u +\mathbf{w}\cdot P_n\nabla v&=\rho\,s. \end{aligned}} \]

The projections are the paper’s directivity \(d_j\) (its equation 6). The vector image becomes

\[ \mathbf{W}=\sum_t\left[(\hat\varepsilon\lambda_u+\hat\delta\lambda_v)\,P_\perp\nabla u +(\hat\delta\lambda_u+\lambda_v)\,P_n\nabla v\right], \]

with the same two gradients, the mass correlation now \(\sum_t(u_{tt}\lambda_u+v_{tt}\lambda_v)\). \(\hat\varepsilon\) and \(\hat\delta\) multiply the whole projected operators, scattering terms included, and their gradients and Born sources use those operators.

6 Discretization

The recipes propagate the equation multiplied by \(b\), so the source scaling, the adjoint source and the accumulators keep the conventions of the conservative form. The density then only scales the source and each row of the equation; it is not inverted. For the isotropic recipe the stiffness is

\[ S\,u=b\,\Delta u+\sum_d g_d\,D_d u, \qquad \mathbf{g}=-b\,\mathbf{w}=-b\left(\mathbf{Z}+\tfrac12 D\log m\right), \]

\(\Delta\) the centred Laplacian and \(D_d\) the centred first derivative at the stencil’s order (recipes.utils.augmented_stiffness). Zhang uses the same scattering vector in its rotated operators, with \(\Delta\) the unit-buoyancy staggered Laplacian its \(G_{xx}+G_{zz}\) are assembled from.

\(\mathbf{g}\) is stored. recipes.utils.scattering_vector fills \(\log m\) and then \(\mathbf{g}\) once per operator, ahead of the time loop, with the wavefields’ halo and zero outside the domain: the paper’s precomputed scattering vector. The model carries \(\mathbf{Z}\) as fields named after the grid dimensions, Zx, Zy in 2D and Zx, Zy, Zz in 3D.

The adjoint is the transpose. \(S\) is not self-adjoint, so the backward propagation runs \(S^Tw=\Delta(b\,w)-\sum_d D_d(g_d\,w)\) (augmented_stiffness_transpose; for Zhang _gxx_transpose and _gzz_transpose on the transposed Thomsen system). The adjoint dot product reads \(2\times10^{-8}\) (isotropic) and \(10^{-7}\) (Zhang).

The sensitivities are the transpose of that discrete operator. Per time step the recipes accumulate \(-b\,M\) into mZ (\(M\) the mass correlation, \(u\,\lambda_{tt}\)) and \(-b\,K_d\) into each Z component, \(K_d\) the adjoint correlated with \(\partial S/\partial g_d\). The mZ transport term \(\tfrac{1}{2m}\sum_d D_d W_d\) is added once, after the time loop, from the time-summed \(W_d=\sum_t b\,K_d\), since the sum and the derivative commute. Both gradients match a central difference of the misfit to 1 per cent, and the Born sources are the derivative of the forward and the adjoint of the gradients.

With \(\mathbf{Z}=\nabla\log Z\) it is variable density. Recorded data match the conservative propagator to 4 per cent (isotropic, sharp velocity layers) and 1 per cent (Zhang).

It is implemented for iso-acoustic (second-order kernel), tti-zhang/vti-zhang and tti-fletcher, without viscosity and not under an immersed boundary; the vector reflectivity inverts mZ, the vector Z and, on Zhang, epsilon and delta.

7 In Devito Horizon

DevitoPhysics(parameters=("mZ", "Z"), vector_reflectivity=True) propagates the equations above; how to set up a run, process its gradients and read its result is in Reflection FWI. There is no immersed boundary: the adjoint is the transpose of the stiffness, which Schism’s boundary stencils do not provide, so a model with an SDF is refused.

End to end, the gradient handed to the optimizer is the derivative of the misfit it is handed (tests/test_gradient_consistency.py, t_sub=1):

parameters propagator \(\mathrm{d}\Phi\) / \(\langle g,\delta x\rangle\)
("mZ", "Z"), scalar impedance conservative 1.013
("mZ", "Z"), vector Z vector reflectivity 0.984
("m", "b") conservative 0.983

8 Summary

quantity fixed parameters gradient
\(\mathbf{Z}\) \(m\) Z (vector reflectivity) \(\mathbf{W}\)
\(m\) \(\mathbf{Z}\) mZ (vector reflectivity) \(\frac1m\left(\sum_t m\,u_{tt}\lambda-\tfrac12\nabla\cdot\mathbf{W}\right)\)
\(Z\) \(m\) Z (conservative) \(-\nabla\cdot\mathbf{W}=-\mathrm{IC}_{Z\mid m}\) (log)
\(m\) \(Z\) mZ (conservative) \(\tfrac12\mathrm{IC}_{m\mid Z}\) (log)

with \(\mathbf{W}=\sum_t\lambda\nabla u\) (isotropic) or its projected Zhang form.

Back to top