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

An Efficient Algorithm for Automatic Structure Optimization in X-ray Standing-Wave Experiments

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

기본 정보

저자
  1. Osman Karslıoğlu — Chemical Sciences Division, Lawrence Berkeley National Laboratory, Berkeley CA, USA
  2. Mathias Gehlmann — Department of Physics, University of California Davis, Davis CA, USA|||Material Sciences Division, Lawrence Berkeley National Laboratory, Berkeley CA, USA
  3. Juliane Müller — Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley CA, USA
  4. Slavomír Nemšák — Advanced Light Source, Lawrence Berkeley National Laboratory, Berkeley CA, USA
  5. James A. Sethian — Center for Applied Mathematics for Energy Research Applications, Lawrence Berkeley National Laboratory, Berkeley CA, USA|||Department of Mathematics, University of California Berkeley, Berkeley CA, USA
  6. A. P. Kaduwela — Air Quality Research Center, University of California Davis, Davis, CA USA
  7. Hendrik Bluhm — Chemical Sciences Division, Lawrence Berkeley National Laboratory, Berkeley CA, USA|||Advanced Light Source, Lawrence Berkeley National Laboratory, Berkeley CA, USA
  8. C. S. Fadley — Department of Physics, University of California Davis, Davis CA, USA|||Material Sciences Division, Lawrence Berkeley National Laboratory, Berkeley CA, USA
DOI
10.1016/j.elspec.2018.10.006
저널
Journal of Electron Spectroscopy and Related Phenomena
발행년도
2018
발행기관
Elsevier BV
피인용수
15
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.elspec.2018.10.006
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W2811324542

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (15) 디스플레이 패널재료
부 분야
(11) 배리어 필름, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
X-ray standing-wave, multilayered samples, buried interfaces, structure optimization, photoemission
판단 근거
이 논문은 다층막(multilayer) 구조의 계면 및 두께를 분석하기 위한 X선 정재파(X-ray standing-wave) 기반의 자동 구조 최적화 알고리즘을 다룹니다. 이는 코오롱인더스트리의 디스플레이용 다층 배리어 필름(11)이나 투명 폴리이미드(16)와 같은 정밀한 박막/계면 제어가 필요한 소재의 구조 분석 및 물성 평가 기법에 간접적으로 응용될 수 있습니다.
R&D 활용 포인트
다층 구조 필름(배리어 필름, CPI 등)의 미세한 층 두께, 계면 거칠기 및 확산 거동을 비파괴적으로 분석하고 모델링하는 소프트웨어적 방법론으로 활용 가능합니다.
평가 입력
본문 55,125자 중 30,032자 발췌

초록

초록이 없습니다.

본문 55,125자

