Contact
[email protected] www.ugent.be/ea Universiteit Gent @ugent Ghent University VALIDATION βTOY EXAMPLE For the toy example, a 1D steady state Disturbed Thermal Field (DTF) in a 1 m long, homogeneous beam is chosen, described by the SPDE and Boundary Condition (BC): ππ2π π ππ2=π π π΅πΆ:π 0 =π 1 =1 With πβ[0.,1.], the spatial coordinates, k>0, conductivity constant, π βΌπ’π«(ππ,ππ 2), stochastic heat flux and πβΌπ’π«(ππ’,ππ’ 2), the stochastic DTF. Over the length of the beam are some torches placed, as seen above. Such that after normalizing k = 1 and the heat flux is described by ππ=6π 2sin 6πβ
π₯ and ππ 2=4β
πΏ(πβπβ²). Implementation VFE-PINN The mean, ππβππ, is estimated with an NN an use the firs two parts of π½ππΌ as governing equation. For the variance, ππ 2βππ 2, the following kernel is proposed, with ππβ¦a NN and πΌ <0a trainable parameter: ππ 2π,πβ²= πππ β
πππβ²exp πΌβ
πβπβ² 2 The last tree part of π½ππΌ are used as governing equation for the training of ππ 2. The general structures of B-PINN using HMC (left) and VFE-PINN (right) are show below: Results Conclusion β’VFE-PINN uses an algebraic expression for quantifying the uncertainty, and therefore faster than sample-based prediction. β’ππ 2is included into the governing equation, therefore donβt explode outside the training range. β’Training of ππand ππ 2could be done in parallel. B-PINN (a) B-PINN (b) VFE-PINN Solving technique Training time * Mean Square Error Acceptance Rate (2β
ππ) B -PINN (a) 23 min 10,93 s 7,93 e-2 100,00 % B -PINN (b) 8 min 49,34 s 1,76 e-1 100,00 % VFE -PINN 4 min 39,57 s 6,97 e-6 100,00 % *All calculations are performed on 32 CPUs (Intel(R) Core(TM) i9 -14900K) BACKGROUND Physics Informed Neural Network Partial Differential Equations (PDEs) are deterministic representations of the dynamics of a system. A PDE has the general form: ππ,π‘ π’ π,π‘ =ππ‘π’ π,π‘ +πππ’ π,π‘ πββπis a spatial vector, π‘ β βthe time, ππ‘π’ π₯,π‘ the time derivative of π’ π,π‘ and πππ’ some spatial linear operator on π. The objective is to find the function π’that satisfies the PDE. In a Physics Informed Neural Network (PINN), the unknown function π’is approximated by a Neural Network (NN), with the output ππ½, with the parameters π½. The cost function is of the form: π½πππ π‘ π = 1βπ 1 2πβππ½π,π‘ 2+π 1 2ππ,π‘ ππ½π,π‘ 2 πare measurements at π₯π,π‘π, πis a tuning factor that determines the relative importance of each cost function. ππ·ππ‘π is the data set, and πππ»ππ represent arbitrary set of space-time coordinates where the PDE is enforce to the NN. Bayesian Physics-Informed Neural Network The PINN-framework can be extended to a BayesianβPINN (B-PINN) as a way for quantify the uncertainty of the prediction. All parameters ΞΈ (inc. NN and PDE parameters), are token stochastic, with the posterior : π π ππ·ππ‘π,πππ»ππ) βπ ππ·ππ‘π π π πππ»ππ π Instead of minimising a cost function, the objective is now to maximise the likelihood. Since the posterior is intractable, the literature proposes to approximate it using Monte Carlo samples. Possible strategies to establish these samples are HMC, or NUTS. VARIATIONAL FREE ENERGY PHYSICS INFORMED NEURAL NETWORK A B-PINN can find a good approximation, but it does so inefficiently due to the sampling. We desire to derive a more efficient approach. Our idea is to approximate π(π)using a Variational density and learn the density using Variation Inference (VI). Problem sketch Applying Bayesian inference in a finite-dimensional context is a well-understood problem. The posterior for the quantity, u, given the measurements, y, is given by Bayesβ rule: π π π =π π,π π(π) =π π π β
π π π π We assume to have access to the measurement model π(π,π)and prior π(π). Bayesβ rule is elegant, but quite often not applicable in practice due to the unknown data distribution π(π). VI is a popular technique that is used to approximate the posterior. The idea is to fit a variational density πthat is a member of some density family π¬by solving an optimisation problem. Using KullbackβLeibler (KL) divergence to determine the statistical distance between two distributions. To find q, the KL-divergence must be minimised. Assume πis a function and the solution of a Stochastic Partial Differential Equations (SPDE): ππ,π‘ π π,π‘ =ππ‘π π,π‘ +πππ π,π‘ =π π,π‘ π βΌπ’π« ππ,ππ 2 In the case that πππis a linear operator, it is know that πβΌπ’π« ππ,ππ 2. Once we have access to ππand ππ 2, the problem is solved. The existing techniques depend on linear function decompositions of the function and shift all uncertainty to the coefficients. Rather, we would want to draw a connection with the PINN paradigm and approximating ππand ππ 2. So, we approach an SPDE similar to how a PINN approaches a PDE. Variational Inference for Stochastic Partial Differential Equations Consider the static SPDE, with some linear operator ππand the stochastic force term π: πππ π =π π After derivations, the approximated VFE is described by: π½ππΌ ππ,ππ 2β1 2Ξπ2ΰ· πππ»ππ 2πππππππ β2 π,πβ²ππβ²ππ+1 2ΰ· ππ·π΄ππ΄ ππ β2 πββ¬πππ2 +1 2Ξπ₯2ΰ· πππ»ππ 2ππ β2 π,πβ²ππππ 2π,πβ²ππβ²π+1 2ΰ· ππ·π΄ππ΄ ππ β2β¬πππ 2ππ,ππβ¬ππ+1 2log det Ξ£ππ ππππππ 683 woorden A new approach to uncertainty quantification of PINNs DEPARTMENT OF ELECTROMECHANICAL, SYSTEMS AND METAL ENGINEERING Ir. Robbie Slos βProf. Dr. Ir. Tom Lefebvre βProf. Dr. Ir. Jolan Wauters βProf. Dr. Ir. Guillaume Crevecoeur ΰ· π,π‘ βπππ»ππ ΰ· ππ,π‘π,π βππ·ππ‘π πβπ =argmin πβπ¬ πΎπΏ[π(π)| π π =argmin πβπ¬ πΌπ π log π π π π π π½ππΌ