Not All Timesteps Matter Equally: Selective Alignment Knowledge Distillation for Spiking Neural Networks

Kai Sun, Peibo Duan, Yongsheng Huang, Guowei Zhang, Benjamin Smith, Nanxu Gong, Levin KuhlmannarXiv 2026

TL;DR

Spiking Neural Networks (SNNs) offer incredible energy efficiency by processing data over time, but traditional knowledge distillation methods rigidly force every single timestep to match a static teacher network. This paper introduces Selective Alignment Knowledge Distillation (SeAl-KD), a framework that dynamically relaxes supervision at erroneous timesteps and intelligently weights temporal self-distillation. This approach successfully bridges the performance gap between SNNs and traditional artificial neural networks (ANNs) without sacrificing their signature energy efficiency.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) are biologically inspired models that communicate via discrete, sparse spikes over time, making them ideal for low-power neuromorphic hardware. However, training them to match the accuracy of conventional Artificial Neural Networks (ANNs) remains a major challenge.

To close this gap, researchers frequently turn to Knowledge Distillation (KD), transferring dark knowledge from a trained ANN "teacher" to an SNN "student." The issue with current timestep-wise KD methods is their rigid assumption of uniformity: they force the SNN to match the teacher's output at every single timestep, or force all internal timesteps to be perfectly consistent with one another.

However, SNN dynamics naturally fluctuate due to membrane potential integration and resets. As illustrated in the paper, an SNN can make incorrect intermediate predictions at certain timesteps but still accumulate enough correct evidence over time to yield a perfectly accurate final prediction.

Figure 1: Mismatch between intermediate and final predictions in SNNs. (a) A toy example where intermediate predictions are wrong, but the final aggregated prediction is correct. (b) Per-timestep accu- racy and final aggregated accuracy on CIFAR100. (c) Distribution of CIFAR100 samples with correct final predictions by the number of correctly predicted timesteps out of T.

Forcing rigid, uniform alignment across all timesteps disrupts these useful temporal dynamics and injects misleading supervision signals into the network.

Methods

The authors propose SeAl-KD, a selective distillation framework designed to provide targeted corrections only where they are actually needed. It consists of two main components:

  1. Error-aware Logit Alignment (ELA): When the SNN makes a mistake at a specific timestep, ELA identifies the ground-truth class and the wrongly predicted dominant class. Instead of forcing the full teacher distribution—which can dilute the necessary correction—it equalizes the logits of this confusing pair to their minimum value. This removes the forced preference between them at that specific erroneous timestep, localizing the correction while preserving standard teacher guidance on the remaining classes.
  2. Similarity-aware Temporal Alignment (STA): Instead of forcing uniform pairwise alignment across all timesteps, STA introduces a weighted self-distillation mechanism. It computes a weight for each source timestep based on its confidence (entropy-based) and compatibility (cosine similarity in logit space with the target timestep). This ensures weak timesteps learn predominantly from reliable, compatible temporal states rather than noisy ones.
Figure 2: SeAl-KD framework. SNNs learn from the same copied ANN output across timesteps. ELA equalizes the true and predicted- false logits at erroneous timesteps before teacher–student KL. STA reweights temporal KL using confidence and inter-timestep similarity. C denotes the ground-truth class. Left-bottom illustration shows that our method aims to follow temporal diversity to obtain correct predictions, even when some intermediate predictions are incorrect.

Datasets

The authors validated SeAl-KD across both static image and neuromorphic event-based datasets:

  • CIFAR-10 & CIFAR-100: Standard static image classification benchmarks.
  • ImageNet: A large-scale static image dataset used to test the scalability of the method.
  • DVS-CIFAR10: A neuromorphic event-based dataset recorded using a Dynamic Vision Sensor, capturing real-world temporal spike data.

Key Insights and Ideas

  • The Consistency Mismatch: Forcing perfect temporal consistency ignores how SNNs actually work. Intermediate timesteps do not need to be individually correct to contribute to a correct final accumulated decision.
  • Student-Driven Correction: ELA demonstrates that distillation is most effective when it is student-driven. By focusing purely on the specific class confusion the student is experiencing at a given moment, the network learns cleaner decision boundaries.
  • Preserving Temporal Diversity: Rather than flattening the SNN's outputs into a time-invariant pattern, SeAl-KD allows the network to maintain structured temporal trajectories where dominant classes can shift dynamically over time, leading to more discriminative feature representations.

Key Results

  • State-of-the-Art Accuracy: SeAl-KD consistently outperformed existing direct-training and distillation methods. For instance, on CIFAR-100 with a ResNet-19 architecture ($T=6$), SeAl-KD achieved 83.37% accuracy compared to Logit-SNN's 82.56%. On the neuromorphic DVS-CIFAR10 dataset ($T=10$), it reached 86.70%.
  • Energy Efficiency: SNN energy consumption is driven by accumulation operations (ACs) triggered by spikes. SeAl-KD achieves these accuracy gains without increasing the firing rate; in fact, it often reduces the total number of spikes, maintaining or improving the SNN's signature energy efficiency.

Limitations and Future Work

  • Hyperparameter Tuning: SeAl-KD introduces two new hyperparameters ($\alpha$ for ELA and $\beta$ for STA) to govern the loss contributions. Although sensitivity analysis shows the model is relatively robust to these choices (the authors settle on $\alpha = 0.6$ and $\beta = 0.15$), optimal tuning might still vary for radically different architectures.
  • Scope of Tasks: The evaluation was restricted to classification tasks. Future work could explore applying this selective alignment strategy to more complex regression workloads, such as object detection or video segmentation, where temporal dynamics play an even more critical role.

Summary updated

BibTeX
@misc{sun2026not,
  author = {Kai Sun and Peibo Duan and Yongsheng Huang and Guowei Zhang and Benjamin Smith and Nanxu Gong and Levin Kuhlmann},
  title = {{Not All Timesteps Matter Equally: Selective Alignment Knowledge Distillation for Spiking Neural Networks}},
  year = {2026},
  eprint = {2605.14252},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.14252},
}
Figure