본문 펼치기
### UC Davis #### UC Davis Previously Published Works Title An Efficient Algorithm for Automatic Structure Optimization in X-ray Standing-Wave Experiments Permalink <u>[https://escholarship.org/uc/item/5q3196q1](https://escholarship.org/uc/item/5q3196q1)</u> Journal Journal of Electron Spectroscopy and Related Phenomena, 230 ISSN 0368-2048 Authors Karslıoğlu, Osman Gehlmann, Mathias Müller, Juliane <u>[et al.](https://escholarship.org/uc/item/5q3196q1#author)</u> Publication Date 2019 DOI 10.1016/j.elspec.2018.10.006 Peer reviewed <u>[eScholarship.org](https://escholarship.org)</u> [Powered by the California Digital Library](http://www.cdlib.org/) # An Efficient Algorithm for Automatic Structure Optimization in X-ray Standing-Wave Experiments Osman Karslıoğlu <sup>1</sup>, Mathias Gehlmann <sup>2,3</sup>, Juliane Müller <sup>4</sup>, Slavomir Nemšák <sup>5</sup>, James Sethian <sup>6</sup>, Ajith Kaduwela <sup>7</sup>, Hendrik Bluhm <sup>1,5</sup>, Charles Fadley* <sup>,2,3</sup> 1Chemical Sciences Division, Lawrence Berkeley National Laboratory, Berkeley CA, USA 2Material Sciences Division, Lawrence Berkeley National Laboratory, Berkeley CA, USA 3Department of Physics, University of California Davis, Davis CA, USA 4Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley CA, USA 5Advanced Light Source, Lawrence Berkeley National Laboratory, Berkeley CA, USA 6Department of Mathematics, University of California Berkeley, Berkeley CA, USA 7Air Quality Research Center, University of California Davis, Davis, CA USA - Corresponding author (fadley@physics.ucdavis.edu) # Abstract X-ray standing-wave photoemission experiments involving multilayered samples are emerging as unique probes of the buried interfaces that are ubiquitous in current device and materials research. Such data require for their analysis a structure optimization process comparing experiment to theory that is not straightforward. In this work, we present a new computer program for optimizing the analysis of standing-wave data, called SWOPT, that automates this trial-and-error optimization process. The program includes an algorithm that has been developed for computationally expensive problems: so-called black-box simulation optimizations. It also includes a more efficient version of the Yang X-ray Optics Program (YXRO) [Yang, S.-H., Gray, A.X., Kaiser, A.M., Mun, B.S., Sell, B.C., Kortright, J.B., Fadley, C.S., J. Appl. Phys. 113, 1 (2013)] which is about an order of magnitude faster than the original version. Human interaction is not required during optimization. We tested our optimization algorithm on real and hypothetical problems and show that it finds better solutions significantly faster than a random search approach. The total optimization time ranges, depending on the sample structure, from minutes to a few hours on a modern laptop computer, and can be up to 100x faster than a corresponding manual optimization. These speeds make the SWOPT program a valuable tool for realtime analyses of data during synchrotron experiments. Keywords: SWOPT, YXRO, SO-I, data analysis, optimization #### in X ray Standing-Wave Experiments # 1. Introduction X-ray standing-wave techniques have been developed in the 1960s, and since then blossomed into a powerful set of tools for investigating the electronic structure of materials with high spatial resolution. Initially, Bragg reflections from crystal lattices were used to selectively probe the structure of materials on the atomic scale, using X-ray fluorescence or Auger emission as the probe [1-4]. Later, periodic polycrystalline samples — such as magnetic multi-layered materials - were used to investigate structural properties with unprecedented depth selectivity, using reflectivity, fluorescence, and X-ray absorption as probes [5]. The use of photoemission (PES) in standing-wave studies came somewhat later beginning in the 1990s with single-crystal systems and hard/tender X-rays with energies of about 3 keV [6]. This method was then extended into multilayer systems with soft X-rays [7]. The small inelastic mean free path of photoelectrons — as generated by soft X-rays — renders the PES technique very surface sensitive. Even though surface sensitivity is undesirable in experiments probing bulk or buried-interface properties, the PES sensitivity to chemical states, electric fields and electron momentum makes it an irreplaceable tool for studying core-level and valence band properties and enables direct mapping of the electronic band structure. For example, there are by now approximately 40 papers on soft- and hard- X-ray SW-PES in the literature, including both single-crystals and synthetic heterostructures, as reviewed elsewhere [8, 9]. One of the latest expansions of SW-PES was angle-resolved studies of valence states. The technique successfully addressed emergent phenomena at complex oxide interfaces such as LSMO/STO [10], GTO/STO [11], and LNO/STO [12]. Another important development was combining standing-waves with ambient-pressure XPS to study ion adsorption [13] and electrooxidation [14] at solid/liquid interfaces. More recently, standing-wave hard X-ray photoemission was used to obtain site- and element-specific band structure in single crystals of a dilute magnetic semiconductor: Mn-doped GaAs [15]. The experimental data in SW-PES are usually collected in the form of core-level photoelectron intensities as a function of incidence angle (aka rocking curves or RCs) or photon energy. Firstorder Bragg reflection creates a strong periodic modulation in the exciting electric field, and by slightly changing the incident angle or the photon energy one is able to scan the position of the standing-wave by half of its period. Spatially resolved information is obtained by correlating the experimental data with calculations using a specially written X-ray optical program called YXRO [16]. Using multi-layer mirrors as the SW generators — with layers of interest grown within or transferred onto them — brings certain challenges. Apart from uncertainties in the structural parameters of the sample itself, one has to consider the imperfections present in the mirror. However, using photoemission rather than simple reflection/diffraction/absorption data brings further dimensions of information to the experiment; each chemical species exhibits a distinctive #### in X ray Standing-Wave Experiments rocking curve, as they originate from different depths and their locations with respect to the nodes/antinodes of the standing-wave are generally different. For example, recent work that combined X-ray standing-wave photoemission with ambient-pressure PES (SWAPPS) resulted in unprecedented accuracy in probing solid/liquid interfaces [13]; this demonstrates the ability of the SWAPPS technique to study more complicated systems that involve chemical species that are free to move in a liquid layer, in contrast to the fixed layers in a solid. The task of obtaining the theoretical RCs that best match the experimental RCs is essentially an optimization problem with the goal to minimize the discrepancy between theory and experiment by determining the individual layer thicknesses and upper and lower interdiffusion lengths/roughnesses. An analytical measure of this discrepancy and its derivatives are not available. Thus, a derivative-free global optimization method is needed to avoid falling into a false minimum in the search. The parameter space is proportional to the complexity of the problem at hand. The state of the art approach to solving these problems is to use chemical intuition and sheer computational force. But this can engender human error in searching the parameter space, and also can be very time consuming. In this work, we present an efficient, automated method to address this problem. We use a global optimization algorithm that was developed for computationally expensive black-box simulation optimization problems, and for which analytical expressions of the objective function and its derivatives are not available. The result is a computer program for optimizing the analysis of SW data called SWOPT that accepts a problem definition — including the experimental RCs and known estimates of the structure of the system — and returns the best solution without any intermittent user input. SWOPT uses YXRO’s original computation code [16] without the graphical user interface (GUI), a black-box optimizer (BBO), and a custom interface that orchestrates the data transfer between the user, YXRO, and the BBO. To illustrate the capabilities of SWOPT, we have used it to solve three example problems and we show a clearly better performance in each case, as compared to a random search method, which uses sheer computational force. The increased speed of YXRO and the elimination of user interaction makes SWOPT very attractive for realtime data analyses during SW-PES synchrotron experiments. #### in X ray Standing-Wave Experiments # 2. Computational Approach In the following, we describe the general structure of SWOPT. Figure 1 shows a flowchart of the program, which is an integrated MATLAB® code that consists of YXRO, the BBO and an interface between the two and the user. We provide more details in the following subsections. Problem solu,on ## SWOPT Simplified problem defini,on Problem defini,on #### User/YXRO/ Op,mizer Interface Parameters Parameters, Error <u>Problem,</u> Parameters #### YXRO-Ultra Rocking Curves #### Op(miza(on Loop #### Black-Box Op,mizer Figure 1: The general structure of the computer program SWOPT, which solves structure optimization problems using YXRO and a black-box optimizer. #### 2.1. YXRO-Ultra YXRO was originally created as a standalone MATLAB® program that is used through a GUI [16]. For problems where hundreds or even thousands of simulations need to be run to find the optimum structure, the initiation and termination of the GUI adds considerable computation time which is not spent on simulating RCs. Furthermore, YXRO does not provide the kind of flexibility that is needed for complex problems like solid/liquid interfaces, where solution phases overlap one another in depth and need to have their distributions optimized. To address these issues, we used a modified source code of YXRO — which is still written in MATLAB® — that runs without the GUI and is completely accessible to a higher-level optimization code. We call the resulting program “YXRO-Ultra”. YXRO-Ultra is computationally about an order of magnitude #### in X ray Standing-Wave Experiments more efficient than YXRO, not only due to the removal of the GUI, but probably also due to the elimination of the old, separate runtime system. Below, we provide the details of the operation of the program. #### 2.2. User Input/Problem Definition The problem definition is provided by the user and is based on a so-called template file. This template is a regular YXRO input file, which can be generated either with the graphical user interface of YXRO or within the YXRO-Ultra scripts. The template defines basic sample properties such as layers with their composition and optical properties, and it defines the experimental conditions such as electron binding energies, photon energy, angles of X-ray incidence and electron exit, etc. The next step for the user is to define the optimization parameter ranges, which will be varied by the BBO to modify the sample properties or experimental conditions based on the template. The user sets the range in which each parameter should be varied, and since these physical properties cannot be measured beyond a certain accuracy, the user also defines the step size for sampling each parameter. In this way we discretize the search space, reducing the total number of possible solutions to a finite set. In most cases these parameters are layer thicknesses and interdiffusion lengths within the sample. In addition to the range of individual parameters, the problem definition allows for constraints. These are analytical conditions that will render a parameter vector invalid if they are violated. An example would be the relationship between the elemental and native oxide layer thicknesses for a Si capping layer. That is, when elemental Si at the top of a Si layer oxidizes, the volume per Si atom increases by a factor of 2.20 due to the incorporation of O atoms into the structure. This can be translated into analytical terms as ??!"#! = −2.20??!", where Δ _t_ denotes the layer thickness change of both layers, relative to the situation with no oxide. For most problems, such as examples 1 and 2 in this article, the definition of thickness and interdiffusion/roughness parameters in combination with constraints are sufficient to determine the sample properties. However, the script-based problem definition, which directly uses YXROUltra, allows the user to include and modify any property of the sample or the experiment that is defined within the YXRO program. Therefore, the user can also set up more advanced properties as optimization parameters, such as thickness gradients, material densities, or electron inelastic mean free paths. In example 3 we make use of this by optimizing the distribution of two independent chemical elements within a water layer. #### 2.3. User/YXRO/Optimizer Interface This interface connects the user input with the BBO and YXRO-Ultra in the following way: 1. It interprets the problem definition of the user and creates a simplified definition for the black-box optimizer. #### in X ray Standing-Wave Experiments 2. It receives parameters from the optimizer and translates them into a YXRO input. 3. It receives the YXRO output (i.e. rocking curves or energy scans), calculates the error (i.e. the objective function for the optimizer), and returns this error to the optimizer. 4. For each trial, it returns the problem solution to the user, as plots and data files. 5. Guided by the optimizer, it loops on parameters that lie within the ranges specified by the user, until a desired degree of fit is obtained, as judged by a sum of R factors The interface interprets the broad problem definition and presents the optimizer a simplified problem. The mathematical formulation of the optimization problem from the optimizer’s perspective is as follows: min! ?? (1) ?! ?≤0, ?= 1, …, ? (2) !!, …, ?! ?! ∈{?!! !!}, ?= 1, …, ?, ?! ∈ℕ (3) where ?(?) is the overall error as summed over all of the ? optimization parameters _,_ ?!! and ?!! are the lower and upper bounds of the ? <sup>th</sup> optimization parameter. These parameters can be layer thicknesses and interdiffusion lengths. The constraints ?!(?) are given analytically and if !! and ?! where ?(?) is the overall error as summed over all of the ? optimization parameters _,_ ?!! violated, they disqualify parameter vectors (an example would be the relationship between the elemental and native oxide layer thicknesses for a Si capping layer discussed above). For the black-box optimizer, we transform the search space such that all parameters are integers (ℕ denotes the set of natural numbers), with a trivial back transformation to report results to the user. The optimizer takes the simplified problem definition and returns a set of initial parameters to evaluate with YXRO. The interface uses these parameters and the problem definition to generate a YXRO input, sends it to YXRO, and receives the simulated RCs as output. It then compares the YXRO output to the experimental RCs and calculates the error ??= ? using the following expressions: ! ??= ?= !!! ?! (4) !!!! ?!,!Exp −?!,!Sim <sup>!</sup> (5) !,!Exp −?!,! ! ?! = ?! !!! ?!,! where ? is the signal intensity (typically normalized to be unity outside of the Bragg reflection regime), _N_ is the number of angle or energy points in a RC, and ? is the total number of RCs. ?! is a weighting factor with a default value of 1, but can also be input by the user to give more weight to experimental RCs with higher counts (i.e., less statistical noise). Other formulas for R factors could also in principle be defined by the user in the future, such as that given by Pendry for low energy electron diffraction [17], #### in X ray Standing-Wave Experiments ! ?! = !!!! !!,!!"# <sup><u>!</u></sup> ! !!,!!"# <sup><u>!</u></sup> !!!! !!,!!"#!!!,!!"# !!,! !!,! !"# <sup><u>!</u></sup> <u>!,!!"#!!!,!</u> ! !!,! (6) Other R-factors and normalizing expressions that are discussed elsewhere might also be used [18]. In deriving the intensities ?!,!!"# in Eq. (5), the raw RCs are typically normalized by one of the three available normalization options: by dividing each RC by i) the mean of the RC, ii) a polynomial background which is typically fitted through the non-modulating part of the RC, or iii) the maximum of the RC. These procedures are used to eliminate angle-dependent instrumental effects, e.g. having to do with the extent of the emitting spot on the sample as seen by the spectrometer. For consistency, the same procedure is applied to the raw simulated RCs to obtain ?!,!!"#. ? is the objective function ?(?) that the optimizer minimizes. The interface returns the ? value for a given parameter set to the optimizer and receives a new set of parameters from it. YXRO runs a simulation for these parameters, and this cycle continues until the optimizer reaches a satisfying condition, which is currently a maximum number of simulations. At that point, the best parameter vector is returned to the interface and the interface creates a summary of the problem solution for the user. #### 2.4. Black-Box Optimizer When faced with computationally expensive black-box optimization problems, one widely adopted approach is to use surrogate models to inform the optimization search. A surrogate model ?? is a computationally cheap approximation of the time-expensive simulation objective function ??, [19], with ?? requiring in general many iterations of the YXRO program: ??= ??+ ??. (7) Here, ?? is the difference between the time-expensive simulation function and the time-cheap surrogate model. Different types of surrogate models have been developed in the literature, among others radial basis functions [20], kriging [21], multivariate adaptive regression splines [22], polynomial regression models [23], and ensembles of different models [24]. Our surrogate integer optimization algorithm works similar to the SO-I scheme introduced elsewhere [25]. In this paper, we extend the functionalities of SO-I to take analytical fast-to-compute constraints into account. Generally, any type of surrogate model could be used, but in this work, we use radial basis function (RBF) surrogate models [20], because our objective function is deterministic and RBFs are interpolating and they therefore predict the true function value at an already evaluated point. An RBF surrogate model is defined as follows: #### in X ray Standing-Wave Experiments ??= !!!! ?!? ?! −? ! + ??, (8) where ?!, ?= 1, …, ?, are the parameter vectors at which we have already evaluated the expensive simulation objective function, ?⋅ is the radial basis function (here, we use the cubic, ??= ? <sup>!</sup> ), and ?? is the polynomial tail whose order depends on the type of RBF we have chosen (for the cubic RBF, we need at least a linear polynomial, ??= ?! + ? <sup>!</sup> ? ). The parameters ?!, ?= 1, …, ?, ?!, and ?= ?!, …, ?! <sup>!</sup> are determined by solving a linear system of equations: ? ? ? (9) ? <sup>!</sup> 0 ? <sup>=</sup> <sup>?</sup> 0 <sup>,</sup> where, ?!! , ?= ?= ?!! 1 ?!! 1 ⋮ ?! <sup>!</sup> 1 !! 1 ?! ⋮ ?! , ?= ?! ⋮ ?! ?! , ?= ??! ⋮ ??! , (10) and ?!,! = ?( ?! −?! ! <sup>), ?, ?= 1, …, ?.</sup> <sup>|| ⋅||!</sup> <sup>denotes the Euclidean norm. The matrix in the</sup> linear system in (9) is invertible if and only if rank(?) = ?+ 1. We use the RBF models in our iterative optimization algorithm in order to only select the most ‘’promising’’ parameter vectors for evaluation (promising in the sense that it is the solution to a computationally cheap auxiliary optimization problem). The optimization algorithm takes into account all constraints ?!, ?= 1, …, ?, and all integrality constraints. Hence, we do not waste time calculating the objective function for parameter vectors that are clearly unphysical. The steps of the algorithm are illustrated in Figure 2 and the details are summarized in the appendix. #### in X ray Standing-Wave Experiments Figure 2: Flowchart of the optimization algorithm (BBO). A graphical illustration of the individual steps of the BBO for a one-dimensional example is provided in Figure 3 below. Note that this method tends to avoid getting trapped in false local minima. For example, it does not just focus the search on the immediate neighborhood of x ≈ 14.7 in this figure. 10 5 f(x) 0 #### in X ray Standing-Wave Experiments 10 5 f(x) 0 −5 10 12 14 16 18 20 22 x −5 10 12 14 16 18 20 22 x 10 5 f(x) 0 −5 10 12 14 16 18 20 22 x 10 5 f(x) 0 −5 10 12 14 16 18 20 22 x Figure 3: One-dimensional illustration of the surrogate model based optimization search. Initial experimental design (top left); fit a surrogate model (top right); select and evaluate a new point (bottom left); update the surrogate surface with the new information (bottom right). #### in X ray Standing-Wave Experiments # 3. Example Applications In this section, we will demonstrate the effectiveness of SWOPT on three examples. In each example, we will compare the performance of our black-box optimization algorithm to a simple brute-force random search of structural parameter vectors. Our aim is to demonstrate that the adaptive parameter selection of BBO works significantly better than brute-force approaches such as manually varying only a few structural parameters — as done previously for one system [13] — or randomly sampling the structural parameters over the entire space. The calculations for the following examples were performed using an Intel® CoreI i5-2500 CPU @ 3.30GHz. The parallelization of our program used 4 cores of the CPU for the YXRO simulation. The total calculation time is mostly defined by the YXRO simulations, which depend on the experimental scenario. The average time per evaluation in the following examples ranged from 1.4 s in example 1 to 2.2 s in example 3. In this article we allowed a total number of 10,000 evaluations for each trial, which means that the total optimization time is ~4–6 h each. However, as we will show in the following, in most cases a satisfactory solution can be found with fewer evaluations, and greater parallelization in the future can lead to further reduction in optimization times. For most cases, our program will allow for a realtime analysis of SW data on laptop computers and yields acceptable optimization results within ~1–2 h. #### 3.1. Example 1: An Artificial Test Case — Ideal Sample on Si/Mo Multilayer Mirror The first example is a hypothetical Si/Mo multilayer mirror (MLM) where we generate “pseudoexperimental” data with YXRO (i.e. we know the optimal solution). We expect that SWOPT will find the exact structure since the data have no noise and can be reproduced exactly by YXRO. However, there may be other near-optimal solutions. This example serves as proof-of-concept to test the accuracy of the optimization method. The problem definition is given in Figure 4a. The photon energy for this example is in the hard/tender X-ray regime at 3500 eV. The hypothetical sample is 5 layers of metal (from top to bottom: Au, Pt, Ti, Pt, Ti) on top of a Si/Mo multilayer mirror of 80 repeats, where the Mo and Si layer thicknesses are fixed at 9 and 25 Å, respectively. The interfaces of all layers are defined to be sharp. During optimization, each Au, Pt, and Ti layer thickness can vary from 0 to 35 Å, with a step size of 0.5 Å. One complication of this problem is that Pt and Ti signals come from two sets of distinctly separated layers and are integrated to give only one RC for each element. The Pt and Ti RCs depend strongly on how thick each of these layers are, whereas the Au RC depends on the total thickness of Pt+Ti layers. Another complication of the problem is that neither the pseudo-experimental nor the simulated RCs are normalized. Thus, the optimizer has to match the exact amplitudes, rather than relative amplitudes. This is expected to drive the optimizer more to the global minimum rather than to local minima. #### in X ray Standing-Wave Experiments Figure 4: (a) Problem definition for Example 1, (b) pseudo-experimental data (solid circles), SWOPT-found (curves-left), and random-search-found (curves-right) rocking curves for Au 4f, Pt 4f, and Ti2p, (c) best R value found as a function of the number of simulations performed for SWOPT and random search. The darker curves represent the mean R values of 10 different runs of 10,000 simulations each, whereas the lighter curves indicate standard deviation around the means. “ ?−?” for SWOPT becomes negative after ~500 simulations and thus has been left out of the plot, which is logarithmic. We ran SWOPT and the random search 10 times each with random initial guesses and with 10,000 YXRO simulations each time. The RC’s of the median (5 <sup>th</sup> best) of 10 solutions are given in Figure 4b. SWOPT found the exact solution whereas the random search found a solution that almost matches the phase but not the intensities. The convergence behavior of the two algorithms can be seen in Figure 4c. SWOPT approaches the optimal solution significantly faster and with a standard deviation that is significantly smaller (note the logarithmic scale of the y-axis) than the random search method. #### in X ray Standing-Wave Experiments Table 1: Layer thicknesses obtained from SWOPT and the random search algorithm (“Random”) for the artificial test case. “Median” refers to the thicknesses obtained in the 5 <sup>th</sup> best out of 10 solutions of SWOPT and random. “min/max” refers to the minimum/maximum value found for the parameter within the 10 runs. Mean values are reported for completeness; they are ensemble averages and don’t necessarily correspond to a solution of SWOPT or random search. median [Å] mean (st.dev.) [Å] min [Å] / max [Å] true value [Å] SWOPT Random SWOPT Random SWOPT Random dAu 11.0 11.0 12.0 11.1 (0.2) 11.5 (0.5) 11.0 / 11.5 11.0 / 12.0 dPt,1 13.0 13.0 11.0 12.9 (0.3) 12.4 (2.9) 12.5 / 13.5 5.5 / 15.0 dTi,1 17.0 17.0 8.5 16.6 (1.0) 18.9 (7.8) 14.5 / 17.0 8.5 / 29.5 dPt,2 7.0 7.0 5.0 7.2 (1.2) 7.4 (7.1) 4.5 / 8.5 0.0 / 23.5 dTi,2 22.0 22.0 34.5 22.4 (1.8) 20.6 (8.3) 21.0 / 26.5 7.0 / 34.5 The values found for the five layer thicknesses defined in the problem are given in Table 1. The median solution found by SWOPT is essentially exact, whereas the one found by the random search algorithm is significantly inaccurate for the bottom three layers. The inadequacy of the random search can also be seen in the standard deviations, which are 40-96% for the bottom three layers. The standard deviations increase from the top to the bottom layers for both SWOPT and random search. #### 3.2. Example 2: Si-Mo Multilayer Mirror The second example is a real pristine MLM consisting of 80 Si/Mo bilayers. The mirror was prepared at the Center for X-ray Optics at Lawrence Berkeley National Laboratory using magnetron sputtering on a polished Si substrate. The nominal thicknesses of Si and Mo layers were 25.5 Å and 8.9 Å, respectively, giving a bilayer period of 34.4 Å in excellent agreement with the 34.4 Å as determined by Cu Kα reflectivity at 8.04 keV. Hard X-ray photoelectron spectroscopy measurements were performed at beamline 9.3.1 of the Advanced Light Source at Lawrence Berkeley National Laboratory, with 3100 eV photon energy. The problem definition provided to the optimizer is given in Table 2 and in Figure 5a. There are 5 layer thicknesses and 4 interdiffusion lengths to be optimized: a total of 9 parameters. The repeating part (80 repeats) is defined with dMo (repeating Mo thickness), dSi,ML (repeating Si thickness), and rML (repeating interdiffusion length between Mo and Si). The non-repeating part consists of dSi,top (thickness of the topmost Si layer), dSiO2 (thickness of the native oxide — SiO2), and dC (thickness of the surface carbon contamination), as well as the corresponding interdiffusion lengths/roughnesses for the top three layers: rSi,top, rSiO2, and rC, respectively. The #### in X ray Standing-Wave Experiments interdiffusion length between the topmost Si layer and the topmost Mo layer is also defined to be equal to rML (i.e. the repeating interdiffusion length). The RCs were normalized by dividing each point by the second-order polynomial background that was fitted to the off-Bragg tails of the RCs. Table 2: Limits and step sizes of the parameters in Example 2 min [Å] step [Å] max [Å] dC 0 0.2 10 dSiO2 0 0.2 50 dSi,top 0 0.2 30 dMo 6 0.2 10 dSi,ML 24 0.2 30 rC 0 0.5 8 rSiO2 0 0.5 8 rSi,top 0 0.5 8 rML 0 0.5 6 SWOPT and the random search were run 10 times with 10 different random initial guesses and 10,000 YXRO simulations each time. Figure 5b shows the RCs corresponding to the 5 <sup>th</sup> best, or approximately median solution of SWOPT, together with the experimental RCs. Figure 5c-d-e show the evolution of the best R value found so far as a function of the number of simulations performed. While Figure 5d and Figure 5e show the progress of the 10 individual runs for SWOPT and the random search, Figure 5c compares the averages of these two approaches — standard deviations are included in lighter colors. The average curves in Figure 5c show that SWOPT needed about an order of magnitude fewer evaluations than the random search to reach a certain R value. The standard deviation for SWOPT was also smaller. #### in X ray Standing-Wave Experiments Figure 5: (a) Problem definition for Example 2; (b) experimental (solid circles) and median SWOPT-found (curves) RCs for C 1s, O 1s, Si 1s (elemental), and Mo 3p; best R value found as a function of the number of simulations performed for 10 different runs: (c) averages with standard deviations, (d) SWOPT for individual runs, (e) random search for individual runs. The median (5 <sup>th</sup> best), mean — with standard deviations — and minimum/maximum solutions for each parameter are given in Table 3 for both SWOPT and the random search. The two algorithms give similar results for layer thicknesses. The results of SWOPT have smaller standard deviations, which is likely an indication of better convergence. The carbon layer thickness “dC” has a large relative standard deviation for SWOPT (71%) probably because it’s a small fraction (∼10%) of the standing-wave period and the RCs are normalized (i.e. absolute intensity information is lost). Note that the effective period of the multilayer is 25.2 + 8.2 = 33.4 Å, within about 3% of the 34.4 Å determined by hard X-ray diffraction. #### in X ray Standing-Wave Experiments Table 3: Layer thicknesses obtained with SWOPT and the random search algorithm for the real Si/Mo multilayer case. “Median” refers to the thicknesses obtained in the 5 <sup>th</sup> best solution of 10 trials with SWOPT and the random search (“Random”). “min/max” refers to the minimum/maximum value found for the parameter within the 10 runs. Mean values are reported for completeness; they are ensemble averages and don’t necessarily correspond to a solution of SWOPT or random search. median [Å] mean (st.dev.) [Å] min. [Å] / max. [Å] SWOPT Random SWOPT Random SWOPT Random dC 6.8 0.0 4.5 (3.2) 3.2 (2.1) 0.6 / 9.8 0.0 / 5.8 dSiO2 10.0 11.0 11.2 (1.6) 11.1 (2.4) 8.0 / 13.2 7.8 / 15.0 dSi,top 25.0 25.6 25.1 (0.2) 25.3 (0.8) 24.8 / 25.4 24.0 / 26.6 dMo 8.2 9.2 8.9 (0.8) 8.6 (0.7) 8.2 / 10.0 7.4 / 9.6 dSi,ML 25.2 25.4 24.9 (0.3) 25.2 (0.6) 24.6 / 25.4 24.0 / 26.2 rC 3.5 2.0 5.0 (1.6) 3.2 (2.1) 3.5 / 7.5 0.5 / 7.0 rSiO2 8.0 1.0 8.0 (0.0) 3.5 (2.6) 8.0 / 8.0 0.0 / 8.0 rSi,top 0.5 1.0 0.4 (0.8) 3.0 (1.6) 0.0 / 2.5 1.0 / 5.5 rML 4.0 5.0 4.5 (0.4) 4.3 (0.6) 4.0 / 5.0 3.0 / 5.0 #### 3.3. Example 3: Cs+Na Aqueous Solution/Fe2O3/Si-Mo Multilayer Mirror The third example is the re-evaluation of data that was published earlier [13], with all details discussed in this reference. In addition to the random search method, we compare the performance of SWOPT to the manual analysis performed by Nemšák et al. The original analysis of this problem took about two weeks with frequent human computer input. With SWOPT, it took the user ~1 h to set up the program definition, which is rather advanced compared to examples 1 and 2. After this, a single optimization run with 10,000 evaluations finished within ~6 h with no further human interaction required. This is thus roughly a factor 50 reduction in analysis time. Considering that 10,000 evaluations is at least twice of what is needed to obtain a solution akin to Nemšák’s, we can say that a factor of ~100 reduction in data analysis time has been achieved for this particular example; and of course, human bias in varying parameters has also been removed. In more detail, the sample is a Fe2O3 layer deposited on a Si/Mo MLM that is identical to the one in the previous example. A thin NaOH+CsOH layer was dropcast on Fe2O3 from an aqueous solution. The sample was hydrated _in situ_ with 0.4 Torr H2O at 2.5 °C, which corresponds to #### in X ray Standing-Wave Experiments ∼8% relative humidity. The ions are thus expected to be mobile. This requires a more complex problem definition than the other examples, whereby the Na and Cs layers (i.e. the volumes that contain Na <sup>+</sup> and Cs <sup>+</sup> ions) can overlap and are free to move within the liquid layer. The parameterization of SWOPT, which includes the full functionality of YXRO-Ultra scripts, permits defining this complex problem in a complete way directly amenable to the BBO. Figure 6a shows the problem definition where dFe2O3, dH2O, dNa, and dCs are the thicknesses of the corresponding layers. To model the mobility of the Cs and Na layers, we introduced a layer above (bCs,top and bNa,top) and a layer below (bCs,bot and bNa,bot) each, whose thicknesses can vary independently. One condition, for this particular problem, is that: ?!!! = ?!",!"# + ?!" + ?!",!"# = ?!",!"# + ?!" + ?!",!"#, that is, both ions must be found somewhere in the water layer of thickness _dH2O._ The SWOPT and the random search were run 10 times with 10 different initial random guesses and 10,000 YXRO simulations each time. Figures 6b and 6c show the RCs for the median (5 <sup>th</sup> best) solution of SWOPT, and the solution of the manual analysis, respectively. Figure 6d and 6f show the convergence of individual runs for SWOPT and the random search, respectively. Figure 6d compares the averages of these two approaches — standard deviations are included in lighter colors. The average curves show that SWOPT outperforms random search — within 1 standard deviation — after ∼500 iterations. The relatively small standard deviation for SWOPT indicates that it likely convergences close to the global minimum. #### in X ray Standing-Wave Experiments Figure 6: (a) Problem definition for Example 3; (b) solutions for the problem obtained via SWOPT, for the 5 <sup>th</sup> -best ≈ median solution showing experimental (solid circles) and computed (curves) RCs for C 1s (aliphatic), O 1s (everything except Fe2O3 and H2O(g)), Fe 3p, Na 2p, and Cs 4d; (c) same as (b) but the solution was found manually by Nemšák et al. [13]; best R value found as a function of the number of simulations performed for 10 different runs: (d) averages with standard deviations, (e) SWOPT, (f) random. The results extracted from the median SWOPT solution agree — as presented in Table 4 — extremely well with the parameters optimized by the much less sophisticated manual optimization, which essentially is a brute force method that optimized three parameters from the set at a time. Figure 6g presents the detailed distributions derived for this sample from SWOPT. The deviations between the two found solutions are within a few Å, which is also a limiting precision of this type of experiment, considering that the SW period is roughly one order-of #### in X ray Standing-Wave Experiments magnitude larger than these deviations. The solutions of all 10 trials of SWOPT optimizations unanimously confirm the conclusion that Na <sup>+</sup> ions are most likely stripped of their solvation shells and are adsorbed specifically at the liquid/hematite interface. For the Cs <sup>+</sup> ions, not every trial resulted in a sizable spacing between hematite and liquid, which is represented by dCs,bot in Table 4 with a mean value of dCs,bot = 0.7 Å ± 0.6 Å. This variation is explained by the fact that the exact shape of the RC, and therefore also the objective function value, are much less dependent on the bottom interfaces of the liquid and ion distributions compared to the top interfaces. However, judging by the best of the 10 SWOPT solutions we found a spacing of 1.3 Å between the hematite and the Cs <sup>+</sup> ions, which is consistent with the results by Nemšák et al. [13]. These results are furthermore consistent with earlier studies of alkali adsorption on hematite [26, 27] as well as different behavior between Na <sup>+</sup> and Cs <sup>+</sup> at the liquid/vapor interface [28, 29]. SWOPT results, just like the analysis by Nemšák et al., indicate that Cs <sup>+</sup> ions are directly at the liquid/vapor interface — probably with a partial solvation shell — and Na <sup>+</sup> ions are excluded from this interface to a depth of ∼4 Å. Figure 7: Comparison of element distribution determined by manual analysis [13] to the best result of the 10 SWOPT trails that are presented here. (Note that the original figure in ref. [13] showed interdiffusion lengths that were too low by a factor of 2, which was corrected here.) Figure 7 shows the element distributions that were determined by the manual analysis of Nemšák et al. compared to the best of the 10 SWOPT trials. Despite slight differences in the exact shape of the distributions, the overall agreement is good. Especially the main conclusions of the original study — the repulsion of Cs <sup>+</sup> from the hematite, and of Na <sup>+</sup> from the liquid/vapor interface — are reproduced by SWOPT, even if the program had to be run several times at #### in X ray Standing-Wave Experiments 10000 iterations to find the best result. The best, worst, and median (5 <sup>th</sup> best) objective function values that we received using SWOPT were R = 0.00314, 0.00337, and 0.00316, respectively, compared to R = 0.0039 in the manual analysis. Therefore, we can conclude that SWOPT is at least as reliable as the manual analysis. In addition, it is much less dependent on the intuition of the scientist analyzing the data. While the results are similar, the manual analysis relied largely on the experience of the scientist to find a good initial guess of the structure, and then was limited to varying a maximum of three parameters simultaneously to optimize the sample properties. This not only explains the significant amount of human interaction needed in the manual analysis, but it also makes it unlikely that a scientist with less experience in analyzing SW-PES data could find a sufficiently accurate solution, at least not without expending a much greater amount of time. Our new program SWOPT does not rely on initial and often subjective guesses beyond the upper and lower limit for each optimization parameter. Table 4: Layer thickness and roughness values obtained manually [13], from the SWOPT program, and the random search, for the SWAPPS example. median [Å] mean (st.dev.) [Å] min [Å] / max [Å] manual SWOPT Random SWOPT Random SWOPT Random analysis [Å] dH2O 15.1 13 14 13.1 (0.5) 13.8 (0.5) 12.5 / 13.5 13.0 / 14.5 dNa,top 4.2 4.6 3.8 4.7 (0.9) 4.0 (1.1) 4.1 / 6.3 2.6 / 5.8 dNa 10.9 8.5 9.8 8.4 (1.2) 9.0 (1.5) 6.3 / 9.5 7.0 / 11.6 dNa,bot 0.0 0.0 0.4 0.0 (0.0) 0.7 (0.6) 0.0 / 0.0 0.1 / 1.9 dCs,top 0.0 0.0 0.0 0.0 (0.0) 0.3 (0.4) 0.0 / 0.1 0.0 / 1.4 dCs 11.7 12.4 14 12.4 (0.3) 12.4 (1.7) 12.2 / 13.0 8.5 / 14 dCs,bot 3.4 0.6 0.0 0.7 (0.6) 1.0 (1.1) 0.0 / 1.3 0.0 / 3.2 dFe2O3 40.5 42.5 42.0 42.4 (0.4) 41.9 (0.3) 42.0 / 43.0 41.5 / 52.5 rH2O 0.0 2.0 3.0 2.0 (0.0) 2.5 (0.5) 2.0 / 2.0 2.0 / 3.5 rFe2O3 3.0 2.0 2.0 2.0 (0.0) 3.1 (0.8) 2.0 / 2.0 2.0 / 4.5 #### in X ray Standing-Wave Experiments # 4. Conclusions We show that our new computer program (SWOPT) solves the structure optimization problem in SW-PES problems involving multilayered samples quickly (minutes to hours), and without extensive human interaction. We compared the performance of our black-box optimizer (BBO) algorithm to a random search method by running each 10 times for three test cases. In every case the SWOPT significantly outperformed the random search. The complex hypothetical test case involving “pseudo-experimental” data from 5 layers on a Mo/Si multilayer showed that for the layers closer to the surface, thicknesses could be analyzed more accurately. The relative standard deviations of layer thicknesses for 10 independent solutions were in the range of 2–8 %. The experimental test case for a bare Si/Mo multilayer, which is a relatively simple problem, showed that the best of the 10 random searches gave similar results to SWOPT after 10,000 iterations. However, SWOPT not only found the solution more efficiently, it also consistently found a good solution in all 10 trials. Thus, SWOPT can be relied on for finding a solution under time limitations or with little computational resources and proves to be far more reliable after only a single trial run. We also used SWOPT to reanalyze the results of an earlier SWAPPS study that investigated the Cs <sup>+</sup> /Na <sup>+</sup> distribution normal to the surface in a liquid layer on Fe2O3. SWOPT reproduced the results found earlier within ∼1 Å for all but one parameter: only an ∼3 Å difference with the manual analysis was found for the Cs <sup>+</sup> /Fe2O3 gap, which is within the precision of the experiment. The versatility of SWOPT is an important advantage for tackling future SW-PES problems with greater complexity. The ∼10 fold speed gained through “YXRO-Ultra”, and the extra speed through the BBO algorithm, which ultimately leads to analyses about 50-100x faster, makes this program an invaluable tool for “realtime” analysis of data during synchrotron experiments. We will make SWOPT available online to the community in the future. # 5. Acknowledgments We acknowledge support by the Director, Office of Science, Office of Basic Energy Sciences, and by the Division of Chemical Sciences, Geosciences and Biosciences of the US Department of Energy at LBNL under Contract No. DE-AC02-05CH11231, and salary support for M.G and C.S.F from a grant from the Basic Energy Sciences Division of Materials Physics and Engineering at UC Davis, No. DE-SC0014697. This material is also based upon work supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Applied Mathematics program under contract number DEAC02005CH11231. We #### in X ray Standing-Wave Experiments also acknowledge the support of CAMERA—the Center for Advanced Mathematics for Energy Research Applications at Lawrence Berkeley National Laboratory, and the Air Quality Research Center and the Physics Department, University of California Davis, Davis, CA USA, who maintain and operate the computer cluster BEAR, on which the program YXRO Ultra was tested, developed, and used. # 6. Appendix – Surrogate Optimization Algorithm For Constrained Integer Problems Below, we describe the detailed individual steps of the black-box optimization method (BBO). Step 1: Create an initial experimental design with min {?, ?+ 1} points, where ? is the total number of possible solutions (including infeasible solutions). We use a symmetric Latin hypercube design and round the parameter values to the closest integers. Denote the solution set by ?!. Step 2: Compute the (computationally cheap) constraint function values and discard the infeasible points. Denote the remaining solution set by ?!. Step 3: If the rank condition for the matrix ? (see Eq. 9) corresponding to the points in ?! is not satisfied, keep adding feasible points to ?! until the rank condition is satisfied. Denote the final set of points by ?. Step 4: Compute the objective function values at all points in ?, denote the vector of function values by ?. Step 5: Find the point in ? with the smallest objective function value. Denote the point by ?best and its function value by ?best. Step 6: Iterate while stopping criterion is not met: Step 6a: Given the points in ? and their function values ?, compute the parameters of the RBF surrogate model, ?? (see Eq. 8). Step 6b: Create a large set of candidate points around ?best by perturbing the variable values of ?best and by uniformly selecting points from the whole variable domain. All created candidate points satisfy the integrality constraints. Step 6c: Discard all candidate points that do not satisfy the constraints ?!. Denote the remaining candidate points by ?!, …, ?!. Step 6d: Use the surrogate model to predict the objective function values for all candidate points and denote the set of predicted values by ??!, …, ??! } and scale these values to [0,1] such that the smallest predicted value is set to 0 and the largest value is set to 1. Denote the set of scaled values by ?ℛ. Step 6e: Compute the distance of all candidate points to the set ?, denote the set by ??!, ?, …, ??!, ? . Scale the distance values to [0,1] such that the candidate with the largest distance obtains score 0 and the candidate #### in X ray Standing-Wave Experiments closest to ? obtains score 1. Denote the set of scaled distance values by ??. Step 6f: Compute a weighted sum of both scores ?= ??ℛ + 1 −??? for each candidate point and select the candidate with the lowest score as new evaluation point, ?new. Step 6g: Compute the expensive objective function at the new point, ?(?new). Step 6h: If ?(?new) < ?best ?best = ?(?new) ?best = ?new Step 6i: ?= ?∪{?new}; ?= ?∪{??new }. Step 7: Return the best solution found. In Step 1 of the algorithm, if ? is small enough, we may do a complete enumeration of all possible solutions, discard all infeasible points, and only sample from the remaining set of points. This approach makes the creation of the initial sample points and the candidate points in Step 6b easier. In the iterative sampling procedure, we ensure that no point will be selected for evaluation more than once. Since the objective function is deterministic, repeatedly evaluating at the same point will not add new information. In Step 6d, we scale the predicted objective function values of all candidates to [0,1] according to ?ℛ ?! = <sup>??!</sup> <sup>−?min</sup> ?max −?min , ?= 1, …, ?, ?min = min s χ!, ?= 1, …, ?, smax = max ??!, ?= 1, …, ?. The distance scores in Step 6e are computed as follows: ??! = !min!∈? <sup>?! −?!</sup> ! <sup>, ?= 1, …, ?.</sup> The [0,1] scaling is done according to ?? ?! = <sup>?max</sup> <sup>−?(?!)</sup> ?max −?min , ?= 1, …, ?, ?max = max ?!, ?= 1, …, ?, ?min = min{?!, ?= 1, …, ?} (see also [30]). In Step 6f, we compute a weighted score between the surrogate model prediction and the distance to already evaluated points: ??! = ??ℛ ?! + 1 −??? ?!, ?= 1, …, ? The weights ? are selected from a range of possibilities, namely ?= 1, 0.9, 0.75, 0.6, 0.5, 0.35, 0.25, 0 . When selecting only a single point in each iteration for doing the expensive function evaluation, we cycle through this weight pattern. Our implementation allows also to select more than one point in each iteration, in which case we select 8 points (the length of the weight pattern ?) and each point is chosen based on using a different weight. We update the #### in X ray Standing-Wave Experiments best point and the best function value found so far as well as the set of already evaluated points and the corresponding set of function values. The algorithm stops once we have reached a predefined maximum number of objective function evaluations. The convergence of the algorithm to the global optimum follows from a simple counting argument. As there exist only a finite number of possible solutions and the algorithm never evaluates a parameter vector more than once, it follows that as the number of evaluations approaches ?, we will eventually sample at the global optimum. However, in practice, we cannot allow ? evaluations and we have to be satisfied with the best solution we can obtain within our computation time budget. Typically we let the program run through about 10,000 iterations. # 7. References [1] B.W. Batterman, Effect of Dynamical Diffraction in X-Ray Fluorescence Scattering, Physical Review, 133 (1964) A759-A764, http://dx.doi.org/10.1103/PhysRev.133.A759. [2] B.W. Batterman, Detection of Foreign Atom Sites by Their X-Ray Fluorescence Scattering, Phys Rev Lett, 22 (1969) 703-705, http://dx.doi.org/10.1103/PhysRevLett.22.703. [3] S.M. Durbin, et al., Measurement of the Silicon (111) Surface Contraction, Phys Rev Lett, 56 (1986) 236-239, http://dx.doi.org/10.1103/PhysRevLett.56.236. [4] J.A. Golovchenko, et al., Solution to the Surface Registration Problem Using X-Ray Standing Waves, Phys Rev Lett, 49 (1982) 560-563, http://dx.doi.org/10.1103/PhysRevLett.49.560. [5] J.B. Kortright, A. Fischercolbrie, Standing Wave Enhanced Scattering in Multilayer Structures, J Appl Phys, 61 (1987) 1130-1133, http://dx.doi.org/10.1063/1.338156. [6] W. Drube, et al., X-Ray Standing Waves and X-Ray Photoemission Measurements in the EnergyRange 2.7-7 Kev, Rev Sci Instrum, 63 (1992) 1138-1141, <u>http://dx.doi.org/10.1063/1.1143809.</u> [7] S.H. Yang, et al., Depth-resolved photoemission spectroscopy from surface and buried layers with soft X-ray standing waves, Surf Sci, 461 (2000) L557-L564, <u>http://dx.doi.org/10.1016/S0039-6028(00)00617-</u> <u>8.</u> [8] S.-H. Yang, et al., Probing Multilayer Nanostructures with Photoelectron and X-Ray Emission Spectroscopies Excited by X-Ray Standing Waves, in: J. Zegenhagen, A. Kazimirov (Eds.) The X-ray standing wave technique : principles and applications, World Scientific, Singapore ; Haackensack, N.J., 2013. [9] S. Nemšák, et al., Standing-Wave and Resonant Soft- and Hard-X-ray Photoelectron Spectroscopy of Oxide Interfaces, in: C. Cancellieri, V.N. Strocov (Eds.) Spectroscopy of Complex Oxide Interfaces: Photoemission and Related Spectroscopies, Springer International Publishing, Cham, 2018, pp. 153-179. [10] A.X. Gray, et al., Insulating state of ultrathin epitaxial LaNiO3 thin films detected by hard x-ray photoemission, Phys Rev B, 84 (2011) http://dx.doi.org/10.1103/PhysRevB.84.075104. [11] S. Nemšák, et al., Energetic, spatial, and momentum character of the electronic structure at a buried interface: The two-dimensional electron gas between two metal oxides, Phys Rev B, 93 (2016) <u>http://dx.doi.org/10.1103/PhysRevB.93.245103.</u> [12] D. Eiteneer, et al., Depth-Resolved Composition and Electronic Structure of Buried Layers and Interfaces in a LaNiO3/SrTiO3 Superlatticefroni Soft- and Hard-X-ray Standing-Wave Angle-Resolved Photoemission, J Electron Spectrosc, 211 (2016) 70-81, http://dx.doi.org/10.1016/j.elspec.2016.04.008. #### in X ray Standing-Wave Experiments [13] S. Nemšák, et al., Concentration and chemical-state profiles at heterogeneous interfaces with subnm accuracy from standing-wave ambient-pressure photoemission, Nat Commun, 5 (2014) <u>http://dx.doi.org/10.1038/ncomms6441.</u> [14] O. Karslıoğlu, et al., Aqueous solution/metal interfaces investigated in operando by photoelectron spectroscopy, Faraday Discuss, 180 (2015) 35-53, http://dx.doi.org/10.1039/c5fd00003c. [15] S. Nemšák, et al., Element- and momentum- resolved electronic structure of the dilute magnetic semiconductor Ga1−xMnxAs, arXiv e-print, (2018). [16] S.H. Yang, et al., Making use of x-ray optical effects in photoelectron-, Auger electron-, and x-ray emission spectroscopies: Total reflection, standing-wave excitation, and resonant effects, J Appl Phys, 113 (2013) http://dx.doi.org/10.1063/1.4790171. [17] J.B. Pendry, Reliability Factors for Leed Calculations, J Phys C Solid State, 13 (1980) 937-944, <u>http://dx.doi.org/10.1088/0022-3719/13/5/024.</u> [18] S.P. Tear, et al., A Comparison of Reliability (R) Factors in a Leed Structural-Analysis of the Copper (111) Surface, J Phys C Solid State, 14 (1981) 3297-3311, <u>http://dx.doi.org/10.1088/0022-</u> <u>3719/14/22/023.</u> [19] A.J. Booker, et al., A rigorous framework for optimization of expensive functions by surrogates, Struct Optimization, 17 (1999) 1-13, <u>http://dx.doi.org/10.1007/BF01197708.</u> [20] M.J.D. Powell, Recent research at Cambridge on radial basis functions, in, Birkhäuser Basel, Basel, 1999, pp. 215-232. [21] G. Matheron, Principles of geostatistics, Economic Geology, 58 (1963) 1246-1266, <u>http://dx.doi.org/10.2113/gsecongeo.58.8.1246.</u> [22] J.H. Friedman, Multivariate Adaptive Regression Splines, Ann Stat, 19 (1991) 1-67, <u>http://dx.doi.org/10.1214/aos/1176347963.</u> [23] R.H. Myers, D.C. Montgomery, Response Surface Methodology: Process and Product Optimization Using Designed Experiments, John Wiley & Sons, Inc., 1995. [24] J. Müller, R. Piché, Mixture surrogate models based on Dempster-Shafer theory for global optimization problems, J Global Optim, 51 (2011) 79-104, http://dx.doi.org/10.1007/s10898-010-9620-y. [25] J. Müller, et al., SO-I: a surrogate model algorithm for expensive nonlinear integer programming problems including global optimization applications, J Global Optim, 59 (2014) 865-889, <u>http://dx.doi.org/10.1007/s10898-013-0101-y.</u> [26] H. Amhamdi, et al., Effect of urea on the stability of ferric oxide hydrosols, Colloid Surface A, 125 (1997) 1-3, <u>http://dx.doi.org/10.1016/S0927-7757(96)03880-0.</u> [27] L.J. Kirwan, et al., An in situ FTIR-ATR study of polyacrylate adsorbed onto hematite at high pH and high ionic strength, Langmuir, 20 (2004) 4093-4100, http://dx.doi.org/10.1021/la036248u. [28] W. Bu, et al., Ion distributions at charged aqueous surfaces by near-resonance X-ray spectroscopy, J Synchrotron Radiat, 13 (2006) 459-463, http://dx.doi.org/10.1107/S0909049506038635. [29] W. Hua, et al., Cation Effects on Interfacial Water Organization of Aqueous Chloride Solutions. I. Monovalent Cations: Li+, Na+, K+, and NH4+, J Phys Chem B, 118 (2014) 8433-8440, <u>http://dx.doi.org/10.1021/jp503132m.</u> [30] R.G. Regis, C.A. Shoemaker, A stochastic radial basis function method for the global optimization of expensive functions, Informs J Comput, 19 (2007) 497-509, http://dx.doi.org/10.1287/ijoc.1060.0182.

