rotation before quant — spread the spike

A few very large entries force a low-bit quantizer to spend its whole range on them, so everything else gets coarse. A Walsh-Hadamard rotation spreads one spike across every coordinate. The length of the vector is unchanged and the largest entry shrinks. The same rotation has to be applied to the weight. Rotate only the activation and the product is a different one.

One large entry and three zeros. After a normalized Walsh–Hadamard rotation the length is unchanged and the largest entry is smaller. The same rotation has to hit the weight, or the product changes.