End-to-End Neural Modeling of EM Response and Design Performance for Free-Form RFIC Passives

Yuhao Mao, Chenhao Chu, Martin Vechev, Hua WangNeurIPS 2026

TL;DR

Designing the tiny metal geometries that route high-frequency wireless signals on microchips usually requires painfully slow electromagnetic (EM) simulations—up to 20 minutes per tweak. This paper introduces an end-to-end neural framework that evaluates "pixelated," free-form circuit layouts in milliseconds rather than minutes, while keeping accuracy above $R^2 > 0.98$ across a massive 50 GHz range. Crucially, it solves a nasty hidden trap in physics-ML: why nearly-perfect physical predictions can still completely break downstream engineering calculations, and how to fix it.

What Problem Does This Paper Address?

Inside every modern wireless system sits a radio-frequency integrated circuit (RFIC), and at its heart is the power amplifier. To prevent high-frequency signals from reflecting and losing power between stages, engineers build tiny on-chip metal structures called passive matching networks.

Figure 2: Typical RFIC PA with three passive matching networks: input matching, interstage matching, and output matching.

Evaluating a candidate geometry involves a two-step pipeline: first, run a finite-difference EM simulator to get its raw electromagnetic scattering behavior (EM response, or S-parameters); second, plug that response into a circuit solver alongside surrounding components (like tuning capacitors) to get actual design performance (impedance, efficiency, and max gain). Because traditional EM simulation takes up to 20 minutes per layout, fast iterative design is bottlenecked.

Existing neural surrogates fall short in three ways:

  1. They restrict layouts to rigid, predefined geometric templates rather than flexible, free-form shapes.
  2. They operate on fixed frequency grids (requiring retraining if you query a new frequency) and ignore surrounding circuit context.
  3. Most stop at predicting the EM response, assuming you can just feed that prediction into a standard circuit solver. As the authors demonstrate, this fails catastrophically: traditional solvers are so sensitive to perturbations that even a microscopic error in predicted EM response ($R^2 \approx 0.9984$) causes downstream design performance predictions to collapse completely ($R^2 \le 0$).
Solver stability under imperfect EM response: a ground-truth solver collapses under tiny EM errors, whereas the learned neural solver remains stable.

Methods

The authors mirror the traditional two-stage physics workflow using two jointly trained neural modules: a Frequency-Conditioned Neural Simulator and a Circuit-Conditioned Neural Solver.

Figure 4: Overview of the proposed model. The frequency-conditioned neural simulator maps the layout M and frequency to a neural EM response, consisting of an explicit EM response and a complementary response. The circuit-conditioned neural solver then combines this neural EM response with the circuit context to predict design performance. Frequency information is injected through modulation across four residual blocks.
  • Continuous Conditioning: The simulator takes a two-layer $18 \times 18$ binary pixel mask representing the metal layout and processes it through a standard ResNet-style CNN backbone. To handle continuous frequencies without retraining, the query frequency $f$ is mapped via Fourier features and injected into the CNN using a spatial variation of Feature-wise Linear Modulation (FiLM)—predicting a unique scale and shift for every channel and spatial pixel.
  • Neural EM Response & Complementary Channel (Novel): Instead of outputting only the explicit 40-dimensional EM response ($\hat{S}$), the simulator also outputs a latent complementary response ($Z_{\text{comp}}$). If $\hat{S}$ is slightly imperfect, $Z_{\text{comp}}$ acts as a side-channel that bypasses the information bottleneck, carrying subtle layout cues forward.
  • Dependence Regularization (Novel): To keep $Z_{\text{comp}}$ from lazily duplicating $\hat{S}$, the authors introduce a closed-form covariance penalty (using a stop-gradient on $\hat{S}$) that pushes the two outputs to capture orthogonal information.
  • Learned Neural Solver: An MLP takes both $(\hat{S}, Z_{\text{comp}})$ and Fourier-encoded auxiliary capacitor values ($C_1, C_2$) to directly predict downstream design performance, naturally adapting to minor imperfections in the simulator's output.