섹션 본문 78문단 · 38,049자

(제목 없음)

1X-ray standing-wave photoemission experiments involving multilayered samples are emerging as unique probes of the buried interfaces that are ubiquitous in current device and materials research. Such data require for their analysis a structure optimization process comparing experiment to theory that is not straightforward. In this work, we present a new computer program for optimizing the analysis of standing-wave data, called SWOPT, that automates this trial-and-error optimization process. The program includes an algorithm that has been developed for computationally expensive problems: so-called black-box simulation optimizations. It also includes a more efficient version of the Yang X-ray Optics Program(2013)] which is about an order of magnitude faster than the original version. Human interaction is not required during optimization. We tested our optimization algorithm on real and hypothetical problems and show that it finds better solutions significantly faster than a random search approach. The total optimization time ranges, depending on the sample structure, from minutes to a few hours on a modern laptop computer, and can be up to 100x faster than a corresponding manual optimization. These speeds make the SWOPT program a valuable tool for realtime analyses of data during synchrotron experiments. 5 more efficient than YXRO, not only due to the removal of the GUI, but probably also due to the elimination of the old, separate runtime system. Below, we provide the details of the operation of the program.User Input/Problem DefinitionThe problem definition is provided by the user and is based on a so-called template file. This template is a regular YXRO input file, which can be generated either with the graphical user interface of YXRO or within the YXRO-Ultra scripts. The template defines basic sample properties such as layers with their composition and optical properties, and it defines the experimental conditions such as electron binding energies, photon energy, angles of X-ray incidence and electron exit, etc.

