Coarse-grained models for PDEs with random coefficients C. Grigo - - PowerPoint PPT Presentation

coarse grained models for pdes with random coefficients
SMART_READER_LITE
LIVE PREVIEW

Coarse-grained models for PDEs with random coefficients C. Grigo - - PowerPoint PPT Presentation

Coarse-grained models for PDEs with random coefficients C. Grigo and P.-S. Koutsourelakis Continuum Mechanics Group Department of Mechanical Engineering Technical University of Munich SIAM CSE Atlanta 1 Mar 2017 SIAM CSE 17 Mar 1 st ,


slide-1
SLIDE 1

Coarse-grained models for PDEs with random coefficients

  • C. Grigo and P.-S. Koutsourelakis

Continuum Mechanics Group Department of Mechanical Engineering Technical University of Munich SIAM CSE Atlanta

1 Mar 2017

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 1/26

slide-2
SLIDE 2

Stochastic PDE with random coefficients

Stochastic PDE: K (x, λ(x, ξ))u(x, λ(x, ξ)) = f(x), +B.C.

Figure: Random process λ(x, ξ) leads to random solutions u(x, ξ).

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 2/26

slide-3
SLIDE 3

Outline

1 The Full-Order Model 2 A generative Bayesian surrogate model

Model training

3 Sample problem: 2D stationary heat equation

Model specifications Feature functions

4 Results 5 Summary

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 3/26

slide-4
SLIDE 4

The Full-Order Model (FOM)

Discretize K (x, λ(x, ξ))u(x, λ(x, ξ)) = f(x), +B.C. to a set of algebraic equations rf(U f, λf(ξ)) = 0 Usually large (Nequations ∼ millions) Expensive, repeated evaluations for UQ (and various deterministic tasks, e.g. optimization/control, inverse problems)

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 4/26

slide-5
SLIDE 5

Surrogate models

Idea: Replace FOM U f = U f(λf) by cheaper, yet inaccurate input-output map U f = f(λf; θ) based

  • n training data D =
  • U (i)

f , λ(i) f

N

i=1

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 5/26

slide-6
SLIDE 6

Surrogate models

Idea: Replace FOM U f = U f(λf) by cheaper, yet inaccurate input-output map U f = f(λf; θ) based

  • n training data D =
  • U (i)

f , λ(i) f

N

i=1

Problem: High dimensional uncertainties λf - learning direct functional mapping (e.g. PCE [Gahem, Spanos 1991] , GP [Rasmussen 2006], neural nets [Bishop 1995]) will fail

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 5/26

slide-7
SLIDE 7

Surrogate models

Idea: Replace FOM U f = U f(λf) by cheaper, yet inaccurate input-output map U f = f(λf; θ) based

  • n training data D =
  • U (i)

f , λ(i) f

N

i=1

Problem: High dimensional uncertainties λf - learning direct functional mapping (e.g. PCE [Gahem, Spanos 1991] , GP [Rasmussen 2006], neural nets [Bishop 1995]) will fail Solution: Coarse-grained model: Use models based on coarser discretization of PDE, U c = U c(λc)

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 5/26

slide-8
SLIDE 8

Surrogate models

Idea: Replace FOM U f = U f(λf) by cheaper, yet inaccurate input-output map U f = f(λf; θ) based

  • n training data D =
  • U (i)

f , λ(i) f

N

i=1

Problem: High dimensional uncertainties λf - learning direct functional mapping (e.g. PCE [Gahem, Spanos 1991] , GP [Rasmussen 2006], neural nets [Bishop 1995]) will fail Solution: Coarse-grained model: Use models based on coarser discretization of PDE, U c = U c(λc) Question: Relation between U f and coarse output U c, but also relation between fine/coarse inputs λf, λc

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 5/26

slide-9
SLIDE 9

Coarse-graining of SPDE’s

Retain as much as possible information on U f during coarse-graining, i.e. Information bottleneck [Tishby, Pereira, Bialek, 1999] maxθ I(λc, U f; θ) s.t. I(λf, λc; θ) ≤ I0

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 6/26

slide-10
SLIDE 10

Concept: Coarse grain random field λ,. . .

Probabilistic mapping λf → λc : pc(λc|λf, θc) Goal: Prediction of U f, not reconstruction of λf!

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 7/26

slide-11
SLIDE 11

. . . solve ROM and reconstruct U f from U c

λc → U c: solve rc(U c, λc) = 0 Decode via coarse-to-fine map U c → U f : pcf(U f|U c, θcf)

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 8/26

slide-12
SLIDE 12

Graphical Bayesian model

Figure: Bayesian network defining ¯ p(U f|λf, θc, θcf).

¯ p(U f|λf, θc, θcf) =

  • pcf(U f|U c, θcf)p(U c|λc)pc(λc|λf, θc)dU cdλc

