Reading directoryRepresentation

Educational reading

Fewer levels, different precision

A digital representation has a finite set of values. Quantization maps numbers onto a chosen set of levels.

Original valueChoose a levelRepresented value

Choosing the available steps

Quantization reduces numerical precision by mapping values to a smaller set of representable levels. Values between those levels must be rounded or otherwise assigned. The difference between an original value and its representation is quantization error.

In machine learning, lower-precision representations can reduce the memory required for model weights and other values. Effects on speed and output quality depend on the method, the model and the hardware. Fewer bits do not establish a universal performance improvement.

A coarser ruler

Hypothetical example: one ruler marks every millimeter, while another marks only centimeters. Both can describe the same length, but the second cannot express every distinction available on the first. A measurement between its marks needs a rule for choosing a reported value.

Now imagine comparing two objects whose lengths are close. The coarser ruler might report the same number for both. That may be acceptable for packing a large box and unsuitable for fitting a small component.

Evaluate the changed answer

A model converted to lower precision should be evaluated on tasks that represent its intended use. An overall score can obscure changes affecting particular inputs. Evaluation should examine whether the altered representation changes decisions that matter.

Keep the original and converted conditions explicit when reading a comparison. Ask which values changed format, which tasks were tested and which equipment ran the work. A better practical result requires evidence suited to the actual task.

Further reading: IBM: quantization. External reference.

General educational information. The hypothetical example does not describe company activity.