SwitchNet: a neural network model for forward and inverse scattering problems
Yuehaw Khoo, Lexing Ying
Introduction
In this paper, we study the forward and inverse scattering problems via the use of artificial neural networks (NNs). In order to simplify the discussion, we focus on the time-harmonic acoustic scattering in two dimensional space. The inhomogeneous media scattering problem with a fixed frequency is modeled by the Helmholtz operator
where is the velocity field. In many settings, there exists a known background velocity field such that is identical to except in a compact domain . By introducing the scatterer compactly supported in
we can equivalently work with instead of . Note that in this definition scales quadratically with the frequency . However, as is assumed to be fixed throughout this paper, this scaling does not affect any discussion below.
In many real-world applications, is unknown. The task of the inverse problem is to recover based on some observation data . The observation data is often a quantity derived from the Green’s function of the Helmholtz operator and, therefore, it depends closely on . This paper is an exploratory attempt of constructing efficient approximations to the forward map and the inverse map using the modern tools from machine learning and artificial intelligence. Such approximations are highly useful for the numerical solutions of the scattering problems: an efficient map provides an alternative to expensive partial differential equation (PDE) solvers for the Helmholtz equation; an efficient map is more valuable as it allows us to solve the inverse problem of determining the scatterers from the scattering field, without going through the usual iterative process.
In the last several years, deep neural network has become the go-to method in computer vision, image processing, speech recognition and many other machine learning applications . More recently, methods based on NN have also been applied to solving PDEs. Based on the way that the NN is used, these methods for solving the PDE can be roughly separated into two different categories. For the methods in the first category , instead of specifying the solution space via the choice of basis (as in finite element method or Fourier spectral method), NN is used for representing the solution. Then an optimization problem, for example an variational formulation, is solved in order to obtain the parameters of the NN and hence the solution to the PDE. Similar to the use of an NN for regression and classification purposes, the methods in the second category such as use an NN to learn a map that goes from the coefficients in the PDE to the solution of the PDE. As in machine learning, the architecture design of an NN for solving PDE usually requires the incorporation of the knowledge from the PDE domain such that the NN architecture is able to capture the behavior of the solution process. Despite the abundance of the works in using the NN for solving PDE, none of the above mentioned methods have tried to obtain the solution to the wave equation.
This paper takes a deep learning approach to learn both the forward and inverse maps. For the Helmholtz operator (1), we propose an NN architecture for determining the forward and inverse maps between the scatterer and the observation data generated from the scatterer. Although this task looks similar to the computer vision problems such as image segmentation, denoising, and super-resolution where the map between the two images has to be determined, the nature of the map in our problem is much more complicated. In many image processing tasks, the value of a pixel at the output generally only depends on a neighborhood of that pixel at the input layer. However, for the scattering problems, the input and output are often defined on different domains and, due to wave propagation, each location of the scatterer can influence every point of the scattered field. Therefore, the connectivity in the NN has to be wired in a non-local fashion, rendering typical NN with local connectivity insufficient. This leads to the development of the proposed SwitchNet. The key idea is the inclusion of a novel low-complexity switch layer that sends information between all pairs of sites effectively, following the ideas from butterfly factorizations . The same factorization was used earlier in the architecture proposed , but the network weights there are hardcoded and not trainable.
The paper is organized as followed. In Section 2, we discuss about some preliminary results concerning Helmholtz equation. In Section 3, we study the so called far field pattern of the scattering problem, where the sources and receivers can be regarded as placed at infinity. We propose SwitchNet to determine the maps between the far field scattering pattern and the scatterer. In Section 4, we turn to the setting of a seismic imaging problem. In this problem, the sources and receivers are at a finite distance, but yet well-separated from the scatterer.
Preliminary
Using the background velocity field , we first introduce the background Helmholtz operator . With the help of , one can write in a perturbative way as
where is viewed as a perturbation. By introducing the background Green’s function
one can write down a formal expansion for the Green’s function of the -dependent Helmholtz operator :
which is valid when the scatterer field is sufficiently small. The last line of the above equation serves as the definition of the successive terms of the expansion (, , and so on). As can be computed from the knowledge of the background velocity field , most data gathering processes (with appropriate post-processing) focus on the difference instead of itself.
A usual experimental setup consists of a set of sources and a set of receivers :
The data gathering process usually involves three steps: (1) impose an external force or incoming wave field via some sources, (2) solve for the scattering field either computationally or physically, (3) gather the data with receivers at specific locations or directions. The second step is modeled by the difference of the Green’s function , as we mentioned above. As for the other steps, it is convenient at this point to model the first step with a source-dependent operator and the third one with a receiver-dependent operator . We shall see later how these operators are defined in more concrete settings. By putting these components together, one can set the observation data abstractly as
In this paper, we focus on two scenarios: far field pattern and seismic imaging. We start with far field pattern first to motivate and introduce SwitchNet. We then move on to the seismic case by focusing on the main differences.
SwitchNet for far field pattern
In this section, we consider the problem of determining the map from the scatterer to the far field scattering pattern, along with its inverse map. Without loss of generality, we assume that the diameter of the domain is of after appropriate rescaling. The background velocity is assumed to be 1 since the far field pattern experiments are mostly performed in free space.
In this limiting setting, one redefine the observation data as
Now taking the two limits (10) and (14) under consideration, one arrives at the following representation of the observation data for and
2. Low-rank property
The intuition behind the proposed NN architecture comes from examining (19) when (or ) is small. In such a situation, we simply retain the term that is linear in . Using the fact that , (19) becomes
For any and , the submatrix
The proof of this theorem follows the same line of argument in and below we outline the key idea. Denote the center of by and the center of by . For each and , we write
Note that for fixed and each of the last three terms is either a constant or depends only on or . As a result, is numerically low-rank if and only if the first term is so. Such a low-rank property can be derived from the conditions concerning the side-lengths of and . More precisely, since resides in with center , then
Similarly as resides in with center , then
Multiplying these two estimates results in the estimate
for the phase of . Therefore,
for or is non-oscillatory and hence can be approximated effectively by applying, for example, Chebyshev interpolation in both the and variables. Since the degree of the Chebyshev polynomials only increases poly-logarithmically with respect to the desired accuracy, is numerically low-rank by construction. This proves that the submatrix defined in (22) is also numerically low-rank. ∎
3. Matrix factorization
By applying (28) to each block , can be approximated by
The next step is to write (29) into a factorized form. First, introduce and
With the above definitions for , , and , the approximation in (29) can be written compactly as
Notice that although has entries, using the factorization (34), can be stored using entries. In this paper, and and are typically on the same order. Therefore, instead of , one only needs entries to parameterize the map approximately using (34). Such a factorization is also used in for the compression of Fourier integral operators.
We would like to comment on another property that may lead to further reduction in the parameters used for approximating . Let us focus on any two submatrices and of . For two regions and , where the center of and are and respectively, . Let . For and , we have
Therefore, the low-rank factorizations of and are solely determined by the factorization of . This implies that it is possible to construct low-rank factorizations for and :
such that . Since this is true for all possible , one can pick low-rank factorizations so that .
As a final remark in this section, this low complexity factorization (34) for can be easily converted to one for since
where are provided in (30), (31), and (32).
4. Neural networks
Based on the low-rank property of in Section 3.2 and its low-complexity factorization in Section 3.3, we propose new NN architectures for representing the inverse map and the forward map .
As pointed out earlier, when is sufficiently small. The usual filtered back-projection algorithm solves the inverse problem via
where is the regularization parameter. In the far field pattern problem, can be understood as a deconvolution operator. To see this, a direct calculation reveals that
for . (41) shows that is a translation-invariant convolution operator. Therefore, the operator , as a regularized inverse of , simply performs a deconvolution. In summary, the above discussion shows that in order to obtain from the scattering pattern in the regime of small , one simply needs to apply sequentially to
a translation-invariant filter that performs the deconvolution .
Although these two steps might be sufficient when is small, a nonlinear solution is needed when is not so. For this purpose, we propose a nonlinear neural network SwitchNet for the inverse map. There are two key ingredients in the design of SwitchNet.
The first key step is the inclusion of a Switch layer that sends local information globally, as depicted in Figure 4. The structure of the Switch layer is designed to mimic the matrix-vector multiplication of the operator in (29). However unlike the fixed coefficients in (29), as an NN layer, the Switch layer allows for tunable coefficients and learns the right values for the coefficients from the training data. This gives the architecture a great deal of flexibility.
The second key step is to replace the linear deconvolution in the back-projection algorithm with a few convolution (Conv) layers. This enriches the architecture with nonlinear capabilities when approximating the nonlinear inverse map.
These basic building blocks of SwitchNet are detailed in the following subsection. We also take the opportunity to include the details of the pointwise multiplication PM layer that will be used in later on.
4.2. Layers for SwitchNet
In this section we provide the details for the layers that are used in SwitchNet. Henceforth, we assume that the entries of a tensor is enumerated in the Python convention, i.e., going through the dimensions from the last one to the first. One operation that will be used often is a reshape, in which a tensor is changed to a different shape with the same number of entries and with the enumeration order of the entries kept unchanged.
Swap the second and the third dimensions to get a tensor.
Swap the second and the third dimensions to get a tensor.
Here the non-zero entries of are the trainable parameters. The Switch layer is illustrated in Figure 4.
We remark that, among these layers, the Switch layer has the most parameters. If the input and output to the Switch layer both have size , the number of parameter is where is the number of squares that partition the input field and is the rank of the low-rank approximation.
4.3. NN for the forward map η→d→𝜂𝑑\eta\rightarrow d.
We move on to discuss the parameterization of the forward map . The proposal is based on the simple observation that the inverse of the inverse map is the forward map.
More precisely, we simply reverse the architecture of the inverse map proposed in Algorithm 1. This results in an NN presented Algorithm 2. The basic architecture of this NN involves applying a few layers of Conv first, then followed by a Switch layer that mimics .
We would also like to mention yet another possibility to parameterize the forward map , via a recurrent neural network . Let
5. Numerical results
In this section, we present numerical results of SwitchNet for far field pattern at a frequency . The scatterer field supported in is assumed to be a mixture of Gaussians
In Algorithm 1, the parameters are specified as (rank of the low-rank approximation), , , (window size of the convolution layers), (channel number of the convolution layers), and (number of convolution layers), resulting 3100K number of parameters. The parameters for Algorithm 2 are chosen to be , , , , , and , with a total of 4200K parameters. Note that for both algorithms the number of parameters is significantly less than the one of a fully connected NN, which has at least K parameters.
SwitchNet is trained with the ADAM optimizer in Keras with a step size of 0.002 and a mini-batch size of size 200. The optimization is run for 2500 epochs. Both the training and testing data sets are obtained by numerically solving the forward scattering problem with an accurate finite difference scheme with a perfectly matched layer. In the experiment, 12.5K pairs of are used for training, and another 12.5K pairs are reserved for testing. The errors are reported using the mean relative errors
Table 1 summarizes the test errors for Gaussian mixtures with different choices of . For the purpose of illustration, we show the predicted and by SwitchNet along with the ground truth in Figure 5 for one typical test sample.
SwitchNet for seismic imaging
This section considers a two-dimensional model problem for seismic imaging. The scatterer is again assumed to be supported in a domain with an diameter, after appropriate rescaling. is discretized with a Cartesian grid at the rate of at least a few point per wavelength. Compared to the source and receiver configurations in Section 3.1, the experiment setup here is simpler. One can regard both and to be equal to a set of uniformly sampled points along a horizontal line near the top surface of the domain. The support of is at a certain distance below the top surface so that it is well-separated from the sources and the receivers (see Figure 6 for an illustration of this configuration).
The source and receiver operators in (9) take a particularly simple form. For the sources, the operator is simply given by sampling:
Similarly for the receivers, the operator is given by
After plugging these two formulas back into (9), one arrives at the following representation of the observation data for and
2. Low-rank property
Following the approach taken in Section 3.2, we start with the linear approximation under the assumption that is weak. Since , the first order approximation is
where the element at and is given by
Under the assumptions that the sources and receivers are well-separated from the support of and that varies smoothly, the matrix satisfies a low-rank property similar to Theorem 1. To see this, we again partition into Cartesian squares of side-length equal to . Since is now the restriction of on the surface level, this partition also induces a partitioning for . When varies smoothly, it is shown (see for example ) that the restriction of the matrix (or ) to each piece of the partitioning is numerically low-rank. Since the matrix is obtained by taking the Khatri-Rao product of , , the low-rank property is preserved with the guarantee that the rank at most squares in the worst case.
By following the same argument in Section 3.3, one can show that the matrix has a low-complexity matrix factorization of exactly the same structure as (29). The corresponding factorization for is .
3. Neural networks
Based on the low-rank property in Section 4.2, we propose here SwitchNet for seismic imaging.
When the linear approximation is valid (i.e., (52) holds) can be obtained from via a filtered projection approach (or called migration in the seismic community)
where is a regularizing term. Since has a low-complexity factorization , the application to a vector can be represented by a Switch layer.
Concerning the term, note that
which, unlike (41), is no longer a translation-invariant kernel as the data gathering setup is not so. For example, even when the background velocity , the different terms of the Green’s function in (55) scale like
which fail to give a translation-invariant kernel of form . As a direct consequence, the operator is not translation-invariant either.
In order to capture the loss of translation-invariance, we include an extra pointwise multiplication layer PM (defined in Section 3.4.2) when dealing with the inverse map. The pseudo-code of the NN for the inverse map is given in Algorithm 3.
3.2. NN for the forward map η→d→𝜂𝑑\eta\rightarrow d
As in Section 3.4.3, for the forward map from , we simply reverse the architecture of the NN for the inverse map in Algorithm 3. For completeness we detail its structure in Algorithm 4. The main difference between Algorithm 2 and Algorithm 4 is again the inclusion of an extra pointwise multiplication layer.
4. Numerical results
In the numerical experiments, we set and discretize it by a Cartesian grid. As mentioned before, the sources and the receivers are located on a line near the top surface of , similar to the setting in Fig. 6. This line is discretized uniformly with points. Therefore, the size of and are and , respectively. We assume a Gaussian mixture model for as in (49), where . Unlike before, the centers are kept away from the top surface of in order to ensure that they are well-separated from the sources and receivers.
In Algorithm 3 and Algorithm 4, the parameters are set to be , , , , , , , and , resulting NNs with 2900K parameters. The procedure of training the NNs is the same as the one used in Section 3.5. Table 2 presents the test errors for this model problem. The predicted and the ground truth are visually compared in Figure 7 for one typical test sample.
Discussion
In this paper, we introduce a neural network, SwitchNet, for approximating forward and inverse maps arising from the time-harmonic wave equation. For these maps, local information at the input has a global impact at the output, therefore they generally require the use of a fully connected NN in order to parameterize them. Based on certain low-rank property that arises in the linearized operators, we are able to replace a fully connected NN with the sparse SwitchNet, thus reducing complexity dramatically. Furthermore, unlike convolutional NNs with local filters, the proposed SwitchNet connects the input layer with the output layer globally. This enables us to represent highly oscillatory wave field resulted from scattering problems, and to solve for the associated inverse problems.
Acknowledgments
The work of Y.K. and L.Y. is partially supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Scientific Discovery through Advanced Computing (SciDAC) program and the National Science Foundation under award DMS-1818449. Y.K. thanks Prof. Emmanuel Candès for the partial support from a Math+X postdoctoral fellowship. This work is also supported by the GCP Research Credits Program from Google.