Improving Generative Inverse Design of Rectangular Patch Antennas with Test-Time Optimization

Beck LaBash, Shahriar Khushrushahi, Fabian Ruehle · DOI

TL;DR

This paper introduces a novel two-stage deep learning framework for designing rectangular patch antennas. It uses generative models to translate desired antenna performance (frequency response) into physical designs, significantly improving accuracy and efficiency through test-time optimization. This approach offers a more automated and scalable way to design antennas for specific applications.

What Problem Does This Paper Address?

Designing antennas, particularly patch antennas, for optimal performance is a complex and time-consuming process. Engineers typically rely on a combination of analytical approximations and computationally expensive full-wave electromagnetic (EM) simulations. While these methods can guide design, they are often iterative and tedious, especially when trying to achieve a precise frequency response (how well an antenna transmits or receives at different frequencies). The core challenge is "inverse design": starting with a desired performance and finding the antenna geometry that produces it. This is difficult because the relationship between geometry and performance is highly nonlinear, and there can be many possible geometries for a single desired response (non-unique solutions). Furthermore, obtaining large, standardized datasets for training deep learning models is hindered by the cost of simulations.

Methods

The paper proposes a two-stage generative framework:

  1. Stage 1: Latent Representation of S11-Responses: A Variational Autoencoder (VAE) is trained on existing antenna simulation data. This VAE learns to compress the complex frequency response curves (represented by the reflection coefficient, S11) into a lower-dimensional "latent space." This latent space captures the essential variations of physically realizable antenna responses. At test time, a search is performed within this latent space to find a representation that closely matches the idealized target response. This ensures that the generated responses are physically plausible.
  2. Stage 2: Conditional Design Generation: A Conditional Variational Autoencoder (CVAE) is trained. This CVAE takes the latent representation of the desired frequency response (from Stage 1) and generates the corresponding antenna design parameters (length, width, and feed position). To ensure the generated design is truly conditioned on the desired response and not just on some internal representation, an adversarial predictor is used. This predictor tries to guess the desired response from the latent code of the design; the CVAE's encoder is trained to make this prediction difficult, forcing the latent code to encode only design-specific information, not response information.

Test-Time Optimization: Crucially, the paper emphasizes enhancing the generated designs after the initial generation. This involves:

  • Generating Multiple Candidates: Sampling multiple potential frequency responses and then generating multiple designs for each, selecting the best one.
  • Optimizing a Single Candidate: Using gradient-based optimization on the latent code of the generated design to satisfy additional constraints, such as manufacturability or geometric feasibility, without sacrificing the desired frequency response.

Datasets

The authors created a dataset of 1292 rectangular patch antenna designs and their corresponding S11 frequency response curves. These were generated using the openEMS electromagnetic field solver, with fixed substrate parameters. The dataset covers a range of antenna dimensions and feed positions, and the S11 responses were simulated across 1000 regularly spaced frequencies.

Key Insights and Ideas

  • Two-Stage Generative Approach: Decoupling the learning of physically realizable response curves (Stage 1) from the generation of designs based on those curves (Stage 2) is a robust strategy. It avoids feeding potentially unrealistic targets directly to the design generator.
  • Latent Space Search for Realism: Searching within the VAE's latent space for target responses ensures that the generated designs are based on plausible electromagnetic behavior, mitigating issues with out-of-distribution targets.
  • Adversarial Disentanglement for Control: Using an adversarial predictor in the CVAE is key to ensuring that the generated designs are genuinely controlled by the desired frequency response, not by some hidden information in the latent code.
  • Test-Time Compute is Powerful: The paper strongly advocates for leveraging computational resources after training. Test-time optimization (sampling multiple candidates and optimizing them) significantly boosts design accuracy and allows for incorporating secondary objectives like manufacturability, without requiring more complex models or larger training datasets. This is a major takeaway.

Key Results

  • The two-stage framework successfully generates rectangular patch antenna designs that closely match idealized target frequency responses.
  • Increasing the "test-time compute budget" (by sampling more candidate response curves and generating more designs per curve) leads to demonstrably better and more consistent antenna designs. For instance, increasing the budget from 1 curve x 1 design to 10 curves x 20 designs resulted in improved accuracy in matching target responses, as shown in Figure 4.
  • The optimization of the latent code ($z_x$) for auxiliary geometric criteria (like manufacturability) did not negatively impact the accuracy of the desired frequency response, demonstrating the success of the adversarial disentanglement.
  • Training times are relatively short: Stage 1 VAE (15 min), Stage 2 CVAE (5 min), and Surrogate Scorer (15 min) on an Apple M2 chip.

Limitations and Future Work

  • Generalization to Higher-Order Modes: While the framework aims for desired responses, the generated geometries sometimes exploit higher-order or coupled modes rather than solely the dominant TM10 mode, meaning exact agreement with simple analytical models isn't always expected.
  • Depth Requirement at Higher Frequencies: In one example (fo = 5.0 GHz), the generated design failed to meet the specified depth requirement even after extensive search, suggesting limitations in achieving very stringent performance targets.
  • Future Work: The authors suggest that the framework naturally generalizes to more complex antenna geometries and multi-element arrays. The test-time optimization mechanism can also be extended to incorporate other auxiliary design constraints beyond manufacturability.

Summary updated

BibTeX
@misc{labash2025improving,
  author = {Beck LaBash and Shahriar Khushrushahi and Fabian Ruehle},
  title = {{Improving Generative Inverse Design of Rectangular Patch Antennas with Test-Time Optimization}},
  year = {2025},
  eprint = {2505.18188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18188},
}
Figure