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

Neural network analysis of neutron and X-ray reflectivity data incorporating prior knowledge

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

기본 정보

저자
  1. Valentin Munteanu — University of Tübingen, Auf der Morgenstelle 10, 72076 Tübingen, Germany
  2. Vladimir Starostin — University of Tübingen, Auf der Morgenstelle 10, 72076 Tübingen, Germany
  3. Alessandro Greco — University of Tübingen, Auf der Morgenstelle 10, 72076 Tübingen, Germany
  4. Linus Pithan — Deutsches Elektronen-Synchrotron DESY, Notkestraße 85, 22607 Hamburg, Germany|||University of Tübingen, Auf der Morgenstelle 10, 72076 Tübingen, Germany
  5. Alexander Gerlach — University of Tübingen, Auf der Morgenstelle 10, 72076 Tübingen, Germany
  6. Alexander Hinderhofer — University of Tübingen, Auf der Morgenstelle 10, 72076 Tübingen, Germany
  7. Stefan Kowarik — Department of Physical Chemistry, University of Graz, Heinrichstraße 28, 8010 Graz, Austria
  8. Frank Schreiber — University of Tübingen, Auf der Morgenstelle 10, 72076 Tübingen, Germany
DOI
10.1107/s1600576724002115
저널
Journal of Applied Crystallography
발행년도
2024
발행기관
Wiley
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1107/s1600576724002115
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4393358050

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (11) 배리어 필름
부 분야
(15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
multilayer thin films, X-ray reflectivity, neutron reflectometry, scattering length density, neural network
판단 근거
이 논문은 다층 박막(multilayer thin films)의 물리적 구조(두께, 거칠기, 밀도 등)를 X선 및 중성자 반사율 데이터를 통해 분석하는 딥러닝 모델을 다룹니다. 이는 코오롱인더스트리의 배리어 필름, 디스플레이 패널재료, CPI 필름 등 다층 구조를 가진 기능성 필름의 계면 및 물성 분석 기술에 응용될 수 있는 분석 방법론입니다.
R&D 활용 포인트
다층 구조의 기능성 필름(배리어 필름, CPI 등) 제조 시, 비파괴 분석 데이터(XRR/NR)를 활용하여 박막의 두께, 거칠기, 층별 밀도 분포를 신속하고 정확하게 역설계(Inverse design) 및 모니터링하는 데 활용 가능합니다.
평가 입력
섹션 본문 33,842자 중 30,032자 발췌

초록

Due to the ambiguity related to the lack of phase information, determining the physical parameters of multilayer thin films from measured neutron and X-ray reflectivity curves is, on a fundamental level, an underdetermined inverse problem. This ambiguity poses limitations on standard neural networks, constraining the range and number of considered parameters in previous machine learning solutions. To overcome this challenge, a novel training procedure has been designed which incorporates dynamic prior boundaries for each physical parameter as additional inputs to the neural network. In this manner, the neural network can be trained simultaneously on all well-posed subintervals of a larger parameter space in which the inverse problem is underdetermined. During inference, users can flexibly input their own prior knowledge about the physical system to constrain the neural network prediction to distinct target subintervals in the parameter space. The effectiveness of the method is demonstrated in various scenarios, including multilayer structures with a box model parameterization and a physics-inspired special parameterization of the scattering length density profile for a multilayer structure. In contrast to previous methods, this approach scales favourably when increasing the complexity of the inverse problem, working properly even for a five-layer multilayer model and a periodic multilayer model with up to 17 open parameters.

본문 34,747자

본문 펼치기
Due to the lack of phase information, determining the physical parameters of multilayer thin films from measured neutron and X-ray reflectivity curves is, on a fundamental level, an underdetermined inverse problem.This so-called phase problem poses limitations on standard neural networks, constraining the range and number of considered parameters in previous machine learning solutions.To overcome this, we present an approach that utilizes prior knowledge to regularize the training process over larger parameter spaces.We demonstrate the effectiveness of our method in various scenarios, including multilayer structures with box model parameterization and a physicsinspired special parameterization of the scattering length density profile for a multilayer structure.By leveraging the input of prior knowledge, we can improve the training dynamics and address the underdetermined ("ill-posed") nature of the problem.In contrast to previous methods, our approach scales favorably when increasing the complexity of the inverse problem, working properly even for a 5-layer multilayer model and an N-layer periodic multilayer model with up to 17 open parameters. I. INTRODUCTION X-ray and neutron reflectometry (XRR and NR) are well-established and indispensable experimental techniques commonly used to investigate the scattering length density (SLD) profile along the direction perpendicular to the surface of a sample such as thin films and multilayers [1][2][3][4][5].The most common way of modeling the SLD profile of a measured sample is via the box model parameterization, where the physical parameters of interest are the thickness, the roughness, and the constant SLD of each layer in a multilayer structure.Still, more complex parameterizations of the SLD profile can be employed based on preexisting physical knowledge or intuition about the investigated structure.XRR and NR have been extensively used in both in situ and ex situ studies of a large variety of systems, such as liquid and solid thin films [6][7][8][9][10][11][12][13][14][15][16], layers of polymers [17,18], lipids [19][20][21][22], self-assembled monolayers [23,24] and organic solar cells [25][26][27].In addition, polarized NR [28] can be used to study the magnetic properties of thin films, but it is important to realize that these successful uses of reflectometry usually involve some form of complementary information in the data analysis, such as typical densities or reasonable intervals for the film thickness, provided by the experimentalist. I. INTRODUCTION Reflectometry can be counted among the techniques affected by the phase problem.In the absence of complementary information, the lack of phase information introduces a degree of ambiguity when trying to reconstruct the SLD profile of the investigated sample from the measured reflectivity curve, i.e. the inverse problem is, on a fundamental level, underdetermined ("ill-posed").This intrinsic ambiguity of the scattering method is further magnified by additional ambiguity due to the limited experimental accuracy, such as instrument noise, measurement artifacts, and the finite number of measured points over the domain of the momentum transfer vector q z .In recent years, machine learning has emerged as an alternative to classical methods of analyzing surface scattering data [29], being attractive due to its very fast prediction times and the ability to be incorporated into the operating pipelines of large-scale measurement facilities.In particular, fast machine learning-based solutions are ideal for enabling an experimental feedback loop during reflectometry measurements performed in real time [30,31].While many machine learning approaches dedicated to reflectivity exist [32][33][34][35][36][37][38][39], most of them do not address the inherent ambiguity of the reflectivity data directly, instead training neural networks over specific parameter domains where the ambiguity is not prominent enough to prevent convergence.Such networks lack the flexibility to be used in more general scenarios, typically requiring to be retrained on new parameter domains for each use case.Specifically, Ref. [34], while successful within its target, only addresses the case of a layer grown on top of a silicon/silicon oxide substrate. I. INTRODUCTION In our method proposed here, we enhance the regularization of the inverse problem by including prior boundaries for the parameters as supplementary inputs to the neural network.This allows the network to be trained over wide parameter domains while the regression is being conducted over small enough subdomains defined by the prior bounds to mitigate ambiguity.During inference, the output of the network is defined not only by the measured reflectivity curve but also by the prior experimental knowledge for the considered physical scenario.Different choices of prior bounds can lead to the recovery of distinct solution branches from the larger parameter domain. I. INTRODUCTION Another limitation of existing approaches is that they require a specific discretization of the reflectivity curves, as imposed by common network architectures.While experimental curves can be interpolated to the required discretization, interpolation is prone to introduce unphysical artifacts, for example around deep minima of Kiessig fringes in NR / XRR curves.To address this limitation, we introduce the use of a neural operator for processing reflectivity curves with variable discretizations (number of points and q ranges). I. INTRODUCTION In the following, we first discuss the theoretical concepts necessary to understand our approach in Section II, after which we present the technical details of the implementation in Section III.Finally, we demonstrate the results of our method for different parameterizations of the SLD profile (two-layer box model, five-layer box model, physics-informed model with N repeating monolayer units) on both simulated and experimental reflectivity curves. A. The phase problem The phase problem is a ubiquitous issue for experimental techniques utilizing the interference of waves Ae −iωt as a means of probing the physical properties of materials, caused by the fact that detectors cannot record the phase of the signal, but only its intensity |A| 2 [40].This loss of information introduces a degree of ambiguity when trying to reconstruct the physical quantities of interest from the measured signal.It is well-known that neutron and X-ray reflectometry are among the techniques affected by the phase problem [41], which precludes an analytical solution via the Gel'fand-Levitan-Marchenko [42] inverse scattering equation.Some approaches for experimentally tackling the phase problem of neutron and X-ray reflectometry have been developed, such as the reference layer method [43] and the Lloyd mirage technique [44], but they have certain practical limitations.Of particular interest is the use of magnetic reference layers [45] in polarized neutron reflectometry where the SLD of the reference layer depends on the polarization of the incident neutrons.Three distinct measurements for up, down, and non-polarized neutron beams then allow for the determination of the phase.Also for NR, the amount of structural detail extracted from reflectivity data can be maximized by flexibly varying the SLD of specific structures within the sample via isomorphic isotropic substitution [46], such as the replacement of protium with deuterium (selective deuteration) in the hydrocarbon chains of lipid bilayers [47].Alternatively, the degree of ambiguity can be diminished when measuring a series of reflectivity curves for a sample with evolving structure (e.g. during film deposition).Notably, such theoretical ambiguity is in practice further accentuated by experimental sources of error (noise, finite instrumental resolution, artifacts) and the discrete nature of the measurement process, the scattered intensity being recorded over a finite range of the momentum transfer q z at a finite number of points. A. The phase problem A consequence of the phase problem is the underdetermined ("ill-posed") nature of the parameter recovery from the measured data, different SLD profiles corresponding to equivalent reflectivity curves.When taking into account multiple scattering at the interfaces, as described by Parratt's recursive formalism [48] or Abelès transfer-matrix method [49], some information about the phase can be recovered in the low q z region [50], although the difference between reflectivity curves can still become vanishingly small [51], especially when compounded with systematic measurement errors of the total reflection edge. A. The phase problem In the following, we briefly summarize a theoretical derivation of how such SLD profiles can be identified in the mathematically simpler kinematical approximation, which neglects multiple scattering at the sample interfaces so that the calculation remains analytical.In the kinematical approximation, the scattered intensity is proportional to the square of the total scattering amplitude: A. The phase problem where R F (q z ) denotes the Fresnel reflectivity, ρ(z) is the SLD profile along the perpendicular direction z to the sample and ρ s is the SLD of the substrate. A. The phase problem For the commonly used box model with interfacial roughness parametrized via Névot- A. The phase problem Croce factor [52], an SLD profile can be written as a sum of the error functions: A. The phase problem where erf(z) is the error function, N is the number of interfaces, z i the position of the ith interface, σ i is the roughness of the ith interface and ∆ρ i is the SLD difference between interfaces i and i + 1. A. The phase problem By substituting Equation (2) into Equation (1), we can explicitly calculate the Fourier transform: A. The phase problem FT A. The phase problem Finally, we obtain a decomposition of the scattered intensity into the sum of a constant term and several sinusoidal components with amplitudes ∆ρ i ∆ρ j e −q 2 z (σ 2 i +σ 2 j )/2 and frequencies ∆z ij : A. The phase problem By solving for all combinations of ∆ρ i and z i with the same scattered intensity, one can identify classes of the theoretical identical solutions in the kinematical approximation, such as profiles with mirrored derivatives as reported in earlier studies [51,53,54] (shown in Figure 1).Notably, restricting the shape of the considered SLD profiles to the box model with a fixed number of layers already imposes a strong regularization on the space of admissible solutions. B. Solving ill-posed inverse problems using neural networks If a forward process f (x) = y maps the hidden parameters x describing a physical system to an observable signal y, the inverse problem can be described as retrieving the physical parameters from a possibly noise-corrupted measurement of the signal [55].When the inverse problem f −1 (y) = x represents a one-to-one mapping, neural networks can be straightforwardly trained to approximate the inverse function.In contrast, a many-to-one mapping of the forward process leads to an underdetermined, ill-posed inverse problem, and the corresponding one-to-many inverse mapping f −1 (y) cannot be approximated via regression.Attempting to train a neural network as a point estimator over the domain containing the non-uniqueness would lead to incorrect predictions corresponding to an average of distinct solution branches.Different machine learning approaches exist for addressing ill-posed inverse problems [56][57][58], which generally depend on the specific application. B. Solving ill-posed inverse problems using neural networks The present study proposes a novel approach for tackling ill-posed inverse problems, which takes advantage of the a priori knowledge of the experimentalist.This approach is inspired by conventional reflectometry analysis and combines the high speed of neural networks with the flexibility of conventional fitting procedures. B. Solving ill-posed inverse problems using neural networks Typically, some physical parameters of the studied samples are known to the experimentalists with narrow uncertainty ranges, such as densities of the used materials, thicknesses of the deposited layers, etc.In conventional fitting procedures, this information is used to set upper and lower bounds on each sample parameter within which solutions are allowed, the bounds being narrower for layer SLDs and wider for layer thicknesses and roughnesses.Our implementation allows us to provide such prior knowledge as input to the neural network in the form of the two prior bounds for each parameter, the regression problem being constrained to the local domain defined by the prior bounds, thus avoiding the non-uniqueness associated with the full parameter domain.As long as the prior bounds are narrow enough not to include multiple solution branches, the inverse mapping is well-determined and can be approximated by a neural network.In practice, even a small amount of prior knowledge can be enough to rule out ambiguity in reflectometry analysis.We note that narrow priors do not guarantee a single solution, as multiple solutions might occur close to each other. B. Solving ill-posed inverse problems using neural networks However, our general assumption shared by experimentalists who analyze reflectometry data via conventional fitting is that for a large set of cases, the prior information is sufficient to isolate a single solution. B. Solving ill-posed inverse problems using neural networks Our method can be envisioned as simultaneously learning the inverse problem on all the possible subdomains (or a subset of subdomains) of the full parameter domain, using a single neural network.Thus, some parallels can be drawn to approaches such as [59] where a Beta Variational Autoencoder (β-VAE) is trained simultaneously for all values of the β coefficient using a single neural network (a task which would typically require retraining for each β value). C. Discretization-invariant learning Neural networks can only learn mappings between finite-dimensional vector spaces, some architectures such as the multilayer perceptron requiring a fixed discretization (range and resolution) of the input.A new paradigm is represented by neural operators, which can learn mappings between infinite-dimensional function spaces, allowing discretizationinvariant learning [60,61].For an input function v 0 (x) defined over a domain D, a neural operator is constructed as a series of transformations v t → v t+1 : C. Discretization-invariant learning where W is a linear transformation, σ is a non-linear activation function and K is a non-local integral operator with learnable kernel k: C. Discretization-invariant learning The Fourier Neural Operator (FNO) [62] represents an efficient and expressive implementation of a neural operator which imposes k(x, y) = k(x − y) and leverages the convolution theorem.It parameterizes the kernel operator directly in Fourier space as: C. Discretization-invariant learning where F and F −1 represent the direct and, respectively, the inverse discrete Fourier transform and T is a learnable linear transformation. C. Discretization-invariant learning Neural operators have been predominantly used in the fields of differential equation solving and physics-informed learning [63,64].Here, we use a neural operator to learn a vector embedding for reflectivity curves with variable discretizations (q ranges and numbers of points) for our regression inverse problem.Such an approach is beneficial as it confers a higher degree of flexibility to the trained model, enabling the use of the full measured signal without relying on interpolation.As shown in Figure 2, an embedding of the reflectivity curve, together with the prior bounds are input to a fully connected neural network (also known as multilayer perceptron or MLP [66]), the loss being computed as the mean-squared error between the neural network output and the ground truth parameters (normalized with respect to the prior bounds). C. Discretization-invariant learning Notably, obtaining the final prediction requires reversing the normalization of the neural network output with respect to the prior bounds.The architecture of our model, as well as the sampling procedure, are shown in Figure 2 (parameter scaling omitted for simplicity). C. Discretization-invariant learning The MLP consists of a sequence of n blocks =6 residual blocks inspired by the ResNet [67] architecture design, each block containing 2 hidden layers of width dim hidden =1024 neurons. C. Discretization-invariant learning The use of skip connections has the role of facilitating gradient propagation and preventing singularities [68].Batch normalization [69] is known to improve the convergence of neural networks, so we use it to normalize the intermediate features before activation.Since the type of activation function can have a significant impact on the performance of a neural network, we explored the use of several popular activation functions (ReLU [70], GELU [71], C. Discretization-invariant learning SELU [72], Mish [73]), choosing GELU as the default. C. Discretization-invariant learning We trained our models using the AdamW [74] optimizer, a version of Adam [75] with decoupled weight decay regularization.The weight decay coefficient is kept at the default value of 0.01 .The initial learning rate of 0.0001 was decreased by a factor of 10 on plateau of the loss.We used the largest batch size that fits in our GPU memory (4096) to ensure stable gradients. B. Embedding networks Going beyond previous publications, where a reflectivity curve is directly provided as input to the MLP, we first use a network that produces a latent embedding of the reflectivity curve which is subsequently fed to the MLP. B. Embedding networks When training a model on reflectivity curves with fixed discretization, we use a 1D B. Embedding networks CNN [76] as the embedding network, which is parameter-efficient and better leverages the sequential characteristics of the data.While less popular than their 2D counterparts, 1D B. Embedding networks CNNs have been successfully used in a variety of tasks involving 1D signals such as automatic speech recognition [77] and time-series prediction [78].The 1D CNN, as shown in Figure 3a, consists of a sequence of convolutional layers with kernel size 3, stride 2 and padding 1, the dimension of the signal being (approximately) halved after each layer.At the same time, the number of channels is doubled after each layer starting from 32 up to ch out =512.An adaptive average pooling layer with output size dim avpool =8 ensures a fixed input size (ch out *dim avpool ) for a linear layer which produces the final embedding with dimension dim emb, CNN = 128. B. Embedding networks While the adaptive average pooling allows obtaining a fixed size embedding from curves with variable discretizations, CNNs do not enable discretization-invariant learning, as shown in previous studies [62]. B. Embedding networks When training a model on reflectivity curves with variable discretizations, we employ a Fourier Neural Operator (FNO) as the embedding network (3b), as theoretically motivated in the previous section on discretization-invariant learning.In this scenario the minimum and maximum values of q, as well as the number of points in the curve are also uniformly sampled for each batch from the considered ranges.The input to the FNO is the reflectivity curve together with the corresponding q values (concatenated along the channel axis).After the input is raised to a higher channel space ch FNO =128 by a pointwise linear operation, a sequence of n FNO =5 spectral blocks are applied which implement the kernel operator in Fourier space as illustrated in Figure 3b.The number of Fourier modes kept after performing the discrete Fourier transform is a hyperparameter set at n modes =16.Finally, a mean pooling over the input dimension followed by a linear layer produces the final embedding with dimension dim emb, FNO = 256. IV. RESULTS We trained neural networks according to the previously described approach for different parameterizations of the thin film SLD profile.Each of the following subsections elaborates on a network trained for data with a different parameterization: either a different number of layers (two and five) for the box model or a physics-informed special parameterization of a multilayer structure with repeating monolayers.We use the 1D CNN as the default embedding network.In the last subsection the FNO is used as the embedding network for data with variable discretization.We evaluate performance metrics on statistically significant batches of simulated data and we illustrate the applicability of our method on experimental reflectivity data when available. A. Two-layer box model This subsection shows the performance evaluation for a neural network trained on data corresponding to the two-layer parameterization of the box model, the total number of physical parameters predicted by the neural network being 8 (3 parameters per layer (thickness, roughness, SLD) plus 2 additional parameters for the substrate (roughness and SLD)).The q range of the simulated curves is [0.02, 0.15] Å−1 which aligns with the range of the test experimental data, and the resolution is 128 points.Various types of noise were applied to the simulated reflectivity curves in order to provide robustness to experimental artifacts, namely Poisson noise, q-position noise, curve shifting and curve scaling based on previous investigations [33]. A. Two-layer box model The chosen parameter ranges are [0, 500] Å for the thicknesses, [0, 60] Å for the rough- We demonstrate the applicability of our method for analyzing experimental reflectivity data using XRR curves from a previously published dataset [79], containing in situ measurements performed during the deposition of a layer of organic material of diindenoperylene (DIP) or pentacene (PEN), on top of a thin silicon oxide layer sitting on a silicon substrate, together with the ground truth manual fits of the parameters.We are able to leverage the a priori experimental knowledge about this dataset by setting narrow prior bounds around the known values of the SLD for the substrate (Si) and the bottom layer (SiO 2 ).In previous approaches [34] using this dataset, all the parameters of the substrate and SiO 2 layer were kept at predefined constant values during training and only the thickness, roughness and SLD of the top layer were predicted.Our approach is capable of also tackling this specific use case while being trained for more general cases.Figure 7 shows input experimental curves together with the neural network predictions (top row), as well as the corresponding SLD profiles (bottom row).8 shows examples of input simulated curves and predictions for the 5-layer model, together with the corresponding SLD profiles.The absolute errors between the ground truth and the predicted parameters are displayed in Figure 9.We observe that the prediction errors do not vary much depending on the specific layer in the model.While, as expected, the prediction errors for the 5-layer model are higher than the prediction errors for the 2-layer model (the difference being more pronounced for roughnesses and less pronounced for SLDs), the performance of our model is still very good on this more challenging use case. C. Complex multilayer model In this subsection, instead of the box model parameterization, we employ a physicsinformed parameterization of a complex multilayer structure, as illustrated in Figure 10. C. Complex multilayer model The physical scenario is the following: on top of a silicon/silicon oxide substrate we consider a thin film composed of repeating identical monolayers (grey curve in Figure 10), each monolayer consisting of two boxes with distinct SLDs.A sigmoid envelope modulating the SLD profile of the monolayers defines the film thickness and the roughness at the top interface (green curve in Figure 10).A second sigmoid envelope can be used to modulate the amplitude of the monolayer SLDs as a function of the displacement from the position of the first sigmoid (red curve in Figure 10).These two sigmoids allow one to model a thin film that is coherently ordered up to a certain coherent thickness and gets incoherently ordered or amorphous toward the top of the film.Such a scenario is sometimes encountered when Kiessig and Laue fringes show different periods.In addition, a layer between the substrate and the multilayer is introduced to account for the interface structure, which does not necessarily have to be identical to the multilayer period.This so-called "phase layer" (i.e. a layer that strongly influences the relative scattering phase between the substrate and the multilayer) is important as the relative phase between strong substrate reflection and a multilayer Bragg reflection can lead to very different shapes of the curve around the Bragg reflection for constructive or destructive interference.The 17 parameters describing the model together with their training ranges are displayed in Table 1.For experimental XRR curves of DIP monolayers, measured at a laboratory X-ray source, we leverage prior knowledge about this system (layer spacing, substrate SLDs, approximate SLD values for the two boxes in the monolayer) to set suitable prior bounds.Figure 11 shows input experimental curves together with the neural network predictions for the model with physics-informed parameterization.Again the prediction quality is good, demonstrating the potential of the proposed method to fit experimental data in increasingly complex scenarios such as multilayer structures featuring Bragg peaks.It is worth noting that in this case the gradient descent polishing procedure introduced in previous studies [34] can further improve the fit and it can be performed both with the 17 introduced parameters and with the full set of box model parameters, allowing the final solution to potentially evolve beyond the designed parameterization.the SLDs.Due to increased memory demands the batch size is decreased to 1024. Figure 12 shows input curves with variable number of points and q ranges, together with the neural network predictions (top row), as well as the corresponding SLD profiles (bottom row).By using a FNO as the embedding network, our approach is successfully extended to curves with variable discretizations.A disadvantage in this scenario is that the network takes longer to converge. Figure 1 . Figure 1.(a) Two SLD profiles with mirrored derivatives (b) The derivatives of the two SLD profiles (c) The corresponding reflectivity curves for the two SLD profiles are almost identical (they would be exactly identical in the kinematical approximation), despite the fact that the SLD profiles in (a) are very dissimilar. Figure 1 . III. DESIGN AND IMPLEMENTATION OF OUR METHOD A. Training methodology and neural network architecture To enable the regularization of the inverse problem by confining the regression within a sample-dependent local domain, we generate ground truth values of the parameters for training in the following manner.Firstly, for each parameter, we obtain the center (c) and the width (w) of the local domain, the center being uniformly sampled from the global domain (i.e. the parameter range) and the width being uniformly sampled from a predefined width range for that parameter.Secondly, the ground truth values of the parameters are obtained by uniform sampling within the local domain [c − w/2, c + w/2] defined by the previously sampled values, the two prior bounds being the edges of this local domain, c − w/2 and c + w/2.At each training step, we simulate a new batch of reflectivity curves from the sampled ground truth parameters using a fast, GPU-accelerated Pytorch[65] implementation of the Abelès transfer-matrix method.As a preprocessing step, we set intensities below 10 −10 which cannot be recorded in most experimental scenarios (although there are exceptions) to this chosen minimum threshold, we add noise to the curve, and we apply a logarithmic transformation followed by a linear rescaling.The prior bounds are normalized with respect to the corresponding parameter ranges and the ground truth parameters are normalized with respect to the local domain they were sampled from, such that all the inputs and outputs to the neural network are in the range [−1, 1]. Figure 2 . Figure 2. Neural network architecture and steps involved in our method.Firstly, the ground truth parameters and the prior bounds are sampled using the described procedure.An embedding of the reflectivity curves together with the prior bounds are provided as input to the MLP.The MLP consists of residual blocks with batch normalization (BN), nonlinear activation (chosen to be GELU) and linear layers. Figure 3 . Figure 3. Architecture of the embedding networks (a) 1D CNN, consisting of convolutions with kernel size 3, stride 2 and padding 1 (b) FNO, consisting of spectral blocks which implement the neural operator kernel in Fourier space. Figure 3 . nesses, and [−25, 25] 10 −6 Å−2 for the SLDs.Notably, the negative values of the SLD include specific cases of NR.The ranges of the prior bound widths are [0.01,500] Å for the thicknesses, [0.01, 60] Å for the roughnesses and [0.01, 4] 10 −6 Å−2 for the SLDs.While the prior bound widths for thicknesses and roughnesses span the whole domain of these parameter types, the maximum prior bound width for the SLDs was reduced, since this type of parameter is associated with the highest amount of prior experimental knowledge.Figure4illustrates examples of input simulated reflectivity curves for this model together with the neural network predictions (top row) as well as the ground truth and predicted SLD profiles (bottom row).Figure5shows the box plots of the absolute errors for each of the 8 predicted parameters (a.thicknesses, b. roughnesses, c.SLDs), computed over a batch of 4096 simulated curves, the ground truth parameters and prior bounds being generated as in the training procedure.We can see from the box plots that the prediction errors for thicknesses, roughnesses and SLDs are quite low considering the large parameter ranges used for training.It is important to understand how the performance of the model depends on the input prior bounds, as this informs users how much prior knowledge they should provide for an expected prediction quality.To evaluate such a dependence, we sample batches of ground truth parameters and prior bounds such that the prior bound widths are fixed for each batch.The prior bound widths are varied by multiplying the maximum bound width of one parameter type at a time (while for the other parameter types keeping the maximum bound width) by a scalar value in the range [0, 1].As shown in Figure6, we observe that the absolute errors of the thicknesses, roughnesses and SLDs decrease when the relative prior bound width for the corresponding parameter type is decreased, as expected.A relative bound width of 0 represents the trivial case when the prior bounds define the ground truth parameters exactly. Figure 4 . Figure 4. (a)-(c) Examples of input simulated reflectivity curves (blue markers) and the corresponding neural network predictions (red line) for the 2-layer model.(d)-(f) Ground truth (blue) and predicted (red) SLD profiles corresponding to the reflectivity curves in the top row.SLD profiles corresponding to the minimum (green) and maximum (orange) prior bounds used for the prediction are also shown as dotted lines. Figure 5 . Figure 5. Boxplots of the absolute errors of each predicted parameter of the 2-layer model, computed over a batch of 4096 simulated curves, with the prior bounds being uniformly sampled.The horizontal red line denotes the median, the black dot denotes the mean and the lower and upper extremities of the box plot denote the 25 th percentile and the 75 th percentile respectively. Figure 6 . Figure 6.Dependence of the mean absolute error of each parameter type (a.thickness, b. roughness, c.SLD) for the 2-layer model as a function of the prior bound width. Figure 7 . Figure 7. (a)-(c) Examples of input experimental reflectivity curves (blue markers) and the corresponding neural network predictions (red line).(d)-(f) Ground truth (blue) and predicted (red) SLD profiles corresponding to the reflectivity curves in the top row.SLD profiles corresponding to the minimum (green) and maximum (orange) prior bounds used for the prediction are also shown as dotted lines. Figure 7 . Figure Figure 8 . Figure 8. (a)-(c) Examples of input simulated reflectivity curves (blue markers) and the corresponding neural network predictions (red line) for the 5-layer model.(d)-(f) Ground truth (blue) and predicted (red) SLD profiles corresponding to the reflectivity curves in the top row.SLD profiles corresponding to the minimum (green) and maximum (orange) prior bounds used for the prediction are also shown as dotted lines. Figure 9 . Figure 9. Boxplots of the absolute errors of each predicted parameter of the 5-layer model, computed over a batch of 4096 simulated curves, with the prior bounds being uniformly sampled.The horizontal red line denotes the median, the black dot denotes the mean and the lower and upper extremities of the box plot denote the 25 th percentile and the 75 th percentile respectively. Figure 10 . 2 fraction 2 relative Figure 10.Physics-informed parameterization of the SLD profile for a thin film consisting of repeating identical monolayers on top of a substrate.The grey curve shows the base SLD profile of the monolayers, the green curve shows the SLD profile with surface roughness and the red curve shows the modulation of the SLD amplitude.The blue curve represents the final SLD profile. Figure 11 . Figure 11.(a)-(b) Examples of input experimental reflectivity curves of DIP monolayers grown on top of a silicon/silicon oxide substrate (blue markers) with corresponding neural network predictions (red lines) for the model with physics-informed parameterization.(c)-(d) Predicted SLD profiles corresponding to the reflectivity curves in the top row. Figure 12 . Figure 12. (a)-(c) Examples of input simulated reflectivity curves with variable discretizations (blue markers) and the corresponding neural network predictions (red line) for a 2-layer model with FNO embedding network.(d)-(f) Ground truth (blue) and predicted (red) SLD profiles corresponding to the reflectivity curves in the top row.SLD profiles corresponding to the minimum (green) and maximum (orange) prior bounds used for the prediction are also shown as dotted lines.

섹션 본문 58문단 · 33,272자

(제목 없음)

1Due to the lack of phase information, determining the physical parameters of multilayer thin films from measured neutron and X-ray reflectivity curves is, on a fundamental level, an underdetermined inverse problem.This so-called phase problem poses limitations on standard neural networks, constraining the range and number of considered parameters in previous machine learning solutions.To overcome this, we present an approach that utilizes prior knowledge to regularize the training process over larger parameter spaces.We demonstrate the effectiveness of our method in various scenarios, including multilayer structures with box model parameterization and a physicsinspired special parameterization of the scattering length density profile for a multilayer structure.By leveraging the input of prior knowledge, we can improve the training dynamics and address the underdetermined ("ill-posed") nature of the problem.In contrast to previous methods, our approach scales favorably when increasing the complexity of the inverse problem, working properly even for a 5-layer multilayer model and an N-layer periodic multilayer model with up to 17 open parameters.

I. INTRODUCTION

2X-ray and neutron reflectometry (XRR and NR) are well-established and indispensable experimental techniques commonly used to investigate the scattering length density (SLD) profile along the direction perpendicular to the surface of a sample such as thin films and multilayers [1][2][3][4][5].The most common way of modeling the SLD profile of a measured sample is via the box model parameterization, where the physical parameters of interest are the thickness, the roughness, and the constant SLD of each layer in a multilayer structure.Still, more complex parameterizations of the SLD profile can be employed based on preexisting physical knowledge or intuition about the investigated structure.XRR and NR have been extensively used in both in situ and ex situ studies of a large variety of systems, such as liquid and solid thin films [6][7][8][9][10][11][12][13][14][15][16], layers of polymers [17,18], lipids [19][20][21][22], self-assembled monolayers [23,24] and organic solar cells [25][26][27].In addition, polarized NR [28] can be used to study the magnetic properties of thin films, but it is important to realize that these successful uses of reflectometry usually involve some form of complementary information in the data analysis, such as typical densities or reasonable intervals for the film thickness, provided by the experimentalist.

3Reflectometry can be counted among the techniques affected by the phase problem.In the absence of complementary information, the lack of phase information introduces a degree of ambiguity when trying to reconstruct the SLD profile of the investigated sample from the measured reflectivity curve, i.e. the inverse problem is, on a fundamental level, underdetermined ("ill-posed").This intrinsic ambiguity of the scattering method is further magnified by additional ambiguity due to the limited experimental accuracy, such as instrument noise, measurement artifacts, and the finite number of measured points over the domain of the momentum transfer vector q z .In recent years, machine learning has emerged as an alternative to classical methods of analyzing surface scattering data [29], being attractive due to its very fast prediction times and the ability to be incorporated into the operating pipelines of large-scale measurement facilities.In particular, fast machine learning-based solutions are ideal for enabling an experimental feedback loop during reflectometry measurements performed in real time [30,31].While many machine learning approaches dedicated to reflectivity exist [32][33][34][35][36][37][38][39], most of them do not address the inherent ambiguity of the reflectivity data directly, instead training neural networks over specific parameter domains where the ambiguity is not prominent enough to prevent convergence.Such networks lack the flexibility to be used in more general scenarios, typically requiring to be retrained on new parameter domains for each use case.Specifically, Ref. [34], while successful within its target, only addresses the case of a layer grown on top of a silicon/silicon oxide substrate.

4In our method proposed here, we enhance the regularization of the inverse problem by including prior boundaries for the parameters as supplementary inputs to the neural network.This allows the network to be trained over wide parameter domains while the regression is being conducted over small enough subdomains defined by the prior bounds to mitigate ambiguity.During inference, the output of the network is defined not only by the measured reflectivity curve but also by the prior experimental knowledge for the considered physical scenario.Different choices of prior bounds can lead to the recovery of distinct solution branches from the larger parameter domain.

5Another limitation of existing approaches is that they require a specific discretization of the reflectivity curves, as imposed by common network architectures.While experimental curves can be interpolated to the required discretization, interpolation is prone to introduce unphysical artifacts, for example around deep minima of Kiessig fringes in NR / XRR curves.To address this limitation, we introduce the use of a neural operator for processing reflectivity curves with variable discretizations (number of points and q ranges).

6In the following, we first discuss the theoretical concepts necessary to understand our approach in Section II, after which we present the technical details of the implementation in Section III.Finally, we demonstrate the results of our method for different parameterizations of the SLD profile (two-layer box model, five-layer box model, physics-informed model with N repeating monolayer units) on both simulated and experimental reflectivity curves.

A. The phase problem

7The phase problem is a ubiquitous issue for experimental techniques utilizing the interference of waves Ae −iωt as a means of probing the physical properties of materials, caused by the fact that detectors cannot record the phase of the signal, but only its intensity |A| 2 [40].This loss of information introduces a degree of ambiguity when trying to reconstruct the physical quantities of interest from the measured signal.It is well-known that neutron and X-ray reflectometry are among the techniques affected by the phase problem [41], which precludes an analytical solution via the Gel'fand-Levitan-Marchenko [42] inverse scattering equation.Some approaches for experimentally tackling the phase problem of neutron and X-ray reflectometry have been developed, such as the reference layer method [43] and the Lloyd mirage technique [44], but they have certain practical limitations.Of particular interest is the use of magnetic reference layers [45] in polarized neutron reflectometry where the SLD of the reference layer depends on the polarization of the incident neutrons.Three distinct measurements for up, down, and non-polarized neutron beams then allow for the determination of the phase.Also for NR, the amount of structural detail extracted from reflectivity data can be maximized by flexibly varying the SLD of specific structures within the sample via isomorphic isotropic substitution [46], such as the replacement of protium with deuterium (selective deuteration) in the hydrocarbon chains of lipid bilayers [47].Alternatively, the degree of ambiguity can be diminished when measuring a series of reflectivity curves for a sample with evolving structure (e.g. during film deposition).Notably, such theoretical ambiguity is in practice further accentuated by experimental sources of error (noise, finite instrumental resolution, artifacts) and the discrete nature of the measurement process, the scattered intensity being recorded over a finite range of the momentum transfer q z at a finite number of points.

8A consequence of the phase problem is the underdetermined ("ill-posed") nature of the parameter recovery from the measured data, different SLD profiles corresponding to equivalent reflectivity curves.When taking into account multiple scattering at the interfaces, as described by Parratt's recursive formalism [48] or Abelès transfer-matrix method [49], some information about the phase can be recovered in the low q z region [50], although the difference between reflectivity curves can still become vanishingly small [51], especially when compounded with systematic measurement errors of the total reflection edge.

9In the following, we briefly summarize a theoretical derivation of how such SLD profiles can be identified in the mathematically simpler kinematical approximation, which neglects multiple scattering at the sample interfaces so that the calculation remains analytical.In the kinematical approximation, the scattered intensity is proportional to the square of the total scattering amplitude:

10where R F (q z ) denotes the Fresnel reflectivity, ρ(z) is the SLD profile along the perpendicular direction z to the sample and ρ s is the SLD of the substrate.

11For the commonly used box model with interfacial roughness parametrized via Névot-

12Croce factor [52], an SLD profile can be written as a sum of the error functions:

13where erf(z) is the error function, N is the number of interfaces, z i the position of the ith interface, σ i is the roughness of the ith interface and ∆ρ i is the SLD difference between interfaces i and i + 1.

14By substituting Equation (2) into Equation (1), we can explicitly calculate the Fourier transform:

15FT

16Finally, we obtain a decomposition of the scattered intensity into the sum of a constant term and several sinusoidal components with amplitudes ∆ρ i ∆ρ j e −q 2 z (σ 2 i +σ 2 j )/2 and frequencies ∆z ij :

17By solving for all combinations of ∆ρ i and z i with the same scattered intensity, one can identify classes of the theoretical identical solutions in the kinematical approximation, such as profiles with mirrored derivatives as reported in earlier studies [51,53,54] (shown in Figure 1).Notably, restricting the shape of the considered SLD profiles to the box model with a fixed number of layers already imposes a strong regularization on the space of admissible solutions.

B. Solving ill-posed inverse problems using neural networks

18If a forward process f (x) = y maps the hidden parameters x describing a physical system to an observable signal y, the inverse problem can be described as retrieving the physical parameters from a possibly noise-corrupted measurement of the signal [55].When the inverse problem f −1 (y) = x represents a one-to-one mapping, neural networks can be straightforwardly trained to approximate the inverse function.In contrast, a many-to-one mapping of the forward process leads to an underdetermined, ill-posed inverse problem, and the corresponding one-to-many inverse mapping f −1 (y) cannot be approximated via regression.Attempting to train a neural network as a point estimator over the domain containing the non-uniqueness would lead to incorrect predictions corresponding to an average of distinct solution branches.Different machine learning approaches exist for addressing ill-posed inverse problems [56][57][58], which generally depend on the specific application.

19The present study proposes a novel approach for tackling ill-posed inverse problems, which takes advantage of the a priori knowledge of the experimentalist.This approach is inspired by conventional reflectometry analysis and combines the high speed of neural networks with the flexibility of conventional fitting procedures.

20Typically, some physical parameters of the studied samples are known to the experimentalists with narrow uncertainty ranges, such as densities of the used materials, thicknesses of the deposited layers, etc.In conventional fitting procedures, this information is used to set upper and lower bounds on each sample parameter within which solutions are allowed, the bounds being narrower for layer SLDs and wider for layer thicknesses and roughnesses.Our implementation allows us to provide such prior knowledge as input to the neural network in the form of the two prior bounds for each parameter, the regression problem being constrained to the local domain defined by the prior bounds, thus avoiding the non-uniqueness associated with the full parameter domain.As long as the prior bounds are narrow enough not to include multiple solution branches, the inverse mapping is well-determined and can be approximated by a neural network.In practice, even a small amount of prior knowledge can be enough to rule out ambiguity in reflectometry analysis.We note that narrow priors do not guarantee a single solution, as multiple solutions might occur close to each other.

21However, our general assumption shared by experimentalists who analyze reflectometry data via conventional fitting is that for a large set of cases, the prior information is sufficient to isolate a single solution.

22Our method can be envisioned as simultaneously learning the inverse problem on all the possible subdomains (or a subset of subdomains) of the full parameter domain, using a single neural network.Thus, some parallels can be drawn to approaches such as [59] where a Beta Variational Autoencoder (β-VAE) is trained simultaneously for all values of the β coefficient using a single neural network (a task which would typically require retraining for each β value).

C. Discretization-invariant learning

23Neural networks can only learn mappings between finite-dimensional vector spaces, some architectures such as the multilayer perceptron requiring a fixed discretization (range and resolution) of the input.A new paradigm is represented by neural operators, which can learn mappings between infinite-dimensional function spaces, allowing discretizationinvariant learning [60,61].For an input function v 0 (x) defined over a domain D, a neural operator is constructed as a series of transformations v t → v t+1 :

24where W is a linear transformation, σ is a non-linear activation function and K is a non-local integral operator with learnable kernel k:

25The Fourier Neural Operator (FNO) [62] represents an efficient and expressive implementation of a neural operator which imposes k(x, y) = k(x − y) and leverages the convolution theorem.It parameterizes the kernel operator directly in Fourier space as:

26where F and F −1 represent the direct and, respectively, the inverse discrete Fourier transform and T is a learnable linear transformation.

27Neural operators have been predominantly used in the fields of differential equation solving and physics-informed learning [63,64].Here, we use a neural operator to learn a vector embedding for reflectivity curves with variable discretizations (q ranges and numbers of points) for our regression inverse problem.Such an approach is beneficial as it confers a higher degree of flexibility to the trained model, enabling the use of the full measured signal without relying on interpolation.As shown in Figure 2, an embedding of the reflectivity curve, together with the prior bounds are input to a fully connected neural network (also known as multilayer perceptron or MLP [66]), the loss being computed as the mean-squared error between the neural network output and the ground truth parameters (normalized with respect to the prior bounds).

28Notably, obtaining the final prediction requires reversing the normalization of the neural network output with respect to the prior bounds.The architecture of our model, as well as the sampling procedure, are shown in Figure 2 (parameter scaling omitted for simplicity).

29The MLP consists of a sequence of n blocks =6 residual blocks inspired by the ResNet [67] architecture design, each block containing 2 hidden layers of width dim hidden =1024 neurons.

30The use of skip connections has the role of facilitating gradient propagation and preventing singularities [68].Batch normalization [69] is known to improve the convergence of neural networks, so we use it to normalize the intermediate features before activation.Since the type of activation function can have a significant impact on the performance of a neural network, we explored the use of several popular activation functions (ReLU [70], GELU [71],

31SELU [72], Mish [73]), choosing GELU as the default.

32We trained our models using the AdamW [74] optimizer, a version of Adam [75] with decoupled weight decay regularization.The weight decay coefficient is kept at the default value of 0.01 .The initial learning rate of 0.0001 was decreased by a factor of 10 on plateau of the loss.We used the largest batch size that fits in our GPU memory (4096) to ensure stable gradients.

B. Embedding networks

33Going beyond previous publications, where a reflectivity curve is directly provided as input to the MLP, we first use a network that produces a latent embedding of the reflectivity curve which is subsequently fed to the MLP.

34When training a model on reflectivity curves with fixed discretization, we use a 1D

35CNN [76] as the embedding network, which is parameter-efficient and better leverages the sequential characteristics of the data.While less popular than their 2D counterparts, 1D

36CNNs have been successfully used in a variety of tasks involving 1D signals such as automatic speech recognition [77] and time-series prediction [78].The 1D CNN, as shown in Figure 3a, consists of a sequence of convolutional layers with kernel size 3, stride 2 and padding 1, the dimension of the signal being (approximately) halved after each layer.At the same time, the number of channels is doubled after each layer starting from 32 up to ch out =512.An adaptive average pooling layer with output size dim avpool =8 ensures a fixed input size (ch out *dim avpool ) for a linear layer which produces the final embedding with dimension dim emb, CNN = 128.

37While the adaptive average pooling allows obtaining a fixed size embedding from curves with variable discretizations, CNNs do not enable discretization-invariant learning, as shown in previous studies [62].

38When training a model on reflectivity curves with variable discretizations, we employ a Fourier Neural Operator (FNO) as the embedding network (3b), as theoretically motivated in the previous section on discretization-invariant learning.In this scenario the minimum and maximum values of q, as well as the number of points in the curve are also uniformly sampled for each batch from the considered ranges.The input to the FNO is the reflectivity curve together with the corresponding q values (concatenated along the channel axis).After the input is raised to a higher channel space ch FNO =128 by a pointwise linear operation, a sequence of n FNO =5 spectral blocks are applied which implement the kernel operator in Fourier space as illustrated in Figure 3b.The number of Fourier modes kept after performing the discrete Fourier transform is a hyperparameter set at n modes =16.Finally, a mean pooling over the input dimension followed by a linear layer produces the final embedding with dimension dim emb, FNO = 256.

IV. RESULTS

39We trained neural networks according to the previously described approach for different parameterizations of the thin film SLD profile.Each of the following subsections elaborates on a network trained for data with a different parameterization: either a different number of layers (two and five) for the box model or a physics-informed special parameterization of a multilayer structure with repeating monolayers.We use the 1D CNN as the default embedding network.In the last subsection the FNO is used as the embedding network for data with variable discretization.We evaluate performance metrics on statistically significant batches of simulated data and we illustrate the applicability of our method on experimental reflectivity data when available.

A. Two-layer box model

40This subsection shows the performance evaluation for a neural network trained on data corresponding to the two-layer parameterization of the box model, the total number of physical parameters predicted by the neural network being 8 (3 parameters per layer (thickness, roughness, SLD) plus 2 additional parameters for the substrate (roughness and SLD)).The q range of the simulated curves is [0.02, 0.15] Å−1 which aligns with the range of the test experimental data, and the resolution is 128 points.Various types of noise were applied to the simulated reflectivity curves in order to provide robustness to experimental artifacts, namely Poisson noise, q-position noise, curve shifting and curve scaling based on previous investigations [33].

41The chosen parameter ranges are [0, 500] Å for the thicknesses, [0, 60] Å for the rough- We demonstrate the applicability of our method for analyzing experimental reflectivity data using XRR curves from a previously published dataset [79], containing in situ measurements performed during the deposition of a layer of organic material of diindenoperylene (DIP) or pentacene (PEN), on top of a thin silicon oxide layer sitting on a silicon substrate, together with the ground truth manual fits of the parameters.We are able to leverage the a priori experimental knowledge about this dataset by setting narrow prior bounds around the known values of the SLD for the substrate (Si) and the bottom layer (SiO 2 ).In previous approaches [34] using this dataset, all the parameters of the substrate and SiO 2 layer were kept at predefined constant values during training and only the thickness, roughness and SLD of the top layer were predicted.Our approach is capable of also tackling this specific use case while being trained for more general cases.Figure 7 shows input experimental curves together with the neural network predictions (top row), as well as the corresponding SLD profiles (bottom row).8 shows examples of input simulated curves and predictions for the 5-layer model, together with the corresponding SLD profiles.The absolute errors between the ground truth and the predicted parameters are displayed in Figure 9.We observe that the prediction errors do not vary much depending on the specific layer in the model.While, as expected, the prediction errors for the 5-layer model are higher than the prediction errors for the 2-layer model (the difference being more pronounced for roughnesses and less pronounced for SLDs), the performance of our model is still very good on this more challenging use case.

C. Complex multilayer model

42In this subsection, instead of the box model parameterization, we employ a physicsinformed parameterization of a complex multilayer structure, as illustrated in Figure 10.

43The physical scenario is the following: on top of a silicon/silicon oxide substrate we consider a thin film composed of repeating identical monolayers (grey curve in Figure 10), each monolayer consisting of two boxes with distinct SLDs.A sigmoid envelope modulating the SLD profile of the monolayers defines the film thickness and the roughness at the top interface (green curve in Figure 10).A second sigmoid envelope can be used to modulate the amplitude of the monolayer SLDs as a function of the displacement from the position of the first sigmoid (red curve in Figure 10).These two sigmoids allow one to model a thin film that is coherently ordered up to a certain coherent thickness and gets incoherently ordered or amorphous toward the top of the film.Such a scenario is sometimes encountered when Kiessig and Laue fringes show different periods.In addition, a layer between the substrate and the multilayer is introduced to account for the interface structure, which does not necessarily have to be identical to the multilayer period.This so-called "phase layer" (i.e. a layer that strongly influences the relative scattering phase between the substrate and the multilayer) is important as the relative phase between strong substrate reflection and a multilayer Bragg reflection can lead to very different shapes of the curve around the Bragg reflection for constructive or destructive interference.The 17 parameters describing the model together with their training ranges are displayed in Table 1.For experimental XRR curves of DIP monolayers, measured at a laboratory X-ray source, we leverage prior knowledge about this system (layer spacing, substrate SLDs, approximate SLD values for the two boxes in the monolayer) to set suitable prior bounds.Figure 11 shows input experimental curves together with the neural network predictions for the model with physics-informed parameterization.Again the prediction quality is good, demonstrating the potential of the proposed method to fit experimental data in increasingly complex scenarios such as multilayer structures featuring Bragg peaks.It is worth noting that in this case the gradient descent polishing procedure introduced in previous studies [34] can further improve the fit and it can be performed both with the 17 introduced parameters and with the full set of box model parameters, allowing the final solution to potentially evolve beyond the designed parameterization.the SLDs.Due to increased memory demands the batch size is decreased to 1024. Figure 12 shows input curves with variable number of points and q ranges, together with the neural network predictions (top row), as well as the corresponding SLD profiles (bottom row).By using a FNO as the embedding network, our approach is successfully extended to curves with variable discretizations.A disadvantage in this scenario is that the network takes longer to converge.

Figure 1 .

44Figure 1.(a) Two SLD profiles with mirrored derivatives (b) The derivatives of the two SLD profiles (c) The corresponding reflectivity curves for the two SLD profiles are almost identical (they would be exactly identical in the kinematical approximation), despite the fact that the SLD profiles in (a) are very dissimilar.

45III. DESIGN AND IMPLEMENTATION OF OUR METHOD A. Training methodology and neural network architecture To enable the regularization of the inverse problem by confining the regression within a sample-dependent local domain, we generate ground truth values of the parameters for training in the following manner.Firstly, for each parameter, we obtain the center (c) and the width (w) of the local domain, the center being uniformly sampled from the global domain (i.e. the parameter range) and the width being uniformly sampled from a predefined width range for that parameter.Secondly, the ground truth values of the parameters are obtained by uniform sampling within the local domain [c − w/2, c + w/2] defined by the previously sampled values, the two prior bounds being the edges of this local domain, c − w/2 and c + w/2.At each training step, we simulate a new batch of reflectivity curves from the sampled ground truth parameters using a fast, GPU-accelerated Pytorch[65] implementation of the Abelès transfer-matrix method.As a preprocessing step, we set intensities below 10 −10 which cannot be recorded in most experimental scenarios (although there are exceptions) to this chosen minimum threshold, we add noise to the curve, and we apply a logarithmic transformation followed by a linear rescaling.The prior bounds are normalized with respect to the corresponding parameter ranges and the ground truth parameters are normalized with respect to the local domain they were sampled from, such that all the inputs and outputs to the neural network are in the range [−1, 1].

Figure 2 .

46Figure 2. Neural network architecture and steps involved in our method.Firstly, the ground truth parameters and the prior bounds are sampled using the described procedure.An embedding of the reflectivity curves together with the prior bounds are provided as input to the MLP.The MLP consists of residual blocks with batch normalization (BN), nonlinear activation (chosen to be GELU) and linear layers.

Figure 3 .

47Figure 3. Architecture of the embedding networks (a) 1D CNN, consisting of convolutions with kernel size 3, stride 2 and padding 1 (b) FNO, consisting of spectral blocks which implement the neural operator kernel in Fourier space.

48nesses, and [−25, 25] 10 −6 Å−2 for the SLDs.Notably, the negative values of the SLD include specific cases of NR.The ranges of the prior bound widths are [0.01,500] Å for the thicknesses, [0.01, 60] Å for the roughnesses and [0.01, 4] 10 −6 Å−2 for the SLDs.While the prior bound widths for thicknesses and roughnesses span the whole domain of these parameter types, the maximum prior bound width for the SLDs was reduced, since this type of parameter is associated with the highest amount of prior experimental knowledge.Figure4illustrates examples of input simulated reflectivity curves for this model together with the neural network predictions (top row) as well as the ground truth and predicted SLD profiles (bottom row).Figure5shows the box plots of the absolute errors for each of the 8 predicted parameters (a.thicknesses, b. roughnesses, c.SLDs), computed over a batch of 4096 simulated curves, the ground truth parameters and prior bounds being generated as in the training procedure.We can see from the box plots that the prediction errors for thicknesses, roughnesses and SLDs are quite low considering the large parameter ranges used for training.It is important to understand how the performance of the model depends on the input prior bounds, as this informs users how much prior knowledge they should provide for an expected prediction quality.To evaluate such a dependence, we sample batches of ground truth parameters and prior bounds such that the prior bound widths are fixed for each batch.The prior bound widths are varied by multiplying the maximum bound width of one parameter type at a time (while for the other parameter types keeping the maximum bound width) by a scalar value in the range [0, 1].As shown in Figure6, we observe that the absolute errors of the thicknesses, roughnesses and SLDs decrease when the relative prior bound width for the corresponding parameter type is decreased, as expected.A relative bound width of 0 represents the trivial case when the prior bounds define the ground truth parameters exactly.

Figure 4 .

49Figure 4. (a)-(c) Examples of input simulated reflectivity curves (blue markers) and the corresponding neural network predictions (red line) for the 2-layer model.(d)-(f) Ground truth (blue) and predicted (red) SLD profiles corresponding to the reflectivity curves in the top row.SLD profiles corresponding to the minimum (green) and maximum (orange) prior bounds used for the prediction are also shown as dotted lines.

Figure 5 .

50Figure 5. Boxplots of the absolute errors of each predicted parameter of the 2-layer model, computed over a batch of 4096 simulated curves, with the prior bounds being uniformly sampled.The horizontal red line denotes the median, the black dot denotes the mean and the lower and upper extremities of the box plot denote the 25 th percentile and the 75 th percentile respectively.

Figure 6 .

51Figure 6.Dependence of the mean absolute error of each parameter type (a.thickness, b. roughness, c.SLD) for the 2-layer model as a function of the prior bound width.

Figure 7 .

52Figure 7. (a)-(c) Examples of input experimental reflectivity curves (blue markers) and the corresponding neural network predictions (red line).(d)-(f) Ground truth (blue) and predicted (red) SLD profiles corresponding to the reflectivity curves in the top row.SLD profiles corresponding to the minimum (green) and maximum (orange) prior bounds used for the prediction are also shown as dotted lines.

53Figure

Figure 8 .

54Figure 8. (a)-(c) Examples of input simulated reflectivity curves (blue markers) and the corresponding neural network predictions (red line) for the 5-layer model.(d)-(f) Ground truth (blue) and predicted (red) SLD profiles corresponding to the reflectivity curves in the top row.SLD profiles corresponding to the minimum (green) and maximum (orange) prior bounds used for the prediction are also shown as dotted lines.

Figure 9 .

55Figure 9. Boxplots of the absolute errors of each predicted parameter of the 5-layer model, computed over a batch of 4096 simulated curves, with the prior bounds being uniformly sampled.The horizontal red line denotes the median, the black dot denotes the mean and the lower and upper extremities of the box plot denote the 25 th percentile and the 75 th percentile respectively.

Figure 10 . 2 fraction 2 relative

56Figure 10.Physics-informed parameterization of the SLD profile for a thin film consisting of repeating identical monolayers on top of a substrate.The grey curve shows the base SLD profile of the monolayers, the green curve shows the SLD profile with surface roughness and the red curve shows the modulation of the SLD amplitude.The blue curve represents the final SLD profile.

Figure 11 .

57Figure 11.(a)-(b) Examples of input experimental reflectivity curves of DIP monolayers grown on top of a silicon/silicon oxide substrate (blue markers) with corresponding neural network predictions (red lines) for the model with physics-informed parameterization.(c)-(d) Predicted SLD profiles corresponding to the reflectivity curves in the top row.

Figure 12 .

58Figure 12. (a)-(c) Examples of input simulated reflectivity curves with variable discretizations (blue markers) and the corresponding neural network predictions (red line) for a 2-layer model with FNO embedding network.(d)-(f) Ground truth (blue) and predicted (red) SLD profiles corresponding to the reflectivity curves in the top row.SLD profiles corresponding to the minimum (green) and maximum (orange) prior bounds used for the prediction are also shown as dotted lines.

참고문헌 66건

  1. X-ray and Neutron Reflectivity Lecture notes in physics · Springer Science+Business Media · 2008 10.1007/978-3-540-88588-7
  2. Lipid Headgroup Discrimination by Antimicrobial Peptide LL-37: Insight into Mechanism of Action Biophysical Journal · Elsevier BV · 2005 10.1529/biophysj.105.067595
  3. Physical analysis of the inverse problem of X-ray reflectometry Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 2003 10.1016/s0168-9002(03)01512-2
  4. Neutron scattering by rough surfaces at grazing incidence Physical review. B, Condensed matter · American Physical Society · 1992 10.1103/physrevb.45.602
  5. Phase problem in optics Journal of Soviet Laser Research · Springer Nature · 1990 10.1007/bf01120784
  6. Quantitative modeling of<i>in situ</i>x-ray reflectivity during organic molecule thin film growth Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.075479
  7. Application of polarized neutron in determination of the phase in neutron reflectometry Physica B Condensed Matter · Elsevier BV · 2004 10.1016/j.physb.2004.10.038
  8. Real-Time Observation of Structural and Orientational Transitions during Growth of Organic Thin Films Physical Review Letters · American Physical Society · 2006 10.1103/physrevlett.96.125504
  9. The Carbon Dioxide−Water Interface at Conditions of Gas Hydrate Formation Journal of the American Chemical Society · American Chemical Society · 2008 10.1021/ja806211r
  10. Cognitron: A self-organizing multilayered neural network Biological Cybernetics · Springer Science+Business Media · 1975 10.1007/bf00342633
  11. La théorie générale des couches minces Journal de Physique · EDP Sciences · 1950 10.1051/jphysrad:01950001107030700
  12. Caractérisation des surfaces par réflexion rasante de rayons X. Application à l'étude du polissage de quelques verres silicates Revue de Physique Appliquée · EDP Sciences · 1980 10.1051/rphysap:01980001503076100
  13. X-ray or neutron reflectivity: Limitations in the determination of interfacial profiles Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1994 10.1103/physreve.50.2369
  14. Novel versatile X-ray reflectometer for angle and energy dispersive characterization of liquid and solid surfaces and interfaces Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 1994 10.1016/0168-9002(94)91188-6
  15. Observation of thickness quantization in liquid films confined to molecular dimension EPL (Europhysics Letters) · Institute of Physics · 2002 10.1209/epl/i2002-00274-6
  16. Phase determination and inversion in specular neutron reflectometry Physica B Condensed Matter · Elsevier BV · 1998 10.1016/s0921-4526(98)00260-9
  17. Refractive-index-profile determinations by using Lloyd’s mirage Applied Optics · Optica Publishing Group · 1994 10.1364/ao.33.001806
  18. A novel experimental procedure for removing ambiguity from the interpretation of neutron and x-ray reflectivity measurements: ‘‘Speckle holography’’ Journal of Applied Physics · American Institute of Physics · 1991 10.1063/1.349629
  19. Reversible negative thermal expansion of polymer films Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 2002 10.1103/physreve.66.061801
  20. Theoretical foundation of X-ray and neutron reflectometry Physics Reports · Elsevier BV · 1995 10.1016/0370-1573(94)00110-o
  21. Model-independent method for reconstruction of scattering-length-density profiles using neutron or x-ray reflectivity data Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1993 10.1103/physreve.47.3174
  22. Polarized neutron reflectometry Physica B Condensed Matter · Elsevier BV · 1991 10.1016/0921-4526(91)90037-f
  23. Neutron reflectivity and grazing angle diffraction Journal of Research of the National Institute of Standards and Technology · The National Institute of Standards and Technology · 1993 10.6028/jres.098.004
  24. Surface Studies of Solids by Total Reflection of X-Rays Physical Review · American Institute of Physics · 1954 10.1103/physrev.95.359
  25. A portable ultrahigh vacuum organic molecular beam deposition system for <i>in situ</i> x-ray diffraction measurements Review of Scientific Instruments · American Institute of Physics · 2001 10.1063/1.1336822
  26. Multilayer perceptrons for classification and regression Neurocomputing · Elsevier BV · 1991 10.1016/0925-2312(91)90023-5
  27. Characterization of Si/Ge interfaces by diffuse X-ray scattering in the region of total external reflection Physica B Condensed Matter · Elsevier BV · 1996 10.1016/0921-4526(95)00903-5
  28. The structure of self-assembled monolayers of alkylsiloxanes on silicon: a comparison of results from ellipsometry and low-angle x-ray reflectivity Journal of the American Chemical Society · American Chemical Society · 1989 10.1021/ja00197a054
  29. Neutron reflectivity at the solid/liquid interface: examples of applications in biophysics Journal of Physics Condensed Matter · IOP Publishing · 2001 10.1088/0953-8984/13/21/322
  30. Thermally induced failure mechanisms of organic light emitting device structures probed by X-ray specular reflectivity Chemical Physics Letters · Elsevier BV · 1997 10.1016/s0009-2614(97)00941-x
  31. Capillary waves on the surface of simple liquids measured by x-ray reflectivity Physical review. A, General physics · American Institute of Physics · 1988 10.1103/physreva.38.2457
  32. X-ray specular reflection studies of silicon coated by organic monolayers (alkylsiloxanes) Physical review. B, Condensed matter · American Physical Society · 1990 10.1103/physrevb.41.1111
  33. Diffuse X-Ray and Neutron Reflection from Surfaces and Interfaces Kluwer Academic Publishers eBooks · Springer Science+Business Media · 2006 10.1007/0-306-47077-2_19
  34. Examining Protein–Lipid Complexes Using Neutron Scattering Methods in molecular biology · Springer Science+Business Media · 2012 10.1007/978-1-62703-275-9_7
  35. Structure of lipid multilayers<i>via</i>drop casting of aqueous liposome dispersions Soft Matter · Royal Society of Chemistry · 2016 10.1039/c6sm00369a
  36. Growth of Competing Crystal Phases of α-Sexithiophene Studied by Real-Time <i>in Situ</i> X-ray Scattering The Journal of Physical Chemistry C · American Chemical Society · 2014 10.1021/jp510321k
  37. X-ray structural investigations of fusion intermediates: Lipid model systems and beyond Seminars in Cell and Developmental Biology · Elsevier BV · 2016 10.1016/j.semcdb.2016.06.014
  38. Deuteration in Biological Neutron Reflectometry Methods in enzymology on CD-ROM/Methods in enzymology · Academic Press · 2015 10.1016/bs.mie.2015.05.019
  39. Islands, Mounds and Atoms Springer series in surface sciences · Springer Nature · 2004 10.1007/978-3-642-18672-1
  40. Shape-based image reconstruction using linearized deformations Inverse Problems · IOP Publishing · 2016 10.1088/1361-6420/aa55af
  41. Simultaneous neutron reflectometry and infrared reflection absorption spectroscopy (IRRAS) study of mixed monolayer reactions at the air–water interface RSC Advances · Royal Society of Chemistry · 2017 10.1039/c7ra04900e
  42. X-ray reflectivity from curved liquid interfaces Journal of Synchrotron Radiation · Wiley · 2018 10.1107/s1600577517018057
  43. Optimization of reflectometry experiments using information theory Journal of Applied Crystallography · Wiley · 2019 10.1107/s1600576718017016
  44. <i>refnx</i>: neutron and X-ray reflectometry analysis in Python Journal of Applied Crystallography · Wiley · 2019 10.1107/s1600576718017296
  45. Fast fitting of reflectivity data of growing thin films using neural networks Journal of Applied Crystallography · Wiley · 2019 10.1107/s1600576719013311
  46. Interfacial Density Profiles of Polar and Nonpolar Liquids at Hydrophobic Surfaces Langmuir · American Chemical Society · 2020 10.1021/acs.langmuir.9b03785
  47. NETT: solving inverse problems with deep neural networks Inverse Problems · IOP Publishing · 2020 10.1088/1361-6420/ab6d57
  48. 1D convolutional neural networks and applications: A survey Qatar University QSpace (Qatar University) · Qatar University · 2022 10.1016/j.ymssp.2020.107398
  49. Solving ill-posed inverse problems using iterative deep neural networks Inverse Problems · IOP Publishing · 2017 10.1088/1361-6420/aa9581
  50. Towards automated analysis for neutron reflectivity Machine Learning Science and Technology · IOP Publishing · 2021 10.1088/2632-2153/abe7b5
  51. Machine learning for neutron reflectometry data analysis of two-layer thin films <sup>*</sup> Machine Learning Science and Technology · IOP Publishing · 2021 10.1088/2632-2153/abf257
  52. Neural network analysis of neutron and x-ray reflectivity data: pathological cases, performance and perspectives Machine Learning Science and Technology · IOP Publishing · 2021 10.1088/2632-2153/abf9b1
  53. Switchable <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si32.svg"><mml:mrow><mml:mi>β</mml:mi></mml:mrow></mml:math>-lactoglobulin (BLG) adsorption on protein resistant oligo (ethylene glycol) (OEG) self-assembled monolayers (SAMs) Journal of Colloid and Interface Science · Elsevier BV · 2021 10.1016/j.jcis.2021.08.018
  54. U-FNO—An enhanced Fourier neural operator-based deep-learning model for multiphase flow Advances in Water Resources · Elsevier BV · 2022 10.1016/j.advwatres.2022.104180
  55. Elucidating proximity magnetism through polarized neutron reflectometry and machine learning Applied Physics Reviews · American Institute of Physics · 2022 10.1063/5.0078814
  56. Probabilistic parameter estimation using a Gaussian mixture density network: application to X-ray reflectivity data curve fitting Journal of Applied Crystallography · Wiley · 2021 10.1107/s1600576721009043
  57. Deep learning approach for an interface structure analysis with a large statistical noise in neutron reflectometry Scientific Reports · Nature Portfolio · 2021 10.1038/s41598-021-02085-6
  58. X-Ray Scattering from Soft-Matter Thin Films Springer tracts in modern physics · Springer Science+Business Media · 1999 10.1007/bfb0112834
  59. Neural network analysis of neutron and X-ray reflectivity data: automated analysis using <i>mlreflect</i>, experimental errors and feature engineering Journal of Applied Crystallography · Wiley · 2022 10.1107/s1600576722002230
  60. Theoretical Concepts of X-Ray Nanoscale Analysis Springer series in materials science · Springer Science+Business Media · 2013 10.1007/978-3-642-38177-5
  61. Bayesian Data Analysis Chapman and Hall/CRC eBooks · Informa · 2013 10.1201/b16018
  62. <i>GenX 3</i>: the latest generation of an established tool Journal of Applied Crystallography · Wiley · 2022 10.1107/s1600576722006653
  63. Learning two-phase microstructure evolution using neural operators and autoencoder architectures npj Computational Materials · Nature Portfolio · 2022 10.1038/s41524-022-00876-7
  64. The Short-Term Prediction of Length of Day Using 1D Convolutional Neural Networks (1D CNN) Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22239517
  65. Machine learning for scattering data: strategies, perspectives and applications to surface scattering Journal of Applied Crystallography · Wiley · 2023 10.1107/s1600576722011566
  66. Closing the loop: autonomous experiments enabled by machine-learning-based online data analysis in synchrotron beamline environments Journal of Synchrotron Radiation · Wiley · 2023 10.1107/s160057752300749x