Learning Corrections to Physics, Not Physics from Scratch
With only tens of simulated antennas, a network that learns small corrections to a cavity model predicts the field under a patch far better than one that learns the field from scratch.
Research paper · İbrahim Çoban · November 2026
Most neural surrogates for antennas map a few design parameters to an S11 curve or a gain value. A learned electromagnetic solver, the building block of a design-time world model, has to predict the fields themselves: how E and H change with geometry, material and frequency. Field data is far more expensive than S-parameter data, so such a solver has to learn from tens of full-wave simulations, not thousands, and preferably still work on designs it has never seen.
Physics can help in two ways. It offers a representation: under a microstrip patch the field is well described by a few cavity modes. And it offers structure: each mode responds to the feed like a damped resonator, with a natural frequency, a quality factor and a feed coupling that the cavity model gives in closed form. The natural guess is that the representation alone makes learning data-efficient. It does not. The structure is what matters.
In short:
A cavity basis chosen from the patch geometry alone represents the field under the patch to 7% relative error.
Yet a network that predicts free coefficients in that very basis is the worst learned model at every training-set size.
Embedding the modes in a differentiable resonator and learning only small, zero-initialized corrections cuts the held-out error by 37% at 20 training designs (0.358 vs. 0.578 for a direct MLP).
On patches larger than any seen in training, the error drops by 35% (0.300 vs. 0.464, 5/5 seeds).
With 80 designs the advantage is no longer significant: the prior matters most when data is scarce.
The weakest part of the classical cavity model is the probe–mode coupling, not the resonance frequency.
1. The data
The antenna is the probe-fed rectangular patch of the open METU-SIMPL dataset. It has 11 parameters:
patch length and width, 1.8–5.2 mm;
substrate height, 0.1–0.8 mm;
feed offset from the patch centre;
substrate and solder-resist permittivities, 2–5;
probe, pad and layer dimensions.
The board is a finite 10 × 10 mm, and the band is 23–33 GHz.
An open solver, checked against HFSS. The published HFSS model was rebuilt in openEMS (FDTD), with a PEC probe and a short lumped port at the ground, mesh lines on the patch edges and λ/40 resolution. Placing mesh lines on the edges converges monotonically; the usual 1/3–2/3 rule does not. On 50 benchmark designs, ten per category, the median S11 dip lies within 0.10–0.20 GHz of HFSS:
| Category | complex S11 MAE | dB MAE | dip frequency error | dip depth error |
|---|---|---|---|---|
| TM10 | 0.153 | 0.63 | 0.10 GHz | 4.0 dB |
| TM20 | 0.149 | 0.77 | 0.10 GHz | 6.1 dB |
| TM02 | 0.129 | 0.90 | 0.15 GHz | 3.0 dB |
| Multi-resonance | 0.143 | 1.26 | 0.20 GHz | 6.5 dB |
| No resonance | 0.208 | 0.07 | – | – |
openEMS vs. HFSS on 50 designs, medians per category.
The field dataset. 100 further designs, disjoint from the benchmark, 20 per category: single-resonance TM10, TM20 and TM02, multi-resonance, and no resonance. They are drawn from the 5000-design Latin-hypercube set and together cover 97–100% of every parameter range. Fields are saved at 11 uniform frequencies plus five frequencies around each HFSS dip (f_dip, ±0.25 and ±0.5 GHz), which gives 1583 complex snapshots.
Each snapshot is E_z at mid-substrate under the patch, resampled to a 41 × 41 grid in normalized patch coordinates and normalized by the incident port voltage, so every design shares one physical amplitude and phase reference. Two sanity checks pass: accepted over incident power equals 1 − |S11|², and the surface currents match the dominant mode.