Introduction

2X-ray standing-wave techniques have been developed in the 1960s, and since then blossomed into a powerful set of tools for investigating the electronic structure of materials with high spatial resolution. Initially, Bragg reflections from crystal lattices were used to selectively probe the structure of materials on the atomic scale, using X-ray fluorescence or Auger emission as the probe [1][2][3][4]. Later, periodic polycrystalline samples -such as magnetic multi-layered materials -were used to investigate structural properties with unprecedented depth selectivity, using reflectivity, fluorescence, and X-ray absorption as probes [5].

3The use of photoemission (PES) in standing-wave studies came somewhat later beginning in the 1990s with single-crystal systems and hard/tender X-rays with energies of about 3 keV [6]. This method was then extended into multilayer systems with soft X-rays [7]. The small inelastic mean free path of photoelectrons -as generated by soft X-rays -renders the PES technique very surface sensitive. Even though surface sensitivity is undesirable in experiments probing bulk or buried-interface properties, the PES sensitivity to chemical states, electric fields and electron momentum makes it an irreplaceable tool for studying core-level and valence band properties and enables direct mapping of the electronic band structure. For example, there are by now approximately 40 papers on soft-and hard-X-ray SW-PES in the literature, including both single-crystals and synthetic heterostructures, as reviewed elsewhere [8,9].

