pith. machine review for the scientific record. sign in

arxiv: 2604.21431 · v1 · submitted 2026-04-23 · 💻 cs.CE · physics.comp-ph

Recognition: unknown

JAX-BEM: Gradient-Based Acoustic Shape Optimisation via a Differentiable Boundary Element Method

James Hipperson, Jonathan Hargreaves, Trevor Cox

Pith reviewed 2026-05-08 13:33 UTC · model grok-4.3

classification 💻 cs.CE physics.comp-ph
keywords differentiable boundary element methodacoustic shape optimizationgradient-based optimizationJAX automatic differentiationcomputational acousticsboundary integral equationwave scattering
0
0 comments X

The pith

JAX-BEM provides a differentiable boundary element method that matches standard BEM accuracy while enabling gradient-based acoustic shape optimization.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The paper introduces an implementation of the boundary element method inside the JAX automatic-differentiation framework. This implementation tracks gradients through the discretization and the linear solve, so that geometry parameters can be adjusted directly by gradient descent. The authors verify that the resulting solver produces errors comparable to conventional BEM codes on a standard acoustic benchmark. Because the same code also supplies exact gradients, it removes the need for finite-difference approximations or derivative-free optimizers when designing shapes that control sound fields.

Core claim

A boundary-element solver written in JAX produces acoustic fields whose accuracy matches that of existing non-differentiable BEM codes while automatically supplying gradients with respect to surface geometry, thereby permitting gradient-based shape optimization for acoustic objectives.

What carries the argument

Automatic differentiation applied to the boundary-integral discretization and the resulting dense linear system for time-harmonic acoustic scattering.

If this is right

  • Acoustic geometries with dozens of free parameters can be refined by gradient descent instead of derivative-free search.
  • Inverse problems that recover shape from measured acoustic data become directly solvable by the same code path.
  • The same differentiable formulation can be reused for electromagnetic or other linear wave problems without new derivation.
  • Optimization loops can be embedded inside larger machine-learning pipelines that treat geometry as trainable parameters.

Where Pith is reading between the lines

These are editorial extensions of the paper, not claims the author makes directly.

  • The approach could be combined with neural-network surrogates to accelerate repeated forward solves inside long optimization trajectories.
  • Extension to three-dimensional or topologically changing surfaces would test whether the current discretization remains stable under differentiation.
  • Because JAX supports hardware acceleration, the method may lower the cost of high-frequency acoustic design studies relative to finite-element alternatives.

Load-bearing premise

Automatic differentiation through the BEM discretization and linear solve yields accurate, stable gradients for the acoustic boundary conditions.

What would settle it

On a simple scattering benchmark, finite-difference gradients and JAX-BEM gradients differ by more than a few percent, or an optimization run guided by JAX-BEM gradients fails to reduce the objective function.

Figures

Figures reproduced from arXiv: 2604.21431 by James Hipperson, Jonathan Hargreaves, Trevor Cox.

Figure 1
Figure 1. Figure 1: Error vs. analytic solution for increasing mesh refinement. (Scattering from a rigid sphere) 10 0 10 1 k [m^-1] 10 4 10 3 10 2 10 1 10 0 MAE bempp JAX-BEM view at source ↗
Figure 2
Figure 2. Figure 2: Error vs. analytic solution for increasing wavenumber k. (Scattering from a rigid sphere) wavenumbers. The mean absolute error of JAX-BEM relative to bempp ranged from 8 × 10−4 (N = 128) to 8.2×10−6 (N = 8192). Mean absolute error compared to analytic solutions ranged from 4 × 10−2 (N = 128) to 4 × 10−4 (N = 8192) for both JAX-BEM and bempp, demonstrating good agreement (Figs. 1, 2). Although bempp uses nu… view at source ↗
Figure 4
Figure 4. Figure 4: Intitial horn mesh view at source ↗
Figure 5
Figure 5. Figure 5: Optimised horn mesh. is that the optimiser has arrived at a complex mouth shape. A smooth mouth termination has been added, and this varies from a very large flare at 45◦ to a sharper termination in the horizontal and vertical planes. A smooth edge termination contributes the most to the improvements seen in the directivity plot view at source ↗
Figure 6
Figure 6. Figure 6: Initial directivity (normalised to on-axis). Left: Horizontal, Right: Vertical. 5 6 8 10 12 16 Frequency (kHz) 50 0 50 Angle (degrees) ±35° 5 6 8 10 12 16 Frequency (kHz) 50 0 50 Angle (degrees) ±25° 10 8 6 4 2 0 Relative level (dB) 10 8 6 4 2 0 Relative level (dB) view at source ↗
Figure 7
Figure 7. Figure 7: Optimised directivity (normalised to on-axis). Left: Horizontal, Right: Vertical. Because each optimisation iteration is an incremen￾tal change to the mesh, it seems inefficient that the entire problem must be solved from scratch. Warm￾starting GMRES with the previous solution provides a useful speed-up, but the forward algorithm remains expensive. Although the operator assembly does not benefit from GPU c… view at source ↗
read the original abstract

