Inverse design of multi-band terahertz metamaterial sensors with nested topologies via a transformer-conditioned variational autoencoder.
Abstract
Multi-band terahertz (THz) metamaterial sensors with nested topologies offer multiple resonance channels for complex sensing applications, but their inverse design is hindered by a high-dimensional coupled design space and the inherent one-to-many nature of the structure-to-spectrum mapping. Here, the inverse-design task is defined as generating nested sensor structures that reproduce prescribed bare absorption spectra. We propose a Transformer-conditioned variational autoencoder (T-CVAE) for the rapid inverse design of multi-band THz sensors. A unified 15-dimensional representation combines 12 continuous geometric parameters with three discrete topology masks, enabling nested 1SRR, 2SRR, and 3SRR structures to be modeled within a single framework. The model couples a spectral transformer with a peak-aware objective that constrains global amplitudes, normalized spectral gradients, and resonance regions. Probabilistic latent sampling generates multiple structurally distinct candidates for the same target spectrum, which are subsequently ranked by a forward surrogate using a peak-balanced score. On an independent test set of 6000 spectra, the framework achieves forward and surrogate-closure inverse Global MAEs of 0.01961 and 0.02566, respectively. For three independently constructed synthetic target spectra containing three, four, and five prescribed resonances, respectively, full-wave simulations recovered all 12 prescribed resonances, with mean absolute frequency deviations of 0.0300, 0.0191, and 0.0045 THz. These results establish a unified and efficient framework for the rapid exploration and on-demand inverse design of multi-topology THz metamaterial sensor structures with prescribed spectral responses.