4One of the latest expansions of SW-PES was angle-resolved studies of valence states. The technique successfully addressed emergent phenomena at complex oxide interfaces such as LSMO/STO [10], GTO/STO [11], and LNO/STO [12]. Another important development was combining standing-waves with ambient-pressure XPS to study ion adsorption [13] and electrooxidation [14] at solid/liquid interfaces. More recently, standing-wave hard X-ray photoemission was used to obtain site-and element-specific band structure in single crystals of a dilute magnetic semiconductor: Mn-doped GaAs [15].

5The experimental data in SW-PES are usually collected in the form of core-level photoelectron intensities as a function of incidence angle (aka rocking curves or RCs) or photon energy. Firstorder Bragg reflection creates a strong periodic modulation in the exciting electric field, and by slightly changing the incident angle or the photon energy one is able to scan the position of the standing-wave by half of its period. Spatially resolved information is obtained by correlating the experimental data with calculations using a specially written X-ray optical program called YXRO [16].

6Using multi-layer mirrors as the SW generators -with layers of interest grown within or transferred onto them -brings certain challenges. Apart from uncertainties in the structural parameters of the sample itself, one has to consider the imperfections present in the mirror. However, using photoemission rather than simple reflection/diffraction/absorption data brings further dimensions of information to the experiment; each chemical species exhibits a distinctive rocking curve, as they originate from different depths and their locations with respect to the nodes/antinodes of the standing-wave are generally different. For example, recent work that combined X-ray standing-wave photoemission with ambient-pressure PES (SWAPPS) resulted in unprecedented accuracy in probing solid/liquid interfaces [13]; this demonstrates the ability of the SWAPPS technique to study more complicated systems that involve chemical species that are free to move in a liquid layer, in contrast to the fixed layers in a solid.

