Accelerating wave-scattering simulations with learned search directions
Authors: Haoran Sun, Tao Shan, Hongyu Zhou, Rui Guo, Shenheng Xu, Fan Yang, Maokun Li
Organizations: Department of Electronic Engineering, Tsinghua University, Beijing, China. · School of Electronic and Information Engineering, Beihang University, Beijing, China. · Institut Langevin, ESPCI Paris, PSL University, Paris, France. · Faculty of Mathematics and Computer Science, Weizmann Institute of Science, Rehovot, Israel.
Wave-scattering simulation requires solving a dense boundary-element system for every frequency, incidence and design. Krylov solvers build each search space from scratch, and it grows with problem size. Here we present BEMFormer, a solver that learns to generate search directions across systems of one integral equation and supplies geometry-specific directions through a coarse-grid correction. BEMFormer generalizes to unseen geometries, meshes and excitations, and to acoustic scattering after fine-tuning on eight geometries. It reproduces the measured radar cross-sections of benchmark targets. On a quadcopter with 1.04 million unknowns, 38 times the largest training problem, BEMFormer solves each system 30 times faster than a preconditioned Krylov solver. Both reach a radar cross-section deviation of about 1 dB, comparable to the difference between independent measurements and acceptable for engineering applications. These results show that solving million-unknown scattering problems in minutes is possible when the search space is learned rather than built from scratch.
Figures & tables
Figure 1: BEMFormer learns to generate search directions for a family of scattering problems. a , Schematic of the solution space of a family of scattering problems, with the paths of a Krylov method, a surrogate model and BEMFormer. b , Singular values of six test geometries versus the index k divided by the number of unknowns N (middle). Magnified views show the eight smallest values (left) and the values with k/N≥0.1 (right). The six geometries are shown below with their condition numbers κ . c , Solution procedure for the quadcopter, with the residual at the start of four blocks. d , Test targets outside the training distribution. Numbered circles indicate the number of unknowns N and the electrical size L/λ of each target, and shaded bars indicate the training range. Colours indicate the magnitude of the surface current. Open circles indicate the quadcopter at 28.3 GHz. Arrows indicate the incidence direction, and the short bars across them are parallel to the incident electric field.
Figure 2: The BEMFormer iteration. a , One iteration block for the quadcopter. The maps show the solution xt , the residual rt , the three directions pt generated by the network, their products with the operator Apt and the coarse-grid correction Vct . b , Network of one block (left) and one of its encoder layers (right). c , Attention branches for one cluster of the quadcopter mesh (left) and their counterparts in the fast multipole method (right). d , Coarse-grid correction. Near-null vectors of the operator on a coarse mesh are interpolated to the fine mesh, and the first four are shown. e , Effect of the correction. Left, error of the network alone and of BEMFormer for the incidence of a . Right, median fraction of the error in the eight smallest singular directions (top) and median relative error (bottom) for 54 test systems. GMRES and deflated GMRES were run for 101 matrix–vector multiplications. Bottom, relative error after each block. Arrows indicate the incidence direction and polarization, as in Fig. 1 d.
Figure 3: Accuracy and number of search directions on held-out electromagnetic problems. a , Distribution of the relative error after 101 matrix–vector multiplications on the test set ( n=49,464 systems), for all systems and grouped by the condition number κ . The bottom row shows the surrogate models after a single forward pass ( n=5,496 ), with Transolver in its original size and enlarged to 439 million parameters. Bars indicate the percentage of systems with an error below 1%, and the numbers on the right indicate the median relative error. GMRES uses a diagonal preconditioner. b , Left, relative residual versus the number of search directions for 2,061 test systems, with medians (lines) and interquartile ranges (bands). The open circle indicates the point at which BEMFormer reaches the residual of GMRES after 75 iterations. Right, median number of matrix–vector multiplications required to reach a 1% residual and an RCS deviation of 1 dB, in bins of 2,000 unknowns. c , Relative error versus the number of matrix–vector multiplications on the quadcopter. d , Median relative error and median RCS deviation on 11 test sets outside the training distribution. The first column shows the training settings. In the source columns, an electric dipole or a line current at a distance of one wavelength from the target replaces the plane wave. e , Three targets outside the training distribution. Top, surface current of the BEMFormer solution (arrows as in Fig. 1 d), with the range of the relative error over eight incidences. Bottom, RCS with the mean deviation from the reference.
Figure 4: Few-shot transfer to acoustic scattering. a , Unknowns of the two problems on the same mesh, one current per edge in electromagnetics and one pressure per vertex in acoustics. b , Median relative error on the acoustic test set versus the number of fine-tuning geometries. c , Distribution of the relative error after 101 matrix–vector multiplications at three frequencies and on five complex geometries. Bars indicate the percentage of systems with an error below 1%, and the numbers on the right indicate the median relative error. d , Surface pressure of the BEMFormer solution on the five complex geometries. Numbers indicate the median relative error of each method over 72 incidences. e , FABIAN head-and-torso simulator. Left, surface pressure of the BEMFormer solution. Right, head-related transfer functions of both ears versus the azimuth of the source. The colour scale is the same as in d . The network in c – e was fine-tuned on 32 geometries. Arrows indicate the incidence direction, with short bars as in Fig. 1 d.
Figure 5: Validation against measurements and an analytical solution. a , Surface current of the BEMFormer solution (top) and monostatic RCS versus the azimuth φ (bottom) for four EMCC targets. Arrows indicate the incidence direction and polarization, as in Fig. 1 d. b , Mean RCS deviation from measurement for all cases. c , Magnified view of the shaded region in a . The arrow indicates the difference between the two measurements at a null. d , Sources of error for the almond (left) and deviation from the two measurements versus the mesh density (right). e , Mean RCS deviation from the Mie series for a perfectly conducting sphere of radius a at wavenumber k . Vertical lines indicate the interior resonances. Measurements 1 and 2 are the two independent measurements of the almond, and the other measurements were obtained from refs. [ 34 , 4 ] . VV and HH denote vertical and horizontal polarization.
Figure 6: Cost and accuracy on a quadcopter with up to 1.04 million unknowns. a , Surface current of the BEMFormer solution on four of the 11 meshes. Arrows indicate the incidence direction and polarization, as in Fig. 1 d. b , Median solution time per incidence (top) and graphics processing unit (GPU) memory of BEMFormer (bottom) versus the number of unknowns. The inset shows the number of matrix–vector multiplications that each method requires to reach the RCS deviation of BEMFormer. c , End-to-end speed-up over block-Jacobi GMRES. d , End-to-end time for one incidence at the four sizes of a . e , Fastest method for each number of unknowns and of incidences. f , Relative error (left) and RCS deviation (right) versus the number of unknowns. Points show the four incidences at each size and lines show their medians. g , Surface current of the BEMFormer solution (left), its error (middle) and bistatic RCS (right) at 1.04 million unknowns. The colour scale is the same as in a . Vertical dotted lines in b and f separate the sizes solved on one and on two GPUs.
Extended Data Fig. 1: Ablation of the network components. a , Percentage of test systems with a relative error below 1% ( n=5,496 systems) for the full model trained with two random seeds and for four ablated models. The numbers on the right indicate the median relative error. The model without the least-squares update is shown for the network alone. b , Relative error on the quadcopter at 11 sizes, divided by the relative error of the full model with the first seed. The curves show the model without the selection branch and the full model with the second seed. Points show the four incidences at each size and lines show their medians. All models have 19.3 million parameters and were trained for eight epochs.
Extended Data Fig. 2: Classical Krylov solvers with the coarse space of BEMFormer or a near-field preconditioner. a , Relative error after 101 matrix–vector multiplications for 54 test systems grouped by the condition number κ . For deflated GMRES and deflated block-Jacobi GMRES, the deflation space is the coarse space of BEMFormer. Shaded bars indicate the interquartile range and black lines indicate the median. b , Number of matrix–vector multiplications required to reach a 3% relative error versus the number of unknowns N . Large markers indicate the medians in three ranges of N and on the quadcopter, vertical bars indicate the interquartile range and small markers indicate individual systems. c , Median number of matrix–vector multiplications required to reach a 1% residual on the test set, in bins of 2,000 unknowns. d , Distribution of the relative error after 101 matrix–vector multiplications on the test set, as in Fig. 3 a, with near-field-LU GMRES. Bars indicate the percentage of systems with an error below 1%. e , One coarse-grid correction applied after the network instead of in every block. Left, percentage of test systems with a relative error below 1%. Right, relative error for eight incidences on the quadcopter. Black lines indicate the median.
Extended Data Fig. 3: Out-of-distribution tests. a , b , Relative error ( a ) and mean RCS deviation ( b ) after 101 matrix–vector multiplications for the training settings and for 11 test sets outside the training distribution. Boxes indicate the interquartile range, centre lines indicate the median and whiskers indicate the 5th and 95th percentiles. Each set has 110–200 geometries and eight incidences. c , Electric-field integral equation ( n=1,592 systems of 199 geometries). Top, relative error after 101 matrix–vector multiplications for the network alone before and after fine-tuning and for three classical solvers. Numbers indicate the median. Bottom, mean relative error of the fine-tuned network versus the mean relative error of GMRES. Each point represents one geometry. d , Electric dipole and line current at 1 to 100 wavelengths from the target, on 60 test geometries ( n=480 systems for each source and distance). Left, deviation of the excitation from the plane wave. Middle, percentage of systems with a relative error below 1%. Right, relative error divided by the relative error of the same system for the plane wave. Lines show medians and bands show interquartile ranges, on the right for the dipole only.