# Quantization Error

- **Canonical URL:** https://getaimath.com/dictionary/quantization-error/
- **Topics:** [Quantization & Model Compression](https://getaimath.com/dictionary/category/quantization-and-model-compression/)
- **Last updated:** 2026-11-25

## What is Quantization Error?

**In one sentence:** Quantization error is the difference between the original number and its compressed version.

Rounding always loses a little information. One small error is harmless, but millions of them can add up and make the model's answers worse. Quantization methods are designed to keep these errors small or cancel them out.

![Quantization: Vacuum-Packing a Giant AI into a Carry-On Bag — Simple cartoon showing a huge 16 GB AI model with long fussy decimals (3.14159265) squeezed by a vacuum-seal press into a compact 4 GB model with rounded numbers (3.1) that fits on a laptop.](https://getaimath.com/diagrams/quantization-and-model-compression.png)
*Napkin Diagram (Quantization & Model Compression): By rounding long fussy decimals to neat short numbers, quantization shrinks a model about 4× with only a small loss in smarts.*

## What is an example of Quantization Error?

If 0.374 is stored as 0.375, the quantization error is 0.001.

## Why does Quantization Error matter?

Measuring quantization error helps choose the right compression level.

## Related Concepts

- [Dequantization](https://getaimath.com/dictionary/dequantization/): Dequantization converts compressed low-bit numbers back into higher-precision numbers so they can be used in calculations.
- [Per-Channel Quantization](https://getaimath.com/dictionary/per-channel-quantization/): Per-channel quantization gives each row or column of a weight matrix its own scale, instead of one scale for the whole matrix.
- [Calibration](https://getaimath.com/dictionary/calibration/): Calibration in quantization means running sample data through a model to learn the typical range of its values before compressing it.
- [Per-Tensor Quantization](https://getaimath.com/dictionary/per-tensor-quantization/): Per-tensor quantization uses one single scale for an entire block of weights, called a tensor.
- [Importance Matrix (imatrix)](https://getaimath.com/dictionary/importance-matrix-imatrix/): An importance matrix is a record of which model weights matter most, gathered by running sample text through the model, and used to guide quantization.
- [Group-wise Quantization](https://getaimath.com/dictionary/group-wise-quantization/): Group-wise quantization splits weights into small groups, like 32 or 128 numbers, and gives each group its own scale.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/quantization-error/)
