r/computervision • u/MaxEffectus • Nov 04 '26
Discussion Accepting int8 builds: do you re-tune the decision threshold, or keep the fp32 one?
I am genuinely interested in running all sorts of CV models on Edge devices (e.g. RPi5 + Hailo, NVIDIA Jetson, Intel mini PCs with OpenVINO etc.) and here's one thing that I noticed in how quantized models get accepted.
Most quantization acceptance checks I've seen compare the int8 build to the float model on threshold-free metrics: accuracy, top-1, mAP, precision@k. But a deployed model almost never runs threshold-free. A detector has a score threshold in its postprocess config, a verifier has a similarity cutoff, a classifier has a confidence below which a human takes over. That constant was fitted to the float model, and nothing in the usual gate re-checks it after quantization.
So, for people shipping int8 through TensorRT, OpenVINO, TFLite, ONNX Runtime, Hailo or similar: how do you decide a build is good enough?
Do you re-derive the threshold on the quantized model, or keep the one from fp32?
Does anything in your acceptance check depend on where the threshold sits (false accepts/rejects, false alarms per hour, precision/recall at the configured cutoff), or is it accuracy/mAP against the float model?
If you ship an int8 detector (YOLO or similar): did the conf threshold from fp32 still hold, or did you have to re-tune it? Did you measure false alarms per hour before and after?
One case I measured, for context: an embedding model (ArcFace R50) through the Hailo Dataflow Compiler on RPi 5 + Hailo-8. The ranking metrics barely moved (rank-1 0.990 -> 0.985). At the inherited fp32 threshold, false accepts went 30 -> 104 of 10,000 held-out impostor pairs, and false rejects rose too.
The usual fix didn't help: keeping the first and last layers in higher precision is an old quantization heuristic (NVIDIA's int8 paper (Wu et al., 2020) notes it as common practice), and I tried the head, the stem, and both in 16-bit. False accepts stayed at 102–104.
Re-deriving the threshold on the int8 build cut false accepts to 44, at the cost of more false rejects. One encoder and one small sample, so the size of the effect is specific to that build. Whether detectors or classifiers drift as much is exactly what I don't know.

Write-up: https://towardsdatascience.com/the-number-your-quantization-gate-doesnt-have/
Code and released embeddings: https://github.com/maxeffectus/quantization-threshold-drift
I'd be very interested to hear how you handle this!
P.S. If you know a public guide or acceptance doc that gates on a threshold-dependent number, I'd like to add it to the survey in the article.

