Efficient hybrid explicit-implicit learning for multiscale problems
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(7) MEA(막전극접합체)
기본 정보
- 저자
- DOI
- 10.1016/j.jcp.2022.111326
- 저널
- Journal of Computational Physics
- 발행년도
- 2022
- 발행기관
- Elsevier BV
- 피인용수
- 14
- 라이선스
- publisher-specific-oa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.jcp.2022.111326
- 토픽
- Composite Material Mechanics
- OpenAlex ID
- W4282005104
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (21) 에폭시수지, (7) MEA(막전극접합체)
- R&D 측면
- 분석·모델링
- 확신도
- 0.40
- 근거 용어
- multiscale problems, machine learning, Transformer, numerical examples, splitting scheme
- 판단 근거
- 이 논문은 다중 스케일(multiscale) 물리 문제를 해결하기 위해 Transformer 기반의 하이브리드 머신러닝 알고리즘을 제안하는 수치 해석 연구입니다. 코오롱인더스트리의 직접적인 제품 연구는 아니나, 복합소재(23)의 미세 구조 해석이나 화학/수지(21)의 물성 예측, 혹은 연료전지(7) 내의 복잡한 물리 현상 모델링을 위한 수치 해석 기법으로 응용 가능성이 있습니다.
- R&D 활용 포인트
- 고분자 컴파운드나 복합소재의 미세 구조(microstructure) 변화에 따른 물성 예측 모델링 또는 수소 연료전지 내의 다중 스케일 물리 현상(가스 확산, 수분 이동 등)을 가속화하여 시뮬레이션하는 데 활용할 수 있습니다.
- 평가 입력
- 섹션 본문 36,487자 중 30,032자 발췌
초록
초록이 없습니다.
본문 37,830자
본문 펼치기
섹션 본문 82문단 · 35,731자
(제목 없음)
1Splitting method is a powerful method to handle application problems by splitting physics, scales, domain, and so on. Many splitting algorithms have been designed for efficient temporal discretization. In this paper, our goal is to use temporal splitting concepts in designing machine learning algorithms and, at the same time, help splitting algorithms by incorporating data and speeding them up. Since the spitting solution usually has an explicit and implicit part, we will call our method hybrid explicit-implict (HEI) learning. We will consider a recently introduced multiscale splitting algorithms, where the multiscale problem is solved on a coarse grid. To approximate the dynamics, only a few degrees of freedom are solved implicitly, while others explicitly. This splitting concept allows identifying degrees of freedom that need implicit treatment. In this paper, we use this splitting concept in machine learning and propose several strategies. First, the implicit part of the solution can be learned as it is more difficult to solve, while the explicit part can be computed. This provides a speed-up and data incorporation for splitting approaches. Secondly, one can design a hybrid neural network architecture because handling explicit parts requires much fewer communications among neurons and can be done efficiently. Thirdly, one can solve the coarse grid component via PDEs or other approximation methods and construct simpler neural networks for the explicit part of the solutions. We discuss these options and implement one of them by interpreting it as a machine translation task. This interpretation of the splitting scheme successfully enables us using the Transformer since it can perform model reduction for multiple time series and learn the connection between them. We also find that the splitting scheme is a great platform to predict the coarse solution with insufficient information of the target model: the target problem is partially given and we need to solve it through a known problem which approximates the target. Our machine learning model can incorporate and encode the given information from two different problems and then solve the target problems. We conduct four numerical examples and the results show that our method is stable and accurate.
Introduction
2Splitting methods are used for many applications, where splitting physics, scales, domains, and so on, are considered. These approaches allow simplifying problems and solving them separately and then coupling. Recently, novel splitting approaches are proposed for multiscale problems. The main idea of these approaches is to identify the coarse grid components of the solution and treat them implicitly, while treating other components explicitly. In particular, the stability analysis shows that one needs to choose spaces appropriately such that the first space contains all components associated with high contrast and multiscale features of the solution. Using this splitting, we show that one can choose the time step that scales as the coarse mesh size and the time step is independent of the contrast. This approach, on the one hand, allows simplifying the temporal discretization and using explicit schemes with some minimal time step constraints. On the other hand, these approaches allow designing neural network architectures and/or using them to speed up the solutions. Before discussing it, we briefly describe some main ideas of splitting algorithms.
3We assume that the forward problem is given by
4where f (u) is a multiscale differential operator. To achieve a contrast-independent stability, splitting u = u 1 + u 2 is performed, where u 1 is a coarse-grid approximation and uses much fewer degrees of freedom, while u 2 is other degrees of freedom. To have a stability, one needs certain conditions on the space for u 2 , such as u L 2 / u a is bounded below independent of the contrast, where · a is a norm associated with the operator f (roughly speaking). To achieve this, one needs to include all high-contrast multiscale features in u 1 . This construction is described in [12] and uses GMsFEM and NLMC concepts developed in [9,13]. Other multiscale methods have been developed for various applications [17,19,20,5,6,7,10,16,8,9,13,15,18,23,24,1,3], which we do not mention. In this paper, we will focus on NLMC and GMsFEM.
5One of the contributions of this paper is the use of machine learning to accelerate the computations and discuss a possible design for machine learning [4,28,2,22,21]. We again comment that the computation of u 1 is more computationally difficult compared to u 2 as it uses implicit discretization. For this reason, we propose the following strategies.
6• 1) We learn and predict u 1 by designing appropriate machine learning techniques, while we compute u 2 based on PDEs.
7• 2) We design a hybrid neural network, one for u 1 and the other for u 2 , and take advantage of the fact that u 2 is explicit.
8• 3) We compute u 1 based on data, reduced-order models, ,.. and learn u 2 due to its sparse forward map structure.
9All strategies consist of learning either u 1 implicitly or u 2 explicitly, we hence call our methodology: hybrid explicit-implicit learning (HEI). Next, we briefly discuss these cases. For the first case, our motivation stems from the fact that the computation of u 1 is expensive as it is implicit and nonlinear (in general). Thus, for its computation, machine learning techniques can be used to predict u 1 , while we compute u 2 since its computation is explicit. More precisely, we can train a machine learning model based on a small portion of the entire solution in time and then alternatively predict u 1 and compute u 2 .
10For the second case, our main idea is to design a hybrid neural network. The computation for u 2 uses sparse information and needs fewer parameters for identification. However, if the problem is nonlinear, one needs to construct the multiscale basis space for u 1 and u 2 at each iteration. This increases the computational cost in computing u 2 by the splitting scheme, hence training and predicting u 2 is a great option.
11For the third case, our motivation comes from the fact that u 1 can be observed or extracted from the solution dynamics (e.g., approaches like DMD). On the other hand, the evolution of u 2 uses sparse information and it may not be difficult to train a machine learning model to predict u 2 . We then can use approximate dynamics (learned or a priori formulated) to compute u 2 .
12In this paper, we mostly focus on the first approach. In particular, we use some special neural network architectures for it, which are based on the Transformer. Transformer is a machine learning structure which is originally designed to handle language tasks [25]. It can be regarded as a machine learning model which can encode the long time dependency of the time series [14,25,26,27,4]. One hence can apply it to perform model reduction in time [4]. Our problem is to predict the dynamics of u 1 or u 2 which are of high dimension, so it is natural to use Transformer to learn the time dependency meanwhile performing the model reduction. Furthermore, Transformer can be used in handling the machine translation task, i.e., it can deal with the problems which have inputs of different space (languages). This motivates us using Transformer to learn u 1 because the dynamics of u 1 depends on both u 1 and u 2 which are in different spaces. We conduct four experiments by using Transformer as the key of the machine learning model and the results show that the prediction is stable and is accurate.
13Another contribution of this work is the coarse solution prediction with incomplete information, that is, we find that the splitting scheme is a good platform to find the coarse solution of a model, but only the partial information of the target model is given. For simplicity, we will call this 'coarse solution assimilation' in the remaining of this work. There are many real life problems whose solution v (different from u) can be decomposed as v 1 +v 2 , where v 1 can capture the main features of the model while v 2 is the correction. In the real scenario, only incomplete information of v 1 is given and information about v 2 is missing. If one wants to recover v, one way is to solve a model which approximates the target model, i.e., we know the solutionṽ =ṽ 1 +ṽ 2 of a model which is closed to the target. The problems like this can be referred to the coarse solution problem. This problem is not easy to solve, but we realize that the splitting scheme can be formulated as a coarse solution assimilation process and we can use our proposed machine learning method to solve the problem easily.
14As we have discussed before, u 1 is a coarse-grid approximation and can capture all high-contrast multiscale features. This can be regarded as v 1 in the coarse solution assimilation. Moreover, u 2 uses other degree of freedom and is the correction v 2 . Now the question is how to solve the problem, i.e., find all u 1 + u 2 if it is only given an incomplete u 1 andũ 2 which comes from an approximating model.
15We find that our machine learning model is able to handle this problem. We can train a model which predicts the future u 1 with a small portion of given u 1 andũ 2 . The difficulty is to handle inputs which originate from different spaces (u 1 andũ 2 ) and also learn the time dependency. This includes encoding the u 1 ,ũ 2 and combining u 1 andũ 2 . We find that our proposed method can handle this problem and give a reliable prediction. It should be noted that the strategies mentioned previously can all be incorporated into the coarse solution assimilation, that is, we can propose hybrid explicit-implicit (HEI) learning strategies to solve the problem. For the demonstration purposes, we will only consider the first case.
16In the paper, we present several numerical results basing on our hybrid explicit-implicit (HEI) learning framework. We solve both linear and nonlinear examples and their applications in coarse solution assimilation. We observe that the solutions are stable and both L 2 and energy relative errors are small.
17The rest of the paper is organized as follows. In Section 2, we briefly review the splitting scheme, the motivation of the machine learning and the basic machine learning model are introduced in Section 3. We present our proposed method, hybrid explicit-implicit (HEI) learning, in Section 4 and introduce the splitting-based coarse solution assimilation in Section 4.3. Finally, in Section 5, we verify our proposed method by conducting 4 numerical experiments. The results are also shown in this section.
Preliminaries
18In this section, we will review the partially explicit splitting scheme [12,11] which is designed to tackle the multiscale high contrast problems. The scheme is based on the multiscale finite element methods [9,13] and the stability of the scheme is independent of the contrast ratio of the problem. We consider the following equation
19In general, we can assume that f = δF δu , the variational derivative of energies F (u) = E 1 (u) , and is contrast dependent and nonlinear (or linear) (i.e., f introduces stiffness in the system). We refer to [11] for more details about assumptions on F for well-posedness, weak formulation, and stability.
20To solve the problem, a standard method is finite element approach. We can consider the numerical solution u H (t, ·) ∈ V H satisfies
21where V H is a finite element space and (·, ·) denotes the inner product in V H .
22We consider the solution splitting and split V H as a direct sum of two subspace V H,1 and V H,2 , namely, V H = V H,1 ⊕ V H,2 . In practice, V H,1 and V H,2 are the coarse multiscale finite element spaces. The finite element solution is then satisfying
23where u H = u H,1 + u H,2 . For the time discretization, we consider the temporal splitting introduced in [12] for linear problems and in [11] for nonlinear problems. That is, we can use a partially explicit time discretization. For example, we can consider
24where τ is the time step and ω ∈ [0, 1] is a constant. For the linear case, the splitting scheme is
25where a(·, ·) is the bilinear form associated with f . One example for f is the parabolic problem, i.e., f (u) = ∇ · (κ(x)∇u), where κ is the contrast permeability field. The bilinear form is then given by a(u, v) = Ω κ(x)∇u∇vdx for u, v ∈ V H and Ω is the domain of the problem. For the stability and convergence concerns of the scheme, we refer to [12,11].
263 Machine learning
Motivation
27One of the great benefits of the splitting scheme is the contrast independent property. However, it doubles the computations since we need to iterate twice in time. Machine learning is widely used in solving mathematics problems. Compared to the implementation of splitting numerically, the deep learning approach may be more computational friendly. In particular, researchers need to solve a matrix inverse problem in the first equation of the splitting scheme (4). However, one only needs to evaluate a sequence of matrix multiplications in the deep learning framework. Motivated by this, we propose the hybrid explicit-implicit (HEI) learning method.
28The basic idea is to first compute {u n H,1 , u n H,2 } M n=1 , where M << N and N is the total number of time steps in time, then we can train machine learning models to predict either u n H,1 or u n H,2 , where n = M + 1, ..., N . We hence propose three strategies.
291. Train a model to predict u n H,1 while computing the u n H,2 according to the splitting scheme. The motivation of this option is that u n H,1 is implicit and is not easy to compute.
302. Train a model to predict u n H,2 while computing u n H,1 by some other methods. The motivation of this idea is that the evolution of u n H,2 is explicit and should be easier to learn.
313. Train two models to predict both u n H,1 and u n H,2 . Learning both solutions is also beneficial in particular when one needs to solve a nonlinear problem.
32We have discussed the benefits of three hybrid explicit-implicit (HEI) learning strategies before in the Introduction and in this work, we will focus and elaborate on the first strategy, i.e., we will introduce the machine learning model and discuss the coarse solution assimilation idea based on this strategy in section (4.3). The other two strategies also rely on machine learning models and our proposed model, training and testing methods can be applied directly. Now, let us dive into the first model problem. More precisely, we are going to train a model which predicts u n+1 H,1 using a small portion of the computation data in [0, t] where t << T , then in the remaining greater computational domain [t, T ], we will apply the trained model to predict u n+1 H,1 , this value is then used in the second equation to obtain u n+1 H,2 . It should be noted that the proposed scheme is built based on the splitting scheme (4), our model mimics the first equation and predicts u n+1 H,1 . For u n+1 H,2 evaluation, we still follow the second equation since it is also a forward process and does not involve intense computation. The proposed method can be summarized as follows.
331. Compute u n H,1 and u n H,2 up to n = M , where M << N and N is the total simulation step. The collection {u n H,1 , u n H,2 } M n=1 will be denoted as D.
342. Train a model model N which predicts u n+1 H,1 using the training dataset D. More precisely, N is a map from {u n−i+1
35where n e and n d are the input dimension of the encoder and decoder. Theoretically, n e = 2 and n d = 2, we will detail this in the next section.
Self attention and Transformer
36We find that the splitting scheme is similar to the machine language translation task in nature. We will apply Transformer to design the machine learning model N . In this section, let us first review the attention and Transformer.
37Self attention. Self attention [25,4] is a model to handle time series data. The input is a time series consisting of multiple time steps. The module can be regarded as a model reduction [4] and will output a new series with a reduced dimension. It encodes a long context into a smaller size representation [14]. In particular, this encoding is able to relate different positions of this sequence [25] and concentrate on the input's most relevant parts to perform the task [26]. The response at a time step position is the weighted sum of the features (feature: reduced order model for a single time step) at all positions the long range, multi-level dependencies can be enforced [27]. Self-attention has proven to be useful for tasks such as machine reading and learning sentence representations [26].
38Transformer. Transformer is an architecture for transforming one sequence into another one (eg. from English to Germany). It is built on the self-attention module and likes the most transduction models, it consists of an encoder and a decoder which are the stack of self attention modules. Please check Figure (1) and refer to [25] for the details of Transformer. Multi-head attention (white) is the stack of self-attention blocks. The encoder-decoder attention (yellow) helps the decoder focus on appropriate places in the source input, it is the key to learn the connections between the encoder and decoder. We skip the positional encoding, softmax and other blocks which are not the focus of this work. Please refer to [25] for details.
39Transformer is able to build connections between the encoder and decoder input and output [25]. More precisely, the encoder output is connected to the decoder by an encoder-decoder attention block, this block is able to learn the source and target language connections.
40We review the inference phase of Transformer. This is an iterative process which is similar to the time evolution of the numerical scheme: the prediction of the next u n H,1 relies on the previous predictions. The testing has the following steps.
411. Input the full encoder sequence (source language, e.g., English). However, the decoder input is an an empty sequence with a beginning token. The output is a sequence. The first element in the output sequence will be the first word of the target sentence (e.g., Germany). This word will also be used in the prediction of the following words in the target sentence.
422. The first word will be inserted into second place of the decoder input sequence. Together with the entire encoder input (the whole English sentence), Transformer will output a new sequence whose the first element will be the second word of the target sentence.
433. Repeat this process until the end token is predicted and one then gets the whole translated sentence.
44The translation process is also iterative, i.e., the next word relies on the previous predictions. However, Transformer is capable to handle the cumulative error or correct the mistakes made in the early stage of the prediction. This motivates us to use Transformer to model the splitting scheme.
Hybrid explicit-implicit (HEI) learning
45In Section (3.1), we have introduced the implementation of the hybrid explicit-implicit (HEI) learning strategies, however, we do not give the details about how to incorporate the splitting with Transformer. In this section, we are going to introduce the motivation of choosing Transformer and give the structure of the network.
Motivation of using Transformer
46It is very natural to design a machine learning network based on the splitting scheme directly. As we have discussed before, the computation involved in the second equation is only the matrices multiplications. We hence focus on the first equation and theoretically, we need to approximate the matrix inversion and multiplication by the network. There should be some model design principles and we summarize the principles based on the first equation as follows.
471. Principle I. To get u n+1 H,1 , one needs u n+1 H,1 and {u n H,2 , u n−1 H,2 }. They come from different space V H,1 and V H,2 , the model should be able to encode two different time series independently and learn the interaction between the corresponding reduced order models.
482. Principle II. The input from V H,2 has two time steps {u n H,2 , u n−1 H,2 }, the model should be capable of capture the dependency of the multiple-step input.
493. Principle III. Due to the stability concern, the accumulative error should be controlled in a proper way, that is, if we predict u n+1 H,1 by the model and compute u n+1 H,2 by the second equation iteratively, the solutions cannot blow up.
50Recall the self-attention and Transformer, they satisfy all design principles. {u n−i+1
51can be regarded as the target language and input of the decoder, and {u n+i−1
52is the source language and input of the encoder. We then can summarize how Transformer handles the design difficulties as follows.
531. Principle I. According to [25], Transformer is able to build the global dependency between the input and output. This is achieved by the encoder-decoder attention which learns the influence of the source language ({u n−i+1
542. Principle II. The self attention mechanism built in Transformer is able to learn the dependency and influence among different positions (time steps).
553. Principle III. As reviewed before, Transformer is auto-regressive, i.e., it uses the last predicted word (u n+1 H,1 ) in the target sentence as the additional input to infer next word (u n+2 H,1 ) in the sentence. Transformer has been successful in various language tasks, we hence believe it can deal with the accumulative errors.
Proposed structure and implementation
56We give the details of the network training and testing method in this section. The splitting scheme is similar to the language translation task, we hence use the similar training and testing strategy as the language task.
Structure. The encoder input is {u
57, this can be regarded as the source language with length n e . The decoder input is the {u n+i−1
58, we take this as the target language. The structure of the network is shown in Figure ( Testing. This is an iterative process and at the step n, the prediction u n+1 H,1 of the network will be used in the calculating u n+1 H,2 in the second equation. We summarize the process as follows and demonstrate the prediction of u n+1 H,1 in Figure (3 will be used in predicting u n+2 H,1 and future u H,1 sequence.
593. Set n = n + 1 and repeat step 1 and step 2 until reaching the terminal time.
60If we follow the splitting scheme, n e = 2 and n d = 2. . We show the prediction of u n+1 H,1 , which will be used in calculating u n+1 H,2 . The inputû n+1 H,1 comes from the second entry of the last step prediction,û n+2 H,1 will be used as the input of the next prediction of u n+2 H,1 . We design the training testing flow in this way to mimic the implicit scheme of the first equation.
Remark. It should be noted that the first equation is implicit in u n+1
61H,1 at step n and our scheme is mimicking the process. At step n + 1, the target of the prediction is u n+2 H,1 , however, this term has already been predicted in the last iteration n and is used in the input of the decoder at time n + 1. If n d = 2, denoted asû n+2 H,1 , this term is the second entry of the output at step n. We do not useû n+2 H,1 in the calculating of u n+2 H,2 , instead we use u n+2 H,1 which is the first entry of the output at step n + 1. Please check Figure (3) for the illustration.
Coarse solution assimilation
62In this section, we will discuss applications of our method. We find that the splitting scheme can be used to solve the target problems, however, a part of the model is implicitly given. For simplicity, we will call this part of the problem the coarse solution assimilation. There are many real life applications whose target model is not given or partially given. Researchers then need to solve the target model based on a known model which approximates the target model. This is an interesting problem and we will explain this model and our method in this section.
63We assume that the target solution u κ of the target equation with permeability κ(x) can be decomposed as u n κ = u n 1 + u n 2 , n = 1, ..., N , where u n 1 can be regarded as the coarse model while u n 2 is the correction, n here indicates the time step. We are lack of κ(x) information but still want to evaluate u n κ , where n = 1, ..., N . We claim that if we knowκ(x) which approximates κ(x), and a small piece of {u n 1 } M n=1 , where M << N , then u n κ can be recovered by our method. Intuitively, we propose to learn a model that predicts the coarse solution u n 1 of the target equation. Moreover, the coarse solution is automatically corrected byũ n 2 from a known equation. Furthermore, in the framework of the splitting scheme, we have the following discretization for the linear case
64whereũ H,2 is the given observation which is the contrast independent component of an approximating solution, this solution may be generated from a permeabilityκ which is close to the target permeability field κ (not given). In this case, we can still predict the coarse grid component u n H,1 and the givenũ n H,2 can be regarded as the correction of the coarse component solution.
65Sinceũ n H,2 is not the real correction of u n H,1 , the scheme is not accurate. However, the machine learning can capture the relation betweenũ n H,2 and u n H,1 . More precisely, the benefit and the target of machine learning is that the model is supposed to learn and predict all u n H,1 with a small piece of u n H,1 andũ n H,2 , such thatũ n H,2 is able to improve u n H,1 and the combined solution u n H = u n H,1 +ũ n H,2 is accurate and stable. In this work, we are going to study this example. Figure 4: Demonstration of the coarse solution assimilation. We assume a small piece of u 1 and the entire u 2 are given. u 2 may come from a model which approximates the target model. u = u 1 + u 2 is the combined solution, in which the learnt u 1 captures the multiscale properties and u 2 is the correction. The machine learning model should be able to learn u 1 basing on u 2 which originates from a different space.
66We illustrate the coarse solution assimilation in Figure (4) and to solve this problem, the information we have can be summarized as follows.
A permeabilityκ which is closed to κ(x).
67If the approximated permeability is given, the correction solutionũ n H,2 (· indicates that this is the solution corresponding toκ(x)) of this permeability can then be evaluated easily. We have one comment about how to obtain {ũ n H,2 } N n=1 . The most accurate approach is to compute it by the splitting scheme. However, this sequence can also be trained and predicted. That is, one can train a model M with {ũ n H,2 } M n=1 where M << N and then predicts the rest of the sequence. This process actually is the hybrid explicit-implicit (HEI) learning designed in section (4) and our numerical experiments show that the prediction is very accurate. Another comment is that our proposed hybrid explicit-implicit (HEI) learning method (training and testing with Transformer) can be used to build this coarse solution assimilation machine learning model. The training and testing (one example is demonstrated in Figure (5) ) are similar to the previous setting except that the input of the encoder will be changed to {ũ n H,2 } N n=1 . The advantages of our method (Transformer) are still significant for this application. Transformer can handle multiple time series which originate from different spaces. To be more specific, the model can encode multiple time series and obtain multiple reduced order models of u H,1 which is from the solution space of the target κ andũ H,2 which is from the knownκ. Moreover, the encoder-decoder attention block is able to learn the connection between two encoded time series, i.e., the model can learn the interplay between two reduced order models. Besides, the model can handle the cumulative error and avoid solution blowing up.
Numerical examples
68In this section, we will present some numerical examples. We solve two equations: linear and nonlinear parabolic equations. For each equation, we will first present the original example (the model is given) and then discuss the coarse solution assimilation results (the model is unknown).
69To generate the training and testing data, we use the splitting scheme (4) for the linear equation and (3) for the nonlinear equation. ω is set to be 0.5 for all examples. For the machine learning hyper-parameters, we set n e = n d = 2, the model hence directly mimics the splitting scheme.
Linear example
70In the next two sections, we consider the following linear parabolic problem
71where Ω = [0, 1] 2 and T = 0.00002, u 0 is the initial condition, κ is the permeability field, they are demonstrated in Figure We also map the coarse solutions u n H = u n H,1 + u n H,2 back to the fine scale and compute the L 2 relative error, the reference solution is the finite element solution on mesh 100 × 100 with the backward Euler scheme in time. The relative errors are shown in Figure (9). We can see from Figure (8), the model is able to handle the accumulative error and hence the prediction (u n H,1 ) of the model is stable. Besides, the error of the prediction is also very small (less than 0.03%). u n H,2 is computed basing on the predictions u n H,1 of the model, it is also stable and accurate with relative error less than 0.7%. In Figure (9), we notice that the relative L 2 and energy errors of the solution (the fine mesh solution of the our proposed coarse solution u n H ) are also very small and controllable. Similar results are observed in all following examples and our numerical results are very robust to the hyper-parameters and training, we hence conclude that our proposed method is accurate and stable.
Coarse solution assimilation for the linear example
72To demonstrate our idea, we will solve the same linear equation (12). We will train the model with the first 60 steps and predicts the remaining 939 steps. All the other settings (eg, source, time step...) are the same as before. We calculate L 2 relative error of u n H,1 for all predicted time steps. Please note that there is no need to compute u n H,2 since the u n H,1 is corrected by the giveñ u n H,2 instead. The result is presented in Figure ( Coarse L 2 Energy u H, 1 2.262591% 17.142532% u H 2.25732% 14.435881% Table 1: Linear coarse solution assimilation example relative errors. We here present the L 2 and the energy relative errors of the solutions obtained by mapping u n H,1 and u n H to the fine scale mesh. The errors are calculated as the average over all time steps.
73We can observe from Figure (10) and Figure (11) both prediction and the solution are stable and are accurate. Since the target κ is not given, the model is supposed to learn u H,1 basing oñ u H,2 , moreover,ũ H,2 should correct and improve u H,1 . This can be seen from Table (1). The L 2 and energy errors are small and addingũ H,2 indeed improves the relative energy error of the solution.
74We want to give a comment before finishing the linear coarse solution assimilation example. It may be costly to pre-compute allũ n H,2 . We provide two strategies which can reduce the computational cost. Firstly, one can calculateũ n H,2 by following the scheme (6). Compared to pre-compute allũ n H,2 , one avoids the computation ofũ n H,1 which is the contrast dependent solution of the approximation modelκ. Secondly, we can train a model that predictsũ n H,1 and calculateũ n H,2 of the approximated modelκ, this is exactly the hybrid explicit-implicit (HEI) learning in the section (5.1). Since the maximal relative error of u n H,2 is less than 0.6% in the last example (5.1), we believe our method can provide an accurateũ n H,2 for later use in the assimilation. In all, this strategy consists of two stages. In the first stage, one can train a model forκ and then predict and compute allũ n H,1 andũ n H,2 . In the second stage, one can train a different model which relies on the pre-computedũ n H,2 to perform the coarse data assimilation.
Nonlinear example
75In the next two sections, we consider the following nonlinear parabolic problem:
76u(x, 0) = u 0 ,
77where Ω = [0, 1] 2 and T = 0.00002, u 0 = e (−(x 1 −0.5) 2 −(x 2 −0.5) 2 )/0.01 is the initial condition, κ 0 is the permeability field, they are demonstrated in Figure (6) and Figure (7). We set τ = 0.00000002 and we train the model with the first 60 time steps and predict the remaining 939 steps. We calculate the L 2 relative error of u n H,1 and u n H,2 for all predicted time steps, the references are the solutions obtained by applying the splitting scheme directly. The errors are shown in Figure ( Similar with the linear example, the nonlinear model is also accurate and stable (please check Figure (12) left): the relative error in the prediction of u H,1 is less than 0.01%, the computed u H,2 which relies on the prediction of the model is also small (less than 0.15%). If we look at Figure (13), the fine scale solution which is obtained by mapping u n H,1 + u n H,2 back to the fine scale mesh is also stable, the relative errors also show that our method is very accurate.
Coarse solution assimilation for the nonlinear example
78To demonstrate our idea, we will solve the same nonlinear equation (12). We will train the model with the first 50 steps and predicts the remaining 949 steps, all the other settings (eg, source, time step...) are the same as before. We calculate L 2 relative error of u n H,1 for all predicted time steps. Please note that there is no need to compute u n H,2 since the u n H,1 is corrected by the giveñ u n H,2 . The result is presented in Figure (14). Figure 14: Results of the nonlinear coarse solution assimilation example. The L 2 relative error of u n H,1 with respect to time steps.
79We also map the coarse solutions u n H,1 and u n H = u n H,1 +ũ n H,2 back to the fine scale and compute the L 2 and energy relative errors. The idea is to correct u n H,1 withũ n H,2 which is the correction of the approximated permeability. The results are shown in Figure (15) and please check Table (2) for the details. Energy u H, 1 2.742292% 15.498801% u H 2.731022% 11.996128% Table 2: Nonlinear coarse solution assimilation example relative errors. We here present the L 2 and the energy relative errors of the solutions obtained by mapping u H,1 and u H to the fine scale mesh. The errors are calculated as the average over all time steps.
80Figure (14) demonstrates the error of the model prediction. The relative error is less than 0.4% and is very stable. The errors are shown in Figure (15), we can see that the solution is very stable and accurate. If we look at Table (2), theũ H,2 indeed corrects u H,1 and improves the solution.
81To reduce the cost of precomputingũ n H,2 , one can use the same hybrid explicit-implicit (HEI) learning provided in section (5.2). In particular for the strategy two which trains a separate model forũ n H,2 , the maximal relative error of u n H,2 in example 5.3 is less than 0.1%, we believe that the trained model can provide an accurate u n H,2 for the future use in the coarse solution assimilation.
Conclusion
82In this work, we design a hybrid explicit-implicit (HEI) learning approach to accelerate the contrast-independent splitting scheme and solve coarse data assimilation problems. We proposed three strategies, i.e., one can either learn u 1 which represents the main feature of the problem, or u 2 which is the contrast independent part of the solution, or both u 1 and u 2 . We focus on learning u 1 because the computation of u 1 is implicit and time consuming if we follow the standard splitting scheme. We interpret the splitting scheme as a language translation problem and hence use the Transformer to solve it. Transformer is powerful in our problem since it can encode the inputs of different spaces and reduce the accumulative error. We also find that the splitting is a great platform to solve the coarse solution assimilation problem. All three strategies can be used and our machine learning model is also powerful in solving the coarse solution assimilation problems. We demonstrate and verify our proposed method with four examples, and the results show that our method is stable and accurate. In the future, we will study the other two strategies and improve our model.
참고문헌 34건
- The Heterognous Multiscale Methods Communications in Mathematical Sciences · International Press of Boston · 2003 10.4310/cms.2003.v1.n1.a8
- Multi-scale finite-volume method for elliptic problems in subsurface flow simulation Journal of Computational Physics · Elsevier BV · 2003 10.1016/s0021-9991(03)00075-5
- A Multiscale Finite Element Method for Elliptic Problems in Composite Materials and Porous Media Journal of Computational Physics · Elsevier BV · 1997 10.1006/jcph.1997.5682
- General Tooth Boundary Conditions for Equation Free Modeling SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2007 10.1137/060654554
- Mixed Generalized Multiscale Finite Element Methods and Applications Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2015 10.1137/140970574
- Patch dynamics with buffers for homogenization problems Journal of Computational Physics · Elsevier BV · 2005 10.1016/j.jcp.2005.08.010
- Generalized multiscale finite element methods (GMsFEM) Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.04.045
- A localized orthogonal decomposition method for semi-linear elliptic problems ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2013 10.1051/m2an/2013141
- Adaptive multiscale model reduction with Generalized Multiscale Finite Element Methods Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.04.054
- Dynamic Mode Decomposition: Data-Driven Modeling of Complex Systems 2016
- Constraint Energy Minimizing Generalized Multiscale Finite Element Method Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.04.010
- Advances in Neural Information Processing Systems 29 2016
- Constraint energy minimizing generalized multiscale finite element method in the mixed formulation Computational Geosciences · Springer Science+Business Media · 2018 10.1007/s10596-018-9719-7
- Fast online generalized multiscale finite element method using constraint energy minimization Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.11.022
- Non-local multi-continua upscaling for flows in heterogeneous fractured media Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.05.038
- Self-Attention Generative Adversarial Networks arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1805.08318
- Generalized Multiscale Finite Element Methods for Wave Propagation in Heterogeneous Media Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2014 10.1137/130926675
- Transformer-XL: Attentive Language Models beyond a Fixed-Length Context 2019 10.18653/v1/p19-1285
- Black-box learning of multigrid parameters Journal of Computational and Applied Mathematics · Elsevier BV · 2019 10.1016/j.cam.2019.112524
- Deep multiscale model learning Journal of Computational Physics · Elsevier BV · 2019 10.1016/j.jcp.2019.109071
- Learning Algorithms for Coarsening Uncertainty Space and Applications to Multiscale Simulations Mathematics · Multidisciplinary Digital Publishing Institute · 2020 10.3390/math8050720
- nPINNs: Nonlocal physics-informed neural networks for a parametrized nonlocal universal Laplacian operator. Algorithms and applications Journal of Computational Physics · Elsevier BV · 2020 10.1016/j.jcp.2020.109760
- Computational multiscale methods for quasi-gas dynamic equations Journal of Computational Physics · Elsevier BV · 2021 10.1016/j.jcp.2021.110352
- Multi-agent Reinforcement Learning Accelerated MCMC on Multiscale Inversion Problem arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2011.08954
- Contrast-independent partially explicit time discretizations for multiscale flow problems Journal of Computational Physics · Elsevier BV · 2021 10.1016/j.jcp.2021.110578
- A multi-stage deep learning based algorithm for multiscale model reduction Journal of Computational and Applied Mathematics · Elsevier BV · 2021 10.1016/j.cam.2021.113506
- Computational multiscale methods for parabolic wave approximations in heterogeneous media arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2104.02283
- NH-PINN: Neural homogenization-based physics-informed neural network for multiscale problems Journal of Computational Physics · Elsevier BV · 2022 10.1016/j.jcp.2022.111539
- Contrast-Independent, Partially-Explicit Time Discretizations for Nonlinear Multiscale Problems Mathematics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/math9233000
- Multiscale Finite Element Methods: Theory and Applications 2009
- Contrast-independent partially explicit time discretizations for multiscale wave problems Journal of Computational Physics · Elsevier BV · 2022 10.1016/j.jcp.2022.111226
- A deep neural network approach on solving the linear transport model under diffusive scaling arXiv (Cornell University) · Cornell University · 2021
- Graph Attention Networks arXiv (Cornell University) · Cornell University · 2017
- MizAR 60 for Mizar 50 DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2023 10.4230/lipics.itp.2023.19