Quantization

An optimization technique that represents model weights and activations in lower bit precision (e.g., INT8) to accelerate inference and reduce memory footprint.

Quantization converts neural network parameters and computations from 32-bit floating point (FP32) to lower bit-width representations like INT8 or FP16.

Converting FP32 weights to INT8 reduces per-parameter memory from 4 bytes to 1 byte. ResNet-50 (about 100MB) shrinks to approximately 25MB after INT8 quantization.

TensorFlow Lite offers automatic quantization via tf.lite.Optimize.DEFAULT, and ONNX Runtime supports INT8 quantization. Quantized models run in WebAssembly for browser-based processing.

Related Terms

Related Articles