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

OptoGPT: A foundation model for inverse design in optical multilayer thin film structures

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

기본 정보

저자
  1. Taigao Ma
  2. Haozhu Wang
  3. L. Jay Guo
DOI
10.29026/oea.2024.240062
저널
Opto-Electronic Advances
발행년도
2024
발행기관
Opto-Electronic Advances
피인용수
23
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.29026/oea.2024.240062
토픽
Optical Coatings and Gratings
OpenAlex ID
W4400509283

평가 내용

관련도
직접 관련
사업분야
필름·전자재료 · (11) 배리어 필름
부 분야
(13) 프리즘 필름, (15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.90
근거 용어
optical multilayer thin film structures, inverse design, material and thickness, spectrum target, OptoGPT
판단 근거
이 논문은 광학 다층 박막 구조(optical multilayer thin film structures)의 역설계(inverse design)를 위한 생성형 AI 모델을 다루고 있으며, 이는 코오롱인더스트리의 배리어 필름, 광학 필름, 디스플레이 패널재료 등의 기능성 필름 설계 기술과 직접적으로 관련됩니다.
R&D 활용 포인트
다양한 광학적 특성(반사, 투과, 흡수 등)을 목표로 하는 기능성 필름 및 디스플레이용 광학 필름의 소재 조합과 두께를 최적화하는 AI 기반 설계 프로세스 구축에 활용 가능함.
평가 입력
본문 40,799자 중 30,032자 발췌

초록

Optical multilayer thin film structures have been widely used in numerous photonic applications. However, existing inverse design methods have many drawbacks because they either fail to quickly adapt to different design targets, or are difficult to suit for different types of structures, e.g., designing for different materials at each layer. These methods also cannot accommodate versatile design situations under different angles and polarizations. In addition, how to benefit practical fabrications and manufacturing has not been extensively considered yet. In this work, we introduce OptoGPT (Opto Generative Pretrained Transformer), a decoder-only transformer, to solve all these drawbacks and issues simultaneously.

본문 40,799자

본문 펼치기
# OptoGPT: A Foundation Model for Inverse Design in Optical Multilayer Thin Film Structures Taigao Ma <sup>1</sup>, Haozhu Wang <sup>2†</sup>, L. Jay Guo <sup>2</sup> 1 <mark>Department of Physics, University of Michigan, Ann Arbor, Michigan 48109, USA</mark> 2 <mark>Department of Electrical Engineering and Computer Science, University of Michigan, Ann Arbor,</mark> <mark>Michigan 48109, USA</mark> *Email: guo@umich.edu ## Abstract Optical multilayer thin film structures have been widely used in numerous photonic applications. However, existing inverse design methods have many drawbacks because they either fail to quickly adapt to different design targets, or are difficult to suit for different types of structures, e.g., designing for different materials at each layer. These methods also cannot accommodate versatile design situations under different angles and polarizations. In addition, how to benefit practical fabrications and manufacturing has not been extensively considered yet. In this work, we introduce OptoGPT (Opto Generative Pretrained Transformer), a decoder-only transformer, to solve all these drawbacks and issues simultaneously. ## Introduction Optical multilayer thin film structure is one of the most vital photonic structures widely used in many applications, including structural color <sup>1,2</sup>, filters <sup>3</sup>, absorbers <sup>4</sup>, distributed Bragg reflectors <sup>5,6</sup> (DBR), Fabry– Pérot <sup>7</sup> (FP) resonators, photovoltaic <sup>8</sup> and radiative cooling <sup>9,10</sup>, among others. Inverse design seeks to identify the best material arrangements and obtain thickness combinations to achieve user-desired optical targets, which is critical to enable many of the above applications. Currently, there are two types of mainstream inverse design methods: 1) optimization-based methods <sup>11–14</sup>, which rely on numerical †: Work done while at University of Michigan Currently at Amazon simulations and iterative searches to minimize the difference between designed and targeted optical responses; and 2) deep learning-based methods <sup>15–19</sup>, which use neural networks to learn a general mapping from the space of target responses to the space of optical multilayer thin film structures after training on a large dataset. Although widely used, both methods have their own limitations, either from the perspective of design targets or types of designed structures. Optimization-based methods require running the algorithm from scratch when given a new or a different design target, which can be time-consuming. Deep learning-based methods are versatile for design targets, but existing works lack the ability to design for different types of structures (e.g., different material combinations at each layer; different total number of layers, etc). In addition, both methods seldomly examine how to expand the inverse design capabilities for angled incidence with different polarizations that are important for many applications, as well as simultaneous design under multiple conditions required for certain applications. In addition to the above drawbacks, both methods also fail to accommodate the following two features that are vital for practical fabrications: diversity and flexibility. By diversity we mean that a single method can output multiple designs so that researchers can select for their fabrication based on the availability of materials and deposition methods, while flexibility allows researchers to arbitrarily impose restrictions on the material selection and thickness range at any layers for their fabrication or design needs. An inverse design method that can effectively meet these requirements will significantly bridge the gap between design and fabrication, making the design algorithm more practical. In this work, we propose OptoGPT (Opto Generative Pretrained Transformer), a decoder-only transformer <sup>20</sup> model that can potentially address all these issues and unify the multilayer structure inverse design. To do so, first, we introduce “structure token” to fuse the representation of material and thickness and “structure serialization” to unify different types of structures. Next, we propose several techniques to unify the design target in different tasks as a combined reflection and transmission spectrum target. Further, a series of techniques based on “finetuning” and “probability sampling” are developed to unify the design 2 under different angles and polarization, simultaneous design under multiple incident angles, as well as achieving diversity and flexibility for structure fabrication. Based on the empirical results demonstrated, we believe that OptoGPT can serve as a foundation model <sup>21</sup> for the design of optical multilayer thin films across a diverse array of applications. ## Methods Designing a multilayer structure involves determining the material choice at each layer and the corresponding thicknesses of these layers. The major reason that existing deep learning-based methods cannot deal with different types of structures is that the output of these neural networks has fixed size that corresponds to a pre-defined structure, e.g., the three-layer structure of Ag/SiO2/Ag in Ref. 16, the six-layer structure of MgF2/SiO2/Al2O3/TiO2/Si/Ge in Ref. 19, and the twenty-layer structure of alternating SiO2/Si3N4 in Ref. 15, etc. Therefore, these models can only design thickness for each layer and do not allow different material choices. This also make these models fail to accommodate structures with different number of layers. Here, we propose structure tokens and structure serialization to obtain the collaborative representation of materials and their thicknesses on the same footing, and treat the inverse design task as a conditional sequence generation problem. Structure Tokens and Structure Serialization To address the aforementioned issues of existing approaches, we propose to treat material and thickness equally by concatenating them together to form a “ structure token ” . Adding these tokens one by one, we can covert a multilayer structure into a sequence, which will be referred as “structure serialization”. Figure. 1d gives one example of serializing a ?-layer structure on the glass substrate using a sequence with ?+ 1 tokens. The first ? tokens describe the material and thickness at each layer and the last token is a special ‘EoS’ token that denotes the end of the sequence. Utilizing this approach, we can remove the limitation of fixed output size in the previous work and represent different types of structures (e.g., different material combinations at each layer; different total number of layers) in a unified approach. 3 In this work, we consider 18 different materials (see Figure. 1d; see Supplementary Information (SI) 1.1 for their refractive index data), and discretize the thickness in the range of [10, 500] nm with a step size of 10 nm. Therefore, for each layer, there are 18 × 50 + 1 = 901 possible tokens, corresponding to 900 different combinations of material and thickness plus one special ‘EoS’ token. We set the maximum number of layers to be 20, making the total number of multilayer structures under design consideration to be (901) <sup>20</sup> ~10 <sup>59</sup> . We then need to search for an AI platform to accommodate such general approach and handle such a large sample space effectively. Conditional Sequence Generation Since the output format is now a sequence of tokens, the inverse design problem is equivalent to the sequence generation problem conditioned on the input of design targets. This is a problem that has been extensively researched and resolved in the Natural Language Processing (NLP) field using the Generative Pretrained Transformer <sup>22,23</sup> (GPT) model, especially the widely known ChatGPT <sup>24</sup> . Given some texts as input, e.g., a question or task description, GPT models can generate and output a text sequence that relates to the input. We propose to use similar GPT models to solve our problem. Differently, the input is the optical targets in the form of optical spectra (as a function of wavelength) while the output is the serialized physical structure of material and thickness. We show their analogy diagrams in Figure. 1a and Figure. 1b. In this work, we set the reflection and transmission spectrum under normal incidence as our design target. The wavelength range covers the whole visible and near-infrared (NIR) region, spanning from 400 nm to 1100 nm with 10 nm step. We further propose a series of techniques that can expand the design target to absorption spectrum, and reflective/transmissive structural color with minimal adaptations (see below). 4 Figure 1. The schematic of using the Opto-Generative Pretrained Transformer (OptoGPT) to design multilayer thin film structures. (a) and (b) show the diagram of general GPT model in NLP and our OptoGPT, respectively. For GPT, the model takes in the input prompts and generate answers from probability sampling in an auto-regressive way. In OptoGPT, the input prompts are the optical targets while the outputs are designed multilayer structures. (c) Different types of inputs that relates to different application situations, including structural color, absorbers, filters, distributed bragg reflectors (DBR), Fabry–Pérot (FP) resonator and other arbitrary spectrum targets. All of them are converted to reflection and transmission spectrum. (d) One example of the “structure serialization” for a ?-layer structure on the glass substrate. This ?-layer structure is serialized by ?+ 1 tokens. 5 Model Architecture Figure. 2a shows the architecture of our OptoGPT model. For the input, the spectrum target will go through a spectrum embedding to obtain its high-dimension hidden representation. For the output, the structure tokens will first go through a physical embedding layer to obtain its high-dimension hidden representation and then go through positional embeddings to obtain the relative position of each token inside this sequence. After that, both hidden representations of the input spectrum and output structures will go through a series of decoder blocks which contains attention layers, the major working mechanism behind GPT. The first self-attention layer is used to learn the relationship between layered structures, while the second cross attention layer can capture the relationship between the input spectrum and the multilayer structure. Their output will further be used to give a probability distribution over all tokens. Our model is trained for ~200 epochs based on “next-word prediction” <sup>20</sup> using this probability output. We generate a large training dataset with 10 million samples and a validation dataset with 1 million samples (see SI 1.2). The total number of datasets is only ~1/10 <sup>52</sup> of the possible structures. Each sample is a pair of a randomly sampled multilayer thin film structure on a glass substrate and the corresponding spectra simulated using Transfer Matrix Methods <sup>25</sup> (TMM). Details of training and model architecture can be found in SI 1.3. The model architecture and training details are summarized in SI 1.3, and visualization of multi-head self-attention is illustrated in SI 1.4. Inverse Design Once trained, our model can be used to design for a given input spectra target (see Figure. 2b), specifically, our model finishes the design layer-by-layer in an auto-regressive way (see Figure. 2c). When designing the ??ℎ layer, our model takes in the target spectrum together with the previously designed ?−1 tokens, and outputs a probability distribution for all 900+1 tokens. Sampling from this distribution gives the design at the ??ℎ layer. These tokens will again be used as the input when designing the (?+ 1)?ℎ layer. This design process will keep going until reaching the maximum layer of 20 or ‘EoS’ is sampled. 6 This probability sampling has many advantages. First, because of the randomness during sampling, running each separate design process can output different structures. Therefore, the method inherently introduces diversity in the designed structure, capable of output multiple structures that satisfy the design target. In addition, it enables our model to design structures with different number of layers. For example, when ‘EoS’ is sampled at the fifth layer, our model terminates the design process and output the existing four-layer structure. The probability sampling will also be used to handle design with constraints in the latter section. Figure 2. Details of OptoGPT model. (a) The model architecture of our OptoGPT, which is a decoder only transformer. More details can be found in SI 1.3. (b) The working diagram of our OptoGPT model. (c) The diagram of the auto-regressive design process. When designing for ??ℎ layer, we sample from the probability output to obtain the layered information. This design process will keep going until reaching the maximum layer of 20 or ‘EoS’ is sampled. 7 ## Results Visualization of Structure Tokens Before presenting the training and inverse design results, it is instructive to examine if the proposed structure tokens can capture the material and thickness information. We use the t-distributed stochastic neighbor embedding <sup>26</sup> (t-SNE) to reduce the dimension of their physical embeddings to 2-dimensions and visualize results in Figure. 3. To further compare these embeddings with the spectrum input, we also randomly select 1,000 spectra from the validation dataset and visualize their hidden representations’ dimension reduction results in Figure. 3. Several interesting features are immediately observed. First, the physical structures (colored traces consisting of individual dots representing the structure token) and optical spectra responses (encircled cluster of green crosses) are well separated in this 2-D representation, even though they were fed into training on the equal footing. This demonstrates that our model has learned to distinguish the attributes of material structures and optical spectra while mapping them into the same hidden representation space. Second, the 900 structure tokens are easily distinguishable, either as colored curves (the starting and ending points correspond to thickness of 500 nm and 10nm respectively), or cluster of dots, with no overlap between different materials. Upon close examination, it is clear that our model has intelligently separated the low refractive index dielectrics from the high refractive dielectrics (zoom-in view in (i) and (ii)). Within these two groups, all curves converge to the center region representing the lowest thickness 10 nm. This is anticipated from optical physics: when the dielectric layer thickness is reduced to the minimal all materials will behave similarly as they contribute to negligible optical phrase change or optical absorption (in the case of high index material). In other words, our model has learned the fact that thin dielectric layers of different materials all have similar effect on light propagation in multilayer thin films. Equally interesting is that all the metals cluster into their own territories in this 2-D map. This can be understood because as the metal layer thickness is greater than the optical penetration depth, its contribution to the optical response 8 (i.e. spectra) has little dependence on the thicknesses. These observations demonstrate that even though our model does not directly take in any refractive index nor thickness, it can capture this information and learning hidden representations from a large dataset, validating the usage of structure serialization and spectrum embedding. This also aligns well with the strong representation capabilities demonstrated in many other foundation models such as Galactica <sup>27</sup>, GaTo <sup>28</sup>, and PaLM-E <sup>29</sup> . Figure 3. 2D visualization of the hidden space using t-SNE to reduce dimension . This figure includes 900 structure tokens and 1,000 spectra randomly selected from the validation dataset. Spectra are marked as green cross and structure tokens are marked as colorful dots, where different color corresponds to different materials. The green dashed circle illustrates the approximated boundary between spectra and structures. Inside this boundary are the spectra, with examples of two different spectra (marked as red cross) given in (iii) and (iv). Outside the green boundary are structure tokens corresponding to different material and thickness combinations. These structure tokens with the same materials either form a line shape or cluster together. For each line, the dot size is monotonically decreasing from one end to the other end, corresponding to the monotonical thickness decrease from 500 nm to 10 nm. Most lines converge into two regions, with zoom-in details given in (i) and (ii) corresponding to low refractive and high refractive index 9 region, respectively. Our model demonstrates the ability of learning the material and thickness from a large dataset without their explicit inputs. Inverse Design Performance Now we will examine our model’s inverse design performance on different application situations. We want to mention that in this section, our model will be fixed and all these design tasks can be finished instantaneously by feeding different inputs of target optical response into our model. However, in case of higher accuracy is required, we run a thickness finetuning to improve the performance because the 10 nm discretization of thickness may lead to sub-optimal performance for certain materials (e.g. metals and absorbing dielectrics) (see SI 2.1). By default, we present the design performance without thickness finetuning unless specified. _Performance on the Validation Dataset_ Here, we evaluate the averaged inverse design performance on 1,000 spectra targets randomly selected from the validation dataset. Based on the multilayer design output from our model, we simulate their corresponding spectrum using TMM and calculate the Mean Absolute Error (MAE) between the input spectrum and the simulated spectrum to quantify the design accuracy. The closest spectrum with smallest MAE in the training dataset is treated as the design baseline, i.e., the best spectrum we could get by simply referring to the training dataset. A good machine learning model should be able to learn from and outperform the training dataset. In Figure. 4a, we compare the MAEs of the closest structures in the training dataset (orange dots), designed structures (blue dots), and finetuned structures (red dots). On average, the MAE of the designed structures is 0.0258, which is lower than the MAE of the closest structures (0.0296) in the training set; finetuning the thickness can further reduce the MAE to 0.0192 (~24% reduction). In Figure. 4b, we compare the number of layers in the target structure (the structure corresponding to the target spectrum in the validation dataset) vs. the number of layers in the designed structure. The zero upper diagonal matrix implies that our model learns to solve design tasks using a simplified structure with fewer 10 layers (~6 layers on average), which can facilitate the fabrication process as structures with fewer layers are easier to make. Finally, we record the time-consumption in Figure. 4c. On average, our model completes each design within 0.1s, which is comparable as running a TMM simulation. We detail one such inverse design example in Figure. 4d. By running the sampling process multiple times, our model can output multiple different structures with close-to-target spectrum that are much better than the training dataset. We also detail these designed structures to illustrate the diversity in Figure. 4d. Figure 4. Results of inverse design performance on the validation dataset . (a) The Mean Absolute Error (MAE) on 1,000 random spectrum targets from the validation dataset. The orange, blue and red dots correspond to closest structures in training dataset, designed structures and finetuned structures. Their averaged MAE are 0.0296, 0.0258, 0.0192, respectively. (b) The number of layers in the target structure v.s. the number of layers in the designed structure. On average, the designed structures have 6 fewer layers than the target structure. (c) Time comparison of forward simulation using TMM and inverse design using OptoGPT (without finetuning). Results are averaged on 1,000 random targets in the validation dataset, showing that our model makes inverse design as fast as doing a TMM simulation. (d) One inverse design 11 example from the validation dataset. The table below gives the details of five designed structures and the finetuned structure as well as their spectrum MAE. _Spectrum Filter_ Now we will evaluate our model on practical inverse design tasks. One such application is the spectrum filter which is used to selectively reflect or transmit specific band of light. Many deep learning-based methods have been proposed to inverse design these filters <sup>15,30,31</sup> . Here, several examples are tested: a band notch filter at 550nm, a band-notch filter at 700nm, high reflection in NIR, double high reflection in 500 600nm and 800-1000nm, etc. We set the input to be the perfect rectangular spectrum, which has 0% transmission in the desired region and 100% transmission in the rest region. In all these artificial spectrum design targets, our model can output designs that outperform the training dataset. Thickness finetuning can further improve the accuracy. We illustrate two examples and compare their spectrum in Figure. 5a-b. More examples and details can be found in SI 2.5. _Absorber_ Perfect absorbers have been widely used in photovoltaics, radiative cooling, detecting and solar-thermal harvesting <sup>4,10,32–34</sup>, etc. Although our model is trained on reflection and transmission spectrum, it also demonstrates good performance for perfect absorbers. This is done by simply setting the input spectrum as zero for both reflection and transmission. Our model gives multiple designs and we show one design example in Figure. 5c. We also find that our model gives some similar structures reported in Ref. <sup>35</sup> and Ref. <sup>19</sup> . More details can be found in SI 2.4. Apart from perfect absorbers, our model can also design for arbitrary absorption. Since energy conservation guarantees that reflection + transmission + absorption = 1, we can tailor the input spectrum by setting reflection to be one minus absorption and setting transmission to be zero. Figure. 5d gives one such design example. More design examples can be found in SI 2.4. _Structural Color_ 12 Compared to dyes and chemical pigments, structural colors <sup>2</sup> exhibit unique advantages on high resolution, stability and sustainability and have been widely used in color printing <sup>36,37</sup>, information encryption <sup>38</sup>, sensors <sup>39</sup>, etc. There are also many works that use deep learning to solve the structural color inverse design <sup>16,18,40</sup> . Usually, colors can be represented by a three-dimensional color coordinate, e.g., Lab, RGB or xyY values. In order to make our model well suit for this application, here, we propose an algorithm that can convert a color coordinate into a continuous spectrum in a generalized way (see later section). These converted spectra can be pre-calculated and will not impact the design process. When designing for reflective color, we set the reflection spectrum to be this converted spectrum and transmission spectrum to be zero. For transmissive color, we set the transmission spectrum to be this converted spectrum and reflection spectrum to be one minus transmission. In Figure. 5e and Figure. 5f, we illustrate multiple design examples and their color visualization for both reflective and transmissive structural color, respectively. Details on the basic color theory, relationship of color coordinate and color spectra, and more examples can be found in SI 2.3. 13 Figure 5. Examples of inverse design artificial spectra in different applications. (a) Design for band notch filter at 550nm. (b) Design for high reflection in NIR. (c) Design for perfect absorber. (b) Design for arbitrary absorber. Here, real lines, dotted lines and squared lines correspond to the spectrum of artificial target, the spectrum of the closest structure in the training dataset and the spectrum of designed structure from our model (with thickness finetuning), respectively. (e-f) shows the example of designing reflective and transmissive structural color, respectively. We use the color difference of Δ? to evaluate the design performance (smaller Δ? means smaller color difference). For each color, the first brick, second brick, and third brick correspond to the target color, closest color in the training dataset, and designed color from our mode (with thickness finetuning), respectively. More details and examples can be found in section 2 in SI. Design Flexibility Design flexibility adds extra freedom to the design process because researchers can impose restrictions on the material selection and thickness range for any specific layer to meet the fabrication or design needs. We 14 propose and apply a simple but generalized method of “probability resampling” to impose restrictions in the design process. As illustrated in Figure. 6a, this is done by removing these structures that do not satisfy constraints from probability sampling. Since this method is independent of spectra targets, it can be used to design for any applications. As an example, we use our model to inverse design a FP resonator. Here, the target spectrum has a resonance absorption at 610 nm and corresponds to a three-layer 20 nm Ag/150 nm SiO2/50 nm Ag resonator on a glass substrate. We consider adding four different constraints separately: 1. Fix the first layer to be 100 nm SiO2 2. Remove Ag in the third layer 3. Limit the thickness of the first layer within [10, 150] nm range and remove Ag/Al in the first layer 4. Specify the material arrangement to be a three-layer Ag/Si3N4/Ag structure and design the thickness only The first constraint can be used when a dielectric layer at the air interface is needed for protection, while the second constraint is practical when looking for an alternative to replace silver, considering silver is an expensive metal. For the third constraint, we use it as a general example of adding thickness and material restrictions simultaneously. We use our model to design structures and we compare their spectra in Figure. 6b-d, demonstrating that our model can finish designs that satisfy desired constraints while still guaranteeing spectrum performance. In particular, the fourth constraint specifies the material at each layer and only requires thickness design. This is a traditional design process widely used by human experts and in many optimization-based methods. The design results in Figure. 6e show that given the spectrum target and material arrangements, our model can be used for direct thickness design without iterative optimization. Since this feature does not rely on the target optical response, researchers can quickly examine if certain material combinations can achieve the target spectrum and obtain their corresponding thickness if so. We provide more examples of design flexibility in SI 3.2. 15 Figure 6. Illustration of design flexibility. (a) A visualization of the design process when adding the design constraint. We use the example of “remove Ag from material selection at ??ℎ layer”. When designing the desired ??ℎ layer, we remove these tokens that do not satisfy constraints from probability distribution and only sample from the renormalized probability based on remaining tokens. (b-e) Comparison of the spectrum performance with different constraints, respectively. The real lines and squared lines are the target spectrum and the spectrum of the designed structure with different constraints, respectively. More examples of design flexibility can be found in section 3 in SI. Generalization Ability Although our model is trained on normal incident spectrum, its strong generalization ability enables the design towards different angles and polarization states, expanding allowable applications significantly. This is achieved through finetuning our entire model on a small dataset. We further propose the idea of “mixed sampling” to design structures that satisfy multiple requirements simultaneously. _Finetuning_ 16 Starting with the OptoGPT model trained on a 10M dataset, we can finetune this model on a smaller dataset to suit for light incidence of different angles and polarization states. Figure. 7a gives the finetune diagram. For example, in order to design for s-polarized spectrum under 20º incident angle, we first prepare a small 1M dataset with such spectrum and then update entire model by 10 epochs. This only requires 1% computing resources compared with training the entire model from scratch. Similar procedures can be done for other angles and polarizations. In Figure. 7b-g, we show multiple inverse design examples finetuned for 20° s-polarization, 60° s-polarization, 10° p-polarization, 50° p-polarization, 30° unpolarized light and 50° unpolarized light, respectively. More comparisons between pre-trained model and finetuned model are given in SI 4.1. _Mixed Sampling_ Instead of designing the spectrum for a specific angle/polarization, in some situations we hope the designed structure can simultaneously realize multiple spectrum under different incident angles/polarizations, which has not been extensively explored. Benefited from our model’s probability output, we can simply add up these outputs from multiple models that are specific to each situation, and then do a probability sampling based on this mixed output. This is called “Mixed Sampling” and we illustrate it in Figure. 8a. As an example, in Fig. 8b, we use this method to design an angle-invariant spectrum at 0°, 20° and 40° for unpolarized light. More examples can be found in SI 4.2. 17 Figure 7. Design performance on different angles and polarization. (a) The diagram of finetune. (b-g) gives inverse design examples for spectrum with 20° s-polarization, 60° s-polarization, 10° p-polarization, 50° p-polarization, 30° unpolarized and 50° unpolarized, respectively. The real line, dashed line and squared line correspond to the target spectrum, spectrum designed by the pretrained model and spectrum designed by the finetuned model, respectively. 18 Figure 8. Simultaneous design on different angles and polarization. (a) The diagram of mixed sampling for simultaneous design. (b) One example of designing angle-robust spectrum for 0°, 20° and 40° unpolarized light. ## Discussion By converting the multilayer structure into a sequence using structure tokens and structure serialization, we propose OptoGPT to effectively deal with the non-trivial inverse design problem in multilayer structure. Combined with many proposed techniques, our model can unify the inverse design under different types of input targets under different incident angle/polarization, be versatile to different types of structures, as well as facilitating the fabrication process by providing the diversity and flexibility. We compare our model with existing methods in Table 2 in SI. We hope the development of OptoGPT will make the multilayer thin 19 film structure-based inverse design effective in methodology and easily accessible to researchers and engineers. The interesting findings of the hidden representations of OptoGPT suggest that it has acquired domain specific knowledge pertaining to optical multilayer structures through the training process. Furthermore, the model has demonstrated the capacity to apply this acquired knowledge effectively in the inverse design process. However, the current framework still lacks explain ability and does not allow users to directly understand the physical principles involved in its designs. For example, is there a general principle for designing absorbers and DBR? How to design high saturation structural color step-by-step? We hope future work can find a way to extract and formulate these design principles from the model and apply them to guide inverse design. In addition, using similar methods, our model can be expanded towards high-dimension complicated photonic structures, e.g., 2D metasurfaces or 3D waveguides, using similar tokenization method in Vision Transformer <sup>41</sup> . However, one limitation is that our model requires a large dataset for training, which is also a common criticism for many GPT models. For example, ChatGPT is trained on billions of tokens using ~10,000 GPUs, costing ~$10M for a single training. In this work, because of the constraint on computation resources, we need to simplify our design problems, including using limited types of materials, limited spectrum range, thickness discretization as well as the maximum number of layers that can be designed, all of which can be extended with more computation resources. Despite using a large-scale dataset with 10 million samples for training, it is important to recognize that this dataset only covers a small fraction (10 <sup>−52</sup> ) of the expansive and complex design space associated with optical multilayer thin film structures. Due to this limitation of its training dataset, OptoGPT may fail to find a design that lies outside the boundaries of the sampled design space (see SI 4.2). Close collaboration across multiple research groups is needed to obtain a better model for a more general and better photonic inverse design that expands to more complicated structures. 20 References 1. Yang, Z., Ji, C., Liu, D. & Guo, L. J. Enhancing the Purity of Reflective Structural Colors with Ultrathin Bilayer Media as Effective Ideal Absorbers. _Advanced Optical Materials_ 7, 1900739 (2019). 2. Wang, D. _et al._ Structural color generation: from layered thin films to optical metasurfaces. _Nanophotonics_ (2023) doi:10.1515/nanoph-2022-0063. 3. Ji, C. _et al._ Decorative near-infrared transmission filters featuring high-efficiency and angular insensitivity employing 1D photonic crystals. _Nano Res._ 12, 543–548 (2019). 4. Li, W., Xu, M., Xu, H.-X., Wang, X. & Huang, W. Metamaterial Absorbers: From Tunable Surface to Structural Transformation. _Advanced Materials_ 34, 2202509 (2022). 5. Hu, J. _et al._ Polariton Laser in the Bardeen-Cooper-Schrieffer Regime. _Phys. Rev. X_ 11, 011018 (2021). 6. Fink, Y. _et al._ A Dielectric Omnidirectional Reflector. _Science_ 282, 1679–1682 (1998). 7. Li, Z., Butun, S. & Aydin, K. Large-Area, Lithography-Free Super Absorbers and Color Filters at Visible Frequencies Using Ultrathin Metallic Films. _ACS Photonics_ 2, 183–188 (2015). 8. Liu, M., Johnston, M. B. & Snaith, H. J. Efficient planar heterojunction perovskite solar cells by vapour deposition. _Nature_ 501, 395–398 (2013). 9. Raman, A. P., Anoma, M. A., Zhu, L., Rephaeli, E. & Fan, S. Passive radiative cooling below ambient air temperature under direct sunlight. _Nature_ 515, 540–544 (2014). 10. Wang, S. _et al._ Scalable thermochromic smart windows with passive radiative cooling regulation. _Science_ 374, 1501–1504 (2021). 11. Rabady, R. I. & Ababneh, A. Global optimal design of optical multilayer thin-film filters using particle swarm optimization. _Optik_ 125, 548–553 (2014). 12. Tikhonravov, A. V., Trubetskov, M. K. & DeBell, G. W. Application of the needle optimization technique to the design of optical coatings. _Applied optics_ 35, 5493–5508 (1996). 13. Schubert, M. F. _et al._ Design of multilayer antireflection coatings made from co-sputtered and low refractive-index materials by genetic algorithm. _Optics express_ 16, 5290–5298 (2008). 21 14. Shi, Y., Li, W., Raman, A. & Fan, S. Optimization of Multilayer Optical Films with a Memetic Algorithm and Mixed Integer Programming. _ACS Photonics_ 5, 684–691 (2018). 15. Liu, D., Tan, Y., Khoram, E. & Yu, Z. Training deep neural networks for the inverse design of nanophotonic structures. _Acs Photonics_ 5, 1365–1369 (2018). 16. Dai, P. _et al._ Inverse design of structural color: finding multiple solutions via conditional generative adversarial networks. _Nanophotonics_ 11, 3057–3069 (2022). 17. Unni, R., Yao, K. & Zheng, Y. Deep convolutional mixture density network for inverse design of layered photonic structures. _ACS Photonics_ 7, 2703–2712 (2020). 18. Wang, H. & Guo, L. J. NEUTRON: Neural Particle Swarm Optimization for Material-Aware Inverse Design of Structural Color. _iScience_ 104339 (2022) doi:10.1016/j.isci.2022.104339. 19. Chen, W. _et al._ Broadband Solar Metamaterial Absorbers Empowered by Transformer-Based Deep Learning. _Advanced Science_ n/a, 2206718 (2023). 20. Vaswani, A. _et al._ Attention is all you need. _Advances in neural information processing systems_ 30, (2017). 21. Bommasani, R. _et al._ On the Opportunities and Risks of Foundation Models. Preprint at http://arxiv.org/abs/2108.07258 (2022). 22. Radford, A., Narasimhan, K., Salimans, T. & Sutskever, I. Improving Language Understanding by Generative Pre-Training. 12 (2018). 23. Brown, T. B. _et_ _al._ Language Models are Few-Shot Learners. Preprint at http://arxiv.org/abs/2005.14165 (2020). 24. Ouyang, L. _et al._ Training language models to follow instructions with human feedback. Preprint at http://arxiv.org/abs/2203.02155 (2022). 25. Byrnes, S. J. Multilayer optical calculations. _arXiv preprint arXiv:1603.02720_ (2016). 26. Hinton, G. E. & Roweis, S. Stochastic Neighbor Embedding. in _Advances in Neural Information_ _Processing Systems_ vol. 15 (MIT Press, 2002). 22 27. Taylor, R. _et_ _al._ Galactica: A Large Language Model for Science. Preprint at http://arxiv.org/abs/2211.09085 (2022). 28. Reed, S. _et al._ A Generalist Agent. Preprint at http://arxiv.org/abs/2205.06175 (2022). 29. Driess, D. _et al._ PaLM-E: An Embodied Multimodal Language Model. Preprint at http://arxiv.org/abs/2303.03378 (2023). 30. Han, X., Fan, Z., Liu, Z., Li, C. & Guo, L. J. Inverse design of metasurface optical filters using deep neural network with high degrees of freedom. _InfoMat_ 3, 432–442 (2021). 31. Unni, R., Yao, K., Han, X., Zhou, M. & Zheng, Y. A mixture-density-based tandem optimization network for on-demand inverse design of thin-film high reflectors. _Nanophotonics_ 10, 4057–4065 (2021). 32. Slobodkin, Y. _et al._ Massively degenerate coherent perfect absorber for arbitrary wavefronts. _Science_ 377, 995–998 (2022). 33. Lord, J. _et al._ Global potential for harvesting drinking water from air using solar energy. _Nature_ 598, 611–617 (2021). 34. Teperik, T. V. _et al._ Omnidirectional absorption in nanostructured metal surfaces. _Nature Photon_ 2, 299–301 (2008). 35. Yang, C. _et al._ Compact multilayer film structures for ultrabroadband, omnidirectional, and efficient absorption. _Acs Photonics_ 3, 590–596 (2016). 36. Tan, S. J. _et al._ Plasmonic Color Palettes for Photorealistic Printing with Aluminum Nanostructures. _Nano Lett._ 14, 4023–4029 (2014). 37. Yang, W. _et al._ All-dielectric metasurface for high-performance structural color. _Nat Commun_ 11, 1864 (2020). 38. Song, M. _et al._ Color display and encryption with a plasmonic polarizing metamirror. _Nanophotonics_ 7, 323–331 (2018). 39. Balaur, E. _et al._ Colorimetric histology using plasmonically active microscope slides. _Nature_ 598, 65– 71 (2021). 23 40. Gao, L., Li, X., Liu, D., Wang, L. & Yu, Z. A bidirectional deep neural network for accurate silicon color design. _Advanced Materials_ 31, 1905467 (2019). 41. Dosovitskiy, A. _et al._ An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. Preprint at http://arxiv.org/abs/2010.11929 (2021). 24 Acknowledgements: We thank the National Science Foundation (PFI-008513 and FET-2309403) for the support of this work. Author Contribution: T. M carried out the research work, developed architecture and performed the data analysis. J. G conceived the research framework. H. W. provided constructive suggestions and feedback. The text was written by T. M., H. W., J. G. Competing Interests: The work reported in this manuscript is the subject of a U.S. patent application filed by the University of Michigan. 25

섹션 본문 34문단 · 32,321자

(제목 없음)

1Foundation models are large machine learning models that can tackle various downstream tasks once trained on diverse and large-scale data, leading research trends in natural language processing, computer vision, and reinforcement learning.However, no foundation model exists for optical multilayer thin film structure inverse design.Current inverse design algorithms either fail to explore the global design space or suffer from low computational efficiency.To bridge this gap, we propose the Opto Generative Pretrained Transformer (OptoGPT).OptoGPT is a decoder-only transformer that auto-regressively generates designs based on specific spectrum targets.Trained on a large dataset of 10 million designs, our model demonstrates remarkable capabilities: 1) autonomous global design exploration by determining the number of layers (up to 20) while selecting the material (up to 18 distinct types) and thickness at each layer, 2) efficient designs for structural color, absorbers, filters, distributed brag reflectors, and Fabry-Pé rot resonators within 0.1 seconds (comparable to simulation speeds), 3) the ability to output diverse designs, and 4) seamless integration of user-defined constraints.By overcoming design barriers regarding optical targets, material selections, and design constraints, OptoGPT can serve as a foundation model for optical multilayer thin film structure inverse design.

