Re:Matrix Calculus: Calculate derivatives of matrices
by p1esk on Friday April 14, 2023 @10:30PM
(#35577132)
It’s much more relevant now because of the massive neural networks - specifically the need to compress them. Most of the state of the art model compression methods (quantization or pruning) rely on second order gradients, so you need to know how to compute, invert, and approximate the Hessian matrix (a matrix of all second order partial derivatives of the loss function wrt model parameters).
[ Parent
| on HN ]
Re:Matrix Calculus: Calculate derivatives of matrices
by thomasahle on Friday April 14, 2023 @10:35PM
(#35577151)
What quantization methods rely on second order gradients? I thought people just applied gradient decent, then round to whatever precision.
Re:Matrix Calculus: Calculate derivatives of matrices
by p1esk on Friday April 14, 2023 @10:49PM
(#35577219)
Current SOTA post training quantization method is GPTQ:
https://arxiv.org/abs/2210.17323