Abstract
The calculation of electromagnetic field distributions within structured media is central to the optimization and validation of photonic devices. We introduce WaveY-Net, a hybrid data- and physics-augmented convolutional neural network that can predict electromagnetic field distributions with ultra fast speeds and high accuracy for entire classes of dielectric photonic structures. This accuracy is achieved by training the neural network to learn only the magnetic near-field distributions of a system and to use a discrete formalism of Maxwell's equations in two ways: as physical constraints in the loss function and as a means to calculate the electric fields from the magnetic fields. As a model system, we construct a surrogate simulator for periodic silicon nanostructure arrays and show that the high speed simulator can be directly and effectively used in the local and global freeform optimization of metagratings. We anticipate that physics-augmented networks will serve as a viable Maxwell simulator replacement for many classes of photonic systems, transforming the way they are designed.
Introduction
Designing modern photonic devices—such as antennas, metasurfaces, and integrated circuits—requires precise calculations of electromagnetic field interactions with structured materials. Traditionally, this relies on "full-wave" solvers like Finite-Difference Frequency-Domain (FDFD). While highly accurate, these solvers are computationally expensive, requiring the inversion of massive matrices. This creates a significant bottleneck during device optimization, where thousands of simulations may be required.
Standard deep learning (DL) models have been proposed as fast "surrogate" simulators, but they often struggle with wavelike phenomena. Without an innate understanding of physics, these models frequently produce non-physical noise and fail to generalize to device layouts outside their training distribution. WaveY-Net addresses these challenges by acting as a high-speed surrogate that explicitly incorporates physical constraints.
Methodology
WaveY-Net improves upon standard convolutional neural network architectures (specifically the UNet) by integrating a discrete electromagnetic formalism directly into its learning process. The methodology rests on two primary pillars:
- Physics-Informed Loss Function: The network is optimized using a composite loss function. In addition to a standard data loss ($L_{data}$) comparing predictions to ground truth, a "Maxwell loss" ($L_{Maxwell}$) evaluates how well the predicted fields satisfy Maxwell’s equations. This acts as a spatial filter, enforcing physical consistency and smoothness in the wave patterns.
- Field Interdependence via Yee Grids: Rather than redundantly learning all field components, WaveY-Net predicts only the magnetic field ($H_y$). It then utilizes a discrete version of Ampere’s Law, calculated on a staggered Yee grid, to analytically derive the electric fields ($E_x$ and $E_z$). This ensures that the relationship between $E$ and $H$ is baked into the architecture by design.
Datasets and Training
The model was trained on 30,000 random device layouts of periodic silicon nanostructures (metagratings), with ground truth data generated via the Ceviche FDFD solver. The evaluation was performed on a separate test set of 3,000 devices. Given a design space of approximately 300 billion unique configurations, the model's performance serves as a rigorous test of its generalization capabilities.
Results and Discussion
WaveY-Net demonstrates significant improvements in both efficiency and accuracy over traditional and data-only deep learning approaches. Because the model "understands" the underlying rules of electromagnetics, it achieves high accuracy with roughly 10x less training data than a standard UNet.
Computational Speedup
The most striking result is the reduction in simulation time. A single WaveY-Net simulation is approximately 700x faster than a conventional FDFD solver. When leveraged for parallel batch processing, the speedup reaches nearly 10,000x.
Accuracy and Optimization
In predicting diffraction efficiency, WaveY-Net achieved an average error of only 0.67%, a marked improvement over the 3.7% error observed in data-only models. Furthermore, because WaveY-Net is a neural network, the entire simulation process is differentiable. This allows it to be integrated into adjoint optimization pipelines, enabling near-instantaneous gradient calculations. The authors successfully used WaveY-Net to design metagratings with over 80% efficiency, matching the performance of designs created with gold-standard solvers in a fraction of the time.
Conclusion
WaveY-Net represents a significant step toward physics-augmented machine learning in photonics. While currently focused on 2D simulations, the architecture provides a roadmap for 3D electromagnetic modeling. Future work will explore parameterizing the model for varying wavelengths and refractive indices, potentially leading to "foundation models" for electromagnetic design. Additionally, WaveY-Net could serve as a high-quality preconditioner for rigorous solvers, further accelerating the convergence of traditional numerical methods.
Summary updated