7The task of obtaining the theoretical RCs that best match the experimental RCs is essentially an optimization problem with the goal to minimize the discrepancy between theory and experiment by determining the individual layer thicknesses and upper and lower interdiffusion lengths/roughnesses. An analytical measure of this discrepancy and its derivatives are not available. Thus, a derivative-free global optimization method is needed to avoid falling into a false minimum in the search. The parameter space is proportional to the complexity of the problem at hand. The state of the art approach to solving these problems is to use chemical intuition and sheer computational force. But this can engender human error in searching the parameter space, and also can be very time consuming. In this work, we present an efficient, automated method to address this problem. We use a global optimization algorithm that was developed for computationally expensive black-box simulation optimization problems, and for which analytical expressions of the objective function and its derivatives are not available. The result is a computer program for optimizing the analysis of SW data called SWOPT that accepts a problem definition -including the experimental RCs and known estimates of the structure of the system -and returns the best solution without any intermittent user input. SWOPT uses YXRO's original computation code [16] without the graphical user interface (GUI), a black-box optimizer (BBO), and a custom interface that orchestrates the data transfer between the user, YXRO, and the BBO.

8To illustrate the capabilities of SWOPT, we have used it to solve three example problems and we show a clearly better performance in each case, as compared to a random search method, which uses sheer computational force. The increased speed of YXRO and the elimination of user interaction makes SWOPT very attractive for realtime data analyses during SW-PES synchrotron experiments.

9An Efficient Algorithm for Automatic Structure Optimization in X-ray Standing-Wave Experiments 4

Computational Approach

10In the following, we describe the general structure of SWOPT. Figure 1 shows a flowchart of the program, which is an integrated MATLAB® code that consists of YXRO, the BBO and an interface between the two and the user. We provide more details in the following subsections. Figure 1: The general structure of the computer program SWOPT, which solves structure optimization problems using YXRO and a black-box optimizer.

YXRO-Ultra

11YXRO was originally created as a standalone MATLAB® program that is used through a GUI [16]. For problems where hundreds or even thousands of simulations need to be run to find the optimum structure, the initiation and termination of the GUI adds considerable computation time which is not spent on simulating RCs. Furthermore, YXRO does not provide the kind of flexibility that is needed for complex problems like solid/liquid interfaces, where solution phases overlap one another in depth and need to have their distributions optimized. To address these issues, we used a modified source code of YXRO -which is still written in MATLAB® -that runs without the GUI and is completely accessible to a higher-level optimization code. We call the resulting program "YXRO-Ultra". YXRO-Ultra is computationally about an order of magnitude User/YXRO/ Op,mizer Interface

12Black-Box Op,mizer

13The next step for the user is to define the optimization parameter ranges, which will be varied by the BBO to modify the sample properties or experimental conditions based on the template. The user sets the range in which each parameter should be varied, and since these physical properties cannot be measured beyond a certain accuracy, the user also defines the step size for sampling each parameter. In this way we discretize the search space, reducing the total number of possible solutions to a finite set. In most cases these parameters are layer thicknesses and interdiffusion lengths within the sample. In addition to the range of individual parameters, the problem definition allows for constraints. These are analytical conditions that will render a parameter vector invalid if they are violated. An example would be the relationship between the elemental and native oxide layer thicknesses for a Si capping layer. That is, when elemental Si at the top of a Si layer oxidizes, the volume per Si atom increases by a factor of 2.20 due to the incorporation of O atoms into the structure. This can be translated into analytical terms as !"#! = −2.20 !" , where Δt denotes the layer thickness change of both layers, relative to the situation with no oxide.

14For most problems, such as examples 1 and 2 in this article, the definition of thickness and interdiffusion/roughness parameters in combination with constraints are sufficient to determine the sample properties. However, the script-based problem definition, which directly uses YXRO-Ultra, allows the user to include and modify any property of the sample or the experiment that is defined within the YXRO program. Therefore, the user can also set up more advanced properties as optimization parameters, such as thickness gradients, material densities, or electron inelastic mean free paths. In example 3 we make use of this by optimizing the distribution of two independent chemical elements within a water layer.

User/YXRO/Optimizer Interface

15This interface connects the user input with the BBO and YXRO-Ultra in the following way:

161. It interprets the problem definition of the user and creates a simplified definition for the black-box optimizer.

172. It receives parameters from the optimizer and translates them into a YXRO input. 3. It receives the YXRO output (i.e. rocking curves or energy scans), calculates the error (i.e. the objective function for the optimizer), and returns this error to the optimizer. 4. For each trial, it returns the problem solution to the user, as plots and data files. 5. Guided by the optimizer, it loops on parameters that lie within the ranges specified by the user, until a desired degree of fit is obtained, as judged by a sum of R factors

18The interface interprets the broad problem definition and presents the optimizer a simplified problem. The mathematical formulation of the optimization problem from the optimizer's perspective is as follows:

19where ( ) is the overall error as summed over all of the optimization parameters, ! ! and ! ! are the lower and upper bounds of the th optimization parameter. These parameters can be layer thicknesses and interdiffusion lengths. The constraints ! ( ) are given analytically and if violated, they disqualify parameter vectors (an example would be the relationship between the elemental and native oxide layer thicknesses for a Si capping layer discussed above). For the black-box optimizer, we transform the search space such that all parameters are integers (ℕ denotes the set of natural numbers), with a trivial back transformation to report results to the user.

20The optimizer takes the simplified problem definition and returns a set of initial parameters to evaluate with YXRO. The interface uses these parameters and the problem definition to generate a YXRO input, sends it to YXRO, and receives the simulated RCs as output. It then compares the YXRO output to the experimental RCs and calculates the error = using the following expressions:

21where is the signal intensity (typically normalized to be unity outside of the Bragg reflection regime), N is the number of angle or energy points in a RC, and is the total number of RCs. ! is a weighting factor with a default value of 1, but can also be input by the user to give more weight to experimental RCs with higher counts (i.e., less statistical noise). Other formulas for R factors could also in principle be defined by the user in the future, such as that given by Pendry for low energy electron diffraction [17],

22Other R-factors and normalizing expressions that are discussed elsewhere might also be used [18].

23In deriving the intensities !,! !"# in Eq. (5), the raw RCs are typically normalized by one of the three available normalization options: by dividing each RC by i) the mean of the RC, ii) a polynomial background which is typically fitted through the non-modulating part of the RC, or iii) the maximum of the RC. These procedures are used to eliminate angle-dependent instrumental effects, e.g. having to do with the extent of the emitting spot on the sample as seen by the spectrometer. For consistency, the same procedure is applied to the raw simulated RCs to

24is the objective function ( ) that the optimizer minimizes. The interface returns the value for a given parameter set to the optimizer and receives a new set of parameters from it. YXRO runs a simulation for these parameters, and this cycle continues until the optimizer reaches a satisfying condition, which is currently a maximum number of simulations. At that point, the best parameter vector is returned to the interface and the interface creates a summary of the problem solution for the user.

Black-Box Optimizer

25When faced with computationally expensive black-box optimization problems, one widely adopted approach is to use surrogate models to inform the optimization search. A surrogate model is a computationally cheap approximation of the time-expensive simulation objective function , [19], with requiring in general many iterations of the YXRO program:

26Here, is the difference between the time-expensive simulation function and the time-cheap surrogate model. Different types of surrogate models have been developed in the literature, among others radial basis functions [20], kriging [21], multivariate adaptive regression splines [22], polynomial regression models [23], and ensembles of different models [24]. Our surrogate integer optimization algorithm works similar to the SO-I scheme introduced elsewhere [25]. In this paper, we extend the functionalities of SO-I to take analytical fast-to-compute constraints into account.

27Generally, any type of surrogate model could be used, but in this work, we use radial basis function (RBF) surrogate models [20], because our objective function is deterministic and RBFs are interpolating and they therefore predict the true function value at an already evaluated point. An RBF surrogate model is defined as follows:

28where ! , = 1, … , , are the parameter vectors at which we have already evaluated the expensive simulation objective function, ⋅ is the radial basis function (here, we use the cubic, = ! ), and is the polynomial tail whose order depends on the type of RBF we have chosen (for the cubic RBF, we need at least a linear polynomial, = ! + ! ). The parameters ! , = 1, … , , ! , and = ! , … , ! ! are determined by solving a linear system of equations:

29where,

30and

31The matrix in the linear system in (9) is invertible if and only if rank( ) = + 1.

32We use the RBF models in our iterative optimization algorithm in order to only select the most ''promising'' parameter vectors for evaluation (promising in the sense that it is the solution to a computationally cheap auxiliary optimization problem). The optimization algorithm takes into account all constraints ! , = 1, … , , and all integrality constraints. Hence, we do not waste time calculating the objective function for parameter vectors that are clearly unphysical. The steps of the algorithm are illustrated in Figure 2 and the details are summarized in the appendix. An Efficient Algorithm for Automatic Structure Optimization in X-ray Standing-Wave Experiments 11

Example Applications

33In this section, we will demonstrate the effectiveness of SWOPT on three examples. In each example, we will compare the performance of our black-box optimization algorithm to a simple brute-force random search of structural parameter vectors. Our aim is to demonstrate that the adaptive parameter selection of BBO works significantly better than brute-force approaches such as manually varying only a few structural parameters -as done previously for one system [13] -or randomly sampling the structural parameters over the entire space.

34The calculations for the following examples were performed using an Intel® CoreI i5-2500 CPU @ 3.30GHz. The parallelization of our program used 4 cores of the CPU for the YXRO simulation. The total calculation time is mostly defined by the YXRO simulations, which depend on the experimental scenario. The average time per evaluation in the following examples ranged from 1.4 s in example 1 to 2.2 s in example 3. In this article we allowed a total number of 10,000 evaluations for each trial, which means that the total optimization time is ~4-6 h each. However, as we will show in the following, in most cases a satisfactory solution can be found with fewer evaluations, and greater parallelization in the future can lead to further reduction in optimization times. For most cases, our program will allow for a realtime analysis of SW data on laptop computers and yields acceptable optimization results within ~1-2 h.