The metric. For a prediction p and a target y, the shape error lets the prediction take its best global complex scale and measures what is left:
It scores the spatial pattern, including the relative amplitude and phase across the patch, but not the global amplitude. That amplitude is set by the port coupling: in this data the cavity relation V_port = −E_z(feed)·h holds only to within a factor of about 0.6–0.7 and ±40°, so absolute amplitude is left as a separate problem.
The protocol. The test set is fixed: 20 designs, 4 per category. Training sets of 10, 20, 40, 60 or 80 designs are drawn per category from the other 80, with 5 seeds. For the out-of-distribution (OOD) split, the 20 designs with the largest patch area are held out and the model trains on the other 80. Every comparison is paired, with the same split and seed for both models, and reported as a 95% t-interval over seeds.
2. A basis is not a model
The 15 cavity modes cos(mπu)·cos(nπv), with m from 0 to 4 and n in , describe the field well. Odd n is left out because a probe on the y-centreline does not excite it. Projecting held-out fields onto this basis leaves a relative error of 0.069. That is the ceiling for any model that lives in this basis.
So the obvious model is a network that predicts the 15 complex coefficients. It fails. Across the dataset the dominant coefficient varies by more than three orders of magnitude in amplitude and a full turn in phase, and a generic regressor cannot interpolate that from a few designs.
A correct basis is not enough. What generalizes is the resonant structure of the coefficients.
3. A resonator with learned corrections
Each mode responds to the feed like a damped resonator. For design g and frequency f, the coefficient of mode k = (m, n) is
and the field is the sum of the modes weighted by these coefficients. The cavity model supplies the physics:
the natural frequencies f_k(g), from Hammerstad's effective permittivity and fringing extension;
the quality factor Q(g);
the feed coupling b_k = ψ_k(feed).
The network supplies only corrections: δ_k and q_k (real) and β_k (complex), all in log space so frequencies and Q stay positive. They start at zero, so training begins exactly at the calibrated physical model, and they are L2-penalized, so the model leaves physics only where the data asks it to.
The models form a ladder, from no learning to the full hybrid:
| Model | What is learned |
|---|---|
| M0 | nothing: the classical cavity model |
| M1 | two global scalars, s_f and s_Q |
| M2 | M1 plus a linear map from geometry to (δ, q, β) |
| M3 | M1 plus an MLP (2 × 32) for (δ, q) |
| M4 | M1 plus the same MLP for (δ, q, β), i.e. also the feed coupling |
| M5 | M4 plus a small field residual network on (geometry, f) |
Training has two stages: s_f and s_Q are fitted first, by grid search and gradient refinement, and frozen; then the corrections train with AdamW (learning rate 10⁻³, cosine decay) on the squared shape error:
The baselines use the same loss and inputs: a direct MLP predicting all 41² complex values, POD + MLP predicting the coefficients of the 15 leading POD modes of the training snapshots, and cavity + MLP predicting free coefficients for the same 15 cavity modes. They are MLPs with 3 hidden layers of 128 units. No model was tuned individually.
4. Results

