Scale and zero point

Quantization maps a real range onto a handful of integer buckets using two constants: a scale, the ratio of the two ranges' widths, and a zero point, the bucket real zero lands in. Finding the range is calibration, trivial for weights and awkward for activations, which have to be watched on sample traffic. Dequantization reverses the map but cannot undo the rounding, and that residue is the entire quality cost. Everything else, block sizes, , importance weighting, is an argument about how to spend fewer without enlarging it.

Formula

Worked example: One weight into 4 bits

A weight of 0.42 in a layer spanning −1 to 1, mapped to a symmetric 4-bit range. Rounding to the nearest bucket costs 0.0086, and dequantization cannot recover it. Every quality argument about quantization is an argument about this residue, summed over billions of weights.

See what 4-bit weights do to a 27B model