Check the calibration data first, because it must represent real inputs, not a few random images. Then use per channel quantisation for weights, and run a layer by layer sensitivity analysis comparing quantised and full precision outputs to find the layers causing most of the error, keeping those in higher precision. If the drop is still too large, use quantisation aware training, and check that pre and postprocessing were not quantised badly.
Why interviewers ask this
Quantisation is standard for edge deployment, and accuracy loss after it is a routine problem. Interviewers want a methodical approach: calibration quality, quantisation granularity, finding sensitive layers, mixed precision, and quantisation aware training as the heavier fix. They also listen for checking the right metric on the right slices, since quantisation often hurts small objects or rare classes more than the headline number shows.
How to structure your answer
- Check the calibration data is representative.
- Use per channel weights and find sensitive layers.
- Keep sensitive layers in higher precision.
- Move to quantisation aware training if needed, and check by slice.
Example answer
I start with the calibration data, because it is the most common culprit. If the calibration set is a hundred random images, the activation ranges can be wrong for real inputs, so I use a few hundred frames sampled from the actual cameras across conditions, including night. Then I check the quantisation settings, since per channel quantisation for convolution weights usually recovers a lot compared with per tensor. If there is still a gap, I run a sensitivity analysis, comparing each layer's output between the full precision and quantised models, which usually shows that a few layers cause most of the error. Often it is the first layer, the last layers of the detection head, or layers with large activation outliers. I keep those in higher precision, which costs a little speed. If that is still not enough, quantisation aware training, which fine-tunes with simulated quantisation, usually closes most of the remaining gap. And I check results per slice. On one model, the headline score dropped a single point after quantisation, but small object recall dropped eight, and mixed precision on the head fixed it.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- What is the difference between post-training quantisation and quantisation aware training?
- Why might a detection head be more sensitive to quantisation than the backbone?
- How would you decide whether the remaining accuracy loss is acceptable?
Related computer vision engineer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions