When people compare quantization methods, they usually report perplexity, which measures how well a model predicts a held-out text sample, with lower being better. A perfectly preserved model has the same perplexity as the original; a damaged one has higher perplexity. The thing to watch is the delta, not the absolute number: a good INT4 quantization typically raises perplexity by a small fraction, often less than 1 percent, over the FP16 baseline.
What you need
- The original model and the quantized model
- A held-out text sample neither model was tuned on
- A perplexity script or tool that runs on both
Step 1: Measure the original model first
Run perplexity on the held-out sample with the original FP16 model and record the number. This is the baseline everything else is compared against.
Step 2: Measure the quantized model the same way
Run the same sample, with the same settings, on the quantized model and record its perplexity. Use the identical sample or the comparison means nothing.
Step 3: Judge the delta, not the absolute number
Subtract the baseline from the quantized number. A small fraction, often less than 1 percent for good INT4, is acceptable; a rise of several percent shows up as more mistakes, lost coherence over long outputs, or fumbled structured tasks such as code and JSON.
Worked example: synthetic perplexity check after INT4 quantization
The table below is a synthetic example. It shows the expected result of a perplexity comparison; no model was measured.
| Model | Perplexity | Delta vs FP16 |
|---|---|---|
| FP16 baseline | 8.00 | 0 |
| INT8 | 8.02 | Plus 0.25 percent |
| INT4 | 8.06 | Plus 0.75 percent |
| Verdict | INT4 acceptable | Under 1 percent |
Expected result (UNTESTED). INT4 raises perplexity by under 1 percent over the FP16 baseline, so the quantization is acceptable. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Perplexity is a proxy, not the whole story: two methods can have similar perplexity but behave differently on reasoning or instruction following.
- A bad quantization, or one pushed too far in bit width, can raise perplexity by several percent.
- Always sanity-check a quantized model on tasks you actually care about, not just the perplexity number.
- Perplexity needs a held-out sample; measuring on the calibration data flatters the result.
