Abstract
Convolutional Neural Networks (CNNs) are computationally intensive, primarily due to the high cost of multiplication operations. We present KCNN (Kernel-wise Quantized CNN), a framework that quantizes weights into multiple binary "bit planes" on a per-kernel basis. By replacing power-hungry multiplications with simple additions and sign-flips, KCNN significantly reduces computational complexity. Our approach utilizes a modified Lloyd algorithm for efficient quantization and introduces "Dual Normalization" to stabilize training. Experimental results on ImageNet demonstrate that KCNN achieves near-floating-point accuracy while reducing multiplication counts by hundreds of times and model size by up to 30x.
Introduction: The Cost of Multiplication
The dominance of CNNs in computer vision comes at a significant computational price. A standard forward pass involves billions of operations, with multiplication being the most resource-intensive. In hardware implementations such as FPGAs or ASICs, a multiplier's complexity scales at $O(n^2)$ relative to bit-width, whereas an adder scales at $O(n)$. Consequently, reducing or eliminating multiplications is a primary goal for deploying deep models on edge devices.
While Binary Weight Networks (BWN) and Ternary Weight Networks (TWN) offer extreme compression, they often suffer from substantial accuracy degradation because a single bit plane cannot adequately represent the complex weight distributions of deep networks. KCNN addresses this by using multiple bit planes and a finer quantization granularity.
Methodology
KCNN introduces three core innovations to balance efficiency and precision:
1. Kernel-wise Quantization
Unlike traditional methods that apply a single scaling factor to an entire layer, KCNN quantizes each individual kernel separately. Since different kernels learn distinct features, providing each with its own scaling factor ($\alpha$) allows for a much more faithful approximation of the original floating-point weights without the overhead of pixel-wise scaling.
2. Multiple Bit Planes via Modified Lloyd Algorithm
To represent weights accurately, KCNN approximates the weight matrix $W$ as a linear combination of $t$ binary bit planes ($B \in \{-1, +1\}$): $$W \approx \sum_{s=1}^{t} \alpha_s B_s$$ The authors derived a closed-form solution to find these planes using an "aggressive" version of the Lloyd algorithm, making the process computationally efficient during training.
3. Dual Normalization
Quantization-aware training often encounters "pathological curvature," where the loss surface becomes jagged and difficult for gradient descent to navigate. KCNN employs "Dual Normalization," which integrates Batch Normalization (for activations) and Weight Normalization (along the channel axis). This dual approach stabilizes internal covariate shift and gradient flow simultaneously.
Experimental Results
The effectiveness of KCNN was evaluated on the ImageNet (ILSVRC-2012) dataset using AlexNet and ResNet-18 architectures.
Performance Comparison
KCNN consistently outperforms previous state-of-the-art quantization methods such as ABC-Net, BWN, and TWN across various bit-widths.
- AlexNet: With 3 bit planes, KCNN achieved 55.2% Top-1 accuracy (only 1.4% lower than the floating-point baseline) while reducing multiplications by 552x.
- ResNet-18: Using 3 bit planes, it reached 67.6% Top-1 accuracy with a 243x reduction in multiplications.
Efficiency Gains
The "Multiplication is the Enemy" philosophy proves successful. By maintaining floating-point scaling factors but binarizing the bulk of the weights, the heavy computational load is shifted to additions. The remaining multiplications are performed after accumulation, representing a negligible fraction of the total cost. Furthermore, model storage requirements are reduced by 6x to 30x depending on the configuration.
Conclusion
KCNN demonstrates that kernel-wise granularity is a "sweet spot" for neural network quantization. It provides the flexibility needed to preserve accuracy in deep architectures like ResNet while enabling massive theoretical speedups in hardware by replacing multiplications with additions. Future work may involve quantizing activations to enable full XNOR-based logic, further optimizing performance on general-purpose hardware.
Summary updated