NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Kernel Quantization for Efficient Network Compression

Zhongzhi Yu, Yemin Shi, Tiejun Huang, Yizhou YuarXiv 2020

Introduction

Deep Convolutional Neural Networks (CNNs) have revolutionized computer vision but remain computationally expensive and memory-intensive, hindering deployment on resource-constrained edge devices. Network quantization is a primary strategy to address this, mapping continuous weights to discrete levels. However, traditional scalar quantization faces an "accuracy-variety dilemma" at low bit-widths and is theoretically capped at a 32x compression ratio (representing 32-bit floats with 1 bit).

This paper introduces Kernel Quantization (KQ), a paradigm shift that treats entire convolutional kernels as the fundamental units of quantization rather than individual weights. By mapping $3 \times 3$ kernels to a learned codebook, KQ breaks the 32x compression ceiling and achieves state-of-the-art results on large-scale datasets.

Methodology

The KQ framework consists of three integrated stages designed to maximize compression while preserving model representational power.

The overall framework of Kernel Quantization, highlighting the iterative adaptive codebook search and layer-wise quantization pipeline.

Kernel-level Quantization

Unlike scalar quantization, KQ reshapes weight tensors such that each $3 \times 3$ kernel is treated as a single vector. Using k-means clustering, the framework learns a "kernel codebook"—a collection of representative kernels. Each original kernel is replaced by an index pointing to its nearest entry in the codebook. This approach preserves the spatial "tendency" or feature-extraction patterns of filters, which is often lost in more granular vector quantization methods.

Illustration of the kernel-level quantization process, showing the mapping of weights to cluster indices and the gradient-based update of the codebook.

Recognizing that layer redundancy is non-uniform, the authors employ a binary search algorithm to determine the optimal codebook size for each layer. This adaptive process ensures that sensitive layers retain more variety while highly redundant layers are aggressively compressed to meet a target accuracy threshold.

Codebook Quantization and Retraining

To further reduce storage overhead, the values within the kernel codebook itself are quantized to 6 bits. The process concludes with layer-by-layer retraining, where gradients are averaged by cluster to update the codebook entries, recovering performance lost during the initial quantization step.

Experimental Setup

The efficacy of KQ was evaluated on the ImageNet (ILSVRC2012) dataset using three architectures: VGG-16, ResNet18, and GoogLeNet. ImageNet serves as a rigorous benchmark for testing whether compression methods can maintain accuracy on complex, large-scale classification tasks.

Key Insights

  • Surpassing Theoretical Limits: By representing a $3 \times 3$ kernel (9 weights) with a single index (e.g., 8 bits), the effective bit-rate per parameter can drop below 1 bit. This extends the theoretical compression limit from 32x to 288x.
  • Layer-wise Redundancy: Analysis revealed that deeper layers in networks like VGG exhibit significantly higher redundancy. The codebook sizes for the final layers could be reduced drastically without impacting accuracy, whereas shallower layers required larger codebooks to maintain feature variety.
  • Non-Uniform Distribution: The distribution of indices in the codebook is non-uniform, suggesting that certain "common" kernels are reused frequently. This observation points toward further potential gains through entropy coding.

Results

KQ demonstrates superior performance across multiple architectures:

  • VGG-16: Achieved an average of 1.05 bits per parameter (~30.5x compression) with a modest 2.4% drop in Top-1 accuracy, outperforming existing methods like SYQ and LQ-Net.
  • ResNet18: Maintained high performance with 1.62 bits per parameter and only a 1.0% accuracy loss.
  • GoogLeNet: Remarkably, KQ achieved a 0.2% accuracy improvement while providing a 5.78x compression ratio, demonstrating its utility even for models that are already relatively compact.

Conclusion and Future Work

Kernel Quantization effectively breaks the scalar quantization bottleneck by leveraging the inherent redundancy of convolutional filters. While the current implementation uses k-means and a heuristic search, future work could explore more advanced optimization strategies for codebook generation. Additionally, developing specialized hardware or software kernels to perform convolutions directly using indexed codebooks could translate these storage savings into significant inference speedups. Integrating entropy coding, such as Huffman coding, remains a promising avenue to push compression ratios even further.

Summary updated

BibTeX
@misc{yu2020kernel,
  author = {Zhongzhi Yu and Yemin Shi and Tiejun Huang and Yizhou Yu},
  title = {{Kernel Quantization for Efficient Network Compression}},
  year = {2020},
  eprint = {2003.05148},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.05148},
}
Figure