Neural ODE
Neural ODE
Learning
inspired by
Diff. Eqs.
Noseong Park
Assistant Professor
[email protected]
Contents
2
Ordinary Differential Equations
3
An Example of ODEs
−0.03 0.03
∴ z’ = Az or z’ − Az = 0, where A = 3L/min
0.03 − 0.03
• When we have an initial value of z(0)=(0, 100), what is z(2)? This kind of
problem is called initial value problem (IVP) or forward problem.
• Given data, what is A? This kind of problem is called backward problem.
4
ODE Solvers
5
Euler method vs. Residual connection
6
Runge—Kutta (RK) method
<https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods>
7
Dormand—Prince (DOPRI) method
8
Neural Ordinary Differential
Equations (NODEs)
9
An Example of of NODEs
10
Adjoint Sensitivity Method
Forward: Forward:
Backward: Backward:
Adjoint State
Adjoint DiffEq
Gradients: Gradients:
12
Change of Variable Theorem
Hard to integrate
<Absolute of determinant of Jacobian>
Transform
Easy to integrate
13
Probability Density Estimation
dy
dx
<https://en.wikipedia.org/wiki/Jacobian_matrix_and_determinant> 14
Density Estimation in NODEs
N(0, 1)
15
Physics-informed Neural Networks
(PINNs)
16
Partial Differential Equations
17
An Intuitive Example of PINNs
• Suppose a regression task to predict the position of a falling ball given time t.
(x, t) pairs
Training t 𝑢𝑢� Position of ball, x
Data
• In NODEs, • In PINNs,
• z(t) describes the entire state. • z(x, t) describes a state at (x, t).
• We learn an implicit • We use a given governing
governing equation from data. equation to define a loss
• We use a task-dependent loss function (aided by the
to train NODEs, such as cross- automatic differentiation).
entropy, MSE, etc. • We use PINNs for solving PDEs
• We use NODEs for computer in various scientific domains.
vision, time-series processing,
NLP, etc.
19
Conclusions
• Deep learning inspired by diff. eqs. have proliferated for the past
couple of years.
20
References
21