=

  • pcf(U f|U c(λc), θcf)pc(λc|λf, θc)dλc.

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 9/26

slide-13
SLIDE 13

Model training

Maximum likelihood:

θ∗

c

θ∗

cf

  • = arg max

θc,θcf N

  • i=1

log ¯ p(U (i)

f |λ(i) f , θc, θcf)

Maximum posterior: θ∗

c

θ∗

cf

  • = arg max

θc,θcf N

  • i=1

log ¯ p(U (i)

f |λ(i) f , θc, θcf) + log p(θc, θcf)

Data: λ(i)

f

∼ p(λ(i)

f ),

U (i)

f

= U f(λ(i)

f ).

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 10/26

slide-14
SLIDE 14

Expectation - Maximization

¯ p(U (i)

f |λ(i) f , θc, θcf) =

  • pcf(U (i)

f |U c(λ(i) c ), θcf)pc(λ(i) c |λ(i) f , θc)dλ(i) c

→ Likelihood contains N integrals over N latent variables λc → Use Expectation-Maximization algorithm [Dempster, Laird, Rubin 1977] : find lower bound log(¯ p(U (i)

f |λ(i) f , θc, θcf))

  • q(i)(λ(i)

c ) log

  • pcf(U (i)

f |U c(λ(i) c ), θcf)pc(λ(i) c |λ(i) f , θc)

q(i)(λ(i)

c )

  • dλ(i)

c

= F (i)(θ; q(i)

t (λ(i) c )),

where θ = [θc, θcf].

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 11/26

slide-15
SLIDE 15

Expectation-Maximization algorithm

Maximize iteratively:

E-step: Find optimal q(i)

t (λ(i) c ) given current estimate θt of optimal θ

and compute expectation values (MCMC, VI, EP) M-step: Maximize lower bound Ft(θ) =

i F (i) t (θ; q(i) t (λ(i) c )) w.r.t. θ to

find θt+1

Figure: Expectation-Maximization algorithm illustration

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 12/26

slide-16
SLIDE 16

Expectation-Maximization algorithm

Maximize iteratively:

E-step: Find optimal q(i)

t (λ(i) c ) given current estimate θt of optimal θ

and compute expectation values (MCMC, VI, EP) M-step: Maximize lower bound Ft(θ) =

i F (i) t (θ; q(i) t (λ(i) c )) w.r.t. θ to

find θt+1

Figure: Expectation-Maximization algorithm illustration

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 12/26

slide-17
SLIDE 17

Expectation-Maximization algorithm

Maximize iteratively:

E-step: Find optimal q(i)

t (λ(i) c ) given current estimate θt of optimal θ

and compute expectation values (MCMC, VI, EP) M-step: Maximize lower bound Ft(θ) =

i F (i) t (θ; q(i) t (λ(i) c )) w.r.t. θ to

find θt+1

Figure: Expectation-Maximization algorithm illustration

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 12/26

slide-18
SLIDE 18

Expectation-Maximization algorithm

Maximize iteratively:

E-step: Find optimal q(i)

t (λ(i) c ) given current estimate θt of optimal θ

and compute expectation values (MCMC, VI, EP) M-step: Maximize lower bound Ft(θ) =

i F (i) t (θ; q(i) t (λ(i) c )) w.r.t. θ to

find θt+1

Figure: Expectation-Maximization algorithm illustration

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 12/26

slide-19
SLIDE 19

Expectation-Maximization algorithm

Maximize iteratively:

E-step: Find optimal q(i)

t (λ(i) c ) given current estimate θt of optimal θ

and compute expectation values (MCMC, VI, EP) M-step: Maximize lower bound Ft(θ) =

i F (i) t (θ; q(i) t (λ(i) c )) w.r.t. θ to

find θt+1

Figure: Expectation-Maximization algorithm illustration

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 12/26

slide-20
SLIDE 20

Sample problem: 2D heat equation with random coefficients

∇x(−λ(x, ξ(x))∇xT(x, ξ(x))) = 0, +B.C. where ξ(x) ∼ GP(0, cov(xi, xj)) with cov(xi, xj) = exp

  • −|xi − xj|2

l2

  • ,

and λ(x, ξ(x)) =

  • λhi,

if ξ(x) > c, λlo,

  • therwise

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 13/26

slide-21
SLIDE 21

FOM data samples

Figure: Data samples for φhi = 0.35, l = 0.098, c = 100

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 14/26

slide-22
SLIDE 22

FOM data samples

Figure: Data samples for φhi = 0.35, l = 0.098, c = 100

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 14/26

slide-23
SLIDE 23

FOM data samples

Figure: Data samples for φhi = 0.35, l = 0.098, c = 100

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 14/26

