Accelerated design of arbitrary meta-optics using a computational graph

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 workhorse continuous adjoint method, this requires explicitly deriving gradients—sometimes infeasible for complex photonics problems. Existing techniques also comprise a patchwork of application-specific algorithms, each constrained in scope and scatterer type. We instead 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 minimum achievable with the continuous adjoint method, 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

Meta-optics, including metasurfaces and metagratings, utilize subwavelength structures to manipulate light with extraordinary precision. However, the design space for these devices is vast; a single centimeter-scale lens can contain billions of individual scatterers, making manual design impossible. While inverse design—where an algorithm determines the structure based on a desired performance goal—has become the standard, it remains computationally expensive and mathematically rigid.

Researchers at the University of Washington have introduced a new paradigm by treating meta-optic design as a "trainable" neural network. By implementing the physics of light—specifically Rigorous Coupled-Wave Analysis (RCWA)—as a differentiable computational graph, they have achieved optimization speeds that surpass traditional adjoint methods while providing the flexibility to design complex, multi-layered optical systems.

The Challenge: Beyond the Adjoint Method

Traditionally, the "adjoint method" is the primary tool for inverse design. It allows researchers to calculate how changing a design parameter affects performance. However, the adjoint method typically requires designers to manually derive complex mathematical gradients for every new material or geometry. This has led to a fragmented landscape of application-specific tools.

Furthermore, the standard solver for periodic structures, RCWA, involves an "eigenproblem" that is notoriously difficult to differentiate. When dealing with real-world optics, researchers often encounter "degenerate" (overlapping) eigenvalues, which cause standard gradient calculations to fail or become unstable.

Methodology: Physics as a Computational Graph

The researchers bridged the gap between deep learning and nanophotonics by formulating RCWA within TensorFlow. This approach offers several key innovations:

1. Algorithmic Differentiation (AD)

Instead of manual derivations, the framework uses "reverse-mode" AD—the same backpropagation algorithm used to train large-scale AI models. In this setup, physical parameters (such as the diameter of a nanopost) are treated as "trainable weights," and the optical performance is defined as the "loss function."

2. Solving the Eigenproblem with Lorentzian Broadening

To overcome the instability of gradients in the presence of degenerate eigenvalues, the team implemented a generalization of eigendecomposition gradients using Lorentzian broadening. This regularization technique makes previously undefined gradients computable and stable, allowing the optimizer to navigate complex physical landscapes without crashing.

3. Hardware Acceleration and End-to-End Differentiability

By building the framework on a machine learning backbone, the entire simulation naturally leverages GPUs and TPUs. Additionally, the team incorporated fabrication constraints—such as blurring and thresholding filters—directly into the differentiable graph. This ensures that the resulting designs are not just theoretically optimal but are also manufacturable.

Key Insights and Performance

The framework demonstrates that treating a rigorous Maxwell’s equations solver as a layer in a computational pipeline yields significant efficiency gains:

  • Efficiency through Reuse: AD was found to be faster than the standard adjoint method in this context. By reusing eigenvectors and eigenvalues calculated during the "forward" pass, the cost of calculating gradients was reduced to just 24% more than a single simulation, compared to the 100% overhead typical of traditional adjoint methods.
  • Unified Optimization: The framework handles both "topology optimization" (free-form pixel-based design) and "shape optimization" (adjusting specific geometric dimensions) seamlessly, without requiring new mathematical derivations for each case.
  • Speed: The implementation achieved 14x to 24x speedups when running on a GPU compared to a CPU-based execution.

Results and Validation

The framework was validated against gold-standard solvers, including S4 and Lumerical FDTD. Gradient accuracy was confirmed with a mean fractional error of only 0.56% compared to ground-truth finite difference calculations.

Practical applications demonstrated by the team include:

  • High-Performance Polarizers: A single-layer device achieving a 22 dB extinction ratio.
  • Multilayer Volumetric Gratings: A 10-layer device capable of simultaneously deflecting Red, Green, and Blue light to 60° with high efficiency—a critical component for next-generation AR/VR waveguides.
  • Aperiodic Metalenses: A polarization-multiplexed metalens that focuses horizontal and vertical light into two distinct focal points.

Limitations and Future Outlook

While powerful, the framework currently relies on the local phase approximation for full metasurface designs. This assumes each scatterer behaves as if it were in a perfectly periodic environment, which can lose accuracy in high-density or low-contrast scenarios. Additionally, the Lorentzian broadening provides an approximate rather than mathematically exact gradient, though results show this approximation is highly effective for optimization.

Future work will look toward extending this framework to other areas of photonics, such as integrated photonic circuits, and incorporating more robust routines to account for fabrication imperfections. By open-sourcing the tool, the researchers have provided a flexible platform for the broader photonics community to accelerate the design of the next generation of optical technologies.

Code Availability: The framework is open-source and available at github.com/scolburn54/rcwa_tf.

Summary updated

BibTeX
@inproceedings{colburn2021accelerated,
  author = {Shane Colburn and Arka Majumdar},
  title = {{Accelerated design of arbitrary meta-optics using a computational graph}},
  booktitle = {Communications},
  year = {2021},
  doi = {10.1038/s42005-021-00568-6},
}
Figure