A probabilistic framework for dynamic quantization
Gabriele Santini, Francesco Paissan, Elisabetta Farella
TL;DR
This paper tackles the challenge of efficient input-adaptive quantization for neural networks by introducing a probabilistic framework that uses a lightweight surrogate of pre-activations to estimate quantization parameters before layer execution. The method blends static calibration with per-input adaptation through an interval-based dynamic range $I(\alpha,\beta)$ and a tunable latency parameter $\gamma$, yielding memory overhead similar to static quantization while approaching dynamic quantization performance. The authors provide analytical modeling of static vs dynamic quantization, derive estimation procedures, and validate the approach on diverse vision tasks with on-device demonstrations on microcontrollers. The results show robust performance across in-domain and out-of-domain conditions, with per-channel quantization offering particular resilience and a favorable compute-memory trade-off for resource-constrained deployments.
Abstract
We propose a probabilistic framework for dynamic quantization of neural networks that allows for a computationally efficient input-adaptive rescaling of the quantization parameters. Our framework applies a probabilistic model to the network's pre-activations through a lightweight surrogate, enabling the adaptive adjustment of the quantization parameters on a per-input basis without significant memory overhead. We validate our approach on a set of popular computer vision tasks and models, observing only a negligible loss in performance. Our method strikes the best performance and computational overhead tradeoff compared to standard quantization strategies.