Engineering structures are increasingly designed using numerical optimisation. However, traditional optimisation methods can be challenging with multiple objectives and many parameters. In machine learning, stable training of artificial neural networks with millions or billions of parameters is achieved using automatic differentiation frameworks such as JAX and Pytorch. Because these frameworks provide accelerated numerical linear algebra with automatic gradient tracking, they also enable differentiable implementations of numerical methods to be built. This facilitates faster gradient-based optimisation of geometry and materials, as well as solution of inverse problems. We demonstrate JAX-BEM, a differentiable Boundary Element Method (BEM) solver, showing that it matches the error of existing BEM codes for a benchmark problem and enables gradient-based geometry optimisation. Although the demonstrated examples are for acoustic simulations, the concept could be readily extended to electromagnetic waves.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

2 major / 2 minor

Summary. The paper introduces JAX-BEM, a differentiable Boundary Element Method (BEM) solver implemented in the JAX framework for acoustic simulations. It claims that the implementation reproduces the forward-solution error of existing (non-differentiable) BEM codes on a benchmark problem and that the resulting gradients enable gradient-based shape optimization of acoustic geometries. The work is presented as a demonstration that automatic differentiation through BEM matrix assembly and linear solves can be used for engineering optimization, with a brief note on possible extension to electromagnetics.

Significance. If the gradients are shown to be accurate and stable, the approach would provide a practical route to gradient-based acoustic shape optimization without the need for adjoint derivations or finite-difference approximations. The use of an existing AD framework for a classical boundary-integral method is a useful engineering contribution, though the manuscript does not claim new theoretical results or parameter-free derivations.

major comments (2)
  1. [Abstract / Results] Abstract and results section: the statement that JAX-BEM 'matches the error of existing BEM codes for a benchmark problem' is not supported by any reported quantitative error values, mesh sizes, quadrature orders, or direct comparison tables. Without these data the forward-solver accuracy claim cannot be evaluated and the subsequent optimization results rest on an unquantified foundation.
  2. [Methods / Results] Methods / gradient verification: the central claim that automatic differentiation through the BEM discretization and linear solve produces usable gradients for shape optimization is not accompanied by any finite-difference gradient checks, manufactured-solution tests, or adjoint-consistency verification. Given the singular kernels and numerical quadrature required by BEM, the absence of such checks leaves open the possibility that reported optimization trajectories are driven by gradient artifacts rather than true sensitivities.
minor comments (2)
  1. [Abstract] The abstract mentions possible extension to electromagnetic waves, yet the manuscript contains no discussion, implementation notes, or caveats for that extension.
  2. [Methods] Notation for the acoustic boundary conditions and the differentiation of the single- and double-layer operators should be made explicit; current presentation leaves the precise form of the differentiated kernels unclear.

Simulated Author's Rebuttal

2 responses · 0 unresolved

We thank the referee for their constructive comments, which highlight important aspects of how the accuracy and reliability of JAX-BEM should be presented. We agree that additional quantitative evidence is needed to support the claims and will revise the manuscript accordingly.

read point-by-point responses
  1. Referee: [Abstract / Results] Abstract and results section: the statement that JAX-BEM 'matches the error of existing BEM codes for a benchmark problem' is not supported by any reported quantitative error values, mesh sizes, quadrature orders, or direct comparison tables. Without these data the forward-solver accuracy claim cannot be evaluated and the subsequent optimization results rest on an unquantified foundation.

    Authors: We agree that the forward-solver accuracy claim requires explicit quantitative support. In the revised manuscript we will add a results subsection (or table) that reports concrete error metrics (e.g., L2-norm or pointwise errors) for the benchmark problem, together with the mesh sizes, quadrature orders, and direct numerical comparisons against a reference non-differentiable BEM code. This will allow readers to evaluate the accuracy claim directly and will provide a clearer foundation for the subsequent optimization examples. revision: yes

  2. Referee: [Methods / Results] Methods / gradient verification: the central claim that automatic differentiation through the BEM discretization and linear solve produces usable gradients for shape optimization is not accompanied by any finite-difference gradient checks, manufactured-solution tests, or adjoint-consistency verification. Given the singular kernels and numerical quadrature required by BEM, the absence of such checks leaves open the possibility that reported optimization trajectories are driven by gradient artifacts rather than true sensitivities.

    Authors: We acknowledge the referee's concern regarding the lack of explicit gradient verification, especially in the presence of singular kernels and quadrature. In the revised manuscript we will insert a dedicated verification subsection that (i) compares automatic-differentiation gradients against finite-difference approximations on a simple test geometry and (ii) presents a manufactured-solution test confirming consistency of the computed sensitivities. These checks will demonstrate that the reported optimization trajectories are driven by accurate gradients rather than numerical artifacts. revision: yes