Datasets

Because no public benchmark existed for this task, the authors synthesized and open-sourced a large-scale dataset (~200 GB compressed) of 61,515 free-form passive layouts modeled in 22nm CMOS technology:

  • Two Layout Families: Contour-seeded masks (expert-designed loops mutated with random pixels) and RandPath-seeded masks (random connected paths between ports, mirrored for symmetry, plus random pixels).
  • Broad Sweep: Every layout is paired with 200 randomly sampled capacitor contexts $(C_1, C_2)$ and evaluated across 501 frequencies from 10 to 60 GHz (0.1 GHz steps), covering input, interstage, and output amplifier placements.
Figure 3: Example layouts from the two passive layout distributions.

Key Insights and Ideas

  • Accurate physics $\neq$ usable engineering metrics: Simply training a great EM surrogate isn't enough; downstream analytical solvers amplify tiny regression errors. Pairing a neural simulator with a learned solver absorbs those errors gracefully.
  • Side-channels help explicit supervision: Removing $Z_{\text{comp}}$ actually hurts the explicit EM prediction $|\hat{S}|$ at high frequencies. Without the side-channel, downstream gradients force the explicit EM representation to contort itself to satisfy sensitive circuit metrics rather than just learning clean electromagnetics.
  • Randomness breeds generalization: Models trained on structured, expert-seeded contours fail completely when tested on random-path layouts ($R^2_{\text{design}} = 0.036$). Flipping the script—training on messy random paths and testing on expert contours—transfers remarkably well ($R^2_{\text{design}} = 0.646$). Exploring weird, randomized geometries teaches the network broader physical rules than staying near human-designed templates.

Key Results

  • High Accuracy: Scaling from a 5.4M base model to a 21M-parameter model yields $R^2_{\text{EM}} > 0.993$ and $R^2_{\text{design}}$ between $0.939$ and $0.971$ across input, interstage, and output matching networks (with $R^2 > 0.98$ on almost all individual targets except max gain, which sits around $\sim 0.90$).
  • Massive Speedup: On a single RTX 2080 Ti GPU, the neural simulator completes 121 full-frequency simulations per second, and the neural solver runs 25,069 context evaluations per second—orders of magnitude faster than a 20-minute traditional EM run.
  • Zero-Shot Frequency Interpolation: Queried on a $100\times$ denser grid (0.001 GHz spacing), the model interpolates smoothly between unseen frequencies, though slight jitter appears near 50–60 GHz.
  • Clean Decomposition: Dependence regularization slashes correlation between $\hat{S}$ and $Z_{\text{comp}}$ by 96% (from 0.149 to 0.006) with virtually no drop in design accuracy ($0.967 \to 0.964$).

Limitations and Future Work

  • Fixed Grid & Process: Checkpoints are locked to an $18 \times 18$ two-layer grid, symmetric topologies, and a single semiconductor process; changing resolution or fabrication tech requires retraining.
  • No Hard Physics Guarantees: Unlike analytical equations, the neural network does not strictly enforce physical laws like passivity (meaning it could occasionally predict a passive metal trace generating tiny amounts of energy), though larger models violate this less often.
  • Next Steps: The authors point toward tokenizing layouts as variable-length patch sequences (like Vision Transformers) to support arbitrary grid sizes, non-uniform frequency sampling to smooth out high-frequency jitter, and conditioning on material properties so a single foundation simulator can span multiple chip technologies.

Summary updated

BibTeX
@inproceedings{mao2026end,
  author = {Yuhao Mao and Chenhao Chu and Martin Vechev and Hua Wang},
  title = {{End-to-End Neural Modeling of EM Response and Design Performance for Free-Form RFIC Passives}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1jB1kt5Wfx},
}
Figure