Inverse design of photonic crystals through automatic differentiation

Gradient-based inverse design in photonics has already achieved remarkable results in designing small-footprint, high-performance optical devices. The adjoint variable method, which allows for the efficient computation of gradients, has played a major role in this success. However, gradient-based optimization has not yet been applied to the mode-expansion methods that are the most common approach to studying periodic optical structures like photonic crystals. This is because, in such simulations, the adjoint variable method cannot be defined as explicitly as in standard finite-difference or finite-element time- or frequency-domain methods. Here, we overcome this through the use of automatic differentiation, which is a generalization of the adjoint variable method to arbitrary computational graphs. We implement the plane-wave expansion and the guided-mode expansion methods using an automatic differentiation library, and show that the gradient of any simulation output can be computed efficiently and in parallel with respect to all input parameters. We then use this implementation to optimize the dispersion of a photonic crystal waveguide, and the quality factor of an ultra-small cavity in a lithium niobate slab. This extends photonic inverse design to a whole new class of simulations, and more broadly highlights the importance that automatic differentiation could play in the future for tracking and optimizing complicated physical models.

[1]  Shanhui Fan,et al.  Method for sensitivity analysis of photonic crystal devices. , 2004 .

[2]  Vincenzo Savona,et al.  Automated optimization of photonic crystal slab cavities , 2014, Scientific Reports.

[3]  Steven G. Johnson,et al.  Cavity-enhanced second-harmonic generation via nonlinear-overlap optimization , 2015, 1505.02880.

[4]  Frederic Wurtz,et al.  Automatic Differentiation Applied for Optimization of Dynamical Systems , 2010, IEEE Transactions on Magnetics.

[5]  Jorge Nocedal,et al.  Algorithm 778: L-BFGS-B: Fortran subroutines for large-scale bound-constrained optimization , 1997, TOMS.

[6]  Zin Lin,et al.  Enhanced Spontaneous Emission at Third-Order Dirac Exceptional Points in Inverse-Designed Photonic Crystals. , 2016, Physical review letters.

[7]  Michael Innes,et al.  Don't Unroll Adjoint: Differentiating SSA-Form Programs , 2018, ArXiv.

[8]  Lifeng Li,et al.  Use of Fourier series in the analysis of discontinuous periodic structures , 1996 .

[9]  Vaibhav Dixit,et al.  A Comparison of Automatic Differentiation and Continuous Sensitivity Analysis for Derivatives of Differential Equation Solutions , 2018, 2021 IEEE High Performance Extreme Computing Conference (HPEC).

[10]  Steven G. Johnson,et al.  Formulation for scalable optimization of microcavities via the frequency-averaged local density of states. , 2013, Optics express.

[11]  Ian A. D. Williamson,et al.  Forward-Mode Differentiation of Maxwell's Equations , 2019, ACS Photonics.

[12]  Andreas Griewank,et al.  ADIFOR - Generating Derivative Codes form Fortran Programs , 1992, Sci. Program..

[13]  Shanhui Fan,et al.  Wave physics as an analog recurrent neural network , 2019, Science Advances.

[14]  Ashish Agarwal,et al.  TensorFlow Eager: A Multi-Stage, Python-Embedded DSL for Machine Learning , 2019, SysML.

[15]  E. Drouard,et al.  Tailoring dispersion of room temperature exciton-polaritons with perovskite-based subwavelength metasurfaces. , 2020, Nano letters.

[16]  Q. Lin,et al.  High-Q two-dimensional lithium niobate photonic crystal slab nanoresonators , 2018 .

[17]  Jorge Nocedal,et al.  A Limited Memory Algorithm for Bound Constrained Optimization , 1995, SIAM J. Sci. Comput..

[18]  Dries Vercruysse,et al.  Nanophotonic inverse design with SPINS: Software architecture and practical considerations , 2019, Applied Physics Reviews.

[19]  Shanhui Fan,et al.  Doubly resonant χ(2) nonlinear photonic crystal cavity based on a bound state in the continuum , 2019, Optica.

[20]  Ole Sigmund,et al.  Topology optimized mode multiplexing in silicon-on-insulator photonic wire waveguides. , 2016, Optics express.

[21]  V. Zabelin,et al.  Numerical investigations of two-dimensional photonic crystal optical properties, design and analysis of photonic crystal based structures , 2009 .

[22]  R. E. Wengert,et al.  A simple automatic derivative evaluation program , 1964, Commun. ACM.

[23]  S. Osher,et al.  Maximizing band gaps in two-dimensional photonic crystals by using level set methods , 2005 .

[24]  Tae Hee Lee,et al.  Adjoint Method for Design Sensitivity Analysis of Multiple Eigenvalues and Associated Eigenvectors , 2007 .

[25]  Steven G. Johnson,et al.  Photonic Crystals: Molding the Flow of Light , 1995 .

[26]  Susumu Noda,et al.  Photonic crystal nanocavity with a Q factor exceeding eleven million. , 2017, Optics express.

[27]  Alexander Y. Piggott,et al.  Inverse design and demonstration of a compact and broadband on-chip wavelength demultiplexer , 2015, Nature Photonics.

[28]  Laurent Hascoët,et al.  The Data-Flow Equations of Checkpointing in Reverse Automatic Differentiation , 2006, International Conference on Computational Science.

