GPTQ's Hessian Bottleneck: Why AWQ Skips It
GPTQ's calibration is significantly slower due to its reliance on calculating and inverting the Hessian matrix, an iterative and matrix-heavy computation that becomes a major bottleneck, especially with larger models. AWQ bypasses this by avoiding Hessian computations entirely, instead using a simpler method of collecting activation statistics. [4, 7, 12]
The top 3
- GPTQ's Costly Hessian: Why Second-Order Info Slows It Down: GPTQ utilizes the Hessian matrix, derived from input feature covariance (X·Xᵀ), to precisely compensate for quantization errors; however, calculating and inverting this matrix is a computationally intensive bottleneck for large language models.
- AWQ's Shortcut: Bypassing Hessian with Activation Scaling: AWQ avoids GPTQ's Hessian bottleneck by identifying and directly scaling a small percentage (around 1%) of critical 'salient' weights based on activation magnitudes, thus eliminating the need for complex second-order optimization or reconstruction.
- Calibration Speedup: Hessian Avoidance's 5-20x Advantage: By effectively skipping GPTQ's computationally intensive Hessian matrix calculation and iterative reconstruction steps, AWQ's calibration process achieves a substantial 5-20x speedup, drastically reducing the time required for LLM quantization.
Sources
Open the full topic