, 2 min read
Stiffness in Neural Networks
In below two posts I had already mentioned the close connection between neural networks and solving stiff ordinary differential equations:
- Neural Network Training using Stiff ODE Solvers
- Reply to: Neural Network Back-Propagation Revisited with Ordinary Differential Equations
Below threedimensional graph shows different frequencies, and when solving for the global maximum there are very many local maxima in the way.
$$
z = f(x,y) = e^{-(x^2+y^2)/25} \sin {\pi\over2}x \cos {\pi\over2}x
$$
In this case you want the stiff solver to ignore the high frequency solutions, but just follow the low frequency solution, thereby going straight to the global maximum.
Also see:
- Behrooz Ghorbani, Shankar Krishnan, Ying Xiao: “An Investigation into Neural Net Optimization via Hessian Eigenvalue Density”, arXiv 1901.10159, 29-Jan-2019, 21 p.
The above graph is similar to an egg carton.
