INT8 & FP8 Quantization Trade-offs for Real-Time Edge Vision Models
Post-training quantization (PTQ) remains the fastest lever for cutting inference memory bandwidth on edge GPUs and Apple Silicon, yet naive INT8 calibration frequently degrades small-object recall in real production frames. Over the past quarter I benchmarked four detection and segmentation backbones across FP16, FP8 (E4M3), and per-channel INT8 builds.
Where Accuracy Actually Leaks
In convolutional stems and early depthwise blocks, activation distributions exhibit sharp specular outliers—especially under harsh indoor LED lighting or backlit storefront scenes. Min-max calibration stretches the quantization grid to cover a single bright pixel, crushing low-contrast texture bins. Switching activation observers from min-max to 99.95% percentile or entropy (KL-divergence) calibration recovered nearly 1.4 mAP points without retraining.
| Precision | Calibration | mAP@0.5:0.95 | p95 Latency (ms) | VRAM (MB) |
|---|---|---|---|---|
| FP16 Baseline | N/A | 52.4 | 11.8 | 612 |
| FP8 (E4M3) | 256 frames | 52.2 | 7.4 | 348 |
| INT8 Min-Max | 256 frames | 50.1 | 6.1 | 316 |
| INT8 Entropy + FP16 Head | 512 frames | 52.0 | 6.5 | 332 |
Mixed-Precision Head Protection
Keeping the final box-regression and mask-prototype heads in FP16 added less than 0.4 ms to p95 latency while eliminating bounding-box jitter on sub-24px targets. For deployment pipelines targeting TensorRT or ONNX Runtime, explicitly pinning LayerNorm and final projection nodes to FP16 is the highest-leverage config tweak before considering full quantization-aware training (QAT).
# Example ONNX Runtime static quantization exclusions
nodes_to_exclude = [
"/head/reg_conv/Conv",
"/head/cls_conv/Conv",
"/neck/norm_out/LayerNormalization",
]
Takeaway: start with FP8 on Ada/Hopper/Blackwell class hardware; on older INT8-only edge accelerators, combine entropy calibration over domain-matched frames with FP16 regression heads.