AWQ's Core Identity: XW = (XS)(S⁻¹W)

AWQ's foundation is an algebraic identity that allows a linear layer's output (XW) to remain mathematically unchanged when weights (W) are scaled by S⁻¹ and activations (X) are inversely scaled by S. This transformation, XW = (XS)(S⁻¹W), ensures the floating-point product is preserved while enabling strategic manipulation for quantization.

Sources

Open the full topic