2 ms·
Doesn't the Hessian take O(N²) space in the number of independent variables? Like, if you have one dependent variable and a million independent variables, isn'
by kragen 7y ago
Doesn't the Hessian take O(N²) space in the number of independent variables? Like, if you have one dependent variable and a million independent variables, isn't the Hessian a trillion-element matrix, albeit a symmetric one?
- xscott 7y agoThere are "limited memory" algorithms which use low rank approximations. https://en.wikipedia.org/wiki/Limited-memory_BFGS https://en.wikipedia.org/wiki/Limited-memory_BFGS
- jleahy 7y agoAlso techniques that only require the product of the hessian with some arbitrary vector, which itself is just a vector. That can be easy to compute in some problems.
- uoaei 7y agoIf you reduce a matrix to its Cholesky decomposition you can save about half the space because you only need to store the diagonal and lower triangle. IIRC the gradients are also relatively tame for Cholesky-matrices vs their full counterparts.
- JadeNB 7y ago> If you reduce a matrix to its Cholesky decomposition you can save about half the space because you only need to store the diagonal and lower triangle. That's not a space savings for a known-symmetric matrix, though, for which you already need only store the diagonal and lower triangle.