Scalable physical source-to-field inference with hypernetworks
Berian James, Stefan Pollok, Ignacio Peis, Elizabeth Louise Baker, Jes Frellsen, Rasmus Bjørk
TL;DR
This work tackles the expensive problem of computing fields generated by many physical sources by introducing hypernetwork-based surrogates that produce additive, field-conditioned representations. By enforcing superposition (via additive hypernetworks) and leveraging potential-based formulations, the authors achieve amortised evaluation with a theoretical runtime of ${\mathcal{O}}(M+N)$ while maintaining relative errors around ${\sim}4{-}6\%$, and enabling field evaluation at arbitrary locations for arbitrary numbers of sources. They develop three instantiations (Fourier hypernetwork, FC+ILR, and FC+INR) and demonstrate that Fourier and FC+ILR provide robust multi-source generalization in 2D across overlapping and prism-like geometries, often outperforming traditional Fast Multipole Method baselines in near-field regimes. The approach holds promise for accelerating physics simulations, particularly in magnetostatics and related conservative fields, with potential extensions to 3D and time-evolving systems, while highlighting limitations related to dynamic range, geometry variability, and retraining needs. Overall, the paper presents a scalable, physics-informed framework for amortised source-to-field inference that leverages additive hypernetworks to preserve linear superposition and enable rapid, continuous-space field evaluations.
Abstract
We present a generative model that amortises computation for the field and potential around e.g.~gravitational or electromagnetic sources. Exact numerical calculation has either computational complexity $\mathcal{O}(M\times{}N)$ in the number of sources $M$ and evaluation points $N$, or requires a fixed evaluation grid to exploit fast Fourier transforms. Using an architecture where a hypernetwork produces an implicit representation of the field or potential around a source collection, our model instead performs as $\mathcal{O}(M + N)$, achieves relative error of $\sim\!4\%-6\%$, and allows evaluation at arbitrary locations for arbitrary numbers of sources, greatly increasing the speed of e.g.~physics simulations. We compare with existing models and develop two-dimensional examples, including cases where sources overlap or have more complex geometries, to demonstrate its application.