Introduction

2Optical multilayer thin film structure is one of the most vital photonic structures widely used in many applications due to its ease of fabrication, including structural color 1,2 , filters 3 , absorbers 4 , distributed bragg reflectors 5,6 (DBR), Fabry-Pé rot 7 (FP) resonators, photovoltaic 8 and radiative cooling 9,10 , among others.

3The inverse design of multilayer structures requires identifying the best material arrangements and obtaining thickness combinations to achieve user-desired optical targets.Previously, researchers and engineers specified material arrangements based on their domain expertise and simplified inverse design as iterative thickness optimization, with methods including particle swarm optimization 11 , needle optimization 12 , and genetic algorithms 13 .These optimization-based methods usually rely on numerical simulations and iterative searches to minimize the difference between simulated and targeted optical properties.However, a high-performance design may not be discovered if the human-specified material arrangement is not optimal.A global design method that can determine the total number of layers and material arrangements will broaden the design space significantly and lead to better performance.

4The main difficulty of global design originates from the fact that materials are usually dispersive, making design problems more intractable for broadband applications.Recently, several methods have been proposed to tackle this challenge.For example, Shi 14 et al. proposed the memetic algorithm to incorporate the material into the design process and designed a high-performance radiative cooling device.Wang 15 et al. framed the inverse design as a sequence generation and developed a reinforcement learning-based algorithm OML-PPO to determine the number of layers and material combinations automatically.Finally, Zhang 16 et al. combined GLOnet 17 with the reconciled level set method to optimize both material and thickness for the optical transfer function.However, all these methods are inefficient because they require iterative evaluations and time-consuming simulations, which can be problematic when the target changes as a new design process from scratch will be needed.

5In order to make the design process more efficient, many deep-learning-based methods have been proposed and explored, including tandem networks 18 , GANs 19 , and MDNs 20,21 .Because of the strong generalization ability of neural networks, these methods can learn a general mapping from the space of optical targets to the space of optical multilayer thin film structures.After training on a dataset, they can generate designs instantaneously for different targets without iterative and time-consuming evaluations and simulations.

6Unfortunately, although efficient, they fail to accommodate the global design.This is because all these neural networks have fixed output size that disallows the material selections and structures with different number of layers.

7So far, no algorithm can simultaneously remedy the challenge of global design and efficient design.In this work, we seek new solutions by turning attention to the transformer 22 , a family of neural network models initially proposed for natural language processing (NLP).Different from other neural networks, transformer uses the attention mechanism to weight the importance of different words in a sentence relative to each other, empowering the parallel learning of long-term dependencies and highly complex relationships among input and output.Because of this, transformer has been widely used as the backbone of foundation models 23 in NLP 24 , computer vision 25 , and reinforcement learning 26 .Recently, researchers have started using transformer to inverse design multilayer thin film structures.For example, Chen 27 et al. proposed the Metamaterial Spectrum Transformer (MST) to design for arbitrary absorbers using a six-layer MgF2/SiO2/Al2O3/TiO2/Si/Ge structure.

8However, MST uses an encoder-only transformer that maps absorption spectra to a fixed material combination.Therefore, MST is a thickness-only design method that still cannot tackle the challenge of global design.In addition, the small dataset used for training (0.15M compared to millions or billions of data used in NLP) limits its capability outside absorber applications.In this work, we propose the Opto Generative Pretrained Transformer (OptoGPT) to resolve the conflict between global design and efficient design.Similar to other GPT models like GPT-3 24 and ChatGPT 28 , our OptoGPT is a decoder-only transformer that generates multilayer structures layer-by-layer in an auto-regressive way.In order to incorporate materials into the design process, we introduce structure serialization that uses a token to represent the material and thickness of a layer simultaneously.We also apply spectrum embedding to facilitate the learning of the complex relationship between spectra and structure.In this way, our model can design in the global space and determine the total number of layers (up to 20 layers), materials (up to 18 types), and thickness simultaneously.In addition, we use a large dataset comprising 10 million designs for training.This large-scale dataset enables our model to capture complicated relationships and expands our model's design ability towards diverse applications, including structural colors, filters, absorbers, DBR, and FP resonators.Our model is also efficient in all these design applications.On average, OptoGPT can complete each design within 0.1 seconds while consistently achieving design results better than those of baseline methods.Benefiting from the design efficiency, our model can also output multiple designs with minimal effort and exhibit high design flexibility under different design constraints, which are beneficial for fabrication and design considerations.For example, given the constraint of material arrangements at each layer, OptoGPT functions as a direct thickness optimizer that circumvents the iterative optimization process.

9Based on the empirical results obtained in this study, we believe that OptoGPT can serve as a foundation model for the design of optical multilayer thin films across a diverse array of applications.By offering highly performant initial optical designs with computational efficiency, our model has the potential to streamline the design process, reduce the need for extensive manual iterations, and accelerate the development of advanced optical systems.Furthermore, by serving as a reliable starting point for researchers and engineers, our model facilitates the exploration of novel designs and the optimization of optical performance within the constraints of material properties and fabrication techniques.As such, OptoGPT will contribute to the field of photonics by enhancing the accessibility and effectiveness of optical design methodologies.

Implementation of OptoGPT

10Our OptoGPT works in a similar way as many other GPTs.In NLP, GPT is an auto-regressive language model that produces text output given the initial text as a prompt (see Fig. 1(a)).The initial prompt can be a question, a task description, or anything necessary for the model to understand what to expect as outputs.

11During training, pairs of text prompts and expected answers are fed together to the GPT, with the training goal of recovering the expected answers from the model's probability output.At testing time, GPT will only take in the text prompt; answers will be generated auto-regressively.This process also works for our OptoGPT (see Fig. 1(b)).Specifically, OptoGPT takes optical targets as the input prompt and outputs the corresponding multilayer structure design.Fig. 1(c) demonstrates several examples of input prompts.In order to unify the space of design targets in various applications, we convert all design targets to the reflection and transmission spectrum under normal incidence.The considered wavelength covers the visible and near-infrared (NIR) region, spanning from 400 nm to 1100 nm with 10 nm gap.

12Because GPT requires sequential data as the input, we propose and apply structure serialization to convert a multilayer structure into a sequence of tokens.Fig. 1(d) gives one example of serializing a twenty-layer structure on the glass substrate using a sequence with twenty-one tokens.The first twenty tokens describe the material and thickness at each layer, whereas their relative position inside this sequence denotes the relative order of each layer in the multilayer structure.Here, the material is selected from a database with 18 different types of materials (see SI 1.1 for refractive index data), and the thickness is selected from a discretized range in [10, 500] nm with a step size of 10 nm.Of these twenty-one tokens, the last token is a special 'EoS' token that denotes the end of the sequence.Therefore, for each layer in the multilayer structure, there are 18 × 50 + 1 = 901 possible tokens, corresponding to 900 different combinations of material and thickness plus one special 'EoS' token.During inverse design, OptoGPT will output a probability distribution on all 901 tokens.Sampling from this distribution gives the design at each layer.If 'EoS' is sampled, OptoGPT will terminate the design process and output the existing sequence as the designed structure.We set the maximum number of layers to be 20, making the total number of multilayer structures under design consideration to be (901) 20 ~10 59 .Utilizing this approach, our model can determine the total number of layers required for a given design target, as well as select the appropriate material and thickness for each individual layer.

13We also apply spectrum embedding to facilitate the learning of complex relationships between spectra and multilayer structures.To understand how it works, we illustrate the detailed architecture of OptoGPT in Fig. 2(a).Similar to GPT, our OptoGPT has decoder blocks with identical structures that are stacked together.Only the first decoder block takes in the hidden representation of the input sequence of tokens, which is obtained after going through a learnable physical embedding and a positional embedding.All the other decoder blocks take in the output from the feed-forward layer in the previous decoder block.There are also two consecutive attention layers inside each decoder block.The first self-attention layer is used to learn the relationship between layered structures, while the second cross-attention layer can capture the relationship between input spectra and the multilayer structure.Because spectra and multilayer structure are in two different spaces, we introduce spectrum embedding to fill this gap and map the space of spectra into the same hidden space of multilayer structure such that our model can recognize and perform the attention operation (see the visualization of hidden space in the later section).A more detailed description of model architecture can be found in SI 1.3.

Inverse design and performance

14We illustrate the auto-regressive design process with probability sampling 30 in Fig. 3(a).Because this autoregressive design process does not require any iterative simulations or evaluations, it can be finished within 0.1 seconds, enabling inverse design to adapt to different design tasks quickly while still running as fast as the TMM simulation (see time-consumption comparison in Fig. 3(d)).In addition, running the sampling process multiple times leads to different outputs, which gives multiple designs with minimal effort.As a comparison, to obtain a different design, most optimization-based methods require restarting the iteration from different initial points.

15First, we evaluate the performance of inverse design on 1000 spectra targets randomly selected from the validation dataset.Mean Absolute Error (MAE) between the target spectrum and the spectrum of the designed structure is used to quantify the design performance.In Fig. 3(b), we compare the MAEs of the closest structures in the training dataset (orange dots), designed structures (blue dots), and finetuned structures (red dots).The closest structure in the training dataset is treated as the performance baseline.We iterate through the training dataset and select the structure with the lowest spectrum MAE as the closest structure.On average, the MAE of the designed structures is 0.0258, which is lower than the MAE of the closest structures (0.0296); finetuning the thickness can further reduce the MAE to 0.0192 (~24% reduction).

16We detail one such inverse design example in Fig. 3(e).In addition, in Fig. 3(c), we compare the number of layers in the target structure (the structure corresponding to the target spectrum in the validation dataset) vs. the number of layers in the designed structure.The zero upper diagonal matrix implies that our OptoGPT learns to solve design tasks using a simplified structure with fewer layers (~6 layers on average), which can facilitate the fabrication process as structures with fewer layers are easier to make.

17Next, we use our model to design structures for different applications, including structural color, absorber, filter, DBR, and FP resonator (discussed later).We use an artificial spectrum for each task as the design target (see Section 2 in SI).In Fig. 4(a), we describe each design task in detail, summarize these designed structures, and compare their spectrum performance.We also illustrate the performance of some design tasks in Fig. 4(b-e).Fig. 4(b-d) shows the detailed spectrum comparison for the task of "perfect absorption in 400-1100 nm", "band-notch filter at 550 nm", and "high reflection in NIR", respectively.In Fig. 4(e), we give some examples of designing reflective and transmissive structural colors.A color-to-spectrum conversion is done ahead of the design process (see SI 2.3).More design examples for each type of application are provided in Section 2 in SI.Specifically, our model can reproduce similar structures reported in 27 and 31 when designing for absorbers.Because our dataset is randomly generated, it is almost impossible for the training dataset to contain a perfect spectrum identical to the artificial target.However, our model can still finish these designs, demonstrating strong learning and generalization ability from the dataset.

High design flexibility

18Design flexibility adds extra freedom to the design process because researchers can arbitrarily impose restrictions on the material selection and thickness range at any layers specific to the fabrication or design needs.We apply a simple but generalized method based on probability sampling to impose restrictions in the design process.As illustrated in Fig. 5(a), this is done by removing these structures that do not satisfy constraints from probability sampling.Since this method is independent of spectra targets, it can be used for designing any applications.As an example, we use OptoGPT to inverse design an FP resonator.Here, the target spectrum has a resonance absorption at 610 nm (see Fig. 5(c)) and corresponds to a three-layer 20 nm Ag/150 nm SiO2/50 nm Ag resonator on the glass substrate.Without any constraint, OptoGPT outputs multiple designs with a low spectrum MAE (see Fig. 5(c)).However, each structure varies significantly from the others (see Fig. 5(b)).

Now we consider adding four different constraints separately:

191. Fix the first layer to be 100 nm SiO2 2. Remove Ag in the third layer 3. Limit the thickness of the first layer inside [10, 150] nm and remove Ag/Al in the first layer 4. Specify the material arrangement to be a three-layer Ag/Si3N4/Ag structure and design the thickness only The first constraint can be used when requiring a dielectric layer at the air interface for protection, while the second constraint is practical when looking for an alternative to replace silver, considering silver is a precious metal.For the third constraint, we use it as a general example of adding thickness and material restrictions simultaneously.We list these designed structures in Fig. 5(b) and plot their spectra in Fig. 5(d), demonstrating that OptoGPT can finish designs that satisfy desired constraints while still guaranteeing spectrum performance.After examining these designed structures, we find that our model uses two strategies to satisfy the second constraint.The first strategy uses aluminum in the third layer as the reflective layer (see structure C2.1 and C2.2 in Fig. 5(b)), while the second strategy adds one extra thick dielectric layer on top of the FP resonator (see structure C2.3, C2.4, and C2.5 in Fig. 5(b)),).On the other hand, our model selects dielectric materials with a relatively high refractive index as the first layer to satisfy the thin thickness range in the third constraint.

20In particular, the fourth constraint specifies the material at each layer and only requires thickness design.This is a traditional design strategy widely used by human experts and in many optimization-based methods.

21Our results show that given the spectrum target and material arrangements, OptoGPT can be used as a direct thickness design without iterative optimization.Since this feature does not rely on targets, researchers can quickly examine if certain material combinations can achieve the target spectrum and obtain their corresponding thickness if so.We provide more examples of design flexibility in section 3 in SI.

Visualization of learned hidden representations

22To get insight on why the OptoGPT model shows high efficiency in the multilayer structure inverse design, we would like to understand if our model has learned to sort out the intricate relationships between spectra, materials, and thicknesses.To do this, we use the t-distributed stochastic neighbor embedding 32 (t-SNE) to reduce the high dimensional hidden representations to two dimensions in order to visualize results.The results were shown in Fig. 6, by taking all 900 structure tokens used in training and 1000 spectra randomly selected from the validation dataset.Several interesting features are immediately observed.First, the physical structures (colored traces consisting of individual dots representing the structure token) and optical spectra responses (encircled cluster of green crosses) are well separated in this 2-D representation, even though they are fed into training on the equal footing.This demonstrates that our model has learned to distinguish the attributes of material structures and optical spectra while mapping them into the same hidden representation space.Second, the 900 structure tokens are easily distinguishable, either as colored curves (the starting and ending points correspond to thickness of 500 nm and 10nm respectively), or cluster of dots, with no overlap between different materials.Upon close examination, OptoGPT has intelligently separated the low refractive index dielectrics from the high refractive dielectrics (zoom view in (i) and (ii)).Within these two groups, all curves converge to the center region representing the lowest thickness 10 nm.This makes perfect sense as when the dielectric layer thickness is reduced to the minimal all materials will behave similarly as they contribute to negligible optical phrase change or optical absorption (in the case of high index material).In other words, OptoGPT has learned the fact that thin dielectric layers of different materials all have similar effect on light propagation in multilayer thin films.Equally interesting is that all the metals clusters into their own territories in this 2-D map.This can be easily explained because when the metal layer thickness is greater than the optical penetration depth, its contribution to the optical response (i.e., spectra) has little dependence on the thicknesses.These observations demonstrate that even though our model does not directly take in any refractive index nor thickness, it is capable of capturing this information and learning hidden representations from a large dataset, validating the usage of structure serialization and spectrum embedding.This also aligns well with the strong representation capabilities demonstrated in many other foundation models such as Galactica 33 , GaTo 34 , and PaLM-E 35 .

Discussion

23For a long time, photonic inverse design was regarded as a much more difficult problem than simulation and has presented high entry barriers for people interested in searching for the optical design in their specific applications.We hope the development of OptoGPT will make the multilayer thin film structure-based inverse design an equally accessible task as the traditional optical simulation for a multilayer thin film structure.By treating inverse design as a sequence generation conditioned on the optical targets and using a large-scale dataset for training, our OptoGPT outperforms all the existing inverse design methods on four aspects (see Table S2 in SI).This result shows that OptoGPT can act as a foundation model for multilayer thin film inverse design, making the inverse design as easy, fast, and straightforward as running a simulation.

24Our findings regarding the hidden representations of OptoGPT suggest that it has acquired domain-specific knowledge pertaining to optical multilayer structures through the training process.Furthermore, the model has demonstrated the capacity to apply this acquired knowledge effectively in the inverse design process.However, the current framework lacks explainability and does not allow users to directly understand the physical principles involved in its designs.For example, is there a general principle for designing absorbers and DBR?How to design high saturation structural color step-by-step?We hope future work can find a way to extract, formulate, and apply these design principles from the model to guide inverse design.

25Finally, our method has some limitations as it requires a large dataset for training, which is also a common criticism for many large language models.For example, ChatGPT is trained on billions of tokens using ~10,000 GPUs, costing ~$10M for a single training.In this work, because of the constraint on computation resources, we have to simplify our design problems, including using limited types of materials, limited spectrum range, thickness discretization as well as the maximum number of layers that can be designed, all of which can be extended with more computation resources.Despite using a large-scale dataset with 10 million samples for training, it is important to recognize that this dataset only covers a small fraction of the expansive and complex design space associated with optical multilayer thin film structures.Due to this limitation of the training dataset, OptoGPT may fail to generate performant designs when tasked with generating designs that lie outside the boundaries of the sampled design space (see SI 4.2).Close collaboration across multiple research groups is needed to obtain a better model for photonic inverse design.Constraint 1 -4 are "Fix the first layer to be 100 nm SiO2", "Remove Ag in the third layer", "Limit the thickness of the first layer inside [10, 150] nm and remove Ag/Al in the first layer", and "Specify the material arrangement to be a three-layer Ag/Si3N4/Ag structure and design the thickness only", respectively.

26For each constraint, we give five designed structures and use red color to highlight the best structure with given in (iii) and (iv).Outside the green boundary are structure tokens corresponding to different material and thickness combinations.These tokens with the same materials either form a line shape or cluster together.For each line, the dot size is monotonically decreasing from one end to the other end, corresponding to the monotonical thickness decrease from 500 nm to 10 nm.Most lines converge into two regions, with zoom-in details given in (i) and (ii) corresponding to low refractive and high refractive index region, respectively.Our model demonstrates the ability of learning the material and thickness from a large dataset without their explicit inputs.

