Fast Reconstruction of Exact
Maxwell Dynamics from Sparse Data

Spotlight · NeurIPS 2026

Dan DeGenaro1, Xin Li2, Obed Amo3, Michael Pokojovy3,4, Sarah Adel Bargal1, Markus Lange-Hegermann5, Bogdan Raiță2

1Computer Science, Georgetown University · 2Mathematics, Georgetown University · 3Mathematics and Statistics, Old Dominion University · 4School of Data Science, Old Dominion University · 5Institute Industrial IT, OWL University of Applied Sciences and Arts

NSF logo

This material is based upon work supported by the U.S. National Science Foundation under award No. 2555785.

Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the U.S. National Science Foundation.

Our goal

Reconstruct Maxwell solutions from sparse data

Given measurements \((\mathbf{E}(t_i,x_i,y_i,z_i),\mathbf{B}(t_i,x_i,y_i,z_i))\), approximate electromagnetic fields \(\mathbf{E},\mathbf{B}\) depending on
time \(t\) and space \((x,y,z)\) solving Maxwell's system:

\begin{align*}&\partial_t\mathbf{E}=\nabla\times\mathbf{B}\\ &\partial_t\mathbf{B}=-\nabla\times\mathbf{E}\\ &\nabla\cdot\mathbf{E}=0\\ &\nabla\cdot\mathbf{B}=0\end{align*}

Our proposed algorithm:
FLASH-MAX (Fast-Learning Accurate Solver for Homogeneous MAXwell equations):
a custom neural network that solves the PDE exactly and trains in seconds.

Who cares?

Areas of impact

RF & antennasFull radiation patterns from a few sensors, no hours of waiting.

Tomography & imagingRapid reconstruction from limited probing data.

Plasma diagnosticsReal-time fields in fusion reactors.

SciML "holy grail"ML speed, physics-grade reliability (zero residual).

How is it done today?

Limits of current practice

Numerical
FEM, FDTD

+ Mature, rigorous; complex geometry
− Needs a fully specified, well-posed problem
− Meshes up to ~10⁹ unknowns, HPC clusters
− Residual vanishes only asymptotically

PINNs
physics in the loss

+ Mesh-free; data can be anywhere
− PDE is a soft penalty: residual never zero
− Unstable training; ~10k collocation points
− Fails on hard cases (96% error, Radial Waves)

EPGP
exact-prior GPs

+ Exact PDE prior; closed-form uncertainty
− Heavy: 12k features, A100-80GB memory
− Slow: hundreds to thousands of seconds
− Struggles with boundary data, time extrapolation

Neural operators
FNO, DeepONet

+ Fast inference once trained
− Need huge simulated datasets, long offline training
− Assume a well-posed forward problem
− No exactness guarantee

Our method has none of the limitations and shares most advantages.

In addition it is both fastest and can operate in a data regime where the other methods break down.

Neural operators amortize over many problem instances, a different regime; we compute weights in seconds for any data set, so we do not compare against them.

Our contribution

FLASH-MAX architecture and training

Let \(\mathbf{x}=(t,x,y,z)\), \(\mathbf{z}=(z_0,z_1,z_2,z_3)\). Our architecture is \begin{align*} &(\hat{\mathbf{E}}(\mathbf{x}),\hat{\mathbf{B}}(\mathbf{x}))=\sum_{k=1}^{W} w_{k1}\,\mathbf{p}_1(\mathbf{z}_{k1})\,\sigma\!\left(\mathbf{x}\cdot\mathbf{z}_{k1}+b_{k1}\right)+w_{k2}\,\mathbf{p}_2(\mathbf{z}_{k2})\,\sigma\!\left(\mathbf{x}\cdot\mathbf{z}_{k2}+b_{k2}\right) \\ \text{where }&\begin{cases} z_0^2=z_1^2+z_2^2+z_3^2,\\ \mathbf{p}_1(\mathbf{z})=(-z_1z_3,\,-z_2z_3,\,z_0^2-z_3^2,\,-z_0z_2,\,z_0z_1,\,0),\mathbf{p}_2(\mathbf{z})=(z_1z_2,\,-z_0^2+z_2^2,\,z_2z_3,\,-z_0z_3,\,0,\,z_0z_1). \end{cases} \end{align*}

Fitting from data \((\mathbf{X},\mathbf{E}(\mathbf{X}),\mathbf{B}(\mathbf{X}))\) sampled from some ground-truth solution \((\mathbf{E},\mathbf{B})\), we can cover both initial-value and initial-boundary-value problems. We train the standard loss

\[\mathrm{Loss}=\operatorname{MSE}\left((\hat{\mathbf{E}}(\mathbf{X}),\hat{\mathbf{B}}(\mathbf{X})),(\mathbf{E}(\mathbf{X}),\mathbf{B}(\mathbf{X}))\right)\]

  • Exact: every neuron is a Maxwell solution, so the residual is 0 by construction. The loss has data only.
  • Intuition: Each neuron is an electromagnetic wave; training on data means choosing which waves to superpose.
  • Noetherian multipliers \(\mathbf{p}_i\): from solvepde in Macaulay2 (Sturmfels' Group, Commutative and Computer Algebra).
  • Dense: in the zero set of the Maxwell operator on convex spacetime domains (universal approximation).
  • Optimization: Trained with AdamW; since network is very precisely constructed, a few data points suffice.
Problem setup and solution overview

FLASH-MAX overview

FLASH-MAX overview
Experiment 1

Race to 5% error: four ground truths, four methods

Seconds to 5% validation error. bdry: ✓ boundary data used, ✗ initial data only. !: never reached 5% (best error shown). n/c: did not converge. –: FEM needs boundary data.

FLASH-MAX is 2 orders of magnitude fastest everywhere: 3 to 59 s.

PINN: fails on Radial Waves, stalls at 5.7% on Random
S-EPGP: rarely reaches 5%
FEM: slow when it succeeds, misses on Plane and Radial

Closest race: Plane, 119.3 s (FEM) vs 6.8 s with boundary data.

Truths: plane waves, radial waves, Hopf fibration, random solution.

Experiment 2

Accuracy in 70 seconds

Relative L2 error versus training time

FLASH-MAX reaches ≈1% error on every ground truth within 70 s.

S-EPGP is far behind; FEM and PINN never reach the residual threshold (boundary data included).

Experiment 3

How little data is needed?

100 points

Single-digit error everywhere
(worst 7.4%).

500 points

All ground truths under 1% error.

Conclusion

Conclusion

Thank you for your attention!

\[\begin{gather*}\nabla\cdot\mathbf{E}=0\quad\nabla\cdot\mathbf{B}=0\\\nabla\times\mathbf{E}=-\frac{\partial\mathbf{B}}{\partial t}\\\nabla\times\mathbf{B}=\frac{\partial\mathbf{E}}{\partial t}\end{gather*}\]