Kernel Based Progressive Distillation for Adder Neural Networks

Yixing Xu, Chang Xu, Xinghao Chen, Wei Zhang, Chunjing Xu, Yunhe Wang

Introduction

As deep learning moves toward edge computing—including mobile phones, IoT devices, and embedded cameras—energy efficiency has become a critical constraint. Standard Convolutional Neural Networks (CNNs) rely on billions of floating-point multiplications, which are computationally expensive and power-hungry. Adder Neural Networks (ANNs) offer a promising alternative by replacing multiplications with additions using the $\ell_1$-norm to calculate feature similarities.

Despite their efficiency, ANNs traditionally suffer from a significant accuracy gap compared to CNNs due to two primary hurdles:

  1. Optimization Difficulty: Gradient estimation for the $\ell_1$-norm is less precise during backpropagation than standard cross-correlation.
  2. Distribution Mismatch: ANN weights typically follow a Laplacian distribution, whereas CNN weights follow a Gaussian distribution. This makes standard Knowledge Distillation (KD) difficult, as the student (ANN) struggles to mimic a teacher (CNN) with a fundamentally different feature space.

Methodology: Progressive Kernel Based Knowledge Distillation (PKKD)

To bridge this gap, this paper introduces Progressive Kernel Based Knowledge Distillation (PKKD), a two-pronged strategy designed to align the disparate representational spaces of CNNs and ANNs.

Kernel-Based Feature Distillation

Rather than comparing raw features directly, PKKD employs a "kernel trick." By mapping the features and weights of both networks into a higher-dimensional space using specific kernels (Gaussian-like for the CNN and Laplacian for the ANN), the distributions become easier to align. This allows the ANN student to learn the teacher's representational logic without being hindered by the underlying mathematical differences in their operations.

Progressive Distillation

Traditional distillation uses a fixed, pre-trained teacher. However, this often leads to "training stage divergence," where the teacher's complexity overwhelms a student just beginning its training. In PKKD, the CNN teacher and ANN student are initialized and trained simultaneously from scratch. This synchronized learning ensures that the teacher’s guidance remains relevant to the student’s current state of development.

Experimental Results

The researchers evaluated PKKD on standard benchmarks, including CIFAR-10, CIFAR-100, and ImageNet (ILSVRC 2012).

Training accuracy curves on CIFAR-10 and CIFAR-100 datasets comparing CNN, AdderNet, and KD AdderNet (PKKD).

As shown in the training curves, the PKKD-trained ANN (labeled as KD AdderNet) significantly outperforms the vanilla AdderNet and narrows the gap with the standard CNN. On ImageNet, an ANN-50 trained with PKKD achieved 76.8% top-1 accuracy, actually outperforming the standard ResNet-50 CNN by 0.6%.

Key Insights and Visualization

A major insight of this work is that while ANNs cannot be forced to look exactly like CNNs in low-dimensional space, they can share "knowledge" regarding the relationships between samples when projected into infinite-dimensional space.

Comparison of feature distributions for vanilla ANN, CNN, and PKKD ANN using t-SNE visualization.

Visualization using t-SNE (Figure above) confirms this effect. While vanilla ANNs often struggle to separate classes clearly, the PKKD-trained ANN produces feature clusters that are as distinct and well-organized as those of a standard CNN, effectively eliminating the "adder penalty."

Conclusion and Future Work

PKKD demonstrates that Adder Neural Networks can achieve state-of-the-art accuracy while maintaining their inherent energy-saving benefits. While the training overhead is higher due to simultaneous teacher-student training, the resulting inference model is highly efficient for edge deployment. Future research may explore the application of PKKD to more complex computer vision tasks such as object detection and semantic segmentation, as well as its performance on specialized hardware like FPGAs where the energy benefits of addition are fully realized.

Summary updated

BibTeX
@inproceedings{xu2020kernel,
  author = {Yixing Xu and Chang Xu and Xinghao Chen and Wei Zhang and Chunjing Xu and Yunhe Wang},
  title = {{Kernel Based Progressive Distillation for Adder Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure