Is there an efficient way to compute the Hessian of a NN?

This only works if your network has one output. With multiple outputs nodes you cannot use a sum.

2 Likes