Quantization-Aware Regularizers for Deep Neural Networks Compression
Dario Malchiodi, Mattia Ferraretto, Marco Frasca
TL;DR
The paper addresses the accuracy loss from weight quantization in deep neural networks by injecting quantization awareness into training. It proposes per‑layer regularizers that create quantization‑friendly weight clusters and learn quantization representatives jointly with weights, enabling end‑to‑end optimization with $\hat{\boldsymbol{W}}=\arg\min_{\boldsymbol{W}} \mathcal{L}(\boldsymbol{W},\mathcal{D})+\lambda\mathcal{R}(\boldsymbol{W})$. The approach offers static periodic and dynamic learnable basins for quantization as well as a weight‑sharing strategy, and demonstrates substantial pre‑tuning gains and competitive post‑tuning performance on CIFAR‑10 with AlexNet and VGG16. The findings suggest that quantization‑aware regularization can improve compression‑friendly training and facilitate efficient deployment on resource‑constrained hardware.
Abstract
Deep Neural Networks reached state-of-the-art performance across numerous domains, but this progress has come at the cost of increasingly large and over-parameterized models, posing serious challenges for deployment on resource-constrained devices. As a result, model compression has become essential, and -- among compression techniques -- weight quantization is largely used and particularly effective, yet it typically introduces a non-negligible accuracy drop. However, it is usually applied to already trained models, without influencing how the parameter space is explored during the learning phase. In contrast, we introduce per-layer regularization terms that drive weights to naturally form clusters during training, integrating quantization awareness directly into the optimization process. This reduces the accuracy loss typically associated with quantization methods while preserving their compression potential. Furthermore, in our framework quantization representatives become network parameters, marking, to the best of our knowledge, the first approach to embed quantization parameters directly into the backpropagation procedure. Experiments on CIFAR-10 with AlexNet and VGG16 models confirm the effectiveness of the proposed strategy.
