Cluster-Promoting Quantization with Bit-Drop for Minimizing Network Quantization Loss

Jung Hyun Lee, Jihun Yun, Sung Ju Hwang, Eunho YangICCV 2021

Abstract

Network quantization aims to reduce the bit-lengths of network weights and activations for deployment on resource-limited devices. Despite recent progress, significant performance gaps remain between full-precision networks and their quantized counterparts due to large quantization errors. We propose Cluster-Promoting Quantization (CPQ), a novel method that optimizes quantization grids while encouraging full-precision weights to gather cohesively around these grids during training. This is achieved through a probabilistic parametrization in the forward pass and a multi-class straight-through estimator (STE) in the backward pass. To mitigate the inherent bias of the multi-class STE, we introduce DropBits, a regularization technique that randomly drops bits during training. Furthermore, we extend DropBits to learn heterogeneous quantization levels across layers. Our experiments on ImageNet and MobileNetV2 demonstrate state-of-the-art performance and support the hypothesis that learned heterogeneous quantization outperforms fixed-bitwidth configurations.

1. Introduction

Deep neural networks are increasingly deployed on edge devices, necessitating significant reductions in memory and computational overhead. Network quantization—converting 32-bit floating-point values to low-bit integers (e.g., 2-4 bits)—is a standard approach. However, the transition from continuous to discrete values often introduces a "quantization loss." This error is most pronounced when weights are far from the discrete grid points.

Existing methods often attempt to minimize this error post-training or through standard quantization-aware training (QAT). However, they rarely address the underlying distribution of the full-precision weights. CPQ addresses this by ensuring that weights naturally "cluster" around the optimal quantization levels during the training phase, making the final discretization step nearly lossless.

2. Proposed Methodology: Cluster-Promoting Quantization

CPQ rests on three primary technical pillars designed to enable stable, differentiable quantization that promotes weight clustering.

2.1 Probabilistic Parametrization and Multi-Class STE

Instead of deterministic rounding, CPQ models weights using a logistic distribution. In the forward pass, the model selects the mode—the most likely quantization grid point. This probabilistic approach makes the quantization process differentiable. To handle gradients, we employ a multi-class straight-through estimator (STE). Unlike standard binary STEs, our multi-class version provides a stable, zero-variance gradient signal, though it introduces a slight bias toward the most likely grid point.

The three-step learning process of CPQ: 1) Parameters start near grid points; 2) The grid interval α is optimized, making parameters trainable; 3) Parameters converge to new grid points.

2.2 DropBits and Heterogeneous Learning

To counteract the bias of the multi-class STE, we introduce DropBits. Inspired by Dropout, DropBits randomly masks specific quantization grid points during training. This prevents the model from prematurely converging to a single mode, effectively smoothing the optimization landscape.

By adding an $l_0$-norm regularization to the DropBits framework, we enable the network to learn heterogeneous quantization levels. This allows the algorithm to automatically determine the optimal bit-width for each layer, discovering configurations where some layers retain higher precision while others are aggressively compressed without sacrificing overall accuracy.

3. Experimental Evaluation and Insights

We evaluated CPQ on standard benchmarks, including MNIST, CIFAR-10, and ImageNet, using architectures like ResNet-18 and the compact MobileNetV2.

3.1 Weight Clustering Results

A key insight of this work is that CPQ does not require an explicit clustering penalty in the loss function. The combination of the probabilistic forward pass and the multi-class STE naturally pulls weights toward the grid points. This is empirically verified by examining the weight histograms after training.

Weight histograms for Layer 2 and Layer 3, showing the effective clustering of full-precision weights around discrete quantization grids.

3.2 Performance on Large-Scale Benchmarks

  • ImageNet (ResNet-18): At 4-bit quantization, CPQ achieved a 30.37% Top-1 error, nearly matching the full-precision baseline of 30.24%.
  • MobileNetV2: This architecture is notoriously difficult to quantize. CPQ achieved 30.83% Top-1 error at 4-bit, outperforming previous state-of-the-art methods like TQT and LLSQF by over 1.3%. Even at 3-bit, CPQ maintained a respectable 35.71% error.
  • Heterogeneous Advantage: Our results support a new "Quantized Sub-network" hypothesis: learning varying bit-widths for different layers (e.g., a 4/4/3/4 pattern) consistently outperforms training a network with a fixed, uniform bit-width from scratch.

4. Conclusion and Future Work

CPQ effectively minimizes quantization loss by promoting natural weight clustering and utilizing the novel DropBits technique to stabilize training. While highly effective for weights, future work will focus on extending DropBits to activations, which present unique challenges due to their asymmetric distributions (e.g., ReLU). Additionally, we aim to further optimize these learned heterogeneous structures for specific hardware accelerators to maximize real-world deployment efficiency.

Summary updated

BibTeX
@inproceedings{lee2021cluster,
  author = {Jung Hyun Lee and Jihun Yun and Sung Ju Hwang and Eunho Yang},
  title = {{Cluster-Promoting Quantization with Bit-Drop for Minimizing Network Quantization Loss}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=Oqe-Dn1WSGc},
}
Figure