Algorithms like GPTQ utilize an approximation of the inverse Hessian matrix to guide a greedy, layer-wise error compensation process, directly minimizing the squared output error and enabling highly accurate post-training quantization of large language models down to 3 or 4 bits.