Leveraging Uncertainty from Deep Learning for Trustworthy Material Discovery Workflows
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (10) 아라미드(16) CPI(투명 폴리이미드)(21) 에폭시수지
기본 정보
- 저자
- DOI
- 10.1021/acsomega.1c00975
- 저널
- ACS Omega
- 발행년도
- 2021
- 발행기관
- American Chemical Society
- 피인용수
- 9
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1021/acsomega.1c00975
- 토픽
- Electron and X-Ray Spectroscopy Techniques
- OpenAlex ID
- W3157167083
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (10) 아라미드, (16) CPI(투명 폴리이미드), (21) 에폭시수지
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- predictive uncertainty, material discovery workflows, microstructure information, scanning electron microscope (SEM), deep learning
- 판단 근거
- 이 논문은 소재 개발 과정에서 딥러닝의 불확실성을 활용해 데이터 요구량, 이상치 탐지, 미세구조 분류 성능을 높이는 방법론을 다룹니다. 특정 소재를 연구하는 것은 아니나, 코오롱의 고기능성 소재(아라미드, CPI, 컴파운드 등) 개발 시 SEM 이미지 분석 및 물성 예측 모델의 신뢰성을 높이는 데 적용 가능한 범용적 방법론입니다.
- R&D 활용 포인트
- 신규 고분자/복합소재 개발 시 SEM 미세구조 이미지 분석 자동화 모델의 신뢰도를 높이고, 실험 데이터의 불확실성을 관리하여 R&D 효율성을 개선할 수 있습니다.
- 평가 입력
- 초록 1,021자
초록
본문 37,118자
본문 펼치기
섹션 본문 50문단 · 35,594자
(제목 없음)
1In this paper, we leverage predictive uncertainty of deep neural networks to answer challenging questions material scientists usually encounter in deep learning based materials applications workflows. First, we show that by leveraging predictive uncertainty, a user can determine the required training data set size necessary to achieve a certain classification accuracy. Next, we propose uncertainty guided decision referral to detect and refrain from making decisions on confusing samples. Finally, we show that predictive uncertainty can also be used to detect out-of-distribution test samples. We find that this scheme is accurate enough to detect a wide range of real-world shifts in data, such as changes in the image acquisition conditions or changes in the synthesis conditions. Using microstructure information from scanning electron microscope images as an example use case, we show that leveraging uncertainty-aware deep learning can significantly improve both the performance (up to 3% increase in accuracy) and the dependability (ECE reduction up to 3.5 times) of classification models.How much data is required to train a DNN?The quality and amount of training data is often the most important factor that determines the accuracy of a DL model. However, determining the amount of data necessary to train a DNN to achieve high classification accuracy is a challenging problem. A reasonable approach is to model validation accuracy as a function of arXiv:2012.01478v1 [cond-mat.mtrl-sci]
Introduction
2Deep Learning (DL) techniques are achieving remarkable success in a wide range of scientific applications 1 . One such application is Materials Informatics that applies DL methods to accelerate the discovery, synthesis, optimization and deployment of materials 2 . As a motivating example, consider the problem of Materials Discovery where one is interested in screening novel materials that meet certain performance requirements 3 . A critical obstacle in developing and deploying materials in a timely manner is understanding the complex process, structure, property and performance (PSPP) relationships, including evaluating the property of interest of a material, which can take a significant amount of time and effort. DL offers opportunities to potentially accelerate this process by learning the complex structure-property relationships (e.g., materials' physical, mechanical, optoelectronic, and thermal properties), from historical characterization and property data (i.e., training data) and produce models that can predict material properties at dramatically lower overall costs on unseen test data. Thus, DL is becoming increasingly prevalent in Materials Informatics workflows for making potentially important decisions, thereby making applications of DL approaches in Materials Discovery application a high-stake in nature. For example, incorrect decisions or predictions in Material Discovery can have (a) significant costs in terms of experimental resources and time when testing bad performing materials recommended by DL, or (b) lost opportunities to discover high performing materials rejected by DL.
3The majority of efforts in Materials Informatics are currently devoted to training deep neural networks (DNNs) that can achieve high accuracy on holdout dataset from the training distribution 4 . Existing efforts implicitly assume ideal conditions during both training and testing by assuming (a) having access to a sufficiently large labelled training data and (b) test data from the "same distribution" as the training set. Unfortunately, these conditions are seldomly met in Materials Discovery applications since a large amount of relevant historical data is rarely available, and the test data is typically and systematically different from the training data either through noise, unknown transformations, or other changes in the distribution. This is an inherent challenge in applying DL to scientific domain whose aim is to find something "new" and "different" that outperforms existing materials. It is well known that DL models are highly susceptible to such distributional shifts, which often leads to unintended and potentially harmful behavior (i.e., overconfident on predictions) especially when trained with insufficient amount of data 5 . Therefore, to ensure that the trained models behave reliably and to establish DL as a dependable solution in high-stake Materials Discovery applications following equally important questions needs to be answered. the amount of training data to predict the optimal data size needed to achieve a certain classification performance (referred to as learning curve based approach) 6 . Unfortunately, to get a reliable estimate of validation accuracy, this approach requires a large amount of labelled data not used in the training process. This is clearly not feasible for the application of interest where labelling process (e.g., performing experiments to collect relevant data) is expensive and time consuming.
4To overcome this challenge, we propose to leverage the DNN prediction uncertainty (or confidence) information and approximate the validation accuracy in the learning curve using unlabeled data only. Specifically, we obtained the average confidence (i.e., the predicted probability of the most plausible label) over the set of unlabeled data as the estimated validation accuracy for generating the learning curve. We show that having access to unlabeled scanning electron microscopy (SEM) images is sufficient in our approach to determine with high precision how many more material samples should be imaged and collected to provide sufficient DL training data to achieve a certain accuracy.
How to equip DNNs with a reject option?
5The performance and dependability of DNNs can be dramatically improved by building in a reject option. Testing the DL model on difficult (or ambiguous) material samples is a common case in material science applications since the discovery of new materials often involve moving away from existing materials using different synthesis and processing conditions. In such a context, having a reject option allows DNN models to refer a subset of difficult material samples for further evaluation and testing while making predictions on the rest. This is also known as selective classification where the classifier abstains from making a decision when the model is not confident, while keeping coverage as high as possible. An added benefit to deploying selective classification is that this approach has the potential to result in substantial improvements in the performance on the remaining materials data. Unfortunately, many off-the-shelf ML models are not well calibrated, i.e., the probability associated with the predicted class label does not match the probability of such prediction being correct. It has been observed that this issue is more noticeable in complex models such as DNNs 7 . Intuitively, this observation implies that DNNs are particularly bad at recognizing ambiguous samples.
6To overcome this challenge, we propose to use state-of-the-art uncertainty-aware DNNs in Materials Discovery workflows as they are known to be better calibrated as compared to their baseline counterparts. Specifically, we show that uncertainty guided decision referral can substantially improve the classification accuracy on the non-referred samples while reducing the number of referred (i.e. rejected) samples.
How to make DNNs recognize Out-of-Distribution examples?
7Test data in real-world DL applications usually deviates from the training data distribution, e.g., due to sample selection bias, non-stationarity, and noise corruptions in some cases 5 .
2/13
8For example, in the material science application (i.e., analysis of SEM images), the deviation between train and test data may arise due to: (a) change in the equipment used to capture the training material samples, or (b) changes in the material synthesis process, among others. Having plentiful training data that can potentially cover all possibilities and variance is ideal, but in practice, that is rarely attainable. Thus, a desirable feature in Materials Discovery workflow is for a model to be aware and not be very confident on test data that is very far (or different) from the data used to train it. For example, a potentially novel material that is different from all training data should result in a request for expert help rather than misclassification into a known material class as the detection of undiscovered material is in fact a task of significant interest. In other words, we need to require DNNs to be aware of cases when data acquisition setup or synthesis conditions are so different from the ones used during training that DL predictions cannot be trusted. Unfortunately, DNNs often make overconfident misclassification in the presence of distributional shifts and Out-of-Distribution data. That is to say, DNNs usually do not know when they don't know. Accurate predictive uncertainty is a highly desirable property in such cases as it can help practitioners to assess the true performance and risks to decide whether the model predictions should (or should not) be trusted 8 .
9Similar to the second question, we propose to leverage the predictive uncertainties produced by the state-of-the-art uncertainty-aware DNNs to overcome this challenge in Materials Discovery workflows. Specifically, we show that predictive uncertainty of uncertainty-aware DNNs are indicative enough to differentiate among the in-distribution data, data captured with different equipment, and data generated with different synthesis conditions.
10To put these questions into context, we consider the problem of differentiating materials based on their microstructures as observed by their SEM images. This problem is formulated as a multi-class classification problem where each class corresponds to a specific material, with unique characteristics determined by a unique set of synthesis parameters.
11We use deep neural networks (DNNs) to determine whether DL models can learn to differentiate materials purely based on their complex microstructures which are often challenging by human assessment for samples with similar looking microstructures which behave very differently in mechanical tests ( Figure 1). By determining the accuracy of the DL models along with prediction uncertainties, we may begin to understand what microstructures lead to samples with desired performance metrics and avoid extensive testing and evaluation for newly synthesized materials with high confidence predictions. By demonstrating that DL can featurize microstructural information from SEM images and classify each material with high accuracy, we can start to build confidence in DL models to screen, optimize, and discover materials in significantly shorter amount of time compared to an Edisonian approach.
Main Contributions
12Deep Learning based solutions for Materials Informatics applications have so far been suggested some times without considering these important questions listed in the previous section . Yet, techniques to ensure the dependability of automated decisions are crucial for integrating DL in Materials Discovery workflows. The main contribution of this paper is to show that uncertaintyaware DL is a unified solution that is capable of answering all these questions by leveraging predictive uncertainty of DNNs. We demonstrate the applicability of our technique by using DL models to classify the microstructural differences of a material based on their corresponding SEM images. Summary of our findings are as follows.
13• First, we show that by leveraging predictive uncertainty one can estimate classification accuracy at a given training sample size without relying on labelled data. This serves a general methodology for determining the training data set size necessary to achieve a certain target classification accuracy.
14• Next, we show that predictive uncertainty can be a guiding principle to decide which material samples should be referred to a material scientist for further testing and evaluation instead of making a DL based prediction. We find that this uncertainty guided decision referral can dramatically improve the classification accuracy on the remaining (i.e., non-referred) examples.
15• Finally, we show that predictive uncertainty can be used to detect distributional changes in the test data. We find that this scheme is accurate enough to detect a wide range of real-world shifts, e.g., due to changes in the imaging instrument or changes in the synthesis conditions.
16Although we focus on a specific materials application in this paper, the proposed methodology is quite generic and can be used to make the application of DL to a wide range of scientific domains dependable and trustworthy.
Results
17In this section, we first discuss the Materials Discovery application dataset considered in this paper. Next, we provide details on the DL models and their performance on the in-distribution test data. Finally, we discuss and evaluate the performance of proposed solutions on the three aforementioned use cases.
Figure 2.
18Representative SEM images to illustrate the typical microstructural variability for different TATB lots. The varying particle size, porosity, polydispersity, and facetness can be clearly observed. Images have been processed to normalize image contrast and brightness levels 4 .
Dataset
19Our main dataset is comprised of SEM images of 30 different lots of 2,4,6-triamino-1,3,5-trinitrobenzene (TATB). Here, a lot refers to TATB crystals produced under a specified synthesis/processing condition. TATB is an insensitive high explosive compound of interest for both Department of Energy and Department of Defense 9 . After each lot has been synthesized (with different synthesis conditions), each lot is analyzed with a Zeiss Sigma HD VP SEM to produce high-resolution scanned images, while holding image acquisition conditions (e.g., brightness and contrast settings) fixed across all lots/images. Each image tile consists of 1000×1000 pixels, with a corresponding field of view of 256.19 µm× 256.19 µm. The combined images captured for the 30 lots resulted in 59,690 greyscale SEM images. Thus, labelled data of interest for DNNs corresponds to 59,690 greyscale SEM images labeled with unique designators per class (30 in total). Example SEM images for TATB for some classes are provided in Figure 2. One can notice strong visual discrepancy across SEM images from different lots (or classes). Finally, we randomly divide the labelled SEM image dataset into three splits of 80%, 10%, and 10% splits for training, validation and testing, respectively.
Deep Learning Models
20Let X denote the SEM images and Y = {1, . . . , K} represents the K classes of materials. We use
21to represent the N training data points (pairs of images and labels). Given training and validation dataset, our goal is then to learn a classifier that predicts the quality of material samples in unseen test dataset.
22We use the Wide Residual Network (WRN) 10 architecture for its strong performance on benchmark computer vision datasets 11 . Given the WRN architecture as a starting point, we trained the following vanilla and uncertainty-aware models:
23• Vanilla Softmax: Our uncertainty-unaware baseline simply regards the softmax outputs provided by the DNN as the predictive probabilities. Unfortunately, high confidence softmax predictions can be woefully incorrect, and may fail to indicate when they are likely mistaken 12 , or detecting OOD 5 .
24• Dropout: We use Dropout 13 , a variational-inference based Bayesian uncertainty quantification approach. During the training process, Dropout DNN is trained to minimize the approximating distribution (i.e., a product of the Bernoulli distribution across the DNN parameters) and the Bayesian posterior for the DNN parameters. At inference time, Dropout predicts the outputs by Monte-Carlo sampling the network with randomly dropped out units and averaging them, which is equivalent to integrating the posterior distribution and the predictive likelihood. Simple and computationally lightweight nature of Dropout may provide approximated posteriors that are inaccurate in some scenarios 14,15 .
25• Deep Ensemble: Finally, we include Deep Ensembles 16 , a practical, scalable and non-Bayesian uncertainty quantification alternative for DNNs. As the name suggests, the core idea is to train the DNN classifier in the identical manner (i.e., same model architecture, training data and training procedure) multiple times, but each time with a random initialization of model parameters. With T DNN classifiers (parameterized by θ t ,t = 1, . . . , T ) being included in the ensemble, the prediction probability vector for Deep Ensembles is the averaged softmax vector of each DNN.
Performance Evaluation
26We evaluate the performance of DNN models in terms of their (a) predictive performance, and (b) predictive uncertainty quality.
Metrics
27The predictive performance is measured using the Classification Accuracy metric (i.e., the percentage of correct predictions among all data points). On the other hand, following ref. 17, we use the Shannon-entropy 18 Basically, it captures the average amount of information contained in the prediction: H attains its maximum value when the classifier prediction is purely uninformative (assign all classes equal probability 1/K), and attains its minimum value when the classifier is absolutely certain about its prediction (assign zero probability to all but one class). The quality of the predictive uncertainties is quantified using the following metrics:
28• Negative Log-likelihood (NLL): It is a standard metric of the uncertainty quality by calculating the log of the joint probabilities of predictions on all test samples 19 :
29Lower NLL indicates better uncertainty quality.
30• Expected calibration error (ECE): Calibration accounts for the degree of consistency between the predictive probabilities and the empirical accuracy. We adopt a popular calibration metric ECE 20 , measuring the average absolute discrepancies between the prediction confidence versus the accuracy:
31where we sort the test data points according to their confidence (the prediction probability for the most likely label, i.e., max y p(y|x)), and bin them into N b quantiles. Here acc(B j ) and con f (B j ) is the average accuracy and confidence of points in the jth bin, and B j is the number of data points in such bin. We use 20 equal-spaced bins to measure ECE in this paper. Lower ECE is more favorable. Table 1 shows that Deep Ensembles outperforms rest of the methods in Accuracy and ECE. Dropout achieves the best NLL and also a much better ECE than the Softmax baseline. Intriguingly, the two uncertainty quality metric ranks Deep Ensembles differently (best ECE and worst NLL). This might be attributed to the well-known pitfall of NLL to over-penalize the existence of samples with very low prediction probabilities for their true classes 21 . Thus, we recommend ECE as the default uncertainty quality metric to avoid such pitfall and also for its better interpretability (accuracy vs confidence). Overall, these results demonstrate the effectiveness of uncertainty-aware DNN approaches over the Softmax baseline. It is also important to remember that their performance gain over the baseline is not free. In the case of Deep Ensembles, additional cost must be spent on training and inference. For example, we trained an ensemble of 16 classifiers independently, and the computational cost is 16 times higher than the baseline. For Dropout, albeit the training cost is comparable to baseline, the inference computation is similarly expensive as Deep Ensembles. The success of Deep Ensembles is anticipated. After all, ensembling multiple machine learning models is a well known treatment to reduce the error of a single model, which has been theoretically 22, 23 and empirically 24 explained. Comparing to Dropout, the other ensemble-like technique, we hypothesize that Deep Ensembles learns multiple models whose predictions are much more diverse (lowly correlated) given the high-dimensionality and nonconvexity of DNN parameter spaces, which is crucial for enhancing the classification error and the uncertainty quantification quality 25 .
DL Trustworthiness Case Studies
32In this section, we show how uncertainty scores can be leveraged to answer the aforementioned important problems to make the Materials Discovery workflows dependable.
Case Study 1: How much data is required to train a DNN?
33The need for large amounts of labelled training data is often the bottleneck to the successful deployment of machine learning models. This is especially crucial for DNNs due to their over-parameterized nature 26,27 . Yet, in scientific applications, obtaining high-fidelity labels can be expensive due to the associated costly and time consuming experiments 28 . Therefore, an important issue is to decide how much training data is required to achieve the desired accuracy level, which allows the user to prioritize experimental plans accordingly. Conventionally, this task is done by generating the learning curve 6 , which approximately represents the relationship between the training data amount and the validation accuracy on a set of labelled data unused in training 26 . One can even further predict the needed training data size to achieve the required accuracy by extrapolating the learning curves 29,30 . However, a drawback of such conventional validation-based learning curve approach is its reliance on a large amount of labelled data unused in training to accurately evaluate the validation accuracy, which can be expensive or even infeasible in many applications. Here, we ask the question whether we can leverage the predictive uncertainty information to solve this use case with access to unlabeled validation data (i.e., SEM images without material class labels) only. Specifically, we decide to test if the average prediction confidence (which can be computed without any label information) on the unlabeled dataset can be used as a surrogate to assess the validation accuracy and approximately generate the learning curve. The logic behind such approach is that as we have discussed in the previous sub-section, for DNN models with well-calibrated uncertainties (low ECE), the average confidence should closely match the accuracy.
34To examine the feasibility, we train DNN classifiers with varying amount of training data (ranging from 10%, 20% to 100% of the maximum available training dataset size). We monitor the average validation accuracy as well as the predicted accuracy based on confidence, and plot the corresponding learning curves at Figure 3. We see a significant difference between curves for Softmax. Specifically, it over-estimates the validation accuracy and will result in under-estimating the needed training data amount. For Dropout, the two curves consistently stay close, but seem to be weakly correlated, since the average confidence can sometimes decrease while the validation accuracy keeps improving. This weak correlation can be harmful in certain scenarios. For example, the users might want to determine if the DNN performance continues to improve as training data grows, and the Dropout predicted learning curves may lead them into wrong decisions. For Deep Ensembles, the predicted learning curve not only closely matches the actual one, but also showed nearly identical trends.
35To summarize, these results show that uncertainty scores from both Dropout and Deep Ensembles can be leveraged to predict the required amount of training data to achieve a certain validation accuracy without having access to labelled validation data.
Case Study 2: How to equip DNNs with a reject option?
36Next, we tested another practical use of predictive uncertainties to identify confusing samples so that DNN can be refrained from making a prediction. This reduces the risk of making erroneous decision by rejecting to trust the classifier on certain instances and refer other difficult material samples for further testing and evaluation, instead of making an erroneous decision. This idea, formally referred as selective classification 31,32 , has been introduced recently in the context of DNN classifiers 33 .
37In this case study, we design the reject mechanism based on the predictive entropy, where the user is allowed to reject the prediction if the entropy of a DNN prediction exceeds a certain threshold. The quality of uncertainty can then be reflected by the effectiveness of the reject mechanism. To measure the performance, we adopted the risk-coverage trade-off curve 32, 33 of selective classification. Holistically, the coverage refers to the ratio of data points for which the classifier is confident enough (i.e., the predictive uncertainty is lower than a given threshold) while the risk presents the classification error among such sufficiently-confident points. The ideal goal would be to minimize the risk while maximizing the coverage.
38We compared different approaches for selective classification based on the risk-coverage trade-off curves in Figure 4. We see that the trade-off curves based on the baseline Softmax and Dropout uncertainties are nearly identical, while Deep Ensembles performed much better on this task. For example, while offering the same level of 90% coverage (i.e., the classifier will reject 6/13 to classify on the top 10% instances that it is mostly uncertain about), Deep Ensembles has around 1.5% classification error, much lower than the other two approaches (3.5%). This further verifies the superior uncertainty qualities of Deep Ensembles, and presents us another practical benefit of well-calibrated prediction uncertainties.
39To summarize, our results show that Deep Ensemble uncertainty guided decision referral can dramatically improve the classification accuracy on the non-referred material samples while maintaining a minimal fraction of referred (rejected) material samples.
Case Study 3: How to make DNNs recognize Out-of-Distribution examples?
40In the real-world setting, DNNs often encounter data collected in a different condition from those being used in the DNN training process. This can occur because of (a) changes in the image acquisition conditions, (b) changes in the synthesis conditions (e.g., discovery of a new material), or (c) unrelated data sample. In such cases, it is crucial to have a detection mechanism to flag such out-of-distribution (OOD) data points that are far away from the training data's distribution.
41In this section, we test the potential use of predictive uncertainties for detecting OOD data points, with the underlying logic being that DNN models with well-calibrated uncertainties should assign higher predictive uncertainties to the OOD instances. We formulate the OOD detection problem as a binary classification problem based on the predictive entropy, and quantify the performance of the corresponding OOD classifiers. The OOD data are regarded as the positive class and the in-distribution data as the negative class, and the OOD classifiers make decisions solely based on the values of prediction entropy. We adopt the evaluation metric in ref. 34 data being classified as OOD) versus the True Positive Rate (the probability of OOD data being classified as OOD) for different threshold on the entropy. Therefore, the closer the ROC curve is to the upper left corner (1.0, 1.0), the better the OOD classifier is 35 , while a totally uninformative classifier would exhibit a diagonal ROC curve. The AUC provides a quantitative measure on the ROC curves by measuring the areas under them. Higher (closer to 1) AUC value is better, while the uninformative classifier has an AUC of 0.5.
42Detecting Changes in Image Acquisition Conditions. To facilitate a more concrete understanding on the necessity of such OOD detection mechanism, let us first examine how our DNN classifiers perform on some real-world OOD SEM images. This particular OOD phenomena is caused by replacing the SEM filament. As a result, while the brightness and contrast settings of SEM images were held constant before and after the filament change, the newly collected images are different to the data we used in training and testing (see Figure 5) for the same lots. This is particularly applicable in an automated image collection workflow, where image collection conditions are usually set to static and constant conditions without human intervention. Such type of OOD is commonly denoted as covariate shift in Machine Learning community 36 . We recorded the DNN classification accuracy on the in-distribution (original filament) and the OOD (replaced filament) SEM images from the same material lot in Table 2. The gaps between in-distribution and OOD accuracy are substantial, ranging from 13% to 19%. This highlights the risk of being misled by DNN's erroneous predictions when encountering such real-world OOD data. Now we focus our attention to the problem of detecting the data generated using different image acquisition conditions than the training data. In this experiment, we use 1000 SEM images from the existing SEM image dataset as the in-distribution data, and obtain 1000 covariate shift (replaced filament) images for the same material as the OOD data. The ROC curves and AUC are shown in Figure 6. The classifiers based on Softmax and Dropout uncertainties both performed poorly (flat ROC curves and low AUC value), indicating that the OOD detection based on such uncertainties will not work. This is due to the fact that the difference between in-and out-of-distribution images are subtle in this experiment, making the detection task very challenging. On the other hand, the OOD classifier based on Deep Ensembles performed much better (visually from ROC curve or quantitatively from AUC). From a practical point of view, it might be the only OOD detector capable to identify a large number of replaced-filament images without triggering a high volume of false positive alarms. The superiority of Deep Ensembles is not completely surprising -it aligns with some prior research 21 that also identified Deep Ensembles as the best performer on covariate shift data. Detecting Changes in Synthesis Conditions. In this experiment, we push the OOD dataset further away from the training data distribution. Specifically, the OOD data points are SEM images for some unseen classes of the TATB crystal material, i.e., they do not belong to the 30 classes in the training dataset. The occurrence of OOD data from unseen classes will be frequently encountered in realistic applications such as material discovery due to synthesis condition changes. As seen from Figure 7, all examined approaches achieve acceptable performance (AUC higher than 0.7), meaning that they should be applicable to distinguish the SEM images from novel material classes.
43Detecting Unrelated Data. Finally, we examine an extreme case for OOD detection, where the OOD samples are truly far away (or unrelated) from the distribution of material SEM images. For this case, we obtained OOD images from the CIFAR-10 natural image dataset (including 10 categories of images, such as cats, dogs and birds) 37 . As the CIFAR-10 images were RGB color images on lower (32 by 32) resolution, some grayscale transformation and upsampling was conducted to convert them into the format of SEM images (64 by 64 grayscale). The detection results are shown in Figure 8. Deep Ensembles achieved a near-perfect detection result (AUC close to 1). Interestingly, the simple Softmax baseline also performed better than Dropout, as the latter only achieved a 0.42 AUC (worse than randomly guessing). Although CIFAR-10 images are visually distinguishable than material SEM images, the results show that it is still non-trivial to obtain a good uncertainty-based OOD detector. The near-perfect performance of Deep Ensembles is very impressive and validates the superiority of its uncertainty estimates over Softmax and Dropout.
44Can we leverage uncertainties to identify different types of shifts? Here, we ask the question if uncertainty-guided OOD detection approaches can differentiate among different sources of distributions shifts. This is an important feature to have as this might inform users on what should they do with the OOD data, for example, utilizing the OOD data to augment the existing 9/13 (a) Softmax training data (the case of changing image acquisition conditions), conducting further testing (the case of changing synthesis conditions), or simply discarding the data (the case of unrelated data).
45To answer this question, we characterize the distribution of predictive entropy for in-distribution and OOD data using histograms in Figure 9 to Figure 11. Intuitively, we expect the predictive entropy of OOD data to be always higher (i.e. more uncertain) than in-distribution ones. Furthermore, this discrepancy should become more noticeable as the OOD data shifts away from the training data distribution. However, from Figure 9 and Figure 10, we observe that both Softmax and Dropout are very confident (assigning low entropy values) on their predictions for domain-shift and CIFAR OOD data, although they both performed reasonably well for Unseen-class data. On the other hand, as seen in Figure 11, Deep Ensembles always produce higher predictive entropy for all examined OOD datasets, and the gap between in-distribution and OOD samples' predictive entropy indeed becomes more apparent with an increase in the amount of shift. In other words, Deep Ensembles can differentiate among different sources of shifts.
46To summarize, our results show that uncertainties from Deep Ensembles can be used to detect out-of-distribution sample. Further, their uncertainties are able to differentiate the sources of distribution shifts and hint towards what to do with the OOD data, e.g., using the OOD data with changed image acquisition conditions in data augmentation, conducting new mechanical testing after detecting the OOD data from unseen classes of materials, or simply discarding the unrelated OOD data.
Discussion
47In this work, we successfully demonstrated the benefits, applicability and limitations of uncertainty-aware deep learning methods for making materials discovery workflows more dependable. Specifically, we showed how uncertainty-guided methods can serve as a unified approach to answer several important problems in material informatics. There are still some issues yet to be resolved for a successful application of machine learning in Materials Discovery workflows, but addressing uncertainties in DL models is a first step to addressing implementation of DL models for materials applications.
Methods
48All programming was done in Python, with deep learning aspects using the open-source PyTorch framework 38 . We use the same architecture for the vanilla softmax and uncertainty-aware approaches (a Wide ResNet with depth 16 and width factor 2). We train the DNN models with the cross entropy loss function and the Adam optimizer 39 . The DNN model is trained from scratch (therefore, no pre-training). We set the learning rate of 0.001, and decay the learning rate by half every 50 epochs. We use a minibatch size of 64 and a weight decay factor of 5e −4 . We used 200 epochs with early stopping mechanism to terminate training when the validation performance did not improve after 100 epochs. For the baseline case (Vanilla Softmax), no dropout is used. For Dropout, we used a dropout rate of p = 0.3 and T = 16 dropout samples for inference. For Deep Ensembles, we train T = 16 models with no dropout. All other hyperparameters are kept the same as in the standard baseline case. No image pre-processing technique was adopted in the training process. Horizontal flips were used for training data augmentation.
Data availability
49The data that support the findings of this study are available from the corresponding author upon reasonable request.
Code availability
50The code used for these findings is available upon reasonable request.
참고문헌 36건
- Ensemble Methods in Machine Learning Lecture notes in computer science · Springer Science+Business Media · 2000 10.1007/3-540-45014-9_1
- Covariate Shift Adaptation by Importance Weighted Cross Validation Journal of Machine Learning Research · The MIT Press · 2007
- A Mathematical Theory of Communication Bell System Technical Journal · Institute of Electrical and Electronics Engineers · 1948 10.1002/j.1538-7305.1948.tb01338.x
- Strictly Proper Scoring Rules, Prediction, and Estimation Journal of the American Statistical Association · 2007 10.1198/016214506000001437
- Predicting good probabilities with supervised learning 2005 10.1145/1102351.1102430
- On the Foundations of Noise-free Selective Classification Journal of Machine Learning Research · The MIT Press · 2010
- Receiver-operating characteristic (ROC) plots: a fundamental evaluation tool in clinical medicine Clinical Chemistry · American Association for Clinical Chemistry · 1993 10.1093/clinchem/39.4.561
- Graph-based approach for airborne light detection and ranging segmentation Journal of Applied Remote Sensing · SPIE · 2017 10.1117/1.jrs.11.015020
- An optimum character recognition system using decision functions IRE Transactions on Electronic Computers · Institute of Electrical and Electronics Engineers · 1957 10.1109/tec.1957.5222035
- Changes in Pore Size Distribution upon Thermal Cycling of TATB‐based Explosives Measured by Ultra‐Small Angle X‐Ray Scattering Propellants Explosives Pyrotechnics · Wiley · 2006 10.1002/prep.200600063
- Speeding up automatic hyperparameter optimization of deep neural networks by extrapolation of learning curves International Conference on Artificial Intelligence · 2015
- Selective Classification for Deep Neural Networks arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1705.08500
- Deep Convolutional Neural Networks for Image Classification: A Comprehensive Review Neural Computation · The MIT Press · 2017 10.1162/neco_a_00990
- Materials discovery and design using machine learning Journal of Materiomics · Elsevier BV · 2017 10.1016/j.jmat.2017.08.002
- Crowd Counting with Deep Negative Correlation Learning 2018 10.1109/cvpr.2018.00564
- Deep Confidence: A Computationally Efficient Framework for Calculating Reliable Prediction Errors for Deep Neural Networks Journal of Chemical Information and Modeling · American Chemical Society · 2018 10.1021/acs.jcim.8b00542
- Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
- Reliable Prediction Errors for Deep Neural Networks Using Test-Time Dropout Journal of Chemical Information and Modeling · American Chemical Society · 2019 10.1021/acs.jcim.9b00297
- What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision arXiv (Cornell University) · Cornell University · 2017
- Simple and Scalable Predictive Uncertainty Estimation using Deep\n Ensembles arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1612.01474
- Building data-driven models with microstructural images: Generalization and interpretability Materials Discovery · Elsevier BV · 2017 10.1016/j.md.2018.03.002
- Machine learning in materials informatics: recent applications and prospects npj Computational Materials · Nature Portfolio · 2017 10.1038/s41524-017-0056-5
- Why ReLU Networks Yield High-Confidence Predictions Far Away From the Training Data and How to Mitigate the Problem 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00013
- (제목 없음) DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2021 10.4230/lipics.cp.2021.42
- Wide Residual Networks 2016 10.5244/c.30.87
- Recent advances and applications of machine learning in solid-state materials science npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0221-0
- Reliable and explainable machine-learning methods for accelerated material discovery npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0248-2
- Deep Ensembles: A Loss Landscape Perspective arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1912.02757
- Predicting compressive strength of consolidated molecular solids using computer vision and deep learning Materials & Design · Elsevier BV · 2020 10.1016/j.matdes.2020.108541
- A Survey of Deep Learning for Scientific Discovery arXiv (Cornell University) · Cornell University · 2020
- Anomalous Example Detection in Deep Learning: A Survey IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3010274
- Probabilistic Neighbourhood Component Analysis: Sample Efficient Uncertainty Estimation in Deep Learning arXiv (Cornell University) · Cornell University · 2020
- Learning Multiple Layers of Features from Tiny Images 2024 10.57702/zp44cu3g
- Thinking Globally, Acting Locally: On the Issue of Training Set Imbalance and the Case for Local Machine Learning Models in Chemistry ChemRxiv · 2019 10.26434/chemrxiv.8796947.v1
- Thinking Globally, Acting Locally: On the Issue of Training Set Imbalance and the Case for Local Machine Learning Models in Chemistry ChemRxiv · 2019 10.26434/chemrxiv.8796947
- Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning arXiv (Cornell University) · Cornell University · 2015