Denoising diffusion algorithm for inverse design of microstructures with fine-tuned nonlinear material properties
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (10) 아라미드(21) 에폭시수지
기본 정보
- 저자
- DOI
- 10.1016/j.cma.2023.116126
- 저널
- Computer Methods in Applied Mechanics and Engineering
- 발행년도
- 2023
- 발행기관
- Elsevier BV
- 피인용수
- 57
- 라이선스
- publisher-specific-oa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.cma.2023.116126
- 토픽
- Composite Material Mechanics
- OpenAlex ID
- W4379114738
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (10) 아라미드, (21) 에폭시수지
- R&D 측면
- 분석·모델링
- 확신도
- 0.80
- 근거 용어
- inverse design, microstructures, nonlinear material properties, denoising diffusion algorithm, constitutive responses
- 판단 근거
- 이 논문은 생성형 AI(Diffusion model)를 활용하여 원하는 비선형 기계적 물성을 가진 미세구조(microstructure)를 역설계하는 알고리즘을 다룹니다. 이는 코오롱인더스트리의 컴파운드(23)나 아라미드(10), 에폭시(21) 등 고기능성 복합소재 개발 시, 특정 물성을 구현하기 위한 최적의 미세구조 및 배합 설계를 위한 분석/모델링 도구로 활용 가능합니다.
- R&D 활용 포인트
- 고기능성 엔지니어링 플라스틱이나 복합소재 개발 시, 목표로 하는 강도, 탄성, 내열성 등의 물성을 사전에 예측하고 이를 구현하기 위한 최적의 미세구조 설계 및 소재 배합 가이드를 생성하는 데 활용할 수 있습니다.
- 평가 입력
- 섹션 본문 52,508자 중 30,032자 발췌
초록
초록이 없습니다.
본문 54,116자
본문 펼치기
섹션 본문 66문단 · 51,463자
(제목 없음)
1In this paper, we introduce a denoising diffusion algorithm to discover microstructures with nonlinear fine-tuned properties. Denoising diffusion probabilistic models are generative models that use diffusion-based dynamics to gradually denoise images and generate realistic synthetic samples. By learning the reverse of a Markov diffusion process, we design an artificial intelligence to efficiently manipulate the topology of microstructures to generate a massive number of prototypes that exhibit constitutive responses sufficiently close to designated nonlinear constitutive responses. To identify the subset of microstructures with sufficiently precise fine-tuned properties, a convolution neural network surrogate is trained to replace high-fidelity finite element simulations to filter out prototypes outside the admissible range. The results of this study indicate that the denoising diffusion process is capable of creating microstructures of fine-tuned nonlinear material properties within the latent space of the training data. More importantly, the resulting algorithm can be easily extended to incorporate additional topological and geometric modifications by introducing highdimensional structures embedded in the latent space. The algorithm is tested on the open-source mechanical MNIST data set (Lejeune, 2020). Consequently, this algorithm is not only capable of performing inverse design of nonlinear effective media but also learns the nonlinear structure-property map to quantitatively understand the multiscale interplay among the geometry and topology and their effective macroscopic properties.
Introduction
2Effective constitutive behaviors of manufactured and natural materials are governed by the material properties of the constituents, as well as the topology and geometry of microstructures (Sigmund and Maute, 2013;Kumar et al., 2020;Wegst et al., 2015). Understanding this interplay between microstructures and macroscopic constitutive behaviors is crucial for optimizing microstructures to achieve desirable properties for a wide variety of engineering purposes across length scales. Conventionally, designing a microstructure with a designated set of material responses often requires one to solve optimization problems in the spatial domain where a level set or a phase field are used as indicator functions for the different constituents. This setup often leads to a multi-objective non-convex optimization problem which is non-trivial to solve or to locate the global optimal point. This difficulty motivates the use of machine learning techniques to either embed the design space onto a lower dimensional latent space or reduce the number of costly high-resolution simulations via surrogates (Chi et al., 2021;Senhora et al., 2022). On the other hand, Woldseth et al. (2022) argue that generative methods such as generative adversarial networks (GAN) and variational autoencoders (VAE) could face challenges for small perturbations of noise, especially when these small changes may lead to profound difference in the optimized structures.
3In this work, we introduce a fundamentally different approach in which the design of the microstructures is neither completed by solving a constrained optimization neither in the physical nor the latent space. Instead, the inverse design of a microstructure is completed through a reverse diffusion process learned by a denoising diffusion probabilistic model (DDPM) in which we utilize embedded feature vectors of the target attributes to guide the diffusion generative process. Compared to the generative adversarial networks, the gradual denoising diffusion process makes the training more stable and the performance more scalable with increasing data size . DDPMs also does not suffer from the unstable training commonly found in the adversarial training of GAN. While these salient features could potentially be important for material design, the possibility of using the diffusion process to design microstructures has not been explored, according to the best knowledge of the authors. To fill this knowledge gap, we introduce context feature vectors to control both mechanical behaviors and topological features of the microstructures, allowing for the targeted inverse design of microstructures with desired nonlinear material properties properties. The relatively stable trajectory of the denoising process enables us to generate a large number of microstructure prototypes with desired macroscopic hyperelastic responses and topology characteristics such that the optimal microstructures can be searched by ranking the performance of the prototypes. To filter out the prototypes outside the desired property range, we develop a convolutional neural network surrogate that predicts the macroscopic hyperelastic energy functional behavior to efficiently rank the generated structures without the need of running full-scale finite element simulations.
4To reduce the dimensions of the design space and to enable third-party validation, we use an open source mechanical MNIST data set provided in Lejeune (2020) as our training data set. We then demonstrate the capacity of the proposed approach to accurately generate microstructures with similar energy responses to those present in the dataset. Finally, we explore the algorithm's ability to generate microstructure twins for both the energy response and topology features. Even when given the topology features outside of the training dataset, the DDPM model is capable of designing microstructures that exhibit the target macroscopic elastic responses.
Past literature on generative methods
5In the recent years, there have been significant advances in algorithms generating synthetic data samples in a wide range of applications, from generating realistic images and videos to creating synthetic voices and music. The most popular include variational autoencoders (Kingma and Welling, 2013;Vahdat and Kautz, 2020) -learning to represent input data in a lower-dimensional latent space as probabilistic distribution and sampling from it to generate new samples, autoregressive models (Kalchbrenner et al., 2017;Menick and Kalchbrenner, 2018;Razavi et al., 2019) -learning to generate new data samples by sequentially predicting each element of the sample conditioned on the previously generated elements, and generative adverserial networks (Courville and Bengio, 2014;Karras et al., 2017;Brock et al., 2018) -a generator model learns to generate samples while a discriminator model decides if they are realistic. Recently, there has been a great influx of denoising diffusion probabilistic models (Sohl-Dickstein et al., 2015;Ho et al., 2020;Ramesh et al., 2022;Rombach et al., 2022) -learning the reverse of a diffusion process modeled as a Markov chain to iteratively denoise a data structure and generate new samples, that are replacing many of these models in state of the art.
6Several works from the literature have utilized artificial intelligence methods to guide microstructure generation, including the use of variational autoencoders and Gaussian process regression, generative adversarial networks, and reinforcement learning. (Wang et al., 2020a) utilize a variational autoencoder and a regressor for property prediction that provide a distance metric to measure shape similarity, enable interpolation between microstructures and encode patterns of variation in geometries and properties. (Kim et al., 2021) design a variational autoencoder to generate a continuous microstructure space, explore structure-property relationships and predict mechanical properties of dual-phase steels with high accuracy using Gaussian process regression. Many have favored the use of GANs as the discriminator network component of the architecture is readily available to condition the generator component's predictions to be physical and have targeted properties. (Chun et al., 2020) use GANs to generate ensembles of synthetic microstructures of heterogeneous energetic materials, which can be used to quantify hot spot ignition and growth and to engineer energetic materials for targeted performance. (Kench and Cooper, 2021) can synthesize high fidelity 3D datasets using a single representative 2D image, and generated samples of arbitrarily large volumes. (Nguyen et al., 2022) combine GANs and actor-critic reinforcement learning to synthesize realistic three-dimensional microstructures with controlled structural properties, enabling the generation of microstructures that resemble the appearances of real specimens. Kobeissi et al. (2022) use a style-based generative adversarial network with an adaptive discriminator augmentation mechanism that can successfully generate authentic patterns, which can be used to augment the training dataset for finite element simulations of soft-tissue materials. However, GANs can be often difficult to train due to issues such as mode collapse, instability, and sensitivity to hyperparameters (Salimans et al., 2016;Arjovsky and Bottou, 2017). Furthermore, diffusion models have shown potential in surpassing GANs as the new state-of-the-art for image synthesis on several metrics and data sets , as GANs can trade off diversity for fidelity and do not have good coverage of the entire data distribution.
Organization of this article
7The rest of the paper is organized as follows. In Section 2, we discuss the concept of denoising diffusion probabilistic models for image generation, explore the problem definition of microstructure generation using denoising diffusion algorithms, and describe the neural network setup perform this task. In Section 3, we describe a CNN architecture that predicts the hyperelastic energy functional behavior under uniaxial extension, using the microstructure's image as input. In Section 4, we demonstrate how the denoising diffusion algorithm can be trained to generate targeted microstructures with desired constitutive responses by conditioning the microstructure generation process with the hyperelastic energy functional curves. In Section 5, we introduce another context module neural network architecture that provides a feature vector for the targeted topology, which, along with the behavior context module, guides the microstructure generation. We show its capacity to generate microstructure twins with similar energy responses and topology features as well as test its ability to generate microstructures of topologies outside of the training data set. In Section 6, we provide concluding remarks. For completeness, the open-source database we used to generating the latent design space is described in Appendix A.
Conditional diffusion for microstructure generation
8In this section, we provide a detailed account on how we extend the denoising diffusion probabilistic model, originally proposed for image synthesis, to generate microstructures with fine-tuned nonlinear material properties. We first explain the key ideas and mechanisms of the denoising diffusion probabilistic models and formulate the problem definition for the unconditional microstructure synthesis (Section 2.1). We then formulate a learning problem with the specific task of the conditional generation mircostructures with target nonlinear material properties (Section 2.2). Finally, we describe the neural network architecture used to learn the denoising generative process and highlight how we incorporate the embedded feature vectors that control the mechanical responses and the topology (Section 2.3).
Unconditional generation of microstructures
9Diffusion probabilistic models, first introduced by Sohl- Dickstein et al. (2015), are a class of generative models that aim to match a given data distribution by learning to reverse a gradual, multi-step noising process. Ho et al. (2020) proposes a specific parameterization of the generative models that simplifies the training process and establishes the equivalence between denoising diffusion probabilistic models (DDPMs) and score-based generative models, which learn a gradient of the log-density of the data distribution using denoising score matching (Hyvärinen and Dayan, 2005). Several related research works have shown that DDPMs can generate highly realistic images Ramesh et al., 2022;Rombach et al., 2022), audio (Chen et al., 2020;Kong et al., 2020) and forecast time series (Rasul et al., 2021). The outstanding performance could be attributed to the gradual and iterative nature of the diffusion (see Fig. 1).
10Young's Modulus, E Figure 1: The diffusion process and its reverse for the elastic property distribution of a microstructure. Noise is added to completely destroy the signal of the original distribution. The forward noising process q is fixed. The denoising process p θ is learned by a neural network.
11A denoising diffusion probabilistic model for image generation can be defined as a generative model that combines the properties of denoising autoencoders and diffusion processes to generate new images. These models learn a Markov chain process -where the probability of each transition depends only on the current state and time elapsed. They are trained in a supervised learning setting in which a variational inference is learned to produce samples that match the training data after a finite number of time steps. The transitions of the chain are learned to reverse a diffusion process, which adds noise to the data in the opposite direction of sampling until the signal is destroyed. In each diffusion step, the diffusion probabilistic model adds a small amount of Gaussian noise, and allows a simple neural network parameterization of the new data with the added noise. This diffusion provides a progressive trajectory from a complex data sample to Gaussian noise and thus eases the learning of the reverse denoising process by breaking it down with multiple intermediate steps as shown in Fig. 1. Using a continuous-time approximation of the reverse of the Markov noising process, the model smoothly traverses the latent space and generates new images.
12It is highlighted that adding and removing noise in the classical image synthesis context refers to manipulating the color channels of the original image. In the context of microstructure generation for this work, a channel represents the distribution of a material property in a specified material parameter range. For example, for the data set used in this work the grayscale images have one channel that represents the distribution of the Young's modulus ( Fig. 1) as described in Appendix A. The dimensionality of the problem can be increased by expanding the noise dimensions to represent more material parameters to facilitate the concurrent solution for multiple design targets and will be considered in future work.
13In this work, we incorporate the denoising diffusion probabilistic model first introduced in Nichol and to guide the generation of microstructures. For completeness, we provide an overview of the background for the unconditional diffusion process as described in Ho et al. (2020) and . The unconditional diffusion process can be used to generate realistic microstructures in the general data range. For instance, it can be used to generate a new microstruc-tures that are considered similar to the microstructures provided to train the AI (Li et al., 2018;Wang et al., 2020b;Nguyen et al., 2022).
14Unconditional generation of microstructures alone can be useful in populating the data set with synthetic data for other machine learning tasks, such as establishing a response surface when real data are scarce. In this wok, our focus, nevertheless is on the conditional microstructure generation tasks, where the goal is not to create just any microstructures but ones that hold a particular set of topological and constitutive features demanded by the users of the DDPM. In practice, the conditional and unconditional generation strategy is not necessarily employed in a mutually exclusive manner. In Sections 4 & 5, we will formulate a technique in which the guided diffusion algorithm may drop the guidance context vectors (the vectors that provide additional constraints) by a percentage to enrich the generative capacity of our algorithm. For a more complete implementation of the algorithm and the detailed differences between formulations, readers are referred to Sohl-Dickstein et al. (2015); Ho et al. (2020); Nichol and .
15Inspired by the non-equilibrium thermodynamics (cf. Sohl-Dickstein et al. (2015)), a diffusion model consists of two steps. The forward noising/diffusion process that slowly destroy structures of a data distribution and a reverse process that gradually restores the structures.
Forward process
16Consider a data distribution x 0 ∼ q(x 0 ), where x 0 is the original material property distribution sample. In the forward noising process q, we produce noised samples x 1 , ..., x T for T diffusion time steps by adding Gaussian noise in each time step. The noising is a Markov process where every noised sample x t is given by:
17where β t ∈ (0, 1) is a variance schedule. By setting α t := 1 − β t andᾱ t := ∏ t s=0 α s , it is shown that an arbitrary step of the distribution in Eq. (1) can be written as:
18and a sample can be given by:
19where ∼ (0, I). Using Bayes theorem, Ho et al. (2020) find the posterior
20where the mean of the Gaussian is:
21and the variance is:β
Reverse diffusion process
22If we can learn the reverse distribution q(x t−1 |x t ), we can sample backwards from step t = T to t = 0 to gradually remove the noise and generate a microstructure sample. Sohl-Dickstein et al. (2015) show that this is feasible since when T → ∞ and β t → 0, q(x t−1 |x t ) approaches a diagonal Gaussian distribution and a network can learn the mean µ θ and the diagonal covariance Σ θ such that:
23While Ho et al. (2020) set to only learn µ θ and select a constant Σ θ , we follow the improved formulation by to parametrize both as this was observed to achieve better log-likelihoods. Specifically, in this formulation, we learn θ (x t , t) such that:
24and additional to sample x t the model outputs a vector v to learn Σ θ (x t , t) such that:
25Thus, q and p θ constitute a variational autoencoder similar to Kingma and Welling (2013) to be trained by optimizing a variational lower bound for p θ . The training of the model optimizes two objectives. For the first learning objective, we randomly sample t and optimize µ θ using the expectation:
26to estimate a variational lower bound. The second learning objective to only optimize the learned Σ θ is:
27where:
28In the above, each term is a KL divergence between the Gaussian distributions of two successive denoising steps. The learning objective to learn both µ θ and Σ θ is defined as:
29where λ = 0.001 is a scaling factor selected to weigh the two objectives similar to Nichol and Dhariwal (2021).
Conditional diffusion with embedded feature vectors
30While the unconditional diffusion described in the previous section can readily generate microstructures consistent with the training data set, our goal is to design microstructures that exhibit prescribed mechanical behaviors. To achieve this goal, we usa a conditional diffusion process which fine-tunes the resultant microstructures via feature vectors. We enforce the designated material properties by introducing context into the synthesis problem, following a relevant approach that utilized image classes or textual descriptions to provide context to target specific images (Ramesh et al., 2022). Our approach, however, differs in that we aim to introduce context to control both targeted mechanical behaviors and targeted topologies, and we do so by incorporating context in the form of feature vectors into the denoising diffusion algorithm. Along the time embedding feature vector that is common in diffusion algorithms, our algorithm additionally employs a mechanical feature vector for every desired target property. This treatment allows us to modularize the problem and control different properties of the microstructures in a separate and distinct manner. For every desired target property, we introduce a feature vector and a corresponding neural network context module that will be trained in tandem with the diffusion algorithm.
31To incorporate the feature vector conditioning, we follow by introducing a conditional Markov processq that adds noise similar to q described in the previous section.
32Figure 2: Schematic of the sampling framework for microstructure generation conditioned by context feature vectors ζ A and ζ B . The generated microstructures are further filtered by a surrogate model to demonstrate macroscopic behaviors in a desired admissible range.
33We define the conditional noising process to:
34where {ζ 1 , ..., ζ N } are the corresponding context feature vector embeddings for i = 1, ..., N target microstructure properties -be it behavior or topology. refer to a class conditioning given y supervised labels (image classes) but we perform the conditioning with unsupervised labels that are embedded during training, more similar to the Ramesh et al. (2022) approach. Thus, we are also givenq(ζ 1 , ..., ζ N |x 0 ) to be the embedding generated during the training process. It is noted that these context vectors are constant and independent of the diffusion process time. Dhariwal and Nichol (2021) show that the conditional noising process with a diffusion time-independent class behaves similar to the unconditional noising process as described in the previous section and can be used to guide image synthesis. Thus, in order to perform the conditional sampling, we will need to train two neural network approximations. The first is the approximation p θ (x t−1 |x t ) of q(x t−1 |x t ) to perform the denoising as described in the previous section. The second is p φ (ζ 1 , ..., ζ N |x t ) ofq(ζ 1 , ..., ζ N |x t ) for the generation of the unsupervised labels. The two will be optimized simultaneously using the training objectives in Eq. (10) and Eq. (11).
35In Fig. 2, we demonstrate a schematic of the sampling process for the conditional microstructure generation for two sample context feature vectors ζ A and ζ B . Each context vector corresponds to a different type of conditioning (e.g. macroscopic response and topology respectively). At the core of the algorithm, there is a neural network architecture that learns the reverse of the diffusion process. Starting by a random Gaussian noise input, it can iteratively denoise the sample from time t = T to t = 0 to generate a synthetic microstructure. Without the conditioning by a feature vector, the neural network will be able to sample microstructures from entire data set latent space representation p θ (x t−1 |x t ). By introducing the context feature vectors, we can fine-tune the latent space the model samples from to p θ (x t−1 |x t , ζ A , ζ B ). To further fine-tune the microstructure generation to the desired material nonlinear properties, we introduce an additional step to filter the mass generated microstructures. We train an surrogate model that predicts the macroscopic response of the generated microstructures, ranks the samples, and filters out the ones that do not satisfy a desired admissible range. More details on this process are discussed in Section 3.
Denoising diffusion neural network model architecture
36In this section, we explain (1) the neural network architecture used to perform the denoising diffusion and (2) how the context feature vectors to perform the conditioning are introduced into the diffusion process. The architecture we used is modified from an implementation of Nichol and . They have adopted and improved on the U-net architecture used by Ho et al. (2020), which have adapted the PixelCNN++ (Salimans et al., 2017) and Wide ResNet (Zagoruyko and Komodakis, 2016) for their image synthesis tasks. This architecture is used to approximate the denoising process as described in the previous section.
37We acknowledge that the dimensionality and resolution of the images that represent the microstructure in this work -the MNIST data set (Deng, 2012), are smaller than those studied in Nichol and , such as the CIFAR-10 ( Krizhevsky et al., 2009) and ImageNet 64×64 (Deng et al., 2009). Thus, we adapt a smaller architecture version of the original U-net that was deemed adequate to perform our synthesis tasks. Specifically, in our U-net implementation, there are two stacks that perform the downsampling and upsampling in four steps respectively. Each step has one residual block. We use one attention head with 32×32, 16×16, and 8×8 attention resolutions. We modify the output of the architecture to have one output image channel to produce the microstructure grayscale material property maps. The U-net utilizes [C, 2C, 4C, 8C] channel widths from higher to lower resolutions with the base model channel size selected as C = 32. The architecture is conditioned by the diffusion time step t through an embedded feature vector ζ t . This vector is produced by a sequential two-layer network -it has two-dense layers of 128 neurons each with a Sigmoid Linear Unit (SiLU) and a Linear activation function respectively.
38At this point of the architecture, we inject our context feature vectors to perform the microstructure conditioning. Specifically, given context data structures Z i for i = 1, ..., N target properties to condition the microstructure generation with, we define neural network architectures c i that produce context feature vector embeddings ζ i = c i (Z i ). In this framework, the context data structures are curves (hyperelastic energy functional responses) and 2D images (topologies). However, any other type of data structure can be embedded to control the generation process. The context feature vector embeddings are introduced in the architecture by defining an embedding vector ζ emb for both the diffusion time and the microstructure properties as:
39In this work, we will introduce two types of context embeddings, by (1) material behavior and (2) topology in Section 4 and Section 5 respectively. The corresponding neural network architectures c i are defined in these sections. We highlight that we introduce the conditioning as the summation of embedded feature vectors to allow a modular structure of the framework independent of the diffusion algorithm. More types of conditioning will be considered in future work.
Neural network for material behavior prediction
40In order to further optimize the microstructure generation for desired material nonlinear properties, we train a surrogate model which predicts the macroscopic response of the generated microstructures and, subsequently, ranks and filters out samples which do not fall within the desired admissible hyperelastic energy functional range. In this section, we describe the Convolutional Neural Network (CNN) architecture to perform this task. Given the distribution of a microstructure's Young's modulus, the model can predict the hyperelastic energy functional behavior under uniaxial extension. This CNN model can be used to predict the behavior of a new microstructure during a uniaxial extension simulation, eliminating the need to perform a complete finite element simulation. These predictions can then be used in place of the output of an FEM simulation, allowing for faster prediction of the microstructure's behavior with a reasonable trade-off in accuracy. It is noted that full-scale finite element simulations will also eventually be used to validate the generated microstructures in following sections. However, the CNN counterpart will be used to quickly check the estimated behavior of a microstructure. The neural network implemented follows a standard CNN architecture and consists of two Convolutional layers with a kernel size of 3, stride of 1, and padding of 1. The first CNN layer has 1 input channel and 16 output channels, and the second Convolutional layer has 16 input channels and 16 output channels. The output of the first Convolutional layer is passed through a Max Pooling layer with a kernel size of 2 and stride of 2, which down-samples the input by taking the maximum value over a 2x2 window. The output of the second Convolutional layer is also passed through a Max Pooling layer with the same configuration. The output of the second Max Pooling layer is then flattened to a single dimension, representing the features extracted by the CNN. This flattened output is then passed through three fully-connected (Dense) layers with 120, 84, and 13 neurons, respectively. The output size of 13 corresponds to the number of time steps in the Mechanical MNIST uniaxial extension curves. The ReLU activation function is applied to the output of the CNN and Dense hidden layers, while the output uses a Linear activation function. The kernel weight matrices of the layers are initialized with the default Glorot uniform distribution, and the bias vectors are initialized with a zero distribution. The model was trained for 200 epochs with a batch size of 256 using the Adam optimization algorithm with a learning rate of 10 − 3 and a mean squared error (MSE) loss function. The learning rate was reduced by a factor of 0.9 when the validation loss plateaued for 5 epochs. The network was trained on the 60,000 and validated on the 10,000 MNIST training and test samples and their corresponding energy functional ψ curves of the database described in Appendix A. The results of the training are demonstrated in Fig. 3 where the network is shown to perform well in the training set with a good capacity to generalize outside the samples used for the calibration.
Generation of hyperelastic microstructures conditioned by material behavior
41In this section, we will demonstrate that the denoising diffusion algorithm described in a Section 2 can be trained on the Mechanical MNIST data set to generate targeted microstructures with desired constitutive responses by conditioning the microstructure generation process with the hyperelastic energy functional curves. In Section 4.1, we will first describe the hyperelastic curve context module of the diffusion algorithm, the training of the architecture, and the capacity of the algorithm to generate synthetic microstructures with similar statistical properties as the given data set. In Section 4.2, we will input random polynomials to design targeted microstructures outside of the training range and explore the capacity of the algorithm to generate microstructures for unseen behaviors.
Training of behavior conditioned architecture
42In this section, we introduce a context module neural network architecture that extracts the behavior feature vector of the hyperelastic energy functional curves from the Mechanical MNIST dataset to guide the microstructure generation process. We detail the training procedure and demonstrate the capacity of the architecture to accurately generate microstructures with similar energy responses to these present in the Mechanical MNIST dataset. The context module in this section embeds the hyperelastic energy functional curves described in Appendix A into feature vectors. The module follows a simple feed-forward neural network architecture. It inputs the energy functional values ψ of the 13 time steps of the uniaxial extension experiments of the Mechanical MNIST data set. It is noted that here we are only using the energy functional values since the displacement inputs for all the FEM simulations are the same and this input information would be redundant as a context for this case of microstructure generation. In the case the input strain was variable or there existed different types of tests in the database, we would have to input additional identifiers to properly control the microstructure generation. The sequential module has two Dense layers of 128 neurons each. The hidden layer has a SiLU activation function and the output feature vector layer has a Linear activation function. We opt for an embedded feature vector of 128 neurons that matches the dimensions of the time embedding vector. The predicted behavior feature vector is added to the time embedding feature vector as described in Section 2.3. The kernel weight matrices of the layers are initialized with the default Glorot uniform distribution, and the bias vectors are initialized with a zero distribution.
43After assembling the diffusion architecture with the behavior context module, we train the diffusion model for 50,000 steps on the 60,000 sample pairs of MNIST handwritten digits and energy functional curves. We also set the context to be dropped with a 10% chance -the feature vector used is ζ emb = ζ t -to improve the algorithm's capacity to perform unconditional synthesis. We opt for 1000 diffusion time steps with a linear noise schedule as used in Ho et al. (2020). We use an Adam optimizer (Kingma and Ba, 2014) with a learning rate of 10 −4 with a batch size of 128. In Fig. 4, we observe that the algorithm can create twins for a specific behavior that do not look alike or do not resemble the topologies in the training data set. All three microstructures are generated for the same mechanical response from the mechanical MNIST testing data set. The algorithm is trained on images of handwritten digits and does not have any limitations or context guidance on the generated images to fall within a specific image class. This is an important aspect of the behavior guided diffusion model. It means that the algorithm is not constrained to generate microstructures that resemble the images it was trained on but rather has the ability to generate a wide variety of microstructures that may have different shapes, forms, and other properties. This feature allows for a greater degree of flexibility in the design of microstructures and has the potential to enable the generation of microstructures with specific properties that may not be found in the training dataset. Additionally, it also allows to generate microstructures with shapes or forms that are not seen during the training phase. This ability to generalize and adapt to new behavior context inputs is a key advantage of this approach to microstructure generation, as it enables the discovery of a diverse range that can meet specific design criteria.
44It is highlighted that it is expected the generated microstructures do not necessarily correspond to a perfectly accurate energy response compared to the target one. This is because the generation process is probabilistic and performed using the denoising diffusion probabilistic algorithm, which inherently introduces a degree of uncertainty. As a result, the generated microstructures have an error range in their predictions of the energy response. To control the degree of accuracy of the generated microstructures, we filter out the ones that do not satisfy a target MSE error limit of MSE< 10 −4 using the CNN architecture previously described in Section 3. Thus, we can batch generate multiple microstructures and quickly select the desired ones without having to run the much slower finite element simulations to validate. In Fig. 5, we demonstrate 16 microstructure twins that were batch generated in this way for the same mechanical MNIST testing curve. The error range of the generation process is further explored in the following section.
Generate hyperelastic microstructures with polynomial energy functional
45In this section, we will be further testing the genation for energy functional forms not included in the data set. Instead of using the hyperelastic energy functionals of the Mechanical MNIST data set as a guide, we will be using a set of random energy functional polynomials as the target behaviors to generate microstructures. These random polynomials will be selected from the coefficient ranges present in the Mechanical MNIST data set and validate that the generated microstructures are physically realistic and representative of the range of behaviors present in the data set. By using these random polynomials as the target behaviors, we can generate a diverse set of microstructures with a wide range of hyperelastic properties, rather than being limited to the specific behaviors present in the original dataset. This allows for the exploration of the behavior of microstructures with a wider range of properties and to more fully understand the relationship between microstructure and behavior.
46To generate the target polynomials for the microstructure generation process, we first fit all the energy functional curves in both the training and testing data sets with third-order polynomials. The general form of the polynomials is ax 3 + bx 2 + cx. After fitting the curves, we find the ranges of the coefficients a = [−0.0162, −0.0047], b = [0.6346, 1.3968], and c = [0.00532, 0.4114] We sample three random polynomials from these coefficient ranges to explore the entire energy data range of the data set. From a higher to a lower energy functional range, we sample −0.014x 3 + 1.368x 2 + 0.057x., −0.011x 3 + 0.919x 2 + 0.062x, and −0.013x 3 + 0.709x 2 + 0.276x. The data range and the sampled energy functionals are shown in Fig. 7(a).
47In order to generate microstructures with accurate targeted behaviors, we filter the generated microstructures using the CNN architecture previously described in Section 3. We continuously generate microstructures until 512 of them are predicted to have an MSE< 10 −4 . The error range of the predictions can be quantified and is shown in a Fig. 6(a). In this figure, we end up generating 2112 microstructures for the second target polynomial −0.011x 3 + 0.919x 2 + 0.062x as a context, and plot the error range of every predicted behavior using the CNN. We also plot the MSE distribution curve for these predictions, shown in Fig. 6(b). This allows to visualize the overall accuracy of the CNN in predicting the energy response of the generated microstructures, as well as the range of errors that we can expect in these predictions. In addition to visualizing the overall error distribution, we can also use the CNN to filter out and select only the microstructures that have a predicted MSE within a certain range. In Fig. 6(c), we plot the 2112 generated microstructures, and highlight the 512 that have a predicted MSE lower than a selected 10 −4 admissible limit. We also replot the error range for this MSE limit in Fig. 6(d), to show how the errors are distributed among the selected microstructures. By selecting only the microstructures with a predicted MSE below a certain limit, we can effectively filter out the microstructures that have a higher degree of uncertainty, and focus on those with a higher degree of accuracy without having to run a full FEM simulation.
48The filtering procedure is performed during the microstructure generation for all the target polynomials. The results for the generated microstructures are shown in Fig. 7(c), (d), and (e). The microstructures shown were first selected to have a MSE less than 10 −4 . To validate the microstructure design, we also test the microstructure by performing a forward FEM simulation and validate that the generated microstructures indeed have the desired behaviors. We can also observe that the shapes are progressively thicker from lower to higher polynomial value ranges. This is expected as the higher final energy functional values represent increasingly stiffer materials -it is expected that more stiff inclusion material is predicted for the microstructures. By carefully selecting the target behavior, we can achieve a high-level control of the overall shape and topology of the generated microstructures with an accurate control of the target behavior. In the next section, along with the target behavior we will control the topology of the generated microstructures as well.
Generation of hyperelastic microstructures conditioned by both material behavior and topology
49In this section, we introduce another context module neural network architecture that will provide another feature vector to control topology. Along with the behavior context module, it will be used to guide the microstructure generation for two concurrent tasks. We outline the training procedure and demonstrate the capacity of the architecture to generate microstructure twins now for both the energy response and topology features for the behaviors and microstructure present in the Mechanical MNIST data set. Additionally, we will test the capacity of the diffusion algorithm to generate microstructures of topologies outside of the training data set.
Training of behavior and topology conditioned architecture
50In this section, we introduce an enhanced context module neural network architecture that extracts both behavior and topology feature vectors from the Mechanical MNIST data set to guide the microstructure generation process. In addition to the material behavior module introduced in the previous section, we now also include a topology module. We detail the training procedure and demonstrate the capacity of the enhanced architecture to accurately generate microstructures with similar energy responses and topologies to those present in the Mechanical MNIST data set. The additional topology context module follows a convolutional neural network architecture. The architecture has two convolutional layers of kernel size 3, stride 1 and padding 1 with ReLU activations. The first layer inputs the grayscale map that describes the desired target material property distribution context. Both layers have 16 output channels. Both are followed by a max pooling layer of kernel size 2 and stride 2 to down-sample their output. The output of the second pooling layer is then flattened and passed through three fully-connected layers with 128 neurons each with two ReLU activations and a Linear one respectively. This choice of 128 neurons is made as it aligns with the size of time and behavior context embedding vectors from the previous sections. Similarly to the previous section, the context vector containing the time, behavior, and topology contexts comes from the summation of the three embedded vector counterparts. The training procedure is identical to the one described in Section 4.1 with the difference that along every sample we also input a topology context map.
51With the addition of a topology module, along with the material behavior module, we are now able to perform more controlled microstructure generation tasks. In Fig. 8, we demonstrate the generation of microstructures from image and curve pairs from the Mechanical MNIST testing set. In this example, we attempt to create twins for a randomly sampled microstructure and its corresponding hyperelastic behavior. We first check if the algorithm can reproduce a microstructure with the same topology context (the digit 7) and behavior. We then test the capacity to generate microstructures that have the same behavior context but different topology context inputs randomly sampled from the MNIST test set (the digits 6 and 4). We can see the algorithm modifies the material property map inputs to synthesize structures to adjust to the specific target behavior. These microstructures not only look similar to the images they were generated from but also have the same hyperelastic behavior as the target energy functional curve. Thus, we show that we can perform the creation of both behavior and topology twins. While in this example the alterations from the input context images may seem slight, we test some more apparent topology changes in the following section.
Generation of topologies outside the training dataset
52In this section, we will investigate the capability of the behavior and topology guided diffusion model to generate microstructures for topologies that are not represented in the Mechanical MNIST data set. Despite the algorithm being trained on images of handwritten digits, there are no limitations or context guidance imposed on the generated images to fall within a specific image class, as previously demonstrated in Section 4.1. This suggests that the algorithm has the potential to generate microstructures of other shapes and geometries as well. However, it is observed that while the topology context input is dissimilar to the MNIST data set, the images generated in this section tend to resemble the MNIST style.
53By focusing on the topology context aspect of image generation, we will create microstructures that share the same energy response, represented by the energy functional −0.011x 3 + 0.919x 2 + 0.062x -all the microstructures in this section have the same energy response. Additionally, to im-prove the accuracy of the generated microstructures, we utilize a mass generation method of prototypes and employ a CNN model from Section 3 to filter out those microstructures that have a predicted MSE> 10 −4 . We were able to utilize the proposed method to generate microstructures that spell the word "twin" as illustrated in Fig. 9. Furthermore, we demonstrate the denoising process, in which the letters α, β, and γ were generated, as depicted in Fig. 10. These characters were not present in the training data set, however, the algorithm has a limited capability to recreate them while also conforming to the target energy functional behavior. Figure 9: Microstructure generation and FEM simulation results for the target energy functional polynomial −0.011x 3 + 0.919x 2 + 0.062x and target images that spell the word "twin".
54An analysis of the results generated by the behavior and topology guided diffusion model illustrate the potential benefits of utilizing this approach in the synthesis of microstructures. These advantages include the ability to create microstructures of specific shapes, as well as the potential to design microstructures with other properties, such as symmetry and targeted material volumes and ratios. Nevertheless, a current challenge in this application is the limited similarity between the topology context inputs used and the Mechanical MNIST data set. This has resulted in difficulty in efficiently identifying suitable microstructures, as well as instances in which it is not possible to discover microstructures with a predicted energy response with MSE < 10 −4 at all. Specifically, when topology context inputs are dissimilar to the MNIST data set, the error range of the generated microstructures may be larger, deeming it harder to find a suitable microstructure. For example, inputting a very stiff topology context image and an energy curve in the lower range of the material behaviors, it is expected that the algorithm would have difficulty in designing a microstructure that satisfies both criteria simultaneously.
55One potential solution to this obstacle in discovering microstructures with dissimilar topology context inputs would be to augment the training data set. Specifically, by selecting a more heterogeneous data set that includes a diverse range of microstructure shapes and forms, the algorithm would have access to a wider range of reference examples upon which to base its generative process. Furthermore, in cases where a specific inclusion shape is desired, incorporating additional examples of that shape within the training data set could also prove beneficial in terms of improving the algorithm's ability to generate microstructures featuring that specific shape. Additionally, employing other forms of guidance within the microstructure generation process, such as through the use of metrics (e.g. a symmetry loss metric, a target ratio of soft to stiff material) or neural networks, could also help to improve the quality of the generated microstructures. Such additional guidance mechanisms can provide a filter for the generated microstructures, allowing the algorithm to focus on those with the desired characteristics and eliminate those that are not similar to the target topology. Figure 10: Microstructure generation and neural network prediction results for the target energy functional polynomial −0.011x 3 + 0.919x 2 + 0.062x and targeted images for the letters α, β, and γ. The results are shown for denoising steps 1, 750, and 1000.
Conclusion
56We present a novel approach to design microstructures with desired mechanical behaviors and topologies by introducing context feature vectors that control targeted properties in a DDPM model. We demonstrate the capacity of the architecture to accurately generate microstructures with similar energy responses and topologies to those present in the Mechanical MNIST data set, while demonstrating a reasonable extrapolating capacity. Our method is based on a modular framework where a feature vector is assigned to every desired target property. This allows for the incorporation of different types of target properties and their corresponding embeddings, rendering the problem more scalable and easier to interpret. Future work will explore the design of microstructures with additional behavior controls such as behaviors in the microscale along the macroscopic responses and more precise topology constraints, such as symmetry. This could be achieved by introducing more complex microstructure databases as well as additional constraints in the diffusion algorithm. The flexibility and speed of the design of microstructures using diffusion algorithms will not only facilitate the generation of digital twins but could also be extended to generate synthetic databases in usually data-scarce engineering applications.
57with additional support provided to WCS by the Department of Energy DE-NA0003962. These supports are gratefully acknowledged. The views and conclusions contained in this document are those of the authors, and should not be interpreted as representing the official policies, either expressed or implied, of the sponsors, including the Army Research Laboratory or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.
Data and code availability
58The data and computer code that support the findings of this study are available from the corresponding author upon request.
A Mechanical MNIST Database
59This work uses the Mechanical MNIST data set (Lejeune, 2020) that contains pairs of heterogeneous microstructures and their corresponding hyperelastic responses. Mechanical MNIST is a data set of finite element simulation results generated from images in the MNIST database of handwritten digits (Deng, 2012). The MNIST dataset is a large database of handwritten digits that is commonly used for training, evaluating, and benchmarking image classification algorithms. It consists of 60,000 training images and 10,000 test images, each of which is a 28x28 pixel grayscale image of a handwritten digit from 0 to 9.
60Uniaxial Extension Test Figure 11: The Mechanical MNIST data set includes 60,000 training and 10,000 testing microstructures based on the MNIST handwritten digits data set and their corresponding total strain energy response curves in uniaxial extension.
61The images are transformed into material properties using a compressible Neo-Hookean material model, where the strain energy functional ψ is given by
62where F is the deformation gradient and µ, λ are the Lamé coefficients. The Lamé coefficients at every pixel are calculated through the corresponding Young's modulus:
63where β is the value of the grayscale bitmap and a constant Poisson's ratio of ν = 0.3, such that:
64and µ = E 2(1 + ν)
65.
66Thus, the resulting microstructures in the data set have stiff elastic inclusions in a two orders of magnitude softer elastic domain. Finite element simulations are then run on the resulting material domains, with the bottom of the domain fixed and the top displaced according to a set of prescribed displacements. The applied displacements range from 0 to half the initial size of the domain. The finite element simulations are run using the FEniCS platform (Alnaes et al., 2015) with a mesh size of 39,200 quadratic triangular elements which corresponds to approximately 140 elements per pixel in the MNIST image. The Mechanical MNIST data set includes load cases in addition to the uniaxial extension used in this work, such as shear, equibiaxial extension, and confined compression. Fig.11 shows 5 samples from the training set as well as the error range of the responses in the entire Mechanical MNIST data set.
참고문헌 56건
- Adam: A Method for Stochastic Optimization 2014
- Explaining and Harnessing Adversarial Examples arXiv (Cornell University) · Cornell University · 2014
- Auto-Encoding Variational Bayes 2014
- The MNIST Database of Handwritten Digit Images for Machine Learning Research [Best of the Web] IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2012 10.1109/msp.2012.2211477
- Bioinspired structural materials Nature Materials · Nature Portfolio · 2014 10.1038/nmat4089
- Statistical Description of Microstructures Annual Review of Materials Research · Annual Reviews · 2002 10.1146/annurev.matsci.32.110101.155324
- Representation Learning: A Review and New Perspectives IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2013 10.1109/tpami.2013.50
- The FEniCS Project Version 1.5 Department of Earth Sciences EPrints Repository · 2015 10.11588/ans.2015.100.20553
- Topology optimization approaches Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2013 10.1007/s00158-013-0978-6
- 3D conditional generative adversarial networks for high-quality PET image estimation at low dose NeuroImage · Elsevier BV · 2018 10.1016/j.neuroimage.2018.03.045
- Meta-modeling game for deriving theory-consistent, microstructure-based traction–separation laws via deep reinforcement learning Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.11.026
- Physics-aware Deep Generative Models for Creating Synthetic Microstructures arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1811.09669
- Generating High Fidelity Images with Subscale Pixel Networks and\n Multidimensional Upscaling arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1812.01608
- Large Scale GAN Training for High Fidelity Natural Image Synthesis arXiv (Cornell University) · Cornell University · 2018
- Improved Techniques for Training GANs arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1606.03498
- A Transfer Learning Approach for Microstructure Reconstruction and Structure-property Predictions Scientific Reports · Nature Portfolio · 2018 10.1038/s41598-018-31571-7
- PixelCNN++: Improving the PixelCNN with Discretized Logistic Mixture\n Likelihood and Other Modifications arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1701.05517
- Wide Residual Networks 2016 10.5244/c.30.87
- Towards Principled Methods for Training Generative Adversarial Networks arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1701.04862
- Generating Diverse High-Fidelity Images with VQ-VAE-2 arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1906.00446
- Estimation of Non-Normalized Statistical Models by Score Matching Journal of Machine Learning Research · The MIT Press · 2005 10.5555/1046920.1088696
- Mechanical MNIST: A benchmark dataset for mechanical metamodels Extreme Mechanics Letters · Elsevier BV · 2020 10.1016/j.eml.2020.100659
- Mining structure–property relationships in polymer nanocomposites using data driven finite element analysis and multi-task convolutional neural networks Molecular Systems Design & Engineering · Royal Society of Chemistry · 2020 10.1039/d0me00020e
- Inverse-designed spinodoid metamaterials npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-0341-6
- C-Flow: conditional generative flow models for images and 3D point clouds UPCommons institutional repository (Universitat Politècnica de Catalunya) · Universitat Politècnica de Catalunya · 2020 10.1109/cvpr42600.2020.00797
- Denoising Diffusion Probabilistic Models arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2006.11239
- NVAE: A Deep Hierarchical Variational Autoencoder arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2007.03898
- Deep learning for synthetic microstructure generation in a materials-by-design framework for heterogeneous energetic materials Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-70149-0
- Deep generative modeling for mechanistic-based learning and design of metamaterial systems Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.113377
- Virtual microstructure design for steels using generative adversarial networks Engineering Reports · Wiley · 2020 10.1002/eng2.12274
- Improved Techniques for Training Score-Based Generative Models arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2006.09011
- Universal machine learning for topology optimization Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2019.112739
- Learning Multiple Layers of Features from Tiny Images 2024 10.57702/zp44cu3g
- Denoising Diffusion Implicit Models arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2010.02502
- WaveGrad: Estimating Gradients for Waveform Generation arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2009.00713
- Exploration of optimal microstructure and mechanical properties in continuous microstructure space using a variational autoencoder Materials & Design · Elsevier BV · 2021 10.1016/j.matdes.2021.109544
- DiffWave: A Versatile Diffusion Model for Audio Synthesis arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2009.09761
- Generating 3D structures from a 2D slice with GAN-based dimensionality expansion arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2102.07708
- Diffusion Models Beat GANs on Image Synthesis arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2105.05233
- Towards Unifying Feature Attribution and Counterfactual Explanations: Different Means to the Same End 2021 10.1145/3461702.3462597
- ILVR: Conditioning Method for Denoising Diffusion Probabilistic Models 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.01410
- TONR: An exploration for a novel way combining neural network with topology optimization Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2021 10.1016/j.cma.2021.114083
- Data-driven discovery of interpretable causal relations for deep learning material laws with uncertainty propagation Granular Matter · Springer Science+Business Media · 2021 10.1007/s10035-021-01137-y
- Hierarchical Text-Conditional Image Generation with CLIP Latents arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2204.06125
- 2009 IEEE Conference on Computer Vision and Pattern Recognition 2009 10.1109/cvpr14067.2009
- Synthesizing controlled microstructures of porous media using generative adversarial networks and reinforcement learning Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-12845-7
- Improving Diffusion Models for Inverse Problems using Manifold Constraints arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2206.00941
- Enhancing Mechanical Metamodels With a Generative Model-Based Augmented Training Dataset Journal of Biomechanical Engineering · ASM International · 2022 10.1115/1.4054898
- Machine learning for topology optimization: Physics-based learning through an independent training strategy Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2022 10.1016/j.cma.2022.115116
- Distill-and-Compare 2018 10.1145/3278721.3278725
- Glow: Generative Flow with Invertible 1x1 Convolutions arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1807.03039
- Three-dimensional microstructure generation using generative adversarial neural networks in the context of continuum micromechanics Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2022 10.1016/j.cma.2022.115497
- Progressive Growing of GANs for Improved Quality, Stability, and\n Variation arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1710.10196
- On the use of artificial neural networks in topology optimisation Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2022 10.1007/s00158-022-03347-1
- High-Resolution Image Synthesis with Latent Diffusion Models 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.01042
- Generative Adversarial Nets Springer eBooks · Springer Nature · 2023 10.1007/978-3-658-40442-0_9