Inverse design and flexible parameterization of meta-optics using algorithmic differentiation

Shane Colburn, Arka Majumdar

Abstract

Ultrathin meta-optics offer unmatched, multifunctional control of light. Next-generation optical technologies, however, demand unprecedented performance. This will likely require design algorithms surpassing the capability of human intuition. For the adjoint method, this requires explicitly deriving gradients, which is sometimes challenging for certain photonics problems. Existing techniques also comprise a patchwork of application-specific algorithms, each focused in scope and scatterer type. Here, we leverage algorithmic differentiation as used in artificial neural networks, treating photonic design parameters as trainable weights, optical sources as inputs, and encapsulating device performance in the loss function. By solving a complex, degenerate eigenproblem and formulating rigorous coupled-wave analysis as a computational graph, we support both arbitrary, parameterized scatterers and topology optimization. With iteration times below the cost of two forward simulations typical of adjoint methods, we generate multilayer, multifunctional, and aperiodic meta-optics. As an open-source platform adaptable to other algorithms and problems, we enable fast and flexible meta-optical design.

Introduction: The Challenge of Meta-Optical Design

Designing meta-optics—ultrathin surfaces covered in millions of subwavelength "scatterers"—is a massive optimization challenge. Traditional "intuition-based" design cannot handle the billions of degrees of freedom required for next-generation applications like augmented reality or high-efficiency polarizers.

While inverse design (using algorithms to find a structure that matches a desired output) is the current gold standard, it usually relies on the adjoint method. The adjoint method is powerful but often requires researchers to manually derive complex gradient equations for every new type of scatterer or geometry. Furthermore, standard simulation tools like Rigorous Coupled-Wave Analysis (RCWA) involve "degenerate eigenproblems" (mathematical scenarios where different modes have the same energy), which typically break the automatic differentiation tools used in modern machine learning.

Methods: Physics as a Computational Graph

The researchers bridge the gap between physics and machine learning by formulating RCWA as a computational graph in TensorFlow. By implementing the entire RCWA physics engine—from Fourier expansions to the Redheffer star product—using differentiable operations, they created a "Differentiable RCWA" framework.

Computational graph of the differentiable RCWA framework, treating meta-optics as a neural network.

Key technical innovations include:

  • Handling Degeneracy: To solve the non-differentiable eigenproblem issue, they applied a Lorentzian broadening regularization scheme. This "smooths" the math, allowing the computer to calculate gradients even when eigenvalues are identical or complex.
  • Wirtinger Calculus: This mathematical framework is used to handle derivatives of complex-valued functions, essential for describing the phase and amplitude of light.
  • Flexible Parameterization: Because the system is built on algorithmic differentiation (AD), a designer can switch between topology optimization (treating every pixel as a variable) and shape optimization (adjusting specific parameters like cylinder radius) without re-deriving any math.

Key Results and Performance

The core innovation is treating photonic parameters as trainable weights, optical sources as inputs, and device performance as a loss function. This allows photonics researchers to leverage the massive software ecosystem built for AI.

Performance benchmarks showing gradient accuracy (a), iteration efficiency (b), and GPU speedup (c).

The framework demonstrates significant improvements over traditional methods:

  • Efficiency through Reuse: In traditional adjoint methods, at least two full simulations are required for a gradient. By using AD and caching eigenvectors/values, the authors reduced the cost of a gradient update to just 1.24x the cost of a single simulation.
  • Speed and Accuracy: The method achieved a 14x to 24x speedup on GPUs compared to CPUs, with gradients maintaining a mean fractional error of only 0.56% compared to finite difference methods.
  • Multilayer Design: The framework makes it trivial to design "volumetric" meta-optics, such as a 10-layer device that deflects Red, Green, and Blue light to the same 60° angle—a feat extremely difficult for single-layer surfaces.

Conclusion

While this method represents a significant leap forward, it still faces challenges such as local optima and the local phase approximation for full metasurfaces. Future directions include extending the framework to non-periodic structures and integrating fabrication constraints directly into the backpropagation chain. As an open-source platform, this work enables fast and flexible meta-optical design for the next generation of optical technologies.

Summary updated

BibTeX
@inproceedings{colburn2021inverse,
  author = {Shane Colburn and Arka Majumdar},
  title = {{Inverse design and flexible parameterization of meta-optics using algorithmic differentiation}},
  booktitle = {Communications},
  year = {2021},
  doi = {10.1038/s42005-021-00568-6},
}
Figure