[Paper Review] WaveY-Net: Physics-augmented deep learning for high-speed electromagnetic simulation and optimization
WaveY-Net is a physics-augmented convolutional neural network that predicts electromagnetic field distributions in dielectric photonic structures with ultra-high speed and high accuracy by combining data-driven learning with discrete Maxwell’s equations as physical constraints. It achieves sub-1% normalized mean absolute error in field predictions and enables efficient freeform optimization of metagratings, demonstrating its potential as a scalable Maxwell simulator replacement.
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.
Motivation & Objective
- To overcome the computational bottleneck of conventional Maxwell solvers in simulating large-scale photonic structures.
- To develop a high-speed surrogate simulator for electromagnetic field prediction that maintains accuracy across diverse dielectric photonic geometries.
- To integrate Maxwell’s equations directly into a deep learning framework to ensure physical consistency and improve generalization.
- To enable efficient local and global freeform optimization of metagratings using the trained WaveY-Net model.
- To demonstrate that physics-augmented neural networks can serve as viable, scalable replacements for traditional Maxwell solvers in photonic design.
Proposed method
- WaveY-Net employs a UNet-based architecture to predict magnetic near-field distributions from a single unit cell image input.
- The model is trained using a hybrid loss function combining data loss (deviation from ground truth magnetic fields) and Maxwell loss (deviation from discrete Maxwell’s equations).
- Electric field maps are computed from predicted magnetic fields using a discrete form of Ampère’s law, ensuring consistency with Maxwell’s equations.
- The Maxwell loss is computed via a discretized wave equation residue that enforces physical relationships between neighboring voxels.
- Periodic boundary conditions are applied along vertical edges and Dirichlet conditions along horizontal edges to ensure a well-posed loss function.
- The network is trained using Adam optimizer with weight decay and exponential learning rate decay over 200 epochs on a 9:1 train-test split.

Experimental results
Research questions
- RQ1Can a deep learning model trained on electromagnetic field data achieve high accuracy while enforcing Maxwell’s equations as physical constraints?
- RQ2To what extent does incorporating discrete Maxwell’s equations into the loss function improve generalization and physical consistency in field prediction?
- RQ3Can a physics-augmented neural network serve as a fast and accurate surrogate simulator for photonic device optimization?
- RQ4How does the performance of WaveY-Net compare to conventional Maxwell solvers in terms of speed, accuracy, and scalability for freeform design?
- RQ5Can the predicted fields from WaveY-Net be effectively used in adjoint-based optimization for metagratings?
Key findings
- WaveY-Net achieves a normalized mean absolute error (MAE) of less than 1% for the predicted magnetic field components, indicating high accuracy.
- The model predicts electric field components with normalized MAE below 1.5% by computing them from predicted magnetic fields using a discrete Ampère’s law.
- The Maxwell loss component ensures that the predicted fields satisfy the discrete wave equation residue with a normalized MAE of approximately 0.5%.
- The full electromagnetic field prediction achieves a normalized MAE of less than 1.2% across all components, demonstrating robustness and consistency.
- WaveY-Net enables real-time optimization of metagratings using both local and global freeform design strategies, significantly outperforming conventional simulation-based methods in speed.
- The adjoint gradient computation from WaveY-Net predictions enables effective optimization, with gradient magnitudes normalized and filtered to respect material constraints.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.