AI Hardware & Software Stack
What is the difference between post-training quantization (PTQ) and quantization-aware training (QAT)?
- APTQ quantizes before training, QAT after
- BPTQ quantizes a trained model as is; QAT simulates quantization during training so the weights adapt and errors stay small at low precision
- CNeither PTQ nor QAT actually quantizes
Show answer and explanation
Answer: B. PTQ quantizes a trained model as is; QAT simulates quantization during training so the weights adapt and errors stay small at low precision
Post-training quantization converts a trained model's weights (and activations) to lower precision after examining value ranges with a small representative dataset. It is easy but loses accuracy as bit width shrinks. Quantization-aware training simulates quantization rounding in the forward pass during training and adjusts weights with that error included, preserving accuracy even at precisions as low as 4 bits.
- A. PTQ happens after training.
- B. Correct. QAT costs more effort but preserves accuracy better.
- C. Both are quantization methods.