{"by":"rahimiali","descendants":23,"id":46638894,"kids":[46639749,46640356,46645405,46639883,46640672,46639765],"score":31,"text":"It turns out the <i>inverse</i> of the Hessian of a deep net is easy to apply to a vector. Doing this naively takes cubically many operations in the number of layers (so impractical), but it&#x27;s possible to do this in time linear in the number of layers (so very practical)!<p>This is possible because the Hessian of a deep net has a matrix polynomial structure that factorizes nicely. The Hessian-inverse-product algorithm that takes advantage of this is similar to running backprop on a dual version of the deep net. It echoes an old idea of Pearlmutter&#x27;s for computing Hessian-vector products.<p>Maybe this idea is useful as a preconditioner for stochastic gradient descent?","time":1768509370,"title":"Show HN: The Hessian of tall-skinny networks is easy to invert","type":"story","url":"https://github.com/a-rahimi/hessian"}