원시데이터 수집 시스템
선정목록으로

Inverse Design of Photonic Devices with Strict Foundry Fabrication Constraints

간접 관련 필름·전자재료 · (13) 프리즘 필름 (11) 배리어 필름(15) 디스플레이 패널재료(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Martin F. Schubert — X Development LLC, 100 Mayfield Avenue, Mountain View, California 94043, United States
  2. Alfred K. C. Cheung — X Development LLC, 100 Mayfield Avenue, Mountain View, California 94043, United States
  3. Ian A. D. Williamson — X Development LLC, 100 Mayfield Avenue, Mountain View, California 94043, United States
  4. Aleksandra Spyra — X Development LLC, 100 Mayfield Avenue, Mountain View, California 94043, United States
  5. David H. Alexander — Google, 1600 Amphitheatre Parkway, Mountain View, California 94043, United States
DOI
10.1021/acsphotonics.2c00313
저널
ACS Photonics
발행년도
2022
발행기관
American Chemical Society
피인용수
48
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1021/acsphotonics.2c00313
토픽
Optical Coatings and Gratings
OpenAlex ID
W4282590114

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
(11) 배리어 필름, (15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
inverse design, nanophotonic devices, topology optimization, semiconductor foundries, photonic components
판단 근거
이 논문은 반도체 제조 공정의 제약 조건을 준수하면서 나노 광소자(photonic devices)를 설계하는 역설계(inverse design) 알고리즘을 다룹니다. 이는 코오롱인더스트리의 광학 필름(13)이나 디스플레이 관련 소재의 미세 구조 설계 및 공정 최적화 원리에 응용될 수 있습니다.
R&D 활용 포인트
광학 필름의 미세 구조(microstructure) 설계나 디스플레이용 박막 봉지재의 나노 패턴 최적화 시, 제조 공정의 한계(최소 선폭, 간격 등)를 고려한 시뮬레이션 및 설계 자동화 도구로 활용 가능합니다.
평가 입력
본문 56,761자 중 30,032자 발췌

초록

We introduce a new method for the inverse design of nanophotonic devices that guarantees that the resulting designs satisfy strict length scale constraints, including minimum width and spacing constraints required by commercial semiconductor foundries. The method adopts several concepts from machine learning to transform the problem of topology optimization with strict length scale constraints to an unconstrained stochastic gradient optimization problem. Specifically, we introduce a conditional generator for feasible designs and adopt a straight-through estimator for the backpropagation of gradients to a latent design. We demonstrate the performance and reliability of our method by designing several common integrated photonic components.

본문 56,761자

본문 펼치기
### Inverse design of photonic devices with strict foundry fabrication constraints Martin F. Schubert, <sup>1, a)</sup> Alfred K. C. Cheung, <sup>1, b)</sup> Ian A. D. Williamson, <sup>1, c)</sup> Aleksandra Spyra, <sup>1, d)</sup> and David H. Alexander <sup>2, e)</sup> 1) _X_ _Development_ _LLC,_ _100_ _Mayfield_ _Ave,_ _Mountain_ _View,_ _CA_ _94043_ 2) _Google,_ _1600_ _Amphitheatre_ _Pkwy,_ _Mountain_ _View,_ _CA_ _94043_ (Dated: June 14, 2022) We introduce a new method for inverse design of nanophotonic devices which guarantees that resulting designs satisfy strict length scale constraints - including minimum width and spacing constraints required by commercial semiconductor foundries. The method adopts several concepts from machine learning to transform the problem of topology optimization with strict length scale constraints to an unconstrained stochastic gradient optimization problem. Specifically, we introduce a conditional generator for feasible designs and adopt a straight-through estimator for backpropagation of gradients to a latent design. We demonstrate the performance and reliability of our method by designing several common integrated photonic components. I. INTRODUCTION Integrated photonic devices have led to game changing new capabilities in applications ranging from high-speed communications <sup>1</sup> to next-generation quantum computing platforms <sup>2</sup> and machine learning hardware accelerators <sup>3</sup> . These platforms stand to benefit from photonic components with improved performance, lower losses, larger bandwidths, and more compact footprints. However, achieving such multi-faceted specifications is extremely challenging through conventional intuition-backed design methodologies. In contrast, computational inverse design techniques can efficiently explore complex and high-dimensional design landscapes which are inaccessible to human designers. Enabled by adjoint variable methods <sup>4,5</sup>, gradient-based optimization techniques have proven to be among the most successful at producing photonic devices with high performance, with examples including wavelength-selective elements (e.g. multiplexers, filters, and resonators), signal routing elements (e.g. waveguide bends and couplers), and active components (e.g. modulators) <sup>6–16</sup> . The approach in gradient-based design strategies is to first formulate an objective function, calculated in terms of a device’s simulated performance. Adjoint methods allow these objective functions and their gradients to be efficiently computed at a cost of only two full-wave simulations <sup>4,5</sup>, independently of the number of degrees of freedom in a design. When used in the context of modern automatic differentiation frameworks (e.g. JAX and TensorFlow), these techniques enable flexible endto-end device optimization frameworks <sup>14,17</sup> . However, guaranteeing that an optimized design yields the desired a)Electronic mail: [mfschubert@gmail.com; Authors appear in order](mailto:mfschubert@gmail.com) of contribution. b)Electronic mail: [alfredkcc@x.team](mailto:alfredkcc@x.team) c)Electronic mail: [iwill@x.team](mailto:iwill@x.team) d)Electronic mail: [aspy@x.team](mailto:aspy@x.team) e)Electronic mail: [dhalexander@google.com](mailto:dhalexander@google.com) performance, while simultaneously satisfying the numerous design rules of modern semiconductor manufacturing processes <sup>18,19</sup>, still poses a major challenge. Particularly relevant for integrated photonic devices are the capabilities of the lithographic systems, which define constraints such as the minimum feature length scale that can be reliably printed. Elements of a design which are smaller than this length scale may print inconsistently or may be completely absent in the fabricated structure. Moreover, inclusion of a design feature with sub-resolution size can have broad yield implications. Thus, semiconductor foundries specify design rules which define the minimum width and minimum spacing of design features. Compliance with these rules, as validated by a design rule check (DRC), is typically a prerequisite for fabrication. There have been many proposals for DRC-compliant inverse design strategies. One class of strategies selects a design parameterization with intrinsic geometric length scale guarantees, e.g. by optimizing the placement of geometric primitives which already satisfy the desired minimum feature size constraints <sup>20</sup> . A related approach uses a parameterization which enables analytic constraints to be applied directly to the design degrees of freedom, e.g. by optimizing the coordinates of polygon vertices comprising shapes in the design mask <sup>21</sup> . However, the drawback in both of these strategies is that they offer up a limited landscape of potential designs. For example, when optimizing the vertices of a polygon, an optimizer will be unable to alter the topology of a design by closing or opening holes. In contrast, topology optimization strategies open up a much larger design landscape by parameterizing a design as a pixelated image, which is typically transformed by a sequence of convolutional filters and pixel-wise nonlinear functions <sup>16,22–27</sup> . These so-called density or threefield parameterizations allow a gradient-based optimization algorithm (e.g. LBFGS or MMA <sup>28</sup> ) to modify any pixel within the design and apply arbitrary changes to the topology. In practice however, there is often a tradeoff between maintaining design feasibility (binarization of the pixels and feature size constraints) and attaining high performance. This is because a continuous optimizer must traverse _infeasible_ regions of the design landscape before reaching _feasible_ regions, which may or may not have high performance. The most common strategy in topology optimization is to begin with a continuous optimization phase before gradually ramping up binarization and applying design rule constraints. However, if binarization is ramped up too quickly, a continuous optimizer will stall and fail to make progress towards improving performance. Similarly, constraints or penalties on the feature size must be introduced in a way which will not push the optimizer away from high performance regions of the parameter space. Often in these strategies, the selection of optimization hyper parameters and the detailed strategy for enforcing design feasibility is an art and, moreover, depends on both the type of device being optimized as well as the performance objective. In this work we propose an _always_ _feasible_ gradientbased inverse design framework with strict guarantees on DRC-compliance. The key features of our proposal are a _conditional_ _generator_ for feasible designs, which is combined with a _straight-through_ _estimator_ (STE) to enable gradient backpropagation. The combination of these two components yields a differentiable transform which can be incorporated into an computational graph, much like a convolutional filter or projection operator in densitybased topology optimization. We apply our framework to several practical photonic design challenges (a waveguide bend, a beam splitter, a waveguide mode converter, and a demultiplexer), and demonstrate that the approach reliably yields designs with high performance. II. METHODOLOGY A. Brush-based minimum length scale constraints In this section, we introduce a mathematical framework for measuring whether a binarized pixel array is DRC-compliant, focusing on the minimum width and minimum spacing rules commonly required by semiconductor foundries. In our framework, we consider binary arrays with values of _−_ 1 and +1, referring to these as _void_ and _solid_, respectively. During the course of a fabrication workflow, such designs may be converted to contours by off-the-shelf algorithms, such as marching squares or dual contouring <sup>29</sup> . All binary arrays can be realized by sequentially setting individual pixels to void or solid; conceptually, this is equivalent to the repeated placements and translations of single-pixel void or solid brushes. While a single-pixel brush can generate all possible binary arrays, some arrays are infeasible with larger brushes. In the trivial case, a single-pixel solid feature cannot be realized with a 3 _×_ 3 pixel solid brush, since centering the brush on a single pixel also sets adjacent pixels to solid. Throughout this paper, we refer to the pixel on which the brush is centered as a touch, _t_ of the brush. Figure 1. (a) Circular brush with diameter 13, and (b) notched square brush with width 13. Our goal is to determine whether a given design, _x_ is feasible with a some brush, _b_, i.e. to determine whether all its solid and void features can be realized with _b_ . When this is true, the condition _O_ ( _x, b_ ) = _¬O_ ( _¬x, b_ ) = _x_ (1) holds, where _O_ ( _x, b_ ) is the morphological opening of _x_ with brush _b_ and _¬_ is a logical _not_ operation which changes solid features into void features and void features into solid features, i.e. a value of -1 to 1 and a value of 1 to -1. The morphological opening operation is computed by the application of a binary erosion, _E_ followed by a dilation <sup>30</sup>, _D_ with the same brush, i.e. _O_ ( _x, b_ ) = _D_ ( _E_ ( _x, b_ ) _, b_ ). Intuitively, the dilation operation causes features in an image to expand while erosion causes features in an image to shrink. An illustration of these operations is provided in the supporting information. For a _b_ -feasible design _x_, _E_ ( _x, b_ ) erodes the solid features and recovers the solid brush touches, while _E_ ( _¬x, b_ ) recovers the void brush touches. Dilation of the touches then restores the solid and void pixels, respectively. Intuitively, if _x_ contains a small feature that is incompatible with _b_, then erosion will remove it entirely and no solid pixels will be restored by the dilation. Thus, the binary opening operation removes small features, while leaving feasible features unchanged. Length scale in a topology optimization context is typically associated with the minimum diameter of circular features. Thus, we say that if a design can be realized with an approximately circular brush _bL_ with a diameter of _L_ pixels, it has a minimum length scale of at least _L·d_, where _d_ is the design pixel pitch. The minimum length (a) (b) min width = 5 diameter = 13 min width = 11 brush width = 13 (a) (b) Figure 2. Random designs feasible for (a) diameter-13 circular brush, and (b) width-13 notched square brush. scale of the design is the largest value of _L_ for which Eqn. (1) is satisfied with brush _bL_ . When contours are obtained by dual contouring (i.e. outlining pixels, for binary designs), a design with minimum length scale will also have related minimum width and spacing, equal to the minimum width of the brush itself. An example circular brush with associated measurements is shown in Fig. 1a and an example design which is feasible with the circular brush is shown in Fig. 2a. We turn now to minimum width and spacing constraints which result from foundry design rules. Given a minimum width and spacing constraint <sup>31,32</sup>, there are many brushes for which the associated feasible designs satisfy the constraint. The smallest of these is the notched square, i.e. a square brush which is solid everywhere except at the corners, as shown in Fig. 1b. An example design is shown in Fig. 2b. When the constraint requires a physical minimum feature width and spacing of _w_, designs feasible with the notched square brush of width _L_ = _w/d_ +2 will satisfy the constraint. Thus, if we can require that our designs are feasible with a notched square brush of width _L_ = _w/d_ + 2, we are also guaranteed to satisfy width and spacing rules of size _w_ . Although reasoning about minimum width and spacing is straightforward for dual-contoured designs feasible with the notched-square brush, we have also extensively validated that such designs are design-rule compliant using industry standard design software such as KLayout <sup>31</sup> and Siemens Calibre Physical Verification <sup>32</sup> . B. Generator for feasible designs In this section we describe our method of inverse design subject to strict length scale constraints. We have shown that designs which are feasible with a certain brush _b_ ( _b_ feasible) will satisfy minimum length scale or width and spacing constraints. Properly, this can be considered a combinatorial optimization problem. However, our approach is to approximately solve this problem, by transforming it into an unconstrained stochastic gradient optimization problem. Critically, we use a conditional generator for feasible designs and a straight-through estimator (STE) for backpropagation; these two components are discussed subsequently. In general, a binary design _x_ can be produced by dilation with _b_ of the solid and void touches _t_ <sup>_s_</sup> _b_ <sup>and</sup> <sup>_t_</sup> _b_ <sup>_v_</sup> <sup>,</sup> <sup>i.e.</sup> <sup>_s_</sup> free <sup>=</sup> <sup>_¬D_</sup> <sup>(</sup> <sup>_pv_</sup> <sup>_s_</sup> _b_ <sup>and</sup> <sup>_t_</sup> _b_ <sup>_v_</sup> _b_ <sup>_v_</sup> <sup>,</sup> <sup>i.e.</sup> _x_ = _D_ ( _t_ <sup>_s_</sup> _b_ <sup>_s_</sup> _b_ <sup>_, b_</sup> <sup>) =</sup> <sup>_¬D_</sup> <sup>(</sup> <sup>_tv_</sup> _b_ <sup>_v_</sup> _b_ <sup>_, b_</sup> <sup>)</sup> (2) We consider the generation of _b_ -feasible arrays as a process in which _t_ <sup>_s_</sup> _b_ <sup>or</sup> <sup>_tv_</sup> _b_ <sup>are</sup> <sup>updated</sup> <sup>with</sup> <sup>a</sup> <sup>single-element</sup> change at each step. In this context, we introduce several touch states and pixel states which may be associated with each location at any step in the process. Defining these states for the solid case: _existing_ solid pixels are those which are assigned to solid by some touch in _t_ <sup>_s_</sup> _b_ <sup>,</sup> <sup>_s_</sup> _b_ <sup>or</sup> <sup>_tv_</sup> _b_ <sup>_s_</sup> _b_ <sup>,</sup> <sup>_s_</sup> existing <sup>=</sup> <sup>_D_</sup> <sup>(</sup> <sup>_t_</sup> _b_ <sup>_s_</sup> _p_ <sup>_s_</sup> _b_ <sup>_s, b_</sup> <sup>)</sup> <sup>_._</sup> (3) _Impossible_ solid touches are those which would assign an existing void pixel to solid, and consists of all pixels within some distance of existing void pixels, <sup>_s_</sup> impossible <sup>=</sup> <sup>_D_</sup> <sup>(</sup> <sup>_pv_</sup> _t_ <sup>_s_</sup> existing <sup>_v_</sup> <sup>_, b_</sup> <sup>)</sup> <sup>_._</sup> (4) _Valid_ solid touches are those which are not impossible and not already in _t_ <sup>_s_</sup> _b_ <sup>,</sup> <sup>_s_</sup> valid <sup>=</sup> <sup>_¬ts_</sup> _t_ <sup>_s_</sup> impossible <sup>_s_</sup> <sup>_∧¬t_</sup> _b_ <sup>_s_</sup> _b_ <sup>_s,_</sup> (5) where _∧_ is an element-wise logical _and_ operation. _Possi-_ _ble_ solid pixels are those obtained by dilating all existing or valid touches with _b_, i.e. they are those pixels which are or may be solid in a feasible array, _p_ <sup>_s_</sup> <sup>_s_</sup> possible <sup>=</sup> <sup>_D_</sup> <sup>(</sup> <sup>_ts_</sup> _b_ <sup>_s_</sup> _b_ <sup>_∨_</sup> <sup>_ts_</sup> valid <sup>_s_</sup> <sup>_, b_</sup> <sup>)</sup> <sup>_,_</sup> (6) where _∨_ is an element-wise logical _or_ operation. _Required_ solid pixels are those which are not existing and not possible for void, _p_ <sup>_s_</sup> <sup>_s_</sup> required <sup>=</sup> <sup>_¬ps_</sup> <sup>_s_</sup> existing <sup>_∧¬pv_</sup> possible <sup>_v_</sup> <sup>_._</sup> (7) _Resolving_ solid touches are those which are valid and would assign solid to a required-solid pixel, _t_ <sup>_s_</sup> required <sup>_s_</sup> <sup>_, b_</sup> <sup>)</sup> <sup>_∧_</sup> <sup>_ts_</sup> <sup>_s_</sup> valid <sup>_._</sup> (8) <sup>_s_</sup> resolving <sup>=</sup> <sup>_D_</sup> <sup>(</sup> <sup>_ps_</sup> Finally, _free_ touches are valid but only color existing pixels. _t_ <sup>_s_</sup> <sup>_pv_</sup> possible <sup>_∨_</sup> <sup>_pv_</sup> existing <sup>_v_</sup> <sup>_, b_</sup> <sup>)</sup> <sup>_∧_</sup> <sup>_ts_</sup> <sup>_s_</sup> valid <sup>_._</sup> (9) design: void Design Void pixels Solid pixels Void touches Solid touches A B C D E F A B C D E F design: unassigned design: solid pixel: impossible A B C D E F pixel: existing pixel: possible pixel: required touch: valid touch: invalid touch: existing A B C D E F touch: free touch: resolving A B C D E F 0 1 2 3 4 5 6 7 Figure 3. Design, pixels, and touches for an example traversal using the width-5 notched square brush. <u>Algorithm</u> <u>1</u> <u>Generator</u> <u>for</u> _<u>b</u>_ <u>-feasible</u> <u>designs</u> procedure Generator( _b_ ) initialize empty _t_ <sup>_s_</sup> _b_ <sup>_s_</sup> _b_ <sup>and</sup> <sup>_t_</sup> _b_ <sup>_v_</sup> _b_ while design is incomplete do update pixel and touch states if free touches exist then select all free touches else if resolving touches exist then select a single resolving touch else select a single valid touch Corresponding void touches and pixels are be computed using the process. Fig. 3 shows an example of pixels and touches computed from the steps above and a full example is illustrated in the Supporting Information. A scheme that generates feasible arrays is outlined in Algorithm 1. The algorithm begins with empty _t_ <sup>_s_</sup> _b_ <sup>and</sup> _t_ <sup>_v_</sup> _b_ <sup>and</sup> <sup>loops</sup> <sup>until</sup> <sup>all</sup> <sup>pixels</sup> <sup>are</sup> <sup>existing</sup> <sup>for</sup> <sup>either</sup> <sup>solid</sup> or void. At each step, the pixel and touch states are updated. If free touches exist, all are selected. If resolving touches exist, one of these is selected; otherwise, any of the valid touches are selected. The algorithm sets at least one pixel at every step, and thus requires at most _N_ iterations for a reward array with _N_ pixels. A basic implementation of the algorithm involves full-array erosion and dilation operations at each step, which have cost proportional to _O_ ( _N_ ), and leading to an overall cost _O_ ( _N_ <sup>2</sup> ). However, it is straightforward to implement windowed operations which have fixed cost independent of _N_, and so feasible design generation with _O_ ( _N_ ) complexity is possible. If touch selection is random, the algorithm simply yields a random feasible design. In practice, we greedily select the best touch as computed from a pixel reward array _θ_, where _θ_ is obtained from a latent design produced in the course of an optimization, and is fixed during each run of the generator. The total reward of a solid touch is the sum of _θ_ elements that would be set to solid were the touch to be made, i.e. the sum of _θ_ elements set by the touch. The reward of a void touch is the negative sum of elements set to void by the touch. A simple illustrated example of how rewards for touches are calculated can be found in the supporting information. With this change, the algorithm becomes a conditional generator of feasible designs, where _θ_ biases the feasible design generation. The designs in Fig. 2 have been created by running the algorithm on the same random reward array. To gain some intuition for why this scheme always produces feasible designs, consider that the algorithm will select exclusively solid or exclusively void until reaching a state where all remaining pixels are possible for both solid and void. In this state, no touch can lead to an invalid status. Since the starting state is one where all pixels are possible for both solid and void, we can see that the algorithm will never produce an invalid status. We emphasize that the full space of feasible designs of brush _b_ is accessible by Algorithm 1. This can be clearly seen, since e.g. if _θ_ = _x_ is provided, where _x_ is any feasible design, the output of the algorithm will simply be _x_ . C. Straight through estimator Algorithm 1 is not differentiable, and so it cannot be directly used with backpropagation in a gradient-based optimization setting. Drawing inspiration from the field of binary and quantized neural networks, we note that binary optimization can be viewed as topology optimization with a minimum length scale equal to a single pixel. Binary and quantized neural networks often make use of a STE in training, to backpropogate gradients through binary activation functions or to latent weights from which low-precision weights are obtained <sup>33</sup> . Specifically, in this approach one substitutes the gradient of a nondifferentiable function with that of an estimator, i.e. _<u>∂f</u>_ (10) _∂x_ <sup>_≈_</sup> _∂x_ <sup>_<u>∂</u>_</sup> <sup>_f_</sup> <sup>estimator</sup> A typical estimator used for binarization (e.g. via application of the sign function) is the identity operation. latent design transform conditional generator estimator feasible design electromagnetic simulator scattering matrix elements objective function scalar loss Figure 4. Computational graph of our inverse design scheme. Downward arrows indicate the forward computation, while upward arrows correspond to backpropagation. Gray boxes represent operations and text represents arrays or results. D. Computational graph The complete computational graph for the inverse design problem is depicted in Fig. 4. A latent design is passed through a transform, yielding the reward array _θ_ . This is passed to the conditional generator, which produces a feasible design. We pass the design to an electromagnetic simulation engine which computes scattering matrix elements; these are the inputs to an objective function, which computes a scalar loss value. Optionally, we symmetrize the transform output to favor symmetric feasible designs. All operations in this graph are differentiable, with the exception of the generator - for which we use the STE. Thus, we can compute an estimated gradient of the loss with respect to the latent design. For the transform, we have found that _D_ ( _t, b, β_ ) = tanh( _β_ ( _t_ ⊛ _b_ )) (11) is a good choice, where _β_ is a scalar hyperparameter in the range 2-8. The convolutional transform aids in the optimization, as it ensures that the reward array _θ_ is smooth, restricted in range, and has an associated length scale, determined by the brush size. The form of our estimator matches that of the transform. As with the transform, outputs of the estimator have a characteristic length scale and are restricted to the range ( _−_ 1 _,_ 1), just as outputs of the generator itself are. Thus, the estimator can be seen as a differentiable approximation of the conditional generator. The success of this estimator is consistent with the finding in binary neural networks that estimators which approximate their forward-pass counterpart outperform simpler functions <sup>34</sup> . The latent design is randomly initialized with a bias so that the first feasible design is fully solid, and it is updated iteratively using the Adam scheme <sup>35</sup>, which is a common choice for stochastic optimization problems in machine learning. We use a learning rate of 0.01, and _β_ 1 = 0 _._ 667 and _β_ 2 = 0 _._ 9 for the decay of the gradient and second moment exponential moving averages, respectively. Notably, our method does not require scheduling of hyperparameters or changes in parameterization during the course of an optimization, and gives a feasible design at every optimization step. We expect that this simplicity could be advantageous from the perspective of a photonic designer tasked with creating a new component. E. Objective function In a practical design application, one is generally concerned with creating a component that satisfies a performance specification, i.e. a desired level of insertion loss, return loss, and cross talk. We define such specification by defining a cutoff value _|S_ cutoff _|_ for the magnitude for each scattering parameter element of _S_ . Additionally, there is an implicit bound on the allowed values, which is imposed by physical constraints. For example, transmission magnitudes greater than unity are not possible for passive photonic components. Our scalar objective function has the form where _g_ is a vector of signs (+1 or -1) matching the size of _S_ . The values of _g_ are positive (+1) where the corresponding element of the cutoff array, _|S_ cutoff _|_ specifies the maximum value, and negative (-1) where _|S_ cutoff _|_ specifies the minimum value. _w_ valid also has the same size as _S_ and defines the range of allowed values for a scattering parameter element, which is defined as the distance between the performance cutoff, specified by _|S_ cutoff _|_, and the physical bound on the scattering parameter element. For example, a minimum transmission amplitude cutoff of 0 _._ 5 (-3 dB in power transmission) would have a _w_ valid of 0 _._ 5, because the maximum transmission possible is 1.0. All operations other than the min in the softplus of Eqn. (12) are element-wise. ����softplus _g_ <sup>_<u>|S</u>_</sup> min( <sup>_<u>|</u>_</sup> <sup>2</sup> <sup>_<u>−|</u>_</sup> _w_ <sup>_<u>S</u>_</sup> valid <sup><u>cutof</u></sup> ) <sup>f</sup> <sup>_<u>|</u>_</sup> <sup>2</sup> ����� ����2 �2 _,_ (12) _L_ ( _S_ ) = ����� III. RESULTS A. Nanophotonic optimization problems In this section we apply our proposed inverse design framework to several integrated photonic components operating in the O-band, demonstrating designs for a waveguide bend, a mode converter, a beamsplitter, and a wavelength demultiplexer <sup>36</sup> . All components are optimized for their characteristics within two 10 nm wavelength bands centered at 1270 nm and 1290 nm. Performance targets for the components are specified in terms of their scattering parameters, and are summarized in Table I. Simulations of the components are performed using Ceviche <sup>17</sup>, an open source 2D finite difference frequency domain (FDFD) simulator. Silicon ( _εr_ = 12 _._ 25) and silicon oxide ( _εr_ = 2 _._ 25) are used for solid and void materials, respectively. All components are coupled to waveguides having 400 nm width, and we deal with the fundamental waveguide mode unless noted otherwise. The waveguide bend features a 1 _._ 6 _×_ 1 _._ 6 _µ_ m <sup>2</sup> design region, with waveguides connecting to the left (port 1) and bottom (port 2). Given excitation from port 1, we aim to maximize transmission to port 2 while keeping backreflection low. Diagonal reflection symmetry is imposed, so that excitation from port 2 yields identical behavior. The spatial mode converter features a 1 _._ 6 _×_ 1 _._ 6 _µ_ m <sup>2</sup> design region, with waveguides connecting to the left and right. We seek designs that maximally convert the fundamental waveguide mode on the left (port 1) to the second order mode on the right (port 2), with minimal backreflection into port 1. The beamsplitter design region is 3 _._ 2 _×_ 2 _._ 0 _µ_ m <sup>2</sup> in size, with two waveguides connecting to the left (port 1 and port 4) and two waveguides connecting to the right (port 2 and port 3). Given excitation from port 1, the beamsplitter aims to divide power equally into port 2 and port 3 while minimizing backreflection into port 1 or transmission into port 4. We impose reflection symmetry along the horizontal and vertical axes, so that excitation from any other port yields identical behavior. The wavelength demultiplexer features a 6 _._ 4 _×_ 6 _._ 4 _µ_ m <sup>2</sup> design region, with one waveguide connecting to the left (port 1) and two waveguides connecting to the right (port 2 and port 3). Given excitation from port 1, wavelengths in the first band are directed to port 2 while wavelengths in the second band are directed to port 3. In the optimization context, we consider three wavelengths per band — the center and extremal wavelengths. The specifications are considered to be fulfilled if the criteria in I are satisfied for all wavelengths. Our design resolution matches the 10 nm simulation resolution, so that e.g. a circular brush with diameter 10 corresponds to a 100 nm length scale. 1260 1280 1300 Wavelength (nm) Figure 5. Evolution of a waveguide bend with 100 nm circular brush. Left: field magnitude for 1280 nm excitation with overlaid design. Right: power transmission into port 1 and 2, given excitation from port 1. B. Designs using 100 nm circular brush Fig. 5 shows optimization results for the waveguide bend with 100 nm circular brush. Upon initialization, the design is entirely silicon with no enclosed oxide. The initial design is poor, with low transmission to the out 0 10 20 30 40 0 10 20 30 40 0 10 20 30 40 0 10 20 30 40 0 10 20 30 40 0 10 20 30 40 0 10 20 30 40 <u>|S11|</u> <sup><u>2</u></sup> <u>|S21|</u> <sup>~~2~~</sup> Waveguide Mode Wavelength <u>bend</u> <u>converter</u> <u>Beamsplitter</u> <u>demultiplexer</u> _S_ 11 1270 nm _≤_ -20 dB _≤_ -20 dB _≤_ -20 dB _≤_ -20 dB <u>1290</u> <u>nm</u> _<u>≤</u>_ <u>-20</u> <u>dB</u> _<u>≤</u>_ <u>-20</u> <u>dB</u> _<u>≤</u>_ <u>-20</u> <u>dB</u> _<u>≤</u>_ <u>-20</u> <u>dB</u> _S_ 21 1270 nm _≥_ -0.5 dB _≥_ -0.5 dB _≥_ -3.5 dB _≥_ -3 dB <u>1290</u> <u>nm</u> _<u>≥</u>_ <u>-0.5</u> <u>dB</u> _<u>≥</u>_ <u>-0.5</u> <u>dB</u> _<u>≥</u>_ <u>-3.5</u> <u>dB</u> _<u>≤</u>_ <u>-20</u> <u>dB</u> _S_ 31 1270 nm - - _≥_ -3.5 dB _≤_ -20 dB <u>1290</u> <u>nm</u> <u>-</u> <u>-</u> _<u>≥</u>_ <u>-3.5</u> <u>dB</u> _<u>≥</u>_ <u>-3</u> <u>dB</u> _S_ 41 1270 nm - - _≤_ -20 dB <u>1290</u> <u>nm</u> <u>-</u> <u>-</u> _<u>≤</u>_ <u>-20</u> <u>dB</u> <u>-</u> Waveguide Mode <u>converter</u> <u>Beamsplitter</u> <u>bend</u> Table I. Performance specification for component power scattering parameters at the 1270 nm and 1290 nm wavelength bands. put port and substantial reflection back to the input port. Subsequent updates significantly modify the topology of the design, adding enclosed oxide features and developing isolated silicon features. We emphasize the key characteristic of our scheme - the design at every step is fully binary and satisfies the 100 nm length scale constraint. The target performance specification is achieved in 28 optimization steps, and the design continues to improve with more iterations. The lowest loss in the first 160 steps is found at step 122. Notably, the topology of this design differs from that at step 28, due to the fusing of two void features and the elimination of a third, along with changes in the shape of some solid features. The ability of our scheme to change topology while remaining feasible stands in contrast to some other methods, where the optimizer is locked in to a fixed topology once the optimization reaches an advanced state. For the mode converter, beamsplitter, and wavelength demultiplexer, the lowest-loss design from the first 160 optimization steps and corresponding field magnitudes are shown in Fig. 6. The scattering spectra for each is shown in Fig. 7, where each satisfies the performance target laid out in Table I and the 100 nm length scale constraint. As we have shown, the topology of a design can change substantially during the course of the optimization. Since the response of a device is generally discontinuous with major changes in the design shape or topology, a noisy loss trajectory is expected. This is illustrated in Fig. 8, which shows the normalized loss value versus iteration for the waveguide bend of Fig. 5 and the other three components. Points where the performance target is achieved are also highlighted. For each component, the loss generally decreases with step, but noise in the loss value and occasional regressions to higher loss can be seen. The waveguide bend and mode converter require fewer than 40 optimization iterations to achieve the target. Meanwhile, the beamsplitter and demultiplexer appear to be relatively more difficult problems, requiring approximately 100 steps to first reach the target. However, this is still well within the range of optimization steps required in an inverse design scheme <sup>16</sup> . In general, difficulty is directly related to the target specifications, length scale constraints, the physical size of the component, and the configuration of connecting waveguides. Reducing the Figure 6. Lowest loss designs achieved in the first 160 steps and their respective field magnitudes for (a) mode converter and (b) beamsplitter, both with 1280 nm excitation. Design and fields for the wavelength demultiplexer, with (c) 1270 nm and (d) 1290 nm excitation. All use a 100 nm circular brush. |S11| <sup>2</sup> |S21| <sup>2</sup> |S31| <sup>2</sup> |S41| <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> beamsplitter <u>demultiplexer</u> 0 10 20 30 <u>(a)</u> waveguide bend <u>mode converter</u> 40 1265 1280 1295 0 <u>(b)</u> 1265 1280 1295 10 20 30 40 <u>(c)</u> 1260 1270 1280 1290 1300 Wavelength (nm) Figure 7. Scattering spectra for the (a) mode converter, (b) beamsplitter, and (c) wavelength demultiplexer with 100 nm circular brush. 10 <sup>1</sup> beamsplitter <u>demultiplexer</u> 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> waveguide bend <u>mode converter</u> 0 50 100 150 Step Figure 8. Normalized loss trajectories with 100 nm circular brush. Markers indicate steps where the performance target from Table I is achieved. length scale or increasing the design size will expand the solution space, and generally allow satisfactory solutions to be found with fewer optimization steps. C. Designs using 100 nm notched square brush Next, we turn to component designs generated using a 100 nm notched square brush. With the design resolution of 10 nm, these designs strictly satisfy an 80 nm 0 50 100 150 Step Figure 9. Normalized loss trajectories with 100 nm notched square brush. Markers indicate steps where the performance target from Table I is achieved. minimum width and spacing constraint. The normalized loss trajectories four the components are plotted in Fig. 9. Scattering spectra and designs are found in the Supporting Information. For all components, designs achieving the performance target from Table I are found. However, the loss trajectories differ in several respects. Specifically, the trajectories are noisier, they generally contain fewer points that achieve the spec, and the spec is achieved later in the optimization. We attribute this to the fact that the notched square is relatively larger in area, limiting the design space accessible to the optimizer and making the problem more challenging. We expect that optimal hyperparameters of the Adam algorithm used to drive our optimization are somewhat problem-dependent, and in future work it would be interesting to explore various configurations. In particular, reducing the learning rate as the optimization progresses, which has been shown to aid in training of quantized neural networks <sup>37</sup>, could be beneficial. D. Reliability and effect of length scale Our results indicate that our inverse design framework is capable of finding designs with desired performance for a variety of fabrication-constrained photonic inverse design problems. A useful method will find such solutions for a range of length scale constraints, and do so reliably. To evaluate this, we consider the optimization problems above for circular and notched-square brushes with 60 nm, 80 nm, 100 nm, and 130 nm size. To study reliability of the method, we run 20 independent optimizations with different random initialization, each for 500 steps. Thus, for a single problem configuration (combination of device type, brush shape, and brush size), 10,000 feasible 60 nm 80 nm 100 nm 130 nm Circle Notched square 1.0 0.8 0.6 0.4 0.2 0.0 1.0 0.8 0.6 0.4 0.2 0.0 1.0 0.8 0.6 0.4 0.2 0.0 1.0 0.8 0.6 0.4 0.2 0.0 10 <sup>1</sup> 10 <sup>2</sup> Step 10 <sup>1</sup> 10 <sup>2</sup> Step Figure 10. Fraction of independent randomly-initialized optimization runs achieving the Table I target performance as a function of the optimization step, for each component. Left column: with circular brush. Right column: with notched square brush. designs were generated. Our analysis proceeds as follows: for each step _i_ of an optimization run, we identify whether the target performance from Table I is achieved at any step _j_ _≤_ _i_ . If the target performance is achieved at any such step, the run is considered successful at step _i_ . Then, for each combination of component, brush shape, and brush size, we compute the number of runs which are successful at each step. From this, the fraction of successful runs is obtained and is shown in Fig. 10. Turning first to the 60 nm brushes, we observe that for all components and both brush shapes, we are able to consistently find designs which achieve the performance target. In most cases, only a few tens of optimization steps (and therefore simulations) are required. Random initialization affects the optimization trajectory, and the 20 different runs produce a distribution in the number of steps required to achieve the target. Comparing the circular and notched square brush, we find that with the circular brush the target performance is achieved slightly earlier, consistent with the hypothesis that the notched square presents a more challenging optimization problem. We observe this trend for other brush sizes discussed below. Across all component types designed with the 60 nm brush, the range of steps required to achieve the target performance is at most tens of steps wide, and in practical application a single optimization run may actually be sufficient to find a design which meets the desired performance specification. When designing with a 80 nm brush, we again are able to consistently achieve the target performance. Generally, we observe that the number of required steps is larger than for the 60 nm brush. However, in some cases, such as the wavelength demultiplexer with circular brush, the number of steps required follow similar distribution as with the 60 nm brush. This suggests that for some problems, decreasing the length below a threshold value has no benefit. We also see some outlier examples where the target performance specification is not achieved. As the brush sizes are increased to 100 nm, the general pattern is repeated. The target performance consistently achieved, but more steps are required and a larger number of outlier optimization runs fail to reach the target within 500 steps. At a brush size of 130 nm, the trend is repeated yet again. With this brush size, designs for the waveguide bend and mode converter which achieve the target continue to be consistently found. For the beamsplitter and wavelength demultiplexer, however, approximately half or fewer optimization runs achieve the target. Therefore, in a practical application of our inverse design method with such large length scales, it may be beneficial to launch multiple optimization runs to ensure that at least one can reach the target performance. Additionally larger design regions may be necessary. Much of the data supports the conclusion that larger brushes present more challenging optimization problems. We expect this also for theoretical reasons, since the design space with small brushes is strictly larger than that for larger brushes. However, with 130 nm brush we observe that some of the beamsplitter designs achieve the target performance ahead of the best 80 nm and 100 nm brush runs. This warrants further investigation in future work. IV. CONCLUSION We have introduced an inverse design method which produces designs that are guaranteed to satisfy length scale constraints _throughout_ the course of an optimization. Our always-feasible method is based on a conditional generator for designs and a straight-through gradient estimator, which is commonly used in quantized neural network training <sup>33</sup> . Combined, these two com ponents enable the problem of length-scale-constrained topology optimization to be posed as an unconstrained stochastic gradient optimization problem. While the computational graph of our optimization scheme (Fig. 4) resembles that of some established topology optimization methods <sup>16,26</sup>, where a latent design is transformed into a physical design, the conditional generator used in our scheme avoids the challenges that established topology optimization techniques face in transitioning from performant _infeasible_ regions of the design space to performant _feasible_ designs. In such highdimensional design landscapes there is no guarantee that a high-performing infeasible design will be close to highperforming feasible designs, especially in integrated photonic devices where performance depends strongly on the collective interference of light from multiple scattering interfaces. Density-based optimization schemes often employ an unconstrained optimization stage <sup>16,38</sup> followed by multiple stages of increasing constraint enforcement, where device performance often drops significantly as design constraints are enabled. While the optimizer is often able to recover some level of performance, it is not guaranteed to be able to do so. In some cases, the performance of the final feasible design remains lower than earlier infeasible designs. A similar challenge in these optimization schemes lies in enforcing design binarization, which is often enabled gradually throughout several optimization stages by tuning a hyperparameter of the latent variable transformation <sup>26</sup> . While these changes to the device binarization reduce device performance, they present another challenge in that increased binarization is fundamentally at odds with the differentiability of the optimization graph. Essentially, the binarization nonlinearity approaches a step function with zero gradients. The effect of this trade off is that during late stages of the optimization, the algorithm is not able to significantly change the topology of the structure. In contrast, our always-feasible inverse design scheme always produces binarized designs and, moreover, is able to explore changes to the topology throughout the optimization (Fig. 5). An added benefit of our always-feasible inverse design method is the user’s ability to halt an optimization run once a design with sufficiently high performance is generated. In contrast, obtaining a high performance design in a three field optimization scheme is typically _not_ a sufficient condition for halting an optimization because multiple rounds of infeasible optimization are required to achieve high performance. Moreover, the higher levels of performance that are achieved during the unconstrained three field optimization stages are not guaranteed to be achieved during the stages where fabrication constraints and binarization have been applied. The results presented in this paper demonstrate that our method can reliably find high-performing designs for a variety of 2D nanophotonic inverse design problems. We believe the good performance of our method, and its simplicity, could make it a useful new scheme in practical applications of inverse design. In the future, it would be important to use a realistic 3D electromagnetic simulator <sup>39</sup> to design components that can be manufactured in commercial foundries. Another interesting direction would be to apply the method to topology optimization problems in other physical domains. We also see possible improvements to the underlying method. Specifically, conditional generators for designs satisfying additional constraints would be valuable, such as minimum solid area and void area <sup>16</sup>, which are frequently included in foundry design rules. Even for width and spacing constraints addressed by the current scheme, it would be useful to develop new generators which are not conservative, i.e. which do not require a brush larger than the target minimum width. Finally, the estimator and transform functions warrant additional study, and we see potential for learned estimators. REFERENCES 1D. Marpaung, J. Yao, and J. Capmany, “Integrated microwave photonics,” Nature photonics 13, 80–90 (2019). 2J. M. Arrazola, V. Bergholm, K. Br´adler, T. R. Bromley, M. J. Collins, I. Dhand, A. Fumagalli, T. Gerrits, A. Goussev, L. G. Helt, J. Hundal, T. Isacsson, R. B. Israel, J. Izaac, S. Jahangiri, R. Janik, N. Killoran, S. P. Kumar, J. Lavoie, A. E. Lita, D. H. Mahler, M. Menotti, B. Morrison, S. W. Nam, L. Neuhaus, H. Y. Qi, N. Quesada, A. Repingon, K. K. Sabapathy, M. Schuld, D. Su, J. Swinarton, A. Sz´ava, K. Tan, P. Tan, V. D. Vaidya, Z. Vernon, Z. Zabaneh, and Y. Zhang, “Quantum circuits with many photons on a programmable nanophotonic chip,” Nature 591, 54–60 (2021). 3G. Wetzstein, A. Ozcan, S. Gigan, S. Fan, D. Englund, M. Soljaˇci´c, C. Denz, D. A. B. Miller, and D. Psaltis, “Inference in artificial intelligence with deep optics and photonics,” Nature 588, 39–47 (2020). 4G. Veronis, R. W. Dutton, and S. Fan, “Method for sensitivity analysis of photonic crystal devices,” Optics letters 29, 2288– 2290 (2004). 5S. Molesky, Z. Lin, A. Y. Piggott, W. Jin, J. Vuckovi´c, and A. W. Rodriguez, “Inverse design in nanophotonics,” Nature photonics 12, 659–670 (2018). 6D. Sell, J. Yang, S. Doshay, R. Yang, and J. A. Fan, “LargeAngle, multifunctional metagratings based on freeform multimode geometries,” Nano letters 17, 3752–3757 (2017). 7T. W. Hughes, M. Minkov, I. A. D. Williamson, and S. Fan, “Adjoint method and inverse design for nonlinear nanophotonic devices,” ACS Photonics 5, 4781–4787 (2018). 8W. Jin, S. Molesky, Z. Lin, K.-M. C. Fu, and A. W. Rodriguez, “Inverse design of compact multimode cavity couplers,” Optics express 26, 26713–26721 (2018). 9J. Wang, Y. Shi, T. Hughes, Z. Zhao, and S. Fan, “Adjoint-based optimization of active nanophotonic devices,” Optics express 26, 3236–3248 (2018). 10Z. Lin, V. Liu, R. Pestourie, and S. G. Johnson, “Topology optimization of freeform large-area metasurfaces,” Optics express 27, 15765–15775 (2019). 11A. Y. Piggott, E. Y. Ma, L. Su, G. H. Ahn, N. V. Sapra, D. Vercruysse, A. M. Netherton, A. S. P. Khope, J. E. Bowers, and J. Vuˇckovi´c, “Inverse-Designed photonics for semiconductor foundries,” ACS Photonics 7, 569–575 (2020). 12K. Y. Yang, J. Skarda, M. Cotrufo, A. Dutt, G. H. Ahn, M. Sawaby, D. Vercruysse, A. Arbabian, S. Fan, A. Al`u, and J. Vuˇckovi´c, “Inverse-designed non-reciprocal pulse router for chip-based LiDAR,” Nature photonics 14, 369–374 (2020). 13N. V. Sapra, K. Y. Yang, D. Vercruysse, K. J. Leedle, D. S. Black, R. J. England, L. Su, R. Trivedi, Y. Miao, O. Solgaard, R. L. Byer, and J. Vuˇckovic´c, “On-chip integrated laser-driven particle accelerator,” Science 367, 79–83 (2020). 14M. Minkov, I. A. D. Williamson, L. C. Andreani, D. Gerace, B. Lou, A. Y. Song, T. W. Hughes, and S. Fan, “Inverse design of photonic crystals through automatic differentiation,” ACS Photonics 7, 1729–1741 (2020). 15E. Tseng, S. Colburn, J. Whitehead, L. Huang, S.-H. Baek, A. Majumdar, and F. Heide, “Neural nano-optics for high-quality thin lens imaging,” Nature communications 12, 6493 (2021). 16A. M. Hammond, A. Oskooi, S. G. Johnson, and S. E. Ralph, “Photonic topology optimization with semiconductor-foundry design-rule constraints,” Optics Express 29, 23916–23938 (2021). 17T. W. Hughes, I. A. D. Williamson, M. Minkov, and S. Fan, “Forward-Mode differentiation of maxwell’s equations,” ACS Photonics 6, 3010–3016 (2019). 18L. W. Liebmann, S. M. Mansfield, A. K. Wong, M. A. Lavin, W. C. Leipold, and T. G. Dunham, “TCAD development for lithography resolution enhancement,” IBM Journal of Research and Development 45, 651–665 (2001). 19J. S. Orcutt and R. J. Ram, “Photonic device layout within the foundry CMOS design environment,” IEEE Photonics Technology Letters 22, 544–546 (2010). 20K. Wang, X. Ren, W. Chang, L. Lu, D. Liu, and M. Zhang, “Inverse design of digital nanophotonic devices using the adjoint method,” Photonics Research 8, 528–533 (2020). 21A. Michaels and E. Yablonovitch, “Leveraging continuous material averaging for inverse electromagnetic design,” Optics express 26, 31717–31737 (2018). 22W. R. Frei, D. A. Tortorelli, and H. T. Johnson, “Geometry projection method for optimizing photonic nanostructures,” Optics letters 32, 77–79 (2007). 23J. S. Jensen and O. Sigmund, “Topology optimization for nanophotonics,” Laser & photonics reviews 5, 308–321 (2011). 24F. Wang, J. S. Jensen, and O. Sigmund, “High-performance slow light photonic crystal waveguides with topology optimized or circular-hole based material layouts,” Photonics and Nanostructures - Fundamentals and Applications 10, 378–388 (2012). 25X. Qian and O. Sigmund, “Topological design of electromechanical actuators with robustness toward over- and under-etching,” Computer methods in applied mechanics and engineering 253, 237–251 (2013). 26M. Zhou, B. S. Lazarov, F. Wang, and O. Sigmund, “Minimum length scale in topology optimization by geometric constraints,” Computer methods in applied mechanics and engineering 293, 266–282 (2015). 27L. H¨agg and E. Wadbro, “On minimum length scale control in density based topology optimization,” Structural and Multidisciplinary Optimization 58, 1015–1032 (2018). 28K. Svanberg, “The method of moving asymptotes—a new method for structural optimization,” International journal for numerical methods in engineering 24, 359–373 (1987). 29T. Ju, F. Losasso, S. Schaefer, and J. Warren, “Dual contouring of hermite data,” ACM transactions on graphics 21, 339–346 (2002). 30P. Soille, _Morphological_ _Image_ _Analysis_ (Springer-Verlag, 2004). 31M. Koefferlein, “Klayout [documentation,”](https://www.klayout.de/doc/) `[https://www.](https://www.klayout.de/doc/)` `[klayout.de/doc/](https://www.klayout.de/doc/)` . 32 _Calibre_ _Verification_ _User’s_ _Manual_ (Mentor Graphics, 2021). 33Y. Bengio, N. L´eonard, and A. Courville, “Estimating or propagating gradients through stochastic neurons for conditional computation,” (2013), [arXiv:1308.3432](https://arxiv.org/abs/1308.3432) [cs.LG]. 34P. Yin, J. Lyu, S. Zhang, S. Osher, Y. Qi, and J. Xin, “Understanding straight-through estimator in training activation quantized neural nets,” (2019), [arXiv:1903.05662](https://arxiv.org/abs/1903.05662) [cs.LG]. 35D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” (2017), [arXiv:1412.6980](https://arxiv.org/abs/1412.6980) [cs.LG]. 36“Ceviche challenges: [Photonic](https://github.com/google/ceviche-challenges) inverse design suite,” (2022), `[https://github.com/google/ceviche-challenges](https://github.com/google/ceviche-challenges)` . 37I. Hubara, M. Courbariaux, D. Soudry, R. El-Yaniv, and Y. Ben gio, “Quantized neural networks: Training neural networks with low precision weights and activations,” J. Mach. Learn. Res. 18, 6869–6898 (2017). 38D. Vercruysse, N. V. Sapra, L. Su, R. Trivedi, and J. Vuˇckovi´c, “Analytical level set fabrication constraints for inverse design,” Scientific reports 9, 8999 (2019). 39T. W. Hughes, M. Minkov, V. Liu, Z. Yu, and S. Fan, “A perspective on the pathway toward full wave simulation of large area metalenses,” Applied Physics Letters 119, 150502 (2021). SUPPORTING INFORMATION S1. ILLUSTRATION OF FEASIBLE DESIGN GENERATION Figs. S1 and S2 illustrate the generation of a 6 _×_ 8 feasible design in 12 steps, using the algorithm from the main text conditioned on the input pixel reward array _θ_ shown in Fig. S3. A notched-square brush of width 5 pixels is used. design: void design: unassigned design: solid pixel: impossible pixel: existing pixel: possible pixel: required touch: invalid touch: existing touch: valid touch: free touch: resolving Design Void pixels Solid pixels Void touches Solid touches Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 A B C D E F A B C D E F A B C D E F A B C D E F A B C D E F A B C D E F 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Figure S1. The first six steps of design generation. _Step_ _1_ : Solid and void touches are valid at all locations, and all pixels are possible. _Step_ _2_ : A void touch is placed at A6. Pixels covered by the touch become existing pixels for void, and impossible pixels for solid. A7 becomes a free touch for void. _Step_ _3_ : The free touch A7 is taken. The design and pixels are unaffected. _Step_ _4_ : A solid touch is placed at A0. _Step_ _5_ : A void touch is placed at E6. Location C4 becomes a required pixel for void. There are required-resolving touches in columns 3, 4, and 5, while there are free touches in columns 6 and 7. The resolving (but not free) touches would set C4 to void, but would also remove possible solid pixels. _Step_ _6_ : All the free touches are taken. The required pixel C4 is resolved, and no required-resolving touches remain. design: void design: unassigned design: solid pixel: impossible pixel: existing pixel: possible pixel: required touch: invalid touch: existing touch: valid touch: free touch: resolving Design Void pixels Solid pixels Void touches Solid touches Step 7 Step 8 Step 9 Step 10 Step 11 Step 12 A B C D E F A B C D E F A B C D E F A B C D E F A B C D E F A B C D E F 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Figure S2. Additional steps of design generation. _Step_ _7_ : A void touch is placed at D4. Pixels E0, E1, F0, and F1 are now required for void. Both free and resolving (but not free) void touches exist. _Step_ _8_ : All the free touches are taken. E1 and F1 are resolved, but E0 and F0 remain required void pixels. _Step_ _9_ : A void touch is placed at F0, and the required pixels are resolved. F1 and F2 are now free void touches. _Step_ _10_ : The free touches at F1 and F2 are taken. _Step_ _11_ : A void touch is placed at C5. Pixels at A3 and C2 are now required for void. Since all remaining pixels must now be void, only free void touches remain. _Step_ _12_ : The free touches are made, and the design is complete. Figure S3. The continuous valued pixel reward array used to bias the 6 _×_ 8 feasible design generation stepped through in Figs. S1 and S2 . S2. DESIGNS USING 100 NM NOTCHED SQUARE BRUSH Scattering spectra for components created with a 100 nm notched square brush are shown in Fig. S4. The corresponding designs are shown in Fig. S5. Each component is the lowest-loss component found in the first 160 steps of a randomly-initialized optimization run. |S11| <sup>2</sup> |S21| <sup>2</sup> |S31| <sup>2</sup> |S41| <sup>2</sup> 0 <u>(c)</u> 1265 1280 1295 <u>(d)</u> 1265 1280 1295 10 20 30 <u>(a)</u> 40 1265 1280 1295 <u>(b)</u> 1265 1280 1295 Figure S4. Scattering spectra for the (a) waveguide bend, (b) mode converter, (c) beamsplitter, and (d) wavelength demultiplexer with 100 nm notched square brush. Figure S5. Lowest-loss designs achieved in the first 160 steps and their respective field magnitudes for (a) the waveguide bend, (b) mode converter, and (c) beamsplitter with 1280 nm excitation. Design and fields for the wavelength demultiplexer, with (d) 1270 nm and (e) 1290 nm excitation. All use a 100 nm notched square brush. S3. ILLUSTRATION OF EROSION AND DILATION brush feature dilation erosion Figure S6. Illustration of erosion and dilation of a rectangular feature by a circular brush. The brush is translated around the boundary of the original feature to produce the dashed red outline, which corresponds to the eroded or dilated feature. S4. ILLUSTRATION OF HOW REWARDS FOR TOUCHES ARE CALCULATED ## _θ_ ### 0.1 0.5 0.7 0.5 ### -0.9 -0.6 ## _Brush b_ ### 0.9 0.7 -0.1 Figure S7. Simple example illustrating how rewards for otuches are calculated from the sum of _θ_ elements set by the touch. In particular, the reward for placing a solid touch at the middle pixel (i.e. the pixel with the purple border) will be given by the sum of the sum of the values of _θ_ over all the pixels covered by centering the brush at the middle pixel; i.e. it will be equal to 0.5 + 0.5 +0.7 + 0.7 + (-0.6) = 1.8. In contrast, the reward for placing a void touch at the middle pixel will be the negative sum (-1.8). Therefore, as the generator generates the feasible design, the middle pixel will more likely be set as a solid touch rather than a void touch, as expected from the predominantly positive valued (blue) _θ_ in this example.

섹션 본문 149문단 · 75,286자

(제목 없음)

1We introduce a new method for inverse design of nanophotonic devices which guarantees that resulting designs satisfy strict length scale constraints -including minimum width and spacing constraints required by commercial semiconductor foundries. The method adopts several concepts from machine learning to transform the problem of topology optimization with strict length scale constraints to an unconstrained stochastic gradient optimization problem. Specifically, we introduce a conditional generator for feasible designs and adopt a straight-through estimator for backpropagation of gradients to a latent design. We demonstrate the performance and reliability of our method by designing several common integrated photonic components.

I. INTRODUCTION

2Integrated photonic devices have led to game changing new capabilities in applications ranging from high-speed communications 1 to next-generation quantum computing platforms 2 and machine learning hardware accelerators 3 . These platforms stand to benefit from photonic components with improved performance, lower losses, larger bandwidths, and more compact footprints. However, achieving such multi-faceted specifications is extremely challenging through conventional intuition-backed design methodologies. In contrast, computational inverse design techniques can efficiently explore complex and high-dimensional design landscapes which are inaccessible to human designers. Enabled by adjoint variable methods 4,5 , gradient-based optimization techniques have proven to be among the most successful at producing photonic devices with high performance, with examples including wavelength-selective elements (e.g. multiplexers, filters, and resonators), signal routing elements (e.g. waveguide bends and couplers), and active components (e.g. modulators) [6][7][8][9][10][11][12][13][14][15][16] .

3The approach in gradient-based design strategies is to first formulate an objective function, calculated in terms of a device's simulated performance. Adjoint methods allow these objective functions and their gradients to be efficiently computed at a cost of only two full-wave simulations 4,5 , independently of the number of degrees of freedom in a design. When used in the context of modern automatic differentiation frameworks (e.g. JAX and TensorFlow), these techniques enable flexible endto-end device optimization frameworks 14,17 . However, guaranteeing that an optimized design yields the desired a) Electronic mail: mfschubert@gmail.com; Authors appear in order of contribution. b) Electronic mail: alfredkcc@x.team c) Electronic mail: iwill@x.team d) Electronic mail: aspy@x.team e) Electronic mail: dhalexander@google.com performance, while simultaneously satisfying the numerous design rules of modern semiconductor manufacturing processes 18,19 , still poses a major challenge. Particularly relevant for integrated photonic devices are the capabilities of the lithographic systems, which define constraints such as the minimum feature length scale that can be reliably printed. Elements of a design which are smaller than this length scale may print inconsistently or may be completely absent in the fabricated structure. Moreover, inclusion of a design feature with sub-resolution size can have broad yield implications. Thus, semiconductor foundries specify design rules which define the minimum width and minimum spacing of design features. Compliance with these rules, as validated by a design rule check (DRC), is typically a prerequisite for fabrication.

4There have been many proposals for DRC-compliant inverse design strategies. One class of strategies selects a design parameterization with intrinsic geometric length scale guarantees, e.g. by optimizing the placement of geometric primitives which already satisfy the desired minimum feature size constraints 20 . A related approach uses a parameterization which enables analytic constraints to be applied directly to the design degrees of freedom, e.g. by optimizing the coordinates of polygon vertices comprising shapes in the design mask 21 . However, the drawback in both of these strategies is that they offer up a limited landscape of potential designs. For example, when optimizing the vertices of a polygon, an optimizer will be unable to alter the topology of a design by closing or opening holes.

5In contrast, topology optimization strategies open up a much larger design landscape by parameterizing a design as a pixelated image, which is typically transformed by a sequence of convolutional filters and pixel-wise nonlinear functions 16,[22][23][24][25][26][27] . These so-called density or threefield parameterizations allow a gradient-based optimization algorithm (e.g. LBFGS or MMA 28 ) to modify any pixel within the design and apply arbitrary changes to the topology. In practice however, there is often a tradeoff between maintaining design feasibility (binarization of the pixels and feature size constraints) and attaining high performance. This is because a continuous optimizer must traverse infeasible regions of the design landscape before reaching feasible regions, which may or may not have high performance. The most common strategy in topology optimization is to begin with a continuous optimization phase before gradually ramping up binarization and applying design rule constraints. However, if binarization is ramped up too quickly, a continuous optimizer will stall and fail to make progress towards improving performance. Similarly, constraints or penalties on the feature size must be introduced in a way which will not push the optimizer away from high performance regions of the parameter space. Often in these strategies, the selection of optimization hyper parameters and the detailed strategy for enforcing design feasibility is an art and, moreover, depends on both the type of device being optimized as well as the performance objective.

6In this work we propose an always feasible gradientbased inverse design framework with strict guarantees on DRC-compliance. The key features of our proposal are a conditional generator for feasible designs, which is combined with a straight-through estimator (STE) to enable gradient backpropagation. The combination of these two components yields a differentiable transform which can be incorporated into an computational graph, much like a convolutional filter or projection operator in densitybased topology optimization. We apply our framework to several practical photonic design challenges (a waveguide bend, a beam splitter, a waveguide mode converter, and a demultiplexer), and demonstrate that the approach reliably yields designs with high performance.

A. Brush-based minimum length scale constraints

7In this section, we introduce a mathematical framework for measuring whether a binarized pixel array is DRC-compliant, focusing on the minimum width and minimum spacing rules commonly required by semiconductor foundries. In our framework, we consider binary arrays with values of −1 and +1, referring to these as void and solid, respectively. During the course of a fabrication workflow, such designs may be converted to contours by off-the-shelf algorithms, such as marching squares or dual contouring 29 .

8All binary arrays can be realized by sequentially setting individual pixels to void or solid; conceptually, this is equivalent to the repeated placements and translations of single-pixel void or solid brushes. While a single-pixel brush can generate all possible binary arrays, some arrays are infeasible with larger brushes. In the trivial case, a single-pixel solid feature cannot be realized with a 3 × 3 pixel solid brush, since centering the brush on a single pixel also sets adjacent pixels to solid. Throughout this paper, we refer to the pixel on which the brush is centered as a touch, t of the brush. Our goal is to determine whether a given design, x is feasible with a some brush, b, i.e. to determine whether all its solid and void features can be realized with b. When this is true, the condition

9is the morphological opening of x with brush b and ¬ is a logical not operation which changes solid features into void features and void features into solid features, i.e. a value of -1 to 1 and a value of 1 to -1. The morphological opening operation is computed by the application of a binary erosion, E followed by a dilation 30 , D with the same brush, i.e.

10. Intuitively, the dilation operation causes features in an image to expand while erosion causes features in an image to shrink. An illustration of these operations is provided in the supporting information. For a b-feasible design x, E(x, b) erodes the solid features and recovers the solid brush touches, while E(¬x, b) recovers the void brush touches. Dilation of the touches then restores the solid and void pixels, respectively. Intuitively, if x contains a small feature that is incompatible with b, then erosion will remove it entirely and no solid pixels will be restored by the dilation. Thus, the binary opening operation removes small features, while leaving feasible features unchanged. Length scale in a topology optimization context is typically associated with the minimum diameter of circular features. Thus, we say that if a design can be realized with an approximately circular brush b L with a diameter of L pixels, it has a minimum length scale of at least L·d, where d is the design pixel pitch. The minimum length scale of the design is the largest value of L for which Eqn. (1) is satisfied with brush b L . When contours are obtained by dual contouring (i.e. outlining pixels, for binary designs), a design with minimum length scale will also have related minimum width and spacing, equal to the minimum width of the brush itself. An example circular brush with associated measurements is shown in Fig. 1a and an example design which is feasible with the circular brush is shown in Fig. 2a.

11We turn now to minimum width and spacing constraints which result from foundry design rules. Given a minimum width and spacing constraint 31,32 , there are many brushes for which the associated feasible designs satisfy the constraint. The smallest of these is the notched square, i.e. a square brush which is solid everywhere except at the corners, as shown in Fig. 1b. An example design is shown in Fig. 2b. When the constraint requires a physical minimum feature width and spacing of w, designs feasible with the notched square brush of width L = w/d+2 will satisfy the constraint. Thus, if we can require that our designs are feasible with a notched square brush of width L = w/d + 2, we are also guaranteed to satisfy width and spacing rules of size w.

12Although reasoning about minimum width and spacing is straightforward for dual-contoured designs feasible with the notched-square brush, we have also extensively validated that such designs are design-rule compliant using industry standard design software such as KLayout 31 and Siemens Calibre Physical Verification 32 .

B. Generator for feasible designs

13In this section we describe our method of inverse design subject to strict length scale constraints. We have shown that designs which are feasible with a certain brush b (bfeasible) will satisfy minimum length scale or width and spacing constraints. Properly, this can be considered a combinatorial optimization problem. However, our approach is to approximately solve this problem, by transforming it into an unconstrained stochastic gradient optimization problem. Critically, we use a conditional generator for feasible designs and a straight-through estimator (STE) for backpropagation; these two components are discussed subsequently.

14In general, a binary design x can be produced by dilation with b of the solid and void touches t s b and t v b , i.e.

15We consider the generation of b-feasible arrays as a process in which t s b or t v b are updated with a single-element change at each step. In this context, we introduce several touch states and pixel states which may be associated with each location at any step in the process. Defining these states for the solid case: existing solid pixels are those which are assigned to solid by some touch in t s b ,

16Impossible solid touches are those which would assign an existing void pixel to solid, and consists of all pixels within some distance of existing void pixels,

17Valid solid touches are those which are not impossible and not already in t s b ,

18where ∧ is an element-wise logical and operation. Possible solid pixels are those obtained by dilating all existing or valid touches with b, i.e. they are those pixels which are or may be solid in a feasible array,

19where ∨ is an element-wise logical or operation. Required solid pixels are those which are not existing and not possible for void,

20Resolving solid touches are those which are valid and would assign solid to a required-solid pixel,

21Finally, free touches are valid but only color existing pixels. Corresponding void touches and pixels are be computed using the process. Fig. 3 shows an example of pixels and touches computed from the steps above and a full example is illustrated in the Supporting Information. A scheme that generates feasible arrays is outlined in Algorithm 1. The algorithm begins with empty t s b and t v b and loops until all pixels are existing for either solid or void. At each step, the pixel and touch states are updated. If free touches exist, all are selected. If resolving touches exist, one of these is selected; otherwise, any of the valid touches are selected.

22The algorithm sets at least one pixel at every step, and thus requires at most N iterations for a reward array with N pixels. A basic implementation of the algorithm involves full-array erosion and dilation operations at each step, which have cost proportional to O(N ), and leading to an overall cost O(N 2 ). However, it is straightforward to implement windowed operations which have fixed cost independent of N , and so feasible design generation with O(N ) complexity is possible.

23If touch selection is random, the algorithm simply yields a random feasible design. In practice, we greedily select the best touch as computed from a pixel reward array θ, where θ is obtained from a latent design produced in the course of an optimization, and is fixed during each run of the generator. The total reward of a solid touch is the sum of θ elements that would be set to solid were the touch to be made, i.e. the sum of θ elements set by the touch. The reward of a void touch is the negative sum of elements set to void by the touch. A simple illustrated example of how rewards for touches are calculated can be found in the supporting information. With this change, the algorithm becomes a conditional generator of feasible designs, where θ biases the feasible design generation. The designs in Fig. 2 have been created by running the algorithm on the same random reward array.

24To gain some intuition for why this scheme always produces feasible designs, consider that the algorithm will select exclusively solid or exclusively void until reaching a state where all remaining pixels are possible for both solid and void. In this state, no touch can lead to an invalid status. Since the starting state is one where all pixels are possible for both solid and void, we can see that the algorithm will never produce an invalid status.

25We emphasize that the full space of feasible designs of brush b is accessible by Algorithm 1. This can be clearly seen, since e.g. if θ = x is provided, where x is any feasible design, the output of the algorithm will simply be x.

C. Straight through estimator

26Algorithm 1 is not differentiable, and so it cannot be directly used with backpropagation in a gradient-based optimization setting. Drawing inspiration from the field of binary and quantized neural networks, we note that binary optimization can be viewed as topology optimization with a minimum length scale equal to a single pixel. Binary and quantized neural networks often make use of a STE in training, to backpropogate gradients through binary activation functions or to latent weights from which low-precision weights are obtained 33 . Specifically, in this approach one substitutes the gradient of a nondifferentiable function with that of an estimator, i.e.

27A typical estimator used for binarization (e.g. via application of the sign function) is the identity operation.

D. Computational graph

28The complete computational graph for the inverse design problem is depicted in Fig. 4. A latent design is passed through a transform, yielding the reward array θ. This is passed to the conditional generator, which produces a feasible design. We pass the design to an electromagnetic simulation engine which computes scattering matrix elements; these are the inputs to an objective function, which computes a scalar loss value. Optionally, we symmetrize the transform output to favor symmetric feasible designs. All operations in this graph are differentiable, with the exception of the generator -for which we use the STE. Thus, we can compute an estimated gradient of the loss with respect to the latent design.

29For the transform, we have found that

30is a good choice, where β is a scalar hyperparameter in the range 2-8. The convolutional transform aids in the optimization, as it ensures that the reward array θ is smooth, restricted in range, and has an associated length scale, determined by the brush size. The form of our estimator matches that of the transform. As with the transform, outputs of the estimator have a characteristic length scale and are restricted to the range (−1, 1), just as outputs of the generator itself are. Thus, the estimator can be seen as a differentiable approximation of the conditional generator. The success of this estimator is consistent with the finding in binary neural networks that estimators which approximate their forward-pass counterpart outperform simpler functions 34 .

31The latent design is randomly initialized with a bias so that the first feasible design is fully solid, and it is updated iteratively using the Adam scheme 35 , which is a common choice for stochastic optimization problems in machine learning. We use a learning rate of 0.01, and β 1 = 0.667 and β 2 = 0.9 for the decay of the gradient and second moment exponential moving averages, respectively.

32Notably, our method does not require scheduling of hyperparameters or changes in parameterization during the course of an optimization, and gives a feasible design at every optimization step. We expect that this simplicity could be advantageous from the perspective of a photonic designer tasked with creating a new component.

E. Objective function

33In a practical design application, one is generally concerned with creating a component that satisfies a performance specification, i.e. a desired level of insertion loss, return loss, and cross talk. We define such specification by defining a cutoff value |S cutoff | for the magnitude for each scattering parameter element of S. Additionally, there is an implicit bound on the allowed values, which is imposed by physical constraints. For example, transmission magnitudes greater than unity are not possible for passive photonic components. Our scalar objective function has the form

34where g is a vector of signs (+1 or -1) matching the size of S. The values of g are positive (+1) where the corresponding element of the cutoff array, |S cutoff | specifies the maximum value, and negative (-1) where |S cutoff | specifies the minimum value. w valid also has the same size as S and defines the range of allowed values for a scattering parameter element, which is defined as the distance between the performance cutoff, specified by |S cutoff |, and the physical bound on the scattering parameter element. For example, a minimum transmission amplitude cutoff of 0.5 (-3 dB in power transmission) would have a w valid of 0.5, because the maximum transmission possible is 1.0. All operations other than the min in the softplus of Eqn. (12) are element-wise.

A. Nanophotonic optimization problems

35In this section we apply our proposed inverse design framework to several integrated photonic components operating in the O-band, demonstrating designs for a waveguide bend, a mode converter, a beamsplitter, and a wavelength demultiplexer 36 . All components are optimized for their characteristics within two 10 nm wavelength bands centered at 1270 nm and 1290 nm. Performance targets for the components are specified in terms of their scattering parameters, and are summarized in Table I. Simulations of the components are performed using Ceviche 17 , an open source 2D finite difference frequency domain (FDFD) simulator. Silicon (ε r = 12.25) and silicon oxide (ε r = 2.25) are used for solid and void materials, respectively. All components are coupled to waveguides having 400 nm width, and we deal with the fundamental waveguide mode unless noted otherwise.

36The waveguide bend features a 1.6×1.6 µm 2 design region, with waveguides connecting to the left (port 1) and bottom (port 2). Given excitation from port 1, we aim to maximize transmission to port 2 while keeping backreflection low. Diagonal reflection symmetry is imposed, so that excitation from port 2 yields identical behavior.

37The spatial mode converter features a 1.6 × 1.6 µm 2 design region, with waveguides connecting to the left and right. We seek designs that maximally convert the fundamental waveguide mode on the left (port 1) to the second order mode on the right (port 2), with minimal backreflection into port 1.

38The beamsplitter design region is 3.2 × 2.0 µm 2 in size, with two waveguides connecting to the left (port 1 and port 4) and two waveguides connecting to the right (port 2 and port 3). Given excitation from port 1, the beamsplitter aims to divide power equally into port 2 and port 3 while minimizing backreflection into port 1 or transmission into port 4. We impose reflection symmetry along the horizontal and vertical axes, so that excitation from any other port yields identical behavior.

39The wavelength demultiplexer features a 6.4 × 6.4 µm 2 design region, with one waveguide connecting to the left (port 1) and two waveguides connecting to the right (port 2 and port 3). Given excitation from port 1, wavelengths in the first band are directed to port 2 while wavelengths in the second band are directed to port 3.

40In the optimization context, we consider three wavelengths per band -the center and extremal wavelengths. The specifications are considered to be fulfilled if the criteria in I are satisfied for all wavelengths. Our design resolution matches the 10 nm simulation resolution, so that e.g. a circular brush with diameter 10 corresponds to a 100 nm length scale. put port and substantial reflection back to the input port. Subsequent updates significantly modify the topology of the design, adding enclosed oxide features and developing isolated silicon features. We emphasize the key characteristic of our scheme -the design at every step is fully binary and satisfies the 100 nm length scale constraint. The target performance specification is achieved in 28 optimization steps, and the design continues to improve with more iterations. The lowest loss in the first 160 steps is found at step 122. Notably, the topology of this design differs from that at step 28, due to the fusing of two void features and the elimination of a third, along with changes in the shape of some solid features. The ability of our scheme to change topology while remaining feasible stands in contrast to some other methods, where the optimizer is locked in to a fixed topology once the optimization reaches an advanced state.

41For the mode converter, beamsplitter, and wavelength demultiplexer, the lowest-loss design from the first 160 optimization steps and corresponding field magnitudes are shown in Fig. 6. The scattering spectra for each is shown in Fig. 7, where each satisfies the performance target laid out in Table I and the 100 nm length scale constraint. As we have shown, the topology of a design can change substantially during the course of the optimization. Since the response of a device is generally discontinuous with major changes in the design shape or topology, a noisy loss trajectory is expected. This is illustrated in Fig. 8, which shows the normalized loss value versus iteration for the waveguide bend of Fig. 5 and the other three components. Points where the performance target is achieved are also highlighted. For each component, the loss generally decreases with step, but noise in the loss value and occasional regressions to higher loss can be seen.

42The waveguide bend and mode converter require fewer than 40 optimization iterations to achieve the target. Meanwhile, the beamsplitter and demultiplexer appear to be relatively more difficult problems, requiring approximately 100 steps to first reach the target. However, this is still well within the range of optimization steps required in an inverse design scheme 16 . In general, difficulty is directly related to the target specifications, length scale constraints, the physical size of the component, and the configuration of connecting waveguides. Reducing the Table I is achieved. length scale or increasing the design size will expand the solution space, and generally allow satisfactory solutions to be found with fewer optimization steps.

43C. Designs using 100 nm notched square brush Next, we turn to component designs generated using a 100 nm notched square brush. With the design resolution of 10 nm, these designs strictly satisfy an 80 nm minimum width and spacing constraint. The normalized loss trajectories four the components are plotted in Fig. 9. Scattering spectra and designs are found in the Supporting Information. For all components, designs achieving the performance target from Table I are found. However, the loss trajectories differ in several respects. Specifically, the trajectories are noisier, they generally contain fewer points that achieve the spec, and the spec is achieved later in the optimization. We attribute this to the fact that the notched square is relatively larger in area, limiting the design space accessible to the optimizer and making the problem more challenging. We expect that optimal hyperparameters of the Adam algorithm used to drive our optimization are somewhat problem-dependent, and in future work it would be interesting to explore various configurations. In particular, reducing the learning rate as the optimization progresses, which has been shown to aid in training of quantized neural networks 37 , could be beneficial.

D. Reliability and effect of length scale

44Our results indicate that our inverse design framework is capable of finding designs with desired performance for a variety of fabrication-constrained photonic inverse design problems. A useful method will find such solutions for a range of length scale constraints, and do so reliably. To evaluate this, we consider the optimization problems above for circular and notched-square brushes with 60 nm, 80 nm, 100 nm, and 130 nm size. To study reliability of the method, we run 20 independent optimizations with different random initialization, each for 500 steps. Thus, for a single problem configuration (combination of device type, brush shape, and brush size), 10,000 feasible designs were generated.

45Our analysis proceeds as follows: for each step i of an optimization run, we identify whether the target performance from Table I is achieved at any step j ≤ i. If the target performance is achieved at any such step, the run is considered successful at step i. Then, for each combination of component, brush shape, and brush size, we compute the number of runs which are successful at each step. From this, the fraction of successful runs is obtained and is shown in Fig. 10.

46Turning first to the 60 nm brushes, we observe that for all components and both brush shapes, we are able to consistently find designs which achieve the performance target. In most cases, only a few tens of optimization steps (and therefore simulations) are required. Random initialization affects the optimization trajectory, and the 20 different runs produce a distribution in the number of steps required to achieve the target. Comparing the circular and notched square brush, we find that with the circular brush the target performance is achieved slightly earlier, consistent with the hypothesis that the notched square presents a more challenging optimization problem. We observe this trend for other brush sizes discussed below. Across all component types designed with the 60 nm brush, the range of steps required to achieve the target performance is at most tens of steps wide, and in practical application a single optimization run may actually be sufficient to find a design which meets the desired performance specification.

47When designing with a 80 nm brush, we again are able to consistently achieve the target performance. Generally, we observe that the number of required steps is larger than for the 60 nm brush. However, in some cases, such as the wavelength demultiplexer with circular brush, the number of steps required follow similar distribution as with the 60 nm brush. This suggests that for some problems, decreasing the length below a threshold value has no benefit. We also see some outlier examples where the target performance specification is not achieved.

48As the brush sizes are increased to 100 nm, the general pattern is repeated. The target performance consistently achieved, but more steps are required and a larger number of outlier optimization runs fail to reach the target within 500 steps. At a brush size of 130 nm, the trend is repeated yet again. With this brush size, designs for the waveguide bend and mode converter which achieve the target continue to be consistently found. For the beamsplitter and wavelength demultiplexer, however, approximately half or fewer optimization runs achieve the target. Therefore, in a practical application of our inverse design method with such large length scales, it may be beneficial to launch multiple optimization runs to ensure that at least one can reach the target performance. Additionally larger design regions may be necessary.

49Much of the data supports the conclusion that larger brushes present more challenging optimization problems. We expect this also for theoretical reasons, since the design space with small brushes is strictly larger than that for larger brushes. However, with 130 nm brush we observe that some of the beamsplitter designs achieve the target performance ahead of the best 80 nm and 100 nm brush runs. This warrants further investigation in future work.

IV. CONCLUSION

50We have introduced an inverse design method which produces designs that are guaranteed to satisfy length scale constraints throughout the course of an optimization. Our always-feasible method is based on a conditional generator for designs and a straight-through gradient estimator, which is commonly used in quantized neural network training 33 . Combined, these two com-ponents enable the problem of length-scale-constrained topology optimization to be posed as an unconstrained stochastic gradient optimization problem.

51While the computational graph of our optimization scheme (Fig. 4) resembles that of some established topology optimization methods 16,26 , where a latent design is transformed into a physical design, the conditional generator used in our scheme avoids the challenges that established topology optimization techniques face in transitioning from performant infeasible regions of the design space to performant feasible designs. In such highdimensional design landscapes there is no guarantee that a high-performing infeasible design will be close to highperforming feasible designs, especially in integrated photonic devices where performance depends strongly on the collective interference of light from multiple scattering interfaces. Density-based optimization schemes often employ an unconstrained optimization stage 16,38 followed by multiple stages of increasing constraint enforcement, where device performance often drops significantly as design constraints are enabled. While the optimizer is often able to recover some level of performance, it is not guaranteed to be able to do so. In some cases, the performance of the final feasible design remains lower than earlier infeasible designs. A similar challenge in these optimization schemes lies in enforcing design binarization, which is often enabled gradually throughout several optimization stages by tuning a hyperparameter of the latent variable transformation 26 . While these changes to the device binarization reduce device performance, they present another challenge in that increased binarization is fundamentally at odds with the differentiability of the optimization graph. Essentially, the binarization nonlinearity approaches a step function with zero gradients. The effect of this trade off is that during late stages of the optimization, the algorithm is not able to significantly change the topology of the structure. In contrast, our always-feasible inverse design scheme always produces binarized designs and, moreover, is able to explore changes to the topology throughout the optimization (Fig. 5).

52An added benefit of our always-feasible inverse design method is the user's ability to halt an optimization run once a design with sufficiently high performance is generated. In contrast, obtaining a high performance design in a three field optimization scheme is typically not a sufficient condition for halting an optimization because multiple rounds of infeasible optimization are required to achieve high performance. Moreover, the higher levels of performance that are achieved during the unconstrained three field optimization stages are not guaranteed to be achieved during the stages where fabrication constraints and binarization have been applied.

53The results presented in this paper demonstrate that our method can reliably find high-performing designs for a variety of 2D nanophotonic inverse design problems. We believe the good performance of our method, and its simplicity, could make it a useful new scheme in practical applications of inverse design. In the future, it would be important to use a realistic 3D electromagnetic simulator 39 to design components that can be manufactured in commercial foundries. Another interesting direction would be to apply the method to topology optimization problems in other physical domains.

54We also see possible improvements to the underlying method. Specifically, conditional generators for designs satisfying additional constraints would be valuable, such as minimum solid area and void area 16 , which are frequently included in foundry design rules. Even for width and spacing constraints addressed by the current scheme, it would be useful to develop new generators which are not conservative, i.e. which do not require a brush larger than the target minimum width. Finally, the estimator and transform functions warrant additional study, and we see potential for learned estimators.

55Figs. S1 and S2 illustrate the generation of a 6×8 feasible design in 12 steps, using the algorithm from the main text conditioned on the input pixel reward array θ shown in Fig. S3. A notched-square brush of width 5 pixels is used.

56Step Step 2

57Step 3

58Step 4

59Step 5 0 1 2 3 4 5 6 7

60Step 6 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Figure S1. The first six steps of design generation.

61Step 1 : Solid and void touches are valid at all locations, and all pixels are possible.

62Step 2 : A void touch is placed at A6. Pixels covered by the touch become existing pixels for void, and impossible pixels for solid. A7 becomes a free touch for void.

63Step 3 : The free touch A7 is taken. The design and pixels are unaffected.

64Step 4 : A solid touch is placed at A0.

65Step 5 : A void touch is placed at E6. Location C4 becomes a required pixel for void. There are required-resolving touches in columns 3, 4, and 5, while there are free touches in columns 6 and 7. The resolving (but not free) touches would set C4 to void, but would also remove possible solid pixels.

66Step 6 : All the free touches are taken. The required pixel C4 is resolved, and no required-resolving touches remain.

S2

67A B C D E F

68Step 7 Step 12 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Figure S2. Additional steps of design generation.

69Step 7 : A void touch is placed at D4. Pixels E0, E1, F0, and F1 are now required for void. Both free and resolving (but not free) void touches exist.

70Step 8 : All the free touches are taken. E1 and F1 are resolved, but E0 and F0 remain required void pixels.

71Step 9 : A void touch is placed at F0, and the required pixels are resolved. F1 and F2 are now free void touches.

72Step 10 : The free touches at F1 and F2 are taken.

73Step 11 : A void touch is placed at C5. Pixels at A3 and C2 are now required for void. Since all remaining pixels must now be void, only free void touches remain.

74Step 12 : The free touches are made, and the design is complete. Figure S3. The continuous valued pixel reward array used to bias the 6×8 feasible design generation stepped through in Figs. S1 and S2 .

S2. DESIGNS USING 100 NM NOTCHED SQUARE BRUSH

75Scattering spectra for components created with a 100 nm notched square brush are shown in Fig. S4. The corresponding designs are shown in Fig. S5. Each component is the lowest-loss component found in the first 160 steps of a randomly-initialized optimization run. Figure S7. Simple example illustrating how rewards for otuches are calculated from the sum of θ elements set by the touch. In particular, the reward for placing a solid touch at the middle pixel (i.e. the pixel with the purple border) will be given by the sum of the sum of the values of θ over all the pixels covered by centering the brush at the middle pixel; i.e. it will be equal to 0.5 + 0.5 +0.7 + 0.7 + (-0.6) = 1.8. In contrast, the reward for placing a void touch at the middle pixel will be the negative sum (-1.8). Therefore, as the generator generates the feasible design, the middle pixel will more likely be set as a solid touch rather than a void touch, as expected from the predominantly positive valued (blue) θ in this example.

I. INTRODUCTION

76Integrated photonic devices have led to game changing new capabilities in applications ranging from high-speed communications 1 to next-generation quantum computing platforms 2 and machine learning hardware accelerators 3 . These platforms stand to benefit from photonic components with improved performance, lower losses, larger bandwidths, and more compact footprints. However, achieving such multi-faceted specifications is extremely challenging through conventional intuition-backed design methodologies. In contrast, computational inverse design techniques can efficiently explore complex and high-dimensional design landscapes which are inaccessible to human designers. Enabled by adjoint variable methods 4,5 , gradient-based optimization techniques have proven to be among the most successful at producing photonic devices with high performance, with examples including wavelength-selective elements (e.g. multiplexers, filters, and resonators), signal routing elements (e.g. waveguide bends and couplers), and active components (e.g. modulators) [6][7][8][9][10][11][12][13][14][15][16] .

77The approach in gradient-based design strategies is to first formulate an objective function, calculated in terms of a device's simulated performance. Adjoint methods allow these objective functions and their gradients to be efficiently computed at a cost of only two full-wave simulations 4,5 , independently of the number of degrees of freedom in a design. When used in the context of modern automatic differentiation frameworks (e.g. JAX and TensorFlow), these techniques enable flexible endto-end device optimization frameworks 14,17 . However, guaranteeing that an optimized design yields the desired a) Electronic mail: mfschubert@gmail.com; Authors appear in order of contribution. b) Electronic mail: alfredkcc@x.team c) Electronic mail: iwill@x.team d) Electronic mail: aspy@x.team e) Electronic mail: dhalexander@google.com performance, while simultaneously satisfying the numerous design rules of modern semiconductor manufacturing processes 18,19 , still poses a major challenge. Particularly relevant for integrated photonic devices are the capabilities of the lithographic systems, which define constraints such as the minimum feature length scale that can be reliably printed. Elements of a design which are smaller than this length scale may print inconsistently or may be completely absent in the fabricated structure. Moreover, inclusion of a design feature with sub-resolution size can have broad yield implications. Thus, semiconductor foundries specify design rules which define the minimum width and minimum spacing of design features. Compliance with these rules, as validated by a design rule check (DRC), is typically a prerequisite for fabrication.

78There have been many proposals for DRC-compliant inverse design strategies. One class of strategies selects a design parameterization with intrinsic geometric length scale guarantees, e.g. by optimizing the placement of geometric primitives which already satisfy the desired minimum feature size constraints 20 . A related approach uses a parameterization which enables analytic constraints to be applied directly to the design degrees of freedom, e.g. by optimizing the coordinates of polygon vertices comprising shapes in the design mask 21 . However, the drawback in both of these strategies is that they offer up a limited landscape of potential designs. For example, when optimizing the vertices of a polygon, an optimizer will be unable to alter the topology of a design by closing or opening holes.

79In contrast, topology optimization strategies open up a much larger design landscape by parameterizing a design as a pixelated image, which is typically transformed by a sequence of convolutional filters and pixel-wise nonlinear functions 16,[22][23][24][25][26][27] . These so-called density or threefield parameterizations allow a gradient-based optimization algorithm (e.g. LBFGS or MMA 28 ) to modify any pixel within the design and apply arbitrary changes to the topology. In practice however, there is often a tradeoff between maintaining design feasibility (binarization of the pixels and feature size constraints) and attaining high performance. This is because a continuous optimizer must traverse infeasible regions of the design landscape before reaching feasible regions, which may or may not have high performance. The most common strategy in topology optimization is to begin with a continuous optimization phase before gradually ramping up binarization and applying design rule constraints. However, if binarization is ramped up too quickly, a continuous optimizer will stall and fail to make progress towards improving performance. Similarly, constraints or penalties on the feature size must be introduced in a way which will not push the optimizer away from high performance regions of the parameter space. Often in these strategies, the selection of optimization hyper parameters and the detailed strategy for enforcing design feasibility is an art and, moreover, depends on both the type of device being optimized as well as the performance objective.

80In this work we propose an always feasible gradientbased inverse design framework with strict guarantees on DRC-compliance. The key features of our proposal are a conditional generator for feasible designs, which is combined with a straight-through estimator (STE) to enable gradient backpropagation. The combination of these two components yields a differentiable transform which can be incorporated into an computational graph, much like a convolutional filter or projection operator in densitybased topology optimization. We apply our framework to several practical photonic design challenges (a waveguide bend, a beam splitter, a waveguide mode converter, and a demultiplexer), and demonstrate that the approach reliably yields designs with high performance.

A. Brush-based minimum length scale constraints

81In this section, we introduce a mathematical framework for measuring whether a binarized pixel array is DRC-compliant, focusing on the minimum width and minimum spacing rules commonly required by semiconductor foundries. In our framework, we consider binary arrays with values of −1 and +1, referring to these as void and solid, respectively. During the course of a fabrication workflow, such designs may be converted to contours by off-the-shelf algorithms, such as marching squares or dual contouring 29 .

82All binary arrays can be realized by sequentially setting individual pixels to void or solid; conceptually, this is equivalent to the repeated placements and translations of single-pixel void or solid brushes. While a single-pixel brush can generate all possible binary arrays, some arrays are infeasible with larger brushes. In the trivial case, a single-pixel solid feature cannot be realized with a 3 × 3 pixel solid brush, since centering the brush on a single pixel also sets adjacent pixels to solid. Throughout this paper, we refer to the pixel on which the brush is centered as a touch, t of the brush. Our goal is to determine whether a given design, x is feasible with a some brush, b, i.e. to determine whether all its solid and void features can be realized with b. When this is true, the condition

83is the morphological opening of x with brush b and ¬ is a logical not operation which changes solid features into void features and void features into solid features, i.e. a value of -1 to 1 and a value of 1 to -1. The morphological opening operation is computed by the application of a binary erosion, E followed by a dilation 30 , D with the same brush, i.e.

84. Intuitively, the dilation operation causes features in an image to expand while erosion causes features in an image to shrink. An illustration of these operations is provided in the supporting information. For a b-feasible design x, E(x, b) erodes the solid features and recovers the solid brush touches, while E(¬x, b) recovers the void brush touches. Dilation of the touches then restores the solid and void pixels, respectively. Intuitively, if x contains a small feature that is incompatible with b, then erosion will remove it entirely and no solid pixels will be restored by the dilation. Thus, the binary opening operation removes small features, while leaving feasible features unchanged. Length scale in a topology optimization context is typically associated with the minimum diameter of circular features. Thus, we say that if a design can be realized with an approximately circular brush b L with a diameter of L pixels, it has a minimum length scale of at least L·d, where d is the design pixel pitch. The minimum length scale of the design is the largest value of L for which Eqn. (1) is satisfied with brush b L . When contours are obtained by dual contouring (i.e. outlining pixels, for binary designs), a design with minimum length scale will also have related minimum width and spacing, equal to the minimum width of the brush itself. An example circular brush with associated measurements is shown in Fig. 1a and an example design which is feasible with the circular brush is shown in Fig. 2a.

85We turn now to minimum width and spacing constraints which result from foundry design rules. Given a minimum width and spacing constraint 31,32 , there are many brushes for which the associated feasible designs satisfy the constraint. The smallest of these is the notched square, i.e. a square brush which is solid everywhere except at the corners, as shown in Fig. 1b. An example design is shown in Fig. 2b. When the constraint requires a physical minimum feature width and spacing of w, designs feasible with the notched square brush of width L = w/d+2 will satisfy the constraint. Thus, if we can require that our designs are feasible with a notched square brush of width L = w/d + 2, we are also guaranteed to satisfy width and spacing rules of size w.

86Although reasoning about minimum width and spacing is straightforward for dual-contoured designs feasible with the notched-square brush, we have also extensively validated that such designs are design-rule compliant using industry standard design software such as KLayout 31 and Siemens Calibre Physical Verification 32 .

B. Generator for feasible designs

87In this section we describe our method of inverse design subject to strict length scale constraints. We have shown that designs which are feasible with a certain brush b (bfeasible) will satisfy minimum length scale or width and spacing constraints. Properly, this can be considered a combinatorial optimization problem. However, our approach is to approximately solve this problem, by transforming it into an unconstrained stochastic gradient optimization problem. Critically, we use a conditional generator for feasible designs and a straight-through estimator (STE) for backpropagation; these two components are discussed subsequently.

88In general, a binary design x can be produced by dilation with b of the solid and void touches t s b and t v b , i.e.

89We consider the generation of b-feasible arrays as a process in which t s b or t v b are updated with a single-element change at each step. In this context, we introduce several touch states and pixel states which may be associated with each location at any step in the process. Defining these states for the solid case: existing solid pixels are those which are assigned to solid by some touch in t s b ,

90Impossible solid touches are those which would assign an existing void pixel to solid, and consists of all pixels within some distance of existing void pixels,

91Valid solid touches are those which are not impossible and not already in t s b ,

92where ∧ is an element-wise logical and operation. Possible solid pixels are those obtained by dilating all existing or valid touches with b, i.e. they are those pixels which are or may be solid in a feasible array,

93where ∨ is an element-wise logical or operation. Required solid pixels are those which are not existing and not possible for void,

94Resolving solid touches are those which are valid and would assign solid to a required-solid pixel,

95Finally, free touches are valid but only color existing pixels. Corresponding void touches and pixels are be computed using the process. Fig. 3 shows an example of pixels and touches computed from the steps above and a full example is illustrated in the Supporting Information. A scheme that generates feasible arrays is outlined in Algorithm 1. The algorithm begins with empty t s b and t v b and loops until all pixels are existing for either solid or void. At each step, the pixel and touch states are updated. If free touches exist, all are selected. If resolving touches exist, one of these is selected; otherwise, any of the valid touches are selected.

96The algorithm sets at least one pixel at every step, and thus requires at most N iterations for a reward array with N pixels. A basic implementation of the algorithm involves full-array erosion and dilation operations at each step, which have cost proportional to O(N ), and leading to an overall cost O(N 2 ). However, it is straightforward to implement windowed operations which have fixed cost independent of N , and so feasible design generation with O(N ) complexity is possible.

97If touch selection is random, the algorithm simply yields a random feasible design. In practice, we greedily select the best touch as computed from a pixel reward array θ, where θ is obtained from a latent design produced in the course of an optimization, and is fixed during each run of the generator. The total reward of a solid touch is the sum of θ elements that would be set to solid were the touch to be made, i.e. the sum of θ elements set by the touch. The reward of a void touch is the negative sum of elements set to void by the touch. A simple illustrated example of how rewards for touches are calculated can be found in the supporting information. With this change, the algorithm becomes a conditional generator of feasible designs, where θ biases the feasible design generation. The designs in Fig. 2 have been created by running the algorithm on the same random reward array.

98To gain some intuition for why this scheme always produces feasible designs, consider that the algorithm will select exclusively solid or exclusively void until reaching a state where all remaining pixels are possible for both solid and void. In this state, no touch can lead to an invalid status. Since the starting state is one where all pixels are possible for both solid and void, we can see that the algorithm will never produce an invalid status.

99We emphasize that the full space of feasible designs of brush b is accessible by Algorithm 1. This can be clearly seen, since e.g. if θ = x is provided, where x is any feasible design, the output of the algorithm will simply be x.

C. Straight through estimator

100Algorithm 1 is not differentiable, and so it cannot be directly used with backpropagation in a gradient-based optimization setting. Drawing inspiration from the field of binary and quantized neural networks, we note that binary optimization can be viewed as topology optimization with a minimum length scale equal to a single pixel. Binary and quantized neural networks often make use of a STE in training, to backpropogate gradients through binary activation functions or to latent weights from which low-precision weights are obtained 33 . Specifically, in this approach one substitutes the gradient of a nondifferentiable function with that of an estimator, i.e.

101A typical estimator used for binarization (e.g. via application of the sign function) is the identity operation.

D. Computational graph

102The complete computational graph for the inverse design problem is depicted in Fig. 4. A latent design is passed through a transform, yielding the reward array θ. This is passed to the conditional generator, which produces a feasible design. We pass the design to an electromagnetic simulation engine which computes scattering matrix elements; these are the inputs to an objective function, which computes a scalar loss value. Optionally, we symmetrize the transform output to favor symmetric feasible designs. All operations in this graph are differentiable, with the exception of the generator -for which we use the STE. Thus, we can compute an estimated gradient of the loss with respect to the latent design.

103For the transform, we have found that

104is a good choice, where β is a scalar hyperparameter in the range 2-8. The convolutional transform aids in the optimization, as it ensures that the reward array θ is smooth, restricted in range, and has an associated length scale, determined by the brush size. The form of our estimator matches that of the transform. As with the transform, outputs of the estimator have a characteristic length scale and are restricted to the range (−1, 1), just as outputs of the generator itself are. Thus, the estimator can be seen as a differentiable approximation of the conditional generator. The success of this estimator is consistent with the finding in binary neural networks that estimators which approximate their forward-pass counterpart outperform simpler functions 34 .

105The latent design is randomly initialized with a bias so that the first feasible design is fully solid, and it is updated iteratively using the Adam scheme 35 , which is a common choice for stochastic optimization problems in machine learning. We use a learning rate of 0.01, and β 1 = 0.667 and β 2 = 0.9 for the decay of the gradient and second moment exponential moving averages, respectively.

106Notably, our method does not require scheduling of hyperparameters or changes in parameterization during the course of an optimization, and gives a feasible design at every optimization step. We expect that this simplicity could be advantageous from the perspective of a photonic designer tasked with creating a new component.

E. Objective function

107In a practical design application, one is generally concerned with creating a component that satisfies a performance specification, i.e. a desired level of insertion loss, return loss, and cross talk. We define such specification by defining a cutoff value |S cutoff | for the magnitude for each scattering parameter element of S. Additionally, there is an implicit bound on the allowed values, which is imposed by physical constraints. For example, transmission magnitudes greater than unity are not possible for passive photonic components. Our scalar objective function has the form

108where g is a vector of signs (+1 or -1) matching the size of S. The values of g are positive (+1) where the corresponding element of the cutoff array, |S cutoff | specifies the maximum value, and negative (-1) where |S cutoff | specifies the minimum value. w valid also has the same size as S and defines the range of allowed values for a scattering parameter element, which is defined as the distance between the performance cutoff, specified by |S cutoff |, and the physical bound on the scattering parameter element. For example, a minimum transmission amplitude cutoff of 0.5 (-3 dB in power transmission) would have a w valid of 0.5, because the maximum transmission possible is 1.0. All operations other than the min in the softplus of Eqn. (12) are element-wise.

A. Nanophotonic optimization problems

109In this section we apply our proposed inverse design framework to several integrated photonic components operating in the O-band, demonstrating designs for a waveguide bend, a mode converter, a beamsplitter, and a wavelength demultiplexer 36 . All components are optimized for their characteristics within two 10 nm wavelength bands centered at 1270 nm and 1290 nm. Performance targets for the components are specified in terms of their scattering parameters, and are summarized in Table I. Simulations of the components are performed using Ceviche 17 , an open source 2D finite difference frequency domain (FDFD) simulator. Silicon (ε r = 12.25) and silicon oxide (ε r = 2.25) are used for solid and void materials, respectively. All components are coupled to waveguides having 400 nm width, and we deal with the fundamental waveguide mode unless noted otherwise.

110The waveguide bend features a 1.6×1.6 µm 2 design region, with waveguides connecting to the left (port 1) and bottom (port 2). Given excitation from port 1, we aim to maximize transmission to port 2 while keeping backreflection low. Diagonal reflection symmetry is imposed, so that excitation from port 2 yields identical behavior.

111The spatial mode converter features a 1.6 × 1.6 µm 2 design region, with waveguides connecting to the left and right. We seek designs that maximally convert the fundamental waveguide mode on the left (port 1) to the second order mode on the right (port 2), with minimal backreflection into port 1.

112The beamsplitter design region is 3.2 × 2.0 µm 2 in size, with two waveguides connecting to the left (port 1 and port 4) and two waveguides connecting to the right (port 2 and port 3). Given excitation from port 1, the beamsplitter aims to divide power equally into port 2 and port 3 while minimizing backreflection into port 1 or transmission into port 4. We impose reflection symmetry along the horizontal and vertical axes, so that excitation from any other port yields identical behavior.

113The wavelength demultiplexer features a 6.4 × 6.4 µm 2 design region, with one waveguide connecting to the left (port 1) and two waveguides connecting to the right (port 2 and port 3). Given excitation from port 1, wavelengths in the first band are directed to port 2 while wavelengths in the second band are directed to port 3.

114In the optimization context, we consider three wavelengths per band -the center and extremal wavelengths. The specifications are considered to be fulfilled if the criteria in I are satisfied for all wavelengths. Our design resolution matches the 10 nm simulation resolution, so that e.g. a circular brush with diameter 10 corresponds to a 100 nm length scale. put port and substantial reflection back to the input port. Subsequent updates significantly modify the topology of the design, adding enclosed oxide features and developing isolated silicon features. We emphasize the key characteristic of our scheme -the design at every step is fully binary and satisfies the 100 nm length scale constraint. The target performance specification is achieved in 28 optimization steps, and the design continues to improve with more iterations. The lowest loss in the first 160 steps is found at step 122. Notably, the topology of this design differs from that at step 28, due to the fusing of two void features and the elimination of a third, along with changes in the shape of some solid features. The ability of our scheme to change topology while remaining feasible stands in contrast to some other methods, where the optimizer is locked in to a fixed topology once the optimization reaches an advanced state.

115For the mode converter, beamsplitter, and wavelength demultiplexer, the lowest-loss design from the first 160 optimization steps and corresponding field magnitudes are shown in Fig. 6. The scattering spectra for each is shown in Fig. 7, where each satisfies the performance target laid out in Table I and the 100 nm length scale constraint. As we have shown, the topology of a design can change substantially during the course of the optimization. Since the response of a device is generally discontinuous with major changes in the design shape or topology, a noisy loss trajectory is expected. This is illustrated in Fig. 8, which shows the normalized loss value versus iteration for the waveguide bend of Fig. 5 and the other three components. Points where the performance target is achieved are also highlighted. For each component, the loss generally decreases with step, but noise in the loss value and occasional regressions to higher loss can be seen.

116The waveguide bend and mode converter require fewer than 40 optimization iterations to achieve the target. Meanwhile, the beamsplitter and demultiplexer appear to be relatively more difficult problems, requiring approximately 100 steps to first reach the target. However, this is still well within the range of optimization steps required in an inverse design scheme 16 . In general, difficulty is directly related to the target specifications, length scale constraints, the physical size of the component, and the configuration of connecting waveguides. Reducing the Table I is achieved. length scale or increasing the design size will expand the solution space, and generally allow satisfactory solutions to be found with fewer optimization steps.

117C. Designs using 100 nm notched square brush Next, we turn to component designs generated using a 100 nm notched square brush. With the design resolution of 10 nm, these designs strictly satisfy an 80 nm minimum width and spacing constraint. The normalized loss trajectories four the components are plotted in Fig. 9. Scattering spectra and designs are found in the Supporting Information. For all components, designs achieving the performance target from Table I are found. However, the loss trajectories differ in several respects. Specifically, the trajectories are noisier, they generally contain fewer points that achieve the spec, and the spec is achieved later in the optimization. We attribute this to the fact that the notched square is relatively larger in area, limiting the design space accessible to the optimizer and making the problem more challenging. We expect that optimal hyperparameters of the Adam algorithm used to drive our optimization are somewhat problem-dependent, and in future work it would be interesting to explore various configurations. In particular, reducing the learning rate as the optimization progresses, which has been shown to aid in training of quantized neural networks 37 , could be beneficial.

D. Reliability and effect of length scale

118Our results indicate that our inverse design framework is capable of finding designs with desired performance for a variety of fabrication-constrained photonic inverse design problems. A useful method will find such solutions for a range of length scale constraints, and do so reliably. To evaluate this, we consider the optimization problems above for circular and notched-square brushes with 60 nm, 80 nm, 100 nm, and 130 nm size. To study reliability of the method, we run 20 independent optimizations with different random initialization, each for 500 steps. Thus, for a single problem configuration (combination of device type, brush shape, and brush size), 10,000 feasible designs were generated.

119Our analysis proceeds as follows: for each step i of an optimization run, we identify whether the target performance from Table I is achieved at any step j ≤ i. If the target performance is achieved at any such step, the run is considered successful at step i. Then, for each combination of component, brush shape, and brush size, we compute the number of runs which are successful at each step. From this, the fraction of successful runs is obtained and is shown in Fig. 10.

120Turning first to the 60 nm brushes, we observe that for all components and both brush shapes, we are able to consistently find designs which achieve the performance target. In most cases, only a few tens of optimization steps (and therefore simulations) are required. Random initialization affects the optimization trajectory, and the 20 different runs produce a distribution in the number of steps required to achieve the target. Comparing the circular and notched square brush, we find that with the circular brush the target performance is achieved slightly earlier, consistent with the hypothesis that the notched square presents a more challenging optimization problem. We observe this trend for other brush sizes discussed below. Across all component types designed with the 60 nm brush, the range of steps required to achieve the target performance is at most tens of steps wide, and in practical application a single optimization run may actually be sufficient to find a design which meets the desired performance specification.

121When designing with a 80 nm brush, we again are able to consistently achieve the target performance. Generally, we observe that the number of required steps is larger than for the 60 nm brush. However, in some cases, such as the wavelength demultiplexer with circular brush, the number of steps required follow similar distribution as with the 60 nm brush. This suggests that for some problems, decreasing the length below a threshold value has no benefit. We also see some outlier examples where the target performance specification is not achieved.

122As the brush sizes are increased to 100 nm, the general pattern is repeated. The target performance consistently achieved, but more steps are required and a larger number of outlier optimization runs fail to reach the target within 500 steps. At a brush size of 130 nm, the trend is repeated yet again. With this brush size, designs for the waveguide bend and mode converter which achieve the target continue to be consistently found. For the beamsplitter and wavelength demultiplexer, however, approximately half or fewer optimization runs achieve the target. Therefore, in a practical application of our inverse design method with such large length scales, it may be beneficial to launch multiple optimization runs to ensure that at least one can reach the target performance. Additionally larger design regions may be necessary.

123Much of the data supports the conclusion that larger brushes present more challenging optimization problems. We expect this also for theoretical reasons, since the design space with small brushes is strictly larger than that for larger brushes. However, with 130 nm brush we observe that some of the beamsplitter designs achieve the target performance ahead of the best 80 nm and 100 nm brush runs. This warrants further investigation in future work.

IV. CONCLUSION

124We have introduced an inverse design method which produces designs that are guaranteed to satisfy length scale constraints throughout the course of an optimization. Our always-feasible method is based on a conditional generator for designs and a straight-through gradient estimator, which is commonly used in quantized neural network training 33 . Combined, these two com-ponents enable the problem of length-scale-constrained topology optimization to be posed as an unconstrained stochastic gradient optimization problem.

125While the computational graph of our optimization scheme (Fig. 4) resembles that of some established topology optimization methods 16,26 , where a latent design is transformed into a physical design, the conditional generator used in our scheme avoids the challenges that established topology optimization techniques face in transitioning from performant infeasible regions of the design space to performant feasible designs. In such highdimensional design landscapes there is no guarantee that a high-performing infeasible design will be close to highperforming feasible designs, especially in integrated photonic devices where performance depends strongly on the collective interference of light from multiple scattering interfaces. Density-based optimization schemes often employ an unconstrained optimization stage 16,38 followed by multiple stages of increasing constraint enforcement, where device performance often drops significantly as design constraints are enabled. While the optimizer is often able to recover some level of performance, it is not guaranteed to be able to do so. In some cases, the performance of the final feasible design remains lower than earlier infeasible designs. A similar challenge in these optimization schemes lies in enforcing design binarization, which is often enabled gradually throughout several optimization stages by tuning a hyperparameter of the latent variable transformation 26 . While these changes to the device binarization reduce device performance, they present another challenge in that increased binarization is fundamentally at odds with the differentiability of the optimization graph. Essentially, the binarization nonlinearity approaches a step function with zero gradients. The effect of this trade off is that during late stages of the optimization, the algorithm is not able to significantly change the topology of the structure. In contrast, our always-feasible inverse design scheme always produces binarized designs and, moreover, is able to explore changes to the topology throughout the optimization (Fig. 5).

126An added benefit of our always-feasible inverse design method is the user's ability to halt an optimization run once a design with sufficiently high performance is generated. In contrast, obtaining a high performance design in a three field optimization scheme is typically not a sufficient condition for halting an optimization because multiple rounds of infeasible optimization are required to achieve high performance. Moreover, the higher levels of performance that are achieved during the unconstrained three field optimization stages are not guaranteed to be achieved during the stages where fabrication constraints and binarization have been applied.

127The results presented in this paper demonstrate that our method can reliably find high-performing designs for a variety of 2D nanophotonic inverse design problems. We believe the good performance of our method, and its simplicity, could make it a useful new scheme in practical applications of inverse design. In the future, it would be important to use a realistic 3D electromagnetic simulator 39 to design components that can be manufactured in commercial foundries. Another interesting direction would be to apply the method to topology optimization problems in other physical domains.

128We also see possible improvements to the underlying method. Specifically, conditional generators for designs satisfying additional constraints would be valuable, such as minimum solid area and void area 16 , which are frequently included in foundry design rules. Even for width and spacing constraints addressed by the current scheme, it would be useful to develop new generators which are not conservative, i.e. which do not require a brush larger than the target minimum width. Finally, the estimator and transform functions warrant additional study, and we see potential for learned estimators.

129Figs. S1 and S2 illustrate the generation of a 6×8 feasible design in 12 steps, using the algorithm from the main text conditioned on the input pixel reward array θ shown in Fig. S3. A notched-square brush of width 5 pixels is used.

130Step Step 2

131Step 3

132Step 4

133Step 5 0 1 2 3 4 5 6 7

134Step 6 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Figure S1. The first six steps of design generation.

135Step 1 : Solid and void touches are valid at all locations, and all pixels are possible.

136Step 2 : A void touch is placed at A6. Pixels covered by the touch become existing pixels for void, and impossible pixels for solid. A7 becomes a free touch for void.

137Step 3 : The free touch A7 is taken. The design and pixels are unaffected.

138Step 4 : A solid touch is placed at A0.

139Step 5 : A void touch is placed at E6. Location C4 becomes a required pixel for void. There are required-resolving touches in columns 3, 4, and 5, while there are free touches in columns 6 and 7. The resolving (but not free) touches would set C4 to void, but would also remove possible solid pixels.

140Step 6 : All the free touches are taken. The required pixel C4 is resolved, and no required-resolving touches remain.

S2

141A B C D E F

142Step 7 Step 12 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Figure S2. Additional steps of design generation.

143Step 7 : A void touch is placed at D4. Pixels E0, E1, F0, and F1 are now required for void. Both free and resolving (but not free) void touches exist.

144Step 8 : All the free touches are taken. E1 and F1 are resolved, but E0 and F0 remain required void pixels.

145Step 9 : A void touch is placed at F0, and the required pixels are resolved. F1 and F2 are now free void touches.

146Step 10 : The free touches at F1 and F2 are taken.

147Step 11 : A void touch is placed at C5. Pixels at A3 and C2 are now required for void. Since all remaining pixels must now be void, only free void touches remain.

148Step 12 : The free touches are made, and the design is complete. Figure S3. The continuous valued pixel reward array used to bias the 6×8 feasible design generation stepped through in Figs. S1 and S2 .

S2. DESIGNS USING 100 NM NOTCHED SQUARE BRUSH

149Scattering spectra for components created with a 100 nm notched square brush are shown in Fig. S4. The corresponding designs are shown in Fig. S5. Each component is the lowest-loss component found in the first 160 steps of a randomly-initialized optimization run. Figure S7. Simple example illustrating how rewards for otuches are calculated from the sum of θ elements set by the touch. In particular, the reward for placing a solid touch at the middle pixel (i.e. the pixel with the purple border) will be given by the sum of the sum of the values of θ over all the pixels covered by centering the brush at the middle pixel; i.e. it will be equal to 0.5 + 0.5 +0.7 + 0.7 + (-0.6) = 1.8. In contrast, the reward for placing a void touch at the middle pixel will be the negative sum (-1.8). Therefore, as the generator generates the feasible design, the middle pixel will more likely be set as a solid touch rather than a void touch, as expected from the predominantly positive valued (blue) θ in this example.

참고문헌 39건

  1. Adam: A Method for Stochastic Optimization 2014
  2. Geometry projection method for optimizing photonic nanostructures Optics Letters · Optica Publishing Group · 2006 10.1364/ol.32.000077
  3. Topological design of electromechanical actuators with robustness toward over- and under-etching Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2012 10.1016/j.cma.2012.08.020
  4. Topology optimization for nano‐photonics Laser & Photonics Review · Wiley · 2010 10.1002/lpor.201000014
  5. TCAD development for lithography resolution enhancement IBM Journal of Research and Development · IBM · 2001 10.1147/rd.455.0651
  6. The method of moving asymptotes—a new method for structural optimization International Journal for Numerical Methods in Engineering · Wiley · 1987 10.1002/nme.1620240207
  7. Method for sensitivity analysis of photonic crystal devices Optics Letters · Optica Publishing Group · 2004 10.1364/ol.29.002288
  8. High-performance slow light photonic crystal waveguides with topology optimized or circular-hole based material layouts Photonics and Nanostructures - Fundamentals and Applications · Elsevier BV · 2012 10.1016/j.photonics.2012.04.004
  9. Photonic Device Layout Within the Foundry CMOS Design Environment IEEE Photonics Technology Letters · Institute of Electrical and Electronics Engineers · 2010 10.1109/lpt.2010.2041445
  10. Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation arXiv (Cornell University) · Cornell University · 2013 10.48550/arxiv.1308.3432
  11. Dual contouring of hermite data 2002 10.1145/566570.566586
  12. Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activations arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1609.07061
  13. Large-Angle, Multifunctional Metagratings Based on Freeform Multimode Geometries Nano Letters · American Chemical Society · 2017 10.1021/acs.nanolett.7b01082
  14. Adjoint-based optimization of active nanophotonic devices Optics Express · Optica Publishing Group · 2018 10.1364/oe.26.003236
  15. On minimum length scale control in density based topology optimization Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2018 10.1007/s00158-018-1944-0
  16. Leveraging continuous material averaging for inverse electromagnetic design Optics Express · Optica Publishing Group · 2018 10.1364/oe.26.031717
  17. Inverse design of compact multimode cavity couplers Optics Express · Optica Publishing Group · 2018 10.1364/oe.26.026713
  18. Integrated microwave photonics Nature Photonics · Nature Portfolio · 2019 10.1038/s41566-018-0310-5
  19. Topology optimization of freeform large-area metasurfaces Optics Express · Optica Publishing Group · 2019 10.1364/oe.27.015765
  20. Analytical level set fabrication constraints for inverse design Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-45026-0
  21. Understanding Straight-Through Estimator in Training Activation\n Quantized Neural Nets arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1903.05662
  22. On-chip integrated laser-driven particle accelerator Science · American Association for the Advancement of Science · 2020 10.1126/science.aay5734
  23. Dual contouring of hermite data ACM Transactions on Graphics · Association for Computing Machinery · 2002 10.1145/566654.566586
  24. Inverse design of digital nanophotonic devices using the adjoint method Photonics Research · Optica Publishing Group · 2020 10.1364/prj.383887
  25. Inverse-Designed Photonics for Semiconductor Foundries ACS Photonics · American Chemical Society · 2020 10.1021/acsphotonics.9b01540
  26. Inverse Design of Photonic Crystals through Automatic Differentiation ACS Photonics · American Chemical Society · 2020 10.1021/acsphotonics.0c00327
  27. Minimum length scale in topology optimization by geometric constraints Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2015 10.1016/j.cma.2015.05.003
  28. Inverse-designed non-reciprocal pulse router for chip-based LiDAR Nature Photonics · Nature Portfolio · 2020 10.1038/s41566-020-0606-0
  29. Inverse design of compact multimode cavity couplers Optics Express · Optica Publishing Group · 2018 10.1364/oe.26.026713
  30. Adjoint Method and Inverse Design for Nonlinear Nanophotonic Devices ACS Photonics · American Chemical Society · 2018 10.1021/acsphotonics.8b01522
  31. Forward-Mode Differentiation of Maxwell’s Equations ACS Photonics · American Chemical Society · 2019 10.1021/acsphotonics.9b01238
  32. Inverse design in nanophotonics Nature Photonics · Nature Portfolio · 2018 10.1038/s41566-018-0246-9
  33. Inference in artificial intelligence with deep optics and photonics Nature · Nature Portfolio · 2020 10.1038/s41586-020-2973-6
  34. Quantum circuits with many photons on a programmable nanophotonic chip Nature · Nature Portfolio · 2021 10.1038/s41586-021-03202-1
  35. Photonic topology optimization with semiconductor-foundry design-rule constraints Optics Express · Optica Publishing Group · 2021 10.1364/oe.431188
  36. A perspective on the pathway toward full wave simulation of large area metalenses Applied Physics Letters · American Institute of Physics · 2021 10.1063/5.0071245
  37. Neural nano-optics for high-quality thin lens imaging Nature Communications · Nature Portfolio · 2021 10.1038/s41467-021-26443-0
  38. Adjoint-based optimization of active nanophotonic devices Conference on Lasers and Electro-Optics · 2019 10.1364/cleo_si.2019.sw4j.5
  39. Morphological Image Analysis 2004 10.1007/978-3-662-05088-0