Tips & Tricks
Table of Contents
Log-sum-exp
Why
Improves numerical stability.
How
1
- usually chosen to be
- I can see that the introduction of will make it more stable, by decreasing how much affects the sum, but at the same time you will get even smaller exponentials due to . In my head that would imply even more instability, no? I guess the constant somehow provides more stability than this additional instability..