Example 1: An Artificial Test Case -Ideal Sample on Si/Mo Multilayer Mirror

35The first example is a hypothetical Si/Mo multilayer mirror (MLM) where we generate "pseudoexperimental" data with YXRO (i.e. we know the optimal solution). We expect that SWOPT will find the exact structure since the data have no noise and can be reproduced exactly by YXRO. However, there may be other near-optimal solutions. This example serves as proof-of-concept to test the accuracy of the optimization method.

36The problem definition is given in Figure 4a. The photon energy for this example is in the hard/tender X-ray regime at 3500 eV. The hypothetical sample is 5 layers of metal (from top to bottom: Au, Pt, Ti, Pt, Ti) on top of a Si/Mo multilayer mirror of 80 repeats, where the Mo and Si layer thicknesses are fixed at 9 and 25 Å, respectively. The interfaces of all layers are defined to be sharp. During optimization, each Au, Pt, and Ti layer thickness can vary from 0 to 35 Å, with a step size of 0.5 Å. One complication of this problem is that Pt and Ti signals come from two sets of distinctly separated layers and are integrated to give only one RC for each element. The Pt and Ti RCs depend strongly on how thick each of these layers are, whereas the Au RC depends on the total thickness of Pt+Ti layers. Another complication of the problem is that neither the pseudo-experimental nor the simulated RCs are normalized. Thus, the optimizer has to match the exact amplitudes, rather than relative amplitudes. This is expected to drive the optimizer more to the global minimum rather than to local minima. − " for SWOPT becomes negative after ~500 simulations and thus has been left out of the plot, which is logarithmic.

37We ran SWOPT and the random search 10 times each with random initial guesses and with 10,000 YXRO simulations each time. The RC's of the median (5 th best) of 10 solutions are given in Figure 4b. SWOPT found the exact solution whereas the random search found a solution that almost matches the phase but not the intensities. The convergence behavior of the two algorithms can be seen in Figure 4c. SWOPT approaches the optimal solution significantly faster and with a standard deviation that is significantly smaller (note the logarithmic scale of the y-axis) than the random search method. Table 1: Layer thicknesses obtained from SWOPT and the random search algorithm ("Random") for the artificial test case. "Median" refers to the thicknesses obtained in the 5 th best out of 10 solutions of SWOPT and random. "min/max" refers to the minimum/maximum value found for the parameter within the 10 runs. Mean values are reported for completeness; they are ensemble averages and don't necessarily correspond to a solution of SWOPT or random search. The values found for the five layer thicknesses defined in the problem are given in Table 1. The median solution found by SWOPT is essentially exact, whereas the one found by the random search algorithm is significantly inaccurate for the bottom three layers. The inadequacy of the random search can also be seen in the standard deviations, which are 40-96% for the bottom three layers. The standard deviations increase from the top to the bottom layers for both SWOPT and random search.

Example 2: Si-Mo Multilayer Mirror

38The second example is a real pristine MLM consisting of 80 Si/Mo bilayers. The mirror was prepared at the Center for X-ray Optics at Lawrence Berkeley National Laboratory using magnetron sputtering on a polished Si substrate. The nominal thicknesses of Si and Mo layers were 25.5 Å and 8.9 Å, respectively, giving a bilayer period of 34.4 Å in excellent agreement with the 34.4 Å as determined by Cu Kα reflectivity at 8.04 keV. Hard X-ray photoelectron spectroscopy measurements were performed at beamline 9.3.1 of the Advanced Light Source at Lawrence Berkeley National Laboratory, with 3100 eV photon energy.

39The problem definition provided to the optimizer is given in Table 2 and in Figure 5a. There are 5 layer thicknesses and 4 interdiffusion lengths to be optimized: a total of 9 parameters. The repeating part (80 repeats) is defined with d Mo (repeating Mo thickness), d Si,ML (repeating Si thickness), and r ML (repeating interdiffusion length between Mo and Si). The non-repeating part consists of d Si,top (thickness of the topmost Si layer), d SiO2 (thickness of the native oxide -SiO 2 ), and d C (thickness of the surface carbon contamination), as well as the corresponding interdiffusion lengths/roughnesses for the top three layers: r Si,top , r SiO2 , and r C , respectively. The interdiffusion length between the topmost Si layer and the topmost Mo layer is also defined to be equal to r ML (i.e. the repeating interdiffusion length). The RCs were normalized by dividing each point by the second-order polynomial background that was fitted to the off-Bragg tails of the RCs. SWOPT and the random search were run 10 times with 10 different random initial guesses and 10,000 YXRO simulations each time. Figure 5b shows the RCs corresponding to the 5 th best, or approximately median solution of SWOPT, together with the experimental RCs. Figure 5c-d-e show the evolution of the best R value found so far as a function of the number of simulations performed. While Figure 5d and Figure 5e show the progress of the 10 individual runs for SWOPT and the random search, Figure 5c compares the averages of these two approachesstandard deviations are included in lighter colors. The average curves in Figure 5c show that SWOPT needed about an order of magnitude fewer evaluations than the random search to reach a certain R value. The standard deviation for SWOPT was also smaller. The median (5 th best), mean -with standard deviations -and minimum/maximum solutions for each parameter are given in Table 3 for both SWOPT and the random search. The two algorithms give similar results for layer thicknesses. The results of SWOPT have smaller standard deviations, which is likely an indication of better convergence. The carbon layer thickness "d C " has a large relative standard deviation for SWOPT (71%) probably because it's a small fraction (∼10%) of the standing-wave period and the RCs are normalized (i.e. absolute intensity information is lost). Note that the effective period of the multilayer is 25.2 + 8.2 = 33.4 Å, within about 3% of the 34.4 Å determined by hard X-ray diffraction.

Example 3: Cs+Na Aqueous Solution/Fe 2 O 3 /Si-Mo Multilayer Mirror

40The third example is the re-evaluation of data that was published earlier [13], with all details discussed in this reference. In addition to the random search method, we compare the performance of SWOPT to the manual analysis performed by Nemšák et al. The original analysis of this problem took about two weeks with frequent human computer input. With SWOPT, it took the user ~1 h to set up the program definition, which is rather advanced compared to examples 1 and 2. After this, a single optimization run with 10,000 evaluations finished within ~6 h with no further human interaction required. This is thus roughly a factor 50 reduction in analysis time. Considering that 10,000 evaluations is at least twice of what is needed to obtain a solution akin to Nemšák's, we can say that a factor of ~100 reduction in data analysis time has been achieved for this particular example; and of course, human bias in varying parameters has also been removed.

41In more detail, the sample is a Fe 2 O 3 layer deposited on a Si/Mo MLM that is identical to the one in the previous example. A thin NaOH+CsOH layer was dropcast on Fe 2 O 3 from an aqueous solution. The sample was hydrated in situ with 0.4 Torr H 2 O at 2.5 °C, which corresponds to ∼8% relative humidity. The ions are thus expected to be mobile. This requires a more complex problem definition than the other examples, whereby the Na and Cs layers (i.e. the volumes that contain Na + and Cs + ions) can overlap and are free to move within the liquid layer. The parameterization of SWOPT, which includes the full functionality of YXRO-Ultra scripts, permits defining this complex problem in a complete way directly amenable to the BBO. Figure 6a shows the problem definition where d Fe2O3 , d H2O , d Na , and d Cs are the thicknesses of the corresponding layers. To model the mobility of the Cs and Na layers, we introduced a layer above (b Cs,top and b Na,top ) and a layer below (b Cs,bot and b Na,bot ) each, whose thicknesses can vary independently. One condition, for this particular problem, is that:

42that is, both ions must be found somewhere in the water layer of thickness d H2O .

43The SWOPT and the random search were run 10 times with 10 different initial random guesses and 10,000 YXRO simulations each time. Figures 6b and 6c show the RCs for the median (5 th best) solution of SWOPT, and the solution of the manual analysis, respectively. Figure 6d and 6f show the convergence of individual runs for SWOPT and the random search, respectively. Figure 6d compares the averages of these two approaches -standard deviations are included in lighter colors. The average curves show that SWOPT outperforms random search -within 1 standard deviation -after ∼500 iterations. The relatively small standard deviation for SWOPT indicates that it likely convergences close to the global minimum. The results extracted from the median SWOPT solution agree -as presented in Table 4 extremely well with the parameters optimized by the much less sophisticated manual optimization, which essentially is a brute force method that optimized three parameters from the set at a time. Figure 6g presents the detailed distributions derived for this sample from SWOPT. The deviations between the two found solutions are within a few Å, which is also a limiting precision of this type of experiment, considering that the SW period is roughly one order-of-magnitude larger than these deviations. The solutions of all 10 trials of SWOPT optimizations unanimously confirm the conclusion that Na + ions are most likely stripped of their solvation shells and are adsorbed specifically at the liquid/hematite interface. For the Cs + ions, not every trial resulted in a sizable spacing between hematite and liquid, which is represented by d Cs,bot in Table 4 with a mean value of d Cs,bot = 0.7 Å ± 0.6 Å. This variation is explained by the fact that the exact shape of the RC, and therefore also the objective function value, are much less dependent on the bottom interfaces of the liquid and ion distributions compared to the top interfaces. However, judging by the best of the 10 SWOPT solutions we found a spacing of 1.3 Å between the hematite and the Cs + ions, which is consistent with the results by Nemšák et al. [13]. These results are furthermore consistent with earlier studies of alkali adsorption on hematite [26,27] as well as different behavior between Na + and Cs + at the liquid/vapor interface [28,29]. SWOPT results, just like the analysis by Nemšák et al., indicate that Cs + ions are directly at the liquid/vapor interface -probably with a partial solvation shell -and Na + ions are excluded from this interface to a depth of ∼4 Å. Figure 7: Comparison of element distribution determined by manual analysis [13] to the best result of the 10 SWOPT trails that are presented here. (Note that the original figure in ref. [13] showed interdiffusion lengths that were too low by a factor of 2, which was corrected here.) Figure 7 shows the element distributions that were determined by the manual analysis of Nemšák et al. compared to the best of the 10 SWOPT trials. Despite slight differences in the exact shape of the distributions, the overall agreement is good. Especially the main conclusions of the original study -the repulsion of Cs + from the hematite, and of Na + from the liquid/vapor interface -are reproduced by SWOPT, even if the program had to be run several times at 10000 iterations to find the best result. The best, worst, and median (5 th best) objective function values that we received using SWOPT were R = 0.00314, 0.00337, and 0.00316, respectively, compared to R = 0.0039 in the manual analysis. Therefore, we can conclude that SWOPT is at least as reliable as the manual analysis. In addition, it is much less dependent on the intuition of the scientist analyzing the data. While the results are similar, the manual analysis relied largely on the experience of the scientist to find a good initial guess of the structure, and then was limited to varying a maximum of three parameters simultaneously to optimize the sample properties. This not only explains the significant amount of human interaction needed in the manual analysis, but it also makes it unlikely that a scientist with less experience in analyzing SW-PES data could find a sufficiently accurate solution, at least not without expending a much greater amount of time. Our new program SWOPT does not rely on initial and often subjective guesses beyond the upper and lower limit for each optimization parameter.

Conclusions

44We show that our new computer program (SWOPT) solves the structure optimization problem in SW-PES problems involving multilayered samples quickly (minutes to hours), and without extensive human interaction. We compared the performance of our black-box optimizer (BBO) algorithm to a random search method by running each 10 times for three test cases. In every case the SWOPT significantly outperformed the random search.