Circularity Check

0 steps flagged

No circularity: implementation demonstration with independent validation

full rationale

The paper describes the implementation of a differentiable BEM solver in JAX and validates it by matching forward error on a benchmark problem before demonstrating gradient-based optimization. No derivation chain, uniqueness theorem, fitted parameter renamed as prediction, or self-citation load-bearing step is present in the provided text. The contribution is an engineering demonstration whose correctness can be checked externally against existing BEM codes and finite-difference gradients; it does not reduce to its own inputs by construction.

Axiom & Free-Parameter Ledger

0 free parameters · 2 axioms · 0 invented entities

This is a software implementation paper. It relies on the standard mathematical formulation of the boundary element method for the Helmholtz equation and on JAX's existing autodiff and linear algebra primitives. No new physical parameters, axioms, or entities are introduced.

axioms (2)
  • domain assumption The acoustic problem is governed by the Helmholtz equation with standard boundary conditions.
    Invoked implicitly as the foundation for the BEM discretization.
  • domain assumption JAX's automatic differentiation correctly propagates gradients through the BEM matrix assembly and linear solve.
    Required for the gradient-based optimization claim.

pith-pipeline@v0.9.0 · 5436 in / 1349 out tokens · 37752 ms · 2026-05-08T13:33:59.470639+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