slide-24
SLIDE 24

FOM data samples

Figure: Data samples for φhi = 0.35, l = 0.098, c = 100

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 14/26

slide-25
SLIDE 25

Model specifications

λf → λc = ezc : zc,k =

Nfeatures

  • j=1

θc,jϕj(λf,k) + σkZk, Zk ∼ N(0, 1), U c → U f : pcf(U f|U c(zc), θcf) = N(U f|W U c(zc), S) with feature functions ϕi, coarse-to-fine projection W , diagonal covariance S = diag(s).

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 15/26 Element numbering with index k

slide-26
SLIDE 26

Feature functions ϕi(λf,k)

Any function ϕi : (R+)dim(λf,k) → R admissible Could/should be guided by physical insight: Effective-medium approximations

Self-consistent approximation (SCA)[Bruggeman 1935], Maxwell-Garnett approximation (MGA)[Maxwell 1873], Differential effective medium approximation (DEM)

[Bruggeman 1935]. . .

Morphology-describing features:

Lineal path function[Lu, Torquato 1992], (Convex) Blob area, Blob extent, Distance transformations. . . Left: Convex area (blue), max. extent (red), pixel-cross (green). Right: distance transform

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 16/26

slide-27
SLIDE 27

Sparsity priors

Strategy: Include as many features ϕj as possible, employ sparsity prior for feature selection Laplace prior (LASSO): p(θc,i) ∝ exp {−√γ |θc,i|} , ARD prior: p(θc,i) ∝ ∞ 1 τi N(θc,i|0, τi)dτi = 1 |θc,i|

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 17/26

slide-28
SLIDE 28

Which features are activated?

The higher the contrast, the more geometry matters

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 18/26

slide-29
SLIDE 29

Learned effective property λc

Note that pc(λc|λf, θc) = N(log λc|Φθc, Σ = diag(σ2)), and we plot λcpc = Φθc + 1

2σ2 SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 19/26

slide-30
SLIDE 30

How many training samples do we need?

Few data is needed, errors converge quickly The finer the coarse mesh, the better the predictions The finer the coarse mesh, the less data is needed But: the finer the coarse mesh, the more expensive the training/predictions

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 20/26

slide-31
SLIDE 31

Predictions

Figure: Histogrammatic predictive distribution of temperature at lower right corner, ¯ p(Uf,lr|λf, θ)

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 21/26

slide-32
SLIDE 32

Predictions

Figure: Predictions on different test data samples for Nel,c = 8 × 8, φhi = 0.2, l = 0.078 and c = λhi

λlo = 10. Colored: U f, blue: U f¯ p,

grey: ±σ.

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 22/26

slide-33
SLIDE 33

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-34
SLIDE 34

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-35
SLIDE 35

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-36
SLIDE 36

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-37
SLIDE 37

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-38
SLIDE 38

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-39
SLIDE 39

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-40
SLIDE 40

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-41
SLIDE 41

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-42
SLIDE 42

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-43
SLIDE 43

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-44
SLIDE 44

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-45
SLIDE 45

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-46
SLIDE 46

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-47
SLIDE 47

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-48
SLIDE 48

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-49
SLIDE 49

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-50
SLIDE 50

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-51
SLIDE 51

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-52
SLIDE 52

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-53
SLIDE 53

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-54
SLIDE 54

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-55
SLIDE 55

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-56
SLIDE 56

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-57
SLIDE 57

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-58
SLIDE 58

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-59
SLIDE 59

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-60
SLIDE 60

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-61
SLIDE 61

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-62
SLIDE 62

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-63
SLIDE 63

Predictions

Figure: Test sample 3 from different angles

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 23/26

slide-64
SLIDE 64

Predictive uncertainty

Figure: Optimal variances σ∗2 of pc (l.) and optimal variances s of pcf.

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 24/26

slide-65
SLIDE 65

Scaling of the algorithm

Training: Quantity N Scaling #Data O(N) dim(λf) ? dim(U f) O(N) dim(λc), dim(Uc) O(N3) dim(θc) O(N3) Predictions: Quantity N Scaling #Data O(1) dim(λf) ? dim(U f) O(N) dim(λc), dim(Uc) O(N3) dim(θc) O(N)

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 25/26

slide-66
SLIDE 66

Summary & Outlook

Summary

Replace FOM by cheaper, but less accurate ROM Learn probabilistic output-output, but also input/input mappings between fine and coarse solver Predict by sampling λc, solving coarse model, sampling U f Potentially find interpretable features for effective material properties

Outlook

Anisotropic λc Account for correlations among λc,k’s Adaptive coarse mesh refinement

SIAM CSE 17 — Mar 1st, 2017 Reduced order modeling of SPDE’s 26/26