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

Uncertainty-aware mixed-variable machine learning for materials design

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(10) 아라미드(6) PEM(고분자전해질막)

기본 정보

저자
  1. Hengrui Zhang — Department of Mechanical Engineering, Northwestern University, Evanston, IL, 60208, USA
  2. Wei Chen — Department of Mechanical Engineering, Northwestern University, Evanston, IL, 60208, USA
  3. Akshay Iyer — Department of Mechanical Engineering, Northwestern University, Evanston, IL, 60208, USA
  4. Daniel W. Apley — Department of Industrial Engineering and Management Sciences, Northwestern University, Evanston, IL, 60208, USA
  5. Wei Chen — Department of Mechanical Engineering, Northwestern University, Evanston, IL, 60208, USA
DOI
10.1038/s41598-022-23431-2
저널
Scientific Reports
발행년도
2022
발행기관
Nature Portfolio
피인용수
16
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-022-23431-2
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4309403833

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(21) 에폭시수지, (10) 아라미드, (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
Bayesian optimization, materials design, mixed-variable machine learning, uncertainty quantification, data-driven design
판단 근거
이 논문은 신소재 설계 시 수치형과 범주형 변수를 동시에 다루는 베이지안 최적화(BO) 및 머신러닝 모델의 성능을 비교 연구한 것으로, 특정 제품을 다루지는 않으나 소재 개발 공정의 효율을 높이는 방법론을 제시합니다.
R&D 활용 포인트
코오롱인더스트리의 컴파운드 배합(23), 에폭시/페놀 수지 합성(21), 아라미드/연료전지 소재(10, 6) 등 복잡한 화학 조성 및 공정 조건 최적화 연구에 데이터 기반 설계 방법론으로 활용 가능합니다.
평가 입력
본문 61,433자 중 30,032자 발췌

초록

Data-driven design shows the promise of accelerating materials discovery but is challenging due to the prohibitive cost of searching the vast design space of chemistry, structure, and synthesis methods. Bayesian Optimization (BO) employs uncertainty-aware machine learning models to select promising designs to evaluate, hence reducing the cost. However, BO with mixed numerical and categorical variables, which is of particular interest in materials design, has not been well studied. In this work, we survey frequentist and Bayesian approaches to uncertainty quantification of machine learning with mixed variables. We then conduct a systematic comparative study of their performances in BO using a popular representative model from each group, the random forest-based Lolo model (frequentist) and the latent variable Gaussian process model (Bayesian). We examine the efficacy of the two models in the optimization of mathematical functions, as well as properties of structural and functional materials, where we observe performance differences as related to problem dimensionality and complexity. By investigating the machine learning models' predictive and uncertainty estimation capabilities, we provide interpretations of the observed performance differences. Our results provide practical guidance on choosing between frequentist and Bayesian uncertainty-aware machine learning models for mixed-variable BO in materials design.

본문 61,433자

본문 펼치기
## OPEN # Uncertainty‑aware mixed‑variable machine learning for materials design Hengrui Zhang <sup>1</sup> , Wei (Wayne) Chen <sup>1</sup> , Akshay Iyer <sup>1</sup> , Daniel W. Apley <sup>2</sup> & Wei Chen <sup>1</sup> <sup>*</sup> Data-driven design shows the promise of accelerating materials discovery but is challenging due to the prohibitive cost of searching the vast design space of chemistry, structure, and synthesis methods. Bayesian optimization (BO) employs uncertainty-aware machine learning models to select promising designs to evaluate, hence reducing the cost. However, BO with mixed numerical and categorical variables, which is of particular interest in materials design, has not been well studied. In this work, we survey frequentist and Bayesian approaches to uncertainty quantification of machine learning with mixed variables. We then conduct a systematic comparative study of their performances in BO using a popular representative model from each group, the random forest-based Lolo model (frequentist) and the latent variable Gaussian process model (Bayesian). We examine the efficacy of the two models in the optimization of mathematical functions, as well as properties of structural and functional materials, where we observe performance differences as related to problem dimensionality and complexity. By investigating the machine learning models’ predictive and uncertainty estimation capabilities, we provide interpretations of the observed performance differences. Our results provide practical guidance on choosing between frequentist and Bayesian uncertainty-aware machine learning models for mixed-variable BO in materials design. The goal of materials design is to identify materials with desired properties and performance that meet the demands of engineering applications, from among the vast composition–structure design space, which is challenging due to the highly nonlinear underlying physics and the combinatorial nature of the design space. The traditional trial-and-error approach usually involves many experiments or computations for the evaluation of materials properties, which can be expensive and time-consuming and thus cannot keep pace with the growing demand. To accelerate materials development with low cost, data-driven adaptive design methods have recently been ­applied <sup>1–4</sup> . The adaptive design process starts with small data, selectively adds new samples to guide experimentation/computation, and navigates towards the global optimum. The key to adaptive materials design is an efficient policy for searching the chemical/structural design space for the _global_ optimum, such that new samples (material designs) are selected based on existing knowledge. Classical metaheuristic optimization methods, such as simulated annealing and genetic algorithm, select new design samples based on nature-inspired stochastic rules. However, these methods require many design evaluations, and thus lack cost efficiency, which limits their applicability in materials design. In contrast, Bayesian optimization (BO) <sup>5</sup> represents a generalizable and more efficient adaptive design approach. Starting from a small set of known designs, BO iteratively fits machine learning (ML) models that predict the performance and quantify the uncertainty associated with unseen designs, and then selects new designs to be evaluated in the next iteration based on an acquisition function. BO methods have demonstrated capabilities in the design optimizations of a diversity of materials, including piezoelectric ­materials <sup>6</sup>, ­catalysts <sup>7</sup>, phase change ­memories <sup>8</sup>, and structural ­materials <sup>9</sup> . Through these successful cases, BO has shown its versatility, as well as its high efficiency under a limited budget for design evaluation. Thus it has the potential of being an essential component of data-driven design automation, benefiting materials researchers who are not experts in data science. Acquisition functions guide the sampling process in BO. Commonly used acquisition functions, such as expected improvement (EI) <sup>10</sup>, take into account both exploitation (pursuing a better objective) and exploration (reducing uncertainty). While exploitation is modulated by the ML model’s prediction, exploration relies on the estimation of uncertainty in the predicted response for the unsampled sites. Therefore, uncertainty-aware ML 1Department of Mechanical Engineering, Northwestern University, Evanston, IL 60208, USA. 2Department of Industrial Engineering and Management Sciences, Northwestern University, Evanston, IL 60208, USA. <sup>*</sup> email: weichen@northwestern.edu models, i.e., ML models with uncertainty quantification (UQ), play a central role in BO. Various approaches have been developed to equip ML models with the UQ capability, which we will further discuss in the following section. However, the mixed-variable problems, i.e., when design variables include both numerical and categorical ones, pose additional challenges to uncertainty-aware ML, and are ubiquitous in materials design. The design variables in materials design tasks typically include processing, composition, and structure information. Some design variables such as process type (e.g., hydrothermal or sol-gel), element choice (e.g., Al or Fe), and lattice type (e.g., _fcc_ or _bcc_ ) are categorical, while others such as annealing temperature, stoichiometry, and lattice parameters, are numerical. For BO methods to be generally applicable to these diverse design representations, uncertainty-aware ML models must be able to handle mixed-variable inputs. In this work, we first examine the methods for quantifying uncertainty in ML models and contrast their fundamental differences from a theoretical perspective. Based on this, we focus on two representative uncertaintyaware mixed-variable ML models that involve frequentist and Bayesian approaches to uncertainty quantification, respectively, and conduct a systematic comparative study of their performances in BO, with an emphasis on materials design applications. Based on the results, we characterize the relative suitability of frequentist and Bayesian approaches to uncertainty-aware ML as related to problem dimensionality and complexity. Our contribution is twofold: - Outline of the suitability of Bayesian and frequentist uncertainty-aware ML models depending on the characteristics of problems; - Identification of key factors that result in the performance difference between Bayesian and frequentist approaches. We anticipate this study will assist researchers in physical sciences who use BO, providing practical guidance in choosing the most appropriate model that suits their purpose. Uncertainty‑aware machine learning Uncertainty in machine learning models. Uncertainty is ubiquitous in predictive computational models. Even if the underlying physics is deterministic, uncertainty still exists due to the insufficiency of knowledge. Many efforts have been devoted to quantifying uncertainties of physics-based computational ­models <sup>11–14</sup> in science and engineering. Unlike a physics-based model, the prediction of a data-driven model builds upon observations or previous data. Uncertainty in the prediction arises from (1) lack of data, (2) imperfect fit of the model to the data, and (3) intrinsic stochasticity. These collectively form the metamodeling ­uncertainty <sup>15</sup>, which reflects the discrepancy between the data-driven model’s prediction and the response given by the physics-based model in unsampled regions. BO’s sampling strategy is aimed at reducing the metamodeling uncertainty (exploration) and improving the objective function value (exploitation) by querying certain new samples. To this end, it is desired to have uncertainty-aware ML models, for which the metamodeling uncertainty can be quantified. Frequentist and Bayesian uncertainty quantification. Several UQ techniques have been adopted to attain uncertainty-aware ML. Here, we group them into two broad categories: frequentist and Bayesian. The frequentist approach obtains uncertainty estimation through various forms of resampling: in general, a series of models {f <sup>ˆ</sup> i( x )} <sup>n</sup> i=1 <sup>are fitted with different subsets of training data or hyperparameters, then the prediction vari-</sup> ability at an unsampled location is estimated from the variance among these models’ predictions: �fˆ1( x ), . . ., ˆfn( x ) , sˆ <sup>2</sup> ( x ) = Var fˆ1( x ), . . ., ˆfn( x ), (1) where Var(·) can represent any variance estimate using frequentist statistics, potentially involving noise or bias correction terms. Commonly used resampling techniques include Monte Carlo, Jackknife, Bootstrap, and their ­variations <sup>16</sup> . In particular, uncertainty estimation using ensemble ­models <sup>17</sup> or disagreement/voting of multiple ­models <sup>18</sup> are also examples of the resampling approach. The frequentist UQ approach has been adopted in combination with various ML models, including random ­forests <sup>19,20</sup>, boosted ­trees <sup>21</sup>, and deep neural ­networks <sup>22–24</sup> . As this approach is generally applicable regardless of the type of ML model, it is frequently coupled with “strong learners”, i.e., the models that are capable of accurately fitting highly complex and non-stationary functions. Instead of requiring a series of models, the Bayesian UQ approach treats the true model as a random field, and infers its posterior probability from the prior belief and observed ­data <sup>5</sup> to estimate the uncertainty. A prominent example is Gaussian process (GP) <sup>25</sup> . When modeling the data ( X, y ), a GP model views the observed response y as the true response f plus random noise. It assumes that the response f at different input locations are jointly Gaussian, i.e., f | X ∼ N (µ, K ) . The covariance matrix K is inferred from the similarity between inputs using a kernel function. It also takes into account the noise that may be present in observations by assuming y | f ∼ N ( f, σ <sup>2</sup> I ) . For example, the radial basis function (RBF) kernel i - = σ <sup>2</sup> exp �y( x ), y( x <sup>′</sup> ) K y( x ), y( x <sup>′</sup> ) = σ <sup>2</sup> exp - ωi(xi − xi <sup>′)2</sup> (2) i ωi(xi − xi <sup>′</sup> i <sup>′)2</sup> uses Euclidean distance metric and assigns Gaussian correlations a priori, with global variance σ <sup>2</sup> and correlation parameters ωi, to be learned via maximum likelihood estimation (MLE) in model training. The prediction derived from a GP model includes both the mean and the variance, thus providing a measure of metamodeling uncertainty. Besides GP, examples of ML methods with Bayesian-style uncertainty estimation include Bayesian linear regression and generalized linear models, Bayesian model ­averaging <sup>26</sup>, and Bayesian neural ­networks <sup>27</sup> . When the posterior is not available in analytical form, estimation of the posterior requires probabilistic sampling techniques such as Markov Chain Monte Carlo, whose high computational cost limits its application to various ML ­models <sup>28</sup> . Therefore, the Bayesian UQ approach is often adopted in specially designed ML models that have an analytical form posterior, such as GP. Uncertainty quantification in mixed‑variable machine learning. For mixed-variable problems, uncertainty quantification of ML models becomes more complicated. In early developed ML methods, categorical variables are mostly handled by ordinal or one-hot ­encoding <sup>29</sup> . Ordinal encoding assigns an integer label for each category; such encoding assumes ordered relations among categories, thus limiting its applicability. One-hot encoding represents a categorical variable ti that takes value from categories (often referred to as levels) {ℓ1, ℓ2, . . ., ℓJ } with a binary vector i <sup>(J)], c</sup> i <sup>(j)</sup> c i = [ci <sup>(1)</sup>, . . ., ci <sup>(J)], c</sup> i <sup>(j)</sup> = 1j, (3) ci <sup>(1)</sup>, . . ., ci <sup>(J)</sup> i <sup>(j)</sup> = 1j, where 1j is an indicator function, i.e., when ti = ℓj only the _j_ -th element of c i equals 1, and others equal 0. This encoding, however, assumes symmetry between all categories (the similarity between any two categories is ­equal <sup>30</sup> ), which is generally not true. In recent years, some methods have been proposed for uncertainty-aware ML in the mixed variable scenario. ­Lolo <sup>31</sup>, for example, is an extension of the random forest (RF) model. As an ensemble of decision trees, RF has native support for mixed-variable problems. Uncertainty is quantified by calculating variance at any sample point from the predictions of the decision trees with bias correction. GP models in the original form are uncertainty aware; however, they have problems handling categorical variables. The covariance matrix is inferred from the similarity between inputs characterized by a distance metric. But the aforementioned representations cannot represent the distances between categories. The latent variable Gaussian process (LVGP) ­model <sup>32,33</sup> solves this problem by mapping each categorical variable ti into a continuous-variable latent space, where each level ℓj of ti is represented by a vector z i = [zi <sup>(1)</sup> (j), . . ., zi <sup>(q)</sup> (j)], i <sup>(1)</sup> (j), . . ., zi <sup>(q)</sup> a continuous-variable latent space, where each level ℓj of ti is represented by a vector z i = [zi <sup>(1)</sup> (j), . . ., zi <sup>(q)</sup> (j)], where _q_, the dimensionality of latent space, is usually 2. The RBF kernel then becomes i i - = σ <sup>2</sup> exp , i <sup>′)2 −</sup> �� z (ti) − z (ti′ <sup>)</sup> 2 ��2 �y( x, t ), y( x <sup>′</sup>, t <sup>′</sup> ) K y( x, t ), y( x <sup>′</sup>, t <sup>′</sup> ) = σ <sup>2</sup> exp - ωi(xi − xi <sup>′)2 −</sup> i <sup>)</sup> 2, (4) i ωi(xi − xi <sup>′</sup> , i where �· �2 is the L <sup>2</sup> norm. Like other parameters, locations of latent vectors are obtained via MLE during model training. With the latent variable representation, the categories are not required to be ordered or symmetric, and their correlations are inherently estimated via distances in the mapped latent space. The latent variable configuration in the latent space also indicates the effects of different levels of a categorical variable on the response, thus making the model ­interpretable <sup>32</sup> . There are extensions of ­LVGP <sup>34,35</sup> that allow utilizing large training data, physical knowledge, as well as kernels other than RBF that are suitable for fitting functions with different characteristics. In this work, the vanilla LVGP is used in comparative studies. Related comparative studies. Some related studies have compared the performances of a variety of UQ techniques in materials design applications. For example, Tian et al. <sup>16</sup> compared four uncertainty estimators among the frequentist ones in materials property optimization. Liang et al. <sup>36</sup> conducted a benchmark study of BO for materials design using GP and RF models with different acquisition functions. However, existing studies focus on BO where input variables are numerical, whereas practical materials design problems are often mixed-variable problems. The performance of ML methods using frequentist or Bayesian UQ techniques in BO under different circumstances involving categorical variables is not clear. In particular, the efficacy of the two approaches in the materials design context has not yet been examined. We hope to fill the gap in this study. Results and discussion To examine and compare the performances of Bayesian Optimization using the two ML models (denoted LVGPBO and Lolo-BO for conciseness), we tested them on both synthetic mathematical functions and materials property optimization problems. Our comparative study is conducted using a modular BO framework (illustrated in Fig. 1; details of implementation are in “Methods”), in which both LVGP and Lolo can serve as the ML model. We use this BO framework to search for the optimum value of any function y( v ), where the input variables v = [ x, t ] consist of numerical variables x and/or categorical variables t, and the response _y_ is a scalar. The BO performances are compared in two aspects, accuracy and efficiency. Accuracy relates to the ability to find the optimal objective function value. We record the complete optimization history for every test case, so that accuracy can be compared by looking at the optimal objective values observed at any time in the optimization process. Efficiency, on the other hand, is characterized by the rate of improving the objective function. In application scenarios such as materials design, the design evaluation (experimentation or physics-based simulation) is often very time-consuming, in comparison, the time for fitting ML models and calculating acquisition functions is negligible. Thus, when comparing efficiency, we focus on the time in terms of iteration number instead of actual Design Variable Space Evaluation Evaluation Evaluation Suggest new sample Maximum number of iterations reached ML Model Adaptive Sampling Output optimal solution Exploitation of better performance Acquisition Function ∗ = arg max ; � Exploration of high uncertainty Figure 1. Schematic of Bayesian Optimization framework. An ML model is fitted to the known input–response data, and predicts the response for unevaluated inputs with uncertainty. The acquisition function is calculated from the prediction, guiding the selection of new input(s) to evaluate. The process iterates to find the optimal response. computational time. The BO method capable of converging to the global optimum in fewer iterations is favored under these metrics. In the following part, we introduce the experimental settings and present the results for each test problem. Demonstration: mathematical test functions. We first present test results of minimizing mixedvariable mathematical functions selected from an online ­library <sup>37</sup> . For functions that are originally defined on a continuous domain, we convert some of their arguments to be categorical for testing purposes. As these are white-box problems, we can investigate the BO methods’ performance under different problem characteristics, as well as the factors influencing the performance. _Low‑dimensional simple functions._ In the first test case, we use the Branin function, which has two input variables and relatively smooth behavior. We modify its definition as follows: �t − 4 <sup><u>5.1</u></sup> π <sup>2</sup> cos(x) + 10, 4 <sup><u>5.1</u></sup> π <sup>2</sup> <sup>x2 +</sup> π <sup><u>5</u></sup> <sup>x −</sup> <sup>6</sup> + 10 �2 1 − <sup><u>1</u></sup> 8π f (x, t) = t − <sup><u>5.1</u></sup> + 10 1 − <sup><u>1</u></sup> cos(x) + 10, (5) 4π <sup>2</sup> <sup>x2 +</sup> π <sup><u>5</u></sup> <sup>x −</sup> <sup>6</sup> where x ∈[−5, 10] is a numerical variable, and _t_ is categorical, with categories corresponding to values {0, 5, 10, 15} . To provide an intuitive sense of its behavior, we visualize the function in Fig. 2a. Lolo-BO and LVGP-BO are used respectively to minimize the modified Branin function, starting with 10 initial samples. We repeat this 30 times with different random initial designs for each replicate, and the optimization histories across replicates are shown in Fig. 2e. To compare the overall performance and robustness of LVGPBO and Lolo-BO, we show both the median objective value y˜ and the scaled median absolute deviation MAD = median /0.6745 at every iteration. Another low-dimensional, simple test function is the McCormick function (visualized in Fig. 2b), in the following modified form:���y −˜y��� f (x, t) = sin(x + t) + (x − t) <sup>2</sup> - 1.5x + 2.5t + 1, (6) where x ∈[−1.5, 4], and _t_ ’s categories correspond to integer values {−3, −2, . . ., 4} . The initial sample size and number of replicates are the same as described above; optimization histories are shown in Fig. 2f. From the optimization history plots, we observe that for both test functions, LVGP-BO converges to the global minimum in fewer iterations, thus showing better efficiency. _Low‑dimensional complex functions._ We then test LVGP-BO and Lolo-BO in optimizing low-dimensional complex functions (definitions are provided in Methods), in this case, rugged functions with several local and/ or global minimums. The Six-Hump Camel function (Fig. 2c): 4 − 2.1x <sup>2</sup> + <sup><u>x4</u></sup> 3 <u>�</u> f (x, t) = 4 − 2.1x <sup>2</sup> + <sup><u>x4</u></sup> x <sup>2</sup> + xt + (−4 + 4t <sup>2</sup> )t <sup>2</sup>, (7) 3 <u>�x</u> <sup>2</sup> + xt + (−4 + 4t <sup>2</sup> )t <sup>2</sup>, Rastrigin 3D Itera�on Camel Itera�on a b e f Branin Itera�on McCormick Itera�on d h c g Figure 2. (a–d) Visualization of the Branin, McCormick, Camel, and Rastrigin functions in two-dimensional (2D) continuous form. (e–h) Optimization histories across replicates for the Branin, McCormick, Camel, and Rastrigin functions. These plots show the minimal objective function values observed at every iteration. Solid lines represent the median among replicates; shaded areas show plus/minus one MAD. The green dashed lines mark the global minimum value of each function. with x ∈[−2, 2] and t ∈{±1, ±0.7126, 0}, is optimized in 30 runs, each starting from initial samples of size 10. As Fig. 2g shows, both LVGP-BO and Lolo-BO converge to the global minimum, while LVGP leads to faster convergence. We also test optimizing the Rastrigin function, which has more local minimums (as shown in Fig. 2d): d i=1 [vi <sup>2</sup> f ( v ) = 10d + [vi <sup>2</sup> <sup>−</sup> <sup>10 cos(2πvi)],</sup> (8) i <sup>2</sup> <sup>−</sup> <sup>10 cos(2πvi)],</sup> i=1 where _d_ is the adjustable dimensionality. We set d = 3, with two numerical variables x1,2 = v1,2 ∈[−5.12, 5.12], and one categorical variable t = v3 ∈{−5, −4, . . ., 5} . As Fig. 2h shows, in optimizing this highly multimodal function, LVGP-BO shows more performance superiority: it approaches the global minimum at around 60 iterations and eventually converges to the global minimum, while Lolo-BO does not. _High‑dimensional functions._ Moving beyond low dimensionality, we compare the two BO methods on a series of high-dimensional functions. We are optimizing the Perm function (whose behavior in 2D is shown in Fig. 3a): 2  j=1 d i=1 d j=1 - <sup></sup>  - 1 �i f ( v ) = j <sup>i</sup> + 0.5 - 1, (9)  , i=1 �j <sup>i</sup> + 0.5 j �� <u>vj</u> the Rosenbrock function (whose behavior in 2D is shown in Fig. 3d): d i=1 f ( v ) = 100 vi+1 − vi <sup>2</sup>, (10) i , �2 + (vi − 1)2 <sup>�</sup> i=1 100 vi+1 − vi <sup>2</sup> - i=1 <sup>v</sup> i <sup>2, where</sup> <sup>_d_</sup> <sup>denotes the dimensionality.</sup> For the Perm function, we use both low- and high-dimensional settings: (1) six-dimensional (6D), with t = v6 ∈{−4, 1, 6} and x1,...,5 = v1,...,5 ∈[−6, 6] . In this case, the degrees of freedom Df = 7 . (2) ten-dimen and a simple quadratic function f ( v ) = <sup>�d</sup> i t = v6 ∈{−4, 1, 6} and x1,...,5 = v1,...,5 ∈[− and a simple quadratic function f ( v ) = <sup>�d</sup> i=1 <sup>v</sup> i <sup>2</sup> sional (10D), with t1 = v6 ∈{−4, 1, 6}, t2 = v7 ∈{−8, −3, 2, 7}, t3 = v8 ∈{−6, 1, 8}, t4 = v9 ∈{±3, ±9}, t5 = v10 ∈{0, ±5, ±10}, and x1,...,5 = v1,...,5 ∈[−10, 10] . Df = 19 for this function. 10 replicates are run for each test, starting from initial samples of sizes 20 for 6D and 50 for 10D. Observations are that, in the 6D test case, LVGP-BO and Lolo-BO show close efficiencies (Fig. 3b). Whereas in the 10D case, both BO methods have difficulties optimizing the function and get stuck for more than 20 iterations (Fig. 3c); Lolo-BO displays better convergence rate and final minimum objective value. The Perm function is complex because of its non-convexity, and more significantly, its erratic behavior at the domain boundary: the function value is growing nearly exponentially near the boundary. We test BO of the 10D Rosenbrock and quadratic functions to investigate the influence of high dimensionality, without the erratic complexity. The Rosenbrock function is also non-convex, but is well-behaved at the domain boundary. We define its input variables as following: numerical variables x1,...,5 = v1,...,5 ∈[−5, 10], categorical variables a b 1e8 Perm, 6D c 1e17 Perm, 10D c 1e8 Perm, 6D 1e17 Itera�on Itera�on f d e Rosenbrock, 10D f Quadra�c, 10D Itera�on Itera�on Figure 3. (a) Visualization of the Perm function in 2D continuous form. (b,c) Optimization histories for the 6D and 10D Perm functions. (d) Visualization of the Rosenbrock function. (e) Optimization history for the 10D Rosenbrock function. (f) Optimization history for the 10D quadratic function. t1 = v6 ∈{−4, 1, 6}, t2 = v7 ∈{−3, 1, 5, 9}, t3 = v8 ∈{−5, 1, 7}, t4 = v9 ∈{−2, 1, 4, 7}, t5 = v10 ∈{±3, ±1, 5}, which make Df = 19 . The quadratic function is convex and well-behaved. It takes five categorical variables t1,...,5 = v6,...,10 ∈{0, ±1, ±2} and five numerical variables x1,...,5 = v1,...,5 ∈[−2, 2], with Df = 25 . As Fig. 3e,f shows, both BO methods make progress in descending the function value towards the optimum, while LVGP-BO has a considerably faster convergence rate. Through these, we find that when the dimensionality of the problem is high, convexity influences the comparison between LVGP-BO and Lolo-BO similarly to the low-dimensional situation. For the three 10D functions, Lolo-BO displays consistent behavior of making slow progress; whereas when the function is ill-behaved near the domain boundary, the efficiency of LVGP-BO decreases. In the Supplementary Information (SI), we present additional test cases, which support the findings as well. _What determines BO performance?_ We seek explanations for LVGP-BO and Lolo-BO’s performance differences from two aspects: fitting accuracy and uncertainty estimation quality. For BO to successfully locate the global optimum, the ML model does not need to fit the response function accurately everywhere, but the accuracy near the optimum matters. This accuracy can be improved with new sample acquisition guided by uncertainty. In regions that are far from optimal, the quantity of data and the resulting prediction accuracy only need to be sufficient to confidently rule the region out as a promising design region, which is why uncertainty quantification is important. We select the Branin function as a representative, generate 10 initial samples following the same procedure as described in “Methods”, run 20 iterations of BO to acquire 20 more samples, and fit LVGP/Lolo models to the samples of sizes 10 and 30. In Fig. 4 we show the behaviors of LVGP and Lolo in fitting the mixed-variable Branin function. With a small training set, LVGP can attain better prediction of the function compared to Lolo; moreover, its uncertainty quantification assigns low uncertainty in the vicinity of known observations and high uncertainty in the regions where data are sparse. These enable well-directed sampling in the less explored regions, hence promoting the model to “learn” the target function efficiently in regions where it matters most, i.e., in the vicinity of the optimum. In SI, we show the sampling sequences of Lolo-BO and LVGP-BO optimizing the Branin function to illustrate the difference between LVGP’s and Lolo’s uncertainty quantification and their effects on sample selection. We conduct a similar fitting test for the Rastrigin function in 2D and show the results in Fig. 5. For this more complex function, both methods fail to attain a good fit with 20 initial samples. Despite this, LVGP gives a better estimation of uncertainty in that it assigns higher uncertainty at the regions with sparser data points, which effectively guides the model towards a better fit. With the training sample size increased to 60, however, LVGP can fit the fluctuating function more accurately than Lolo (compare panels c and d), especially in the regions close to optimum, i.e., where the function values are low. We next extend this fitting and UQ comparison to high-dimensional cases. Training samples are generated from the 10D quadratic function and the Perm function (Eq. 9), respectively, then LVGP and Lolo models are a Lolo, 10 training samples b LVGP, 10 training samples Value of c Lolo, 30 training samples d LVGP, 30 training samples Figure 4. Illustration of the behaviors of LVGP and Lolo fitting the Branin function, with 10 and 30 samples. Each panel plots _f_ ( _x_, _t_ ) versus _x_ for four fixed values of _t_, while different colors of curves indicate levels of _t_ . Solid lines represent the true function value, black dots are sample points in the training set, dashed lines are the predicted mean value, and shaded areas show the uncertainty estimation (plus/minus one standard deviation). The global minimum function value is marked by dashed lines. a Lolo, 20 training samples b LVGP, 20 training samples Value of Lolo, 20 training samples LVGP, 20 training samples c Lolo, 60 training samples d LVGP, 60 training samples Figure 5. Illustration of the behaviors of LVGP and Lolo fitting the 2D Rastrigin function, with 20 (initial) and 60 (BO expanded) samples. For clarity, we only show three levels of categorical variable _t_ out of eleven in total. a b LVGP-50 Lolo-50 LVGP-80 Lolo-80 LVGP-100 Lolo-100 LVGP-150 Lolo-150 c d Figure 6. (a,b) Relative RMSEs of fitting quadratic and Perm functions, using LVGP and Lolo models with varying training sample sizes. Boxplots show results from 10 different randomly selected training sample sets. (c,d) Regression plots showing the true value (horizontal axis) and ML model-predicted value (vertical axis) for quadratic function (training size 50) and Perm function (training size 100), with green diagonal lines representing accurate predictions. tested to accurately fit the samples. At high dimensions, the previous visualization is no longer feasible. Instead, we adopt the relative root-mean-square error (RRMSE) <u>i</u> <sup><u>(yˆi</u></sup> <sup>−</sup> <sup><u>yi)2</u></sup> RRMSE = <sup><u>RMSE</u></sup> = (11) - <u>�</u> <u>i</u> <sup><u>(yˆi</u></sup> <sup>−</sup> <sup><u>yi)2</u></sup> - <u>�</u> i <sup>(yi −¯y)2</sup> <u>�</u> σy = as a metric of fitting quality. Note that RRMSE is related to another widely used metric, the coefficient of determination R <sup>2</sup>, through R <sup>2</sup> = 1 − RRMSE <sup>2</sup> . RRMSE > 1 can happen when the fitted model is worse than using the response mean as a constant predictor. For each function, we evaluate the model fitting quality by calculating RRMSE on 1000 test samples generated independently from the training samples. Figure 6a,b shows the RRMSEs across different training sample sets to indicate how well the two models fit the mathematical functions. We also show in Fig. 6c,d the deviations of the models’ predictions from the true responses, i.e., the prediction errors. As the figures show, in fitting the relatively simpler quadratic function, Lolo attains a higher quality compared to LVGP at small sample size (50); as the sample size increases to 80, the fitting quality of LVGP improves significantly, whereas the fitting quality of Lolo does not change much. However, even at a small sample size, LVGP’s prediction error for samples with low function values (near optimum) is lower than Lolo’s. With welldirected uncertainty quantification, LVGP-BO can add samples that improve the fitting, thus leading to efficient convergence. In fitting the 10D Perm function, both models fail to attain a good RRMSE; the Lolo model fits slightly better than LVGP, and this comparison is not changed as the training sample size increases. In this case, the dimensionality is too large for the known samples to cover, hence, it is difficult for both ML models to capture the complexity of the Perm function. Neither model shows dominant fitting accuracy near optimum over another model. Lolo’s slightly better global fitting accuracy enables it to display higher efficiency in BO of the Perm function. Materials design applications. To assess the performances of two ML models in facilitating materials design, we apply Lolo-BO and LVGP-BO to optimize materials’ properties using several existing experimental/computational materials datasets. We adopt a simple yet generally applicable design representation, using chemical compositions as design variables to optimize the properties. We start with a small fraction of samples randomly selected from the dataset; the evaluation of a sample is imitated by querying its corresponding property from the dataset. Model fitting and acquisition function follow the same procedure as previous sections. _Moduli of_ M2AX _compounds._ The M2AX materials ­family <sup>38</sup> has a hexagonal crystal structure, in which M, A, and X represent different sites, M and X atoms form a 2D network with the X atoms at the center of octahedra, while the A atoms connect the layers formed by M and X. M2AX compounds display high stiffness and lubricity, as well as high resistance to oxidation and creeping at high temperatures. These properties make them promising candidates as structural materials in extreme-condition applications such as aerospace ­engineering <sup>39,40</sup> . For both the capability as a structural material and the manufacturability, elastic properties are of particular importance. However, elastic properties have nontrivial dependence on composition. The computational determination of these properties includes the calculation of stresses or energies under several strains using density functional theory (DFT) <sup>40</sup>, which is resource-intensive. Here we demonstrate how the design optimization of M2AX compounds’ elastic properties directly in the composition space may benefit from mixed-variable BO while assessing the performances of Lolo-BO and LVGP-BO. From Balachandran et al. <sup>41</sup>, we retrieve a dataset that reports Young’s, bulk, and shear moduli ( _E_, _B_, and _G_, respectively) of 223 M2AX compounds within the chemical space M ∈{Sc, Ti, V, Cr, Zr, Nb, Mo, Hf, Ta, W}, A ∈{Al, Si, P, S, Ga, Ge, As, Cd, In, Sn, Tl, Pb}, X ∈{C, N} . The input variable v is thus three-dimensional, with all inputs being categorical. Since _E_ and _G_ are highly correlated (shown in SI), we choose _E_ and _B_ as target responses and optimize them separately. Both optimizations start with 30 initial samples and run for 50 iterations, adding one sample per iteration. a b c Young’s Modulus d Bulk Modulus Itera�on e f g h Bandgap, 10 ini�al samples Bandgap, 30 ini�al samples Stability Bandgap, 30 ini�al samples Itera�on Stability Itera�on Itera�on Itera�on Figure 7. (a,b) Distributions of _E_ and _B_ values in the M–A space, fixing X = C . (c,d) Optimization histories for (c) . Young’s modulus and d. bulk modulus. (e–g) Optimization histories of Eg with initial sample sizes 10 and 30, and �Hd with initial sample size of 10. h. Scatter plot of bandgap–stability for all samples in the dataset. In Fig. 7, we show the value distributions and optimization histories for _E_ and _B_ . Both Lolo-BO and LVGPBO are capable of discovering the material that has optimal modulus within 20 iterations, significantly reducing the required resources as compared to computationally evaluating the whole design space. Of the two BO methods, LVGP-BO exhibits marginally higher rates of convergence in both tasks. As observed from a–b, the input–response relations of both _E_ and _B_ are relatively well-behaved, without showing abrupt changes or clusters of values, which favors LVGP-BO’s efficiency. Hence, the results here are consistent with the findings in the mathematical test cases. _Bandgap and stability of lacunar spinels._ In another materials design application case, we consider materials having the formula AM <sup>a</sup> M <sup>b</sup> 3 <sup>X8 and the lacunar spinel crystal ­structure42. Element candidates for the sites</sup> als having the formula AM <sup>a</sup> M <sup>b</sup> 3 <sup>X8 and the lacunar spinel crystal ­structure42. Element candidates for the sites</sup> are A ∈{Al, Ga, In}, M <sup>a</sup> ∈{V, Nb, Ta, Cr, Mo, W}, M <sup>b</sup> ∈{V, Nb, Ta, Mo, W}, X ∈{S, Se, Te} . This is a family of materials that potentially exhibit metal–insulator transitions (MITs) <sup>43</sup>, i.e., electrical resistivity changing significantly upon external stimuli, such as temperature change across a critical temperature. The MIT property can be leveraged for encoding and decoding information with lower energy consumption compared to current ­devices <sup>44</sup> . Hence, the AM <sup>a</sup> M <sup>b</sup> 3 <sup>X8 materials family shows promise for next-generation microelectronic devices,</sup> ­devices <sup>44</sup> . Hence, the AM <sup>a</sup> M <sup>b</sup> 3 <sup>X8 materials family shows promise for next-generation microelectronic devices,</sup> including neuron-mimicking devices which can accelerate ­ML <sup>45</sup> . The origin of the transition is structural distortion triggered by external stimuli, which leads to a redistribution of electrons in the band ­structure <sup>46</sup> . Though the physical mechanism behind MITs is complex, two relevant properties may serve as proxies for the performances of candidate materials. One is the bandgap of the insulating ground state Eg, as a larger Eg generally corresponds to a higher resistivity in the insulating state, and therefore a higher resistivity change ratio upon the phase transition to a metallic phase under the applied field. Another is the decomposition enthalpy of the material �Hd which is associated with a material’s stability. Stable compounds are more likely to be synthesizable and operable in novel devices. Therefore, we use these two properties corresponding to their functionality and stability as the target in MIT materials design. In a dataset collected by Wang et al. <sup>3</sup>, a total of 270 combinations of candidate elements are enumerated, for every compound Eg and �Hd calculated from DFT are listed. Similar to the previous test case, we use the four-dimensional (categorical) composition as the inputs and optimize two responses Eg and �Hd separately. Figure 7e–g shows the results: starting from 10 initial samples, LVGP-BO and Lolo-BO both discover the compound with optimal �Hd efficiently, but are relatively slow in optimizing Eg ; LVGP-BO shows better efficiency on �Hd while Lolo-BO shows better efficiency on Eg . When we increase the initial sample size to 30, LVGP-BO and Lolo-BO exhibit similar efficiency on Eg. We show the different characteristics of the two responses of the dataset by a scatter plot in Fig. 7h. Among the 270 Eg values in the dataset, 56 are zero and others are positive values. These values form a clustered distribution at 0 and make the target function Eg = f ( v ) ill-behaved. Combined with the high-dimensionality, this function becomes challenging for LVGP-BO and Lolo-BO to optimize, as we demonstrated in the high-dimensional numerical examples. In contrast, �Hd values form a relatively well-behaved target function, hence, LVGP-BO performs better on this task, also in agreement with previous findings. _Investigating machine learning performance._ Though the response functions linking materials compositions to properties are black-box functions, for which the exact behaviors are unknown, we investigate the fitting accuracy of two ML models to get a hint of their performances in BO. The regression plots in Fig. 8 show the test response predictions versus the true response values for the ML models fitted to training data of size 30. a b c d Figure 8. Regression plots for ML models trained on 30 samples for materials properties: (a,b) bulk and Young’s moduli of M2AX compounds; (c,d) bandgap and stability of lacunar spinels. Interestingly, for all four target properties, LVGP shows better prediction errors for the high-performance (larger true response) materials, which are the candidates close to optimum. Aligning with the findings from mathematical examples, this explains LVGP-BO’s edge in efficiency over Lolo-BO. Another observation worth noting is that, for the lacunar spinels with zero bandgaps, LVGP’s predictions contain negative values, while Lolo’s do not (Fig. 8c). This is because the LVGP model using the RBF kernel tends to yield smooth response function predictions, which accounts for the influence of the clustered behavior of the response function on LVGP-BO’s performance. Conclusion In this study, we examine the fundamental differences between frequentist and Bayesian uncertainty quantification in ML models. Thereafter, we systematically compare the efficiency and accuracy of BO powered by two representative mixed-variable ML models in mathematical optimization as well as materials design tasks, and investigate the factors influencing BO performances. In summary, an ML model’s fitting accuracy near the optimum and its uncertainty quantification quality are found important to BO. For low-dimensional problems, the ML models can fit the input–response function relatively easily; even if the function is highly complex, fitting quality can be improved by adding a small number of well-selected samples. In this case, the quality of UQ becomes the key factor of BO efficiency, where LVGP using Bayesian uncertainty quantification has advantages. Whereas for high-dimensional problems, if the function is complex, it becomes challenging for ML models to fit the function. The number of samples required for covering the input space and improving fitting quality also escalates due to the curse of dimensionality. In this case, better fitting leads to better BO performance, and ML models that are more capable of fitting complex functions (such as random forests) have advantages. The results and analyses draw a suitability boundary for LVGP-BO and Lolo-BO, and more generally, provide insights for understanding the difference between the two families of uncertainty-aware ML models they represent: - When the design optimization problem is low-dimensional, or high-dimensional but the response is anticipated to be relatively well-behaved, the LVGP model is recommended for BO. - While for high-dimensional problems with a highly ill-behaved response function, we recommend using an ML model that allows higher model complexity (e.g., random forest, neural network) with frequentist UQ. The results constitute a supplement to the previous studies covering BO with all numerical variables and guide the model selection in materials design as well as other mixed-variable BO problems. Methods Bayesian optimization. The optimization process starts with initial samples, i.e., an initial set of input variables, and evaluates the responses. A machine learning model is then fitted with the known input–response data, which assigns for any input v a mean prediction yˆ( v ) and associated uncertainty (predicted variance) sˆ <sup>2</sup> ( v ) . The model is used to make uncertainty-aware predictions for the unevaluated samples V (sample pool). A new sample is selected therefrom based on the expected improvement (EI) acquisition ­function <sup>10</sup> : v <sup>∗</sup> = arg max v ∈V <sup>EI(</sup> <sup>v</sup> <sup>),</sup> (12) sˆ( v ) - <u>�(</u> <u>v</u> <u>)</u> , sˆ( v ) - <u>�(</u> <u>v</u> <u>)</u> + �( v )� EI( v ) = E[max{0, �( v )}] = ˆs( v )φ + �( v )�, (13) where �( v ) = ymin − y( v ), the difference between the optimal response value observed so far and the mean prediction of the fitted ML model; φ(·) and �(·) are the standard normal probability density function ( _pdf_ ) and cumulative distribution function ( _cdf_ ), respectively. The new sample and corresponding response value are added to the known dataset. This process is repeated iteratively, until the maximum number of iterations or some convergence criterion is reached. Comparative experiments. To compare the performances of Lolo and LVGP, we substitute them as the “ML Model” into the framework (Fig. 1) and run BO for a variety of functions, each time keeping the initial designs the same for BO with Lolo and LVGP. The initial designs are generated quasi-randomly following a systematic approach: numerical variables are drawn together from a Sobol ­sequence <sup>47</sup> ; each categorical variable is obtained from shuffling a list where all categories appear equally frequently and at least once. Since the stochasticity of initial samples influences the optimization process, we run multiple replicates of BO with different random seeds for each test problem. Uncertainty‑aware ML models. In these comparisons, we use the open-source implementation of ­Lolo <sup>48</sup> in `Scala` language with the `Python` wrapper `lolopy`, and a `MATLAB` implementation of LVGP, which implements the same algorithm as the open-source package coded in `R` <sup>49</sup> . For hyperparameters of both models, we use the default settings: For Lolo, the maximum number of trees is set to the number of data points, the maximum depth of trees is 2 <sup>30</sup>, and the minimum number of instances in the leaf is 1. For LVGP, we use 2D latent variable mapping and the RBF kernel. Detailed settings are listed in the open-source packages. Metrics for problems difficulty. We specify the following metrics to characterize the test problems. The dimensionality of inputs is an important criterion of problem difficulty. However, in categorical or mixed-variable cases, dimensionality is more than the number of variables. A more useful index considered in this work is the degrees of freedom, which we define as i Df ≡ dim( x ) + [#levels(ti) − 1], (14) [#levels(ti) − 1], i where #levels(ti) yields the number of levels of ti . This quantity takes into account the number of levels for each categorical variable. In other words, high dimensionality may mean “many levels” in problems with categorical variables. In the following sections, we follow this definition to categorize problems with Df - 15 as highdimensional, and others as low-dimensional. Another criterion of difficulty is the complexity of the objective function. In this work, we view the functions that display the following characteristics as ill-behaved: - rugged: the response fluctuates a lot, resulting in many local minima; - erratic: the response value changes abruptly in certain regions; - clustered: the response takes certain values frequently. These characteristics make a function challenging for ML and global optimization, hence, we refer to them as “complex” functions. Conversely, other well-behaved functions, including highly nonlinear ones, are referred to as “simple” functions. Data availability The datasets generated during and/or analysed during the current study are available from the corresponding author on reasonable request. Received: 23 August 2022; Accepted: 31 October 2022 References 1. Noh, J. _et al._ Inverse design of solid-state materials via a continuous representation. _Matter_ 1 [, 1370–1384. https://​doi.​org/​10.​1016/j.​](https://doi.org/10.1016/j.matt.2019.08.017) [matt.​2019.​08.​017 (2019).](https://doi.org/10.1016/j.matt.2019.08.017) 2. Iyer, A. _et al._ Data centric nanocomposites design via mixed-variable Bayesian optimization. _Mol. Syst. Des. Eng._ 5, 1376–1390. [https://​doi.​org/​10.​1039/​D0ME0​0079E (2020).](https://doi.org/10.1039/D0ME00079E) 3. Wang, Y., Iyer, A., Chen, W. & Rondinelli, J. M. Featureless adaptive optimization accelerates functional electronic materials design. _Appl. Phys. Rev._ 7 [, 041403. https://​doi.​org/​10.​1063/5.​00188​11 (2020).](https://doi.org/10.1063/5.0018811) 4. Khatamsaz, D. _et al._ Efficiently exploiting process-structure-property relationships in material design by multi-information source fusion. _Acta Mater._ 206 [, 116619. https://​doi.​org/​10.​1016/j.​actam​at.​2020.​116619 (2021).](https://doi.org/10.1016/j.actamat.2020.116619) 5. Shahriari, B., Swersky, K., Wang, Z., Adams, R. P. & Freitas, N.D. Taking the human out of the loop: A review of bayesian optimiza tion. in _Proceedings of the IEEE_ [. Vol. 104. 148–175. https://​doi.​org/​10.​1109/​JPROC.​2015.​24942​18 (2016).](https://doi.org/10.1109/JPROC.2015.2494218) 6. Yuan, R. H. _et al._ Accelerated discovery of large electrostrains in ­BaTiO3-based piezoelectrics using active learning. _Adv. Mater._ 30 [, 8. https://​doi.​org/​10.​1002/​adma.​20170​2884 (2018).](https://doi.org/10.1002/adma.201702884) 7. Tran, K. & Ulissi, Z. W. Active learning across intermetallics to guide discovery of electrocatalysts for ­CO2 reduction and ­H2 evolution. _Nat. Catal._ 1 [, 696–703. https://​doi.​org/​10.​1038/​s41929-​018-​0142-1 (2018).](https://doi.org/10.1038/s41929-018-0142-1) 8. Kusne, A. G. _et al._ On-the-fly closed-loop materials discovery via bayesian active learning. _Nat. Commun._ 11 [, 5966. https://​doi.​](https://doi.org/10.1038/s41467-020-19597-w) [org/​10.​1038/​s41467-​020-​19597-w (2020).](https://doi.org/10.1038/s41467-020-19597-w) 9. Talapatra, A. _et al._ Autonomous efficient experiment design for materials discovery with bayesian model averaging. _Phys. Rev._ _Mater._ 2 [, 113803. https://​doi.​org/​10.​1103/​PhysR​evMat​erials.​2.​113803 (2018).](https://doi.org/10.1103/PhysRevMaterials.2.113803) 10. Jones, D. R., Schonlau, M. & Welch, W. J. Efficient global optimization of expensive black-box functions. _J. Glob. Optim._ 13, 455–492. [https://​doi.​org/​10.​1023/A:​10083​06431​147 (1998).](https://doi.org/10.1023/A:1008306431147) 11. Arendt, P. D., Apley, D. W. & Chen, W. Quantification of model uncertainty: Calibration, model discrepancy, and identifiability. _J. Mech. Des._ 134 [, 100908. https://​doi.​org/​10.​1115/1.​40073​90 (2012).](https://doi.org/10.1115/1.4007390) 12. Tavazza, F., Decost, B. & Choudhary, K. Uncertainty prediction for machine learning models of material properties. _ACS Omega_ 6 [, 32431–32440. https://​doi.​org/​10.​1021/​acsom​ega.​1c037​52 (2021).](https://doi.org/10.1021/acsomega.1c03752) 13. Guan, P.-W., Houchins, G. & Viswanathan, V. Uncertainty quantification of DFT-predicted finite temperature thermodynamic properties within the Debye model. _J. Chem. Phys._ 151 [, 244702. https://​doi.​org/​10.​1063/1.​51323​32 (2019).](https://doi.org/10.1063/1.5132332) 14. Wang, Z. _et al._ Uncertainty quantification and reduction in metal additive manufacturing. _npj Comput. Mater._ 6 [, 175. https://​doi.​](https://doi.org/10.1038/s41524-020-00444-x) [org/​10.​1038/​s41524-​020-​00444-x (2020).](https://doi.org/10.1038/s41524-020-00444-x) 15. Zhang, S., Zhu, P., Chen, W. & Arendt, P. Concurrent treatment of parametric uncertainty and metamodeling uncertainty in robust design. _Struct. Multidiscip. Optim._ 47 [, 63–76. https://​doi.​org/​10.​1007/​s00158-​012-​0805-5 (2013).](https://doi.org/10.1007/s00158-012-0805-5) 16. Tian, Y. _et al._ Role of uncertainty estimation in accelerating materials development via active learning. _J. Appl. Phys._ 128, 014103 (2020). 17. Lakshminarayanan, B., Pritzel, A. & Blundell, C. Simple and scalable predictive uncertainty estimation using deep ensembles. in _Proceedings of the 31st International Conference on Neural Information Processing Systems_ . 6405–6416 (2017). 18. Hanneke, S. _et al._ Theory of disagreement-based active learning. _Found. Trends Mach. Learn._ 7, 131–309 (2014). 19. Shaker, M. H. & Hüllermeier, E. Aleatoric and epistemic uncertainty with random forests. in _International Symposium on Intelligent_ _Data Analysis_ . 444–456 (Springer, 2020). 20. Mentch, L. & Hooker, G. Quantifying uncertainty in random forests via confidence intervals and hypothesis tests. _J. Mach. Learn._ _Res._ 17, 841–881 (2016). 21. Malinin, A., Prokhorenkova, L. & Ustimenko, A. Uncertainty in gradient boosting via ensembles. in _International Conference on_ _Learning Representations_ (2021). 22. Abdar, M. _et al._ A review of uncertainty quantification in deep learning: Techniques, applications and challenges. _Inf. Fusion_ 76, [243–297. https://​doi.​org/​10.​1016/j.​inffus.​2021.​05.​008 (2021).](https://doi.org/10.1016/j.inffus.2021.05.008) 23. Du, H., Barut, E. & Jin, F. Uncertainty quantification in CNN through the bootstrap of convex neural networks. _Proc. AAAI Conf._ _Artif. Intell._ 35, 12078–12085 (2021). 24. Hirschfeld, L., Swanson, K., Yang, K., Barzilay, R. & Coley, C. W. Uncertainty quantification using neural networks for molecular property prediction. _J. Chem. Inf. Model._ 60, 3770–3780 (2020). 25. Rasmussen, C. E. & Williams, C. K. I. _Gaussian Processes for Machine Learning_ (The MIT Press, 2005). 26. Park, I., Amarchinta, H. K. & Grandhi, R. V. A bayesian approach for quantification of model uncertainty. _Reliabil. Eng. Syst. Saf._ 95, 777–785 (2010). 27. Kwon, Y., Won, J.-H., Kim, B. J. & Paik, M. C. Uncertainty quantification using bayesian neural networks in classification: Applica tion to biomedical image segmentation. _Comput. Stat. Data Anal._ 142 [, 106816. https://​doi.​org/​10.​1016/j.​csda.​2019.​106816 (2020).](https://doi.org/10.1016/j.csda.2019.106816) 28. Papamarkou, T., Hinkle, J., Young, M. T. & Womble, D. Challenges in Markov chain Monte Carlo for bayesian neural networks. [https://​doi.​org/​10.​48550/​ARXIV.​1910.​06539 (2019).](https://doi.org/10.48550/ARXIV.1910.06539) 29. Hastie, T., Tibshirani, R. & Friedman, J. _Overview of Supervised Learning_ . 9–41 (Springer, 2009). 30. Häse, F., Aldeghi, M., Hickman, R. J., Roch, L. M. & Aspuru-Guzik, A. Gryffin: An algorithm for Bayesian optimization of categori cal variables informed by expert knowledge. _Appl. Phys. Rev._ 8 [, 031406. https://​doi.​org/​10.​1063/5.​00481​64 (2021).](https://doi.org/10.1063/5.0048164) 31. Ling, J., Hutchinson, M., Antono, E., Paradiso, S. & Meredig, B. High-dimensional materials and process optimization using data driven experimental design with well-calibrated uncertainty estimates. _Integr. Mater. Manuf. Innov._ 6 [, 207–217. https://​doi.​org/​10.​](https://doi.org/10.1007/s40192-017-0098-z) [1007/​s40192-​017-​0098-z (2017).](https://doi.org/10.1007/s40192-017-0098-z) 32. Zhang, Y., Tao, S., Chen, W. & Apley, D. W. A latent variable approach to gaussian process modeling with qualitative and quantita tive factors. _Technometrics_ 62 [, 291–302. https://​doi.​org/​10.​1080/​00401​706.​2019.​16388​34 (2020).](https://doi.org/10.1080/00401706.2019.1638834) 33. Zhang, Y., Apley, D. W. & Chen, W. Bayesian optimization for materials design with mixed quantitative and qualitative variables. _Sci. Rep._ 10 [, 4924. https://​doi.​org/​10.​1038/​s41598-​020-​60652-9 (2020).](https://doi.org/10.1038/s41598-020-60652-9) 34. Wang, L. _et al._ Scalable gaussian processes for data-driven design using big data with categorical factors. _J. Mech. Des._ 144, 1–36. [https://​doi.​org/​10.​1115/1.​40522​21 (2022).](https://doi.org/10.1115/1.4052221) 35. Iyer, A., Yerramilli, S., Rondinelli, J., Apley, D. & Chen, W. Descriptor aided Bayesian optimization for many-level qualitative variables with materials design applications. _J. Mech. Des._ [https://​doi.​org/​10.​1115/1.​40558​48](https://doi.org/10.1115/1.4055848) _(2022)._ 36. Liang, Q. _et al._ Benchmarking the performance of Bayesian optimization across multiple experimental materials science domains. _npj Comput. Mater._ 7 [, 188. https://​doi.​org/​10.​1038/​s41524-​021-​00656-9 (2021).](https://doi.org/10.1038/s41524-021-00656-9) [37. Surjanovic, S. & Bingham, D. Virtual library of simulation experiments: Test functions and datasets. http://​www.​sfu.​ca/​~ssurj​ano.](http://www.sfu.ca/%7essurjano) Accessed 24 Jan 2022 (2013). 38. Barsoum, M. W. The ­MN+1AXN phases: A new class of solids: Thermodynamically stable nanolaminates. _Prog. Solid State Chem._ 28 [, 201–281. https://​doi.​org/​10.​1016/​S0079-​6786(00)​00006-6 (2000).](https://doi.org/10.1016/S0079-6786%0x2800%0x2900006-6) 39. Lofland, S. E. _et al._ Elastic and electronic properties of select ­M2AX phases. _Appl. Phys. Lett._ 84 [, 508–510. https://​doi.​org/​10.​1063/1.​](https://doi.org/10.1063/1.1641177) [16411​77 (2004).](https://doi.org/10.1063/1.1641177) 40. Cover, M. F., Warschkow, O., Bilek, M. M. M. & McKenzie, D. R. A comprehensive survey of ­M2AX phase elastic properties. _J._ _Phys. Condens. Matter_ 21 [, 305403. https://​doi.​org/​10.​1088/​0953-​8984/​21/​30/​305403 (2009).](https://doi.org/10.1088/0953-8984/21/30/305403) 41. Balachandran, P. V., Xue, D., Theiler, J., Hogden, J. & Lookman, T. Adaptive strategies for materials design using uncertainties. _Sci._ _Rep._ 6 [, 19660. https://​doi.​org/​10.​1038/​srep1​9660 (2016).](https://doi.org/10.1038/srep19660) 42. Schueller, E. C. _et al._ Modeling the structural distortion and magnetic ground state of the polar lacunar spinel ­GaV4Se8. _Phys. Rev._ _B_ 100 [, 045131. https://​doi.​org/​10.​1103/​PhysR​evB.​100.​045131 (2019).](https://doi.org/10.1103/PhysRevB.100.045131) 43. Imada, M., Fujimori, A. & Tokura, Y. Metal-insulator transitions. _Rev. Mod. Phys._ 70 [, 1039–1263. https://​doi.​org/​10.​1103/​RevMo​](https://doi.org/10.1103/RevModPhys.70.1039) [dPhys.​70.​1039 (1998).](https://doi.org/10.1103/RevModPhys.70.1039) 44. Shukla, N. _et al._ A steep-slope transistor based on abrupt electronic phase transition. _Nat. Commun._ 6 [, 7812. https://​doi.​org/​10.​](https://doi.org/10.1038/ncomms8812) [1038/​ncomm​s8812 (2015).](https://doi.org/10.1038/ncomms8812) 45. Fowlie, J., Georgescu, A. B., Mundet, B., del Valle, J. & Tückmantel, P. Machines for materials and materials for machines: Metal insulator transitions and artificial intelligence. _Front. Phys._ [https://​doi.​org/​10.​3389/​fphy.​2021.​725853](https://doi.org/10.3389/fphy.2021.725853) _(2021)._ 46. Georgescu, A. B. & Millis, A. J. Quantifying the role of the lattice in metal-insulator phase transitions. _Commun. Phys._ 5, 135. [https://​doi.​org/​10.​1038/​s42005-​022-​00909-z (2022).](https://doi.org/10.1038/s42005-022-00909-z) 47. Sobol, I. On the distribution of points in a cube and the approximate evaluation of integrals. _USSR Comput. Math. Math. Phys._ 7, 86–112 (1967). 48. Citrine Informatics. _Lolo Machine Learning Library_ [. https://​github.​com/​Citri​neInf​ormat​ics/​lolo (2021).](https://github.com/CitrineInformatics/lolo) 49. Tao, S., Zhang, Y., Apley, D. W. & Chen, W. _LVGP: Latent Variable Gaussian Process Modeling with Qualitative and Quantitative_ _Input Variables_ [. https://​CRAN.R-​proje​ct.​org/​packa​ge=​LVGP (2019).](https://CRAN.R-project.org/package=LVGP) Acknowledgements This work was supported in part by the Advanced Research Projects Agency-Energy (ARPA-E), U.S. Department of Energy, under Grant Number DE-AR0001209, and the National Science Foundation (NSF), under Grant Number 2037026. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof. The authors thank Bryan L. Horn for assistance in experiments, Alexandru B. Georgescu for providing materials science insights, and Suraj Yerramilli for helpful discussions. Author contributions H.Z., A.I., and W.C. conceived the experiments. H.Z. conducted the experiments and drafted the manuscript. W.W.C. and D.W.A. contributed to the theoretical analysis. W.C. formulated and supervised the project. All authors reviewed and revised the manuscript. Competing interests The authors declare no competing interests. Additional information Supplementary Information [The online version contains supplementary material available at https://​doi.​org/​](https://doi.org/10.1038/s41598-022-23431-2) [10.​1038/​s41598-​022-​23431-2.](https://doi.org/10.1038/s41598-022-23431-2) Correspondence and requests for materials should be addressed to W.C. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from [the copyright holder. To view a copy of this licence, visit http://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2022

섹션 본문 10문단 · 2,882자

(제목 없음)

1Two uncertainty-aware mixed-variable ML models, Lolo and LVGP, are illustrated inFigures S1 and S2, respectively.FIG. S1: Illustration of the Lolo model. In the training stage, n decision trees are constructed. In the prediction stage, for an input datapoint, each tree gives a prediction. Predicted mean and uncertainty are given by the mean value and variance estimation among n trees' predictions, respectively. in Underlying quantitative space 5 1 1 3 2 4 … 2 3 Latent space 1 2 1 2 3 ( ) a b FIG. S2: Illustrations of Gaussian Process and LVGP models. (a) GP models assign prior distributions for y at various x locations. Given training data, the posterior distribution of y provides uncertainty quantification. (b) LVGP model assumes that levels of a categorical variable are characterized by underlying quantitative factors (represented as s).Represented as points in a low-dimensional latent space, the distances between levels reflect their similarities in terms of effect on the response.

Uncertainty Quantification in Mixed-Variable ML

2Two uncertainty-aware mixed-variable ML models, Lolo and LVGP, are illustrated in Figures S1 and S2, respectively.

3FIG. S1: Illustration of the Lolo model. In the training stage, n decision trees are constructed. In the prediction stage, for an input datapoint, each tree gives a prediction. Predicted mean and uncertainty are given by the mean value and variance estimation among n trees' predictions, respectively. Represented as points in a low-dimensional latent space, the distances between levels reflect their similarities in terms of effect on the response.

4Bayesian Optimization (BO) results of mathematical test functions included in the main text, with different initial sample sizes: Branin function in Figure S3, and Camel function in Figure S4. The Perm function in 6-dimensional form (1 categorical variable with 3 levels), starting from 80 initial samples. Figure S6 is created from 10 runs. The Holder Table function f The Ackley function

5where e = 2.71828...; we set the dimensionality d = 3, with v 1,2 = x 1,2 ∈ [−32.768, 32.768], and v 3 = t ∈ {±32, ±31, ..., 0}. Figure S8 is created from 5 runs.

6FIG. S8: Optimization history plot of the Ackley function with initial sample size 65.

The Cross-in-Tray function

7where x ∈ [−10, 10], and t ∈ {±10, ±9, ..., 0}. Figure S9 is created from 10 runs. The Shubert function

8where x ∈ [−10, 10], and t ∈ {±10, ±9, ..., 0}. Figure S10 is created from 10 runs. Figure S11 showing the relations between Young's, shear, and bulk modulus of M 2 AX compounds, indicate that Young's and shear moduli are highly correlated, while bulk modulus is not with the others.

Materials Property Test Cases

9FIG. S11: Scatter plots of Young's-bulk modulus (E-B) and Young's-shear modulus(E-G). Figure S12 shows the BO and ML fitting results for the shear modulus of M 2 AX compounds.

10FIG. S12: Optimization history plot (left) and regression plot (right) of M 2 AX shear modulus, with 30 initial samples.

참고문헌 40건

  1. A steep-slope transistor based on abrupt electronic phase transition Nature Communications · Nature Portfolio · 2015 10.1038/ncomms8812
  2. Efficient Global Optimization of Expensive Black-Box Functions Journal of Global Optimization · Springer Science+Business Media · 1998 10.1023/a:1008306431147
  3. A comprehensive survey of M<sub>2</sub>AX phase elastic properties Journal of Physics Condensed Matter · IOP Publishing · 2009 10.1088/0953-8984/21/30/305403
  4. Concurrent treatment of parametric uncertainty and metamodeling uncertainty in robust design Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2012 10.1007/s00158-012-0805-5
  5. A Bayesian approach for quantification of model uncertainty Reliability Engineering & System Safety · Elsevier BV · 2010 10.1016/j.ress.2010.02.015
  6. The MN+1AXN phases: A new class of solids Progress in Solid State Chemistry · Elsevier BV · 2000 10.1016/s0079-6786(00)00006-6
  7. Elastic and electronic properties of select M2AX phases Applied Physics Letters · American Institute of Physics · 2004 10.1063/1.1641177
  8. Theory of Disagreement-Based Active Learning Foundations and Trends® in Machine Learning · Now Publishers · 2014 10.1561/2200000037
  9. Quantification of Model Uncertainty: Calibration, Model Discrepancy, and Identifiability Journal of Mechanical Design · American Society of Mechanical Engineers · 2012 10.1115/1.4007390
  10. Metal-insulator transitions Reviews of Modern Physics · American Physical Society · 1998 10.1103/revmodphys.70.1039
  11. On the distribution of points in a cube and the approximate evaluation of integrals USSR Computational Mathematics and Mathematical Physics · Pergamon Press · 1967 10.1016/0041-5553(67)90144-9
  12. Taking the Human Out of the Loop: A Review of Bayesian Optimization Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 2015 10.1109/jproc.2015.2494218
  13. Adaptive Strategies for Materials Design using Uncertainties Scientific Reports · Nature Portfolio · 2016 10.1038/srep19660
  14. Accelerated Discovery of Large Electrostrains in BaTiO<sub>3</sub>‐Based Piezoelectrics Using Active Learning Advanced Materials · 2018 10.1002/adma.201702884
  15. Active learning across intermetallics to guide discovery of electrocatalysts for CO2 reduction and H2 evolution Nature Catalysis · Nature Portfolio · 2018 10.1038/s41929-018-0142-1
  16. Modeling the structural distortion and magnetic ground state of the polar lacunar spinel <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi>GaV</mml:mi><mml:mn>4</mml:mn></mml:msub><mml:msub><mml:mi>Se</mml:mi><mml:mn>8</mml:mn></mml:msub></mml:mrow></mml:math> Physical review. B./Physical review. B · American Physical Society · 2019 10.1103/physrevb.100.045131
  17. A Latent Variable Approach to Gaussian Process Modeling with Qualitative and Quantitative Factors Technometrics · Taylor & Francis · 2019 10.1080/00401706.2019.1638834
  18. Uncertainty quantification using Bayesian neural networks in classification: Application to biomedical image segmentation Computational Statistics & Data Analysis · Elsevier BV · 2019 10.1016/j.csda.2019.106816
  19. Inverse Design of Solid-State Materials via a Continuous Representation Matter · Elsevier BV · 2019 10.1016/j.matt.2019.08.017
  20. Uncertainty quantification of DFT-predicted finite temperature thermodynamic properties within the Debye model The Journal of Chemical Physics · American Institute of Physics · 2019 10.1063/1.5132332
  21. Bayesian Optimization for Materials Design with Mixed Quantitative and Qualitative Variables Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-60652-9
  22. Aleatoric and Epistemic Uncertainty with Random Forests Lecture notes in computer science · Springer Science+Business Media · 2020 10.1007/978-3-030-44584-3_35
  23. Role of uncertainty estimation in accelerating materials development via active learning Journal of Applied Physics · American Institute of Physics · 2020 10.1063/5.0012405
  24. Uncertainty Quantification Using Neural Networks for Molecular Property Prediction Journal of Chemical Information and Modeling · American Chemical Society · 2020 10.1021/acs.jcim.0c00502
  25. Data centric nanocomposites design <i>via</i> mixed-variable Bayesian optimization Molecular Systems Design & Engineering · Royal Society of Chemistry · 2020 10.1039/d0me00079e
  26. Uncertainty quantification and reduction in metal additive manufacturing npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-00444-x
  27. Autonomous efficient experiment design for materials discovery with Bayesian model averaging Physical Review Materials · American Physical Society · 2018 10.1103/physrevmaterials.2.113803
  28. High-Dimensional Materials and Process Optimization Using Data-Driven Experimental Design with Well-Calibrated Uncertainty Estimates Integrating materials and manufacturing innovation · Springer Nature · 2017 10.1007/s40192-017-0098-z
  29. On-the-fly closed-loop materials discovery via Bayesian active learning Nature Communications · Nature Portfolio · 2020 10.1038/s41467-020-19597-w
  30. Efficiently exploiting process-structure-property relationships in material design by multi-information source fusion Acta Materialia · Elsevier BV · 2021 10.1016/j.actamat.2020.116619
  31. G<scp>ryffin</scp>: An algorithm for Bayesian optimization of categorical variables informed by expert knowledge Applied Physics Reviews · American Institute of Physics · 2021 10.1063/5.0048164
  32. Scalable Gaussian Processes for Data-Driven Design Using Big Data With Categorical Factors Journal of Mechanical Design · American Society of Mechanical Engineers · 2021 10.1115/1.4052221
  33. Benchmarking the performance of Bayesian optimization across multiple experimental materials science domains npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00656-9
  34. Uncertainty Prediction for Machine Learning Models of Material Properties ACS Omega · American Chemical Society · 2021 10.1021/acsomega.1c03752
  35. Machines for Materials and Materials for Machines: Metal-Insulator Transitions and Artificial Intelligence Frontiers in Physics · Frontiers Media · 2021 10.3389/fphy.2021.725853
  36. (제목 없음) Directory of Open access Books (OAPEN Foundation) · 2022 10.7551/mitpress/3206.001.0001
  37. Overview of Supervised Learning Springer series in statistics · Springer Science+Business Media · 2008 10.1007/978-0-387-84858-7_2
  38. Quantifying the role of the lattice in metal–insulator phase transitions Communications Physics · Nature Portfolio · 2022 10.1038/s42005-022-00909-z
  39. Challenges in Markov chain Monte Carlo for Bayesian neural networks arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1910.06539
  40. Descriptor Aided Bayesian Optimization for Many-Level Qualitative Variables With Materials Design Applications Journal of Mechanical Design · American Society of Mechanical Engineers · 2022 10.1115/1.4055848