News for hackers. Stuff that matters.
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).
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
Re:Matrix Calculus: Calculate derivatives of matrices by mcapodici on Saturday April 15, 2023 @06:04AM (#35579160)
This field is so interesting, sad I didn’t get into it sooner