To run a small neural network on a microcontroller, models are usually converted from 32-bit floats to 8-bit integers. What does that quantization buy you, and what's the catch?

technical-conceptual · Junior level · software-engineering, embedded-iot

What the interviewer is really asking

Assesses understanding of why INT8 quantization is the enabling step for TinyML on a microcontroller and awareness of the accuracy trade-off and validation it requires, not just the definition of quantization.

What to say

What to avoid

Example answers

Strong: Going from float32 to int8 cuts the model size about four times so it fits in the tens of kilobytes the chip has, and integer math is faster on a part with no FPU. The catch is it's lossy: I'd re-test the quantized model on real data, not assume the float accuracy carries over. I'd also make sure my input scaling matches what the quantizer expects, because a range mismatch can wreck accuracy even when the model loads fine.

Weak: Quantization makes the model 8-bit so it's smaller and faster, and you use it because microcontrollers are slow, so you always want the smallest model.

Want questions matched to your role? Paste a job title, job description, or CV and get a personalized set, or go Pro to unlock the full bank.