Fig. 2 (

27Fig. 2(b) illustrates the training procedure of our OptoGPT model.We generate a large training dataset with 10 million samples and a validation dataset with 1 million samples (see SI 1.2).Each sample is a pair of a randomly sampled multilayer thin film structure sitting on the glass substrate and its corresponding spectra simulated using Transfer Matrix Methods 29 (TMM).The training dataset is used for training and the validation dataset is used for model selection.Once trained, our model can be used to design different spectra targets with different constraints.Furthermore, considering that the 10 nm discretization of thickness may lead to sub-optimal performance, we run a thickness finetuning to improve the design performance (see SI 2.1).Results of designed structures and finetuned structures are reported separately.

Figure 1 .

28Figure 1.The schematic of using the Opto-Generative Pretrained Transformer (OptoGPT) to design multilayer thin film structures.(a) and (b) show the diagram of GPT and our OptoGPT, respectively.GPT is trained on pairs of input prompts and output answers.During testing time, the model only takes in the input prompts and generate answers from probability sampling in an auto-regressive way.In OptoGPT, the input prompts are the optical targets while the outputs are designed multilayer structures.(c) An illustration of different design applications, including structural color, absorbers, filters, distributed bragg reflectors (DBR), Fabry-Pé rot (FP) resonator and other arbitrary spectrum targets.All design targets are converted to design the reflection and transmission spectrum from 400 nm to 1100 nm under normal incidence.(d) An example of the "structure serialization" for a twenty-layer structure on the glass substrate.This twenty-layer structure is serialized by 20 + 1 tokens.The first twenty tokens are formed by concatenating the material and thickness at each layer.The last token is 'EoS', shorten for End of Sequence.At each layer, there are 18 possible types of materials and 50 different thickness choices (10nm discretization in [10, 500] nm).The refractive index of each material is given in SI 1.1.

Figure 2 .

29Figure 2. Details of OptoGPT model.(a) The detailed model architecture of our OptoGPT, which is a decoder-only transformer.We use a fully-connected layer as the spectrum embedding to map spectrum to the space of hidden representation.The decoder has (we set = 6) decoder blocks that are stacked together.All decoder blocks use a self-attention layer and a cross-attention layer to process the structure and spectrum representations and use a feed-forward layer to connect to the next decoder block.Residual connections (not shown here) are used for both attention layers and feed-forward layers.Before passing the sequence of tokens (SoT) to the first decoder block, we use physical embeddings to get the hidden representation of all structure words in SoT, and use positional embeddings to recognize the relative position of each structure word inside this SoT.In total, our model has 59M parameters.Details of training and model architecture can be found in SI 1.3.(b) The working diagram of our OptoGPT model.We generate a training dataset with 10M randomly generated samples for training and train our model about two weeks using a NVIDIA 3090 GPU.After training, our model can be used for inverse design directly regardless of the spectrum targets and design constraints.

Figure 3 .

30Figure 3. Results of inverse design performance on the validation dataset.(a) Illustration of the design process.Given a specific spectrum as the target, our model finishes the design layer-by-layer in an autoregressive way.When designing the ℎ layer, our model takes in the target spectrum together with the old Sequence of Tokens (SoT) designed from previous − 1 layers, and outputs a probability distribution for all 900+1 tokens.Sampling from this distribution gives the design at the ℎ layer.Then, we append this sampled token at the end of the SoT.This new SoT will be used as the input to OptoGPT when designing the + 1 ℎ layer.This design process will keep going until reaching the maximum layer of 20 or 'EoS' is sampled.(b) The Mean Absolute Error (MAE) on 1K random spectrum targets from the validation dataset.For each spectrum, we design five different structures by running the design process five times and the one with the lowest MAE is treated as the final designed structure.The orange, blue and red dots correspond to closest structures in the training dataset, designed structures and finetuned structures.Their averaged MAE

Figure 4 .

31Figure 4. Examples of inverse design artificial spectra in different applications.(a) summarizes each task descriptions as well as designed structures in detail.The spectrum MAE are reported in the last column.The numbers in black, in underline and in italic blue are the spectrum MAE of designed structure, finetuned structures and closest structures in the training dataset, respectively.(b-d) illustrate the design performanceof "perfect absorption in 400-1100nm", "band-notch filter at 550nm", and "high reflection in NIR", respectively.In each figure, real lines, dotted lines and squared lines correspond to the spectrum of artificial target, the spectrum of the closest structure in the training dataset and the spectrum of designed structure from our model, respectively.Our model outperforms the baseline in all tasks.(e) shows the example of designing transmissive and reflective structural color.We use the color difference of Δ to evaluate the design performance.For each color, the first brick, second brick, and third brick correspond to the target color, designed color, and finetuned color, respectively.More details and examples can be found in section 2 in SI.

Figure 5 .

32Figure 5. Illustration of design flexibility.(a) A visualization of the design process when adding the design constraint.We use the example of "remove Ag from material selection at ℎ layer".When designing the desired ℎ layer, we remove these tokens that do not satisfy constraints from probability distribution and only sample from the renormalized probability based on remaining tokens.(b) Summary of designed structures as well as their spectrum performance when adding different constraints to design a FP resonator.

33the lowest MAE.(c) Comparison of the spectrum performance without any design constraint.(d) Comparison of the spectrum performance under four different constraints.We only plot the spectrum of the best structure in each category.More examples of design flexibility can be found in section 3 in SI.

Figure 6 .

34Figure 6.2D visualization of the hidden space using t-SNE to reduce dimension.This figure includes 900 structure tokens and 1000 spectra randomly selected from the validation dataset.Spectra are marked as green cross and structure tokens are marked as colorful dots, where different color corresponds to different materials.The green dashed circle illustrates the approximated boundary between spectra and structures.Inside this boundary are the spectra, with examples of two different spectra (marked as red cross)

참고문헌 36건

  1. Design of multilayer antireflection coatings made from co-sputtered and low-refractive-index materials by genetic algorithm Optics Express · Optica Publishing Group · 2008 10.1364/oe.16.005290
  2. Application of the needle optimization technique to the design of optical coatings Applied Optics · Optica Publishing Group · 1996 10.1364/ao.35.005493
  3. Global optimal design of optical multilayer thin-film filters using particle swarm optimization Optik · Elsevier BV · 2013 10.1016/j.ijleo.2013.07.028
  4. A Dielectric Omnidirectional Reflector Science · American Association for the Advancement of Science · 1998 10.1126/science.282.5394.1679
  5. Passive radiative cooling below ambient air temperature under direct sunlight Nature · Nature Portfolio · 2014 10.1038/nature13883
  6. Omnidirectional absorption in nanostructured metal surfaces Nature Photonics · Nature Portfolio · 2008 10.1038/nphoton.2008.76
  7. Large-Area, Lithography-Free Super Absorbers and Color Filters at Visible Frequencies Using Ultrathin Metallic Films ACS Photonics · American Chemical Society · 2015 10.1021/ph500410u
  8. Efficient planar heterojunction perovskite solar cells by vapour deposition Nature · Nature Portfolio · 2013 10.1038/nature12509
  9. Compact Multilayer Film Structures for Ultrabroadband, Omnidirectional, and Efficient Absorption ACS Photonics · American Chemical Society · 2016 10.1021/acsphotonics.5b00689
  10. Plasmonic Color Palettes for Photorealistic Printing with Aluminum Nanostructures Nano Letters · American Chemical Society · 2014 10.1021/nl501460x
  11. Color display and encryption with a plasmonic polarizing metamirror Nanophotonics · De Gruyter · 2017 10.1515/nanoph-2017-0062
  12. Training Deep Neural Networks for the Inverse Design of Nanophotonic Structures ACS Photonics · American Chemical Society · 2018 10.1021/acsphotonics.7b01377
  13. Optimization of Multilayer Optical Films with a Memetic Algorithm and Mixed Integer Programming ACS Photonics · American Chemical Society · 2017 10.1021/acsphotonics.7b01136
  14. Decorative near-infrared transmission filters featuring high-efficiency and angular-insensitivity employing 1D photonic crystals Nano Research · Springer Science+Business Media · 2018 10.1007/s12274-018-2249-8
  15. Enhancing the Purity of Reflective Structural Colors with Ultrathin Bilayer Media as Effective Ideal Absorbers Advanced Optical Materials · Wiley · 2019 10.1002/adom.201900739
  16. A Bidirectional Deep Neural Network for Accurate Silicon Color Design Advanced Materials · Wiley · 2019 10.1002/adma.201905467
  17. All-dielectric metasurface for high-performance structural color Nature Communications · Nature Portfolio · 2020 10.1038/s41467-020-15773-0
  18. Inverse design of metasurface optical filters using deep neural network with high degrees of freedom InfoMat · Wiley · 2020 10.1002/inf2.12116
  19. Deep Convolutional Mixture Density Network for Inverse Design of Layered Photonic Structures ACS Photonics · American Chemical Society · 2020 10.1021/acsphotonics.0c00630
  20. Polariton Laser in the Bardeen-Cooper-Schrieffer Regime Physical Review X · American Physical Society · 2021 10.1103/physrevx.11.011018
  21. Global potential for harvesting drinking water from air using solar energy Nature · Nature Portfolio · 2021 10.1038/s41586-021-03900-w
  22. Colorimetric histology using plasmonically active microscope slides Nature · Nature Portfolio · 2021 10.1038/s41586-021-03835-2
  23. A mixture‐density‐based tandem optimization network for on‐demand inverse design of thin‐film high reflectors Nanophotonics · De Gruyter · 2021 10.1515/nanoph-2021-0392
  24. Scalable thermochromic smart windows with passive radiative cooling regulation Science · American Association for the Advancement of Science · 2021 10.1126/science.abg0291
  25. Benchmarking deep learning-based models on nanophotonic inverse design problems Opto-Electronic Science · Opto-Electronic Advances · 2022 10.29026/oes.2022.210012
  26. NEUTRON: Neural particle swarm optimization for material-aware inverse design of structural color iScience · Cell Press · 2022 10.1016/j.isci.2022.104339
  27. Inverse design of structural color: finding multiple solutions <i>via</i> conditional generative adversarial networks Nanophotonics · De Gruyter · 2022 10.1515/nanoph-2022-0095
  28. Metamaterial Absorbers: From Tunable Surface to Structural Transformation Advanced Materials · Wiley · 2022 10.1002/adma.202202509
  29. Massively degenerate coherent perfect absorber for arbitrary wavefronts Science · American Association for the Advancement of Science · 2022 10.1126/science.abq8103
  30. Structural color generation: from layered thin films to optical metasurfaces Nanophotonics · De Gruyter · 2023 10.1515/nanoph-2022-0063
  31. Broadband Solar Metamaterial Absorbers Empowered by Transformer‐Based Deep Learning Advanced Science · Wiley · 2023 10.1002/advs.202206718
  32. Optimizing the design of broadband solar metamaterial absorbers based on titanium nitride nanorings [Invited] Optical Materials Express · Optica Publishing Group · 2023 10.1364/ome.499630
  33. Radiative Cooling for Energy Sustainability: From Fundamentals to Fabrication Methods Toward Commercialization Advanced Science · Wiley · 2023 10.1002/advs.202305067
  34. Physics-data-driven intelligent optimization for large-aperture metalenses Opto-Electronic Advances · Opto-Electronic Advances · 2023 10.29026/oea.2023.230133
  35. Inverse-designed metasurfaces for highly saturated transmissive colors Journal of the Optical Society of America B · Optica Publishing Group · 2023 10.1364/josab.505444
  36. Mapping information and light: Trends of AI-enabled metaphotonics Current Opinion in Solid State and Materials Science · Elsevier BV · 2024 10.1016/j.cossms.2024.101144