Head-Tail-Aware KL Divergence in Knowledge Distillation for Spiking Neural Networks
Tianqing Zhang, Zixin Zhu, Kairong Yu, Hongwei Wang
TL;DR
The paper tackles the persistent accuracy gap between Spiking Neural Networks (SNNs) and Artificial Neural Networks (ANNs) by introducing Head-Tail-Aware KL Divergence (HTA-KL) for knowledge distillation. HTA-KL combines Forward KL and Reverse KL with adaptive head/tail weights derived from a cumulative probability mask to transfer both high- and low-probability information from a teacher ANN to an SNN student, specifically accounting for SNNs' spatio-temporal dynamics. Extensive experiments on CIFAR-10, CIFAR-100, and Tiny ImageNet show HTA-KL achieves higher accuracy with fewer timesteps, balances spike firing rates, and reduces energy consumption compared to existing KD methods. The results underscore HTA-KL's potential for efficient, high-performance neuromorphic learning and provide a practical approach to deploying SNNs on energy-constrained hardware.
Abstract
Spiking Neural Networks (SNNs) have emerged as a promising approach for energy-efficient and biologically plausible computation. However, due to limitations in existing training methods and inherent model constraints, SNNs often exhibit a performance gap when compared to Artificial Neural Networks (ANNs). Knowledge distillation (KD) has been explored as a technique to transfer knowledge from ANN teacher models to SNN student models to mitigate this gap. Traditional KD methods typically use Kullback-Leibler (KL) divergence to align output distributions. However, conventional KL-based approaches fail to fully exploit the unique characteristics of SNNs, as they tend to overemphasize high-probability predictions while neglecting low-probability ones, leading to suboptimal generalization. To address this, we propose Head-Tail Aware Kullback-Leibler (HTA-KL) divergence, a novel KD method for SNNs. HTA-KL introduces a cumulative probability-based mask to dynamically distinguish between high- and low-probability regions. It assigns adaptive weights to ensure balanced knowledge transfer, enhancing the overall performance. By integrating forward KL (FKL) and reverse KL (RKL) divergence, our method effectively align both head and tail regions of the distribution. We evaluate our methods on CIFAR-10, CIFAR-100 and Tiny ImageNet datasets. Our method outperforms existing methods on most datasets with fewer timesteps.