22 extracted references · 14 canonical work pages · 2 internal anchors

  1. [1]

    Sakuma, S

    T. Sakuma, S. Sakamoto, and T. Otsuru, Eds., Computational Simulation in Architectural and Environmental Acoustics: Methods and Applica- tions of Wave-Based Computation, 1st ed. Tokyo: Springer, 2014,isbn: 978-4-431-54453-1.doi: 10.1007/978-4-431-54454-8

  2. [2]

    Conception optimale ou identification de formes, calcul rapide de la d´ eriv´ ee direction- nelle de la fonction coˆ ut,

    J. Cea, “Conception optimale ou identification de formes, calcul rapide de la d´ eriv´ ee direction- nelle de la fonction coˆ ut,” fr,ESAIM: Mathemat- ical Modelling and Numerical Analysis, vol. 20, no. 3, pp. 371–402, 1986.doi: 10.1051/m2an/ 1986200303711

  3. [3]

    Aggarwal, Y

    T. Xue et al., “JAX-FEM: A differentiable GPU- accelerated 3D finite element solver for auto- matic inverse design and mechanistic data sci- ence,” en,Computer Physics Communications, vol. 291, p. 108 802, Oct. 2023.doi: 10.1016/j. cpc.2023.108802

  4. [4]

    Borrel-Jensen and J

    N. Borrel-Jensen and J. Bjorgaard,Differenti- ation Strategies for Acoustic Inverse Problems: Admittance Estimation and Shape Optimization, en, Nov. 2025.doi: 10 . 48550 / arXiv . 2511 . 11415

  5. [5]

    The application of integral equation methods to the numerical solution of some exterior boundary-value prob- lems,

    A. J. Burton and G. F. Miller, “The application of integral equation methods to the numerical solution of some exterior boundary-value prob- lems,” en,Proc. Royal Society of London. A. Mathematical and Physical Sciences, vol. 323, no. 1553, pp. 201–210, Jun. 1971.doi: 10.1098/ rspa.1971.0097

  6. [6]

    Improved Integral Formulation for Acoustic Radiation Problems,

    H. A. Schenck, “Improved Integral Formulation for Acoustic Radiation Problems,” en,The Jour- nal of the Acoustical Society of America, vol. 44, no. 1, pp. 41–58, Jul. 1968.doi: 10.1121/1. 1911085

  7. [7]

    Learning representations by back- propagating errors,

    D. E. Rumelhart, G. E. Hinton, and R. J. Williams, “Learning representations by back- propagating errors,” en,Nature, vol. 323, pp. 533–536, 1986

  8. [8]

    Griewank and A

    A. Griewank and A. Walther,Evaluating Deriva- tives, Second. Society for Industrial and Ap- plied Mathematics, 2008.doi: 10 . 1137 / 1 . 9780898717761

  9. [9]

    T. B. Brown et al.,Language Models are Few- Shot Learners, en, Jul. 2020.doi: 10.48550/ arXiv.2005.14165

  10. [10]

    Bradbury et al.,JAX: Composable trans- formations of Python+NumPy programs, ver- sion 0.3.13, 2018

    J. Bradbury et al.,JAX: Composable trans- formations of Python+NumPy programs, ver- sion 0.3.13, 2018. [Online]. Available: http:// github.com/jax-ml/jax

  11. [11]

    PyTorch: An Imperative Style, High-Performance Deep Learning Library

    A. Paszke et al., “Pytorch: An imperative style, high-performance deep learning library,”CoRR, vol. abs/1912.01703, 2019. arXiv:1912.01703

  12. [12]

    Bempp-cl: A fast Python based just-in-time compiling boundary element library.,

    T. Betcke and M. Scroggs, “Bempp-cl: A fast Python based just-in-time compiling boundary element library.,” en,JoSS, vol. 6, no. 59, p. 2879, Mar. 2021.doi:10.21105/joss.02879

  13. [13]

    GMRES: A generalized minimal residual algorithm for solving nonsymmetric linear systems

    Y. Saad and M. H. Schultz, “GMRES: A Gen- eralized Minimal Residual Algorithm for Solv- ing Nonsymmetric Linear Systems,” en,SIAM Journal on Scientific and Statistical Comput- ing, vol. 7, no. 3, pp. 856–869, Jul. 1986.doi: 10.1137/0907058

  14. [14]

    Harris, K

    C. R. Harris et al., “Array programming with NumPy,”Nature, vol. 585, no. 7825, pp. 357–362, Sep. 2020.doi:10.1038/s41586-020-2649-2

  15. [15]

    On the limited memory BFGS method for large scale optimiza- tion,

    D. C. Liu and J. Nocedal, “On the limited memory BFGS method for large scale optimiza- tion,” en,Mathematical Programming, vol. 45, no. 1-3, pp. 503–528, Aug. 1989.doi: 10.1007/ BF01589116

  16. [16]

    Optimization of a variable mouth acoustic horn,

    R. Udawalpola, E. Wadbro, and M. Berggren, “Optimization of a variable mouth acoustic horn,”International Journal for Numerical Methods in Engineering, vol. 85, no. 5, pp. 591– 606, Feb. 2011.doi:10.1002/nme.2982

  17. [17]

    3D numerical modelling of acoustic horns using the method of fundamental solutions,

    L. Godinho, P. Amado-Mendes, J. Carbajo, and J. Ramis-Soriano, “3D numerical modelling of acoustic horns using the method of fundamental solutions,” en,Engineering Analysis with Bound- ary Elements, vol. 51, pp. 64–73, Feb. 2015.doi: 10.1016/j.enganabound.2014.09.013

  18. [18]

    Large-Scale Three-Dimensional Acoustic Horn Optimization,

    S. Schmidt, E. Wadbro, and M. Berggren, “Large-Scale Three-Dimensional Acoustic Horn Optimization,” en,SIAM Journal on Scientific Computing, vol. 38, no. 6, B917–B940, Jan. 2016. doi:10.1137/15M1021131

  19. [19]

    3D shape optimization of loud- speaker cabinets for uniform directivity,

    P. R. Andersen, V. Cutanda Henr´ ıquez, N. Aage, and J. Kook, “3D shape optimization of loud- speaker cabinets for uniform directivity,” en, Structural and Multidisciplinary Optimization, vol. 65, no. 12, p. 343, Dec. 2022.doi: 10.1007/ s00158-022-03451-2

  20. [20]

    Efficient multimodal-based shape optimization of acous- tic horns with application to subwavelength per- fect transmission,

    H. Dong, J. -B. Doc, and S. F´ elix, “Efficient multimodal-based shape optimization of acous- tic horns with application to subwavelength per- fect transmission,” en,Journal of Sound and Vibration, vol. 559, p. 117 746, Sep. 2023.doi: 10.1016/j.jsv.2023.117746

  21. [21]

    P. M. Morse and K. U. Ingard,Theoretical Acoustics. New York: McGraw-Hill, 1968

  22. [22]

    UniformH-matrix compression with applications to boundary integral equations,

    K. Bruyninckx, D. Huybrechs, and K. Meer- bergen, “UniformH-matrix compression with applications to boundary integral equations,” SIAM Journal on Scientific Computing, vol. 47, no. 3, B618–B644, May 2025.doi: 10.1137/ 24m1665209