| Model | N = 10 | N = 20 | N = 40 | N = 60 | N = 80 | OOD |
|---|---|---|---|---|---|---|
| Projection onto cavity basis (ceiling) | 0.069 | 0.069 | 0.069 | 0.069 | 0.069 | 0.070 |
| M0 cavity model | 0.573 | 0.573 | 0.573 | 0.573 | 0.573 | 0.615 |
| M1 global calibration | .435 ± .007 | .432 ± .011 | .422 ± .004 | .428 ± .004 | .424 | .507 |
| M2 linear correction | .563 ± .047 | .479 ± .024 | .330 ± .023 | .283 ± .007 | .268 | .309 |
| M3 MLP correction (f, Q) | .499 ± .035 | .505 ± .032 | .428 ± .040 | .386 ± .028 | .368 ± .029 | .445 ± .025 |
| M4 MLP correction (f, Q, coupling) | .469 ± .039 | .401 ± .040 | .342 ± .030 | .296 ± .015 | .283 ± .012 | .339 ± .013 |
| M5 = M4 + field residual | .455 ± .046 | .358 ± .033 | .294 ± .025 | .246 ± .018 | .220 ± .011 | .300 ± .016 |
| Direct MLP | .697 ± .019 | .578 ± .053 | .450 ± .051 | .312 ± .017 | .246 ± .023 | .464 ± .017 |
| POD + MLP | .688 ± .064 | .640 ± .046 | .498 ± .024 | .379 ± .044 | .283 ± .021 | .522 ± .020 |
| Cavity + MLP (free coefficients) | .860 ± .040 | .830 ± .027 | .685 ± .050 | .590 ± .042 | .494 ± .025 | .629 ± .019 |
Held-out shape error, mean ± std over 5 seeds. The right column holds out the largest patches.
Physics wins at small N. With 10 training designs, two calibrated scalars (M1) are as good as any model and 38% better than the direct MLP. Every learned correction overfits at this size.
Learned corrections win at moderate N. From 20 designs on, M5 beats M1 in 5/5 seeds at every size, and beats the direct MLP by 37%, 34% and 21% at N = 20, 40 and 60, with every interval excluding zero. M5 trained on 20 designs (0.358) is better than the direct MLP trained on 40 (0.450).
The advantage fades with data. At N = 80 the gap between M5 and the direct MLP is no longer significant (−0.026, 95% CI [−0.054, +0.002]), and M4 alone falls behind the direct MLP. That is what an inductive bias should do: matter most when data is scarce.
Extrapolation. With the 20 largest patches held out, M5 and M2 beat the direct MLP by 35% and 33% (0.300 and 0.309 vs. 0.464, 5/5 seeds), and halve its phase error (8.8° and 7.2° vs. 16.9°). A linear correction of the physical parameters extrapolates as well as the MLP correction; a direct network trained on the same 80 designs does not.
| M5 − direct | M2 − direct | M1 − direct | M5 − M1 | M4 − M3 | |
|---|---|---|---|---|---|
| N = 10 | −.24 [−.31, −.17] | −.13 [−.20, −.07] | −.26 [−.28, −.24] | +.02 [−.05, +.09] | −.03 [−.04, −.02] |
| N = 20 | −.22 [−.31, −.13] | −.10 [−.17, −.03] | −.15 [−.23, −.06] | −.07 [−.12, −.03] | −.10 [−.17, −.04] |
| N = 40 | −.16 [−.22, −.09] | −.12 [−.18, −.06] | −.03 [−.10, +.04] | −.13 [−.16, −.09] | −.09 [−.11, −.07] |
| N = 60 | −.07 [−.09, −.04] | −.03 [−.05, −.01] | +.12 [+.09, +.14] | −.18 [−.21, −.15] | −.09 [−.11, −.07] |
| N = 80 | −.03 [−.05, +.00] | +.02 [−.01, +.05] | +.18 [+.15, +.21] | −.20 [−.22, −.19] | −.09 [−.11, −.06] |
| OOD | −.16 [−.19, −.14] | −.16 [−.18, −.13] | +.04 [+.02, +.07] | −.21 [−.23, −.19] | −.11 [−.12, −.09] |
Paired differences (first minus second model): mean and 95% t-interval over 5 seeds with identical splits. Negative favours the first model. Wherever the interval excludes zero the first model wins in 5/5 seeds, except M1 − direct at N = 60, 80 and OOD (0/5).
5. What the cavity model gets wrong
Correcting only the frequencies and Q (M3) helps little. Adding the feed-coupling correction (M4) improves on M3 in 5/5 seeds at every N and in the OOD split, by 20–24% from N = 20 on. The global calibration gives s_f = 0.930 ± 0.007 and s_Q = 1.43 ± 0.11: the cavity resonances come out about 7% too high, but the coupling of the probe to each mode is where the classical model is weakest.
Multi-resonance designs stay the hardest group for every model (M5 at N = 80: 0.272, against 0.201 for single-mode designs).
6. Limitations and next steps
Scope. The model predicts the spatial pattern of E_z under the patch, not the global complex amplitude, fringing fields, H or far fields.
One solver. The fields come from one FDTD solver, validated against HFSS on S11 only; the 9° S11 phase offset is unexplained.
One antenna family. A rectangular patch has an analytic cavity basis. Arbitrary shapes would need numerically computed eigenmodes.
Untuned models. Tuned baselines may narrow the gaps.
Statistics. 20 test designs and 5 seeds.
Next:
Absolute amplitude, by coupling the field model to an S-parameter surrogate at the port.
Richer physics in the resonator layer: mode-dependent permittivity, probe reactance, mode coupling.
Dynamics: time-domain modal state-space models with learned parameters, as a route to a dynamic electromagnetic world model.
7. Meanwhile: an autoresearch loop on S11
The S-parameter side of the problem is now being searched automatically. An automated search screens random model configurations, promotes the best through longer training rounds, and mutates the elite. A sandboxed worker trains each one, and every run, failures included, is logged with its config, code hash and metrics. The rules are fixed outside the search's reach: the data protocol and the metric are checksummed before every session, and the test labels are sealed until a single final evaluation.

Score: (RSE_Re + RSE_Im) / 2 on a 500-design validation split carved from the training designs, never the test split.
Families tried: rational (328 runs), direct (46), foster with cavity initialization (38), foster (31), rational with cavity initialization (43), STCNN (28), impedance (17).
Where it stands: the best single run reaches 0.0264, below the line where the best published result (0.042/0.043 on test) would sit on this validation scale. The stretch target is 0.020.
The pattern echoes the field paper: the runs that keep improving put a physical resonance structure, poles and residues, into the network's output, rather than asking it to learn the curve from scratch.
Read the paper
The companion technical report gives the S11 surrogate baselines, the reproduction of the thesis' STCNN, mesh convergence and port calibration in full.
Sources. E. S. Saçın, Microstrip Patch Antenna Modeling With Knowledge-Based Neural Networks, MSc thesis, METU, 2023. E. S. Saçın and A. C. Durgun, "Microstrip patch antenna modeling using neural networks with knowledge-based regularization," Neural Computing and Applications, 2025. METU-SIMPL, Microstrip-Patch dataset. J. W. Bandler et al., "Space mapping: the state of the art," IEEE Trans. MTT, 2004. F. Wang and Q.-J. Zhang, "Knowledge-based neural models for microwave design," IEEE Trans. MTT, 1997. Y. Yin et al., "Augmenting physical models with deep networks for complex dynamics forecasting," ICLR 2021. C. Rackauckas et al., "Universal differential equations for scientific machine learning," 2020. T. Liebig et al., "openEMS," Int. J. Numerical Modelling, 2013. C. A. Balanis, Antenna Theory, 4th ed., Wiley, 2016. E. O. Hammerstad, "Equations for microstrip circuit design," EuMC, 1975.