45The complex hypothetical test case involving "pseudo-experimental" data from 5 layers on a Mo/Si multilayer showed that for the layers closer to the surface, thicknesses could be analyzed more accurately. The relative standard deviations of layer thicknesses for 10 independent solutions were in the range of 2-8 %.

46The experimental test case for a bare Si/Mo multilayer, which is a relatively simple problem, showed that the best of the 10 random searches gave similar results to SWOPT after 10,000 iterations. However, SWOPT not only found the solution more efficiently, it also consistently found a good solution in all 10 trials. Thus, SWOPT can be relied on for finding a solution under time limitations or with little computational resources and proves to be far more reliable after only a single trial run.

47We also used SWOPT to reanalyze the results of an earlier SWAPPS study that investigated the Cs + /Na + distribution normal to the surface in a liquid layer on Fe 2 O 3 . SWOPT reproduced the results found earlier within ∼1 Å for all but one parameter: only an ∼3 Å difference with the manual analysis was found for the Cs + /Fe 2 O 3 gap, which is within the precision of the experiment.

48The versatility of SWOPT is an important advantage for tackling future SW-PES problems with greater complexity. The ∼10 fold speed gained through "YXRO-Ultra", and the extra speed through the BBO algorithm, which ultimately leads to analyses about 50-100x faster, makes this program an invaluable tool for "realtime" analysis of data during synchrotron experiments. We will make SWOPT available online to the community in the future.

Acknowledgments

49We acknowledge support by the Director, Office of Science

Appendix -Surrogate Optimization Algorithm For Constrained Integer Problems

50Below, we describe the detailed individual steps of the black-box optimization method (BBO).

51Step 1:

52Create an initial experimental design with min { , + 1} points, where is the total number of possible solutions (including infeasible solutions). We use a symmetric Latin hypercube design and round the parameter values to the closest integers. Denote the solution set by ! .

53Step 2:

54Compute the (computationally cheap) constraint function values and discard the infeasible points. Denote the remaining solution set by ! .

55Step 3: If the rank condition for the matrix (see Eq. 9) corresponding to the points in ! is not satisfied, keep adding feasible points to ! until the rank condition is satisfied. Denote the final set of points by .

56Step 4: Compute the objective function values at all points in , denote the vector of function values by .

57Step 5: Find the point in with the smallest objective function value. Denote the point by best and its function value by best .

58Step 6:

59Iterate while stopping criterion is not met:

60Step 6a: Given the points in and their function values , compute the parameters of the RBF surrogate model, (see Eq. 8).

61Step 6b: Create a large set of candidate points around best by perturbing the variable values of best and by uniformly selecting points from the whole variable domain. All created candidate points satisfy the integrality constraints.

62Step 6c: Discard all candidate points that do not satisfy the constraints ! . Denote the remaining candidate points by ! , … , ! .

63Step 6d: Use the surrogate model to predict the objective function values for all candidate points and denote the set of predicted values by ! , … , ! } and scale these values to [0,1] such that the smallest predicted value is set to 0 and the largest value is set to 1. Denote the set of scaled values by ℛ .

64Step 6e:

65Compute the distance of all candidate points to the set , denote the set by ! , , … , ! , . Scale the distance values to [0,1] such that the candidate with the largest distance obtains score 0 and the candidate closest to obtains score 1. Denote the set of scaled distance values by .

66Step 6f: Compute a weighted sum of both scores = ℛ + 1 − for each candidate point and select the candidate with the lowest score as new evaluation point, new .

67Step 6g:

68Compute the expensive objective function at the new point, ( new ).

69Step 6h:

70Step 7:

71Return the best solution found.

72In

73Step 1 of the algorithm, if is small enough, we may do a complete enumeration of all possible solutions, discard all infeasible points, and only sample from the remaining set of points. This approach makes the creation of the initial sample points and the candidate points in

74Step 6b easier. In the iterative sampling procedure, we ensure that no point will be selected for evaluation more than once. Since the objective function is deterministic, repeatedly evaluating at the same point will not add new information.

75In

76Step 6d, we scale the predicted objective function values of all candidates to [0,1] according to (see also [30]). In Step 6f, we compute a weighted score between the surrogate model prediction and the distance to already evaluated points:

77The weights are selected from a range of possibilities, namely = 1, 0.9, 0.75, 0.6, 0.5, 0.35, 0.25, 0 . When selecting only a single point in each iteration for doing the expensive function evaluation, we cycle through this weight pattern. Our implementation allows also to select more than one point in each iteration, in which case we select 8 points (the length of the weight pattern ) and each point is chosen based on using a different weight. We update the best point and the best function value found so far as well as the set of already evaluated points and the corresponding set of function values. The algorithm stops once we have reached a predefined maximum number of objective function evaluations.

78The convergence of the algorithm to the global optimum follows from a simple counting argument. As there exist only a finite number of possible solutions and the algorithm never evaluates a parameter vector more than once, it follows that as the number of evaluations approaches , we will eventually sample at the global optimum. However, in practice, we cannot allow evaluations and we have to be satisfied with the best solution we can obtain within our computation time budget. Typically we let the program run through about 10,000 iterations.

참고문헌 34건

  1. Solution to the Surface Registration Problem Using X-Ray Standing Waves Physical Review Letters · American Physical Society · 1982 10.1103/physrevlett.49.560
  2. Concentration and chemical-state profiles at heterogeneous interfaces with sub-nm accuracy from standing-wave ambient-pressure photoemission Nature Communications · Nature Portfolio · 2014 10.1038/ncomms6441
  3. A rigorous framework for optimization of expensive functions by surrogates Structural Optimization · Springer Nature · 1999 10.1007/bf01197708
  4. A Stochastic Radial Basis Function Method for the Global Optimization of Expensive Functions INFORMS journal on computing · Institute for Operations Research and the Management Sciences · 2007 10.1287/ijoc.1060.0182
  5. Reliability factors for LEED calculations Journal of Physics C Solid State Physics · IOP Publishing · 1980 10.1088/0022-3719/13/5/024
  6. A comparison of reliability (R) factors in a LEED structural analysis of the copper (111) surface Journal of Physics C Solid State Physics · IOP Publishing · 1981 10.1088/0022-3719/14/22/023
  7. Measurement of the silicon (111) surface contraction Physical Review Letters · American Physical Society · 1986 10.1103/physrevlett.56.236
  8. Making use of x-ray optical effects in photoelectron-, Auger electron-, and x-ray emission spectroscopies: Total reflection, standing-wave excitation, and resonant effects Journal of Applied Physics · American Institute of Physics · 2013 10.1063/1.4790171
  9. Depth-resolved photoemission spectroscopy from surface and buried layers with soft X-ray standing waves Surface Science · Elsevier BV · 2000 10.1016/s0039-6028(00)00617-8
  10. Ion distributions at charged aqueous surfaces by near-resonance X-ray spectroscopy Journal of Synchrotron Radiation · Wiley · 2006 10.1107/s0909049506038635
  11. Principles of geostatistics Economic Geology · 1963 10.2113/gsecongeo.58.8.1246
  12. Detection of Foreign Atom Sites by Their X-Ray Fluorescence Scattering Physical Review Letters · American Physical Society · 1969 10.1103/physrevlett.22.703
  13. Insulating state of ultrathin epitaxial LaNiO<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msub><mml:mrow /><mml:mn>3</mml:mn></mml:msub></mml:math>thin films detected by hard x-ray photoemission Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.075104
  14. Standing wave enhanced scattering in multilayer structures Journal of Applied Physics · American Institute of Physics · 1987 10.1063/1.338156
  15. X-ray standing waves and x-ray photoemission measurements in the energy range 2.7–7 keV Review of Scientific Instruments · American Institute of Physics · 1992 10.1063/1.1143809
  16. Response Surface Methodology: Process and Product Optimization Using Designed Experiments Technometrics · Taylor & Francis · 1996 10.2307/1270613
  17. An in Situ FTIR-ATR Study of Polyacrylate Adsorbed onto Hematite at High pH and High Ionic Strength Langmuir · American Chemical Society · 2004 10.1021/la036248u
  18. Effect of Dynamical Diffraction in X-Ray Fluorescence Scattering Physical Review · American Institute of Physics · 1964 10.1103/physrev.133.a759
  19. Mixture surrogate models based on Dempster-Shafer theory for global optimization problems Journal of Global Optimization · Springer Science+Business Media · 2010 10.1007/s10898-010-9620-y
  20. SO-I: a surrogate model algorithm for expensive nonlinear integer programming problems including global optimization applications Journal of Global Optimization · Springer Science+Business Media · 2013 10.1007/s10898-013-0101-y
  21. Multivariate Adaptive Regression Splines The Annals of Statistics · Institute of Mathematical Statistics · 1991 10.1214/aos/1176347963
  22. Effect of urea on the stability of ferric oxide hydrosols Colloids and Surfaces A Physicochemical and Engineering Aspects · Elsevier BV · 1997 10.1016/s0927-7757(96)03880-0
  23. Aqueous solution/metal interfaces investigated in operando by photoelectron spectroscopy Faraday Discussions · Royal Society of Chemistry · 2015 10.1039/c5fd00003c
  24. Cation Effects on Interfacial Water Organization of Aqueous Chloride Solutions. I. Monovalent Cations: Li<sup>+</sup>, Na<sup>+</sup>, K<sup>+</sup>, and NH<sub>4</sub><sup>+</sup> The Journal of Physical Chemistry B · American Chemical Society · 2014 10.1021/jp503132m
  25. Depth-Resolved Composition and Electronic Structure of Buried Layers and Interfaces in a LaNiO3/SrTiO3 Superlattice from Soft- and Hard- X-ray Standing-Wave Angle-Resolved Photoemission Journal of Electron Spectroscopy and Related Phenomena · Elsevier BV · 2016 10.1016/j.elspec.2016.04.008
  26. Recent research at Cambridge on radial basis functions Birkhäuser Basel eBooks · Birkhäuser Basel · 1999 10.1007/978-3-0348-8696-3_14
  27. Energetic, spatial, and momentum character of the electronic structure at a buried interface: The two-dimensional electron gas between two metal oxides Physical review. B./Physical review. B · American Physical Society · 2016 10.1103/physrevb.93.245103
  28. PROBING MULTILAYER NANOSTRUCTURES WITH PHOTOELECTRON AND X-RAY EMISSION SPECTROSCOPIES EXCITED BY X-RAY STANDING WAVES Series on synchrotron radiation techniques and applications · World Scientific · 2013 10.1142/9789812779014_0027
  29. Depth-resolved resonant inelastic x-ray scattering at a superconductor/half-metallic-ferromagnet interface through standing wave excitation Physical review. B./Physical review. B · American Physical Society · 2018 10.1103/physrevb.98.235146
  30. The X-Ray Standing Wave Technique: Principles and Applications 2008
  31. Standing-Wave and Resonant Soft- and Hard-X-ray Photoelectron Spectroscopy of Oxide Interfaces Springer series in materials science · Springer Science+Business Media · 2018 10.1007/978-3-319-74989-1_7
  32. Torricelli: A software to determine atomic spatial distributions from normal incidence x-ray standing wave data Computer Physics Communications · Elsevier BV · 2018 10.1016/j.cpc.2018.06.009
  33. Element- and momentum-resolved electronic structure of the dilute magnetic semiconductor manganese doped gallium arsenide Nature Communications · Nature Portfolio · 2018 10.1038/s41467-018-05823-z
  34. Response Surface Methodology: Process and Product Optimization Using Designed Experiments Technometrics · Taylor & Francis · 1996 10.1080/00401706.1996.10484509