[29]  Steven J. Cox,et al.  Maximizing Band Gaps in Two-Dimensional Photonic Crystals , 1999, SIAM J. Appl. Math..

[30]  C. C. Wang,et al.  Nonlinear optics. , 1966, Applied optics.

[31]  Chan,et al.  Existence of a photonic gap in periodic dielectric structures. , 1990, Physical review letters.

[32]  Ali Ramadhan,et al.  Universal Differential Equations for Scientific Machine Learning , 2020, ArXiv.

[33]  Vincenzo Savona,et al.  Wide-band slow light in compact photonic crystal coupled-cavity waveguides , 2015 .

[34]  Eric Mazur,et al.  Topology-optimized dual-polarization Dirac cones , 2017, 1705.03574.

[35]  Eli Yablonovitch,et al.  Adjoint shape optimization applied to electromagnetic design. , 2013, Optics express.

[36]  Luis Arizmendi,et al.  Photonic applications of lithium niobate crystals , 2004 .

[37]  Dario Gerace,et al.  Photonic crystal slab cavity simultaneously optimized for ultra-high Q/V and vertical radiation coupling , 2017 .

[38]  Shanhui Fan,et al.  Adjoint Method and Inverse Design for Nonlinear Nanophotonic Devices , 2018, ACS Photonics.

[39]  David S. Touretzky,et al.  Advances in neural information processing systems 2 , 1989 .

[40]  Toshihiko Baba,et al.  Slow light in photonic crystals , 2008 .

[41]  Fei Wang,et al.  Demystifying differentiable programming: shift/reset the penultimate backpropagator , 2018, Proc. ACM Program. Lang..

[42]  Philippe Lalanne,et al.  Light Interaction with Photonic and Plasmonic Resonances , 2017, Laser & Photonics Reviews.

[43]  Kazuaki Sakoda,et al.  Nearly free-photon approximation for two-dimensional photonic crystal slabs , 2001 .

[44]  Dries Vercruysse,et al.  Analytical level set fabrication constraints for inverse design , 2019, Scientific Reports.

[45]  D. Gerace,et al.  Photonic-crystal slabs with a triangular lattice of triangular holes investigated using a guided-mode expansion method , 2006, 0706.0395.

[46]  Raj Mittra,et al.  Fourier transform of a polygonal shape function and its application in electromagnetics , 1983 .

[47]  Jelena Vucković,et al.  Inverse design in nanophotonics , 2018, Nature Photonics.

[48]  Stephen P. Boyd,et al.  Inverse design of a three-dimensional nanophotonic resonator. , 2011, Optics express.

[49]  Jascha Sohl-Dickstein,et al.  Neural reparameterization improves structural optimization , 2019, ArXiv.

[50]  R. Morandotti,et al.  All-optical signal processing platforms for CMOS compatible integrated nonlinear optics , 2014, 1404.3775.

[51]  Alan Richardson,et al.  Seismic Full-Waveform Inversion Using Deep Learning Tools and Techniques , 2018, 1801.07232.

[52]  C. K. Carniglia,et al.  Quantization of Evanescent Electromagnetic Waves , 1971 .

[53]  Andreas Griewank,et al.  Evaluating derivatives - principles and techniques of algorithmic differentiation, Second Edition , 2000, Frontiers in applied mathematics.

[54]  Gaël Varoquaux,et al.  The NumPy Array: A Structure for Efficient Numerical Computation , 2011, Computing in Science & Engineering.

[55]  Jesper Mørk,et al.  Systematic design of loss-engineered slow-light waveguides. , 2012, Journal of the Optical Society of America. A, Optics, image science, and vision.

[56]  Barak A. Pearlmutter,et al.  Automatic differentiation in machine learning: a survey , 2015, J. Mach. Learn. Res..

[57]  Ole Sigmund,et al.  Topology optimization for nano‐photonics , 2011 .

[58]  Steven G. Johnson,et al.  Block-iterative frequency-domain methods for Maxwell's equations in a planewave basis. , 2001, Optics express.

[59]  Richard B. Nelson,et al.  Simplified calculation of eigenvector derivatives , 1976 .

[60]  M. Sambridge,et al.  Automatic differentiation in geophysical inverse problems , 2005 .

[61]  Qiang Lin,et al.  High‐Q 2D Lithium Niobate Photonic Crystal Slab Nanoresonators , 2018, Laser & Photonics Reviews.

[62]  Shanhui Fan,et al.  Zero-Index Bound States in the Continuum. , 2018, Physical review letters.

[63]  Joel Nothman,et al.  SciPy 1.0-Fundamental Algorithms for Scientific Computing in Python , 2019, ArXiv.

[64]  Marin Soljacic,et al.  Bound states in the continuum , 2016 .

[65]  V. Savona,et al.  Global optimization of an encapsulated Si/SiO$_2$ L3 cavity for ultra-high quality factor , 2019, 1911.03361.

[66]  M. Giles Collected Matrix Derivative Results for Forward and Reverse Mode Algorithmic Differentiation , 2008 .

[67]  Amos Storkey,et al.  Advances in Neural Information Processing Systems 20 , 2007 .

[68]  James L. McClelland,et al.  Parallel distributed processing: explorations in the microstructure of cognition, vol. 1: foundations , 1986 .