PINN: �Multiple Loss Terms and Weighting
Prof. Seungchul Lee
Overfitting: Start with Linear Regression
2
Recap: Nonlinear Regression
3
Nonlinear Regression
4
10 input points with degree 9 (or 10)
Polynomial Fitting with Different Degrees
5
Low error on input data points,
but high error nearby
Important to find the right balance between model complexity and generalization
Loss
6
Minimizing loss in training data is
often not the best
Low error on input data points,
but high error nearby
Issue with Rich Representation
7
Overfitting
8
Signs of Overfitting
9
Causes of Overfitting
10
Generalization Error
11
Regularization to Reduce Overfitting
12
Generalization Error
13
Representational Difficulties
14
With Less Basis Functions: Fewer RBF Centers
15
With Less Basis Functions: Fewer RBF Centers
16
Representational Difficulties
17
Regularization (Shrinkage Methods)
18
Regularization (Shrinkage Methods)
19
RBF: Start from Rich Representation
20
RBF with Regularization
21
RBF with Regularization
22
23
How L2 Regularization Works
24
Probabilistic Linear Regression
25
Probabilistic Linear Regression
26
data = underlying pattern + independent noise
Generative Model: Regression
27
Likelihood and Log-Likelihood
28
Maximum Likelihood Estimation (MLE)
29
Maximum Likelihood Estimation (MLE)
30
Maximum Likelihood Estimation (MLE)
31
Linear Regression: A Probabilistic View
32
Linear Regression: A Probabilistic View
33
Linear Regression: A Probabilistic View
34
Bayesian View of Linear Regression
35
Generative Model: Regression
36
37
38
Images from Prof. Philipp Hennig at University of Tubingen
39
Images from Prof. Philipp Hennig at University of Tubingen
Maximum-a-Posteriori (MAP)
40
Images from David S. Rosenberg at Bloomberg ML EDU
Posterior
41
Maximum-a-Posteriori (MAP)
42
Summary: MLE vs MAP
43
From Statistical Priors to Physical Priors
44
From Statistical Priors to Physical Priors
45
Strategies for Choosing the Weights
46
PINN Architecture
47
PINN Architecture
48
Poisson Equation
49
Naive PINN
50
Loss Imbalance
51
Loss Imbalance
52
Loss Imbalance
53
“A single loss can dominate the parameter update”
Mitigating Loss Imbalance
54
Mitigating Loss Imbalance
55
Fixed Weighting
56
Two Limitations of a Fixed Weight
57
Fixed Weighting
58
Fixed Weighting
59
Adaptive Weighting
60
Method | Core idea |
Gradient-based | Balance gradient norms |
Loss-based | Upweight large or slowly decaying losses |
Trainable Weight | Optimize weights directly |
NTK-based | Upweight slower-learning terms |
The Optimizer Sees Gradients, Not Losses
61
Gradient-Based Adaptive Weighting
62
Gradient-Based Adaptive Weighting
63
Moving-Average Adaptive Weighting
64
Moving-Average Adaptive Weighting
65
Hard Constraint
66
Neural network
Hard Constraint
Hard Constraint by a Masking Function
67
Hard Constraint by a Masking Function
68